[ { "index": 0, "before": "public ListSpeechSynthesisTasksResult listSpeechSynthesisTasks(ListSpeechSynthesisTasksRequest request) {request = beforeClientExecution(request);return executeListSpeechSynthesisTasks(request);}", "after": "public virtual ListSpeechSynthesisTasksResponse ListSpeechSynthesisTasks(ListSpeechSynthesisTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSpeechSynthesisTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSpeechSynthesisTasksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1, "before": "public UpdateJourneyStateResult updateJourneyState(UpdateJourneyStateRequest request) {request = beforeClientExecution(request);return executeUpdateJourneyState(request);}", "after": "public virtual UpdateJourneyStateResponse UpdateJourneyState(UpdateJourneyStateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateJourneyStateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateJourneyStateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2, "before": "public void removePresentationFormat() {remove1stProperty(PropertyIDMap.PID_PRESFORMAT);}", "after": "public void RemovePresentationFormat(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_PRESFORMAT);}" }, { "index": 3, "before": "public CellRangeAddressList(int firstRow, int lastRow, int firstCol, int lastCol) {this();addCellRangeAddress(firstRow, firstCol, lastRow, lastCol);}", "after": "public CellRangeAddressList(int firstRow, int lastRow, int firstCol, int lastCol): this(){AddCellRangeAddress(firstRow, firstCol, lastRow, lastCol);}" }, { "index": 4, "before": "public void delete(int key) {int i = binarySearch(mKeys, 0, mSize, key);if (i >= 0) {if (mValues[i] != DELETED) {mValues[i] = DELETED;mGarbage = true;}}}", "after": "public virtual void delete(int key){int i = binarySearch(mKeys, 0, mSize, key);if (i >= 0){if (mValues[i] != DELETED){mValues[i] = DELETED;mGarbage = true;}}}" }, { "index": 5, "before": "public CreateBranchCommand setStartPoint(RevCommit startPoint) {checkCallable();this.startCommit = startPoint;this.startPoint = null;return this;}", "after": "public virtual NGit.Api.CreateBranchCommand SetStartPoint(RevCommit startPoint){CheckCallable();this.startCommit = startPoint;this.startPoint = null;return this;}" }, { "index": 6, "before": "public int centerX() {return x + w / 2;}", "after": "public int centerX(){return (left + right) >> 1;}" }, { "index": 7, "before": "public ListPresetsResult listPresets() {return listPresets(new ListPresetsRequest());}", "after": "public virtual ListPresetsResponse ListPresets(){return ListPresets(new ListPresetsRequest());}" }, { "index": 8, "before": "public DeleteFolderContentsResult deleteFolderContents(DeleteFolderContentsRequest request) {request = beforeClientExecution(request);return executeDeleteFolderContents(request);}", "after": "public virtual DeleteFolderContentsResponse DeleteFolderContents(DeleteFolderContentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFolderContentsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFolderContentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9, "before": "public GetConsoleOutputResult getConsoleOutput(GetConsoleOutputRequest request) {request = beforeClientExecution(request);return executeGetConsoleOutput(request);}", "after": "public virtual GetConsoleOutputResponse GetConsoleOutput(GetConsoleOutputRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetConsoleOutputRequestMarshaller.Instance;options.ResponseUnmarshaller = GetConsoleOutputResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10, "before": "public PutMailboxPermissionsResult putMailboxPermissions(PutMailboxPermissionsRequest request) {request = beforeClientExecution(request);return executePutMailboxPermissions(request);}", "after": "public virtual PutMailboxPermissionsResponse PutMailboxPermissions(PutMailboxPermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutMailboxPermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutMailboxPermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 11, "before": "public Cluster disableSnapshotCopy(DisableSnapshotCopyRequest request) {request = beforeClientExecution(request);return executeDisableSnapshotCopy(request);}", "after": "public virtual DisableSnapshotCopyResponse DisableSnapshotCopy(DisableSnapshotCopyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableSnapshotCopyRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableSnapshotCopyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 12, "before": "public static String stripExtension(String filename) {int idx = filename.indexOf('.');if (idx != -1) {filename = filename.substring(0, idx);}return filename;}", "after": "public static string StripExtension(string filename){int idx = filename.IndexOf('.');if (idx != -1){filename = filename.Substring(0, idx);}return filename;}" }, { "index": 13, "before": "public ByteBuffer putInt(int value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putInt(int value){throw new System.NotImplementedException();}" }, { "index": 14, "before": "public int lastIndexOf(final int o){int rval = _limit - 1;for (; rval >= 0; rval--){if (o == _array[ rval ]){break;}}return rval;}", "after": "public int LastIndexOf(int o){int rval = _limit - 1;for (; rval >= 0; rval--){if (o == _array[rval]){break;}}return rval;}" }, { "index": 15, "before": "public void setCountsByTime(int[] counts, long msecStep) {countsByTime = counts;countsByTimeStepMSec = msecStep;}", "after": "public virtual void SetCountsByTime(int[] counts, long msecStep){countsByTime = counts;countsByTimeStepMSec = msecStep;}" }, { "index": 16, "before": "public FeatHdrRecord(RecordInputStream in) {futureHeader = new FtrHeader(in);isf_sharedFeatureType = in.readShort();reserved = in.readByte();cbHdrData = in.readInt();rgbHdrData = in.readRemainder();}", "after": "public FeatHdrRecord(RecordInputStream in1){futureHeader = new FtrHeader(in1);isf_sharedFeatureType = in1.ReadShort();reserved = (byte)in1.ReadByte();cbHdrData = in1.ReadInt();rgbHdrData = in1.ReadRemainder();}" }, { "index": 17, "before": "public CopyOnWriteArrayList() {elements = EmptyArray.OBJECT;}", "after": "public CopyOnWriteArrayList(){elements = libcore.util.EmptyArray.OBJECT;}" }, { "index": 18, "before": "public WriteRequest(DeleteRequest deleteRequest) {setDeleteRequest(deleteRequest);}", "after": "public WriteRequest(DeleteRequest deleteRequest){_deleteRequest = deleteRequest;}" }, { "index": 19, "before": "public void readFully(byte[] buf){_in.readFully(buf);}", "after": "public void ReadFully(byte[] buf){_in.ReadFully(buf);}" }, { "index": 20, "before": "public static Cell getCell(Row row, int columnIndex) {Cell cell = row.getCell(columnIndex);if (cell == null) {cell = row.createCell(columnIndex);}return cell;}", "after": "public static ICell GetCell(IRow row, int column){ICell cell = row.GetCell(column);if (cell == null){cell = row.CreateCell(column);}return cell;}" }, { "index": 21, "before": "public void setPackConfig(PackConfig pc) {this.packConfig = pc;}", "after": "public virtual void SetPackConfig(PackConfig pc){this.packConfig = pc;}" }, { "index": 22, "before": "public String getSignerName() {return \"HMAC-SHA1\";}", "after": "public override string GetSignerName(){return \"HMAC-SHA1\";}" }, { "index": 23, "before": "public IntervalSet or(IntSet a) {IntervalSet o = new IntervalSet();o.addAll(this);o.addAll(a);return o;}", "after": "public virtual Antlr4.Runtime.Misc.IntervalSet Or(IIntSet a){Antlr4.Runtime.Misc.IntervalSet o = new Antlr4.Runtime.Misc.IntervalSet();o.AddAll(this);o.AddAll(a);return o;}" }, { "index": 24, "before": "public String toString() {return getClass().getName() + \" [\" +_value +\"]\";}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(\" [\");sb.Append(value);sb.Append(\"]\");return sb.ToString();}" }, { "index": 25, "before": "public DescribeVpcEndpointServicePermissionsResult describeVpcEndpointServicePermissions(DescribeVpcEndpointServicePermissionsRequest request) {request = beforeClientExecution(request);return executeDescribeVpcEndpointServicePermissions(request);}", "after": "public virtual DescribeVpcEndpointServicePermissionsResponse DescribeVpcEndpointServicePermissions(DescribeVpcEndpointServicePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcEndpointServicePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcEndpointServicePermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 26, "before": "public static byte[] copyOfRange(byte[] original, int start, int end) {if (start > end) {throw new IllegalArgumentException();}int originalLength = original.length;if (start < 0 || start > originalLength) {throw new ArrayIndexOutOfBoundsException();}int resultLength = end - start;int copyLength = Math.min(resultLength, originalLength - start);byte[] result = new byte[resultLength];System.arraycopy(original, start, result, 0, copyLength);return result;}", "after": "public static byte[] copyOfRange(byte[] original, int start, int end){if (start > end){throw new System.ArgumentException();}int originalLength = original.Length;if (start < 0 || start > originalLength){throw new System.IndexOutOfRangeException();}int resultLength = end - start;int copyLength = System.Math.Min(resultLength, originalLength - start);byte[] result = new byte[resultLength];System.Array.Copy(original, start, result, 0, copyLength);return result;}" }, { "index": 27, "before": "public ListTopicsRequest(String nextToken) {setNextToken(nextToken);}", "after": "public ListTopicsRequest(string nextToken){_nextToken = nextToken;}" }, { "index": 28, "before": "public void finish(FieldInfos fis, int numDocs) throws IOException {if (!pendingDocs.isEmpty()) {flush();numDirtyChunks++; }if (numDocs != this.numDocs) {throw new RuntimeException(\"Wrote \" + this.numDocs + \" docs, finish called with numDocs=\" + numDocs);}indexWriter.finish(numDocs, vectorsStream.getFilePointer());vectorsStream.writeVLong(numChunks);vectorsStream.writeVLong(numDirtyChunks);CodecUtil.writeFooter(vectorsStream);}", "after": "public override void Finish(FieldInfos fis, int numDocs){if (!(pendingDocs.Count == 0)){Flush();}if (numDocs != this.numDocs){throw new Exception(\"Wrote \" + this.numDocs + \" docs, finish called with numDocs=\" + numDocs);}indexWriter.Finish(numDocs, vectorsStream.GetFilePointer());CodecUtil.WriteFooter(vectorsStream);}" }, { "index": 29, "before": "public boolean isIndexTerm(BytesRef term, TermStats stats) {if (count >= interval) {count = 1;return true;} else {count++;return false;}}", "after": "public override bool IsIndexTerm(BytesRef term, TermStats stats){if (count >= interval){count = 1;return true;}else{count++;return false;}}" }, { "index": 30, "before": "public AssociateDhcpOptionsResult associateDhcpOptions(AssociateDhcpOptionsRequest request) {request = beforeClientExecution(request);return executeAssociateDhcpOptions(request);}", "after": "public virtual AssociateDhcpOptionsResponse AssociateDhcpOptions(AssociateDhcpOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateDhcpOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateDhcpOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 31, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2) {return evaluate(srcRowIndex, srcColumnIndex, arg0, arg1, arg2, DEFAULT_ARG3);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2){return Evaluate(srcRowIndex, srcColumnIndex, arg0, arg1, arg2, DEFAULT_ARG3);}" }, { "index": 32, "before": "public void disconnect() {if (sock.isConnected())sock.disconnect();}", "after": "public virtual void Disconnect(){if (sock.IsConnected()){sock.Disconnect();}}" }, { "index": 33, "before": "public PredictionContext add(PredictionContext ctx) {if ( ctx==PredictionContext.EMPTY ) return PredictionContext.EMPTY;PredictionContext existing = cache.get(ctx);if ( existing!=null ) {return existing;}cache.put(ctx, ctx);return ctx;}", "after": "public PredictionContext Add(PredictionContext ctx){if (ctx == PredictionContext.EMPTY)return PredictionContext.EMPTY;PredictionContext existing = cache.Get(ctx);if (existing != null){return existing;}cache.Put(ctx, ctx);return ctx;}" }, { "index": 34, "before": "public UploadLayerPartResult uploadLayerPart(UploadLayerPartRequest request) {request = beforeClientExecution(request);return executeUploadLayerPart(request);}", "after": "public virtual UploadLayerPartResponse UploadLayerPart(UploadLayerPartRequest request){var options = new InvokeOptions();options.RequestMarshaller = UploadLayerPartRequestMarshaller.Instance;options.ResponseUnmarshaller = UploadLayerPartResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 35, "before": "public String getScriptText() {return getScriptText(null, null);}", "after": "public virtual string GetScriptText(){return GetScriptText(null, null);}" }, { "index": 36, "before": "public DescribeClusterSubnetGroupsResult describeClusterSubnetGroups() {return describeClusterSubnetGroups(new DescribeClusterSubnetGroupsRequest());}", "after": "public virtual DescribeClusterSubnetGroupsResponse DescribeClusterSubnetGroups(){return DescribeClusterSubnetGroups(new DescribeClusterSubnetGroupsRequest());}" }, { "index": 37, "before": "public char setIndex(int position) {if (position < getBeginIndex() || position > getEndIndex())throw new IllegalArgumentException(\"Illegal Position: \" + position);index = start + position;return current();}", "after": "public override char SetIndex(int position){if (position < BeginIndex || position > EndIndex)throw new ArgumentException(\"Illegal Position: \" + position);index = start + position;return Current;}" }, { "index": 38, "before": "public GetPhoneNumberOrderResult getPhoneNumberOrder(GetPhoneNumberOrderRequest request) {request = beforeClientExecution(request);return executeGetPhoneNumberOrder(request);}", "after": "public virtual GetPhoneNumberOrderResponse GetPhoneNumberOrder(GetPhoneNumberOrderRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPhoneNumberOrderRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPhoneNumberOrderResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 39, "before": "public EpsilonTransition(ATNState target, int outermostPrecedenceReturn) {super(target);this.outermostPrecedenceReturn = outermostPrecedenceReturn;}", "after": "public EpsilonTransition(ATNState target, int outermostPrecedenceReturn): base(target){this.outermostPrecedenceReturn = outermostPrecedenceReturn;}" }, { "index": 40, "before": "public DiffCommand setContextLines(int contextLines) {this.contextLines = contextLines;return this;}", "after": "public virtual NGit.Api.DiffCommand SetContextLines(int contextLines){this.contextLines = contextLines;return this;}" }, { "index": 41, "before": "public RejectVpcPeeringConnectionResult rejectVpcPeeringConnection(RejectVpcPeeringConnectionRequest request) {request = beforeClientExecution(request);return executeRejectVpcPeeringConnection(request);}", "after": "public virtual RejectVpcPeeringConnectionResponse RejectVpcPeeringConnection(RejectVpcPeeringConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectVpcPeeringConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectVpcPeeringConnectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 42, "before": "public static boolean equals(int[] array1, int[] array2) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length != array2.length) {return false;}for (int i = 0; i < array1.length; i++) {if (array1[i] != array2[i]) {return false;}}return true;}", "after": "public static bool equals(int[] array1, int[] array2){if (array1 == array2){return true;}if (array1 == null || array2 == null || array1.Length != array2.Length){return false;}{for (int i = 0; i < array1.Length; i++){if (array1[i] != array2[i]){return false;}}}return true;}" }, { "index": 43, "before": "public static void main(String[] args) throws IOException {if (args.length<1) {System.err.println(\"Usage: java QualityQueriesFinder \");System.exit(1);}QualityQueriesFinder qqf = new QualityQueriesFinder(FSDirectory.open(Paths.get(args[0])));String q[] = qqf.bestQueries(\"body\",20);for (int i=0; i(request, options);}" }, { "index": 46, "before": "public void print(Object obj) {print(String.valueOf(obj));}", "after": "public virtual void print(object obj){print(Sharpen.StringHelper.GetValueOf(obj));}" }, { "index": 47, "before": "public String toString() {return \"IndexFileDeleter.CommitPoint(\" + segmentsFileName + \")\";}", "after": "public override string ToString(){return \"IndexFileDeleter.CommitPoint(\" + segmentsFileName + \")\";}" }, { "index": 48, "before": "public synchronized boolean waitForGeneration(long targetGen, int maxMS) throws InterruptedException {if (targetGen > searchingGen) {reopenLock.lock();waitingGen = Math.max(waitingGen, targetGen);try {reopenCond.signal();} finally {reopenLock.unlock();}long startMS = System.nanoTime()/1000000;while (targetGen > searchingGen) {if (maxMS < 0) {wait();} else {long msLeft = (startMS + maxMS) - System.nanoTime()/1000000;if (msLeft <= 0) {return false;} else {wait(msLeft);}}}}return true;}", "after": "public virtual bool WaitForGeneration(long targetGen, int maxMS){long curGen = writer.Generation;if (targetGen > curGen){throw new System.ArgumentException(\"targetGen=\" + targetGen + \" was never returned by the ReferenceManager instance (current gen=\" + curGen + \")\");}lock (this)if (targetGen <= searchingGen)return true;else{waitingGen = Math.Max(waitingGen, targetGen);reopenCond.Set();available.Reset();}long startMS = Time.NanoTime() / 1000000;while (targetGen > Interlocked.Read(ref searchingGen)){if (maxMS < 0){available.WaitOne();}else{long msLeft = (startMS + maxMS) - (Time.NanoTime()) / 1000000;if (msLeft <= 0){return false;}else{available.WaitOne(TimeSpan.FromMilliseconds(msLeft));}}}return true;}" }, { "index": 49, "before": "public StringBuffer append(boolean b) {return append(b ? \"true\" : \"false\");}", "after": "public java.lang.StringBuffer append(bool b){return append(b ? \"true\" : \"false\");}" }, { "index": 50, "before": "public ByteBuffer put(int index, byte b) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer put(int index, byte b){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 51, "before": "public int getLineCount() {return lineCount;}", "after": "public virtual int GetLineCount(){return lineCount;}" }, { "index": 52, "before": "public boolean equals( Object o ) {return o instanceof DutchStemmer;}", "after": "public override bool Equals(object o){return o is DutchStemmer;}" }, { "index": 53, "before": "public CreateNotificationSubscriptionResult createNotificationSubscription(CreateNotificationSubscriptionRequest request) {request = beforeClientExecution(request);return executeCreateNotificationSubscription(request);}", "after": "public virtual CreateNotificationSubscriptionResponse CreateNotificationSubscription(CreateNotificationSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNotificationSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNotificationSubscriptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 54, "before": "public boolean isOutdated() {return snapshot.isModified(getFile());}", "after": "public virtual bool IsOutdated(){return snapshot.IsModified(GetFile());}" }, { "index": 55, "before": "public DescribeVirtualInterfacesResult describeVirtualInterfaces() {return describeVirtualInterfaces(new DescribeVirtualInterfacesRequest());}", "after": "public virtual DescribeVirtualInterfacesResponse DescribeVirtualInterfaces(){return DescribeVirtualInterfaces(new DescribeVirtualInterfacesRequest());}" }, { "index": 56, "before": "public void onChanged() {buildMap();for (DataSetObserver o : mObservers) {o.onChanged();}}", "after": "public override void onChanged(){this._enclosing.refreshExpGroupMetadataList(true, true);this._enclosing.notifyDataSetChanged();}" }, { "index": 57, "before": "public DeleteEventTrackerResult deleteEventTracker(DeleteEventTrackerRequest request) {request = beforeClientExecution(request);return executeDeleteEventTracker(request);}", "after": "public virtual DeleteEventTrackerResponse DeleteEventTracker(DeleteEventTrackerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEventTrackerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEventTrackerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 58, "before": "public boolean matches(ValueEval x) {if (x instanceof BlankEval) {switch(getCode()) {case CmpOp.NONE:case CmpOp.EQ:return _value.length() == 0;case CmpOp.NE:return _value.length() != 0;}return false;}if(!(x instanceof StringEval)) {return false;}String testedValue = ((StringEval) x).getStringValue();if (testedValue.length() < 1 && _value.length() < 1) {switch(getCode()) {case CmpOp.NONE: return true;case CmpOp.EQ: return false;case CmpOp.NE: return true;}return false;}if (_pattern != null) {return evaluate(_pattern.matcher(testedValue).matches());}return evaluate(testedValue.compareToIgnoreCase(_value));}", "after": "public override bool Matches(ValueEval x){if (x is BlankEval){switch (_operator.Code){case CmpOp.NONE:case CmpOp.EQ:return _value.Length == 0;case CmpOp.NE:return _value.Length != 0;}return false;}if (!(x is StringEval)){return false;}String testedValue = ((StringEval)x).StringValue;if ((testedValue.Length < 1 && _value.Length < 1)){switch (_operator.Code){case CmpOp.NONE: return true;case CmpOp.EQ: return false;case CmpOp.NE: return true;}return false;}if (_pattern != null){return Evaluate(_pattern.IsMatch(testedValue));}return Evaluate(string.Compare(testedValue, _value, StringComparison.CurrentCultureIgnoreCase));}" }, { "index": 59, "before": "public ListWebsiteAuthorizationProvidersResult listWebsiteAuthorizationProviders(ListWebsiteAuthorizationProvidersRequest request) {request = beforeClientExecution(request);return executeListWebsiteAuthorizationProviders(request);}", "after": "public virtual ListWebsiteAuthorizationProvidersResponse ListWebsiteAuthorizationProviders(ListWebsiteAuthorizationProvidersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListWebsiteAuthorizationProvidersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListWebsiteAuthorizationProvidersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 60, "before": "public void write(char[] buf, int offset, int count) {doWrite(buf, offset, count);}", "after": "public override void write(char[] buf, int offset, int count){doWrite(buf, offset, count);}" }, { "index": 61, "before": "public String formatAsString() {if(isWholeColumnReference()) {returnCellReference.convertNumToColString(_firstCell.getCol())+ \":\" +CellReference.convertNumToColString(_lastCell.getCol());}StringBuilder sb = new StringBuilder(32);sb.append(_firstCell.formatAsString());if(!_isSingleCell) {sb.append(CELL_DELIMITER);if(_lastCell.getSheetName() == null) {sb.append(_lastCell.formatAsString());} else {_lastCell.appendCellReference(sb);}}return sb.toString();}", "after": "public String FormatAsString(){if (IsWholeColumnReference()){returnCellReference.ConvertNumToColString(_firstCell.Col)+ \":\" +CellReference.ConvertNumToColString(_lastCell.Col);}StringBuilder sb = new StringBuilder(32);sb.Append(_firstCell.FormatAsString());if (!_isSingleCell){sb.Append(CELL_DELIMITER);if (_lastCell.SheetName == null){sb.Append(_lastCell.FormatAsString());}else{_lastCell.AppendCellReference(sb);}}return sb.ToString();}" }, { "index": 62, "before": "public Graphics create(){return new EscherGraphics(escherGroup, workbook,foreground, font, verticalPointsPerPixel );}", "after": "public EscherGraphics Create(){EscherGraphics g = new EscherGraphics(escherGroup, workbook,foreground, font, verticalPointsPerPixel);return g;}" }, { "index": 63, "before": "public DoubleDocValues(ValueSource vs) {this.vs = vs;}", "after": "public DoubleDocValues(ValueSource vs){this.m_vs = vs;}" }, { "index": 64, "before": "public static CharArraySet getDefaultStopSet(){return DefaultSetHolder.DEFAULT_STOP_SET;}", "after": "public static CharArraySet GetDefaultStopSet(){return DefaultSetHolder.DEFAULT_STOP_SET;}" }, { "index": 65, "before": "public DeleteLoadBalancerPolicyResult deleteLoadBalancerPolicy(DeleteLoadBalancerPolicyRequest request) {request = beforeClientExecution(request);return executeDeleteLoadBalancerPolicy(request);}", "after": "public virtual DeleteLoadBalancerPolicyResponse DeleteLoadBalancerPolicy(DeleteLoadBalancerPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLoadBalancerPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLoadBalancerPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 66, "before": "public ReplicationGroup decreaseReplicaCount(DecreaseReplicaCountRequest request) {request = beforeClientExecution(request);return executeDecreaseReplicaCount(request);}", "after": "public virtual DecreaseReplicaCountResponse DecreaseReplicaCount(DecreaseReplicaCountRequest request){var options = new InvokeOptions();options.RequestMarshaller = DecreaseReplicaCountRequestMarshaller.Instance;options.ResponseUnmarshaller = DecreaseReplicaCountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 67, "before": "public Result update(RevWalk walk) throws IOException {requireCanDoUpdate();try {return result = updateImpl(walk, new Store() {@OverrideResult execute(Result status) throws IOException {if (status == Result.NO_CHANGE)return status;return doUpdate(status);}});} catch (IOException x) {result = Result.IO_FAILURE;throw x;}}", "after": "public virtual RefUpdate.Result Update(RevWalk walk){RequireCanDoUpdate();try{return result = UpdateImpl(walk, new _Store_484(this));}catch (IOException x){result = RefUpdate.Result.IO_FAILURE;throw;}}" }, { "index": 68, "before": "public Set getChanged() {return Collections.unmodifiableSet(diff.getChanged());}", "after": "public virtual ICollection GetChanged(){return Sharpen.Collections.UnmodifiableSet(diff.GetChanged());}" }, { "index": 69, "before": "public static String toHex(long value) {StringBuilder sb = new StringBuilder(16);writeHex(sb, value, 16, \"\");return sb.toString();}", "after": "public static string ToHex(long value){return ToHex(value, 16);}" }, { "index": 70, "before": "public int createPlaceholder() {return _offset++;}", "after": "public int CreatePlaceholder(){return _offset++;}" }, { "index": 71, "before": "@Override public boolean equals(Object o) {if (o instanceof Map.Entry) {Map.Entry other = (Map.Entry) o;return (key == null ? other.getKey() == null : key.equals(other.getKey()))&& (value == null ? other.getValue() == null : value.equals(other.getValue()));}return false;}", "after": "public override bool Equals(object o){if (o is java.util.MapClass.Entry){java.util.MapClass.Entry other = (java.util.MapClass.Entry)o;return ((object)key == null ? other.getKey() == null : key.Equals(other.getKey())) && ((object)value == null ? other.getValue() == null : value.Equals(other.getValue()));}return false;}" }, { "index": 72, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1) {double result;try {double d0 = NumericFunction.singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.singleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);double logE = Math.log(d0);if (Double.compare(d1, Math.E) == 0) {result = logE;} else {result = logE / Math.log(d1);}NumericFunction.checkValue(result);} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1) {double result;try {double d0 = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);double logE = Math.Log(d0);double base1 = d1;if (base1 == Math.E) {result = logE;} else {result = logE / Math.Log(base1);}NumericFunction.CheckValue(result);} catch (EvaluationException e) {return e.GetErrorEval();}return new NumberEval(result);}" }, { "index": 73, "before": "public DeleteFilterResult deleteFilter(DeleteFilterRequest request) {request = beforeClientExecution(request);return executeDeleteFilter(request);}", "after": "public virtual DeleteFilterResponse DeleteFilter(DeleteFilterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFilterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFilterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 74, "before": "public CreateInstanceSnapshotResult createInstanceSnapshot(CreateInstanceSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateInstanceSnapshot(request);}", "after": "public virtual CreateInstanceSnapshotResponse CreateInstanceSnapshot(CreateInstanceSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateInstanceSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateInstanceSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 75, "before": "public List getTokens(int start, int stop) {return getTokens(start, stop, null);}", "after": "public virtual IList GetTokens(int start, int stop){return GetTokens(start, stop, null);}" }, { "index": 76, "before": "public static TermGroupFacetCollector createTermGroupFacetCollector(String groupField,String facetField,boolean facetFieldMultivalued,BytesRef facetPrefix,int initialSize) {if (facetFieldMultivalued) {return new MV(groupField, facetField, facetPrefix, initialSize);} else {return new SV(groupField, facetField, facetPrefix, initialSize);}}", "after": "public static TermGroupFacetCollector CreateTermGroupFacetCollector(string groupField,string facetField,bool facetFieldMultivalued,BytesRef facetPrefix,int initialSize){if (facetFieldMultivalued){return new MV(groupField, facetField, facetPrefix, initialSize);}else{return new SV(groupField, facetField, facetPrefix, initialSize);}}" }, { "index": 77, "before": "public RenameAlbumRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"RenameAlbum\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public RenameAlbumRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"RenameAlbum\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 78, "before": "@Override public boolean contains(Object object) {synchronized (mutex) {return c.contains(object);}}", "after": "public virtual bool contains(object @object){lock (mutex){return c.contains(@object);}}" }, { "index": 79, "before": "public CharBuffer put(char[] src, int srcOffset, int charCount) {if (charCount > remaining()) {throw new BufferOverflowException();}System.arraycopy(src, srcOffset, backingArray, offset + position, charCount);position += charCount;return this;}", "after": "public override java.nio.CharBuffer put(char[] src, int srcOffset, int charCount){if (charCount > remaining()){throw new java.nio.BufferOverflowException();}System.Array.Copy(src, srcOffset, backingArray, offset + _position, charCount);_position += charCount;return this;}" }, { "index": 80, "before": "public LegendRecord(RecordInputStream in) {field_1_xAxisUpperLeft = in.readInt();field_2_yAxisUpperLeft = in.readInt();field_3_xSize = in.readInt();field_4_ySize = in.readInt();field_5_type = in.readByte();field_6_spacing = in.readByte();field_7_options = in.readShort();}", "after": "public LegendRecord(RecordInputStream in1){field_1_xAxisUpperLeft = in1.ReadInt();field_2_yAxisUpperLeft = in1.ReadInt();field_3_xSize = in1.ReadInt();field_4_ySize = in1.ReadInt();field_5_type = (byte)in1.ReadByte();field_6_spacing = (byte)in1.ReadByte();field_7_options = in1.ReadShort();}" }, { "index": 81, "before": "public static byte[] encodedTypeString(int typeCode) {switch (typeCode) {case OBJ_COMMIT:return ENCODED_TYPE_COMMIT;case OBJ_TREE:return ENCODED_TYPE_TREE;case OBJ_BLOB:return ENCODED_TYPE_BLOB;case OBJ_TAG:return ENCODED_TYPE_TAG;default:throw new IllegalArgumentException(MessageFormat.format(JGitText.get().badObjectType, Integer.valueOf(typeCode)));}}", "after": "public static byte[] EncodedTypeString(int typeCode){switch (typeCode){case OBJ_COMMIT:{return ENCODED_TYPE_COMMIT;}case OBJ_TREE:{return ENCODED_TYPE_TREE;}case OBJ_BLOB:{return ENCODED_TYPE_BLOB;}case OBJ_TAG:{return ENCODED_TYPE_TAG;}default:{throw new ArgumentException(MessageFormat.Format(JGitText.Get().badObjectType, Sharpen.Extensions.ValueOf(typeCode)));}}}" }, { "index": 82, "before": "public ObjectId getCalulatedPatchId() {return ObjectId.fromRaw(digest.digest());}", "after": "public virtual ObjectId GetCalulatedPatchId(){return ObjectId.FromRaw(digest.Digest());}" }, { "index": 83, "before": "public DefaultRowHeightRecord() {field_1_option_flags = 0x0000;field_2_row_height = DEFAULT_ROW_HEIGHT;}", "after": "public DefaultRowHeightRecord(){field_1_option_flags = 0x0000;field_2_row_height = DEFAULT_ROW_HEIGHT;}" }, { "index": 84, "before": "public final ByteBuffer encode(CharBuffer buffer) {try {return newEncoder().onMalformedInput(CodingErrorAction.REPLACE).onUnmappableCharacter(CodingErrorAction.REPLACE).encode(buffer);} catch (CharacterCodingException ex) {throw new Error(ex.getMessage(), ex);}}", "after": "public java.nio.ByteBuffer encode(java.nio.CharBuffer buffer){try{return newEncoder().onMalformedInput(java.nio.charset.CodingErrorAction.REPLACE).onUnmappableCharacter(java.nio.charset.CodingErrorAction.REPLACE).encode(buffer);}catch (java.nio.charset.CharacterCodingException ex){throw new System.Exception(ex.Message, ex);}}" }, { "index": 85, "before": "public final FloatBuffer get(float[] dst, int dstOffset, int floatCount) {if (floatCount > remaining()) {throw new BufferUnderflowException();}System.arraycopy(backingArray, offset + position, dst, dstOffset, floatCount);position += floatCount;return this;}", "after": "public sealed override java.nio.FloatBuffer get(float[] dst, int dstOffset, int floatCount){if (floatCount > remaining()){throw new java.nio.BufferUnderflowException();}System.Array.Copy(backingArray, offset + _position, dst, dstOffset, floatCount);_position += floatCount;return this;}" }, { "index": 86, "before": "public boolean hasNext() {return nextEntry != null;}", "after": "public virtual bool hasNext(){return this._nextEntry != null;}" }, { "index": 87, "before": "public DeleteNatGatewayResult deleteNatGateway(DeleteNatGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteNatGateway(request);}", "after": "public virtual DeleteNatGatewayResponse DeleteNatGateway(DeleteNatGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNatGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNatGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 88, "before": "public String resolveNameXText(int refIndex, int definedNameIndex) {return linkTable.resolveNameXText(refIndex, definedNameIndex, this);}", "after": "public String ResolveNameXText(int reFindex, int definedNameIndex){return linkTable.ResolveNameXText(reFindex, definedNameIndex, this);}" }, { "index": 89, "before": "public void setMultiFields(CharSequence[] fields) {if (fields == null) {fields = new CharSequence[0];}getQueryConfigHandler().set(ConfigurationKeys.MULTI_FIELDS, fields);}", "after": "public virtual void SetMultiFields(string[] fields){if (fields == null){fields = new string[0];}QueryConfigHandler.Set(ConfigurationKeys.MULTI_FIELDS, fields);}" }, { "index": 90, "before": "public boolean isCancelled() {lock.lock();try {return pm.isCancelled();} finally {lock.unlock();}}", "after": "public override bool IsCancelled(){Lock.Lock();try{return pm.IsCancelled();}finally{Lock.Unlock();}}" }, { "index": 91, "before": "public RemoveTargetsResult removeTargets(RemoveTargetsRequest request) {request = beforeClientExecution(request);return executeRemoveTargets(request);}", "after": "public virtual RemoveTargetsResponse RemoveTargets(RemoveTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveTargetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 92, "before": "public FuzzyQuery(Term term, int maxEdits, int prefixLength, int maxExpansions, boolean transpositions) {super(term.field());if (maxEdits < 0 || maxEdits > LevenshteinAutomata.MAXIMUM_SUPPORTED_DISTANCE) {throw new IllegalArgumentException(\"maxEdits must be between 0 and \" + LevenshteinAutomata.MAXIMUM_SUPPORTED_DISTANCE);}if (prefixLength < 0) {throw new IllegalArgumentException(\"prefixLength cannot be negative.\");}if (maxExpansions <= 0) {throw new IllegalArgumentException(\"maxExpansions must be positive.\");}this.term = term;this.maxEdits = maxEdits;this.prefixLength = prefixLength;this.transpositions = transpositions;this.maxExpansions = maxExpansions;int[] codePoints = FuzzyTermsEnum.stringToUTF32(term.text());this.termLength = codePoints.length;this.automata = FuzzyTermsEnum.buildAutomata(term.text(), codePoints, prefixLength, transpositions, maxEdits);setRewriteMethod(new MultiTermQuery.TopTermsBlendedFreqScoringRewrite(maxExpansions));this.ramBytesUsed = calculateRamBytesUsed(term, this.automata);}", "after": "public FuzzyQuery(Term term, int maxEdits, int prefixLength, int maxExpansions, bool transpositions): base(term.Field){if (maxEdits < 0 || maxEdits > LevenshteinAutomata.MAXIMUM_SUPPORTED_DISTANCE){throw new System.ArgumentException(\"maxEdits must be between 0 and \" + LevenshteinAutomata.MAXIMUM_SUPPORTED_DISTANCE);}if (prefixLength < 0){throw new System.ArgumentException(\"prefixLength cannot be negative.\");}if (maxExpansions < 0){throw new System.ArgumentException(\"maxExpansions cannot be negative.\");}this.term = term;this.maxEdits = maxEdits;this.prefixLength = prefixLength;this.transpositions = transpositions;this.maxExpansions = maxExpansions;MultiTermRewriteMethod = new MultiTermQuery.TopTermsScoringBooleanQueryRewrite(maxExpansions);}" }, { "index": 93, "before": "public CheckoutCommand checkout() {return new CheckoutCommand(repo);}", "after": "public virtual CheckoutCommand Checkout(){return new CheckoutCommand(repo);}" }, { "index": 94, "before": "public ValueEval evaluate(String sheetName, int rowIndex, int columnIndex) {EvaluationCell cell = _sewb.getEvaluationCell(sheetName, rowIndex, columnIndex);switch (cell.getCellType()) {case BOOLEAN:return BoolEval.valueOf(cell.getBooleanCellValue());case ERROR:return ErrorEval.valueOf(cell.getErrorCellValue());case FORMULA:return _evaluator.evaluate(cell);case NUMERIC:return new NumberEval(cell.getNumericCellValue());case STRING:return new StringEval(cell.getStringCellValue());case BLANK:return null;default:throw new IllegalStateException(\"Bad cell type (\" + cell.getCellType() + \")\");}}", "after": "public ValueEval Evaluate(String sheetName, int rowIndex, int columnIndex){IEvaluationCell cell = _sewb.GetEvaluationCell(sheetName, rowIndex, columnIndex);switch (cell.CellType){case CellType.Boolean:return BoolEval.ValueOf(cell.BooleanCellValue);case CellType.Error:return ErrorEval.ValueOf(cell.ErrorCellValue);case CellType.Formula:return _evaluator.Evaluate(cell);case CellType.Numeric:return new NumberEval(cell.NumericCellValue);case CellType.String:return new StringEval(cell.StringCellValue);case CellType.Blank:return null;}throw new InvalidOperationException(\"Bad cell type (\" + cell.CellType + \")\");}" }, { "index": 95, "before": "public PutFileSystemPolicyResult putFileSystemPolicy(PutFileSystemPolicyRequest request) {request = beforeClientExecution(request);return executePutFileSystemPolicy(request);}", "after": "public virtual PutFileSystemPolicyResponse PutFileSystemPolicy(PutFileSystemPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutFileSystemPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = PutFileSystemPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 96, "before": "public long fileLength(String name) throws IOException {ensureOpen();FileEntry e = entries.get(IndexFileNames.stripSegmentName(name));if (e == null)throw new FileNotFoundException(name);return e.length;}", "after": "public override long FileLength(string name){EnsureOpen();if (this.writer != null){return writer.FileLength(name);}FileEntry e = entries[IndexFileNames.StripSegmentName(name)];if (e == null){throw new FileNotFoundException(name);}return e.Length;}" }, { "index": 97, "before": "public DescribeCacheClustersResult describeCacheClusters() {return describeCacheClusters(new DescribeCacheClustersRequest());}", "after": "public virtual DescribeCacheClustersResponse DescribeCacheClusters(){return DescribeCacheClusters(new DescribeCacheClustersRequest());}" }, { "index": 98, "before": "public void setObjectId(RevObject obj) {setObjectId(obj, obj.getType());}", "after": "public virtual void SetObjectId(RevObject obj){SetObjectId(obj, obj.Type);}" }, { "index": 99, "before": "public boolean rowHasCells(int row) {if (row >= records.length) {return false;}CellValueRecordInterface[] rowCells=records[row];if(rowCells==null) return false;for(int col=0;col records.Length - 1) return false; CellValueRecordInterface[] rowCells = records[row]; if (rowCells == null) return false;for (int col = 0; col < rowCells.Length; col++){if (rowCells[col] != null) return true;}return false;}" }, { "index": 100, "before": "public TokenStream create(TokenStream input) {return new SpanishLightStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new SpanishLightStemFilter(input);}" }, { "index": 101, "before": "public StoredField(String name, double value) {super(name, TYPE);fieldsData = value;}", "after": "public StoredField(string name, int value): base(name, TYPE){FieldsData = new Int32(value);}" }, { "index": 102, "before": "public DescribePublicIpv4PoolsResult describePublicIpv4Pools(DescribePublicIpv4PoolsRequest request) {request = beforeClientExecution(request);return executeDescribePublicIpv4Pools(request);}", "after": "public virtual DescribePublicIpv4PoolsResponse DescribePublicIpv4Pools(DescribePublicIpv4PoolsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePublicIpv4PoolsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePublicIpv4PoolsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 103, "before": "public IndexRevision(IndexWriter writer) throws IOException {IndexDeletionPolicy delPolicy = writer.getConfig().getIndexDeletionPolicy();if (!(delPolicy instanceof SnapshotDeletionPolicy)) {throw new IllegalArgumentException(\"IndexWriter must be created with SnapshotDeletionPolicy\");}this.writer = writer;this.sdp = (SnapshotDeletionPolicy) delPolicy;this.commit = sdp.snapshot();this.version = revisionVersion(commit);this.sourceFiles = revisionFiles(commit);}", "after": "public IndexRevision(IndexWriter writer){sdp = writer.Config.IndexDeletionPolicy as SnapshotDeletionPolicy;if (sdp == null)throw new ArgumentException(\"IndexWriter must be created with SnapshotDeletionPolicy\", \"writer\");this.writer = writer;this.commit = sdp.Snapshot();this.version = RevisionVersion(commit);this.sourceFiles = RevisionFiles(commit);}" }, { "index": 104, "before": "public void setTabIdArray(short[] array) {_tabids = array.clone();}", "after": "public void SetTabIdArray(short[] array){_tabids = array;}" }, { "index": 105, "before": "public UpdateObjectAttributesResult updateObjectAttributes(UpdateObjectAttributesRequest request) {request = beforeClientExecution(request);return executeUpdateObjectAttributes(request);}", "after": "public virtual UpdateObjectAttributesResponse UpdateObjectAttributes(UpdateObjectAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateObjectAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateObjectAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 106, "before": "public GetGameSessionLogUrlResult getGameSessionLogUrl(GetGameSessionLogUrlRequest request) {request = beforeClientExecution(request);return executeGetGameSessionLogUrl(request);}", "after": "public virtual GetGameSessionLogUrlResponse GetGameSessionLogUrl(GetGameSessionLogUrlRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetGameSessionLogUrlRequestMarshaller.Instance;options.ResponseUnmarshaller = GetGameSessionLogUrlResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 107, "before": "public RefCount(T object) {this.object = object;}", "after": "public RefCount(T @object){this.m_object = @object;}" }, { "index": 108, "before": "public ByteBuffer put(int index, byte b) {checkIndex(index);backingArray[offset + index] = b;return this;}", "after": "public override java.nio.ByteBuffer put(int index, byte b){checkIndex(index);backingArray[offset + index] = b;return this;}" }, { "index": 109, "before": "public IntervalSet LOOK(ATNState s, ATNState stopState, RuleContext ctx) {IntervalSet r = new IntervalSet();boolean seeThruPreds = true; PredictionContext lookContext = ctx != null ? PredictionContext.fromRuleContext(s.atn, ctx) : null;_LOOK(s, stopState, lookContext,r, new HashSet(), new BitSet(), seeThruPreds, true);return r;}", "after": "public virtual IntervalSet Look(ATNState s, ATNState stopState, RuleContext ctx){IntervalSet r = new IntervalSet();bool seeThruPreds = true;PredictionContext lookContext = ctx != null ? PredictionContext.FromRuleContext(s.atn, ctx) : null;Look(s, stopState, lookContext, r, new HashSet(), new BitSet(), seeThruPreds, true);return r;}" }, { "index": 110, "before": "public int getValidationType() {return _validationType;}", "after": "public int GetValidationType(){return _validationType;}" }, { "index": 111, "before": "public DeleteTagCommand tagDelete() {return new DeleteTagCommand(repo);}", "after": "public virtual DeleteTagCommand TagDelete(){return new DeleteTagCommand(repo);}" }, { "index": 112, "before": "public SortRescorer(Sort sort) {this.sort = sort;}", "after": "public SortRescorer(Sort sort){this.sort = sort;}" }, { "index": 113, "before": "public void verifyBelongsToWorkbook(HSSFWorkbook wb) {if(wb.getWorkbook() != _workbook) {throw new IllegalArgumentException(\"This Style does not belong to the supplied Workbook. Are you trying to assign a style from one workbook to the cell of a differnt workbook?\");}}", "after": "public void VerifyBelongsToWorkbook(HSSFWorkbook wb){if (wb.Workbook != _workbook){throw new ArgumentException(\"This Style does not belong to the supplied Workbook. Are you trying to assign a style from one workbook to the cell of a differnt workbook?\");}}" }, { "index": 114, "before": "public StringBuffer insert(int index, Object obj) {return insert(index, obj == null ? \"null\" : obj.toString());}", "after": "public java.lang.StringBuffer insert(int index, object obj){return insert(index, obj == null ? \"null\" : obj.ToString());}" }, { "index": 115, "before": "public boolean containsKey(CharSequence cs) {if(cs == null)throw new NullPointerException();return false;}", "after": "public override bool ContainsKey(ICharSequence text){if (text == null){throw new ArgumentNullException(\"text\");}return false;}" }, { "index": 116, "before": "public int compareTo(HSSFRichTextString r) {return _string.compareTo(r._string);}", "after": "public int CompareTo(HSSFRichTextString other){return _string.CompareTo(other._string);}" }, { "index": 117, "before": "public RequestSpotInstancesRequest(String spotPrice) {setSpotPrice(spotPrice);}", "after": "public RequestSpotInstancesRequest(string spotPrice){_spotPrice = spotPrice;}" }, { "index": 118, "before": "public ObjectId getNewObjectId() {return newObjectId;}", "after": "public virtual ObjectId GetNewObjectId(){return newObjectId;}" }, { "index": 119, "before": "public void setDeltaBaseAsOffset(boolean deltaBaseAsOffset) {this.deltaBaseAsOffset = deltaBaseAsOffset;}", "after": "public virtual void SetDeltaBaseAsOffset(bool deltaBaseAsOffset){this.deltaBaseAsOffset = deltaBaseAsOffset;}" }, { "index": 120, "before": "public LengthFilterFactory(Map args) {super(args);min = requireInt(args, MIN_KEY);max = requireInt(args, MAX_KEY);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public LengthFilterFactory(IDictionary args): base(args){min = RequireInt32(args, MIN_KEY);max = RequireInt32(args, MAX_KEY);enablePositionIncrements = GetBoolean(args, \"enablePositionIncrements\", true);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 121, "before": "public TruncateTokenFilter(TokenStream input, int length) {super(input);if (length < 1)throw new IllegalArgumentException(\"length parameter must be a positive number: \" + length);this.length = length;}", "after": "public TruncateTokenFilter(TokenStream input, int length): base(input){if (length < 1){throw new System.ArgumentOutOfRangeException(\"length parameter must be a positive number: \" + length);}this.length = length;this.termAttribute = AddAttribute();this.keywordAttr = AddAttribute();}" }, { "index": 122, "before": "public ListDomainsResult listDomains() {return listDomains(new ListDomainsRequest());}", "after": "public virtual ListDomainsResponse ListDomains(){return ListDomains(new ListDomainsRequest());}" }, { "index": 123, "before": "public ArabicStemFilter create(TokenStream input) {return new ArabicStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new ArabicStemFilter(input);}" }, { "index": 124, "before": "public PushCommand setRefSpecs(RefSpec... specs) {checkCallable();this.refSpecs.clear();Collections.addAll(refSpecs, specs);return this;}", "after": "public virtual NGit.Api.PushCommand SetRefSpecs(IList specs){CheckCallable();this.refSpecs.Clear();Sharpen.Collections.AddAll(this.refSpecs, specs);return this;}" }, { "index": 125, "before": "public BlameGenerator setDiffAlgorithm(DiffAlgorithm algorithm) {diffAlgorithm = algorithm;return this;}", "after": "public virtual NGit.Blame.BlameGenerator SetDiffAlgorithm(DiffAlgorithm algorithm){diffAlgorithm = algorithm;return this;}" }, { "index": 126, "before": "public GroupingSearch setIncludeMaxScore(boolean includeMaxScore) {this.includeMaxScore = includeMaxScore;return this;}", "after": "public virtual GroupingSearch SetIncludeMaxScore(bool includeMaxScore){this.includeMaxScore = includeMaxScore;return this;}" }, { "index": 127, "before": "public Field[] createIndexableFields(Shape shape) {double distErr = SpatialArgs.calcDistanceFromErrPct(shape, distErrPct, ctx);return createIndexableFields(shape, distErr);}", "after": "public override Field[] CreateIndexableFields(IShape shape){double distErr = SpatialArgs.CalcDistanceFromErrPct(shape, m_distErrPct, m_ctx);return CreateIndexableFields(shape, distErr);}" }, { "index": 128, "before": "public PutMethodResponseResult putMethodResponse(PutMethodResponseRequest request) {request = beforeClientExecution(request);return executePutMethodResponse(request);}", "after": "public virtual PutMethodResponseResponse PutMethodResponse(PutMethodResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutMethodResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = PutMethodResponseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 129, "before": "public LegacyCredentials(Credential legacyCrendential) {this.legacyCredential = legacyCrendential;}", "after": "public LegacyCredentials(Credential legacyCredential){this.legacyCredential = legacyCredential;}" }, { "index": 130, "before": "public DescribeFeatureTransformationResult describeFeatureTransformation(DescribeFeatureTransformationRequest request) {request = beforeClientExecution(request);return executeDescribeFeatureTransformation(request);}", "after": "public virtual DescribeFeatureTransformationResponse DescribeFeatureTransformation(DescribeFeatureTransformationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFeatureTransformationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFeatureTransformationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 131, "before": "public DeleteRouteResult deleteRoute(DeleteRouteRequest request) {request = beforeClientExecution(request);return executeDeleteRoute(request);}", "after": "public virtual DeleteRouteResponse DeleteRoute(DeleteRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRouteResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 132, "before": "public AssociatePhoneNumbersWithVoiceConnectorResult associatePhoneNumbersWithVoiceConnector(AssociatePhoneNumbersWithVoiceConnectorRequest request) {request = beforeClientExecution(request);return executeAssociatePhoneNumbersWithVoiceConnector(request);}", "after": "public virtual AssociatePhoneNumbersWithVoiceConnectorResponse AssociatePhoneNumbersWithVoiceConnector(AssociatePhoneNumbersWithVoiceConnectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociatePhoneNumbersWithVoiceConnectorRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociatePhoneNumbersWithVoiceConnectorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 133, "before": "public long ramBytesUsed() {long size = BASE_RAM_BYTES_USED + RamUsageEstimator.shallowSizeOf(blocks);if (blocks.length > 0) {size += (blocks.length - 1) * bytesUsedPerBlock;size += RamUsageEstimator.sizeOf(blocks[blocks.length - 1]);}return size;}", "after": "public long RamBytesUsed(){return ((blocks != null) ? (blockSize * blocks.Length) : 0);}" }, { "index": 134, "before": "public short readShort(){return _in.readShort();}", "after": "public short ReadShort(){return _in.ReadShort();}" }, { "index": 135, "before": "public UpdatePipelineNotificationsResult updatePipelineNotifications(UpdatePipelineNotificationsRequest request) {request = beforeClientExecution(request);return executeUpdatePipelineNotifications(request);}", "after": "public virtual UpdatePipelineNotificationsResponse UpdatePipelineNotifications(UpdatePipelineNotificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePipelineNotificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePipelineNotificationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 136, "before": "public StringWriter append(char c) {write(c);return this;}", "after": "public override java.io.Writer append(char c){write(c);return this;}" }, { "index": 137, "before": "public Iterator iterator() {return new ValueIterator();}", "after": "public override java.util.Iterator iterator(){return new java.util.Hashtable.ValueIterator(this._enclosing);}" }, { "index": 138, "before": "public UnitsRecord(RecordInputStream in) {field_1_units = in.readShort();}", "after": "public UnitsRecord(RecordInputStream in1){field_1_units = in1.ReadShort();}" }, { "index": 139, "before": "public boolean isEmpty() {return first;}", "after": "public virtual bool IsEmpty(){return first;}" }, { "index": 140, "before": "public String toString() {return \"ANY_DIFF\"; }", "after": "public override string ToString(){return \"ANY_DIFF\";}" }, { "index": 141, "before": "public UpdateDomainNameResult updateDomainName(UpdateDomainNameRequest request) {request = beforeClientExecution(request);return executeUpdateDomainName(request);}", "after": "public virtual UpdateDomainNameResponse UpdateDomainName(UpdateDomainNameRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDomainNameRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDomainNameResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 142, "before": "public DeleteSnapshotRequest(String snapshotId) {setSnapshotId(snapshotId);}", "after": "public DeleteSnapshotRequest(string snapshotId){_snapshotId = snapshotId;}" }, { "index": 143, "before": "public void readFully(byte[] buf) {readFully(buf, 0, buf.length);}", "after": "public void ReadFully(byte[] buf){ReadFully(buf, 0, buf.Length);}" }, { "index": 144, "before": "public SliceReader(IntBlockPool pool) {this.pool = pool;}", "after": "public SliceReader(Int32BlockPool pool){this.pool = pool;}" }, { "index": 145, "before": "public void setDeltaSearchMemoryLimit(long memoryLimit) {deltaSearchMemoryLimit = memoryLimit;}", "after": "public virtual void SetDeltaSearchMemoryLimit(long memoryLimit){deltaSearchMemoryLimit = memoryLimit;}" }, { "index": 146, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[BOOKBOOL]\\n\");buffer.append(\" .savelinkvalues = \").append(Integer.toHexString(getSaveLinkValues())).append(\"\\n\");buffer.append(\"[/BOOKBOOL]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[BOOKBOOL]\\n\");buffer.Append(\" .savelinkvalues = \").Append(StringUtil.ToHexString(SaveLinkValues)).Append(\"\\n\");buffer.Append(\"[/BOOKBOOL]\\n\");return buffer.ToString();}" }, { "index": 147, "before": "public DescribeTransitGatewayAttachmentsResult describeTransitGatewayAttachments(DescribeTransitGatewayAttachmentsRequest request) {request = beforeClientExecution(request);return executeDescribeTransitGatewayAttachments(request);}", "after": "public virtual DescribeTransitGatewayAttachmentsResponse DescribeTransitGatewayAttachments(DescribeTransitGatewayAttachmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTransitGatewayAttachmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTransitGatewayAttachmentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 148, "before": "public CreateVpcResult createVpc(CreateVpcRequest request) {request = beforeClientExecution(request);return executeCreateVpc(request);}", "after": "public virtual CreateVpcResponse CreateVpc(CreateVpcRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVpcRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVpcResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 149, "before": "public DescribeElasticGpusResult describeElasticGpus(DescribeElasticGpusRequest request) {request = beforeClientExecution(request);return executeDescribeElasticGpus(request);}", "after": "public virtual DescribeElasticGpusResponse DescribeElasticGpus(DescribeElasticGpusRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeElasticGpusRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeElasticGpusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 150, "before": "public IntBuffer put(int c) {if (position == limit) {throw new BufferOverflowException();}byteBuffer.putInt(position++ * SizeOf.INT, c);return this;}", "after": "public override java.nio.IntBuffer put(int c){if (_position == _limit){throw new java.nio.BufferOverflowException();}byteBuffer.putInt(_position++ * libcore.io.SizeOf.INT, c);return this;}" }, { "index": 151, "before": "public UpdateEndpointsBatchResult updateEndpointsBatch(UpdateEndpointsBatchRequest request) {request = beforeClientExecution(request);return executeUpdateEndpointsBatch(request);}", "after": "public virtual UpdateEndpointsBatchResponse UpdateEndpointsBatch(UpdateEndpointsBatchRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateEndpointsBatchRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateEndpointsBatchResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 152, "before": "public void fromRaw(byte[] bs, int p) {w1 = NB.decodeInt32(bs, p);w2 = NB.decodeInt32(bs, p + 4);w3 = NB.decodeInt32(bs, p + 8);w4 = NB.decodeInt32(bs, p + 12);w5 = NB.decodeInt32(bs, p + 16);}", "after": "public virtual void FromRaw(byte[] bs, int p){w1 = NB.DecodeInt32(bs, p);w2 = NB.DecodeInt32(bs, p + 4);w3 = NB.DecodeInt32(bs, p + 8);w4 = NB.DecodeInt32(bs, p + 12);w5 = NB.DecodeInt32(bs, p + 16);}" }, { "index": 153, "before": "public static OpenSshConfig get(FS fs) {File home = fs.userHome();if (home == null)home = new File(\".\").getAbsoluteFile(); final File config = new File(new File(home, SshConstants.SSH_DIR),SshConstants.CONFIG);return new OpenSshConfig(home, config);}", "after": "public static NGit.Transport.OpenSshConfig Get(FS fs){FilePath home = fs.UserHome();if (home == null){home = new FilePath(\".\").GetAbsoluteFile();}FilePath config = new FilePath(new FilePath(home, \".ssh\"), Constants.CONFIG);NGit.Transport.OpenSshConfig osc = new NGit.Transport.OpenSshConfig(home, config);osc.Refresh();return osc;}" }, { "index": 154, "before": "public VCenterRecord(RecordInputStream in) {field_1_vcenter = in.readShort();}", "after": "public VCenterRecord(RecordInputStream in1){field_1_vcenter = in1.ReadShort();}" }, { "index": 155, "before": "public synchronized InputStream obtainFile(String sessionID, String source, String fileName) throws IOException {ensureOpen();ReplicationSession session = sessions.get(sessionID);if (session != null && session.isExpired(expirationThresholdMilllis)) {releaseSession(sessionID);session = null;}if (session == null) {throw new SessionExpiredException(\"session (\" + sessionID + \") expired while obtaining file: source=\" + source+ \" file=\" + fileName);}sessions.get(sessionID).markAccessed();return session.revision.revision.open(source, fileName);}", "after": "public virtual Stream ObtainFile(string sessionId, string source, string fileName){lock (padlock){EnsureOpen();ReplicationSession session;if (sessions.TryGetValue(sessionId, out session) && session != null && session.IsExpired(ExpirationThreshold)){ReleaseSession(sessionId);session = null;}if (session == null){throw new SessionExpiredException(string.Format(\"session ({0}) expired while obtaining file: source={1} file={2}\", sessionId, source, fileName));}sessions[sessionId].MarkAccessed();return session.Revision.Revision.Open(source, fileName);}}" }, { "index": 156, "before": "public DownloadDefaultKeyPairResult downloadDefaultKeyPair(DownloadDefaultKeyPairRequest request) {request = beforeClientExecution(request);return executeDownloadDefaultKeyPair(request);}", "after": "public virtual DownloadDefaultKeyPairResponse DownloadDefaultKeyPair(DownloadDefaultKeyPairRequest request){var options = new InvokeOptions();options.RequestMarshaller = DownloadDefaultKeyPairRequestMarshaller.Instance;options.ResponseUnmarshaller = DownloadDefaultKeyPairResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 157, "before": "public DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest request) {request = beforeClientExecution(request);return executeDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(request);}", "after": "public virtual DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResponse DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 158, "before": "public ResetEbsDefaultKmsKeyIdResult resetEbsDefaultKmsKeyId(ResetEbsDefaultKmsKeyIdRequest request) {request = beforeClientExecution(request);return executeResetEbsDefaultKmsKeyId(request);}", "after": "public virtual ResetEbsDefaultKmsKeyIdResponse ResetEbsDefaultKmsKeyId(ResetEbsDefaultKmsKeyIdRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetEbsDefaultKmsKeyIdRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetEbsDefaultKmsKeyIdResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 159, "before": "public int getPropertiesPerBlock() {return bigBlockSize / POIFSConstants.PROPERTY_SIZE;}", "after": "public int GetPropertiesPerBlock(){return bigBlockSize / POIFSConstants.PROPERTY_SIZE;}" }, { "index": 160, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE) {return this.evaluate(srcRowIndex, srcColumnIndex, numberVE, null);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE){return this.Evaluate(srcRowIndex, srcColumnIndex, numberVE, null);}" }, { "index": 161, "before": "public GetFindingsStatisticsResult getFindingsStatistics(GetFindingsStatisticsRequest request) {request = beforeClientExecution(request);return executeGetFindingsStatistics(request);}", "after": "public virtual GetFindingsStatisticsResponse GetFindingsStatistics(GetFindingsStatisticsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFindingsStatisticsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFindingsStatisticsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 162, "before": "public DBCluster modifyDBCluster(ModifyDBClusterRequest request) {request = beforeClientExecution(request);return executeModifyDBCluster(request);}", "after": "public virtual ModifyDBClusterResponse ModifyDBCluster(ModifyDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 163, "before": "public LimitTokenCountFilterFactory(Map args) {super(args);maxTokenCount = requireInt(args, MAX_TOKEN_COUNT_KEY);consumeAllTokens = getBoolean(args, CONSUME_ALL_TOKENS_KEY, false);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public LimitTokenCountFilterFactory(IDictionary args): base(args){maxTokenCount = RequireInt32(args, MAX_TOKEN_COUNT_KEY);consumeAllTokens = GetBoolean(args, CONSUME_ALL_TOKENS_KEY, false);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 164, "before": "public MatchNoDocsQuery build(QueryNode queryNode) throws QueryNodeException {if (!(queryNode instanceof MatchNoDocsQueryNode)) {throw new QueryNodeException(new MessageImpl(QueryParserMessages.LUCENE_QUERY_CONVERSION_ERROR, queryNode.toQueryString(new EscapeQuerySyntaxImpl()), queryNode.getClass().getName()));}return new MatchNoDocsQuery();}", "after": "public virtual Query Build(IQueryNode queryNode){if (!(queryNode is MatchNoDocsQueryNode)){throw new QueryNodeException(new Message(QueryParserMessages.LUCENE_QUERY_CONVERSION_ERROR, queryNode.ToQueryString(new EscapeQuerySyntax()), queryNode.GetType().Name));}return new BooleanQuery();}" }, { "index": 165, "before": "public GetUserPolicyRequest(String userName, String policyName) {setUserName(userName);setPolicyName(policyName);}", "after": "public GetUserPolicyRequest(string userName, string policyName){_userName = userName;_policyName = policyName;}" }, { "index": 166, "before": "public Cluster rotateEncryptionKey(RotateEncryptionKeyRequest request) {request = beforeClientExecution(request);return executeRotateEncryptionKey(request);}", "after": "public virtual RotateEncryptionKeyResponse RotateEncryptionKey(RotateEncryptionKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = RotateEncryptionKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = RotateEncryptionKeyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 167, "before": "public int getLinesAdded() {return nAdded;}", "after": "public virtual int GetLinesAdded(){return nAdded;}" }, { "index": 168, "before": "public List getHiddenTokensToLeft(int tokenIndex, int channel) {lazyInit();if ( tokenIndex<0 || tokenIndex>=tokens.size() ) {throw new IndexOutOfBoundsException(tokenIndex+\" not in 0..\"+(tokens.size()-1));}if (tokenIndex == 0) {return null;}int prevOnChannel =previousTokenOnChannel(tokenIndex - 1, Lexer.DEFAULT_TOKEN_CHANNEL);if ( prevOnChannel == tokenIndex - 1 ) return null;int from = prevOnChannel+1;int to = tokenIndex-1;return filterForChannel(from, to, channel);}", "after": "public virtual IList GetHiddenTokensToLeft(int tokenIndex, int channel){LazyInit();if (tokenIndex < 0 || tokenIndex >= tokens.Count){throw new ArgumentOutOfRangeException(tokenIndex + \" not in 0..\" + (tokens.Count - 1));}if (tokenIndex == 0){return null;}int prevOnChannel = PreviousTokenOnChannel(tokenIndex - 1, Lexer.DefaultTokenChannel);if (prevOnChannel == tokenIndex - 1){return null;}int from = prevOnChannel + 1;int to = tokenIndex - 1;return FilterForChannel(from, to, channel);}" }, { "index": 169, "before": "public ValidDBInstanceModificationsMessage describeValidDBInstanceModifications(DescribeValidDBInstanceModificationsRequest request) {request = beforeClientExecution(request);return executeDescribeValidDBInstanceModifications(request);}", "after": "public virtual DescribeValidDBInstanceModificationsResponse DescribeValidDBInstanceModifications(DescribeValidDBInstanceModificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeValidDBInstanceModificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeValidDBInstanceModificationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 170, "before": "public final void add(RevFlag flag) {flags |= flag.mask;}", "after": "public void Add(RevFlag flag){flags |= flag.mask;}" }, { "index": 171, "before": "public void clear() {Iterator it = iterator();while (it.hasNext()) {it.next();it.remove();}}", "after": "public virtual void clear(){java.util.Iterator it = iterator();while (it.hasNext()){it.next();it.remove();}}" }, { "index": 172, "before": "public RegisterImageResult registerImage(RegisterImageRequest request) {request = beforeClientExecution(request);return executeRegisterImage(request);}", "after": "public virtual RegisterImageResponse RegisterImage(RegisterImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterImageRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterImageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 173, "before": "public boolean equals(Object other) {return sameClassAs(other) &&term.equals(((TermQuery) other).term);}", "after": "public override bool Equals(object o){if (!(o is TermQuery)){return false;}TermQuery other = (TermQuery)o;return (this.Boost == other.Boost) && this.term.Equals(other.term);}" }, { "index": 174, "before": "public URI(String scheme, String authority, String path, String query,String fragment) throws URISyntaxException {if (scheme != null && path != null && !path.isEmpty() && path.charAt(0) != '/') {throw new URISyntaxException(path, \"Relative path\");}StringBuilder uri = new StringBuilder();if (scheme != null) {uri.append(scheme);uri.append(':');}if (authority != null) {uri.append(\"AUTHORITY_ENCODER.appendEncoded(uri, authority);}if (path != null) {PATH_ENCODER.appendEncoded(uri, path);}if (query != null) {uri.append('?');ALL_LEGAL_ENCODER.appendEncoded(uri, query);}if (fragment != null) {uri.append('#');ALL_LEGAL_ENCODER.appendEncoded(uri, fragment);}parseURI(uri.toString(), false);}", "after": "public URI(string scheme, string authority, string path, string query, string fragment){if (scheme != null && path != null && !string.IsNullOrEmpty(path) && path[0] != '/'){throw new java.net.URISyntaxException(path, \"Relative path\");}java.lang.StringBuilder uri = new java.lang.StringBuilder();if (scheme != null){uri.append(scheme);uri.append(':');}if (authority != null){uri.append(\"AUTHORITY_ENCODER.appendEncoded(uri, authority);}if (path != null){PATH_ENCODER.appendEncoded(uri, path);}if (query != null){uri.append('?');ALL_LEGAL_ENCODER.appendEncoded(uri, query);}if (fragment != null){uri.append('#');ALL_LEGAL_ENCODER.appendEncoded(uri, fragment);}parseURI(uri.ToString(), false);}" }, { "index": 175, "before": "public BlameGenerator(Repository repository, String path) {this.repository = repository;this.resultPath = PathFilter.create(path);idBuf = new MutableObjectId();setFollowFileRenames(true);initRevPool(false);remaining = -1;}", "after": "public BlameGenerator(Repository repository, string path){this.repository = repository;this.resultPath = PathFilter.Create(path);idBuf = new MutableObjectId();SetFollowFileRenames(true);InitRevPool(false);remaining = -1;}" }, { "index": 176, "before": "public synchronized void writeTo(OutputStream out) throws IOException {out.write(buf, 0, count);}", "after": "public virtual void writeTo(java.io.OutputStream @out){throw new System.NotImplementedException();}" }, { "index": 177, "before": "public DeletableItem(String name, java.util.List attributes) {setName(name);setAttributes(attributes);}", "after": "public DeletableItem(string name, List attributes){_name = name;_attributes = attributes;}" }, { "index": 178, "before": "public DescribeGroupResult describeGroup(DescribeGroupRequest request) {request = beforeClientExecution(request);return executeDescribeGroup(request);}", "after": "public virtual DescribeGroupResponse DescribeGroup(DescribeGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 179, "before": "public EnableVpcClassicLinkResult enableVpcClassicLink(EnableVpcClassicLinkRequest request) {request = beforeClientExecution(request);return executeEnableVpcClassicLink(request);}", "after": "public virtual EnableVpcClassicLinkResponse EnableVpcClassicLink(EnableVpcClassicLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableVpcClassicLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableVpcClassicLinkResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 180, "before": "public DescribeStacksResult describeStacks() {return describeStacks(new DescribeStacksRequest());}", "after": "public virtual DescribeStacksResponse DescribeStacks(){return DescribeStacks(new DescribeStacksRequest());}" }, { "index": 181, "before": "public CharBuffer duplicate() {return copy(this);}", "after": "public override java.nio.CharBuffer duplicate(){return copy(this);}" }, { "index": 182, "before": "public static double mod(double n, double d) {if (d == 0) {return Double.NaN;}else if (sign(n) == sign(d)) {return n % d;}else {return ((n % d) + d) % d;}}", "after": "public static double Mod(double n, double d){double result = 0;if (d == 0){result = double.NaN;}else if (Sign(n) == Sign(d)){result = n % d;}else{result = ((n % d) + d) % d;}return result;}" }, { "index": 183, "before": "public static String getLocalizedMessage(String key, Locale locale) {Object message = getResourceBundleObject(key, locale);if (message == null) {return \"Message with key:\" + key + \" and locale: \" + locale+ \" not found.\";}return message.toString();}", "after": "public static string GetLocalizedMessage(string key, CultureInfo locale){string message = GetResourceBundleObject(key, locale);if (message == null){return \"Message with key:\" + key + \" and locale: \" + locale+ \" not found.\";}return message;}" }, { "index": 184, "before": "public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChild() == null)return \"\";return getChild().toQueryString(escapeSyntaxParser) + \"^\"+ getValueString();}", "after": "public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){if (Child == null)return \"\";return Child.ToQueryString(escapeSyntaxParser) + \"^\"+ GetValueString();}" }, { "index": 185, "before": "public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChild() == null)return \"\";return \"( \" + getChild().toQueryString(escapeSyntaxParser) + \" )\";}", "after": "public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){if (GetChild() == null)return \"\";return \"( \" + GetChild().ToQueryString(escapeSyntaxParser) + \" )\";}" }, { "index": 186, "before": "public GetInvalidationResult getInvalidation(GetInvalidationRequest request) {request = beforeClientExecution(request);return executeGetInvalidation(request);}", "after": "public virtual GetInvalidationResponse GetInvalidation(GetInvalidationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInvalidationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInvalidationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 187, "before": "public String formatAsString() {return formatAsString(null, false);}", "after": "public String FormatAsString(){return FormatAsString(null, false);}" }, { "index": 188, "before": "public final int prefixCompare(byte[] bs, int p) {int cmp;cmp = NB.compareUInt32(w1, mask(1, NB.decodeInt32(bs, p)));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w2, mask(2, NB.decodeInt32(bs, p + 4)));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w3, mask(3, NB.decodeInt32(bs, p + 8)));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w4, mask(4, NB.decodeInt32(bs, p + 12)));if (cmp != 0)return cmp;return NB.compareUInt32(w5, mask(5, NB.decodeInt32(bs, p + 16)));}", "after": "public int PrefixCompare(byte[] bs, int p){int cmp;cmp = NB.CompareUInt32(w1, Mask(1, NB.DecodeInt32(bs, p)));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w2, Mask(2, NB.DecodeInt32(bs, p + 4)));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w3, Mask(3, NB.DecodeInt32(bs, p + 8)));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w4, Mask(4, NB.DecodeInt32(bs, p + 12)));if (cmp != 0){return cmp;}return NB.CompareUInt32(w5, Mask(5, NB.DecodeInt32(bs, p + 16)));}" }, { "index": 189, "before": "public AddApplicationInputProcessingConfigurationResult addApplicationInputProcessingConfiguration(AddApplicationInputProcessingConfigurationRequest request) {request = beforeClientExecution(request);return executeAddApplicationInputProcessingConfiguration(request);}", "after": "public virtual AddApplicationInputProcessingConfigurationResponse AddApplicationInputProcessingConfiguration(AddApplicationInputProcessingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddApplicationInputProcessingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = AddApplicationInputProcessingConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 190, "before": "public static TermRangeQuery newStringRange(String field, String lowerTerm, String upperTerm, boolean includeLower, boolean includeUpper) {BytesRef lower = lowerTerm == null ? null : new BytesRef(lowerTerm);BytesRef upper = upperTerm == null ? null : new BytesRef(upperTerm);return new TermRangeQuery(field, lower, upper, includeLower, includeUpper);}", "after": "public static TermRangeQuery NewStringRange(string field, string lowerTerm, string upperTerm, bool includeLower, bool includeUpper){BytesRef lower = lowerTerm == null ? null : new BytesRef(lowerTerm);BytesRef upper = upperTerm == null ? null : new BytesRef(upperTerm);return new TermRangeQuery(field, lower, upper, includeLower, includeUpper);}" }, { "index": 191, "before": "static public double fv(double r, int nper, double pmt, double pv, int type) {return -(pv * Math.pow(1 + r, nper) + pmt * (1+r*type) * (Math.pow(1 + r, nper) - 1) / r);}", "after": "static public double FV(double r, int nper, double pmt, double pv, int type){double fv = -(pv * Math.Pow(1 + r, nper) + pmt * (1 + r * type) * (Math.Pow(1 + r, nper) - 1) / r);return fv;}" }, { "index": 192, "before": "public int checkExternSheet(int firstSheetIndex, int lastSheetIndex) {int thisWbIndex = -1; for (int i = 0; i < _externalBookBlocks.length; i++) {SupBookRecord ebr = _externalBookBlocks[i].getExternalBookRecord();if (ebr.isInternalReferences()) {thisWbIndex = i;break;}}if (thisWbIndex < 0) {throw new RuntimeException(\"Could not find 'internal references' EXTERNALBOOK\");}int i = _externSheetRecord.getRefIxForSheet(thisWbIndex, firstSheetIndex, lastSheetIndex);if (i >= 0) {return i;}return _externSheetRecord.addRef(thisWbIndex, firstSheetIndex, lastSheetIndex);}", "after": "public int CheckExternSheet(int firstSheetIndex, int lastSheetIndex){int thisWbIndex = -1; for (int i = 0; i < _externalBookBlocks.Length; i++){SupBookRecord ebr = _externalBookBlocks[i].GetExternalBookRecord();if (ebr.IsInternalReferences){thisWbIndex = i;break;}}if (thisWbIndex < 0){throw new InvalidOperationException(\"Could not find 'internal references' EXTERNALBOOK\");}int j = _externSheetRecord.GetRefIxForSheet(thisWbIndex, firstSheetIndex, lastSheetIndex);if (j >= 0){return j;}return _externSheetRecord.AddRef(thisWbIndex, firstSheetIndex, lastSheetIndex);}" }, { "index": 193, "before": "public DescribeSentimentDetectionJobResult describeSentimentDetectionJob(DescribeSentimentDetectionJobRequest request) {request = beforeClientExecution(request);return executeDescribeSentimentDetectionJob(request);}", "after": "public virtual DescribeSentimentDetectionJobResponse DescribeSentimentDetectionJob(DescribeSentimentDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSentimentDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSentimentDetectionJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 194, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[UNITS]\\n\");buffer.append(\" .units = \").append(\"0x\").append(HexDump.toHex( getUnits ())).append(\" (\").append( getUnits() ).append(\" )\");buffer.append(System.getProperty(\"line.separator\"));buffer.append(\"[/UNITS]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[UNITS]\\n\");buffer.Append(\" .units = \").Append(\"0x\").Append(HexDump.ToHex(Units)).Append(\" (\").Append(Units).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\"[/UNITS]\\n\");return buffer.ToString();}" }, { "index": 195, "before": "public NavigableMap tailMap(K from, boolean inclusive) {Bound fromBound = inclusive ? INCLUSIVE : EXCLUSIVE;return subMap(from, fromBound, null, NO_BOUND);}", "after": "public java.util.NavigableMap tailMap(K from, bool inclusive){java.util.TreeMap.Bound fromBound = inclusive ? java.util.TreeMap.Bound.INCLUSIVE: java.util.TreeMap.Bound.EXCLUSIVE;return this.subMap(from, fromBound, default(K), java.util.TreeMap.Bound.NO_BOUND);}" }, { "index": 196, "before": "public static int compareTo(Ref o1, Ref o2) {return o1.getName().compareTo(o2.getName());}", "after": "public static int CompareTo(Ref o1, Ref o2){return Sharpen.Runtime.CompareOrdinal(o1.GetName(), o2.GetName());}" }, { "index": 197, "before": "public PutEventsConfigurationResult putEventsConfiguration(PutEventsConfigurationRequest request) {request = beforeClientExecution(request);return executePutEventsConfiguration(request);}", "after": "public virtual PutEventsConfigurationResponse PutEventsConfiguration(PutEventsConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutEventsConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutEventsConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 198, "before": "public DetachFromIndexResult detachFromIndex(DetachFromIndexRequest request) {request = beforeClientExecution(request);return executeDetachFromIndex(request);}", "after": "public virtual DetachFromIndexResponse DetachFromIndex(DetachFromIndexRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachFromIndexRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachFromIndexResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 199, "before": "public RebaseCommand rebase() {return new RebaseCommand(repo);}", "after": "public virtual RebaseCommand Rebase(){return new RebaseCommand(repo);}" }, { "index": 200, "before": "public SearchGroup next() {assert iter.hasNext();final SearchGroup group = iter.next();if (group.sortValues == null) {throw new IllegalArgumentException(\"group.sortValues is null; you must pass fillFields=true to the first pass collector\");}return group;}", "after": "public ISearchGroup Next(){ISearchGroup group = iter.Current;if (group.SortValues == null){throw new ArgumentException(\"group.sortValues is null; you must pass fillFields=true to the first pass collector\");}return group;}" }, { "index": 201, "before": "public UpdateMLModelResult updateMLModel(UpdateMLModelRequest request) {request = beforeClientExecution(request);return executeUpdateMLModel(request);}", "after": "public virtual UpdateMLModelResponse UpdateMLModel(UpdateMLModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateMLModelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateMLModelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 202, "before": "public CreateIPSetResult createIPSet(CreateIPSetRequest request) {request = beforeClientExecution(request);return executeCreateIPSet(request);}", "after": "public virtual CreateIPSetResponse CreateIPSet(CreateIPSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIPSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIPSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 203, "before": "public FieldDateResolutionFCListener(QueryConfigHandler config) {this.config = config;}", "after": "public FieldDateResolutionFCListener(QueryConfigHandler config){this.config = config;}" }, { "index": 204, "before": "@Override public boolean containsValue(Object value) {HashMapEntry[] tab = table;int len = tab.length;if (value == null) {for (int i = 0; i < len; i++) {for (HashMapEntry e = tab[i]; e != null; e = e.next) {if (e.value == null) {return true;}}}return entryForNullKey != null && entryForNullKey.value == null;}for (int i = 0; i < len; i++) {for (HashMapEntry e = tab[i]; e != null; e = e.next) {if (value.equals(e.value)) {return true;}}}return entryForNullKey != null && value.equals(entryForNullKey.value);}", "after": "public override bool containsValue(object value){java.util.HashMap.HashMapEntry[] tab = table;int len = tab.Length;if (value == null){{for (int i = 0; i < len; i++){{for (java.util.HashMap.HashMapEntry e = tab[i]; e != null; e = e.next){if (e.value == null){return true;}}}}}return entryForNullKey != null && (object)entryForNullKey.value == null;}{for (int i_1 = 0; i_1 < len; i_1++){{for (java.util.HashMap.HashMapEntry e = tab[i_1]; e != null; e = e.next){if (value.Equals(e.value)){return true;}}}}}return entryForNullKey != null && value.Equals(entryForNullKey.value);}" }, { "index": 205, "before": "public DescribeWorkspaceBundlesResult describeWorkspaceBundles(DescribeWorkspaceBundlesRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspaceBundles(request);}", "after": "public virtual DescribeWorkspaceBundlesResponse DescribeWorkspaceBundles(DescribeWorkspaceBundlesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkspaceBundlesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkspaceBundlesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 206, "before": "public PostingsEnum reset(int[] postings) {this.postings = postings;upto = -1;return this;}", "after": "public DocsEnum Reset(int[] postings){this.postings = postings;upto = -1;return this;}" }, { "index": 207, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(sid); out.writeShort(_reserved0);out.writeInt(_engineId);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(sid); out1.WriteShort(_reserved0);out1.WriteInt(_engineId);}" }, { "index": 208, "before": "public static CharBuffer allocate(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}return new ReadWriteCharArrayBuffer(capacity);}", "after": "public static java.nio.CharBuffer allocate(int capacity_1){if (capacity_1 < 0){throw new System.ArgumentException();}return new java.nio.ReadWriteCharArrayBuffer(capacity_1);}" }, { "index": 209, "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": 210, "before": "public DeletePipelineResult deletePipeline(DeletePipelineRequest request) {request = beforeClientExecution(request);return executeDeletePipeline(request);}", "after": "public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeletePipelineRequestMarshaller.Instance;options.ResponseUnmarshaller = DeletePipelineResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 211, "before": "public InterfaceHdrRecord(int codePage) {_codepage = codePage;}", "after": "public InterfaceHdrRecord(int codePage){_codepage = codePage;}" }, { "index": 212, "before": "public DescribeScalingParametersResult describeScalingParameters(DescribeScalingParametersRequest request) {request = beforeClientExecution(request);return executeDescribeScalingParameters(request);}", "after": "public virtual DescribeScalingParametersResponse DescribeScalingParameters(DescribeScalingParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScalingParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScalingParametersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 213, "before": "public Entry higherEntry(K key) {return immutableCopy(findBounded(key, HIGHER));}", "after": "public java.util.MapClass.Entry higherEntry(K key){return this._enclosing.immutableCopy(this.findBounded(key, java.util.TreeMap.Relation.HIGHER));}" }, { "index": 214, "before": "public CreateSpotDatafeedSubscriptionRequest(String bucket) {setBucket(bucket);}", "after": "public CreateSpotDatafeedSubscriptionRequest(string bucket){_bucket = bucket;}" }, { "index": 215, "before": "public String getLocalizedMessage() {return getLocalizedMessage(Locale.getDefault());}", "after": "public virtual string GetLocalizedMessage(){return GetLocalizedMessage(CultureInfo.InvariantCulture);}" }, { "index": 216, "before": "public UDFFinder getUDFFinder(){return _uBook.getUDFFinder();}", "after": "public UDFFinder GetUDFFinder(){return _uBook.GetUDFFinder();}" }, { "index": 217, "before": "public ExternalName getExternalName(String nameName, String sheetName, int externalWorkbookNumber) {throw new IllegalStateException(\"XSSF-style external names are not supported for HSSF\");}", "after": "public ExternalName GetExternalName(String nameName, String sheetName, int externalWorkbookNumber){throw new InvalidOperationException(\"XSSF-style external names are not supported for HSSF\");}" }, { "index": 218, "before": "public OldFormulaRecord(RecordInputStream ris) {super(ris, ris.getSid() == biff2_sid);if (isBiff2()) {field_4_value = ris.readDouble();} else {long valueLongBits = ris.readLong();specialCachedValue = FormulaSpecialCachedValue.create(valueLongBits);if (specialCachedValue == null) {field_4_value = Double.longBitsToDouble(valueLongBits);}}if (isBiff2()) {field_5_options = (short)ris.readUByte();} else {field_5_options = ris.readShort();}int expression_len = ris.readShort();int nBytesAvailable = ris.available();field_6_parsed_expr = Formula.read(expression_len, ris, nBytesAvailable);}", "after": "public OldFormulaRecord(RecordInputStream ris) :base(ris, ris.Sid == biff2_sid){;if (IsBiff2){field_4_value = ris.ReadDouble();}else{long valueLongBits = ris.ReadLong();specialCachedValue = SpecialCachedValue.Create(valueLongBits);if (specialCachedValue == null){field_4_value = BitConverter.Int64BitsToDouble(valueLongBits);}}if (IsBiff2){field_5_options = (short)ris.ReadUByte();}else{field_5_options = ris.ReadShort();}int expression_len = ris.ReadShort();int nBytesAvailable = ris.Available();field_6_Parsed_expr = Formula.Read(expression_len, ris, nBytesAvailable);}" }, { "index": 219, "before": "public int stem(char s[], int len) {assert s.length >= len + 1 : \"this stemmer requires an oversized array of at least 1\";len = plural.apply(s, len);len = unification.apply(s, len);len = adverb.apply(s, len);int oldlen;do {oldlen = len;len = augmentative.apply(s, len);} while (len != oldlen);oldlen = len;len = noun.apply(s, len);if (len == oldlen) { len = verb.apply(s, len);}len = vowel.apply(s, len);for (int i = 0; i < len; i++)switch(s[i]) {case 'á': s[i] = 'a'; break;case 'é':case 'ê': s[i] = 'e'; break;case 'í': s[i] = 'i'; break;case 'ó': s[i] = 'o'; break;case 'ú': s[i] = 'u'; break;}return len;}", "after": "public virtual int Stem(char[] s, int len){Debug.Assert(s.Length >= len + 1, \"this stemmer requires an oversized array of at least 1\");len = plural.Apply(s, len);len = unification.Apply(s, len);len = adverb.Apply(s, len);int oldlen;do{oldlen = len;len = augmentative.Apply(s, len);} while (len != oldlen);oldlen = len;len = noun.Apply(s, len);if (len == oldlen) {len = verb.Apply(s, len);}len = vowel.Apply(s, len);for (int i = 0; i < len; i++){switch (s[i]){case 'á':s[i] = 'a';break;case 'é':case 'ê':s[i] = 'e';break;case 'í':s[i] = 'i';break;case 'ó':s[i] = 'o';break;case 'ú':s[i] = 'u';break;}}return len;}" }, { "index": 220, "before": "public boolean sameProperties(FontRecord other) {returnfield_1_font_height == other.field_1_font_height &&field_2_attributes == other.field_2_attributes &&field_3_color_palette_index == other.field_3_color_palette_index &&field_4_bold_weight == other.field_4_bold_weight &&field_5_super_sub_script == other.field_5_super_sub_script &&field_6_underline == other.field_6_underline &&field_7_family == other.field_7_family &&field_8_charset == other.field_8_charset &&field_9_zero == other.field_9_zero &&Objects.equals(this.field_11_font_name, other.field_11_font_name);}", "after": "public bool SameProperties(FontRecord other){returnfield_1_font_height == other.field_1_font_height &&field_2_attributes == other.field_2_attributes &&field_3_color_palette_index == other.field_3_color_palette_index &&field_4_bold_weight == other.field_4_bold_weight &&field_5_base_sub_script == other.field_5_base_sub_script &&field_6_underline == other.field_6_underline &&field_7_family == other.field_7_family &&field_8_charset == other.field_8_charset &&field_9_zero == other.field_9_zero &&field_11_font_name.Equals(other.field_11_font_name);}" }, { "index": 221, "before": "public String toFormulaString() {return FormulaError.REF.getString();}", "after": "public override String ToFormulaString(){return HSSFErrorConstants.GetText(HSSFErrorConstants.ERROR_REF);}" }, { "index": 222, "before": "public StartTextDetectionResult startTextDetection(StartTextDetectionRequest request) {request = beforeClientExecution(request);return executeStartTextDetection(request);}", "after": "public virtual StartTextDetectionResponse StartTextDetection(StartTextDetectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartTextDetectionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartTextDetectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 223, "before": "public DeleteMessageBatchRequestEntry(String id, String receiptHandle) {setId(id);setReceiptHandle(receiptHandle);}", "after": "public DeleteMessageBatchRequestEntry(string id, string receiptHandle){_id = id;_receiptHandle = receiptHandle;}" }, { "index": 224, "before": "public PatternCaptureGroupTokenFilter create(TokenStream input) {return new PatternCaptureGroupTokenFilter(input, preserveOriginal, pattern);}", "after": "public override TokenStream Create(TokenStream input){return new PatternCaptureGroupTokenFilter(input, preserveOriginal, pattern);}" }, { "index": 225, "before": "public SigningCertificate(String userName, String certificateId, String certificateBody, StatusType status) {setUserName(userName);setCertificateId(certificateId);setCertificateBody(certificateBody);setStatus(status.toString());}", "after": "public SigningCertificate(string userName, string certificateId, string certificateBody, StatusType status){_userName = userName;_certificateId = certificateId;_certificateBody = certificateBody;_status = status;}" }, { "index": 226, "before": "public DistributionConfig(String callerReference, Boolean enabled) {setCallerReference(callerReference);setEnabled(enabled);}", "after": "public DistributionConfig(string callerReference, bool enabled){_callerReference = callerReference;_enabled = enabled;}" }, { "index": 227, "before": "public FastCharStream(Reader r) {input = r;}", "after": "public FastCharStream(TextReader r){input = r;}" }, { "index": 228, "before": "public int end(int group) {ensureMatch();return matchOffsets[(group * 2) + 1];}", "after": "public int end(int group_1){ensureMatch();return matchOffsets[(group_1 * 2) + 1];}" }, { "index": 229, "before": "public final Map.Entry next() { return nextEntry(); }", "after": "public override java.util.MapClass.Entry next(){return this.nextEntry();}" }, { "index": 230, "before": "public BlameCommand setTextComparator(RawTextComparator textComparator) {this.textComparator = textComparator;return this;}", "after": "public virtual NGit.Api.BlameCommand SetTextComparator(RawTextComparator textComparator){this.textComparator = textComparator;return this;}" }, { "index": 231, "before": "public final T pop() {if (size > 0) {T result = heap[1]; heap[1] = heap[size]; heap[size] = null; size--;downHeap(1); return result;} else {return null;}}", "after": "public T Pop(){if (size > 0){T result = heap[1]; heap[1] = heap[size]; heap[size] = default(T); size--;DownHeap(); return result;}else{return default(T);}}" }, { "index": 232, "before": "public String toString() {return getClass().getSimpleName() + \"(fields=\" + fields.size() + \",delegate=\" + postingsReader + \")\";}", "after": "public override string ToString(){return \"arc=\" + fstArc + \" state=\" + fsaState;}" }, { "index": 233, "before": "public static String shortenRefName(String noteRefName) {if (noteRefName.startsWith(Constants.R_NOTES))return noteRefName.substring(Constants.R_NOTES.length());return noteRefName;}", "after": "public static string ShortenRefName(string noteRefName){if (noteRefName.StartsWith(Constants.R_NOTES)){return Sharpen.Runtime.Substring(noteRefName, Constants.R_NOTES.Length);}return noteRefName;}" }, { "index": 234, "before": "public DescribeDomainsResult describeDomains() {return describeDomains(new DescribeDomainsRequest());}", "after": "public virtual DescribeDomainsResponse DescribeDomains(){return DescribeDomains(new DescribeDomainsRequest());}" }, { "index": 235, "before": "public int available() {return ccis.available();}", "after": "public int Available(){return _le.Available();}" }, { "index": 236, "before": "public GetContentModerationResult getContentModeration(GetContentModerationRequest request) {request = beforeClientExecution(request);return executeGetContentModeration(request);}", "after": "public virtual GetContentModerationResponse GetContentModeration(GetContentModerationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetContentModerationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetContentModerationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 237, "before": "public PrintStream(OutputStream out) {super(out);if (out == null) {throw new NullPointerException();}}", "after": "public PrintStream(java.io.OutputStream @out) : base(@out){if (@out == null){throw new System.ArgumentNullException();}}" }, { "index": 238, "before": "public long ramBytesUsed() {long ramBytesUsed = postingsReader.ramBytesUsed();for (TermsReader r : fields.values()) {ramBytesUsed += r.ramBytesUsed();}return ramBytesUsed;}", "after": "public override long RamBytesUsed(){long ramBytesUsed = 0;foreach (TermsReader r in fields.Values){ramBytesUsed += r.dict == null ? 0 : r.dict.GetSizeInBytes();}return ramBytesUsed;}" }, { "index": 239, "before": "public GetIntegrationResult getIntegration(GetIntegrationRequest request) {request = beforeClientExecution(request);return executeGetIntegration(request);}", "after": "public virtual GetIntegrationResponse GetIntegration(GetIntegrationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIntegrationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIntegrationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 240, "before": "public void setVisibility(int v) {if (getVisibility() != v) {super.setVisibility(v);if (mIndeterminate) {if (v == GONE || v == INVISIBLE) {stopAnimation();} else {startAnimation();}}}}", "after": "public override void setVisibility(int v){if (getVisibility() != v){base.setVisibility(v);if (mIndeterminate){if (v == GONE || v == INVISIBLE){stopAnimation();}else{startAnimation();}}}}" }, { "index": 241, "before": "public boolean matches(char s[], int len) {if (!super.matches(s, len))return false;for (int i = 0; i < exceptions.length; i++)if (endsWith(s, len, exceptions[i]))return false;return true;}", "after": "public override bool Matches(char[] s, int len){if (!base.Matches(s, len)){return false;}for (int i = 0; i < m_exceptions.Length; i++){if (StemmerUtil.EndsWith(s, len, m_exceptions[i])){return false;}}return true;}" }, { "index": 242, "before": "public DescribeFleetCapacityResult describeFleetCapacity(DescribeFleetCapacityRequest request) {request = beforeClientExecution(request);return executeDescribeFleetCapacity(request);}", "after": "public virtual DescribeFleetCapacityResponse DescribeFleetCapacity(DescribeFleetCapacityRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFleetCapacityRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFleetCapacityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 243, "before": "public UploadPackInternalServerErrorException(Throwable why) {initCause(why);}", "after": "public UploadPackInternalServerErrorException(Exception why){Sharpen.Extensions.InitCause(this, why);}" }, { "index": 244, "before": "public GetNetworkResult getNetwork(GetNetworkRequest request) {request = beforeClientExecution(request);return executeGetNetwork(request);}", "after": "public virtual GetNetworkResponse GetNetwork(GetNetworkRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetNetworkRequestMarshaller.Instance;options.ResponseUnmarshaller = GetNetworkResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 245, "before": "public AllocatePrivateVirtualInterfaceResult allocatePrivateVirtualInterface(AllocatePrivateVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeAllocatePrivateVirtualInterface(request);}", "after": "public virtual AllocatePrivateVirtualInterfaceResponse AllocatePrivateVirtualInterface(AllocatePrivateVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AllocatePrivateVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = AllocatePrivateVirtualInterfaceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 246, "before": "public GetDeploymentResult getDeployment(GetDeploymentRequest request) {request = beforeClientExecution(request);return executeGetDeployment(request);}", "after": "public virtual GetDeploymentResponse GetDeployment(GetDeploymentRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDeploymentRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDeploymentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 247, "before": "public UpdateRepoAuthorizationRequest() {super(\"cr\", \"2016-06-07\", \"UpdateRepoAuthorization\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/authorizations/[AuthorizeId]\");setMethod(MethodType.POST);}", "after": "public UpdateRepoAuthorizationRequest(): base(\"cr\", \"2016-06-07\", \"UpdateRepoAuthorization\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/authorizations/[AuthorizeId]\";Method = MethodType.POST;}" }, { "index": 248, "before": "public void foldToASCII(char[] input, int length){final int maxSizeNeeded = 4 * length;if (output.length < maxSizeNeeded) {output = new char[ArrayUtil.oversize(maxSizeNeeded, Character.BYTES)];}outputPos = foldToASCII(input, 0, output, 0, length);if (preserveOriginal && needToPreserve(input, length)) {state = captureState();}}", "after": "public void FoldToASCII(char[] input, int length){if (preserveOriginal){state = CaptureState();}int maxSizeNeeded = 4 * length;if (output.Length < maxSizeNeeded){output = new char[ArrayUtil.Oversize(maxSizeNeeded, RamUsageEstimator.NUM_BYTES_CHAR)];}outputPos = FoldToASCII(input, 0, output, 0, length);}" }, { "index": 249, "before": "public boolean hasEntry(String name) {if (excludes.contains(name)) {return false;}return directory.hasEntry(name);}", "after": "public bool HasEntry(String name){if (excludes.Contains(name)){return false;}return directory.HasEntry(name);}" }, { "index": 250, "before": "public void setLockMessage(String msg) {lockMessage = msg;}", "after": "public virtual void SetLockMessage(string msg){lockMessage = msg;}" }, { "index": 251, "before": "public ReflogCommand reflog() {return new ReflogCommand(repo);}", "after": "public virtual ReflogCommand Reflog(){return new ReflogCommand(repo);}" }, { "index": 252, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getFirstRow());out.writeShort(getLastRow());out.writeShort(getFirstColumn());out.writeShort(getLastColumn());}", "after": "public void Serialize(ILittleEndianOutput out1){out1.WriteShort(FirstRow);out1.WriteShort(LastRow);out1.WriteShort(FirstColumn);out1.WriteShort(LastColumn);}" }, { "index": 253, "before": "public static int response(java.net.HttpURLConnection c)throws IOException {try {return c.getResponseCode();} catch (ConnectException ce) {final URL url = c.getURL();final String host = (url == null) ? \"\" : url.getHost(); if (\"Connection timed out: connect\".equals(ce.getMessage())) throw new ConnectException(MessageFormat.format(JGitText.get().connectionTimeOut, host));throw new ConnectException(ce.getMessage() + \" \" + host); }}", "after": "public static int Response(HttpURLConnection c){try{return c.GetResponseCode();}catch (ConnectException ce){string host = c.GetURL().GetHost();if (\"Connection timed out: connect\".Equals(ce.Message)){throw new ConnectException(MessageFormat.Format(JGitText.Get().connectionTimeOut,host));}throw new ConnectException(ce.Message + \" \" + host);}}" }, { "index": 254, "before": "public static void fill(long[] array, long value) {for (int i = 0; i < array.length; i++) {array[i] = value;}}", "after": "public static void fill(long[] array, long value){{for (int i = 0; i < array.Length; i++){array[i] = value;}}}" }, { "index": 255, "before": "public void serialize(LittleEndianOutput out) {out.writeInt(getPositionOfBof());out.writeShort(field_2_option_flags);String name = field_5_sheetname;out.writeByte(name.length());out.writeByte(field_4_isMultibyteUnicode);if (isMultibyte()) {StringUtil.putUnicodeLE(name, out);} else {StringUtil.putCompressedUnicode(name, out);}}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(PositionOfBof);out1.WriteShort(field_2_option_flags);String name = field_5_sheetname;out1.WriteByte(name.Length);out1.WriteByte(field_4_isMultibyteUnicode);if (IsMultibyte){StringUtil.PutUnicodeLE(name, out1);}else{StringUtil.PutCompressedUnicode(name, out1);}}" }, { "index": 256, "before": "public static String getNonBlankTextOrFail(Element e) throws ParserException {String v = getText(e);if (null != v)v = v.trim();if (null == v || 0 == v.length()) {throw new ParserException(e.getTagName() + \" has no text\");}return v;}", "after": "public static string GetNonBlankTextOrFail(XmlElement e){string v = GetText(e);if (null != v)v = v.Trim();if (null == v || 0 == v.Length){throw new ParserException(e.ToString() + \" has no text\");}return v;}" }, { "index": 257, "before": "public void buildFieldConfig(FieldConfig fieldConfig) {Map fieldBoostMap = this.config.get(ConfigurationKeys.FIELD_BOOST_MAP);if (fieldBoostMap != null) {Float boost = fieldBoostMap.get(fieldConfig.getField());if (boost != null) {fieldConfig.set(ConfigurationKeys.BOOST, boost);}}}", "after": "public virtual void BuildFieldConfig(FieldConfig fieldConfig){IDictionary fieldBoostMap = this.config.Get(ConfigurationKeys.FIELD_BOOST_MAP);if (fieldBoostMap != null){float? boost;if (fieldBoostMap.TryGetValue(fieldConfig.Field, out boost) && boost != null){fieldConfig.Set(ConfigurationKeys.BOOST, boost);}}}" }, { "index": 258, "before": "public PutLifecyclePolicyResult putLifecyclePolicy(PutLifecyclePolicyRequest request) {request = beforeClientExecution(request);return executePutLifecyclePolicy(request);}", "after": "public virtual PutLifecyclePolicyResponse PutLifecyclePolicy(PutLifecyclePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutLifecyclePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = PutLifecyclePolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 259, "before": "public SortedSet subSet(E start, E end) {return subSet(start, true, end, false);}", "after": "public virtual java.util.SortedSet subSet(E start, E end){return subSet(start, true, end, false);}" }, { "index": 260, "before": "public void setParams(String params) {super.setParams(params);if (params != null) {int multiplier;if (params.endsWith(\"s\")) {multiplier = 1;params = params.substring(0, params.length()-1);} else if (params.endsWith(\"m\")) {multiplier = 60;params = params.substring(0, params.length()-1);} else if (params.endsWith(\"h\")) {multiplier = 3600;params = params.substring(0, params.length()-1);} else {multiplier = 1;}waitTimeSec = Double.parseDouble(params) * multiplier;} else {throw new IllegalArgumentException(\"you must specify the wait time, eg: 10.0s, 4.5m, 2h\");}}", "after": "public override void SetParams(string @params){base.SetParams(@params);if (@params != null){int multiplier;if (@params.EndsWith(\"s\", StringComparison.Ordinal)){multiplier = 1;@params = @params.Substring(0, @params.Length - 1);}else if (@params.EndsWith(\"m\", StringComparison.Ordinal)){multiplier = 60;@params = @params.Substring(0, @params.Length - 1);}else if (@params.EndsWith(\"h\", StringComparison.Ordinal)){multiplier = 3600;@params = @params.Substring(0, @params.Length - 1);}else{multiplier = 1;}waitTimeSec = double.Parse(@params, CultureInfo.InvariantCulture) * multiplier;}else{throw new ArgumentException(\"you must specify the wait time, eg: 10.0s, 4.5m, 2h\");}}" }, { "index": 261, "before": "public PutAttributesRequest(String domainName, String itemName, java.util.List attributes, UpdateCondition expected) {setDomainName(domainName);setItemName(itemName);setAttributes(attributes);setExpected(expected);}", "after": "public PutAttributesRequest(string domainName, string itemName, List attributes, UpdateCondition expected){_domainName = domainName;_itemName = itemName;_attributes = attributes;_expected = expected;}" }, { "index": 262, "before": "public DescribeStreamConsumerResult describeStreamConsumer(DescribeStreamConsumerRequest request) {request = beforeClientExecution(request);return executeDescribeStreamConsumer(request);}", "after": "public virtual DescribeStreamConsumerResponse DescribeStreamConsumer(DescribeStreamConsumerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStreamConsumerRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStreamConsumerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 263, "before": "public void freeze() {this.frozen = true;}", "after": "public virtual void Freeze(){this.frozen = true;}" }, { "index": 264, "before": "public FuzzyLikeThisQueryBuilder(Analyzer analyzer) {this.analyzer = analyzer;}", "after": "public FuzzyLikeThisQueryBuilder(Analyzer analyzer){this.analyzer = analyzer;}" }, { "index": 265, "before": "public DBClusterSnapshot copyDBClusterSnapshot(CopyDBClusterSnapshotRequest request) {request = beforeClientExecution(request);return executeCopyDBClusterSnapshot(request);}", "after": "public virtual CopyDBClusterSnapshotResponse CopyDBClusterSnapshot(CopyDBClusterSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopyDBClusterSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CopyDBClusterSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 266, "before": "public OutputStreamDataOutput(OutputStream os) {this.os = os;}", "after": "public OutputStreamDataOutput(Stream os){this._writer = new BinaryWriter(os);}" }, { "index": 267, "before": "public String findPattern(String pat) {int k = super.find(pat);if (k >= 0) {return unpackValues(k);}return \"\";}", "after": "public virtual string FindPattern(string pat){int k = base.Find(pat);if (k >= 0){return UnpackValues(k);}return \"\";}" }, { "index": 268, "before": "public static int murmurhash3_x86_32(BytesRef bytes, int seed) {return murmurhash3_x86_32(bytes.bytes, bytes.offset, bytes.length, seed);}", "after": "public static int Murmurhash3_x86_32(BytesRef bytes, int seed){return Murmurhash3_x86_32(bytes.Bytes, bytes.Offset, bytes.Length, seed);}" }, { "index": 269, "before": "public boolean isOverridable() {return overridable;}", "after": "public virtual bool IsOverridable(){return overridable;}" }, { "index": 270, "before": "public UpdateMemberResult updateMember(UpdateMemberRequest request) {request = beforeClientExecution(request);return executeUpdateMember(request);}", "after": "public virtual UpdateMemberResponse UpdateMember(UpdateMemberRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateMemberRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateMemberResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 271, "before": "public CopyFpgaImageResult copyFpgaImage(CopyFpgaImageRequest request) {request = beforeClientExecution(request);return executeCopyFpgaImage(request);}", "after": "public virtual CopyFpgaImageResponse CopyFpgaImage(CopyFpgaImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopyFpgaImageRequestMarshaller.Instance;options.ResponseUnmarshaller = CopyFpgaImageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 272, "before": "public void inform(ResourceLoader loader) {try { OpenNLPOpsFactory.getPOSTaggerModel(posTaggerModelFile, loader);} catch (IOException e) {throw new IllegalArgumentException(e);}}", "after": "public virtual void Inform(IResourceLoader loader){try{ OpenNLPOpsFactory.GetPOSTaggerModel(posTaggerModelFile, loader);}catch (IOException e){throw new ArgumentException(e.ToString(), e);}}" }, { "index": 273, "before": "public CellRangeAddress(int firstRow, int lastRow, int firstCol, int lastCol) {super(firstRow, lastRow, firstCol, lastCol);if (lastRow < firstRow || lastCol < firstCol) {throw new IllegalArgumentException(\"Invalid cell range, having lastRow < firstRow || lastCol < firstCol, \" +\"had rows \" + lastRow + \" >= \" + firstRow + \" or cells \" + lastCol + \" >= \" + firstCol);}}", "after": "public CellRangeAddress(int firstRow, int lastRow, int firstCol, int lastCol): base(firstRow, lastRow, firstCol, lastCol){if (lastRow < firstRow || lastCol < firstCol)throw new ArgumentException(\"lastRow < firstRow || lastCol < firstCol\");}" }, { "index": 274, "before": "public boolean equals(ATNConfig a, ATNConfig b) {if ( a==b ) return true;if ( a==null || b==null ) return false;return a.state.stateNumber==b.state.stateNumber&& a.context.equals(b.context);}", "after": "public override bool Equals(ATNConfig a, ATNConfig b){if (a == b){return true;}if (a == null || b == null){return false;}return a.state.stateNumber == b.state.stateNumber && a.context.Equals(b.context);}" }, { "index": 275, "before": "public PushCommand setPushTags() {refSpecs.add(Transport.REFSPEC_TAGS);return this;}", "after": "public virtual NGit.Api.PushCommand SetPushTags(){refSpecs.AddItem(NGit.Transport.Transport.REFSPEC_TAGS);return this;}" }, { "index": 276, "before": "public CreateEvaluationResult createEvaluation(CreateEvaluationRequest request) {request = beforeClientExecution(request);return executeCreateEvaluation(request);}", "after": "public virtual CreateEvaluationResponse CreateEvaluation(CreateEvaluationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEvaluationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEvaluationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 277, "before": "public DescribeOrderableDBInstanceOptionsResult describeOrderableDBInstanceOptions(DescribeOrderableDBInstanceOptionsRequest request) {request = beforeClientExecution(request);return executeDescribeOrderableDBInstanceOptions(request);}", "after": "public virtual DescribeOrderableDBInstanceOptionsResponse DescribeOrderableDBInstanceOptions(DescribeOrderableDBInstanceOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeOrderableDBInstanceOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeOrderableDBInstanceOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 278, "before": "public long getPosition() {return (long) currentBlockIndex * blockSize + currentBlockUpto;}", "after": "public long GetPosition(){return (long)currentBlockIndex * outerInstance.blockSize + currentBlockUpto;}" }, { "index": 279, "before": "public TokenStream create(TokenStream input) {return new FrenchLightStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new FrenchLightStemFilter(input);}" }, { "index": 280, "before": "public AssignPrivateIpAddressesResult assignPrivateIpAddresses(AssignPrivateIpAddressesRequest request) {request = beforeClientExecution(request);return executeAssignPrivateIpAddresses(request);}", "after": "public virtual AssignPrivateIpAddressesResponse AssignPrivateIpAddresses(AssignPrivateIpAddressesRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssignPrivateIpAddressesRequestMarshaller.Instance;options.ResponseUnmarshaller = AssignPrivateIpAddressesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 281, "before": "public boolean setExecute(File f, boolean canExec) {return false;}", "after": "public override bool SetExecute(FilePath f, bool canExec){return false;}" }, { "index": 282, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval lookup_value, ValueEval table_array,ValueEval col_index, ValueEval range_lookup) {try {ValueEval lookupValue = OperandResolver.getSingleValue(lookup_value, srcRowIndex, srcColumnIndex);TwoDEval tableArray = LookupUtils.resolveTableArrayArg(table_array);boolean isRangeLookup;try {isRangeLookup = LookupUtils.resolveRangeLookupArg(range_lookup, srcRowIndex, srcColumnIndex);} catch(RuntimeException e) {isRangeLookup = true;}int rowIndex = LookupUtils.lookupIndexOfValue(lookupValue, LookupUtils.createColumnVector(tableArray, 0), isRangeLookup);int colIndex = LookupUtils.resolveRowOrColIndexArg(col_index, srcRowIndex, srcColumnIndex);ValueVector resultCol = createResultColumnVector(tableArray, colIndex);return resultCol.getItem(rowIndex);} catch (EvaluationException e) {return e.getErrorEval();}}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval lookup_value, ValueEval table_array,ValueEval col_index, ValueEval range_lookup){try{ValueEval lookupValue = OperandResolver.GetSingleValue(lookup_value, srcRowIndex, srcColumnIndex);TwoDEval tableArray = LookupUtils.ResolveTableArrayArg(table_array);bool isRangeLookup = LookupUtils.ResolveRangeLookupArg(range_lookup, srcRowIndex, srcColumnIndex);int rowIndex = LookupUtils.LookupIndexOfValue(lookupValue, LookupUtils.CreateColumnVector(tableArray, 0), isRangeLookup);int colIndex = LookupUtils.ResolveRowOrColIndexArg(col_index, srcRowIndex, srcColumnIndex);ValueVector resultCol = CreateResultColumnVector(tableArray, colIndex);return resultCol.GetItem(rowIndex);}catch (EvaluationException e){return e.GetErrorEval();}}" }, { "index": 283, "before": "public CreateGameSessionResult createGameSession(CreateGameSessionRequest request) {request = beforeClientExecution(request);return executeCreateGameSession(request);}", "after": "public virtual CreateGameSessionResponse CreateGameSession(CreateGameSessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateGameSessionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateGameSessionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 284, "before": "public RowRecord getRow(int rowIndex) {int maxrow = SpreadsheetVersion.EXCEL97.getLastRowIndex();if (rowIndex < 0 || rowIndex > maxrow) {throw new IllegalArgumentException(\"The row number must be between 0 and \" + maxrow + \", but had: \" + rowIndex);}return _rowRecords.get(Integer.valueOf(rowIndex));}", "after": "public RowRecord GetRow(int rowIndex){if (rowIndex < 0 || rowIndex > 65535){throw new ArgumentException(\"The row number must be between 0 and 65535\");}return (RowRecord)_rowRecords[rowIndex];}" }, { "index": 285, "before": "public DescribeClientPropertiesResult describeClientProperties(DescribeClientPropertiesRequest request) {request = beforeClientExecution(request);return executeDescribeClientProperties(request);}", "after": "public virtual DescribeClientPropertiesResponse DescribeClientProperties(DescribeClientPropertiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClientPropertiesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClientPropertiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 286, "before": "public Builder(CompositeReader reader) {this.reader = reader;}", "after": "public Builder(CompositeReader reader){this.reader = reader;}" }, { "index": 287, "before": "public synchronized void mark(int readlimit) {in.mark(readlimit);}", "after": "public override void mark(int readlimit){lock (this){@in.mark(readlimit);}}" }, { "index": 288, "before": "public void print(int inum) {print(String.valueOf(inum));}", "after": "public virtual void print(int inum){print(inum.ToString());}" }, { "index": 289, "before": "public static final ObjectId fromRaw(int[] is) {return fromRaw(is, 0);}", "after": "public static NGit.ObjectId FromRaw(int[] @is){return FromRaw(@is, 0);}" }, { "index": 290, "before": "public String toString() {return slice.toString()+\":\"+ postingsEnum;}", "after": "public override string ToString(){return Slice.ToString() + \":\" + DocsEnum;}" }, { "index": 291, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getMode());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Mode);}" }, { "index": 292, "before": "@Override public int size() {return Impl.this.size();}", "after": "public override int size(){return this._enclosing.size();}" }, { "index": 293, "before": "public static int hashCode(Object... objects) {return Arrays.hashCode(objects);}", "after": "public static int hashCode(object o){return (o == null) ? 0 : o.GetHashCode();}" }, { "index": 294, "before": "public ByteBuffer putFloat(int index, float value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putFloat(int index, float value){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 295, "before": "public ListJournalS3ExportsForLedgerResult listJournalS3ExportsForLedger(ListJournalS3ExportsForLedgerRequest request) {request = beforeClientExecution(request);return executeListJournalS3ExportsForLedger(request);}", "after": "public virtual ListJournalS3ExportsForLedgerResponse ListJournalS3ExportsForLedger(ListJournalS3ExportsForLedgerRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListJournalS3ExportsForLedgerRequestMarshaller.Instance;options.ResponseUnmarshaller = ListJournalS3ExportsForLedgerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 296, "before": "public DeleteMessageBatchResult deleteMessageBatch(DeleteMessageBatchRequest request) {request = beforeClientExecution(request);return executeDeleteMessageBatch(request);}", "after": "public virtual DeleteMessageBatchResponse DeleteMessageBatch(DeleteMessageBatchRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMessageBatchRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMessageBatchResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 297, "before": "public final void write(LittleEndianOutput out) {out.writeByte(getSid() + getPtgClass());writeCoordinates(out);}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(Sid + PtgClass);WriteCoordinates(out1);}" }, { "index": 298, "before": "public FSTCompletionBuilder(int buckets, BytesRefSorter sorter, int shareMaxTailLength) {if (buckets < 1 || buckets > 255) {throw new IllegalArgumentException(\"Buckets must be >= 1 and <= 255: \"+ buckets);}if (sorter == null) throw new IllegalArgumentException(\"BytesRefSorter must not be null.\");this.sorter = sorter;this.buckets = buckets;this.shareMaxTailLength = shareMaxTailLength;}", "after": "public FSTCompletionBuilder(int buckets, IBytesRefSorter sorter, int shareMaxTailLength){if (buckets < 1 || buckets > 255){throw new System.ArgumentException(\"Buckets must be >= 1 and <= 255: \" + buckets);}if (sorter == null){throw new System.ArgumentException(\"BytesRefSorter must not be null.\");}this.sorter = sorter;this.buckets = buckets;this.shareMaxTailLength = shareMaxTailLength;}" }, { "index": 299, "before": "public void incRef() {refCount.incrementAndGet();}", "after": "public virtual void IncRef(){refCount.IncrementAndGet();}" }, { "index": 300, "before": "public boolean supports(CredentialItem... items) {for (CredentialItem i : items) {if (i instanceof CredentialItem.Username)continue;else if (i instanceof CredentialItem.Password)continue;elsereturn false;}return true;}", "after": "public override bool Supports(params CredentialItem[] items){foreach (CredentialItem i in items){if (i is CredentialItem.Username){continue;}else{if (i is CredentialItem.Password){continue;}else{return false;}}}return true;}" }, { "index": 301, "before": "public DeleteVpnConnectionRequest(String vpnConnectionId) {setVpnConnectionId(vpnConnectionId);}", "after": "public DeleteVpnConnectionRequest(string vpnConnectionId){_vpnConnectionId = vpnConnectionId;}" }, { "index": 302, "before": "public final ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {if (args.length != 4) {return ErrorEval.VALUE_INVALID;}return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], args[3]);}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){if (args.Length != 4){return ErrorEval.VALUE_INVALID;}return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], args[3]);}" }, { "index": 303, "before": "public void print(double d) {print(String.valueOf(d));}", "after": "public virtual void print(double d){print(d.ToString());}" }, { "index": 304, "before": "public UpdateUserProfileResult updateUserProfile(UpdateUserProfileRequest request) {request = beforeClientExecution(request);return executeUpdateUserProfile(request);}", "after": "public virtual UpdateUserProfileResponse UpdateUserProfile(UpdateUserProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateUserProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateUserProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 305, "before": "public RevFilter clone() {final RevFilter[] s = new RevFilter[subfilters.length];for (int i = 0; i < s.length; i++)s[i] = subfilters[i].clone();return new List(s);}", "after": "public override TreeFilter Clone(){TreeFilter[] s = new TreeFilter[subfilters.Length];for (int i = 0; i < s.Length; i++){s[i] = subfilters[i].Clone();}return new AndTreeFilter.List(s);}" }, { "index": 306, "before": "public GetFederationTokenRequest(String name) {setName(name);}", "after": "public GetFederationTokenRequest(string name){_name = name;}" }, { "index": 307, "before": "public static Cell translateUnicodeValues(Cell cell) {String s = cell.getRichStringCellValue().getString();boolean foundUnicode = false;String lowerCaseStr = s.toLowerCase(Locale.ROOT);for (UnicodeMapping entry : unicodeMappings) {String key = entry.entityName;if (lowerCaseStr.contains(key)) {s = s.replaceAll(key, entry.resolvedValue);foundUnicode = true;}}if (foundUnicode) {cell.setCellValue(cell.getRow().getSheet().getWorkbook().getCreationHelper().createRichTextString(s));}return cell;}", "after": "public static ICell TranslateUnicodeValues(ICell cell){String s = cell.RichStringCellValue.String;bool foundUnicode = false;String lowerCaseStr = s.ToLower();for (int i = 0; i < unicodeMappings.Length; i++){UnicodeMapping entry = unicodeMappings[i];String key = entry.entityName;if (lowerCaseStr.IndexOf(key, StringComparison.Ordinal) != -1){s = s.Replace(key, entry.resolvedValue);foundUnicode = true;}}if (foundUnicode){cell.SetCellValue(new HSSFRichTextString(s));}return cell;}" }, { "index": 308, "before": "public CreateChangeSetResult createChangeSet(CreateChangeSetRequest request) {request = beforeClientExecution(request);return executeCreateChangeSet(request);}", "after": "public virtual CreateChangeSetResponse CreateChangeSet(CreateChangeSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateChangeSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateChangeSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 309, "before": "public SubmoduleStatusCommand(Repository repo) {super(repo);paths = new ArrayList<>();}", "after": "protected internal SubmoduleStatusCommand(Repository repo) : base(repo){paths = new AList();}" }, { "index": 310, "before": "public int getResultStart() {return outRegion.resultStart;}", "after": "public virtual int GetResultStart(){return currentSource.regionList.resultStart;}" }, { "index": 311, "before": "public static BigInteger round(BigInteger bi, int nBits) {if (nBits < 1) {return bi;}return bi.add(HALF_BITS[nBits]);}", "after": "public static BigInteger Round(BigInteger bi, int nBits){if (nBits < 1){return bi;}return bi+(HALF_BITS[nBits]);}" }, { "index": 312, "before": "public static Date round(Date date, Resolution resolution) {return new Date(round(date.getTime(), resolution));}", "after": "public static DateTime Round(DateTime date, Resolution resolution){return new DateTime(Round(date.Ticks / TimeSpan.TicksPerMillisecond, resolution));}" }, { "index": 313, "before": "public static int compareArrayByPrefix(char[] shortArray, int shortIndex,char[] longArray, int longIndex) {if (shortArray == null)return 0;else if (longArray == null)return (shortIndex < shortArray.length) ? 1 : 0;int si = shortIndex, li = longIndex;while (si < shortArray.length && li < longArray.length&& shortArray[si] == longArray[li]) {si++;li++;}if (si == shortArray.length) {return 0;} else {if (li == longArray.length)return 1;elsereturn (shortArray[si] > longArray[li]) ? 1 : -1;}}", "after": "public static int CompareArrayByPrefix(char[] shortArray, int shortIndex,char[] longArray, int longIndex){if (shortArray == null)return 0;else if (longArray == null)return (shortIndex < shortArray.Length) ? 1 : 0;int si = shortIndex, li = longIndex;while (si < shortArray.Length && li < longArray.Length&& shortArray[si] == longArray[li]){si++;li++;}if (si == shortArray.Length){return 0;}else{if (li == longArray.Length)return 1;elsereturn (shortArray[si] > longArray[li]) ? 1 : -1;}}" }, { "index": 314, "before": "public AttachInternetGatewayResult attachInternetGateway(AttachInternetGatewayRequest request) {request = beforeClientExecution(request);return executeAttachInternetGateway(request);}", "after": "public virtual AttachInternetGatewayResponse AttachInternetGateway(AttachInternetGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachInternetGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachInternetGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 315, "before": "public synchronized boolean containsValue(Object value) {if (value == null) {throw new NullPointerException();}HashtableEntry[] tab = table;int len = tab.length;for (int i = 0; i < len; i++) {for (HashtableEntry e = tab[i]; e != null; e = e.next) {if (value.equals(e.value)) {return true;}}}return false;}", "after": "public virtual bool containsValue(object value){lock (this){if (value == null){throw new System.ArgumentNullException();}java.util.Hashtable.HashtableEntry[] tab = table;int len = tab.Length;{for (int i = 0; i < len; i++){{for (java.util.Hashtable.HashtableEntry e = tab[i]; e != null; e = e.next){if (value.Equals(e.value)){return true;}}}}}return false;}}" }, { "index": 316, "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": 317, "before": "public void write(String str) {write(str.toCharArray());}", "after": "public override void write(string str){write(str.ToCharArray());}" }, { "index": 318, "before": "public Sort(SortField... fields) {setSort(fields);}", "after": "public Sort(SortField field){SetSort(field);}" }, { "index": 319, "before": "public DescribeEventCategoriesResult describeEventCategories(DescribeEventCategoriesRequest request) {request = beforeClientExecution(request);return executeDescribeEventCategories(request);}", "after": "public virtual DescribeEventCategoriesResponse DescribeEventCategories(DescribeEventCategoriesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEventCategoriesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEventCategoriesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 320, "before": "public UpdateDeviceResult updateDevice(UpdateDeviceRequest request) {request = beforeClientExecution(request);return executeUpdateDevice(request);}", "after": "public virtual UpdateDeviceResponse UpdateDevice(UpdateDeviceRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDeviceRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDeviceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 321, "before": "public CreateWorkerBlockResult createWorkerBlock(CreateWorkerBlockRequest request) {request = beforeClientExecution(request);return executeCreateWorkerBlock(request);}", "after": "public virtual CreateWorkerBlockResponse CreateWorkerBlock(CreateWorkerBlockRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateWorkerBlockRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateWorkerBlockResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 322, "before": "public synchronized void reset() throws IOException {throw new IOException();}", "after": "public virtual void reset(){lock (this){throw new System.IO.IOException();}}" }, { "index": 323, "before": "public final void setReader(Reader input) {if (input == null) {throw new NullPointerException(\"input must not be null\");} else if (this.input != ILLEGAL_STATE_READER) {throw new IllegalStateException(\"TokenStream contract violation: close() call missing\");}this.inputPending = input;setReaderTestPoint();}", "after": "public void SetReader(TextReader input){if (input == null){throw new System.ArgumentNullException(\"value\", \"input must not be null\");}else if (this.m_input != ILLEGAL_STATE_READER){throw new InvalidOperationException(\"TokenStream contract violation: Close() call missing\");}this.inputPending = input;Debug.Assert(SetReaderTestPoint());}" }, { "index": 324, "before": "public GetUsagePlanKeysResult getUsagePlanKeys(GetUsagePlanKeysRequest request) {request = beforeClientExecution(request);return executeGetUsagePlanKeys(request);}", "after": "public virtual GetUsagePlanKeysResponse GetUsagePlanKeys(GetUsagePlanKeysRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUsagePlanKeysRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUsagePlanKeysResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 325, "before": "public String toString(){StringBuilder sb = new StringBuilder();sb.append( \"subInfos=(\" );for( SubInfo si : subInfos )sb.append( si.toString() );sb.append( \")/\" ).append( totalBoost ).append( '(' ).append( startOffset ).append( ',' ).append( endOffset ).append( ')' );return sb.toString();}", "after": "public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append(\"subInfos=(\");foreach (SubInfo si in subInfos)sb.Append(si.ToString());sb.Append(\")/\").Append(Number.ToString(totalBoost)).Append('(').Append(startOffset).Append(',').Append(endOffset).Append(')');return sb.ToString();}" }, { "index": 326, "before": "public TokenStream create(TokenStream input) {return new LimitTokenPositionFilter(input, maxTokenPosition, consumeAllTokens);}", "after": "public override TokenStream Create(TokenStream input){return new LimitTokenPositionFilter(input, maxTokenPosition, consumeAllTokens);}" }, { "index": 327, "before": "public DescribeFleetUtilizationResult describeFleetUtilization(DescribeFleetUtilizationRequest request) {request = beforeClientExecution(request);return executeDescribeFleetUtilization(request);}", "after": "public virtual DescribeFleetUtilizationResponse DescribeFleetUtilization(DescribeFleetUtilizationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFleetUtilizationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFleetUtilizationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 328, "before": "public void inform(ResourceLoader loader) throws IOException {InputStream stream = null;try {if (dictFile != null) dictionary = getWordSet(loader, dictFile, false);stream = loader.openResource(hypFile);final InputSource is = new InputSource(stream);is.setEncoding(encoding); is.setSystemId(hypFile);hyphenator = HyphenationCompoundWordTokenFilter.getHyphenationTree(is);} finally {IOUtils.closeWhileHandlingException(stream);}}", "after": "public virtual void Inform(IResourceLoader loader){Stream stream = null;try{if (dictFile != null) {dictionary = GetWordSet(loader, dictFile, false);}stream = loader.OpenResource(hypFile);var xmlEncoding = string.IsNullOrEmpty(encoding) ? Encoding.UTF8 : Encoding.GetEncoding(encoding);hyphenator = HyphenationCompoundWordTokenFilter.GetHyphenationTree(stream, xmlEncoding);}finally{IOUtils.DisposeWhileHandlingException(stream);}}" }, { "index": 329, "before": "public DeclineInvitationsResult declineInvitations(DeclineInvitationsRequest request) {request = beforeClientExecution(request);return executeDeclineInvitations(request);}", "after": "public virtual DeclineInvitationsResponse DeclineInvitations(DeclineInvitationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeclineInvitationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeclineInvitationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 330, "before": "public DescribeAutoScalingGroupsResult describeAutoScalingGroups() {return describeAutoScalingGroups(new DescribeAutoScalingGroupsRequest());}", "after": "public virtual DescribeAutoScalingGroupsResponse DescribeAutoScalingGroups(){return DescribeAutoScalingGroups(new DescribeAutoScalingGroupsRequest());}" }, { "index": 331, "before": "public String toString() {return String.format(\"pushMode(%d)\", mode);}", "after": "public override string ToString(){return string.Format(\"pushMode({0})\", mode);}" }, { "index": 332, "before": "public CreateBranchCommand setStartPoint(String startPoint) {checkCallable();this.startPoint = startPoint;this.startCommit = null;return this;}", "after": "public virtual NGit.Api.CreateBranchCommand SetStartPoint(string startPoint){CheckCallable();this.startPoint = startPoint;this.startCommit = null;return this;}" }, { "index": 333, "before": "public DBInstance stopDBInstance(StopDBInstanceRequest request) {request = beforeClientExecution(request);return executeStopDBInstance(request);}", "after": "public virtual StopDBInstanceResponse StopDBInstance(StopDBInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopDBInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = StopDBInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 334, "before": "public SuggestWordQueue(int size, Comparator comparator){super(size);this.comparator = comparator;}", "after": "public SuggestWordQueue(int size, IComparer comparer): base(size){this.comparer = comparer;}" }, { "index": 335, "before": "public LBCookieStickinessPolicy(String policyName, Long cookieExpirationPeriod) {setPolicyName(policyName);setCookieExpirationPeriod(cookieExpirationPeriod);}", "after": "public LBCookieStickinessPolicy(string policyName, long cookieExpirationPeriod){_policyName = policyName;_cookieExpirationPeriod = cookieExpirationPeriod;}" }, { "index": 336, "before": "public SheetRangeEvaluator(int firstSheetIndex, int lastSheetIndex, SheetRefEvaluator[] sheetEvaluators) {if (firstSheetIndex < 0) {throw new IllegalArgumentException(\"Invalid firstSheetIndex: \" + firstSheetIndex + \".\");}if (lastSheetIndex < firstSheetIndex) {throw new IllegalArgumentException(\"Invalid lastSheetIndex: \" + lastSheetIndex + \" for firstSheetIndex: \" + firstSheetIndex + \".\");}_firstSheetIndex = firstSheetIndex;_lastSheetIndex = lastSheetIndex;_sheetEvaluators = sheetEvaluators.clone();}", "after": "public SheetRangeEvaluator(int firstSheetIndex, int lastSheetIndex, SheetRefEvaluator[] sheetEvaluators){if (firstSheetIndex < 0){throw new ArgumentException(\"Invalid firstSheetIndex: \" + firstSheetIndex + \".\");}if (lastSheetIndex < firstSheetIndex){throw new ArgumentException(\"Invalid lastSheetIndex: \" + lastSheetIndex + \" for firstSheetIndex: \" + firstSheetIndex + \".\");}_firstSheetIndex = firstSheetIndex;_lastSheetIndex = lastSheetIndex;_sheetEvaluators = sheetEvaluators;}" }, { "index": 337, "before": "public RevokeTokenRequest() {super(\"OnsMqtt\", \"2019-12-11\", \"RevokeToken\", \"onsmqtt\");setMethod(MethodType.POST);}", "after": "public RevokeTokenRequest(): base(\"OnsMqtt\", \"2019-12-11\", \"RevokeToken\", \"onsmqtt\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 338, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {try {ValueEval ve = OperandResolver.getSingleValue(arg0, srcRowIndex, srcColumnIndex);double result = OperandResolver.coerceValueToDouble(ve);if (Double.isNaN(result) || Double.isInfinite(result)) {throw new EvaluationException(ErrorEval.NUM_ERROR);}if (arg1 instanceof RefListEval) {return eval(result, ((RefListEval)arg1), true);}final AreaEval aeRange = convertRangeArg(arg1);return eval(result, aeRange, true);} catch (EvaluationException e) {return e.getErrorEval();}}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){AreaEval aeRange;double result;try{ValueEval ve = OperandResolver.GetSingleValue(arg0, srcRowIndex, srcColumnIndex);result = OperandResolver.CoerceValueToDouble(ve);if (Double.IsNaN(result) || Double.IsInfinity(result)){throw new EvaluationException(ErrorEval.NUM_ERROR);}aeRange = ConvertRangeArg(arg1);}catch (EvaluationException e){return e.GetErrorEval();}return eval(srcRowIndex, srcColumnIndex, result, aeRange, true);}" }, { "index": 339, "before": "public String toFormulaString() {return \"\";}", "after": "public override String ToFormulaString(){return \"\";}" }, { "index": 340, "before": "public byte readByte() throws IOException {if (bufferPos == bufferSize) {refill();}assert bufferPos == buffer.position() : \"bufferPos=\" + bufferPos + \" vs buffer.position()=\" + buffer.position();bufferPos++;return buffer.get();}", "after": "public sbyte readByte() throws IOException{if (bufferPos == bufferSize){refill();}Debug.Assert(bufferPos == buffer.position(), \"bufferPos=\" + bufferPos + \" vs buffer.position()=\" + buffer.position());bufferPos++;return buffer.get();}" }, { "index": 341, "before": "public ListTargetsByRuleResult listTargetsByRule(ListTargetsByRuleRequest request) {request = beforeClientExecution(request);return executeListTargetsByRule(request);}", "after": "public virtual ListTargetsByRuleResponse ListTargetsByRule(ListTargetsByRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTargetsByRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTargetsByRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 342, "before": "public DisassociateQualificationFromWorkerResult disassociateQualificationFromWorker(DisassociateQualificationFromWorkerRequest request) {request = beforeClientExecution(request);return executeDisassociateQualificationFromWorker(request);}", "after": "public virtual DisassociateQualificationFromWorkerResponse DisassociateQualificationFromWorker(DisassociateQualificationFromWorkerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateQualificationFromWorkerRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateQualificationFromWorkerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 343, "before": "public boolean equals(Object obj) {if (this == obj) return true;if (obj == null) return false;if (getClass() != obj.getClass()) return false;CompiledAutomaton other = (CompiledAutomaton) obj;if (type != other.type) return false;if (type == AUTOMATON_TYPE.SINGLE) {if (!term.equals(other.term)) return false;} else if (type == AUTOMATON_TYPE.NORMAL) {if (!runAutomaton.equals(other.runAutomaton)) return false;}return true;}", "after": "public override bool Equals(object obj){if (this == obj){return true;}if (obj == null){return false;}if (this.GetType() != obj.GetType()){return false;}CompiledAutomaton other = (CompiledAutomaton)obj;if (Type != other.Type){return false;}if (Type == AUTOMATON_TYPE.SINGLE || Type == AUTOMATON_TYPE.PREFIX){if (!Term.Equals(other.Term)){return false;}}else if (Type == AUTOMATON_TYPE.NORMAL){if (!RunAutomaton.Equals(other.RunAutomaton)){return false;}}return true;}" }, { "index": 344, "before": "public static CharFilterFactory forName(String name, Map args) {return loader.newInstance(name, args);}", "after": "public static CharFilterFactory ForName(string name, IDictionary args){return loader.NewInstance(name, args);}" }, { "index": 345, "before": "public String toString() {String[] units = { \"bytes\", \"KiB\", \"MiB\", \"GiB\" };long sz = getIndexSize();int u = 0;while (1024 <= sz && u < units.length - 1) {int rem = (int) (sz % 1024);sz /= 1024;if (rem != 0)sz++;u++;}return \"DeltaIndex[\" + sz + \" \" + units[u] + \"]\";}", "after": "public override string ToString(){string[] units = new string[] { \"bytes\", \"KiB\", \"MiB\", \"GiB\" };long sz = GetIndexSize();int u = 0;while (1024 <= sz && u < units.Length - 1){int rem = (int)(sz % 1024);sz /= 1024;if (rem != 0){sz++;}u++;}return \"DeltaIndex[\" + sz + \" \" + units[u] + \"]\";}" }, { "index": 346, "before": "public SimilarityConfig build() {return new SimilarityConfig(this);}", "after": "public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}" }, { "index": 347, "before": "public void mark(int readLimit) throws IOException {throw new IOException();}", "after": "public virtual void mark(int readLimit){throw new System.IO.IOException();}" }, { "index": 348, "before": "public void collect(int doc) throws IOException {final long time = clock.get();if (time - timeout > 0L) {if (greedy) {in.collect(doc);}throw new TimeExceededException( timeout-t0, time-t0, docBase + doc );}in.collect(doc);}", "after": "public virtual void Collect(int doc){long time = clock.Get();if (timeout < time){if (greedy){collector.Collect(doc);}throw new TimeExceededException(timeout - t0, time - t0, docBase + doc);}collector.Collect(doc);}" }, { "index": 349, "before": "public LocalFile(File directory, int inCoreLimit) {super(inCoreLimit);this.directory = directory;}", "after": "public LocalFile(FilePath directory, int inCoreLimit) : base(inCoreLimit){this.directory = directory;}" }, { "index": 350, "before": "@Override public E remove(int index) {Object[] a = array;int s = size;if (index >= s) {throwIndexOutOfBoundsException(index, s);}@SuppressWarnings(\"unchecked\") E result = (E) a[index];System.arraycopy(a, index + 1, a, index, --s - index);a[s] = null; size = s;modCount++;return result;}", "after": "public override E remove(int index){object[] a = array;int s = _size;if (index >= s){throwIndexOutOfBoundsException(index, s);}E result = (E)a[index];System.Array.Copy(a, index + 1, a, index, --s - index);a[s] = null;_size = s;modCount++;return result;}" }, { "index": 351, "before": "public RequestUploadCredentialsResult requestUploadCredentials(RequestUploadCredentialsRequest request) {request = beforeClientExecution(request);return executeRequestUploadCredentials(request);}", "after": "public virtual RequestUploadCredentialsResponse RequestUploadCredentials(RequestUploadCredentialsRequest request){var options = new InvokeOptions();options.RequestMarshaller = RequestUploadCredentialsRequestMarshaller.Instance;options.ResponseUnmarshaller = RequestUploadCredentialsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 352, "before": "public void copyTo(OutputStream out) throws MissingObjectException,IOException {if (isLarge()) {try (ObjectStream in = openStream()) {final long sz = in.getSize();byte[] tmp = new byte[8192];long copied = 0;while (copied < sz) {int n = in.read(tmp);if (n < 0)throw new EOFException();out.write(tmp, 0, n);copied += n;}if (0 <= in.read())throw new EOFException();}} else {out.write(getCachedBytes());}}", "after": "public virtual void CopyTo(OutputStream @out){if (IsLarge()){ObjectStream @in = OpenStream();try{long sz = @in.GetSize();byte[] tmp = new byte[8192];long copied = 0;while (copied < sz){int n = @in.Read(tmp);if (n < 0){throw new EOFException();}@out.Write(tmp, 0, n);copied += n;}if (0 <= @in.Read()){throw new EOFException();}}finally{@in.Close();}}else{@out.Write(GetCachedBytes());}}" }, { "index": 353, "before": "@Override public V remove(Object key) {if (key == null) {return removeNullKey();}int hash = secondaryHash(key.hashCode());HashMapEntry[] tab = table;int index = hash & (tab.length - 1);for (HashMapEntry e = tab[index], prev = null;e != null; prev = e, e = e.next) {if (e.hash == hash && key.equals(e.key)) {if (prev == null) {tab[index] = e.next;} else {prev.next = e.next;}modCount++;size--;postRemove(e);return e.value;}}return null;}", "after": "public override V remove(object key){if (key == null){return removeNullKey();}int hash = secondaryHash(key.GetHashCode());java.util.HashMap.HashMapEntry[] tab = table;int index = hash & (tab.Length - 1);{java.util.HashMap.HashMapEntry e = tab[index];java.util.HashMap.HashMapEntry prev = null;for (; e != null; prev = e, e = e.next){if (e.hash == hash && key.Equals(e.key)){if (prev == null){tab[index] = e.next;}else{prev.next = e.next;}modCount++;_size--;postRemove(e);return e.value;}}}return default(V);}" }, { "index": 354, "before": "public RevFilter negate() {return a;}", "after": "public override RevFilter Negate(){return a;}" }, { "index": 355, "before": "public DescribeVpcsResult describeVpcs(DescribeVpcsRequest request) {request = beforeClientExecution(request);return executeDescribeVpcs(request);}", "after": "public virtual DescribeVpcsResponse DescribeVpcs(DescribeVpcsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 356, "before": "public UpdateGameSessionQueueResult updateGameSessionQueue(UpdateGameSessionQueueRequest request) {request = beforeClientExecution(request);return executeUpdateGameSessionQueue(request);}", "after": "public virtual UpdateGameSessionQueueResponse UpdateGameSessionQueue(UpdateGameSessionQueueRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGameSessionQueueRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGameSessionQueueResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 357, "before": "public String getTitle() {return title;}", "after": "public String GetTitle(){return title;}" }, { "index": 358, "before": "public final void setNewHeads(List newHeads) {if (this.newHeads != null)throw new IllegalStateException(JGitText.get().propertyIsAlreadyNonNull);this.newHeads = newHeads;}", "after": "public void SetNewHeads(IList newHeads){if (this.newHeads != null){throw new InvalidOperationException(JGitText.Get().propertyIsAlreadyNonNull);}this.newHeads = newHeads;}" }, { "index": 359, "before": "public ObjectId getExpectedOldObjectId() {return expectedOldObjectId;}", "after": "public virtual ObjectId GetExpectedOldObjectId(){return expectedOldObjectId;}" }, { "index": 360, "before": "public GetRecordsResult getRecords(GetRecordsRequest request) {request = beforeClientExecution(request);return executeGetRecords(request);}", "after": "public virtual GetRecordsResponse GetRecords(GetRecordsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRecordsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRecordsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 361, "before": "public Deleted3DPxg(int externalWorkbookNumber, String sheetName) {this.externalWorkbookNumber = externalWorkbookNumber;this.sheetName = sheetName;}", "after": "public Deleted3DPxg(int externalWorkbookNumber, String sheetName){this.externalWorkbookNumber = externalWorkbookNumber;this.sheetName = sheetName;}" }, { "index": 362, "before": "public void execute(Lexer lexer) {lexer.skip();}", "after": "public void Execute(Lexer lexer){lexer.Skip();}" }, { "index": 363, "before": "public DescribeScheduledInstancesResult describeScheduledInstances(DescribeScheduledInstancesRequest request) {request = beforeClientExecution(request);return executeDescribeScheduledInstances(request);}", "after": "public virtual DescribeScheduledInstancesResponse DescribeScheduledInstances(DescribeScheduledInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScheduledInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScheduledInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 364, "before": "public MultiFields(Fields[] subs, ReaderSlice[] subSlices) {this.subs = subs;this.subSlices = subSlices;}", "after": "public MultiFields(Fields[] subs, ReaderSlice[] subSlices){this.subs = subs;this.subSlices = subSlices;}" }, { "index": 365, "before": "public int peekNextSid() {if(!hasNext()) {return -1;}return _list.get(_nextIndex).getSid();}", "after": "public int PeekNextSid(){if (!HasNext()){return -1;}return ((Record)_list[_nextIndex]).Sid;}" }, { "index": 366, "before": "public ConfigureAgentResult configureAgent(ConfigureAgentRequest request) {request = beforeClientExecution(request);return executeConfigureAgent(request);}", "after": "public virtual ConfigureAgentResponse ConfigureAgent(ConfigureAgentRequest request){var options = new InvokeOptions();options.RequestMarshaller = ConfigureAgentRequestMarshaller.Instance;options.ResponseUnmarshaller = ConfigureAgentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 367, "before": "public GetStreamingDistributionResult getStreamingDistribution(GetStreamingDistributionRequest request) {request = beforeClientExecution(request);return executeGetStreamingDistribution(request);}", "after": "public virtual GetStreamingDistributionResponse GetStreamingDistribution(GetStreamingDistributionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetStreamingDistributionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetStreamingDistributionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 368, "before": "public ListTrialComponentsResult listTrialComponents(ListTrialComponentsRequest request) {request = beforeClientExecution(request);return executeListTrialComponents(request);}", "after": "public virtual ListTrialComponentsResponse ListTrialComponents(ListTrialComponentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTrialComponentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTrialComponentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 369, "before": "public ByteBuffer putShort(int index, short value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putShort(int index, short value){throw new System.NotImplementedException();}" }, { "index": 370, "before": "public int compareNormalised(NormalisedDecimal other) {int cmp = _relativeDecimalExponent - other._relativeDecimalExponent;if (cmp != 0) {return cmp;}if (_wholePart > other._wholePart) {return 1;}if (_wholePart < other._wholePart) {return -1;}return _fractionalPart - other._fractionalPart;}", "after": "public int CompareNormalised(NormalisedDecimal other){int cmp = _relativeDecimalExponent - other._relativeDecimalExponent;if (cmp != 0){return cmp;}if (_wholePart > other._wholePart){return 1;}if (_wholePart < other._wholePart){return -1;}return _fractionalPart - other._fractionalPart;}" }, { "index": 371, "before": "public TokenStream create(TokenStream input) {return new JapaneseKatakanaStemFilter(input, minimumLength);}", "after": "public override TokenStream Create(TokenStream input){return new JapaneseKatakanaStemFilter(input, minimumLength);}" }, { "index": 372, "before": "public EnableAvailabilityZonesForLoadBalancerResult enableAvailabilityZonesForLoadBalancer(EnableAvailabilityZonesForLoadBalancerRequest request) {request = beforeClientExecution(request);return executeEnableAvailabilityZonesForLoadBalancer(request);}", "after": "public virtual EnableAvailabilityZonesForLoadBalancerResponse EnableAvailabilityZonesForLoadBalancer(EnableAvailabilityZonesForLoadBalancerRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableAvailabilityZonesForLoadBalancerRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableAvailabilityZonesForLoadBalancerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 373, "before": "public UpdateEnvironmentResult updateEnvironment(UpdateEnvironmentRequest request) {request = beforeClientExecution(request);return executeUpdateEnvironment(request);}", "after": "public virtual UpdateEnvironmentResponse UpdateEnvironment(UpdateEnvironmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateEnvironmentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateEnvironmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 374, "before": "public ListTagsForDomainResult listTagsForDomain(ListTagsForDomainRequest request) {request = beforeClientExecution(request);return executeListTagsForDomain(request);}", "after": "public virtual ListTagsForDomainResponse ListTagsForDomain(ListTagsForDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTagsForDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTagsForDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 375, "before": "public static double log(double base, double x) {return Math.log(x) / Math.log(base);}", "after": "public static double Log(double @base, double x){return Math.Log(x) / Math.Log(@base);}" }, { "index": 376, "before": "public final void writeBoolean(boolean val) throws IOException {out.write(val ? 1 : 0);written++;}", "after": "public virtual void writeBoolean(bool val){throw new System.NotImplementedException();}" }, { "index": 377, "before": "public boolean equals(Object other) {if (!(other instanceof ByteBuffer)) {return false;}ByteBuffer otherBuffer = (ByteBuffer) other;if (remaining() != otherBuffer.remaining()) {return false;}int myPosition = position;int otherPosition = otherBuffer.position;boolean equalSoFar = true;while (equalSoFar && (myPosition < limit)) {equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}", "after": "public override bool Equals(object other){if (!(other is java.nio.ByteBuffer)){return false;}java.nio.ByteBuffer otherBuffer = (java.nio.ByteBuffer)other;if (remaining() != otherBuffer.remaining()){return false;}int myPosition = _position;int otherPosition = otherBuffer._position;bool equalSoFar = true;while (equalSoFar && (myPosition < _limit)){equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}" }, { "index": 378, "before": "public DescribeVirtualGatewaysResult describeVirtualGateways() {return describeVirtualGateways(new DescribeVirtualGatewaysRequest());}", "after": "public virtual DescribeVirtualGatewaysResponse DescribeVirtualGateways(){return DescribeVirtualGateways(new DescribeVirtualGatewaysRequest());}" }, { "index": 379, "before": "public FieldConfig getFieldConfig(String fieldName) {FieldConfig fieldConfig = new FieldConfig(StringUtils.toString(fieldName));for (FieldConfigListener listener : this.listeners) {listener.buildFieldConfig(fieldConfig);}return fieldConfig;}", "after": "public virtual FieldConfig GetFieldConfig(string fieldName){FieldConfig fieldConfig = new FieldConfig(StringUtils.ToString(fieldName));foreach (IFieldConfigListener listener in this.listeners){listener.BuildFieldConfig(fieldConfig);}return fieldConfig;}" }, { "index": 380, "before": "public void setProperty(Row row, int column) {Cell cell = CellUtil.getCell(row, column);CellUtil.setCellStyleProperty(cell, _propertyName, _propertyValue);}", "after": "public void SetProperty(IRow row, int column){ICell cell = CellUtil.GetCell(row, column);CellUtil.SetCellStyleProperty(cell, _workbook, _propertyName, _propertyValue);}" }, { "index": 381, "before": "public RebootInstancesResult rebootInstances(RebootInstancesRequest request) {request = beforeClientExecution(request);return executeRebootInstances(request);}", "after": "public virtual RebootInstancesResponse RebootInstances(RebootInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebootInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = RebootInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 382, "before": "public Predicate(int ruleIndex, int predIndex, boolean isCtxDependent) {this.ruleIndex = ruleIndex;this.predIndex = predIndex;this.isCtxDependent = isCtxDependent;}", "after": "public Predicate(int ruleIndex, int predIndex, bool isCtxDependent){this.ruleIndex = ruleIndex;this.predIndex = predIndex;this.isCtxDependent = isCtxDependent;}" }, { "index": 383, "before": "public void fillPolygon(int[] xPoints, int[] yPoints,int nPoints){int right = findBiggest(xPoints);int bottom = findBiggest(yPoints);int left = findSmallest(xPoints);int top = findSmallest(yPoints);HSSFPolygon shape = escherGroup.createPolygon(new HSSFChildAnchor(left,top,right,bottom) );shape.setPolygonDrawArea(right - left, bottom - top);shape.setPoints(addToAll(xPoints, -left), addToAll(yPoints, -top));shape.setLineStyleColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());shape.setFillColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());}", "after": "public void FillPolygon(int[] xPoints, int[] yPoints,int nPoints){int right = FindBiggest(xPoints);int bottom = FindBiggest(yPoints);int left = FindSmallest(xPoints);int top = FindSmallest(yPoints);HSSFPolygon shape = escherGroup.CreatePolygon(new HSSFChildAnchor(left, top, right, bottom));shape.SetPolygonDrawArea(right - left, bottom - top);shape.SetPoints(AddToAll(xPoints, -left), AddToAll(yPoints, -top));shape.SetLineStyleColor(foreground.R, foreground.G, foreground.B);shape.SetFillColor(foreground.R, foreground.G, foreground.B);}" }, { "index": 384, "before": "public ListEventsRequest() {super(\"Status\", \"2020-01-17\", \"ListEvents\", \"StatusAPI\");setMethod(MethodType.POST);}", "after": "public ListEventsRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"ListEvents\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 385, "before": "public ListIAMPolicyAssignmentsResult listIAMPolicyAssignments(ListIAMPolicyAssignmentsRequest request) {request = beforeClientExecution(request);return executeListIAMPolicyAssignments(request);}", "after": "public virtual ListIAMPolicyAssignmentsResponse ListIAMPolicyAssignments(ListIAMPolicyAssignmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIAMPolicyAssignmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIAMPolicyAssignmentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 386, "before": "public CountingOutputStream(OutputStream out) {this.out = out;}", "after": "public CountingOutputStream(OutputStream @out){this.@out = @out;}" }, { "index": 387, "before": "public void seekExact(BytesRef target, TermState otherState) {if (!target.equals(term)) {state.copyFrom(otherState);term = BytesRef.deepCopyOf(target);seekPending = true;}}", "after": "public override void SeekExact(BytesRef target, TermState otherState){if (!target.Equals(term)){state.CopyFrom(otherState);term = BytesRef.DeepCopyOf(target);seekPending = true;}}" }, { "index": 388, "before": "public void seek(long pos) throws IOException {if (pos != getFilePointer()) {final long alignedPos = pos & ALIGN_NOT_MASK;filePos = alignedPos-bufferSize;final int delta = (int) (pos - alignedPos);if (delta != 0) {refill();buffer.position(delta);bufferPos = delta;} else {bufferPos = bufferSize;}}}", "after": "public void seek(long pos) throws IOException{if (pos != FilePointer){long alignedPos = pos & ALIGN_NOT_MASK;filePos = alignedPos - bufferSize;int delta = (int)(pos - alignedPos);if (delta != 0){refill();buffer.position(delta);bufferPos = delta;}else{bufferPos = bufferSize;}}}" }, { "index": 389, "before": "public void clear() {removeAllElements();}", "after": "public override void clear(){removeAllElements();}" }, { "index": 390, "before": "public QueryCustomerByPhoneRequest() {super(\"xspace\", \"2017-07-20\", \"QueryCustomerByPhone\");setUriPattern(\"/customerbyphone\");setMethod(MethodType.POST);}", "after": "public QueryCustomerByPhoneRequest(): base(\"xspace\", \"2017-07-20\", \"QueryCustomerByPhone\"){UriPattern = \"/customerbyphone\";Method = MethodType.POST;}" }, { "index": 391, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {return this.evaluate(srcRowIndex, srcColumnIndex, arg0, null);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){return this.Evaluate(srcRowIndex, srcColumnIndex, arg0, null);}" }, { "index": 392, "before": "public ListDashboardVersionsResult listDashboardVersions(ListDashboardVersionsRequest request) {request = beforeClientExecution(request);return executeListDashboardVersions(request);}", "after": "public virtual ListDashboardVersionsResponse ListDashboardVersions(ListDashboardVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDashboardVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDashboardVersionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 393, "before": "public IntBuffer put(int c) {if (position == limit) {throw new BufferOverflowException();}backingArray[offset + position++] = c;return this;}", "after": "public override java.nio.IntBuffer put(int c){if (_position == _limit){throw new java.nio.BufferOverflowException();}backingArray[offset + _position++] = c;return this;}" }, { "index": 394, "before": "public DeleteHostedZoneResult deleteHostedZone(DeleteHostedZoneRequest request) {request = beforeClientExecution(request);return executeDeleteHostedZone(request);}", "after": "public virtual DeleteHostedZoneResponse DeleteHostedZone(DeleteHostedZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteHostedZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteHostedZoneResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 395, "before": "public CreateReceiptRuleResult createReceiptRule(CreateReceiptRuleRequest request) {request = beforeClientExecution(request);return executeCreateReceiptRule(request);}", "after": "public virtual CreateReceiptRuleResponse CreateReceiptRule(CreateReceiptRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateReceiptRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateReceiptRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 396, "before": "public Result rename() throws IOException {try {result = doRename();return result;} catch (IOException err) {result = Result.IO_FAILURE;throw err;}}", "after": "public virtual RefUpdate.Result Rename(){try{result = DoRename();return result;}catch (IOException err){result = RefUpdate.Result.IO_FAILURE;throw;}}" }, { "index": 397, "before": "public DescribeDBInstancesResult describeDBInstances() {return describeDBInstances(new DescribeDBInstancesRequest());}", "after": "public virtual DescribeDBInstancesResponse DescribeDBInstances(){return DescribeDBInstances(new DescribeDBInstancesRequest());}" }, { "index": 398, "before": "public String toString() {if (label != null) {return label + \":\" + tag;}return tag;}", "after": "public override string ToString(){return ruleName + \":\" + bypassTokenType;}" }, { "index": 399, "before": "public CharSequence toQueryString(EscapeQuerySyntax escaper) {return \"[DELETEDCHILD]\";}", "after": "public override string ToQueryString(IEscapeQuerySyntax escaper){return \"[DELETEDCHILD]\";}" }, { "index": 400, "before": "public CreateAccountResult createAccount(CreateAccountRequest request) {request = beforeClientExecution(request);return executeCreateAccount(request);}", "after": "public virtual CreateAccountResponse CreateAccount(CreateAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAccountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 401, "before": "public Map.Entry next() {HashEntry e = super.nextEntry();return new WriteThroughEntry(e.key, e.value);}", "after": "public override java.util.MapClass.Entry next(){return this.nextEntry();}" }, { "index": 402, "before": "public BaseRef(RefEval re) {_refEval = re;_areaEval = null;_firstRowIndex = re.getRow();_firstColumnIndex = re.getColumn();_height = 1;_width = 1;}", "after": "public BaseRef(RefEval re){_refEval = re;_areaEval = null;_firstRowIndex = re.Row;_firstColumnIndex = re.Column;_height = 1;_width = 1;}" }, { "index": 403, "before": "public void decode(long[] blocks, int blocksOffset, long[] 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++] = (block >>> shift) & 3;}}}", "after": "public override void Decode(long[] blocks, int blocksOffset, long[] 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++] = ((long)((ulong)block >> shift)) & 3;}}}" }, { "index": 404, "before": "public void unrollRecursionContexts(ParserRuleContext _parentctx) {_precedenceStack.pop();_ctx.stop = _input.LT(-1);ParserRuleContext retctx = _ctx; if ( _parseListeners != null ) {while ( _ctx != _parentctx ) {triggerExitRuleEvent();_ctx = (ParserRuleContext)_ctx.parent;}}else {_ctx = _parentctx;}retctx.parent = _parentctx;if (_buildParseTrees && _parentctx != null) {_parentctx.addChild(retctx);}}", "after": "public virtual void UnrollRecursionContexts(ParserRuleContext _parentctx){_precedenceStack.RemoveAt(_precedenceStack.Count - 1);_ctx.Stop = _input.LT(-1);ParserRuleContext retctx = _ctx;if (_parseListeners != null){while (_ctx != _parentctx){TriggerExitRuleEvent();_ctx = (ParserRuleContext)_ctx.Parent;}}else{_ctx = _parentctx;}retctx.Parent = _parentctx;if (_buildParseTrees && _parentctx != null){_parentctx.AddChild(retctx);}}" }, { "index": 405, "before": "public CancelBundleTaskRequest(String bundleId) {setBundleId(bundleId);}", "after": "public CancelBundleTaskRequest(string bundleId){_bundleId = bundleId;}" }, { "index": 406, "before": "public void add(CharsRef input, CharsRef output, boolean includeOrig) {add(input, countWords(input), output, countWords(output), includeOrig);}", "after": "public virtual void Add(CharsRef input, CharsRef output, bool includeOrig){Add(input, CountWords(input), output, CountWords(output), includeOrig);}" }, { "index": 407, "before": "public SetIdentityDkimEnabledResult setIdentityDkimEnabled(SetIdentityDkimEnabledRequest request) {request = beforeClientExecution(request);return executeSetIdentityDkimEnabled(request);}", "after": "public virtual SetIdentityDkimEnabledResponse SetIdentityDkimEnabled(SetIdentityDkimEnabledRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetIdentityDkimEnabledRequestMarshaller.Instance;options.ResponseUnmarshaller = SetIdentityDkimEnabledResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 408, "before": "public GetResolverEndpointResult getResolverEndpoint(GetResolverEndpointRequest request) {request = beforeClientExecution(request);return executeGetResolverEndpoint(request);}", "after": "public virtual GetResolverEndpointResponse GetResolverEndpoint(GetResolverEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetResolverEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = GetResolverEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 409, "before": "public void setText(String value) {string = value;start = offset = 0;end = value.length();}", "after": "public void setText(string value){@string = value;start = offset = 0;end = value.Length;}" }, { "index": 410, "before": "public String toString() {return toString(0);}", "after": "public override string ToString(){return ToString(0);}" }, { "index": 411, "before": "public void adjustIndex(int offset) {_firstSheetIndex += offset;_lastSheetIndex += offset;}", "after": "public void AdjustIndex(int offset){_firstSheetIndex += offset;_lastSheetIndex += offset;}" }, { "index": 412, "before": "public GalicianStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public GalicianStemFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 413, "before": "public ListRepositoryAssociationsResult listRepositoryAssociations(ListRepositoryAssociationsRequest request) {request = beforeClientExecution(request);return executeListRepositoryAssociations(request);}", "after": "public virtual ListRepositoryAssociationsResponse ListRepositoryAssociations(ListRepositoryAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRepositoryAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRepositoryAssociationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 414, "before": "public void setParams(String params) {super.setParams(params);maxNumSegments = (int)Double.parseDouble(params);}", "after": "public override void SetParams(string @params){base.SetParams(@params);maxNumSegments = (int)double.Parse(@params, CultureInfo.InvariantCulture);}" }, { "index": 415, "before": "public char getChar() {return (char) getShort();}", "after": "public override char getChar(){return (char)getShort();}" }, { "index": 416, "before": "public void next(int delta) {if (delta == 1) {prevPtr = currPtr;currPtr = nextPtr;if (!eof())parseEntry();return;}final int end = raw.length;int ptr = nextPtr;while (--delta > 0 && ptr != end) {prevPtr = ptr;while (raw[ptr] != 0)ptr++;ptr += OBJECT_ID_LENGTH + 1;}if (delta != 0)throw new ArrayIndexOutOfBoundsException(delta);currPtr = ptr;if (!eof())parseEntry();}", "after": "public override void Next(int delta){if (delta == 1){prevPtr = currPtr;currPtr = nextPtr;if (!Eof){ParseEntry();}return;}int end = raw.Length;int ptr = nextPtr;while (--delta > 0 && ptr != end){prevPtr = ptr;while (raw[ptr] != 0){ptr++;}ptr += Constants.OBJECT_ID_LENGTH + 1;}if (delta != 0){throw Sharpen.Extensions.CreateIndexOutOfRangeException(delta);}currPtr = ptr;if (!Eof){ParseEntry();}}" }, { "index": 417, "before": "public Type getType() {return type;}", "after": "public virtual ReceiveCommand.Type GetType(){return type;}" }, { "index": 418, "before": "public CharBuffer duplicate() {return copy(this, mark);}", "after": "public override java.nio.CharBuffer duplicate(){return copy(this, _mark);}" }, { "index": 419, "before": "public NGramFilterFactory(Map args) {super(args);minGramSize = requireInt(args, \"minGramSize\");maxGramSize = requireInt(args, \"maxGramSize\");preserveOriginal = getBoolean(args, \"preserveOriginal\", NGramTokenFilter.DEFAULT_PRESERVE_ORIGINAL);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public NGramFilterFactory(IDictionary args): base(args){minGramSize = GetInt32(args, \"minGramSize\", NGramTokenFilter.DEFAULT_MIN_NGRAM_SIZE);maxGramSize = GetInt32(args, \"maxGramSize\", NGramTokenFilter.DEFAULT_MAX_NGRAM_SIZE);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 420, "before": "public AddRoleToDBClusterResult addRoleToDBCluster(AddRoleToDBClusterRequest request) {request = beforeClientExecution(request);return executeAddRoleToDBCluster(request);}", "after": "public virtual AddRoleToDBClusterResponse AddRoleToDBCluster(AddRoleToDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddRoleToDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = AddRoleToDBClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 421, "before": "public BlameGenerator setTextComparator(RawTextComparator comparator) {textComparator = comparator;return this;}", "after": "public virtual NGit.Blame.BlameGenerator SetTextComparator(RawTextComparator comparator){textComparator = comparator;return this;}" }, { "index": 422, "before": "public PatternCaptureGroupFilterFactory(Map args) {super(args);pattern = getPattern(args, \"pattern\");preserveOriginal = args.containsKey(\"preserve_original\") ? Boolean.parseBoolean(args.get(\"preserve_original\")) : true;}", "after": "public PatternCaptureGroupFilterFactory(IDictionary args): base(args){pattern = GetPattern(args, \"pattern\");preserveOriginal = args.TryGetValue(\"preserve_original\", out string value) ? bool.Parse(value) : true;}" }, { "index": 423, "before": "public CreateObjectResult createObject(CreateObjectRequest request) {request = beforeClientExecution(request);return executeCreateObject(request);}", "after": "public virtual CreateObjectResponse CreateObject(CreateObjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateObjectRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateObjectResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 424, "before": "@Override public String getActions() { return null; }", "after": "public override string getActions(){return null;}" }, { "index": 425, "before": "public void onChanged() {if (mAdapter != null) {post(new Runnable() {@Override", "after": "public override void onChanged(){if (this._enclosing.isShowing()){this._enclosing.show();}}" }, { "index": 426, "before": "public CreateResourceGroupResult createResourceGroup(CreateResourceGroupRequest request) {request = beforeClientExecution(request);return executeCreateResourceGroup(request);}", "after": "public virtual CreateResourceGroupResponse CreateResourceGroup(CreateResourceGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateResourceGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateResourceGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 427, "before": "public static RevFilter has(RevFlag a) {final RevFlagSet s = new RevFlagSet();s.add(a);return new HasAll(s);}", "after": "public static RevFilter Has(RevFlag a){RevFlagSet s = new RevFlagSet();s.AddItem(a);return new RevFlagFilter.HasAll(s);}" }, { "index": 428, "before": "@Override public int size() {return totalSize;}", "after": "public override int size(){return this._enclosing._size;}" }, { "index": 429, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(field_1_index_extern_sheet);out.writeInt(unused1);}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(field_1_index_extern_sheet);out1.WriteInt(unused1);}" }, { "index": 430, "before": "public String toString() {return this.getClass().getSimpleName() + \"@\" + directory + \" lockFactory=\" + lockFactory;}", "after": "public override string ToString(){return this.GetType().Name + \"@\" + m_directory + \" lockFactory=\" + LockFactory;}" }, { "index": 431, "before": "public final ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {switch (args.length) {case 3:return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2]);case 4:return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], args[3]);}return ErrorEval.VALUE_INVALID;}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){switch (args.Length){case 3:return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2]);case 4:return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], args[3]);}return ErrorEval.VALUE_INVALID;}" }, { "index": 432, "before": "public CancelDataRepositoryTaskResult cancelDataRepositoryTask(CancelDataRepositoryTaskRequest request) {request = beforeClientExecution(request);return executeCancelDataRepositoryTask(request);}", "after": "public virtual CancelDataRepositoryTaskResponse CancelDataRepositoryTask(CancelDataRepositoryTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelDataRepositoryTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelDataRepositoryTaskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 433, "before": "public DateFormatTokenizer(String format) {this.format = format;}", "after": "public DateFormatTokenizer(string format){this.format = format;}" }, { "index": 434, "before": "public static int getBiasedExponent(long rawBits) {return Math.toIntExact((rawBits & EXPONENT_MASK) >> EXPONENT_SHIFT);}", "after": "public static int GetBiasedExponent(long rawBits){return (int)((rawBits & EXPONENT_MASK) >> EXPONENT_SHIFT);}" }, { "index": 435, "before": "public String toString() {return \"IB \" + distribution.toString() + \"-\" + lambda.toString()+ normalization.toString();}", "after": "public override string ToString(){return \"IB \" + m_distribution.ToString() + \"-\" + m_lambda.ToString() + m_normalization.ToString();}" }, { "index": 436, "before": "public String getName() {return name;}", "after": "public string GetName(){return name;}" }, { "index": 437, "before": "public boolean inContext(String context) {return false;}", "after": "public virtual bool InContext(string context){return false;}" }, { "index": 438, "before": "public String toString() {String desc;File directory = getDirectory();if (directory != null)desc = directory.getPath();elsedesc = getClass().getSimpleName() + \"-\" + System.identityHashCode(this);return \"Repository[\" + desc + \"]\"; }", "after": "public override string ToString(){string desc;if (Directory != null){desc = Directory.GetPath();}else{desc = GetType().Name + \"-\" + Runtime.IdentityHashCode(this);}return \"Repository[\" + desc + \"]\";}" }, { "index": 439, "before": "public int serialize(int offset, byte [] data) {LittleEndian.putInt(data, offset+0, field_13_border_styles1);LittleEndian.putInt(data, offset+4, field_14_border_styles2);return 8;}", "after": "public int Serialize(int offset, byte[] data){LittleEndian.PutInt(data, offset, field_13_border_styles1);offset += 4;LittleEndian.PutInt(data, offset, field_14_border_styles2);offset += 4;return 8;}" }, { "index": 440, "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, long[] 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": 441, "before": "public PipedWriter(PipedReader destination) throws IOException {super(destination);connect(destination);}", "after": "public PipedWriter(java.io.PipedReader destination) : base(destination){throw new System.NotImplementedException();}" }, { "index": 442, "before": "public String dequote(byte[] in, int ip, int ie) {boolean inquote = false;final byte[] r = new byte[ie - ip];int rPtr = 0;while (ip < ie) {final byte b = in[ip++];switch (b) {case '\\'':inquote = !inquote;continue;case '\\\\':if (inquote || ip == ie)r[rPtr++] = b; elser[rPtr++] = in[ip++];continue;default:r[rPtr++] = b;continue;}}return RawParseUtils.decode(UTF_8, r, 0, rPtr);}", "after": "public override string Dequote(byte[] @in, int ip, int ie){bool inquote = false;byte[] r = new byte[ie - ip];int rPtr = 0;while (ip < ie){byte b = @in[ip++];switch (b){case (byte)('\\''):{inquote = !inquote;continue;goto case (byte)('\\\\');}case (byte)('\\\\'):{if (inquote || ip == ie){r[rPtr++] = b;}else{r[rPtr++] = @in[ip++];}continue;goto default;}default:{r[rPtr++] = b;continue;break;}}}return RawParseUtils.Decode(Constants.CHARSET, r, 0, rPtr);}" }, { "index": 443, "before": "public Status getStatus() {return myStatus;}", "after": "public virtual CheckoutResult.Status GetStatus(){return myStatus;}" }, { "index": 444, "before": "public DeltaRecord(RecordInputStream in) {field_1_max_change = in.readDouble();}", "after": "public DeltaRecord(RecordInputStream in1){field_1_max_change = in1.ReadDouble();}" }, { "index": 445, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getCount());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Count);}" }, { "index": 446, "before": "public ListPartsRequest(String vaultName, String uploadId) {setVaultName(vaultName);setUploadId(uploadId);}", "after": "public ListPartsRequest(string vaultName, string uploadId){_vaultName = vaultName;_uploadId = uploadId;}" }, { "index": 447, "before": "public void set(int index, long value) {final int o = index >>> 2;final int b = index & 3;final int shift = b << 4;blocks[o] = (blocks[o] & ~(65535L << shift)) | (value << shift);}", "after": "public override void Set(int index, long value){int o = (int)((uint)index >> 2);int b = index & 3;int shift = b << 4;blocks[o] = (blocks[o] & ~(65535L << shift)) | (value << shift);}" }, { "index": 448, "before": "public void setRunInBackground(int deltaPri) {runInBackground = true;this.deltaPri = deltaPri;}", "after": "public virtual void SetRunInBackground(int deltaPri){runInBackground = true;this.deltaPri = deltaPri;}" }, { "index": 449, "before": "public TeeInputStream(InputStream src, OutputStream dst) {this.src = src;this.dst = dst;}", "after": "public TeeInputStream(InputStream src, OutputStream dst){this.src = src;this.dst = dst;}" }, { "index": 450, "before": "public void addChild(final Property property)throws IOException{String name = property.getName();if (_children_names.contains(name)){throw new IOException(\"Duplicate name \\\"\" + name + \"\\\"\");}_children_names.add(name);_children.add(property);}", "after": "public void AddChild(Property property){String name = property.Name;if (_children_names.Contains(name)){throw new IOException(\"Duplicate name \\\"\" + name + \"\\\"\");}_children_names.Add(name);_children.Add(property);}" }, { "index": 451, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {int result;if (arg0 instanceof TwoDEval) {result = ((TwoDEval) arg0).getWidth();} else if (arg0 instanceof RefEval) {result = 1;} else { return ErrorEval.VALUE_INVALID;}return new NumberEval(result);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){int result;if (arg0 is AreaEval){result = ((AreaEval)arg0).Width;}else if (arg0 is RefEval){result = 1;}else{ return ErrorEval.VALUE_INVALID;}return new NumberEval(result);}" }, { "index": 452, "before": "public ListModelsResult listModels(ListModelsRequest request) {request = beforeClientExecution(request);return executeListModels(request);}", "after": "public virtual ListModelsResponse ListModels(ListModelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListModelsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListModelsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 453, "before": "public ExtensionQuery(QueryParser topLevelParser, String field, String rawQueryString) {this.field = field;this.rawQueryString = rawQueryString;this.topLevelParser = topLevelParser;}", "after": "public ExtensionQuery(Classic.QueryParser topLevelParser, string field, string rawQueryString){this.Field = field;this.RawQueryString = rawQueryString;this.TopLevelParser = topLevelParser;}" }, { "index": 454, "before": "public String toString() {return resourceDescription;}", "after": "public override string ToString(){return resourceDescription;}" }, { "index": 455, "before": "public GetDeploymentInstanceResult getDeploymentInstance(GetDeploymentInstanceRequest request) {request = beforeClientExecution(request);return executeGetDeploymentInstance(request);}", "after": "public virtual GetDeploymentInstanceResponse GetDeploymentInstance(GetDeploymentInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDeploymentInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDeploymentInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 456, "before": "public MappingCharFilterFactory(Map args) {super(args);mapping = get(args, \"mapping\");if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public MappingCharFilterFactory(IDictionary args) : base(args){mapping = Get(args, \"mapping\");if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 457, "before": "public boolean promptPassphrase(String msg) {CredentialItem.StringType v = newPrompt(msg);if (provider.get(uri, v)) {passphrase = v.getValue();return true;}passphrase = null;return false;}", "after": "public virtual bool PromptPassphrase(string msg){CredentialItem.StringType v = NewPrompt(msg);if (provider.Get(uri, v)){passphrase = v.GetValue();return true;}else{passphrase = null;return false;}}" }, { "index": 458, "before": "public DescribeReservedDBInstancesResult describeReservedDBInstances() {return describeReservedDBInstances(new DescribeReservedDBInstancesRequest());}", "after": "public virtual DescribeReservedDBInstancesResponse DescribeReservedDBInstances(){return DescribeReservedDBInstances(new DescribeReservedDBInstancesRequest());}" }, { "index": 459, "before": "public UnsubscribeFromDatasetResult unsubscribeFromDataset(UnsubscribeFromDatasetRequest request) {request = beforeClientExecution(request);return executeUnsubscribeFromDataset(request);}", "after": "public virtual UnsubscribeFromDatasetResponse UnsubscribeFromDataset(UnsubscribeFromDatasetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UnsubscribeFromDatasetRequestMarshaller.Instance;options.ResponseUnmarshaller = UnsubscribeFromDatasetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 460, "before": "public int available() throws IOException {if (buf == null) {throw new IOException();}return buf.length - pos + in.available();}", "after": "public override int available(){if (buf == null){throw new System.IO.IOException();}return buf.Length - pos + @in.available();}" }, { "index": 461, "before": "@Override public V remove(Object key) {return isInBounds(key) ? TreeMap.this.remove(key) : null;}", "after": "public override V remove(object key){return this.isInBounds(key) ? this._enclosing.remove(key) : default(V);}" }, { "index": 462, "before": "public void insertSST() {LOG.log(DEBUG, \"creating new SST via insertSST!\");sst = new SSTRecord();records.add(records.size() - 1, createExtendedSST());records.add(records.size() - 2, sst);}", "after": "public void InsertSST(){sst = new SSTRecord();records.Add(records.Count- 1, CreateExtendedSST());records.Add(records.Count - 2, sst);}" }, { "index": 463, "before": "public AddApplicationCloudWatchLoggingOptionResult addApplicationCloudWatchLoggingOption(AddApplicationCloudWatchLoggingOptionRequest request) {request = beforeClientExecution(request);return executeAddApplicationCloudWatchLoggingOption(request);}", "after": "public virtual AddApplicationCloudWatchLoggingOptionResponse AddApplicationCloudWatchLoggingOption(AddApplicationCloudWatchLoggingOptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddApplicationCloudWatchLoggingOptionRequestMarshaller.Instance;options.ResponseUnmarshaller = AddApplicationCloudWatchLoggingOptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 464, "before": "public ListCampaignsResult listCampaigns(ListCampaignsRequest request) {request = beforeClientExecution(request);return executeListCampaigns(request);}", "after": "public virtual ListCampaignsResponse ListCampaigns(ListCampaignsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListCampaignsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListCampaignsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 465, "before": "public void execute(Lexer lexer) {lexer.more();}", "after": "public void Execute(Lexer lexer){lexer.More();}" }, { "index": 466, "before": "public SetFaceCoverRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"SetFaceCover\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public SetFaceCoverRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"SetFaceCover\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 467, "before": "public GetInstanceAccessResult getInstanceAccess(GetInstanceAccessRequest request) {request = beforeClientExecution(request);return executeGetInstanceAccess(request);}", "after": "public virtual GetInstanceAccessResponse GetInstanceAccess(GetInstanceAccessRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInstanceAccessRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInstanceAccessResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 468, "before": "public void clear() {value = null;}", "after": "public override void Clear(){value = null;}" }, { "index": 469, "before": "public GetFederationTokenResult getFederationToken(GetFederationTokenRequest request) {request = beforeClientExecution(request);return executeGetFederationToken(request);}", "after": "public virtual GetFederationTokenResponse GetFederationToken(GetFederationTokenRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFederationTokenRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFederationTokenResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 470, "before": "public int first() {currentSentence = 0;text.setIndex(text.getBeginIndex());return current();}", "after": "public override int First(){currentSentence = 0;text.SetIndex(text.BeginIndex);return Current;}" }, { "index": 471, "before": "public QueryPhraseMap getFieldTermMap( String fieldName, String term ){QueryPhraseMap rootMap = getRootMap( fieldName );return rootMap == null ? null : rootMap.subMap.get( term );}", "after": "public virtual QueryPhraseMap GetFieldTermMap(string fieldName, string term){QueryPhraseMap rootMap = GetRootMap(fieldName);if (rootMap == null) return null;rootMap.subMap.TryGetValue(term, out QueryPhraseMap result);return result;}" }, { "index": 472, "before": "@Override public boolean contains(Object object) {if (object instanceof Multiset.Entry) {Multiset.Entry entry = (Multiset.Entry) object;Object element = entry.getElement();int entryCount = entry.getCount();return entryCount > 0 && count(element) == entryCount;}return false;}", "after": "public override bool contains(object o){if (!(o is java.util.MapClass.Entry)){return false;}java.util.MapClass.Entry e = (java.util.MapClass.Entry)o;return this._enclosing.containsMapping(e.getKey(), e.getValue());}" }, { "index": 473, "before": "public DeleteLexiconResult deleteLexicon(DeleteLexiconRequest request) {request = beforeClientExecution(request);return executeDeleteLexicon(request);}", "after": "public virtual DeleteLexiconResponse DeleteLexicon(DeleteLexiconRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLexiconRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLexiconResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 474, "before": "public DomainMetadataResult domainMetadata(DomainMetadataRequest request) {request = beforeClientExecution(request);return executeDomainMetadata(request);}", "after": "public virtual DomainMetadataResponse DomainMetadata(DomainMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = DomainMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = DomainMetadataResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 475, "before": "public RevFlag getReinterestingFlag() {return REINTERESTING;}", "after": "public RevFlag GetReinterestingFlag(){return REINTERESTING;}" }, { "index": 476, "before": "public static void advise(FileDescriptor fd, long offset, long len, int advise) throws IOException {final int code = posix_fadvise(fd, offset, len, advise);if (code != 0) {throw new RuntimeException(\"posix_fadvise failed code=\" + code);}}", "after": "public static void advise(FileDescriptor fd, long offset, long len, int advise) throws IOException{int code = posix_fadvise(fd, offset, len, advise);if (code != 0){throw new Exception(\"posix_fadvise failed code=\" + code);}}" }, { "index": 477, "before": "public DeleteSchemaResult deleteSchema(DeleteSchemaRequest request) {request = beforeClientExecution(request);return executeDeleteSchema(request);}", "after": "public virtual DeleteSchemaResponse DeleteSchema(DeleteSchemaRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSchemaRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSchemaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 478, "before": "public CreateBatchInferenceJobResult createBatchInferenceJob(CreateBatchInferenceJobRequest request) {request = beforeClientExecution(request);return executeCreateBatchInferenceJob(request);}", "after": "public virtual CreateBatchInferenceJobResponse CreateBatchInferenceJob(CreateBatchInferenceJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateBatchInferenceJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateBatchInferenceJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 479, "before": "public BitField(final int mask){_mask = mask;int count = 0;int bit_pattern = mask;if (bit_pattern != 0){while ((bit_pattern & 1) == 0){count++;bit_pattern >>= 1;}}_shift_count = count;}", "after": "public BitField(int mask){this._mask = mask;int num = 0;int num2 = mask;if (num2 != 0){while ((num2 & 1) == 0){num++;num2 = num2 >> 1;}}this._shift_count = num;}" }, { "index": 480, "before": "public boolean failed() {return !failingPaths.isEmpty();}", "after": "public virtual bool Failed(){return failingPaths.Count > 0;}" }, { "index": 481, "before": "public String toString() {StringBuilder b = new StringBuilder();for(int i=0;i 0) {b.append(' ');}b.append(Integer.toBinaryString(bytes[i].value));}return b.toString();}", "after": "public override string ToString(){StringBuilder b = new StringBuilder();for (int i = 0; i < len; i++){if (i > 0){b.Append(' ');}b.Append(bytes[i].Value.ToBinaryString());}return b.ToString();}" }, { "index": 482, "before": "public final void remove() {if (modCount != expectedModCount)throw new ConcurrentModificationException();if (lastReturned == null)throw new IllegalStateException();LinkedHashMap.this.remove(lastReturned.key);lastReturned = null;expectedModCount = modCount;}", "after": "public virtual void remove(){if (this._enclosing.modCount != this.expectedModCount){throw new java.util.ConcurrentModificationException();}if (this.lastReturned == null){throw new System.InvalidOperationException();}this._enclosing.remove(this.lastReturned.key);this.lastReturned = null;this.expectedModCount = this._enclosing.modCount;}" }, { "index": 483, "before": "public boolean shouldBeRecursive() {return path.shouldBeRecursive() || ANY_DIFF.shouldBeRecursive();}", "after": "public override bool ShouldBeRecursive(){return path.ShouldBeRecursive() || ANY_DIFF.ShouldBeRecursive();}" }, { "index": 484, "before": "public DeleteQueueRequest(String queueUrl) {setQueueUrl(queueUrl);}", "after": "public DeleteQueueRequest(string queueUrl){_queueUrl = queueUrl;}" }, { "index": 485, "before": "public ExternalName getExternalName(int externSheetIndex, int externNameIndex) {String nameName = linkTable.resolveNameXText(externSheetIndex, externNameIndex, this);if(nameName == null) {return null;}int ix = linkTable.resolveNameXIx(externSheetIndex, externNameIndex);return new ExternalName(nameName, externNameIndex, ix);}", "after": "public ExternalName GetExternalName(int externSheetIndex, int externNameIndex){String nameName = linkTable.ResolveNameXText(externSheetIndex, externNameIndex, this);if (nameName == null){return null;}int ix = linkTable.ResolveNameXIx(externSheetIndex, externNameIndex);return new ExternalName(nameName, externNameIndex, ix);}" }, { "index": 486, "before": "public RegisterUserResult registerUser(RegisterUserRequest request) {request = beforeClientExecution(request);return executeRegisterUser(request);}", "after": "public virtual RegisterUserResponse RegisterUser(RegisterUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterUserRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterUserResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 487, "before": "public void decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {for (int j = 0; j < iterations; ++j) {values[valuesOffset++] = blocks[blocksOffset++] & 0xFF;}}", "after": "public override void Decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations){for (int j = 0; j < iterations; ++j){values[valuesOffset++] = blocks[blocksOffset++] & 0xFF;}}" }, { "index": 488, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {return fixed(arg0, new NumberEval(2), BoolEval.FALSE, srcRowIndex, srcColumnIndex);}", "after": "public ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){return doFixed(arg0, new NumberEval(2), BoolEval.FALSE, srcRowIndex, srcColumnIndex);}" }, { "index": 489, "before": "public final byte[] array() {return protectedArray();}", "after": "public sealed override object array(){return protectedArray();}" }, { "index": 490, "before": "public int readUByte() {byte[] buf = new byte[1];try {checkEOF(read(buf), 1);} catch (IOException e) {throw new RuntimeException(e);}return LittleEndian.getUByte(buf);}", "after": "public int ReadUByte(){int ch;try{ch = in1.ReadByte();}catch (IOException e){throw new RuntimeException(e);}CheckEOF(ch);return ch;}" }, { "index": 491, "before": "public static AttrPtg createSkip(int dist) {return new AttrPtg(optiSkip.set(0), dist, null, -1);}", "after": "public static AttrPtg CreateSkip(int dist){return new AttrPtg(optiSkip.Set(0), dist, null, -1);}" }, { "index": 492, "before": "public DescribeUserHierarchyGroupResult describeUserHierarchyGroup(DescribeUserHierarchyGroupRequest request) {request = beforeClientExecution(request);return executeDescribeUserHierarchyGroup(request);}", "after": "public virtual DescribeUserHierarchyGroupResponse DescribeUserHierarchyGroup(DescribeUserHierarchyGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUserHierarchyGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUserHierarchyGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 493, "before": "public User(String path, String userName, String userId, String arn, java.util.Date createDate) {setPath(path);setUserName(userName);setUserId(userId);setArn(arn);setCreateDate(createDate);}", "after": "public User(string path, string userName, string userId, string arn, DateTime createDate){_path = path;_userName = userName;_userId = userId;_arn = arn;_createDate = createDate;}" }, { "index": 494, "before": "public OpenNLPLemmatizerFilter create(TokenStream in) {try {NLPLemmatizerOp lemmatizerOp = OpenNLPOpsFactory.getLemmatizer(dictionaryFile, lemmatizerModelFile);return new OpenNLPLemmatizerFilter(in, lemmatizerOp);} catch (IOException e) {throw new RuntimeException(e);}}", "after": "public override TokenStream Create(TokenStream input){try{NLPLemmatizerOp lemmatizerOp = OpenNLPOpsFactory.GetLemmatizer(dictionaryFile, lemmatizerModelFile);return new OpenNLPLemmatizerFilter(input, lemmatizerOp);}catch (IOException e){throw new Exception(e.ToString(), e);}}" }, { "index": 495, "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, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long byte0 = blocks[blocksOffset++] & 0xFF;long byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 4) | ((long)((ulong)byte1 >> 4));long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 15) << 8) | byte2;}}" }, { "index": 496, "before": "public RebootInstanceRequest() {super(\"HPC\", \"2016-06-03\", \"RebootInstance\", \"hpc\");setMethod(MethodType.POST);}", "after": "public RebootInstanceRequest(): base(\"HPC\", \"2016-06-03\", \"RebootInstance\"){Method = MethodType.POST;}" }, { "index": 497, "before": "public ListContainerInstancesResult listContainerInstances(ListContainerInstancesRequest request) {request = beforeClientExecution(request);return executeListContainerInstances(request);}", "after": "public virtual ListContainerInstancesResponse ListContainerInstances(ListContainerInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListContainerInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListContainerInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 498, "before": "public ListClustersResult listClusters(ListClustersRequest request) {request = beforeClientExecution(request);return executeListClusters(request);}", "after": "public virtual ListClustersResponse ListClusters(ListClustersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListClustersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListClustersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 499, "before": "public static boolean equals(boolean[] array1, boolean[] array2) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length != array2.length) {return false;}for (int i = 0; i < array1.length; i++) {if (array1[i] != array2[i]) {return false;}}return true;}", "after": "public static bool equals(bool[] array1, bool[] array2){if (array1 == array2){return true;}if (array1 == null || array2 == null || array1.Length != array2.Length){return false;}{for (int i = 0; i < array1.Length; i++){if (array1[i] != array2[i]){return false;}}}return true;}" }, { "index": 500, "before": "public void decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final int byte0 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = byte0 >>> 5;values[valuesOffset++] = (byte0 >>> 2) & 7;final int byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte0 & 3) << 1) | (byte1 >>> 7);values[valuesOffset++] = (byte1 >>> 4) & 7;values[valuesOffset++] = (byte1 >>> 1) & 7;final int byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 1) << 2) | (byte2 >>> 6);values[valuesOffset++] = (byte2 >>> 3) & 7;values[valuesOffset++] = byte2 & 7;}}", "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 >> 5);values[valuesOffset++] = ((int)((uint)byte0 >> 2)) & 7;int byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte0 & 3) << 1) | ((int)((uint)byte1 >> 7));values[valuesOffset++] = ((int)((uint)byte1 >> 4)) & 7;values[valuesOffset++] = ((int)((uint)byte1 >> 1)) & 7;int byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 1) << 2) | ((int)((uint)byte2 >> 6));values[valuesOffset++] = ((int)((uint)byte2 >> 3)) & 7;values[valuesOffset++] = byte2 & 7;}}" }, { "index": 501, "before": "public GetRelationalDatabaseSnapshotResult getRelationalDatabaseSnapshot(GetRelationalDatabaseSnapshotRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseSnapshot(request);}", "after": "public virtual GetRelationalDatabaseSnapshotResponse GetRelationalDatabaseSnapshot(GetRelationalDatabaseSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 502, "before": "public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {int bytesRemaining = readHeader( data, offset );int pos = offset + 8;field_1_blipTypeWin32 = data[pos];field_2_blipTypeMacOS = data[pos + 1];System.arraycopy( data, pos + 2, field_3_uid, 0, 16 );field_4_tag = LittleEndian.getShort( data, pos + 18 );field_5_size = LittleEndian.getInt( data, pos + 20 );field_6_ref = LittleEndian.getInt( data, pos + 24 );field_7_offset = LittleEndian.getInt( data, pos + 28 );field_8_usage = data[pos + 32];field_9_name = data[pos + 33];field_10_unused2 = data[pos + 34];field_11_unused3 = data[pos + 35];bytesRemaining -= 36;int bytesRead = 0;if (bytesRemaining > 0) {field_12_blipRecord = (EscherBlipRecord) recordFactory.createRecord( data, pos + 36 );bytesRead = field_12_blipRecord.fillFields( data, pos + 36, recordFactory );}pos += 36 + bytesRead;bytesRemaining -= bytesRead;_remainingData = IOUtils.safelyAllocate(bytesRemaining, MAX_RECORD_LENGTH);System.arraycopy( data, pos, _remainingData, 0, bytesRemaining );return bytesRemaining + 8 + 36 + (field_12_blipRecord == null ? 0 : field_12_blipRecord.getRecordSize()) ;}", "after": "public override int FillFields(byte[] data, int offset,IEscherRecordFactory recordFactory){int bytesRemaining = ReadHeader(data, offset);int pos = offset + 8;field_1_blipTypeWin32 = data[pos];field_2_blipTypeMacOS = data[pos + 1];field_3_uid = new byte[16];Array.Copy(data, pos + 2, field_3_uid, 0, 16);field_4_tag = LittleEndian.GetShort(data, pos + 18);field_5_size = LittleEndian.GetInt(data, pos + 20);field_6_ref = LittleEndian.GetInt(data, pos + 24);field_7_offset = LittleEndian.GetInt(data, pos + 28);field_8_usage = data[pos + 32];field_9_name = data[pos + 33];field_10_unused2 = data[pos + 34];field_11_unused3 = data[pos + 35];bytesRemaining -= 36;int bytesRead = 0;if (bytesRemaining > 0){field_12_blipRecord = (EscherBlipRecord)recordFactory.CreateRecord(data, pos + 36);bytesRead = field_12_blipRecord.FillFields(data, pos + 36, recordFactory);}pos += 36 + bytesRead;bytesRemaining -= bytesRead;_remainingData = new byte[bytesRemaining];Array.Copy(data, pos, _remainingData, 0, bytesRemaining);return bytesRemaining + 8 + 36 + (field_12_blipRecord == null ? 0 : field_12_blipRecord.RecordSize);}" }, { "index": 503, "before": "@Override public int size() {return size;}", "after": "public override int size(){return a.Length;}" }, { "index": 504, "before": "public PhoneNumberValidateResult phoneNumberValidate(PhoneNumberValidateRequest request) {request = beforeClientExecution(request);return executePhoneNumberValidate(request);}", "after": "public virtual PhoneNumberValidateResponse PhoneNumberValidate(PhoneNumberValidateRequest request){var options = new InvokeOptions();options.RequestMarshaller = PhoneNumberValidateRequestMarshaller.Instance;options.ResponseUnmarshaller = PhoneNumberValidateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 505, "before": "public CreateTransformJobResult createTransformJob(CreateTransformJobRequest request) {request = beforeClientExecution(request);return executeCreateTransformJob(request);}", "after": "public virtual CreateTransformJobResponse CreateTransformJob(CreateTransformJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransformJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransformJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 506, "before": "public synchronized int search(Object o) {final Object[] dumpArray = elementData;final int size = elementCount;if (o != null) {for (int i = size - 1; i >= 0; i--) {if (o.equals(dumpArray[i])) {return size - i;}}} else {for (int i = size - 1; i >= 0; i--) {if (dumpArray[i] == null) {return size - i;}}}return -1;}", "after": "public virtual int search(object o){lock (this){object[] dumpArray = elementData;int size_1 = elementCount;if (o != null){{for (int i = size_1 - 1; i >= 0; i--){if (o.Equals(dumpArray[i])){return size_1 - i;}}}}else{{for (int i = size_1 - 1; i >= 0; i--){if (dumpArray[i] == null){return size_1 - i;}}}}return -1;}}" }, { "index": 507, "before": "public DescribeCacheParametersRequest(String cacheParameterGroupName) {setCacheParameterGroupName(cacheParameterGroupName);}", "after": "public DescribeCacheParametersRequest(string cacheParameterGroupName){_cacheParameterGroupName = cacheParameterGroupName;}" }, { "index": 508, "before": "public void clear() {synchronized (mutex) {delegate().clear();}}", "after": "public virtual void clear(){lock (mutex){c.clear();}}" }, { "index": 509, "before": "public boolean hasRevSort(RevSort sort) {return sorting.contains(sort);}", "after": "public virtual bool HasRevSort(RevSort sort){return sorting.Contains(sort);}" }, { "index": 510, "before": "public StashListCommand stashList() {return new StashListCommand(repo);}", "after": "public virtual StashListCommand StashList(){return new StashListCommand(repo);}" }, { "index": 511, "before": "public PutGroupPolicyRequest(String groupName, String policyName, String policyDocument) {setGroupName(groupName);setPolicyName(policyName);setPolicyDocument(policyDocument);}", "after": "public PutGroupPolicyRequest(string groupName, string policyName, string policyDocument){_groupName = groupName;_policyName = policyName;_policyDocument = policyDocument;}" }, { "index": 512, "before": "public String toString() {return super.get() + \"=\" + value;}", "after": "public override string ToString(){return base.get() + \"=\" + value;}" }, { "index": 513, "before": "public void writeByte(int v) {checkPosition(1);_buf[_writeIndex++] = (byte)v;}", "after": "public void WriteByte(int v){CheckPosition(1);_buf[_writeIndex++] = (byte)v;}" }, { "index": 514, "before": "public CountryRecord(RecordInputStream in) {field_1_default_country = in.readShort();field_2_current_country = in.readShort();}", "after": "public CountryRecord(RecordInputStream in1){field_1_default_country = in1.ReadShort();field_2_current_country = in1.ReadShort();}" }, { "index": 515, "before": "public UpdateContainerAgentResult updateContainerAgent(UpdateContainerAgentRequest request) {request = beforeClientExecution(request);return executeUpdateContainerAgent(request);}", "after": "public virtual UpdateContainerAgentResponse UpdateContainerAgent(UpdateContainerAgentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateContainerAgentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateContainerAgentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 516, "before": "public DescribeNodeConfigurationOptionsResult describeNodeConfigurationOptions(DescribeNodeConfigurationOptionsRequest request) {request = beforeClientExecution(request);return executeDescribeNodeConfigurationOptions(request);}", "after": "public virtual DescribeNodeConfigurationOptionsResponse DescribeNodeConfigurationOptions(DescribeNodeConfigurationOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNodeConfigurationOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNodeConfigurationOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 517, "before": "public AddImageRequest() {super(\"ImageSearch\", \"2019-03-25\", \"AddImage\", \"imagesearch\");setUriPattern(\"/v2/image/add\");setMethod(MethodType.POST);}", "after": "public AddImageRequest(): base(\"ImageSearch\", \"2019-03-25\", \"AddImage\", \"imagesearch\", \"openAPI\"){UriPattern = \"/v2/image/add\";Method = MethodType.POST;}" }, { "index": 518, "before": "public BorderFormatting() {field_13_border_styles1 = 0;field_14_border_styles2 = 0;}", "after": "public BorderFormatting(){field_13_border_styles1 = (short)0;field_14_border_styles2 = (short)0;}" }, { "index": 519, "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": 520, "before": "public ListTagsForStreamResult listTagsForStream(ListTagsForStreamRequest request) {request = beforeClientExecution(request);return executeListTagsForStream(request);}", "after": "public virtual ListTagsForStreamResponse ListTagsForStream(ListTagsForStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTagsForStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTagsForStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 521, "before": "public HSSFName createName(){NameRecord nameRecord = workbook.createName();HSSFName newName = new HSSFName(this, nameRecord);names.add(newName);return newName;}", "after": "public NPOI.SS.UserModel.IName CreateName(){NameRecord nameRecord = workbook.CreateName();HSSFName newName = new HSSFName(this, nameRecord);names.Add(newName);return newName;}" }, { "index": 522, "before": "public CreateLogPatternResult createLogPattern(CreateLogPatternRequest request) {request = beforeClientExecution(request);return executeCreateLogPattern(request);}", "after": "public virtual CreateLogPatternResponse CreateLogPattern(CreateLogPatternRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLogPatternRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLogPatternResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 523, "before": "public GetTransitGatewayRouteTablePropagationsResult getTransitGatewayRouteTablePropagations(GetTransitGatewayRouteTablePropagationsRequest request) {request = beforeClientExecution(request);return executeGetTransitGatewayRouteTablePropagations(request);}", "after": "public virtual GetTransitGatewayRouteTablePropagationsResponse GetTransitGatewayRouteTablePropagations(GetTransitGatewayRouteTablePropagationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTransitGatewayRouteTablePropagationsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTransitGatewayRouteTablePropagationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 524, "before": "public void setup() throws Exception {super.setup();String inputDirProp = getRunData().getConfig().get(ADDINDEXES_INPUT_DIR, null);if (inputDirProp == null) {throw new IllegalArgumentException(\"config parameter \" + ADDINDEXES_INPUT_DIR + \" not specified in configuration\");}inputDir = FSDirectory.open(Paths.get(inputDirProp));}", "after": "public override void Setup(){base.Setup();string inputDirProp = RunData.Config.Get(ADDINDEXES_INPUT_DIR, null);if (inputDirProp == null){throw new ArgumentException(\"config parameter \" + ADDINDEXES_INPUT_DIR + \" not specified in configuration\");}inputDir = FSDirectory.Open(new DirectoryInfo(inputDirProp));}" }, { "index": 525, "before": "public StashDropCommand setAll(boolean all) {this.all = all;return this;}", "after": "public virtual NGit.Api.StashDropCommand SetAll(bool all){this.all = all;return this;}" }, { "index": 526, "before": "public ListTrainingJobsForHyperParameterTuningJobResult listTrainingJobsForHyperParameterTuningJob(ListTrainingJobsForHyperParameterTuningJobRequest request) {request = beforeClientExecution(request);return executeListTrainingJobsForHyperParameterTuningJob(request);}", "after": "public virtual ListTrainingJobsForHyperParameterTuningJobResponse ListTrainingJobsForHyperParameterTuningJob(ListTrainingJobsForHyperParameterTuningJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTrainingJobsForHyperParameterTuningJobRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTrainingJobsForHyperParameterTuningJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 527, "before": "public String toString() {return String.format(\"Match %s; found %d labels\",succeeded() ? \"succeeded\" : \"failed\",getLabels().size());}", "after": "public override string ToString(){return string.Format(\"Match {0}; found {1} labels\", Succeeded ? \"succeeded\" : \"failed\", Labels.Count);}" }, { "index": 528, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {double result;try {double d = singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);result = evaluate(d);checkValue(result);} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){double result;try{double d = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);result = Evaluate(d);NumericFunction.CheckValue(result);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}" }, { "index": 529, "before": "public CacheSecurityGroup authorizeCacheSecurityGroupIngress(AuthorizeCacheSecurityGroupIngressRequest request) {request = beforeClientExecution(request);return executeAuthorizeCacheSecurityGroupIngress(request);}", "after": "public virtual AuthorizeCacheSecurityGroupIngressResponse AuthorizeCacheSecurityGroupIngress(AuthorizeCacheSecurityGroupIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = AuthorizeCacheSecurityGroupIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = AuthorizeCacheSecurityGroupIngressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 530, "before": "public String getInflectionType() {return dictionary.getInflectionType(wordId);}", "after": "public virtual string GetInflectionType(){return dictionary.GetInflectionType(wordId);}" }, { "index": 531, "before": "@Override public boolean remove(Object o) {return contains(o) &&(removeValuesForKey(((Multiset.Entry) o).getElement()) > 0);}", "after": "public override bool remove(object o){if (!(o is java.util.MapClass.Entry)){return false;}java.util.MapClass.Entry e = (java.util.MapClass.Entry)o;return this._enclosing.removeMapping(e.getKey(), e.getValue());}" }, { "index": 532, "before": "public RevCommit next() {RevCommit r = next;next = nextForIterator();return r;}", "after": "public virtual RevCommit Next(){return pending.Next();}" }, { "index": 533, "before": "public BatchAssociateUserStackResult batchAssociateUserStack(BatchAssociateUserStackRequest request) {request = beforeClientExecution(request);return executeBatchAssociateUserStack(request);}", "after": "public virtual BatchAssociateUserStackResponse BatchAssociateUserStack(BatchAssociateUserStackRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchAssociateUserStackRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchAssociateUserStackResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 534, "before": "public ScenarioProtectRecord clone() {return copy();}", "after": "public override Object Clone(){ScenarioProtectRecord rec = new ScenarioProtectRecord();rec.field_1_protect = field_1_protect;return rec;}" }, { "index": 535, "before": "public final Class getBundleClass() {return bundleClass;}", "after": "public Type GetBundleClass(){return bundleClass;}" }, { "index": 536, "before": "public void nextBuffer() {if (1+bufferUpto == buffers.length) {int[][] newBuffers = new int[(int) (buffers.length*1.5)][];System.arraycopy(buffers, 0, newBuffers, 0, buffers.length);buffers = newBuffers;}buffer = buffers[1+bufferUpto] = allocator.getIntBlock();bufferUpto++;intUpto = 0;intOffset += INT_BLOCK_SIZE;}", "after": "public void NextBuffer(){if (1 + bufferUpto == buffers.Length){int[][] newBuffers = new int[(int)(buffers.Length * 1.5)][];Array.Copy(buffers, 0, newBuffers, 0, buffers.Length);buffers = newBuffers;}buffer = buffers[1 + bufferUpto] = allocator.GetInt32Block();bufferUpto++;Int32Upto = 0;Int32Offset += INT32_BLOCK_SIZE;}" }, { "index": 537, "before": "public DeleteVpnGatewayRequest(String vpnGatewayId) {setVpnGatewayId(vpnGatewayId);}", "after": "public DeleteVpnGatewayRequest(string vpnGatewayId){_vpnGatewayId = vpnGatewayId;}" }, { "index": 538, "before": "public static Encoder getEncoder(Format format, int version, int bitsPerValue) {checkVersion(version);return BulkOperation.of(format, bitsPerValue);}", "after": "public static IEncoder GetEncoder(Format format, int version, int bitsPerValue){CheckVersion(version);return BulkOperation.Of(format, bitsPerValue);}" }, { "index": 539, "before": "public ClassificationResult(T assignedClass, double score) {this.assignedClass = assignedClass;this.score = score;}", "after": "public ClassificationResult(T assignedClass, double score){_assignedClass = assignedClass;_score = score;}" }, { "index": 540, "before": "public CreateRelationalDatabaseSnapshotResult createRelationalDatabaseSnapshot(CreateRelationalDatabaseSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateRelationalDatabaseSnapshot(request);}", "after": "public virtual CreateRelationalDatabaseSnapshotResponse CreateRelationalDatabaseSnapshot(CreateRelationalDatabaseSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRelationalDatabaseSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRelationalDatabaseSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 541, "before": "public NameRecord addName(NameRecord name) {getOrCreateLinkTable().addName(name);return name;}", "after": "public NameRecord AddName(NameRecord name){OrCreateLinkTable.AddName(name);return name;}" }, { "index": 542, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getFirstRow());out.writeShort(getLastRow());out.writeByte(getFirstColumn());out.writeByte(getLastColumn());}", "after": "public void Serialize(ILittleEndianOutput out1){out1.WriteShort(FirstRow);out1.WriteShort(LastRow);out1.WriteByte(FirstColumn);out1.WriteByte(LastColumn);}" }, { "index": 543, "before": "public String getKey() {return key;}", "after": "public virtual string GetKey(){return key;}" }, { "index": 544, "before": "public GetBlockPublicAccessConfigurationResult getBlockPublicAccessConfiguration(GetBlockPublicAccessConfigurationRequest request) {request = beforeClientExecution(request);return executeGetBlockPublicAccessConfiguration(request);}", "after": "public virtual GetBlockPublicAccessConfigurationResponse GetBlockPublicAccessConfiguration(GetBlockPublicAccessConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBlockPublicAccessConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBlockPublicAccessConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 545, "before": "public static long getResultSize(byte[] delta) {int p = 0;int c;do {c = delta[p++] & 0xff;} while ((c & 0x80) != 0);long resLen = 0;int shift = 0;do {c = delta[p++] & 0xff;resLen |= ((long) (c & 0x7f)) << shift;shift += 7;} while ((c & 0x80) != 0);return resLen;}", "after": "public static long GetResultSize(byte[] delta){int p = 0;int c;do{c = delta[p++] & unchecked((int)(0xff));}while ((c & unchecked((int)(0x80))) != 0);long resLen = 0;int shift = 0;do{c = delta[p++] & unchecked((int)(0xff));resLen |= ((long)(c & unchecked((int)(0x7f)))) << shift;shift += 7;}while ((c & unchecked((int)(0x80))) != 0);return resLen;}" }, { "index": 546, "before": "public long ramBytesUsed() {return RamUsageEstimator.alignObjectSize(RamUsageEstimator.NUM_BYTES_OBJECT_HEADER + Integer.BYTES);}", "after": "public override long RamBytesUsed(){return RamUsageEstimator.AlignObjectSize(RamUsageEstimator.NUM_BYTES_OBJECT_HEADER + RamUsageEstimator.NUM_BYTES_INT32);}" }, { "index": 547, "before": "public NoteRecord() {field_6_author = \"\";field_3_flags = 0;field_7_padding = DEFAULT_PADDING; }", "after": "public NoteRecord(){field_6_author = \"\";field_3_flags = 0;field_7_padding = DEFAULT_PADDING; }" }, { "index": 548, "before": "public CellReference[] getAllReferencedCells() {if(_isSingleCell) {return new CellReference[] { _firstCell, };}int minRow = Math.min(_firstCell.getRow(), _lastCell.getRow());int maxRow = Math.max(_firstCell.getRow(), _lastCell.getRow());int minCol = Math.min(_firstCell.getCol(), _lastCell.getCol());int maxCol = Math.max(_firstCell.getCol(), _lastCell.getCol());String sheetName = _firstCell.getSheetName();List refs = new ArrayList<>();for(int row=minRow; row<=maxRow; row++) {for(int col=minCol; col<=maxCol; col++) {CellReference ref = new CellReference(sheetName, row, col, _firstCell.isRowAbsolute(), _firstCell.isColAbsolute());refs.add(ref);}}return refs.toArray(new CellReference[0]);}", "after": "public CellReference[] GetAllReferencedCells(){if (_isSingleCell){return new CellReference[] { _firstCell, };}int minRow = Math.Min(_firstCell.Row, _lastCell.Row);int maxRow = Math.Max(_firstCell.Row, _lastCell.Row);int minCol = Math.Min(_firstCell.Col, _lastCell.Col);int maxCol = Math.Max(_firstCell.Col, _lastCell.Col);String sheetName = _firstCell.SheetName;ArrayList refs = new ArrayList();for (int row = minRow; row <= maxRow; row++){for (int col = minCol; col <= maxCol; col++){CellReference ref1 = new CellReference(sheetName, row, col, _firstCell.IsRowAbsolute, _firstCell.IsColAbsolute);refs.Add(ref1);}}return (CellReference[])refs.ToArray(typeof(CellReference));}" }, { "index": 549, "before": "public String[] listAll() {ensureOpen();String[] res = entries.keySet().toArray(new String[entries.size()]);for (int i = 0; i < res.length; i++) {res[i] = segmentName + res[i];}return res;}", "after": "public override string[] ListAll(){EnsureOpen();string[] res;if (writer != null){res = writer.ListAll();}else{res = entries.Keys.ToArray();string seg = IndexFileNames.ParseSegmentName(fileName);for (int i = 0; i < res.Length; i++){res[i] = seg + res[i];}}return res;}" }, { "index": 550, "before": "public UpdateDataRetentionResult updateDataRetention(UpdateDataRetentionRequest request) {request = beforeClientExecution(request);return executeUpdateDataRetention(request);}", "after": "public virtual UpdateDataRetentionResponse UpdateDataRetention(UpdateDataRetentionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDataRetentionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDataRetentionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 551, "before": "public CreateDistributionRequest(DistributionConfig distributionConfig) {setDistributionConfig(distributionConfig);}", "after": "public CreateDistributionRequest(DistributionConfig distributionConfig){_distributionConfig = distributionConfig;}" }, { "index": 552, "before": "public DescribeBatchPredictionsResult describeBatchPredictions(DescribeBatchPredictionsRequest request) {request = beforeClientExecution(request);return executeDescribeBatchPredictions(request);}", "after": "public virtual DescribeBatchPredictionsResponse DescribeBatchPredictions(DescribeBatchPredictionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeBatchPredictionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeBatchPredictionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 553, "before": "public float getScore(int index) {return scores[index];}", "after": "public virtual float GetScore(int index){return scores[index];}" }, { "index": 554, "before": "public BatchUpdatePhoneNumberResult batchUpdatePhoneNumber(BatchUpdatePhoneNumberRequest request) {request = beforeClientExecution(request);return executeBatchUpdatePhoneNumber(request);}", "after": "public virtual BatchUpdatePhoneNumberResponse BatchUpdatePhoneNumber(BatchUpdatePhoneNumberRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchUpdatePhoneNumberRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchUpdatePhoneNumberResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 555, "before": "public LMSimilarity(CollectionModel collectionModel) {this.collectionModel = collectionModel;}", "after": "public LMSimilarity(ICollectionModel collectionModel){this.m_collectionModel = collectionModel;}" }, { "index": 556, "before": "public GetGlobalSettingsResult getGlobalSettings(GetGlobalSettingsRequest request) {request = beforeClientExecution(request);return executeGetGlobalSettings(request);}", "after": "public virtual GetGlobalSettingsResponse GetGlobalSettings(GetGlobalSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetGlobalSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetGlobalSettingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 557, "before": "public CreateHITTypeResult createHITType(CreateHITTypeRequest request) {request = beforeClientExecution(request);return executeCreateHITType(request);}", "after": "public virtual CreateHITTypeResponse CreateHITType(CreateHITTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateHITTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateHITTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 558, "before": "public MLTConfig build() {return new MLTConfig(this);}", "after": "public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}" }, { "index": 559, "before": "public CharsRef(String string) {this.chars = string.toCharArray();this.offset = 0;this.length = chars.length;}", "after": "public CharsRef(string @string){this.chars = @string.ToCharArray();this.Offset = 0;this.Length = chars.Length;}" }, { "index": 560, "before": "public ListFargateProfilesResult listFargateProfiles(ListFargateProfilesRequest request) {request = beforeClientExecution(request);return executeListFargateProfiles(request);}", "after": "public virtual ListFargateProfilesResponse ListFargateProfiles(ListFargateProfilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFargateProfilesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFargateProfilesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 561, "before": "public Entry floorEntry(K key) {return immutableCopy(findBounded(key, FLOOR));}", "after": "public java.util.MapClass.Entry floorEntry(K key){return this._enclosing.immutableCopy(this.findBounded(key, java.util.TreeMap.Relation.FLOOR));}" }, { "index": 562, "before": "public boolean equals( Object o ) {return o instanceof NorwegianStemmer;}", "after": "public override bool Equals(object o){return o is NorwegianStemmer;}" }, { "index": 563, "before": "public DeleteVaultNotificationsResult deleteVaultNotifications(DeleteVaultNotificationsRequest request) {request = beforeClientExecution(request);return executeDeleteVaultNotifications(request);}", "after": "public virtual DeleteVaultNotificationsResponse DeleteVaultNotifications(DeleteVaultNotificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVaultNotificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVaultNotificationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 564, "before": "public static boolean endsWith(char s[], int len, String suffix) {final int suffixLen = suffix.length();if (suffixLen > len)return false;for (int i = suffixLen - 1; i >= 0; i--)if (s[len -(suffixLen - i)] != suffix.charAt(i))return false;return true;}", "after": "public static bool EndsWith(char[] s, int len, string suffix){int suffixLen = suffix.Length;if (suffixLen > len){return false;}for (int i = suffixLen - 1; i >= 0; i--){if (s[len - (suffixLen - i)] != suffix[i]){return false;}}return true;}" }, { "index": 565, "before": "public synchronized void setRequireDimCount(String dimName, boolean v) {DimConfig ft = fieldTypes.get(dimName);if (ft == null) {ft = new DimConfig();fieldTypes.put(dimName, ft);}ft.requireDimCount = v;}", "after": "public virtual void SetRequireDimCount(string dimName, bool v){lock (this){if (!fieldTypes.TryGetValue(dimName, out DimConfig fieldType)){fieldTypes[dimName] = new DimConfig { RequireDimCount = v };}else{fieldType.RequireDimCount = v;}}}" }, { "index": 566, "before": "public HSSFName getName(String name) {int nameIndex = getNameIndex(name);if (nameIndex < 0) {return null;}return names.get(nameIndex);}", "after": "public NPOI.SS.UserModel.IName GetName(String name){int nameIndex = GetNameIndex(name);if (nameIndex < 0){return null;}return (HSSFName)names[nameIndex];}" }, { "index": 567, "before": "public ScriptBootstrapActionConfig(String path, java.util.List args) {setPath(path);setArgs(args);}", "after": "public ScriptBootstrapActionConfig(string path, List args){_path = path;_args = args;}" }, { "index": 568, "before": "public RegisterApplicationRevisionResult registerApplicationRevision(RegisterApplicationRevisionRequest request) {request = beforeClientExecution(request);return executeRegisterApplicationRevision(request);}", "after": "public virtual RegisterApplicationRevisionResponse RegisterApplicationRevision(RegisterApplicationRevisionRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterApplicationRevisionRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterApplicationRevisionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 569, "before": "public SendTestEventNotificationResult sendTestEventNotification(SendTestEventNotificationRequest request) {request = beforeClientExecution(request);return executeSendTestEventNotification(request);}", "after": "public virtual SendTestEventNotificationResponse SendTestEventNotification(SendTestEventNotificationRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendTestEventNotificationRequestMarshaller.Instance;options.ResponseUnmarshaller = SendTestEventNotificationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 570, "before": "public void setRefLogIdent(PersonIdent pi) {refLogIdent = pi;}", "after": "public virtual void SetRefLogIdent(PersonIdent pi){refLogIdent = pi;}" }, { "index": 571, "before": "public GetDomainDeliverabilityCampaignResult getDomainDeliverabilityCampaign(GetDomainDeliverabilityCampaignRequest request) {request = beforeClientExecution(request);return executeGetDomainDeliverabilityCampaign(request);}", "after": "public virtual GetDomainDeliverabilityCampaignResponse GetDomainDeliverabilityCampaign(GetDomainDeliverabilityCampaignRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDomainDeliverabilityCampaignRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDomainDeliverabilityCampaignResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 572, "before": "public String toFormulaString() {StringBuilder b = new StringBuilder();b.append(\"{\");for (int y = 0; y < _nRows; y++) {if (y > 0) {b.append(\";\");}for (int x = 0; x < _nColumns; x++) {if (x > 0) {b.append(\",\");}Object o = _arrayValues[getValueIndex(x, y)];b.append(getConstantText(o));}}b.append(\"}\");return b.toString();}", "after": "public override String ToFormulaString(){StringBuilder b = new StringBuilder();b.Append(\"{\");for (int y = 0; y < RowCount; y++){if (y > 0){b.Append(\";\");}for (int x = 0; x < ColumnCount; x++){if (x > 0){b.Append(\",\");}Object o = _arrayValues.GetValue(GetValueIndex(x, y));b.Append(GetConstantText(o));}}b.Append(\"}\");return b.ToString();}" }, { "index": 573, "before": "public ShingleFilterFactory(Map args) {super(args);maxShingleSize = getInt(args, \"maxShingleSize\", ShingleFilter.DEFAULT_MAX_SHINGLE_SIZE);if (maxShingleSize < 2) {throw new IllegalArgumentException(\"Invalid maxShingleSize (\" + maxShingleSize + \") - must be at least 2\");}minShingleSize = getInt(args, \"minShingleSize\", ShingleFilter.DEFAULT_MIN_SHINGLE_SIZE);if (minShingleSize < 2) {throw new IllegalArgumentException(\"Invalid minShingleSize (\" + minShingleSize + \") - must be at least 2\");}if (minShingleSize > maxShingleSize) {throw new IllegalArgumentException(\"Invalid minShingleSize (\" + minShingleSize + \") - must be no greater than maxShingleSize (\" + maxShingleSize + \")\");}outputUnigrams = getBoolean(args, \"outputUnigrams\", true);outputUnigramsIfNoShingles = getBoolean(args, \"outputUnigramsIfNoShingles\", false);tokenSeparator = get(args, \"tokenSeparator\", ShingleFilter.DEFAULT_TOKEN_SEPARATOR);fillerToken = get(args, \"fillerToken\", ShingleFilter.DEFAULT_FILLER_TOKEN);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public ShingleFilterFactory(IDictionary args): base(args){maxShingleSize = GetInt32(args, \"maxShingleSize\", ShingleFilter.DEFAULT_MAX_SHINGLE_SIZE);if (maxShingleSize < 2){throw new ArgumentOutOfRangeException(\"Invalid maxShingleSize (\" + maxShingleSize + \") - must be at least 2\");}minShingleSize = GetInt32(args, \"minShingleSize\", ShingleFilter.DEFAULT_MIN_SHINGLE_SIZE);if (minShingleSize < 2){throw new ArgumentOutOfRangeException(\"Invalid minShingleSize (\" + minShingleSize + \") - must be at least 2\");}if (minShingleSize > maxShingleSize){throw new ArgumentOutOfRangeException(\"Invalid minShingleSize (\" + minShingleSize + \") - must be no greater than maxShingleSize (\" + maxShingleSize + \")\");}outputUnigrams = GetBoolean(args, \"outputUnigrams\", true);outputUnigramsIfNoShingles = GetBoolean(args, \"outputUnigramsIfNoShingles\", false);tokenSeparator = Get(args, \"tokenSeparator\", ShingleFilter.DEFAULT_TOKEN_SEPARATOR);fillerToken = Get(args, \"fillerToken\", ShingleFilter.DEFAULT_FILLER_TOKEN);if (args.Count > 0){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 574, "before": "public UpdateRelationalDatabaseParametersResult updateRelationalDatabaseParameters(UpdateRelationalDatabaseParametersRequest request) {request = beforeClientExecution(request);return executeUpdateRelationalDatabaseParameters(request);}", "after": "public virtual UpdateRelationalDatabaseParametersResponse UpdateRelationalDatabaseParameters(UpdateRelationalDatabaseParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRelationalDatabaseParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRelationalDatabaseParametersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 575, "before": "public static Collection findAllRuleNodes(ParseTree t, int ruleIndex) {return findAllNodes(t, ruleIndex, false);}", "after": "public static ICollection FindAllRuleNodes(IParseTree t, int ruleIndex){return FindAllNodes(t, ruleIndex, false);}" }, { "index": 576, "before": "public int getObjectCount() {return entryCount;}", "after": "public virtual int GetObjectCount(){return entryCount;}" }, { "index": 577, "before": "public ActionTransition(ATNState target, int ruleIndex, int actionIndex, boolean isCtxDependent) {super(target);this.ruleIndex = ruleIndex;this.actionIndex = actionIndex;this.isCtxDependent = isCtxDependent;}", "after": "public ActionTransition(ATNState target, int ruleIndex, int actionIndex, bool isCtxDependent): base(target){this.ruleIndex = ruleIndex;this.actionIndex = actionIndex;this.isCtxDependent = isCtxDependent;}" }, { "index": 578, "before": "public long get(int index) {final int blockOffset = index / valuesPerBlock;final long skip = ((long) blockOffset) << 3;try {in.seek(startPointer + skip);long block = in.readLong();final int offsetInBlock = index % valuesPerBlock;return (block >>> (offsetInBlock * bitsPerValue)) & mask;} catch (IOException e) {throw new IllegalStateException(\"failed\", e);}}", "after": "public override long Get(int index){int blockOffset = index / valuesPerBlock;long skip = ((long)blockOffset) << 3;try{@in.Seek(startPointer + skip);long block = @in.ReadInt64();int offsetInBlock = index % valuesPerBlock;return ((long)((ulong)block >> (offsetInBlock * m_bitsPerValue))) & mask;}catch (System.IO.IOException e){throw new InvalidOperationException(\"failed\", e);}}" }, { "index": 579, "before": "public String getSignerType() {return \"BEARERTOKEN\";}", "after": "public override string GetSignerType(){return \"BEARERTOKEN\";}" }, { "index": 580, "before": "public PipedOutputStream(PipedInputStream target) throws IOException {connect(target);}", "after": "public PipedOutputStream(java.io.PipedInputStream target){throw new System.NotImplementedException();}" }, { "index": 581, "before": "public DeleteLedgerResult deleteLedger(DeleteLedgerRequest request) {request = beforeClientExecution(request);return executeDeleteLedger(request);}", "after": "public virtual DeleteLedgerResponse DeleteLedger(DeleteLedgerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLedgerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLedgerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 582, "before": "public GetCognitoEventsResult getCognitoEvents(GetCognitoEventsRequest request) {request = beforeClientExecution(request);return executeGetCognitoEvents(request);}", "after": "public virtual GetCognitoEventsResponse GetCognitoEvents(GetCognitoEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCognitoEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCognitoEventsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 583, "before": "public NameXPtg getNameXPtg(String name, SheetIdentifier sheet) {int sheetRefIndex = getSheetExtIx(sheet);return _iBook.getNameXPtg(name, sheetRefIndex, _uBook.getUDFFinder());}", "after": "public Ptg GetNameXPtg(String name, SheetIdentifier sheet){int sheetRefIndex = GetSheetExtIx(sheet);return _iBook.GetNameXPtg(name, sheetRefIndex, _uBook.GetUDFFinder());}" }, { "index": 584, "before": "public ListResolverEndpointsResult listResolverEndpoints(ListResolverEndpointsRequest request) {request = beforeClientExecution(request);return executeListResolverEndpoints(request);}", "after": "public virtual ListResolverEndpointsResponse ListResolverEndpoints(ListResolverEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListResolverEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListResolverEndpointsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 585, "before": "public String readLine() {try {return reader.readLine();} catch (IOException e) {throw new IOError(e);}}", "after": "public string readLine(){try{return _reader.readLine();}catch (System.IO.IOException e){throw new java.io.IOError(e);}}" }, { "index": 586, "before": "public int hash2(char carray[]) {int hash = 5381;for (int i = 0; i < carray.length; i++) {char d = carray[i];hash = ((hash << 5) + hash) + d & 0x00FF;hash = ((hash << 5) + hash) + d >> 8;}return hash;}", "after": "public virtual int Hash2(char[] carray){int hash = 5381;for (int i = 0; i < carray.Length; i++){char d = carray[i];hash = ((hash << 5) + hash) + d & 0x00FF;hash = ((hash << 5) + hash) + d >> 8;}return hash;}" }, { "index": 587, "before": "public static long toBookSheetColumn(int bookIndex, int sheetIndex, int columnIndex) {return ((bookIndex & 0xFFFFL) << 48) +((sheetIndex & 0xFFFFL) << 32) +((columnIndex & 0xFFFFL) << 0);}", "after": "public static long ToBookSheetColumn(int bookIndex, int sheetIndex, int columnIndex){return ((bookIndex & 0xFFFFL) << 48) + ((sheetIndex & 0xFFFFL) << 32) + ((columnIndex & 0xFFFFL) << 0);}" }, { "index": 588, "before": "public CreateConfigurationProfileResult createConfigurationProfile(CreateConfigurationProfileRequest request) {request = beforeClientExecution(request);return executeCreateConfigurationProfile(request);}", "after": "public virtual CreateConfigurationProfileResponse CreateConfigurationProfile(CreateConfigurationProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConfigurationProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateConfigurationProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 589, "before": "public ReplicationGroup startMigration(StartMigrationRequest request) {request = beforeClientExecution(request);return executeStartMigration(request);}", "after": "public virtual StartMigrationResponse StartMigration(StartMigrationRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartMigrationRequestMarshaller.Instance;options.ResponseUnmarshaller = StartMigrationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 590, "before": "public OffsetLimitTokenFilter(TokenStream input, int offsetLimit) {super(input);this.offsetLimit = offsetLimit;}", "after": "public OffsetLimitTokenFilter(TokenStream input, int offsetLimit) : base(input){this.offsetLimit = offsetLimit;offsetAttrib = GetAttribute();}" }, { "index": 591, "before": "public final void write(byte[] b, int off, int len)throws IOException {while (0 < len) {final int n = Math.min(len, BYTES_TO_WRITE_BEFORE_CANCEL_CHECK);count += n;if (checkCancelAt <= count) {if (writeMonitor.isCancelled()) {throw new IOException(JGitText.get().packingCancelledDuringObjectsWriting);}checkCancelAt = count + BYTES_TO_WRITE_BEFORE_CANCEL_CHECK;}out.write(b, off, n);md.update(b, off, n);off += n;len -= n;}}", "after": "public override void Write(byte[] b, int off, int len){while (0 < len){int n = Math.Min(len, BYTES_TO_WRITE_BEFORE_CANCEL_CHECK);count += n;if (checkCancelAt <= count){if (writeMonitor.IsCancelled()){throw new IOException(JGitText.Get().packingCancelledDuringObjectsWriting);}checkCancelAt = count + BYTES_TO_WRITE_BEFORE_CANCEL_CHECK;}@out.Write(b, off, n);crc.Update(b, off, n);md.Update(b, off, n);off += n;len -= n;}}" }, { "index": 592, "before": "public Cell merge(Cell m, Cell e) {Cell n = new Cell();if (m.skip != e.skip) {return null;}if (m.cmd >= 0) {if (e.cmd >= 0) {if (m.cmd == e.cmd) {n.cmd = m.cmd;} else {return null;}} else {n.cmd = m.cmd;}} else {n.cmd = e.cmd;}if (m.ref >= 0) {if (e.ref >= 0) {if (m.ref == e.ref) {if (m.skip == e.skip) {n.ref = m.ref;} else {return null;}} else {return null;}} else {n.ref = m.ref;}} else {n.ref = e.ref;}n.cnt = m.cnt + e.cnt;n.skip = m.skip;return n;}", "after": "public virtual Cell Merge(Cell m, Cell e){Cell n = new Cell();if (m.skip != e.skip){return null;}if (m.cmd >= 0){if (e.cmd >= 0){if (m.cmd == e.cmd){n.cmd = m.cmd;}else{return null;}}else{n.cmd = m.cmd;}}else{n.cmd = e.cmd;}if (m.@ref >= 0){if (e.@ref >= 0){if (m.@ref == e.@ref){if (m.skip == e.skip){n.@ref = m.@ref;}else{return null;}}else{return null;}}else{n.@ref = m.@ref;}}else{n.@ref = e.@ref;}n.cnt = m.cnt + e.cnt;n.skip = m.skip;return n;}" }, { "index": 593, "before": "public GetCampaignActivitiesResult getCampaignActivities(GetCampaignActivitiesRequest request) {request = beforeClientExecution(request);return executeGetCampaignActivities(request);}", "after": "public virtual GetCampaignActivitiesResponse GetCampaignActivities(GetCampaignActivitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCampaignActivitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCampaignActivitiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 594, "before": "public long estimateBytesUsed() {return bytesUsed;}", "after": "public virtual long EstimateBytesUsed(){return this.bytesUsed;}" }, { "index": 595, "before": "public FunctionNameEval(String functionName) {_functionName = functionName;}", "after": "public FunctionNameEval(String functionName) {_functionName = functionName;}" }, { "index": 596, "before": "public final float averageBytesPerChar() {return averageBytesPerChar;}", "after": "public float averageBytesPerChar(){return _averageBytesPerChar;}" }, { "index": 597, "before": "public CreateCacheSecurityGroupRequest(String cacheSecurityGroupName, String description) {setCacheSecurityGroupName(cacheSecurityGroupName);setDescription(description);}", "after": "public CreateCacheSecurityGroupRequest(string cacheSecurityGroupName, string description){_cacheSecurityGroupName = cacheSecurityGroupName;_description = description;}" }, { "index": 598, "before": "public void removeAt(int index) {System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1));System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1));mSize--;}", "after": "public virtual void removeAt(int index){System.Array.Copy(mKeys, index + 1, mKeys, index, mSize - (index + 1));System.Array.Copy(mValues, index + 1, mValues, index, mSize - (index + 1));mSize--;}" }, { "index": 599, "before": "public DescribeIndexFieldsResult describeIndexFields(DescribeIndexFieldsRequest request) {request = beforeClientExecution(request);return executeDescribeIndexFields(request);}", "after": "public virtual DescribeIndexFieldsResponse DescribeIndexFields(DescribeIndexFieldsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIndexFieldsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIndexFieldsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 600, "before": "public void remove(int key) {delete(key);}", "after": "public virtual void remove(int key){delete(key);}" }, { "index": 601, "before": "public ShortBuffer duplicate() {ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());ShortToByteBufferAdapter buf = new ShortToByteBufferAdapter(bb);buf.limit = limit;buf.position = position;buf.mark = mark;return buf;}", "after": "public override java.nio.ShortBuffer duplicate(){java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());java.nio.ShortToByteBufferAdapter buf = new java.nio.ShortToByteBufferAdapter(bb);buf._limit = _limit;buf._position = _position;buf._mark = _mark;return buf;}" }, { "index": 602, "before": "public void addDbcell(int cell){if (field_5_dbcells == null){field_5_dbcells = new IntList();}field_5_dbcells.add(cell);}", "after": "public void AddDbcell(int cell){if (field_5_dbcells == null){field_5_dbcells = new IntList();}field_5_dbcells.Add(cell);}" }, { "index": 603, "before": "public DeleteSubnetResult deleteSubnet(DeleteSubnetRequest request) {request = beforeClientExecution(request);return executeDeleteSubnet(request);}", "after": "public virtual DeleteSubnetResponse DeleteSubnet(DeleteSubnetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSubnetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSubnetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 604, "before": "public List getAllPictures(){List pictures = new ArrayList<>();for (org.apache.poi.hssf.record.Record r : workbook.getRecords()) {if (r instanceof AbstractEscherHolderRecord) {((AbstractEscherHolderRecord) r).decode();List escherRecords = ((AbstractEscherHolderRecord) r).getEscherRecords();searchForPictures(escherRecords, pictures);}}return Collections.unmodifiableList(pictures);}", "after": "public IList GetAllPictures(){List pictures = new List();IEnumerator recordIter = workbook.Records.GetEnumerator();while (recordIter.MoveNext()){Object obj = recordIter.Current;if (obj is AbstractEscherHolderRecord){((AbstractEscherHolderRecord)obj).Decode();IList escherRecords = ((AbstractEscherHolderRecord)obj).EscherRecords;SearchForPictures(escherRecords, pictures);}}return pictures;}" }, { "index": 605, "before": "public DescribeWorkspacesConnectionStatusResult describeWorkspacesConnectionStatus(DescribeWorkspacesConnectionStatusRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspacesConnectionStatus(request);}", "after": "public virtual DescribeWorkspacesConnectionStatusResponse DescribeWorkspacesConnectionStatus(DescribeWorkspacesConnectionStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkspacesConnectionStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkspacesConnectionStatusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 606, "before": "public String toString() {return \"MultiDocsAndPositionsEnum(\" + Arrays.toString(getSubs()) + \")\";}", "after": "public override string ToString(){return Slice.ToString() + \":\" + DocsEnum;}" }, { "index": 607, "before": "public InvokeServiceAsyncRequest() {super(\"industry-brain\", \"2018-07-12\", \"InvokeServiceAsync\");setMethod(MethodType.POST);}", "after": "public InvokeServiceAsyncRequest(): base(\"industry-brain\", \"2018-07-12\", \"InvokeServiceAsync\"){Method = MethodType.POST;}" }, { "index": 608, "before": "public AuthorizeSecurityGroupIngressRequest(String groupName, java.util.List ipPermissions) {setGroupName(groupName);setIpPermissions(ipPermissions);}", "after": "public AuthorizeSecurityGroupIngressRequest(string groupName, List ipPermissions){_groupName = groupName;_ipPermissions = ipPermissions;}" }, { "index": 609, "before": "public static byte[] readData(InputStream stream, String section ) throws IOException {try {StringBuilder sectionText = new StringBuilder();boolean inSection = false;int c = stream.read();while ( c != -1 ) {switch ( c ) {case '[':inSection = true;break;case '\\n':case '\\r':inSection = false;sectionText = new StringBuilder();break;case ']':inSection = false;if ( sectionText.toString().equals( section ) ) return readData( stream, '[' );sectionText = new StringBuilder();break;default:if ( inSection ) sectionText.append( (char) c );}c = stream.read();}} finally {stream.close();}throw new IOException( \"Section '\" + section + \"' not found\" );}", "after": "public static byte[] ReadData(Stream stream, String section ){try{StringBuilder sectionText = new StringBuilder();bool inSection = false;int c = stream.ReadByte();while ( c != -1 ){switch ( c ){case '[':inSection = true;break;case '\\n':case '\\r':inSection = false;sectionText = new StringBuilder();break;case ']':inSection = false;if (sectionText.ToString().Equals(section)){return ReadData(stream, '[');}sectionText = new StringBuilder();break;default:if ( inSection ) sectionText.Append( (char) c );break;}c = stream.ReadByte();}}finally{stream.Close();}throw new IOException( \"Section '\" + section + \"' not found\" );}" }, { "index": 610, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE) {int number;try {number = OperandResolver.coerceValueToInt(numberVE);} catch (EvaluationException e) {return ErrorEval.VALUE_INVALID;}if (number < 0) {return ErrorEval.NUM_ERROR;}return new NumberEval(factorial(number).longValue());}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE){int number;try{number = OperandResolver.CoerceValueToInt(numberVE);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}if (number < 0){return ErrorEval.NUM_ERROR;}return new NumberEval(factorial(number).LongValue());}" }, { "index": 611, "before": "public final LexerActionExecutor getLexerActionExecutor() {return lexerActionExecutor;}", "after": "public LexerActionExecutor getLexerActionExecutor(){return lexerActionExecutor;}" }, { "index": 612, "before": "public EnableUserResult enableUser(EnableUserRequest request) {request = beforeClientExecution(request);return executeEnableUser(request);}", "after": "public virtual EnableUserResponse EnableUser(EnableUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableUserRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableUserResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 613, "before": "public void fillSlice(BytesRef b, long start, int length) {assert length >= 0: \"length=\" + length;assert length <= blockSize+1: \"length=\" + length;b.length = length;if (length == 0) {return;}final int index = (int) (start >> blockBits);final int offset = (int) (start & blockMask);if (blockSize - offset >= length) {b.bytes = blocks[index];b.offset = offset;} else {b.bytes = new byte[length];b.offset = 0;System.arraycopy(blocks[index], offset, b.bytes, 0, blockSize-offset);System.arraycopy(blocks[1+index], 0, b.bytes, blockSize-offset, length-(blockSize-offset));}}", "after": "public void FillSlice(BytesRef b, long start, int length){Debug.Assert(length >= 0, \"length=\" + length);Debug.Assert(length <= blockSize + 1, \"length=\" + length);b.Length = length;if (length == 0){return;}var index = (int)(start >> blockBits);var offset = (int)(start & blockMask);if (blockSize - offset >= length){b.Bytes = blocks[index];b.Offset = offset;}else{b.Bytes = new byte[length];b.Offset = 0;Array.Copy(blocks[index], offset, b.Bytes, 0, blockSize - offset);Array.Copy(blocks[1 + index], 0, b.Bytes, blockSize - offset, length - (blockSize - offset));}}" }, { "index": 614, "before": "public DescribeJournalS3ExportResult describeJournalS3Export(DescribeJournalS3ExportRequest request) {request = beforeClientExecution(request);return executeDescribeJournalS3Export(request);}", "after": "public virtual DescribeJournalS3ExportResponse DescribeJournalS3Export(DescribeJournalS3ExportRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeJournalS3ExportRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeJournalS3ExportResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 615, "before": "public void setCoordinates(int x1, int y1, int x2, int y2) {_spgrRecord.setRectY1(y1);_spgrRecord.setRectY2(y2);_spgrRecord.setRectX1(x1);_spgrRecord.setRectX2(x2);}", "after": "public void SetCoordinates(int x1, int y1, int x2, int y2){_spgrRecord.RectY1 = (y1);_spgrRecord.RectY2 = (y2);_spgrRecord.RectX1 = (x1);_spgrRecord.RectX2 = (x2);}" }, { "index": 616, "before": "public DescribeTagsResult describeTags(DescribeTagsRequest request) {request = beforeClientExecution(request);return executeDescribeTags(request);}", "after": "public virtual DescribeTagsResponse DescribeTags(DescribeTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTagsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 617, "before": "public int doLogic() {return 1;}", "after": "public override int DoLogic(){return 1;}" }, { "index": 618, "before": "public DeleteCustomerGatewayResult deleteCustomerGateway(DeleteCustomerGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteCustomerGateway(request);}", "after": "public virtual DeleteCustomerGatewayResponse DeleteCustomerGateway(DeleteCustomerGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCustomerGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCustomerGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 619, "before": "public static Map newContext(IndexSearcher searcher) {Map context = new IdentityHashMap();context.put(\"searcher\", searcher);return context;}", "after": "public static IDictionary NewContext(IndexSearcher searcher){return new Hashtable(IdentityEqualityComparer.Default){[\"searcher\"] = searcher};}" }, { "index": 620, "before": "public NameRecord getSpecificBuiltinRecord(byte builtInCode, int sheetNumber) {Iterator iterator = _definedNames.iterator();while (iterator.hasNext()) {NameRecord record = iterator.next();if (record.getBuiltInName() == builtInCode && record.getSheetNumber() == sheetNumber) {return record;}}return null;}", "after": "public NameRecord GetSpecificBuiltinRecord(byte builtInCode, int sheetNumber){IEnumerator iterator = _definedNames.GetEnumerator();while (iterator.MoveNext()){NameRecord record = iterator.Current;if (record.BuiltInName == builtInCode && record.SheetNumber == sheetNumber){return record;}}return null;}" }, { "index": 621, "before": "public final double readDouble() throws IOException {return Double.longBitsToDouble(readLong());}", "after": "public virtual double readDouble(){throw new System.NotImplementedException();}" }, { "index": 622, "before": "public void write(byte[] buffer, int offset, int count) throws IOException {super.write(buffer, offset, count);}", "after": "public override void write(byte[] buffer, int offset, int count){throw new System.NotImplementedException();}" }, { "index": 623, "before": "public TokenStream create(TokenStream input) {return new PersianNormalizationFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new PersianNormalizationFilter(input);}" }, { "index": 624, "before": "public SpanishLightStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public SpanishLightStemFilterFactory(IDictionary args) : base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 625, "before": "public SmallDocSet(int size) {intSet = new SentinelIntSet(size, -1);}", "after": "public SmallDocSet(int size){intSet = new SentinelInt32Set(size, -1);}" }, { "index": 626, "before": "public RawCharSequence(byte[] buf, int start, int end) {buffer = buf;startPtr = start;endPtr = end;}", "after": "public RawCharSequence(byte[] buf, int start, int end){buffer = buf;startPtr = start;endPtr = end;}" }, { "index": 627, "before": "public GetCustomVerificationEmailTemplateResult getCustomVerificationEmailTemplate(GetCustomVerificationEmailTemplateRequest request) {request = beforeClientExecution(request);return executeGetCustomVerificationEmailTemplate(request);}", "after": "public virtual GetCustomVerificationEmailTemplateResponse GetCustomVerificationEmailTemplate(GetCustomVerificationEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCustomVerificationEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCustomVerificationEmailTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 628, "before": "public SendMessageBatchRequest(String queueUrl, java.util.List entries) {setQueueUrl(queueUrl);setEntries(entries);}", "after": "public SendMessageBatchRequest(string queueUrl, List entries){_queueUrl = queueUrl;_entries = entries;}" }, { "index": 629, "before": "public void writeInt(int v) {writeContinueIfRequired(4);_ulrOutput.writeInt(v);}", "after": "public void WriteInt(int v){WriteContinueIfRequired(4);_ulrOutput.WriteInt(v);}" }, { "index": 630, "before": "public DescribeDataSourcesResult describeDataSources(DescribeDataSourcesRequest request) {request = beforeClientExecution(request);return executeDescribeDataSources(request);}", "after": "public virtual DescribeDataSourcesResponse DescribeDataSources(DescribeDataSourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDataSourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDataSourcesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 631, "before": "public ListRoomsResult listRooms(ListRoomsRequest request) {request = beforeClientExecution(request);return executeListRooms(request);}", "after": "public virtual ListRoomsResponse ListRooms(ListRoomsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRoomsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRoomsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 632, "before": "public char getConversion() {return c;}", "after": "public virtual char getConversion(){return c;}" }, { "index": 633, "before": "public boolean equals(Object _other) {FieldAndTerm other = (FieldAndTerm) _other;return other.field.equals(field) && term.bytesEquals(other.term);}", "after": "public override bool Equals(object other){var o = (FieldAndTerm)other;return o.Field.Equals(Field, StringComparison.Ordinal) && Term.BytesEquals(o.Term);}" }, { "index": 634, "before": "public CreateConfigurationSetEventDestinationResult createConfigurationSetEventDestination(CreateConfigurationSetEventDestinationRequest request) {request = beforeClientExecution(request);return executeCreateConfigurationSetEventDestination(request);}", "after": "public virtual CreateConfigurationSetEventDestinationResponse CreateConfigurationSetEventDestination(CreateConfigurationSetEventDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConfigurationSetEventDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateConfigurationSetEventDestinationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 635, "before": "public Ole10Native(String label, String filename, String command, byte[] data) {setLabel(label);setFileName(filename);setCommand(command);setDataBuffer(data);mode = EncodingMode.parsed;}", "after": "public Ole10Native(String label, String filename, String command, byte[] data){Label=(label);FileName=(filename);Command=(command);DataBuffer=(data);mode = EncodingMode.parsed;}" }, { "index": 636, "before": "public String toString() {StringBuilder sb = new StringBuilder();if (fetchResult != null)sb.append(fetchResult.toString());elsesb.append(\"No fetch result\");sb.append(\"\\n\");if (mergeResult != null)sb.append(mergeResult.toString());else if (rebaseResult != null)sb.append(rebaseResult.toString());elsesb.append(\"No update result\");return sb.toString();}", "after": "public override string ToString(){StringBuilder sb = new StringBuilder();if (fetchResult != null){sb.Append(fetchResult.ToString());}else{sb.Append(\"No fetch result\");}sb.Append(\"\\n\");if (mergeResult != null){sb.Append(mergeResult.ToString());}else{if (rebaseResult != null){sb.Append(rebaseResult.ToString());}else{sb.Append(\"No update result\");}}return sb.ToString();}" }, { "index": 637, "before": "public static Cell createCell(Row row, int column, String value) {return createCell(row, column, value, null);}", "after": "public static ICell CreateCell(IRow row, int column, String value){return CreateCell(row, column, value, null);}" }, { "index": 638, "before": "public TokenStream create(TokenStream input) {return new HindiNormalizationFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new HindiNormalizationFilter(input);}" }, { "index": 639, "before": "public DescribeAddressesResult describeAddresses() {return describeAddresses(new DescribeAddressesRequest());}", "after": "public virtual DescribeAddressesResponse DescribeAddresses(){return DescribeAddresses(new DescribeAddressesRequest());}" }, { "index": 640, "before": "public SimpleQQParser(String qqName, String indexField) {this(new String[] { qqName }, indexField);}", "after": "public SimpleQQParser(string[] qqNames, string indexField){this.qqNames = qqNames;this.indexField = indexField;}" }, { "index": 641, "before": "public void dispatch(RefsChangedListener listener) {listener.onRefsChanged(this);}", "after": "public override void Dispatch(RefsChangedListener listener){listener.OnRefsChanged(this);}" }, { "index": 642, "before": "public SnowballFilter(TokenStream in, String name) {super(in);try {Class stemClass =Class.forName(\"org.tartarus.snowball.ext.\" + name + \"Stemmer\").asSubclass(SnowballStemmer.class);stemmer = stemClass.getConstructor().newInstance();} catch (Exception e) {", "after": "public SnowballFilter(TokenStream @in, string name): base(@in){try{string className = typeof(SnowballProgram).Namespace + \".Ext.\" +name + \"Stemmer, \" + this.GetType().GetTypeInfo().Assembly.GetName().Name;Type stemClass = Type.GetType(className);stemmer = (SnowballProgram)Activator.CreateInstance(stemClass);}catch (Exception e){" }, { "index": 643, "before": "public UpgradeAppliedSchemaResult upgradeAppliedSchema(UpgradeAppliedSchemaRequest request) {request = beforeClientExecution(request);return executeUpgradeAppliedSchema(request);}", "after": "public virtual UpgradeAppliedSchemaResponse UpgradeAppliedSchema(UpgradeAppliedSchemaRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpgradeAppliedSchemaRequestMarshaller.Instance;options.ResponseUnmarshaller = UpgradeAppliedSchemaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 644, "before": "public String getParent() {int length = path.length(), firstInPath = 0;if (separatorChar == '\\\\' && length > 2 && path.charAt(1) == ':') {firstInPath = 2;}int index = path.lastIndexOf(separatorChar);if (index == -1 && firstInPath > 0) {index = 2;}if (index == -1 || path.charAt(length - 1) == separatorChar) {return null;}if (path.indexOf(separatorChar) == index&& path.charAt(firstInPath) == separatorChar) {return path.substring(0, index + 1);}return path.substring(0, index);}", "after": "public string getParent(){int length_1 = path.Length;int firstInPath = 0;if (separatorChar == '\\\\' && length_1 > 2 && path[1] == ':'){firstInPath = 2;}int index = path.LastIndexOf(separatorChar);if (index == -1 && firstInPath > 0){index = 2;}if (index == -1 || path[length_1 - 1] == separatorChar){return null;}if (path.IndexOf(separatorChar) == index && path[firstInPath] == separatorChar){return Sharpen.StringHelper.Substring(path, 0, index + 1);}return Sharpen.StringHelper.Substring(path, 0, index);}" }, { "index": 645, "before": "public BufferedChecksumIndexInput(IndexInput main) {super(\"BufferedChecksumIndexInput(\" + main + \")\");this.main = main;this.digest = new BufferedChecksum(new CRC32());}", "after": "public BufferedChecksumIndexInput(IndexInput main): base(\"BufferedChecksumIndexInput(\" + main + \")\"){this.main = main;this.digest = new BufferedChecksum(new CRC32());}" }, { "index": 646, "before": "public final void remove(RevFlagSet set) {flags &= ~set.mask;}", "after": "public void Remove(RevFlagSet set){flags &= ~set.mask;}" }, { "index": 647, "before": "public boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;return true;}", "after": "public override bool Equals(object obj){if (this == obj){return true;}if (obj == null){return false;}if (this.GetType() != obj.GetType()){return false;}return true;}" }, { "index": 648, "before": "public GetFaceSearchResult getFaceSearch(GetFaceSearchRequest request) {request = beforeClientExecution(request);return executeGetFaceSearch(request);}", "after": "public virtual GetFaceSearchResponse GetFaceSearch(GetFaceSearchRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFaceSearchRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFaceSearchResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 649, "before": "public DescribeUserStackAssociationsResult describeUserStackAssociations(DescribeUserStackAssociationsRequest request) {request = beforeClientExecution(request);return executeDescribeUserStackAssociations(request);}", "after": "public virtual DescribeUserStackAssociationsResponse DescribeUserStackAssociations(DescribeUserStackAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUserStackAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUserStackAssociationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 650, "before": "public void close() throws IOException {in.close();in = new ClosedInputStream();}", "after": "public override void close(){throw new System.NotImplementedException();}" }, { "index": 651, "before": "public CreateBranchCommand branchCreate() {return new CreateBranchCommand(repo);}", "after": "public virtual CreateBranchCommand BranchCreate(){return new CreateBranchCommand(repo);}" }, { "index": 652, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(rt);out.writeShort(grbitFrt);out.writeShort(wOffset);out.writeShort(at);out.writeShort(grbit);if(unused != null)out.writeShort(unused);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(rt);out1.WriteShort(grbitFrt);out1.WriteShort(wOffset);out1.WriteShort(at);out1.WriteShort(grbit);if (unused != null)out1.WriteShort((short)unused);}" }, { "index": 653, "before": "public StringBuilder insert(int offset, Object obj) {insert0(offset, obj == null ? \"null\" : obj.toString());return this;}", "after": "public java.lang.StringBuilder insert(int offset, object obj){insert0(offset, obj == null ? \"null\" : obj.ToString());return this;}" }, { "index": 654, "before": "public int next() {int res = child;if (child != TaxonomyReader.INVALID_ORDINAL) {child = siblings[child];}return res;}", "after": "public virtual int Next(){int res = child;if (child != TaxonomyReader.INVALID_ORDINAL){child = siblings[child];}return res;}" }, { "index": 655, "before": "public DeleteStackResult deleteStack(DeleteStackRequest request) {request = beforeClientExecution(request);return executeDeleteStack(request);}", "after": "public virtual DeleteStackResponse DeleteStack(DeleteStackRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteStackRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteStackResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 656, "before": "public NorwegianMinimalStemFilterFactory(Map args) {super(args);String variant = get(args, \"variant\");if (variant == null || \"nb\".equals(variant)) {flags = BOKMAAL;} else if (\"nn\".equals(variant)) {flags = NYNORSK;} else if (\"no\".equals(variant)) {flags = BOKMAAL | NYNORSK;} else {throw new IllegalArgumentException(\"invalid variant: \" + variant);}if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public NorwegianMinimalStemFilterFactory(IDictionary args): base(args){string variant = Get(args, \"variant\");if (variant == null || \"nb\".Equals(variant, StringComparison.Ordinal)){flags = NorwegianStandard.BOKMAAL;}else if (\"nn\".Equals(variant, StringComparison.Ordinal)){flags = NorwegianStandard.NYNORSK;}else if (\"no\".Equals(variant, StringComparison.Ordinal)){flags = NorwegianStandard.BOKMAAL | NorwegianStandard.NYNORSK;}else{throw new System.ArgumentException(\"invalid variant: \" + variant);}if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 657, "before": "public String toString() {return \"Z(\" + z + \")\";}", "after": "public override string ToString(){return \"Z(\" + z + \")\";}" }, { "index": 658, "before": "public static org.apache.poi.hssf.record.Record create(RecordInputStream in) {switch (in.remaining()) {case 0:return instance;case 2:return new InterfaceHdrRecord(in);}throw new RecordFormatException(\"Invalid record data size: \" + in.remaining());}", "after": "public static Record Create(RecordInputStream in1){switch (in1.Remaining){case 0:return Instance;case 2:return new InterfaceHdrRecord(in1);}throw new RecordFormatException(\"Invalid record data size: \" + in1.Remaining);}" }, { "index": 659, "before": "public int getCellsPnt() {int size = 0;for (Row row : rows)size += row.getCellsPnt();return size;}", "after": "public virtual int GetCellsPnt(){int size = 0;foreach (Row row in rows)size += row.GetCellsPnt();return size;}" }, { "index": 660, "before": "public boolean equals(Object obj) {if (obj == this) {return true;}else if (!(obj instanceof LexerActionExecutor)) {return false;}LexerActionExecutor other = (LexerActionExecutor)obj;return hashCode == other.hashCode&& Arrays.equals(lexerActions, other.lexerActions);}", "after": "public override bool Equals(object obj){if (obj == this){return true;}else{if (!(obj is Antlr4.Runtime.Atn.LexerActionExecutor)){return false;}}Antlr4.Runtime.Atn.LexerActionExecutor other = (Antlr4.Runtime.Atn.LexerActionExecutor)obj;return hashCode == other.hashCode && Arrays.Equals(lexerActions, other.lexerActions);}" }, { "index": 661, "before": "public static final Analyzer createAnalyzer(String className) throws Exception{final Class clazz = Class.forName(className).asSubclass(Analyzer.class);try {Constructor cnstr = clazz.getConstructor(Version.class);return cnstr.newInstance(Version.LATEST);} catch (NoSuchMethodException nsme) {return clazz.getConstructor().newInstance();}}", "after": "public static Analyzer CreateAnalyzer(string className){Type clazz = Type.GetType(className);try{return (Analyzer)Activator.CreateInstance(clazz,#pragma warning disable 612, 618LuceneVersion.LUCENE_CURRENT);#pragma warning restore 612, 618}catch (MissingMethodException ){return (Analyzer)Activator.CreateInstance(clazz);}}" }, { "index": 662, "before": "public GetSegmentVersionsResult getSegmentVersions(GetSegmentVersionsRequest request) {request = beforeClientExecution(request);return executeGetSegmentVersions(request);}", "after": "public virtual GetSegmentVersionsResponse GetSegmentVersions(GetSegmentVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSegmentVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSegmentVersionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 663, "before": "public int getDeltaBaseCacheLimit() {return deltaBaseCacheLimit;}", "after": "public virtual int GetDeltaBaseCacheLimit(){return deltaBaseCacheLimit;}" }, { "index": 664, "before": "public GroupMerger(Sort groupSort) {groupComp = new GroupComparator<>(groupSort);queue = new TreeSet<>(groupComp);groupsSeen = new HashMap<>();}", "after": "public GroupMerger(Sort groupSort){groupComp = new GroupComparer(groupSort);queue = new JCG.SortedSet>(groupComp);groupsSeen = new JCG.Dictionary>();}" }, { "index": 665, "before": "public long get(int index) {final int o = index >>> 4;final int b = index & 15;final int shift = b << 2;return (blocks[o] >>> shift) & 15L;}", "after": "public override long Get(int index){int o = (int)((uint)index >> 4);int b = index & 15;int shift = b << 2;return ((long)((ulong)blocks[o] >> shift)) & 15L;}" }, { "index": 666, "before": "public FileIdCluster( int drawingGroupId, int numShapeIdsUsed ) {this.field_1_drawingGroupId = drawingGroupId;this.field_2_numShapeIdsUsed = numShapeIdsUsed;}", "after": "public FileIdCluster(int drawingGroupId, int numShapeIdsUsed){this.field_1_drawingGroupId = drawingGroupId;this.field_2_numShapeIdsUsed = numShapeIdsUsed;}" }, { "index": 667, "before": "public CharArrayIterator clone() {CharArrayIterator clone = new CharArrayIterator();clone.setText(array, start, length);clone.index = index;return clone;}", "after": "public override object Clone(){CharArrayIterator clone = new CharArrayIterator();clone.SetText(array, start, length);clone.index = index;return clone;}" }, { "index": 668, "before": "public DescribeReservedNodesResult describeReservedNodes(DescribeReservedNodesRequest request) {request = beforeClientExecution(request);return executeDescribeReservedNodes(request);}", "after": "public virtual DescribeReservedNodesResponse DescribeReservedNodes(DescribeReservedNodesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedNodesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedNodesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 669, "before": "public ObjectWalk(Repository repo, int depth) {super(repo);this.depth = depth;this.deepenNots = Collections.emptyList();this.UNSHALLOW = newFlag(\"UNSHALLOW\"); this.REINTERESTING = newFlag(\"REINTERESTING\"); this.DEEPEN_NOT = newFlag(\"DEEPEN_NOT\"); }", "after": "public ObjectWalk(Repository repo, int depth) : base(repo){this.depth = depth;this.UNSHALLOW = NewFlag(\"UNSHALLOW\");this.REINTERESTING = NewFlag(\"REINTERESTING\");}" }, { "index": 670, "before": "public boolean isRefLogDisabled() {return refLogMessage == null;}", "after": "public virtual bool IsRefLogDisabled(){return refLogMessage == null;}" }, { "index": 671, "before": "public SetLoadBalancerListenerSSLCertificateResult setLoadBalancerListenerSSLCertificate(SetLoadBalancerListenerSSLCertificateRequest request) {request = beforeClientExecution(request);return executeSetLoadBalancerListenerSSLCertificate(request);}", "after": "public virtual SetLoadBalancerListenerSSLCertificateResponse SetLoadBalancerListenerSSLCertificate(SetLoadBalancerListenerSSLCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetLoadBalancerListenerSSLCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = SetLoadBalancerListenerSSLCertificateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 672, "before": "public DescribeRulesPackagesResult describeRulesPackages(DescribeRulesPackagesRequest request) {request = beforeClientExecution(request);return executeDescribeRulesPackages(request);}", "after": "public virtual DescribeRulesPackagesResponse DescribeRulesPackages(DescribeRulesPackagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRulesPackagesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRulesPackagesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 673, "before": "public byte readByte() throws IOException {return primitiveTypes.readByte();}", "after": "public virtual byte readByte(){throw new System.NotImplementedException();}" }, { "index": 674, "before": "public String getConversion() {return s;}", "after": "public virtual string getConversion(){return s;}" }, { "index": 675, "before": "public StandardSyntaxParserTokenManager(CharStream stream, int lexState){this(stream);SwitchTo(lexState);}", "after": "public StandardSyntaxParserTokenManager(ICharStream stream, int lexState): this(stream){SwitchTo(lexState);}" }, { "index": 676, "before": "public TokenStream create(TokenStream input) {return new TurkishLowerCaseFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new TurkishLowerCaseFilter(input);}" }, { "index": 677, "before": "public String toString() {return \"B\";}", "after": "public override string ToString(){return \"B\";}" }, { "index": 678, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {return evaluate(srcRowIndex, srcColumnIndex, arg0, DEFAULT_ARG1);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){return Evaluate(srcRowIndex, srcColumnIndex, arg0, DEFAULT_ARG1);}" }, { "index": 679, "before": "public void doubleField(FieldInfo fieldInfo, double value) {doc.add(new StoredField(fieldInfo.name, value));}", "after": "public override void DoubleField(FieldInfo fieldInfo, double value){doc.Add(new StoredField(fieldInfo.Name, value));}" }, { "index": 680, "before": "public GetDistributionConfigRequest(String id) {setId(id);}", "after": "public GetDistributionConfigRequest(string id){_id = id;}" }, { "index": 681, "before": "public DescribeCacheSecurityGroupsResult describeCacheSecurityGroups() {return describeCacheSecurityGroups(new DescribeCacheSecurityGroupsRequest());}", "after": "public virtual DescribeCacheSecurityGroupsResponse DescribeCacheSecurityGroups(){return DescribeCacheSecurityGroups(new DescribeCacheSecurityGroupsRequest());}" }, { "index": 682, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {double d;try {ValueEval ve = OperandResolver.getSingleValue(arg0, srcRowIndex, srcColumnIndex);d = OperandResolver.coerceValueToDouble(ve);} catch (EvaluationException e) {return e.getErrorEval();}if (d == 0.0) { return NumberEval.ZERO;}return new NumberEval(d / 100);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){double d0;try{ValueEval ve = OperandResolver.GetSingleValue(arg0, srcRowIndex, srcColumnIndex);d0 = OperandResolver.CoerceValueToDouble(ve);}catch (EvaluationException e){return e.GetErrorEval();}if (d0 == 0.0){ return NumberEval.ZERO;}return new NumberEval(d0 / 100);}" }, { "index": 683, "before": "public boolean containsCell(int rowIndex, int columnIndex) {if (columnIndex < _firstColumnIndex) {return false;}if (columnIndex > _lastColumnIndex) {return false;}if (rowIndex < _firstRowIndex) {return false;}if (rowIndex > _lastRowIndex) {return false;}return true;}", "after": "public bool ContainsCell(int rowIndex, int columnIndex){if (columnIndex < _firstColumnIndex){return false;}if (columnIndex > _lastColumnIndex){return false;}if (rowIndex < _firstRowIndex){return false;}if (rowIndex > _lastRowIndex){return false;}return true;}" }, { "index": 684, "before": "public GetSegmentVersionResult getSegmentVersion(GetSegmentVersionRequest request) {request = beforeClientExecution(request);return executeGetSegmentVersion(request);}", "after": "public virtual GetSegmentVersionResponse GetSegmentVersion(GetSegmentVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSegmentVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSegmentVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 685, "before": "public final FloatBuffer put(float[] src, int srcOffset, int byteCount) {throw new ReadOnlyBufferException();}", "after": "public sealed override java.nio.FloatBuffer put(float[] src, int srcOffset, int byteCount){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 686, "before": "public final IntBuffer put(int[] src) {return put(src, 0, src.length);}", "after": "public java.nio.IntBuffer put(int[] src){return put(src, 0, src.Length);}" }, { "index": 687, "before": "public SearchFaceRequest() {super(\"LinkFace\", \"2018-07-20\", \"SearchFace\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public SearchFaceRequest(): base(\"LinkFace\", \"2018-07-20\", \"SearchFace\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 688, "before": "public TagStreamResult tagStream(TagStreamRequest request) {request = beforeClientExecution(request);return executeTagStream(request);}", "after": "public virtual TagStreamResponse TagStream(TagStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = TagStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = TagStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 689, "before": "public String getAccessKeyId() {return this.accessKeyId;}", "after": "public string GetAccessKeyId(){return AccessKeyId;}" }, { "index": 690, "before": "public ET previous() {if (expectedModCount == list.modCount) {if (link != list.voidLink) {lastLink = link;link = link.previous;pos--;return lastLink.data;}throw new NoSuchElementException();}throw new ConcurrentModificationException();}", "after": "public ET previous(){if (expectedModCount == list.modCount){if (link != list.voidLink){lastLink = link;link = link.previous;pos--;return lastLink.data;}throw new java.util.NoSuchElementException();}throw new java.util.ConcurrentModificationException();}" }, { "index": 691, "before": "public CreateLBCookieStickinessPolicyResult createLBCookieStickinessPolicy(CreateLBCookieStickinessPolicyRequest request) {request = beforeClientExecution(request);return executeCreateLBCookieStickinessPolicy(request);}", "after": "public virtual CreateLBCookieStickinessPolicyResponse CreateLBCookieStickinessPolicy(CreateLBCookieStickinessPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLBCookieStickinessPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLBCookieStickinessPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 692, "before": "public CreateDataSourceFromRDSResult createDataSourceFromRDS(CreateDataSourceFromRDSRequest request) {request = beforeClientExecution(request);return executeCreateDataSourceFromRDS(request);}", "after": "public virtual CreateDataSourceFromRDSResponse CreateDataSourceFromRDS(CreateDataSourceFromRDSRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDataSourceFromRDSRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDataSourceFromRDSResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 693, "before": "public CreateReceiptFilterResult createReceiptFilter(CreateReceiptFilterRequest request) {request = beforeClientExecution(request);return executeCreateReceiptFilter(request);}", "after": "public virtual CreateReceiptFilterResponse CreateReceiptFilter(CreateReceiptFilterRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateReceiptFilterRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateReceiptFilterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 694, "before": "public final byte get(int index) {checkIndex(index);return backingArray[offset + index];}", "after": "public sealed override byte get(int index){checkIndex(index);return backingArray[offset + index];}" }, { "index": 695, "before": "public CherryPickCommand include(AnyObjectId commit) {return include(commit.getName(), commit);}", "after": "public virtual NGit.Api.CherryPickCommand Include(Ref commit){CheckCallable();commits.AddItem(commit);return this;}" }, { "index": 696, "before": "public ATNDeserializationOptions() {this.verifyATN = true;this.generateRuleBypassTransitions = false;}", "after": "public ATNDeserializationOptions(){this.verifyATN = true;this.generateRuleBypassTransitions = false;this.optimize = true;}" }, { "index": 697, "before": "public ListIdentityPoliciesResult listIdentityPolicies(ListIdentityPoliciesRequest request) {request = beforeClientExecution(request);return executeListIdentityPolicies(request);}", "after": "public virtual ListIdentityPoliciesResponse ListIdentityPolicies(ListIdentityPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIdentityPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIdentityPoliciesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 698, "before": "public static boolean isValidCode(int errorCode) {for (FormulaError error : values()) {if (error.getCode() == errorCode) return true;if (error.getLongCode() == errorCode) return true;}return false;}", "after": "public static bool IsValidCode(int errorCode){foreach (FormulaError error in _values){if (error.Code == errorCode) return true;if (error.LongCode == errorCode) return true;}return false;}" }, { "index": 699, "before": "public RKRecord(RecordInputStream in) {super(in);field_4_rk_number = in.readInt();}", "after": "public RKRecord(RecordInputStream in1): base(in1){field_4_rk_number = in1.ReadInt();}" }, { "index": 700, "before": "public void copyTo(ByteBuffer b) {b.put(toHexByteArray());}", "after": "public virtual void CopyTo(ByteBuffer b){b.Put(ToHexByteArray());}" }, { "index": 701, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[DAT]\\n\");buffer.append(\" .options = \").append(\"0x\").append(HexDump.toHex( getOptions ())).append(\" (\").append( getOptions() ).append(\" )\");buffer.append(System.getProperty(\"line.separator\"));buffer.append(\" .horizontalBorder = \").append(isHorizontalBorder()).append('\\n');buffer.append(\" .verticalBorder = \").append(isVerticalBorder()).append('\\n');buffer.append(\" .border = \").append(isBorder()).append('\\n');buffer.append(\" .showSeriesKey = \").append(isShowSeriesKey()).append('\\n');buffer.append(\"[/DAT]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[DAT]\\n\");buffer.Append(\" .options = \").Append(\"0x\").Append(HexDump.ToHex(Options)).Append(\" (\").Append(Options).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\" .horizontalBorder = \").Append(IsHorizontalBorder()).Append('\\n');buffer.Append(\" .verticalBorder = \").Append(IsVerticalBorder()).Append('\\n');buffer.Append(\" .border = \").Append(IsBorder()).Append('\\n');buffer.Append(\" .showSeriesKey = \").Append(IsShowSeriesKey()).Append('\\n');buffer.Append(\"[/DAT]\\n\");return buffer.ToString();}" }, { "index": 702, "before": "public UpdateDashboardResult updateDashboard(UpdateDashboardRequest request) {request = beforeClientExecution(request);return executeUpdateDashboard(request);}", "after": "public virtual UpdateDashboardResponse UpdateDashboard(UpdateDashboardRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDashboardRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDashboardResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 703, "before": "public RegisterTagRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"RegisterTag\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public RegisterTagRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"RegisterTag\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 704, "before": "public DiffCommand setPathFilter(TreeFilter pathFilter) {this.pathFilter = pathFilter;return this;}", "after": "public virtual NGit.Api.DiffCommand SetPathFilter(TreeFilter pathFilter){this.pathFilter = pathFilter;return this;}" }, { "index": 705, "before": "public boolean markSupported() {return true;}", "after": "public override bool MarkSupported(){return true;}" }, { "index": 706, "before": "public String toString() {StringBuilder sb = new StringBuilder(getClass().getSimpleName() + \": \");sb.append(\"maxThreadCount=\").append(maxThreadCount).append(\", \");sb.append(\"maxMergeCount=\").append(maxMergeCount).append(\", \");sb.append(\"ioThrottle=\").append(doAutoIOThrottle);return sb.toString();}", "after": "public override string ToString(){StringBuilder sb = new StringBuilder(this.GetType().Name + \": \");sb.Append(\"maxThreadCount=\").Append(maxThreadCount).Append(\", \");sb.Append(\"maxMergeCount=\").Append(maxMergeCount).Append(\", \");sb.Append(\"mergeThreadPriority=\").Append(mergeThreadPriority);return sb.ToString();}" }, { "index": 707, "before": "public synchronized void println(String str) {print(str);newline();}", "after": "public virtual void println(string str){lock (this){print(str);newline();}}" }, { "index": 708, "before": "public UpdateApiResult updateApi(UpdateApiRequest request) {request = beforeClientExecution(request);return executeUpdateApi(request);}", "after": "public virtual UpdateApiResponse UpdateApi(UpdateApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApiRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApiResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 709, "before": "public FlushStageAuthorizersCacheResult flushStageAuthorizersCache(FlushStageAuthorizersCacheRequest request) {request = beforeClientExecution(request);return executeFlushStageAuthorizersCache(request);}", "after": "public virtual FlushStageAuthorizersCacheResponse FlushStageAuthorizersCache(FlushStageAuthorizersCacheRequest request){var options = new InvokeOptions();options.RequestMarshaller = FlushStageAuthorizersCacheRequestMarshaller.Instance;options.ResponseUnmarshaller = FlushStageAuthorizersCacheResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 710, "before": "public BasicQueryFactory(int maxBasicQueries) {this.maxBasicQueries = maxBasicQueries;this.queriesMade = 0;}", "after": "public BasicQueryFactory(int maxBasicQueries){this.maxBasicQueries = maxBasicQueries;this.queriesMade = 0;}" }, { "index": 711, "before": "public TrackingRefUpdate getTrackingRefUpdate(String localName) {return updates.get(localName);}", "after": "public virtual TrackingRefUpdate GetTrackingRefUpdate(string localName){return updates.Get(localName);}" }, { "index": 712, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[CATLAB]\\n\");buffer.append(\" .rt =\").append(HexDump.shortToHex(rt)).append('\\n');buffer.append(\" .grbitFrt=\").append(HexDump.shortToHex(grbitFrt)).append('\\n');buffer.append(\" .wOffset =\").append(HexDump.shortToHex(wOffset)).append('\\n');buffer.append(\" .at =\").append(HexDump.shortToHex(at)).append('\\n');buffer.append(\" .grbit =\").append(HexDump.shortToHex(grbit)).append('\\n');if(unused != null)buffer.append(\" .unused =\").append(HexDump.shortToHex(unused)).append('\\n');buffer.append(\"[/CATLAB]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[CATLAB]\\n\");buffer.Append(\" .rt =\").Append(HexDump.ShortToHex(rt)).Append('\\n');buffer.Append(\" .grbitFrt=\").Append(HexDump.ShortToHex(grbitFrt)).Append('\\n');buffer.Append(\" .wOffset =\").Append(HexDump.ShortToHex(wOffset)).Append('\\n');buffer.Append(\" .at =\").Append(HexDump.ShortToHex(at)).Append('\\n');buffer.Append(\" .grbit =\").Append(HexDump.ShortToHex(grbit)).Append('\\n');buffer.Append(\" .unused =\").Append(HexDump.ShortToHex((short)unused)).Append('\\n');buffer.Append(\"[/CATLAB]\\n\");return buffer.ToString();}" }, { "index": 713, "before": "public EnableDirectoryResult enableDirectory(EnableDirectoryRequest request) {request = beforeClientExecution(request);return executeEnableDirectory(request);}", "after": "public virtual EnableDirectoryResponse EnableDirectory(EnableDirectoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableDirectoryRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableDirectoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 714, "before": "public IntBuffer put(int[] src, int srcOffset, int intCount) {if (intCount > remaining()) {throw new BufferOverflowException();}System.arraycopy(src, srcOffset, backingArray, offset + position, intCount);position += intCount;return this;}", "after": "public override java.nio.IntBuffer put(int[] src, int srcOffset, int intCount){if (intCount > remaining()){throw new java.nio.BufferOverflowException();}System.Array.Copy(src, srcOffset, backingArray, offset + _position, intCount);_position += intCount;return this;}" }, { "index": 715, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[PROT4REVPASSWORD]\\n\");buffer.append(\" .password = \").append(HexDump.shortToHex(field_1_password)).append(\"\\n\");buffer.append(\"[/PROT4REVPASSWORD]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[PROT4REVPASSWORD]\\n\");buffer.Append(\" .password = \").Append(StringUtil.ToHexString(field_1_password)).Append(\"\\n\");buffer.Append(\"[/PROT4REVPASSWORD]\\n\");return buffer.ToString();}" }, { "index": 716, "before": "public DescribeProjectVersionsResult describeProjectVersions(DescribeProjectVersionsRequest request) {request = beforeClientExecution(request);return executeDescribeProjectVersions(request);}", "after": "public virtual DescribeProjectVersionsResponse DescribeProjectVersions(DescribeProjectVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeProjectVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeProjectVersionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 717, "before": "public UpdateHostedZoneCommentResult updateHostedZoneComment(UpdateHostedZoneCommentRequest request) {request = beforeClientExecution(request);return executeUpdateHostedZoneComment(request);}", "after": "public virtual UpdateHostedZoneCommentResponse UpdateHostedZoneComment(UpdateHostedZoneCommentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateHostedZoneCommentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateHostedZoneCommentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 718, "before": "public Rescorer getRescorer(Bindings bindings) {return new ExpressionRescorer(this, bindings);}", "after": "public virtual Rescorer GetRescorer(Bindings bindings){return new ExpressionRescorer(this, bindings);}" }, { "index": 719, "before": "public SortedSet headSet(E end) {return headSet(end, false);}", "after": "public virtual java.util.SortedSet headSet(E end){return headSet(end, false);}" }, { "index": 720, "before": "final public QueryNode DisjQuery(CharSequence field) throws ParseException {QueryNode first, c;Vector clauses = null;first = ConjQuery(field);label_2:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case OR:;break;default:jj_la1[3] = jj_gen;break label_2;}jj_consume_token(OR);c = ConjQuery(field);if (clauses == null) {clauses = new Vector();clauses.addElement(first);}clauses.addElement(c);}if (clauses != null) {{if (true) return new OrQueryNode(clauses);}} else {{if (true) return first;}}throw new Error(\"Missing return statement in function\");}", "after": "public IQueryNode DisjQuery(string field){IQueryNode first, c;List clauses = null;first = ConjQuery(field);while (true){switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.OR:;break;default:jj_la1[5] = jj_gen;goto label_2_break;}Jj_consume_token(RegexpToken.OR);c = ConjQuery(field);if (clauses == null){clauses = new List();clauses.Add(first);}clauses.Add(c);}label_2_break:if (clauses != null){{ if (true) return new OrQueryNode(clauses); }}else{{ if (true) return first; }}throw new Exception(\"Missing return statement in function\");}" }, { "index": 721, "before": "public DataValidationConstraint createExplicitListConstraint(String[] listOfValues) {return DVConstraint.createExplicitListConstraint(listOfValues);}", "after": "public IDataValidationConstraint CreateExplicitListConstraint(String[] listOfValues){return DVConstraint.CreateExplicitListConstraint(listOfValues);}" }, { "index": 722, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1) {String s0;String s1;try {s0 = evaluateStringArg(arg0, srcRowIndex, srcColumnIndex);s1 = evaluateStringArg(arg1, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {return e.getErrorEval();}return BoolEval.valueOf(s0.equals(s1));}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1){String arg;int index;try{arg = TextFunction.EvaluateStringArg(arg0, srcRowIndex, srcColumnIndex);index = TextFunction.EvaluateIntArg(arg1, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){return e.GetErrorEval();}if (index < 0){return ErrorEval.VALUE_INVALID;}String result;if (_isLeft){result = arg.Substring(0, Math.Min(arg.Length, index));}else{result = arg.Substring(Math.Max(0, arg.Length - index));}return new StringEval(result);}" }, { "index": 723, "before": "public boolean offer(E o) {return addLastImpl(o);}", "after": "public virtual bool offer(E o){return addLastImpl(o);}" }, { "index": 724, "before": "public ListInvalidationsRequest(String distributionId) {setDistributionId(distributionId);}", "after": "public ListInvalidationsRequest(string distributionId){_distributionId = distributionId;}" }, { "index": 725, "before": "public TagPhotoRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"TagPhoto\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public TagPhotoRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"TagPhoto\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 726, "before": "public CreateFleetResult createFleet(CreateFleetRequest request) {request = beforeClientExecution(request);return executeCreateFleet(request);}", "after": "public virtual CreateFleetResponse CreateFleet(CreateFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFleetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 727, "before": "public GetTransitGatewayAttachmentPropagationsResult getTransitGatewayAttachmentPropagations(GetTransitGatewayAttachmentPropagationsRequest request) {request = beforeClientExecution(request);return executeGetTransitGatewayAttachmentPropagations(request);}", "after": "public virtual GetTransitGatewayAttachmentPropagationsResponse GetTransitGatewayAttachmentPropagations(GetTransitGatewayAttachmentPropagationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTransitGatewayAttachmentPropagationsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTransitGatewayAttachmentPropagationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 728, "before": "public ListWorkteamsResult listWorkteams(ListWorkteamsRequest request) {request = beforeClientExecution(request);return executeListWorkteams(request);}", "after": "public virtual ListWorkteamsResponse ListWorkteams(ListWorkteamsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListWorkteamsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListWorkteamsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 729, "before": "public DetachVpnGatewayResult detachVpnGateway(DetachVpnGatewayRequest request) {request = beforeClientExecution(request);return executeDetachVpnGateway(request);}", "after": "public virtual DetachVpnGatewayResponse DetachVpnGateway(DetachVpnGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachVpnGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachVpnGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 730, "before": "public ListGeoLocationsResult listGeoLocations() {return listGeoLocations(new ListGeoLocationsRequest());}", "after": "public virtual ListGeoLocationsResponse ListGeoLocations(){return ListGeoLocations(new ListGeoLocationsRequest());}" }, { "index": 731, "before": "public String toString() {return getClass().getName() + \" [\" +getStringValue() +\"]\";}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(\" [\");sb.Append(StringValue);sb.Append(\"]\");return sb.ToString();}" }, { "index": 732, "before": "public static double decodeNumber(int number) {long raw_number = number;raw_number = raw_number >> 2;double rvalue = 0;if ((number & 0x02) == 0x02){rvalue = raw_number;}else{rvalue = Double.longBitsToDouble(raw_number << 34);}if ((number & 0x01) == 0x01){rvalue /= 100;}return rvalue;}", "after": "public static double DecodeNumber(int number){long raw_number = number;raw_number = raw_number >> 2;double rvalue = 0;if ((number & 0x02) == 0x02){rvalue = (double)(raw_number);}else{rvalue = BitConverter.Int64BitsToDouble(raw_number << 34);}if ((number & 0x01) == 0x01){rvalue /= 100;}return rvalue;}" }, { "index": 733, "before": "public long get(long index) {assert index >= 0 && index < valueCount;final int block = (int) (index >>> blockShift);final int idx = (int) (index & blockMask);return (minValues == null ? 0 : minValues[block]) + subReaders[block].get(idx);}", "after": "public override long Get(long index){Debug.Assert(index >= 0 && index < valueCount);int block = (int)((long)((ulong)index >> blockShift));int idx = (int)(index & blockMask);return (minValues == null ? 0 : minValues[block]) + subReaders[block].Get(idx);}" }, { "index": 734, "before": "public UpdatePublishingDestinationResult updatePublishingDestination(UpdatePublishingDestinationRequest request) {request = beforeClientExecution(request);return executeUpdatePublishingDestination(request);}", "after": "public virtual UpdatePublishingDestinationResponse UpdatePublishingDestination(UpdatePublishingDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePublishingDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePublishingDestinationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 735, "before": "public void notifyDeleteCell(EvaluationCell cell) {int sheetIndex = getSheetIndex(cell.getSheet());_cache.notifyDeleteCell(_workbookIx, sheetIndex, cell);}", "after": "public void NotifyDeleteCell(IEvaluationCell cell){int sheetIndex = GetSheetIndex(cell.Sheet);_cache.NotifyDeleteCell(_workbookIx, sheetIndex, cell);}" }, { "index": 736, "before": "public Request marshall(GetPolicyRequest getPolicyRequest) {if (getPolicyRequest == null) {throw new SdkClientException(\"Invalid argument passed to marshall(...)\");}Request request = new DefaultRequest(getPolicyRequest, \"AmazonIdentityManagement\");request.addParameter(\"Action\", \"GetPolicy\");request.addParameter(\"Version\", \"2010-05-08\");request.setHttpMethod(HttpMethodName.POST);if (getPolicyRequest.getPolicyArn() != null) {request.addParameter(\"PolicyArn\", StringUtils.fromString(getPolicyRequest.getPolicyArn()));}return request;}", "after": "public IRequest Marshall(GetPolicyRequest publicRequest){IRequest request = new DefaultRequest(publicRequest, \"Amazon.Lambda\");request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = \"2015-03-31\";request.HttpMethod = \"GET\";if (!publicRequest.IsSetFunctionName())throw new AmazonLambdaException(\"Request object does not have required field FunctionName set\");request.AddPathResource(\"{FunctionName}\", StringUtils.FromString(publicRequest.FunctionName));if (publicRequest.IsSetQualifier())request.Parameters.Add(\"Qualifier\", StringUtils.FromString(publicRequest.Qualifier));request.ResourcePath = \"/2015-03-31/functions/{FunctionName}/policy\";request.MarshallerVersion = 2;request.UseQueryString = true;return request;}" }, { "index": 737, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval real_num, ValueEval i_num) {return this.evaluate(srcRowIndex, srcColumnIndex, real_num, i_num, new StringEval(DEFAULT_SUFFIX));}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval real_num, ValueEval i_num){return this.Evaluate(srcRowIndex, srcColumnIndex, real_num, i_num, new StringEval(DEFAULT_SUFFIX));}" }, { "index": 738, "before": "public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) { readHeader( data, offset );int pos = offset + 8;int size = 0;field_1_numShapes = LittleEndian.getInt( data, pos + size ); size += 4;field_2_lastMSOSPID = LittleEndian.getInt( data, pos + size ); size += 4;return getRecordSize();}", "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_numShapes = LittleEndian.GetInt(data, pos + size); size += 4;field_2_lastMSOSPID = LittleEndian.GetInt(data, pos + size); size += 4;return RecordSize;}" }, { "index": 739, "before": "public final CharsetEncoder reset() {status = INIT;implReset();return this;}", "after": "public java.nio.charset.CharsetEncoder reset(){status = INIT;implReset();return this;}" }, { "index": 740, "before": "public void emit(Token token) {this._token = token;}", "after": "public virtual void Emit(IToken token){this._token = token;}" }, { "index": 741, "before": "public AbstractTreeIterator createSubtreeIterator(ObjectReader reader)throws IncorrectObjectTypeException, IOException {if (currentSubtree == null)throw new IncorrectObjectTypeException(getEntryObjectId(),Constants.TYPE_TREE);return new DirCacheBuildIterator(this, currentSubtree);}", "after": "public override AbstractTreeIterator CreateSubtreeIterator(ObjectReader reader){if (currentSubtree == null){throw new IncorrectObjectTypeException(EntryObjectId, Constants.TYPE_TREE);}return new NGit.Dircache.DirCacheBuildIterator(this, currentSubtree);}" }, { "index": 742, "before": "public GreekLowerCaseFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public GreekLowerCaseFilterFactory(IDictionary args) : base(args){AssureMatchVersion();if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 743, "before": "public URI relativize(URI relative) {if (relative.opaque || opaque) {return relative;}if (scheme == null ? relative.scheme != null : !scheme.equals(relative.scheme)) {return relative;}if (authority == null ? relative.authority != null : !authority.equals(relative.authority)) {return relative;}String thisPath = normalize(path, false);String relativePath = normalize(relative.path, false);if (!thisPath.equals(relativePath)) {thisPath = thisPath.substring(0, thisPath.lastIndexOf('/') + 1);if (!relativePath.startsWith(thisPath)) {return relative;}}URI result = new URI();result.fragment = relative.fragment;result.query = relative.query;result.path = relativePath.substring(thisPath.length());result.setSchemeSpecificPart();return result;}", "after": "public java.net.URI relativize(java.net.URI relative){if (relative.opaque || opaque){return relative;}if (scheme == null ? relative.scheme != null : !scheme.Equals(relative.scheme)){return relative;}if (authority == null ? relative.authority != null : !authority.Equals(relative.authority)){return relative;}string thisPath = normalize(path, false);string relativePath = normalize(relative.path, false);if (!thisPath.Equals(relativePath)){thisPath = Sharpen.StringHelper.Substring(thisPath, 0, thisPath.LastIndexOf('/')+ 1);if (!relativePath.StartsWith(thisPath)){return relative;}}java.net.URI result = new java.net.URI();result.fragment = relative.fragment;result.query = relative.query;result.path = Sharpen.StringHelper.Substring(relativePath, thisPath.Length);result.setSchemeSpecificPart();return result;}" }, { "index": 744, "before": "public Reader freeze(boolean trim) {if (frozen) {throw new IllegalStateException(\"already frozen\");}if (didSkipBytes) {throw new IllegalStateException(\"cannot freeze when copy(BytesRef, BytesRef) was used\");}if (trim && upto < blockSize) {final byte[] newBlock = new byte[upto];System.arraycopy(currentBlock, 0, newBlock, 0, upto);currentBlock = newBlock;}if (currentBlock == null) {currentBlock = EMPTY_BYTES;}addBlock(currentBlock);frozen = true;currentBlock = null;return new PagedBytes.Reader(this);}", "after": "public Reader Freeze(bool trim){if (frozen){throw new InvalidOperationException(\"already frozen\");}if (didSkipBytes){throw new InvalidOperationException(\"cannot freeze when copy(BytesRef, BytesRef) was used\");}if (trim && upto < blockSize){var newBlock = new byte[upto];Array.Copy(currentBlock, 0, newBlock, 0, upto);currentBlock = newBlock;}if (currentBlock == null){currentBlock = EMPTY_BYTES;}blocks.Add(currentBlock);blockEnd.Add(upto);frozen = true;currentBlock = null;return new PagedBytes.Reader(this);}" }, { "index": 745, "before": "public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {if (args.length == 2) {return evaluate(ec.getRowIndex(), ec.getColumnIndex(), args[0], args[1]);}if (args.length == 3) {return evaluate(ec.getRowIndex(), ec.getColumnIndex(), args[0], args[1], args[2]);}return ErrorEval.VALUE_INVALID;}", "after": "public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){if (args.Length == 2){return Evaluate(ec.RowIndex, ec.ColumnIndex, args[0], args[1]);}if (args.Length == 3){return Evaluate(ec.RowIndex, ec.ColumnIndex, args[0], args[1], args[2]);}return ErrorEval.VALUE_INVALID;}" }, { "index": 746, "before": "public Cluster createCluster(CreateClusterRequest request) {request = beforeClientExecution(request);return executeCreateCluster(request);}", "after": "public virtual CreateClusterResponse CreateCluster(CreateClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 747, "before": "public PersistentSnapshotDeletionPolicy(IndexDeletionPolicy primary,Directory dir, OpenMode mode) throws IOException {super(primary);this.dir = dir;if (mode == OpenMode.CREATE) {clearPriorSnapshots();}loadPriorSnapshots();if (mode == OpenMode.APPEND && nextWriteGen == 0) {throw new IllegalStateException(\"no snapshots stored in this directory\");}}", "after": "public PersistentSnapshotDeletionPolicy(IndexDeletionPolicy primary, Directory dir, OpenMode mode): base(primary){this.dir = dir;if (mode == OpenMode.CREATE){ClearPriorSnapshots();}LoadPriorSnapshots();if (mode == OpenMode.APPEND && nextWriteGen == 0){throw new InvalidOperationException(\"no snapshots stored in this directory\");}}" }, { "index": 748, "before": "public String getText(RuleContext ctx) {return getText(ctx.getSourceInterval());}", "after": "public virtual string GetText(RuleContext ctx){return GetText(ctx.SourceInterval);}" }, { "index": 749, "before": "public final float get() {if (position == limit) {throw new BufferUnderflowException();}return backingArray[offset + position++];}", "after": "public sealed override float get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return backingArray[offset + _position++];}" }, { "index": 750, "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": 751, "before": "public boolean contains(Object o) {return containsKey(o);}", "after": "public override bool contains(object o){return this._enclosing.containsKey(o);}" }, { "index": 752, "before": "public boolean matches(char s[], int len) {return super.matches(s, len) && !exceptions.contains(s, 0, len);}", "after": "public override bool Matches(char[] s, int len){return base.Matches(s, len) && !m_exceptions.Contains(s, 0, len);}" }, { "index": 753, "before": "public int getDeltaSearchWindowSize() {return deltaSearchWindowSize;}", "after": "public virtual int GetDeltaSearchWindowSize(){return deltaSearchWindowSize;}" }, { "index": 754, "before": "public GetDomainNameResult getDomainName(GetDomainNameRequest request) {request = beforeClientExecution(request);return executeGetDomainName(request);}", "after": "public virtual GetDomainNameResponse GetDomainName(GetDomainNameRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDomainNameRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDomainNameResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 755, "before": "public DeleteAccessLogSettingsResult deleteAccessLogSettings(DeleteAccessLogSettingsRequest request) {request = beforeClientExecution(request);return executeDeleteAccessLogSettings(request);}", "after": "public virtual DeleteAccessLogSettingsResponse DeleteAccessLogSettings(DeleteAccessLogSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAccessLogSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAccessLogSettingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 756, "before": "public QueryValueSource(Query q, float defVal) {this.q = q;this.defVal = defVal;}", "after": "public QueryValueSource(Query q, float defVal){this.q = q;this.defVal = defVal;}" }, { "index": 757, "before": "@Override public Object[] toArray() {return snapshot().toArray();}", "after": "public override object[] toArray(){lock (this._enclosing){return base.toArray();}}" }, { "index": 758, "before": "public String toLexerString() {if ( s0==null ) return \"\";DFASerializer serializer = new LexerDFASerializer(this);return serializer.toString();}", "after": "public String ToLexerString(){if (s0 == null)return \"\";DFASerializer serializer = new LexerDFASerializer(this);return serializer.ToString();}" }, { "index": 759, "before": "public void clear() {fill(0, size(), 0);}", "after": "public virtual void Clear(){Fill(0, Count, 0);}" }, { "index": 760, "before": "public GetStreamingDistributionConfigResult getStreamingDistributionConfig(GetStreamingDistributionConfigRequest request) {request = beforeClientExecution(request);return executeGetStreamingDistributionConfig(request);}", "after": "public virtual GetStreamingDistributionConfigResponse GetStreamingDistributionConfig(GetStreamingDistributionConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetStreamingDistributionConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = GetStreamingDistributionConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 761, "before": "public UpdateDomainContactResult updateDomainContact(UpdateDomainContactRequest request) {request = beforeClientExecution(request);return executeUpdateDomainContact(request);}", "after": "public virtual UpdateDomainContactResponse UpdateDomainContact(UpdateDomainContactRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDomainContactRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDomainContactResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 762, "before": "public ListIterator listIterator(int location) {return new LinkIterator(this, location);}", "after": "public override java.util.ListIterator listIterator(int location){return new java.util.LinkedList.LinkIterator(this, location);}" }, { "index": 763, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[STARTBLOCK]\\n\");buffer.append(\" .rt =\").append(HexDump.shortToHex(rt)).append('\\n');buffer.append(\" .grbitFrt =\").append(HexDump.shortToHex(grbitFrt)).append('\\n');buffer.append(\" .iObjectKind =\").append(HexDump.shortToHex(iObjectKind)).append('\\n');buffer.append(\" .iObjectContext =\").append(HexDump.shortToHex(iObjectContext)).append('\\n');buffer.append(\" .iObjectInstance1=\").append(HexDump.shortToHex(iObjectInstance1)).append('\\n');buffer.append(\" .iObjectInstance2=\").append(HexDump.shortToHex(iObjectInstance2)).append('\\n');buffer.append(\"[/STARTBLOCK]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[STARTBLOCK]\\n\");buffer.Append(\" .rt =\").Append(HexDump.ShortToHex(rt)).Append('\\n');buffer.Append(\" .grbitFrt =\").Append(HexDump.ShortToHex(grbitFrt)).Append('\\n');buffer.Append(\" .iObjectKind =\").Append(HexDump.ShortToHex(iObjectKind)).Append('\\n');buffer.Append(\" .iObjectContext =\").Append(HexDump.ShortToHex(iObjectContext)).Append('\\n');buffer.Append(\" .iObjectInstance1=\").Append(HexDump.ShortToHex(iObjectInstance1)).Append('\\n');buffer.Append(\" .iObjectInstance2=\").Append(HexDump.ShortToHex(iObjectInstance2)).Append('\\n');buffer.Append(\"[/STARTBLOCK]\\n\");return buffer.ToString();}" }, { "index": 764, "before": "public long get(int index) {final int o = index / 7;final int b = index % 7;final int shift = b * 9;return (blocks[o] >>> shift) & 511L;}", "after": "public override long Get(int index){int o = index / 7;int b = index % 7;int shift = b * 9;return ((long)((ulong)blocks[o] >> shift)) & 511L;}" }, { "index": 765, "before": "public String toString(String field) {StringBuilder buffer = new StringBuilder();boolean needParens = (getLowFreqMinimumNumberShouldMatch() > 0);if (needParens) {buffer.append(\"(\");}for (int i = 0; i < terms.size(); i++) {Term t = terms.get(i);buffer.append(newTermQuery(t, null).toString());if (i != terms.size() - 1) buffer.append(\", \");}if (needParens) {buffer.append(\")\");}if (getLowFreqMinimumNumberShouldMatch() > 0 || getHighFreqMinimumNumberShouldMatch() > 0) {buffer.append('~');buffer.append(\"(\");buffer.append(getLowFreqMinimumNumberShouldMatch());buffer.append(getHighFreqMinimumNumberShouldMatch());buffer.append(\")\");}return buffer.toString();}", "after": "public override string ToString(string field){var buffer = new StringBuilder();bool needParens = (Boost != 1.0) || (LowFreqMinimumNumberShouldMatch > 0);if (needParens){buffer.Append(\"(\");}for (int i = 0; i < m_terms.Count; i++){Term t = m_terms[i];buffer.Append(NewTermQuery(t, null).ToString());if (i != m_terms.Count - 1){buffer.Append(\", \");}}if (needParens){buffer.Append(\")\");}if (LowFreqMinimumNumberShouldMatch > 0 || HighFreqMinimumNumberShouldMatch > 0){buffer.Append('~');buffer.Append(\"(\");buffer.AppendFormat(CultureInfo.InvariantCulture, \"{0:0.0#######}\", LowFreqMinimumNumberShouldMatch);buffer.AppendFormat(CultureInfo.InvariantCulture, \"{0:0.0#######}\", HighFreqMinimumNumberShouldMatch);buffer.Append(\")\");}if (Boost != 1.0f){buffer.Append(ToStringUtils.Boost(Boost));}return buffer.ToString();}" }, { "index": 766, "before": "public String[] getStopWords(String fieldName) {Set stopWords = stopWordsPerField.get(fieldName);return stopWords != null ? stopWords.toArray(new String[stopWords.size()]) : new String[0];}", "after": "public string[] GetStopWords(string fieldName){var stopWords = stopWordsPerField[fieldName];return stopWords != null ? stopWords.ToArray() : new string[0];}" }, { "index": 767, "before": "public void print(float f) {print(String.valueOf(f));}", "after": "public virtual void print(float f){print(f.ToString());}" }, { "index": 768, "before": "public MopenCreateGroupRequest() {super(\"MoPen\", \"2018-02-11\", \"MopenCreateGroup\", \"mopen\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public MopenCreateGroupRequest(): base(\"MoPen\", \"2018-02-11\", \"MopenCreateGroup\", \"mopen\", \"openAPI\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 769, "before": "public SmallObject(int type, byte[] data) {this.type = type;this.data = data;}", "after": "public SmallObject(int type, byte[] data){this.type = type;this.data = data;}" }, { "index": 770, "before": "public final boolean matches(char c) {return Character.isUpperCase(c);}", "after": "public bool Matches(char c){return System.Char.IsUpper(c);}" }, { "index": 771, "before": "public StartNotebookInstanceResult startNotebookInstance(StartNotebookInstanceRequest request) {request = beforeClientExecution(request);return executeStartNotebookInstance(request);}", "after": "public virtual StartNotebookInstanceResponse StartNotebookInstance(StartNotebookInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartNotebookInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = StartNotebookInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 772, "before": "public static void putUnicodeLE(String input, byte[] output, int offset) {byte[] bytes = input.getBytes(UTF16LE);System.arraycopy(bytes, 0, output, offset, bytes.length);}", "after": "public static void PutUnicodeLE(String input, byte[] output, int offset){byte[] bytes = UTF16LE.GetBytes(input);Array.Copy(bytes, 0, output, offset, bytes.Length);}" }, { "index": 773, "before": "public void deleteDocument(int docID) {final int i = readerIndex(docID);getSequentialSubReaders().get(i).deleteDocument(docID - readerBase(i));}", "after": "public void DeleteDocument(int docID){int i = ReaderIndex(docID);((FakeDeleteAtomicIndexReader)GetSequentialSubReaders()[i]).DeleteDocument(docID - ReaderBase(i));}" }, { "index": 774, "before": "public boolean isRelevant(String docName, QualityQuery query) {QRelJudgement qrj = judgements.get(query.getQueryID());return qrj!=null && qrj.isRelevant(docName);}", "after": "public virtual bool IsRelevant(string docName, QualityQuery query){QRelJudgement qrj;judgements.TryGetValue(query.QueryID, out qrj);return qrj != null && qrj.IsRelevant(docName);}" }, { "index": 775, "before": "public final int getBeginB() {return beginB;}", "after": "public int GetBeginB(){return beginB;}" }, { "index": 776, "before": "public ModifySpotFleetRequestResult modifySpotFleetRequest(ModifySpotFleetRequestRequest request) {request = beforeClientExecution(request);return executeModifySpotFleetRequest(request);}", "after": "public virtual ModifySpotFleetRequestResponse ModifySpotFleetRequest(ModifySpotFleetRequestRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifySpotFleetRequestRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifySpotFleetRequestResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 777, "before": "public UncalcedRecord() {_reserved = 0;}", "after": "public UncalcedRecord(){_reserved = 0;}" }, { "index": 778, "before": "public static PageOrder valueOf(int value){return _table[value];}", "after": "public static PageOrder ValueOf(int value){return _table[value];}" }, { "index": 779, "before": "public static CellValue valueOf(boolean booleanValue) {return booleanValue ? TRUE : FALSE;}", "after": "public static CellValue ValueOf(bool boolValue){return boolValue ? TRUE : FALSE;}" }, { "index": 780, "before": "public void write(String str) {buf.append(str);}", "after": "public override void write(string str){buf.append(str);}" }, { "index": 781, "before": "public void addListener(HSSFListener lsnr, short sid) {List list = _records.computeIfAbsent(Short.valueOf(sid), k -> new ArrayList<>(1));list.add(lsnr);}", "after": "public void AddListener(IHSSFListener lsnr, short sid){IList list = null;Object obj = records[sid];if (obj != null){list = (IList)obj;}else{list = new ArrayList(1); list.Add(lsnr);records[sid]=list;}}" }, { "index": 782, "before": "public GetMeetingResult getMeeting(GetMeetingRequest request) {request = beforeClientExecution(request);return executeGetMeeting(request);}", "after": "public virtual GetMeetingResponse GetMeeting(GetMeetingRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMeetingRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMeetingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 783, "before": "public void stopTimer() {stop = true;}", "after": "public void StopTimer(){stop = true;}" }, { "index": 784, "before": "public AttachLoadBalancerTargetGroupsResult attachLoadBalancerTargetGroups(AttachLoadBalancerTargetGroupsRequest request) {request = beforeClientExecution(request);return executeAttachLoadBalancerTargetGroups(request);}", "after": "public virtual AttachLoadBalancerTargetGroupsResponse AttachLoadBalancerTargetGroups(AttachLoadBalancerTargetGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachLoadBalancerTargetGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachLoadBalancerTargetGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 785, "before": "public GetQueryLoggingConfigResult getQueryLoggingConfig(GetQueryLoggingConfigRequest request) {request = beforeClientExecution(request);return executeGetQueryLoggingConfig(request);}", "after": "public virtual GetQueryLoggingConfigResponse GetQueryLoggingConfig(GetQueryLoggingConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetQueryLoggingConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = GetQueryLoggingConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 786, "before": "public ListIterator listIterator() {Object[] snapshot = elements;return new CowIterator(snapshot, 0, snapshot.length);}", "after": "public virtual java.util.ListIterator listIterator(){object[] snapshot = elements;return new java.util.concurrent.CopyOnWriteArrayList.CowIterator(snapshot, 0,snapshot.Length);}" }, { "index": 787, "before": "public CreateSnapshotResult createSnapshot(CreateSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateSnapshot(request);}", "after": "public virtual CreateSnapshotResponse CreateSnapshot(CreateSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 788, "before": "public boolean hasObject(AnyObjectId objectId) {try {return getObjectDatabase().has(objectId);} catch (IOException e) {throw new UncheckedIOException(e);}}", "after": "public virtual bool HasObject(AnyObjectId objectId){try{return ObjectDatabase.Has(objectId);}catch (IOException){return false;}}" }, { "index": 789, "before": "public final void sort(int from, int to) {checkRange(from, to);mergeSort(from, to);}", "after": "public override sealed void Sort(int from, int to){CheckRange(from, to);MergeSort(from, to);}" }, { "index": 790, "before": "public T getChildById( short recordId ) {for ( EscherRecord childRecord : this ) {if ( childRecord.getRecordId() == recordId ) {@SuppressWarnings( \"unchecked\" )final T result = (T) childRecord;return result;}}return null;}", "after": "public EscherRecord GetChildById(short recordId){for (IEnumerator iterator = _childRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord escherRecord = (EscherRecord)iterator.Current;if (escherRecord.RecordId == recordId)return escherRecord;}return null;}" }, { "index": 791, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_xBasis);out.writeShort(field_2_yBasis);out.writeShort(field_3_heightBasis);out.writeShort(field_4_scale);out.writeShort(field_5_indexToFontTable);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_xBasis);out1.WriteShort(field_2_yBasis);out1.WriteShort(field_3_heightBasis);out1.WriteShort(field_4_scale);out1.WriteShort(field_5_indexToFontTable);}" }, { "index": 792, "before": "public static String toHex(int value) {StringBuilder sb = new StringBuilder(8);writeHex(sb, value & 0xFFFFFFFFL, 8, \"\");return sb.toString();}", "after": "public static string ToHex(int value){return ToHex((long)value, 8);}" }, { "index": 793, "before": "public static Collection sort(Collection refs) {final List r = new ArrayList<>(refs);Collections.sort(r, INSTANCE);return r;}", "after": "public static ICollection Sort(ICollection refs){IList r = new AList(refs);r.Sort(INSTANCE);return r;}" }, { "index": 794, "before": "public DescribeVpcsResult describeVpcs() {return describeVpcs(new DescribeVpcsRequest());}", "after": "public virtual DescribeVpcsResponse DescribeVpcs(){return DescribeVpcs(new DescribeVpcsRequest());}" }, { "index": 795, "before": "public ListProposalsResult listProposals(ListProposalsRequest request) {request = beforeClientExecution(request);return executeListProposals(request);}", "after": "public virtual ListProposalsResponse ListProposals(ListProposalsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListProposalsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListProposalsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 796, "before": "public void close() throws IOException {flush();output.close();}", "after": "public override void close(){throw new System.NotImplementedException();}" }, { "index": 797, "before": "public final T get() {return object;}", "after": "public T Get(){return m_object;}" }, { "index": 798, "before": "public BundleInstanceRequest(String instanceId, Storage storage) {setInstanceId(instanceId);setStorage(storage);}", "after": "public BundleInstanceRequest(string instanceId, Storage storage){_instanceId = instanceId;_storage = storage;}" }, { "index": 799, "before": "public void back(int delta) {if (delta == 1 && 0 <= prevPtr) {currPtr = prevPtr;prevPtr = -1;if (!eof())parseEntry();return;} else if (delta <= 0)throw new ArrayIndexOutOfBoundsException(delta);final int[] trace = new int[delta + 1];Arrays.fill(trace, -1);int ptr = 0;while (ptr != currPtr) {System.arraycopy(trace, 1, trace, 0, delta);trace[delta] = ptr;while (raw[ptr] != 0)ptr++;ptr += OBJECT_ID_LENGTH + 1;}if (trace[1] == -1)throw new ArrayIndexOutOfBoundsException(delta);prevPtr = trace[0];currPtr = trace[1];parseEntry();}", "after": "public override void Back(int delta){if (delta == 1 && 0 <= prevPtr){currPtr = prevPtr;prevPtr = -1;if (!Eof){ParseEntry();}return;}else{if (delta <= 0){throw Sharpen.Extensions.CreateIndexOutOfRangeException(delta);}}int[] trace = new int[delta + 1];Arrays.Fill(trace, -1);int ptr = 0;while (ptr != currPtr){System.Array.Copy(trace, 1, trace, 0, delta);trace[delta] = ptr;while (raw[ptr] != 0){ptr++;}ptr += Constants.OBJECT_ID_LENGTH + 1;}if (trace[1] == -1){throw Sharpen.Extensions.CreateIndexOutOfRangeException(delta);}prevPtr = trace[0];currPtr = trace[1];ParseEntry();}" }, { "index": 800, "before": "public String toString() {return \"pred_\"+ruleIndex+\":\"+predIndex;}", "after": "public override string ToString(){return \"pred_\" + ruleIndex + \":\" + predIndex;}" }, { "index": 801, "before": "public PatternSyntaxException(String description, String pattern, int index) {this.desc = description;this.pattern = pattern;this.index = index;}", "after": "public PatternSyntaxException(string description, string pattern, int index){this.desc = description;this.pattern = pattern;this.index = index;}" }, { "index": 802, "before": "public AlphaAnimation(float from, float to) {mStartAlpha = from;mEndAlpha = to;mCurrentAlpha = from;}", "after": "public AlphaAnimation(float fromAlpha, float toAlpha){mFromAlpha = fromAlpha;mToAlpha = toAlpha;}" }, { "index": 803, "before": "public int doLogic() throws Exception {TaxonomyWriter taxonomyWriter = getRunData().getTaxonomyWriter();if (taxonomyWriter != null) {taxonomyWriter.commit();} else {throw new IllegalStateException(\"TaxonomyWriter is not currently open\");}return 1;}", "after": "public override int DoLogic(){ITaxonomyWriter taxonomyWriter = RunData.TaxonomyWriter;if (taxonomyWriter != null){taxonomyWriter.Commit();}else{throw new InvalidOperationException(\"TaxonomyWriter is not currently open\");}return 1;}" }, { "index": 804, "before": "public DeltaIndex(byte[] sourceBuffer) {src = sourceBuffer;DeltaIndexScanner scan = new DeltaIndexScanner(src, src.length);table = scan.table;tableMask = scan.tableMask;entries = new long[1 + countEntries(scan)];copyEntries(scan);}", "after": "public DeltaIndex(byte[] sourceBuffer){src = sourceBuffer;DeltaIndexScanner scan = new DeltaIndexScanner(src, src.Length);table = scan.table;tableMask = scan.tableMask;entries = new long[1 + CountEntries(scan)];CopyEntries(scan);}" }, { "index": 805, "before": "public int previousIndex() {return pos;}", "after": "public int previousIndex(){return pos;}" }, { "index": 806, "before": "public QueryMaker getQueryMaker() {return getRunData().getQueryMaker(this);}", "after": "public override IQueryMaker GetQueryMaker(){return RunData.GetQueryMaker(this);}" }, { "index": 807, "before": "public JapaneseTokenizerFactory(Map args) {super(args);mode = Mode.valueOf(get(args, MODE, JapaneseTokenizer.DEFAULT_MODE.toString()).toUpperCase(Locale.ROOT));userDictionaryPath = args.remove(USER_DICT_PATH);userDictionaryEncoding = args.remove(USER_DICT_ENCODING);discardPunctuation = getBoolean(args, DISCARD_PUNCTUATION, true);discardCompoundToken = getBoolean(args, DISCARD_COMPOUND_TOKEN, true);nbestCost = getInt(args, NBEST_COST, 0);nbestExamples = args.remove(NBEST_EXAMPLES);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public JapaneseTokenizerFactory(IDictionary args): base(args){Enum.TryParse(Get(args, MODE, JapaneseTokenizer.DEFAULT_MODE.ToString()), true, out mode);userDictionaryPath = Get(args, USER_DICT_PATH);userDictionaryEncoding = Get(args, USER_DICT_ENCODING);discardPunctuation = GetBoolean(args, DISCARD_PUNCTUATION, true);if (args.Count > 0){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 808, "before": "public Long longValue(String key) {String value = responseMap.get(key);if (null == value || 0 == value.length()) {return null;}return Long.valueOf(responseMap.get(key));}", "after": "public long? LongValue(string key){if (null != DictionaryUtil.Get(ResponseDictionary, key)){return long.Parse(DictionaryUtil.Get(ResponseDictionary, key));}return null;}" }, { "index": 809, "before": "public GetLibraryRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"GetLibrary\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetLibraryRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"GetLibrary\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 810, "before": "public short getFontOfFormattingRun(int index) {FormatRun r = _string.getFormatRun(index);return r.getFontIndex();}", "after": "public short GetFontOfFormattingRun(int index){UnicodeString.FormatRun r = _string.GetFormatRun(index);return r.FontIndex;}" }, { "index": 811, "before": "public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {int bytesRemaining = readHeader( data, offset );int pos = offset + 8;int size = 0;field_1_shapeIdMax = LittleEndian.getInt( data, pos + size );size+=4;size+=4;field_3_numShapesSaved = LittleEndian.getInt( data, pos + size );size+=4;field_4_drawingsSaved = LittleEndian.getInt( data, pos + size );size+=4;field_5_fileIdClusters.clear();int numIdClusters = (bytesRemaining-size) / 8;for (int i = 0; i < numIdClusters; i++) {int drawingGroupId = LittleEndian.getInt( data, pos + size );int numShapeIdsUsed = LittleEndian.getInt( data, pos + size + 4 );FileIdCluster fic = new FileIdCluster(drawingGroupId, numShapeIdsUsed);field_5_fileIdClusters.add(fic);maxDgId = Math.max(maxDgId, drawingGroupId);size += 8;}bytesRemaining -= size;if (bytesRemaining != 0) {throw new RecordFormatException(\"Expecting no remaining data but got \" + bytesRemaining + \" byte(s).\");}return 8 + size;}", "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_shapeIdMax = LittleEndian.GetInt(data, pos + size); size += 4;int field_2_numIdClusters = LittleEndian.GetInt(data, pos + size); size += 4;field_3_numShapesSaved = LittleEndian.GetInt(data, pos + size); size += 4;field_4_drawingsSaved = LittleEndian.GetInt(data, pos + size); size += 4;field_5_fileIdClusters = new FileIdCluster[(bytesRemaining - size) / 8]; for (int i = 0; i < field_5_fileIdClusters.Length; i++){field_5_fileIdClusters[i] = new FileIdCluster(LittleEndian.GetInt(data, pos + size), LittleEndian.GetInt(data, pos + size + 4));maxDgId = Math.Max(maxDgId, field_5_fileIdClusters[i].DrawingGroupId);size += 8;}bytesRemaining -= size;if (bytesRemaining != 0)throw new RecordFormatException(\"Expecting no remaining data but got \" + bytesRemaining + \" byte(s).\");return 8 + size + bytesRemaining;}" }, { "index": 812, "before": "public void encode(int[] values, int valuesOffset, byte[] blocks,int blocksOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block = encode(values, valuesOffset);valuesOffset += valueCount;blocksOffset = writeLong(block, blocks, blocksOffset);}}", "after": "public override void Encode(long[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = Encode(values, valuesOffset);valuesOffset += valueCount;blocksOffset = WriteInt64(block, blocks, blocksOffset);}}" }, { "index": 813, "before": "public GetTerminologyResult getTerminology(GetTerminologyRequest request) {request = beforeClientExecution(request);return executeGetTerminology(request);}", "after": "public virtual GetTerminologyResponse GetTerminology(GetTerminologyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTerminologyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTerminologyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 814, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(_character);out.writeShort(_fontIndex);}", "after": "public void Serialize(ILittleEndianOutput out1){out1.WriteShort(_character);out1.WriteShort(_fontIndex);}" }, { "index": 815, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_options);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_options);}" }, { "index": 816, "before": "public SearchFacesResult searchFaces(SearchFacesRequest request) {request = beforeClientExecution(request);return executeSearchFaces(request);}", "after": "public virtual SearchFacesResponse SearchFaces(SearchFacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchFacesRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchFacesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 817, "before": "public int getPositionIncrementGap(String fieldName) {return getWrappedAnalyzer(fieldName).getPositionIncrementGap(fieldName);}", "after": "public override int GetPositionIncrementGap(string fieldName){return GetWrappedAnalyzer(fieldName).GetPositionIncrementGap(fieldName);}" }, { "index": 818, "before": "public DescribeSchemaResult describeSchema(DescribeSchemaRequest request) {request = beforeClientExecution(request);return executeDescribeSchema(request);}", "after": "public virtual DescribeSchemaResponse DescribeSchema(DescribeSchemaRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSchemaRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSchemaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 819, "before": "@Override public int size() {return BoundedMap.this.size();}", "after": "public override int size(){return this._enclosing.size();}" }, { "index": 820, "before": "public MutableEntry cloneEntry() {final MutableEntry r = new MutableEntry();ensureId();r.idBuffer.fromObjectId(idBuffer);r.offset = offset;return r;}", "after": "public virtual PackIndex.MutableEntry CloneEntry(){PackIndex.MutableEntry r = new PackIndex.MutableEntry();EnsureId();r.idBuffer.FromObjectId(idBuffer);r.offset = offset;return r;}" }, { "index": 821, "before": "public OperateEquipmentRequest() {super(\"industry-brain\", \"2018-07-12\", \"OperateEquipment\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public OperateEquipmentRequest(): base(\"industry-brain\", \"2018-07-12\", \"OperateEquipment\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 822, "before": "public boolean add(E e) {synchronized (mutex) {return delegate().add(e);}}", "after": "public virtual bool add(E @object){lock (mutex){return c.add(@object);}}" }, { "index": 823, "before": "public boolean equals( Object o ){if ( this == o ) {return true;}if ( !( o instanceof EscherSimpleProperty ) ) {return false;}final EscherSimpleProperty escherSimpleProperty = (EscherSimpleProperty) o;if ( propertyValue != escherSimpleProperty.propertyValue ) {return false;}if ( getId() != escherSimpleProperty.getId() ) {return false;}return true;}", "after": "public override bool Equals(Object o){if (this == o) return true;if (!(o is EscherSimpleProperty)) return false;EscherSimpleProperty escherSimpleProperty = (EscherSimpleProperty)o;if (propertyValue != escherSimpleProperty.propertyValue) return false;if (Id != escherSimpleProperty.Id) return false;return true;}" }, { "index": 824, "before": "public final FloatBuffer asFloatBuffer() {return FloatToByteBufferAdapter.asFloatBuffer(this);}", "after": "public sealed override java.nio.FloatBuffer asFloatBuffer(){return java.nio.FloatToByteBufferAdapter.asFloatBuffer(this);}" }, { "index": 825, "before": "public void removeThumbnail() {remove1stProperty(PropertyIDMap.PID_THUMBNAIL);}", "after": "public void RemoveThumbnail(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_THUMBNAIL);}" }, { "index": 826, "before": "public static int compareIgnoreCase(String a, String b) {for (int i = 0; i < a.length() && i < b.length(); i++) {int d = toLowerCase(a.charAt(i)) - toLowerCase(b.charAt(i));if (d != 0)return d;}return a.length() - b.length();}", "after": "public static int CompareIgnoreCase(string a, string b){for (int i = 0; i < a.Length && i < b.Length; i++){int d = ToLowerCase(a[i]) - ToLowerCase(b[i]);if (d != 0){return d;}}return a.Length - b.Length;}" }, { "index": 827, "before": "public ViewDefinitionRecord(RecordInputStream in) {rwFirst = in.readUShort();rwLast = in.readUShort();colFirst = in.readUShort();colLast = in.readUShort();rwFirstHead = in.readUShort();rwFirstData = in.readUShort();colFirstData = in.readUShort();iCache = in.readUShort();reserved = in.readUShort();sxaxis4Data = in.readUShort();ipos4Data = in.readUShort();cDim = in.readUShort();cDimRw = in.readUShort();cDimCol = in.readUShort();cDimPg = in.readUShort();cDimData = in.readUShort();cRw = in.readUShort();cCol = in.readUShort();grbit = in.readUShort();itblAutoFmt = in.readUShort();int cchName = in.readUShort();int cchData = in.readUShort();name = StringUtil.readUnicodeString(in, cchName);dataField = StringUtil.readUnicodeString(in, cchData);}", "after": "public ViewDefinitionRecord(RecordInputStream in1){rwFirst = in1.ReadUShort();rwLast = in1.ReadUShort();colFirst = in1.ReadUShort();colLast = in1.ReadUShort();rwFirstHead = in1.ReadUShort();rwFirstData = in1.ReadUShort();colFirstData = in1.ReadUShort();iCache = in1.ReadUShort();reserved = in1.ReadUShort();sxaxis4Data = in1.ReadUShort();ipos4Data = in1.ReadUShort();cDim = in1.ReadUShort();cDimRw = in1.ReadUShort();cDimCol = in1.ReadUShort();cDimPg = in1.ReadUShort();cDimData = in1.ReadUShort();cRw = in1.ReadUShort();cCol = in1.ReadUShort();grbit = in1.ReadUShort();itblAutoFmt = in1.ReadUShort();int cchName = in1.ReadUShort();int cchData = in1.ReadUShort();name = StringUtil.ReadUnicodeString(in1, cchName);dataField = StringUtil.ReadUnicodeString(in1, cchData);}" }, { "index": 828, "before": "public FormatRecord(RecordInputStream in) {field_1_index_code = in.readShort();int field_3_unicode_len = in.readUShort();field_3_hasMultibyte = (in.readByte() & 0x01) != 0;if (field_3_hasMultibyte) {field_4_formatstring = readStringCommon(in, field_3_unicode_len, false);} else {field_4_formatstring = readStringCommon(in, field_3_unicode_len, true);}}", "after": "public FormatRecord(RecordInputStream in1){field_1_index_code = in1.ReadShort();int field_3_unicode_len = in1.ReadShort();field_3_hasMultibyte = (in1.ReadByte() & (byte)0x01) != 0;if (field_3_hasMultibyte){field_4_formatstring = in1.ReadUnicodeLEString(field_3_unicode_len);}else{field_4_formatstring = in1.ReadCompressedUnicode(field_3_unicode_len);}}" }, { "index": 829, "before": "public DescribeBrokerResult describeBroker(DescribeBrokerRequest request) {request = beforeClientExecution(request);return executeDescribeBroker(request);}", "after": "public virtual DescribeBrokerResponse DescribeBroker(DescribeBrokerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeBrokerRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeBrokerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 830, "before": "public void reset() {if ( getInputStream()!=null ) getInputStream().seek(0);_errHandler.reset(this);_ctx = null;_syntaxErrors = 0;matchedEOF = false;setTrace(false);_precedenceStack.clear();_precedenceStack.push(0);ATNSimulator interpreter = getInterpreter();if (interpreter != null) {interpreter.reset();}}", "after": "public virtual void Reset(){if (((ITokenStream)InputStream) != null){((ITokenStream)InputStream).Seek(0);}_errHandler.Reset(this);_ctx = null;_syntaxErrors = 0;#if !PORTABLETrace = false;#endif_precedenceStack.Clear();_precedenceStack.Add(0);ATNSimulator interpreter = Interpreter;if (interpreter != null){interpreter.Reset();}}" }, { "index": 831, "before": "public boolean remove(Object o) {final RevFlag flag = (RevFlag) o;if ((mask & flag.mask) == 0)return false;mask &= ~flag.mask;for (int i = 0; i < active.size(); i++)if (active.get(i).mask == flag.mask)active.remove(i);return true;}", "after": "public override bool Remove(object o){RevFlag flag = (RevFlag)o;if ((mask & flag.mask) == 0){return false;}mask &= ~flag.mask;for (int i = 0; i < active.Count; i++){if (active[i].mask == flag.mask){active.Remove(i);}}return true;}" }, { "index": 832, "before": "public String format(Passage passages[], String content) {StringBuilder sb = new StringBuilder();int pos = 0;for (Passage passage : passages) {if (passage.getStartOffset() > pos && pos > 0) {sb.append(ellipsis);}pos = passage.getStartOffset();for (int i = 0; i < passage.getNumMatches(); i++) {int start = passage.getMatchStarts()[i];assert start >= pos && start < passage.getEndOffset();append(sb, content, pos, start);int end = passage.getMatchEnds()[i];assert end > start;while (i + 1 < passage.getNumMatches() && passage.getMatchStarts()[i+1] < end) {end = passage.getMatchEnds()[++i];}end = Math.min(end, passage.getEndOffset()); sb.append(preTag);append(sb, content, start, end);sb.append(postTag);pos = end;}append(sb, content, pos, Math.max(pos, passage.getEndOffset()));pos = passage.getEndOffset();}return sb.toString();}", "after": "public override object Format(Passage[] passages, string content){StringBuilder sb = new StringBuilder();int pos = 0;foreach (Passage passage in passages){if (passage.startOffset > pos && pos > 0){sb.Append(m_ellipsis);}pos = passage.startOffset;for (int i = 0; i < passage.numMatches; i++){int start = passage.matchStarts[i];int end = passage.matchEnds[i];if (start > pos){Append(sb, content, pos, start);}if (end > pos){sb.Append(m_preTag);Append(sb, content, Math.Max(pos, start), end);sb.Append(m_postTag);pos = end;}}Append(sb, content, pos, Math.Max(pos, passage.endOffset));pos = passage.endOffset;}return sb.ToString();}" }, { "index": 833, "before": "public DrillSidewaysResult(Facets facets, TopDocs hits) {this.facets = facets;this.hits = hits;}", "after": "public DrillSidewaysResult(Facets facets, TopDocs hits){this.Facets = facets;this.Hits = hits;}" }, { "index": 834, "before": "public ListTrafficPolicyInstancesByPolicyResult listTrafficPolicyInstancesByPolicy(ListTrafficPolicyInstancesByPolicyRequest request) {request = beforeClientExecution(request);return executeListTrafficPolicyInstancesByPolicy(request);}", "after": "public virtual ListTrafficPolicyInstancesByPolicyResponse ListTrafficPolicyInstancesByPolicy(ListTrafficPolicyInstancesByPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTrafficPolicyInstancesByPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTrafficPolicyInstancesByPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 835, "before": "public ComplexPhraseQuery(String field, String phrasedQueryStringContents,int slopFactor, boolean inOrder) {this.field = Objects.requireNonNull(field);this.phrasedQueryStringContents = Objects.requireNonNull(phrasedQueryStringContents);this.slopFactor = slopFactor;this.inOrder = inOrder;}", "after": "public ComplexPhraseQuery(string field, string phrasedQueryStringContents,int slopFactor, bool inOrder){this.field = field;this.phrasedQueryStringContents = phrasedQueryStringContents;this.slopFactor = slopFactor;this.inOrder = inOrder;}" }, { "index": 836, "before": "public String toString(String field) {StringBuilder buffer = new StringBuilder();if (!term.field().equals(field)) {buffer.append(term.field());buffer.append(\":\");}buffer.append(getClass().getSimpleName());buffer.append(\" {\");buffer.append('\\n');buffer.append(automaton.toString());buffer.append(\"}\");return buffer.toString();}", "after": "public override string ToString(string field){StringBuilder buffer = new StringBuilder();if (!m_term.Field.Equals(field, StringComparison.Ordinal)){buffer.Append(m_term.Field);buffer.Append(\":\");}buffer.Append(this.GetType().Name);buffer.Append(\" {\");buffer.Append('\\n');buffer.Append(m_automaton.ToString());buffer.Append(\"}\");buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}" }, { "index": 837, "before": "public final String toFormulaString() {return getName();}", "after": "public override String ToFormulaString(){return Name;}" }, { "index": 838, "before": "public AreaRecord clone() {return copy();}", "after": "public override Object Clone(){AreaRecord rec = new AreaRecord();rec.field_1_formatFlags = field_1_formatFlags;return rec;}" }, { "index": 839, "before": "public long ramBytesUsed() {return TERMS_BASE_RAM_BYTES_USED + (fst!=null ? fst.ramBytesUsed() : 0)+ RamUsageEstimator.sizeOf(scratch.bytes()) + RamUsageEstimator.sizeOf(scratchUTF16.chars());}", "after": "public override long RamBytesUsed(){return _termsCache.Values.Sum(simpleTextTerms => (simpleTextTerms != null) ? simpleTextTerms.RamBytesUsed() : 0);}" }, { "index": 840, "before": "public DeleteConfigurationTemplateRequest(String applicationName, String templateName) {setApplicationName(applicationName);setTemplateName(templateName);}", "after": "public DeleteConfigurationTemplateRequest(string applicationName, string templateName){_applicationName = applicationName;_templateName = templateName;}" }, { "index": 841, "before": "public List getTokens(int start, int stop, int ttype) {HashSet s = new HashSet(ttype);s.add(ttype);return getTokens(start,stop, s);}", "after": "public virtual IList GetTokens(int start, int stop, int ttype){BitSet s = new BitSet(ttype);s.Set(ttype);return GetTokens(start, stop, s);}" }, { "index": 842, "before": "public DescribeIamInstanceProfileAssociationsResult describeIamInstanceProfileAssociations(DescribeIamInstanceProfileAssociationsRequest request) {request = beforeClientExecution(request);return executeDescribeIamInstanceProfileAssociations(request);}", "after": "public virtual DescribeIamInstanceProfileAssociationsResponse DescribeIamInstanceProfileAssociations(DescribeIamInstanceProfileAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIamInstanceProfileAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIamInstanceProfileAssociationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 843, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval textArg) {ValueEval veText1;try {veText1 = OperandResolver.getSingleValue(textArg, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {return e.getErrorEval();}String text = OperandResolver.coerceValueToString(veText1);if (text.length() == 0) {return ErrorEval.VALUE_INVALID;}int code = text.charAt(0);return new StringEval(String.valueOf(code));}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval textArg){ValueEval veText1;try{veText1 = OperandResolver.GetSingleValue(textArg, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){return e.GetErrorEval();}String text = OperandResolver.CoerceValueToString(veText1);if (text.Length == 0){return ErrorEval.VALUE_INVALID;}int code = (int)text[0];return new StringEval(code.ToString());}" }, { "index": 844, "before": "public AttachVpnGatewayResult attachVpnGateway(AttachVpnGatewayRequest request) {request = beforeClientExecution(request);return executeAttachVpnGateway(request);}", "after": "public virtual AttachVpnGatewayResponse AttachVpnGateway(AttachVpnGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachVpnGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachVpnGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 845, "before": "public int compareTo(FloatBuffer otherBuffer) {int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining(): otherBuffer.remaining();int thisPos = position;int otherPos = otherBuffer.position;float thisFloat, otherFloat;while (compareRemaining > 0) {thisFloat = get(thisPos);otherFloat = otherBuffer.get(otherPos);if ((thisFloat != otherFloat)&& ((thisFloat == thisFloat) || (otherFloat == otherFloat))) {return thisFloat < otherFloat ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}", "after": "public virtual int compareTo(java.nio.FloatBuffer otherBuffer){int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining();int thisPos = _position;int otherPos = otherBuffer._position;float thisFloat;float otherFloat;while (compareRemaining > 0){thisFloat = get(thisPos);otherFloat = otherBuffer.get(otherPos);if ((thisFloat != otherFloat) && ((thisFloat == thisFloat) || (otherFloat == otherFloat))){return thisFloat < otherFloat ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}" }, { "index": 846, "before": "public Matcher useTransparentBounds(boolean value) {transparentBounds = value;useTransparentBoundsImpl(address, value);return this;}", "after": "public java.util.regex.Matcher useTransparentBounds(bool value){transparentBounds = value;useTransparentBoundsImpl(address, value);return this;}" }, { "index": 847, "before": "public void remove() {if (lastEntryReturned == null)throw new IllegalStateException();if (modCount != expectedModCount)throw new ConcurrentModificationException();Hashtable.this.remove(lastEntryReturned.key);lastEntryReturned = null;expectedModCount = modCount;}", "after": "public virtual void remove(){if (this.lastEntryReturned == null){throw new System.InvalidOperationException();}if (this._enclosing.modCount != this.expectedModCount){throw new java.util.ConcurrentModificationException();}this._enclosing.remove(this.lastEntryReturned.key);this.lastEntryReturned = null;this.expectedModCount = this._enclosing.modCount;}" }, { "index": 848, "before": "public String toFormulaString() {StringBuilder sb = new StringBuilder(64);if (externalWorkbookNumber >= 0) {sb.append('[');sb.append(externalWorkbookNumber);sb.append(']');}if (sheetName != null) {SheetNameFormatter.appendFormat(sb, sheetName);}sb.append('!');sb.append(FormulaError.REF.getString());return sb.toString();}", "after": "public override String ToFormulaString(){StringBuilder sb = new StringBuilder();if (externalWorkbookNumber >= 0){sb.Append('[');sb.Append(externalWorkbookNumber);sb.Append(']');}if (sheetName != null){sb.Append(sheetName);}sb.Append('!');sb.Append(ErrorConstants.GetText(ErrorConstants.ERROR_REF));return sb.ToString();}" }, { "index": 849, "before": "public String toString() {return slice.toString()+\":\"+ postingsEnum;}", "after": "public override string ToString(){return \"MultiDocsEnum(\" + Arrays.ToString(Subs) + \")\";}" }, { "index": 850, "before": "public CreateVpnConnectionRouteResult createVpnConnectionRoute(CreateVpnConnectionRouteRequest request) {request = beforeClientExecution(request);return executeCreateVpnConnectionRoute(request);}", "after": "public virtual CreateVpnConnectionRouteResponse CreateVpnConnectionRoute(CreateVpnConnectionRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVpnConnectionRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVpnConnectionRouteResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 851, "before": "public boolean hasNext() {return next != null;}", "after": "public virtual bool hasNext(){return this._next != null;}" }, { "index": 852, "before": "public DeleteDBSecurityGroupRequest(String dBSecurityGroupName) {setDBSecurityGroupName(dBSecurityGroupName);}", "after": "public DeleteDBSecurityGroupRequest(string dbSecurityGroupName){_dbSecurityGroupName = dbSecurityGroupName;}" }, { "index": 853, "before": "public int compare(Property o1, Property o2){String VBA_PROJECT = \"_VBA_PROJECT\";String name1 = o1.getName();String name2 = o2.getName();int result = name1.length() - name2.length();if (result == 0){if (name1.compareTo(VBA_PROJECT) == 0)result = 1;else if (name2.compareTo(VBA_PROJECT) == 0)result = -1;else{if (name1.startsWith(\"__\") && name2.startsWith(\"__\")){result = name1.compareToIgnoreCase(name2);}else if (name1.startsWith(\"__\")){result = 1;}else if (name2.startsWith(\"__\")){result = -1;}elseresult = name1.compareToIgnoreCase(name2);}}return result;}", "after": "public int Compare(Property o1, Property o2){String VBA_PROJECT = \"_VBA_PROJECT\";String name1 = ((Property)o1).Name;String name2 = ((Property)o2).Name;int num = name1.Length - name2.Length;if (num == 0){if (name1.Equals(VBA_PROJECT, StringComparison.CurrentCulture)){num = 1;}else if (name2.Equals(VBA_PROJECT, StringComparison.CurrentCulture)){num = -1;}else{if (name1.StartsWith(\"__\", StringComparison.Ordinal) && name2.StartsWith(\"__\", StringComparison.Ordinal)){num = String.Compare(name1, name2, StringComparison.OrdinalIgnoreCase);}else if (name1.StartsWith(\"__\", StringComparison.Ordinal)){num = 1;}else if (name2.StartsWith(\"__\", StringComparison.Ordinal)){num = -1;}else{num = String.Compare(name1, name2, StringComparison.OrdinalIgnoreCase);}}}return num;}" }, { "index": 854, "before": "public DoubleBuffer get(double[] dst, int dstOffset, int doubleCount) {Arrays.checkOffsetAndCount(dst.length, dstOffset, doubleCount);if (doubleCount > remaining()) {throw new BufferUnderflowException();}for (int i = dstOffset; i < dstOffset + doubleCount; ++i) {dst[i] = get();}return this;}", "after": "public virtual java.nio.DoubleBuffer get(double[] dst, int dstOffset, int doubleCount){java.util.Arrays.checkOffsetAndCount(dst.Length, dstOffset, doubleCount);if (doubleCount > remaining()){throw new java.nio.BufferUnderflowException();}{for (int i = dstOffset; i < dstOffset + doubleCount; ++i){dst[i] = get();}}return this;}" }, { "index": 855, "before": "public CharsRef add(CharsRef prefix, CharsRef output) {assert prefix != null;assert output != null;if (prefix == NO_OUTPUT) {return output;} else if (output == NO_OUTPUT) {return prefix;} else {assert prefix.length > 0;assert output.length > 0;CharsRef result = new CharsRef(prefix.length + output.length);System.arraycopy(prefix.chars, prefix.offset, result.chars, 0, prefix.length);System.arraycopy(output.chars, output.offset, result.chars, prefix.length, output.length);result.length = prefix.length + output.length;return result;}}", "after": "public override CharsRef Add(CharsRef prefix, CharsRef output){Debug.Assert(prefix != null);Debug.Assert(output != null);if (prefix == NO_OUTPUT){return output;}else if (output == NO_OUTPUT){return prefix;}else{Debug.Assert(prefix.Length > 0);Debug.Assert(output.Length > 0);var result = new CharsRef(prefix.Length + output.Length);Array.Copy(prefix.Chars, prefix.Offset, result.Chars, 0, prefix.Length);Array.Copy(output.Chars, output.Offset, result.Chars, prefix.Length, output.Length);result.Length = prefix.Length + output.Length;return result;}}" }, { "index": 856, "before": "public UpdateProfileResult updateProfile(UpdateProfileRequest request) {request = beforeClientExecution(request);return executeUpdateProfile(request);}", "after": "public virtual UpdateProfileResponse UpdateProfile(UpdateProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 857, "before": "public LikeThisQueryBuilder(Analyzer analyzer, String[] defaultFieldNames) {this.analyzer = analyzer;this.defaultFieldNames = defaultFieldNames;}", "after": "public LikeThisQueryBuilder(Analyzer analyzer, string[] defaultFieldNames){this.analyzer = analyzer;this.defaultFieldNames = defaultFieldNames;}" }, { "index": 858, "before": "public StringBuffer insert(int index, long l) {return insert(index, Long.toString(l));}", "after": "public java.lang.StringBuffer insert(int index, long l){return insert(index, System.Convert.ToString(l));}" }, { "index": 859, "before": "public Field(String name, BytesRef bytes, IndexableFieldType type) {if (name == null) {throw new IllegalArgumentException(\"name must not be null\");}if (bytes == null) {throw new IllegalArgumentException(\"bytes must not be null\");}if (type == null) {throw new IllegalArgumentException(\"type must not be null\");}this.name = name;this.fieldsData = bytes;this.type = type;}", "after": "public Field(string name, BytesRef bytes, FieldType type){if (name == null){throw new System.ArgumentNullException(\"name\", \"name cannot be null\");}if (type == null){throw new System.ArgumentNullException(\"type\", \"type cannot be null\");}if (type.IsIndexed){throw new System.ArgumentException(\"Fields with BytesRef values cannot be indexed\");}this.FieldsData = bytes;this.m_type = type;this.m_name = name;}" }, { "index": 860, "before": "public void clear() {mSize = 0;}", "after": "public virtual void clear(){mSize = 0;}" }, { "index": 861, "before": "public SrndQuery parse2(String query) throws ParseException {ReInit(new FastCharStream(new StringReader(query)));try {return TopSrndQuery();} catch (TokenMgrError tme) {throw new ParseException(tme.getMessage());}}", "after": "public virtual SrndQuery Parse2(string query){ReInit(new FastCharStream(new StringReader(query)));try{return TopSrndQuery();}catch (TokenMgrError tme){throw new ParseException(tme.Message);}}" }, { "index": 862, "before": "@Override public int size() {return (int) Math.min(this.size, Integer.MAX_VALUE);}", "after": "public override int size(){return this._enclosing._size;}" }, { "index": 863, "before": "public DescribeConfigurationResult describeConfiguration(DescribeConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeConfiguration(request);}", "after": "public virtual DescribeConfigurationResponse DescribeConfiguration(DescribeConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 864, "before": "public String getCharErrorDisplay(int c) {String s = getErrorDisplay(c);return \"'\"+s+\"'\";}", "after": "public virtual string GetCharErrorDisplay(int c){string s = GetErrorDisplay(c);return \"'\" + s + \"'\";}" }, { "index": 865, "before": "public DescribeHumanTaskUiResult describeHumanTaskUi(DescribeHumanTaskUiRequest request) {request = beforeClientExecution(request);return executeDescribeHumanTaskUi(request);}", "after": "public virtual DescribeHumanTaskUiResponse DescribeHumanTaskUi(DescribeHumanTaskUiRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeHumanTaskUiRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeHumanTaskUiResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 866, "before": "public void run() {try {int n = task.runAndMaybeStats(letChildReport);if (anyExhaustibleTasks) {updateExhausted(task);}count += n;} catch (NoMoreDataException e) {exhausted = true;} catch (Exception e) {throw new RuntimeException(e);}}", "after": "public override void Run(){try{int n = task.RunAndMaybeStats(outerInstance.letChildReport);if (outerInstance.anyExhaustibleTasks){outerInstance.UpdateExhausted(task);}count += n;}catch (NoMoreDataException){outerInstance.exhausted = true;}catch (Exception e){throw new Exception(e.ToString(), e);}}" }, { "index": 867, "before": "public DescribeImagePermissionsResult describeImagePermissions(DescribeImagePermissionsRequest request) {request = beforeClientExecution(request);return executeDescribeImagePermissions(request);}", "after": "public virtual DescribeImagePermissionsResponse DescribeImagePermissions(DescribeImagePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeImagePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeImagePermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 868, "before": "public SrndQuery clone() {try {return (SrndQuery)super.clone();} catch (CloneNotSupportedException cns) {throw new Error(cns);}}", "after": "public virtual object Clone(){object clone = null;try{clone = base.MemberwiseClone();}catch (Exception e){throw new InvalidOperationException(e.Message, e); }return clone;}" }, { "index": 869, "before": "public void recycleByteBlocks(byte[][] blocks, int start, int end) {final int numBlocks = Math.min(maxBufferedBlocks - freeBlocks, end - start);final int size = freeBlocks + numBlocks;if (size >= freeByteBlocks.length) {final byte[][] newBlocks = new byte[ArrayUtil.oversize(size,RamUsageEstimator.NUM_BYTES_OBJECT_REF)][];System.arraycopy(freeByteBlocks, 0, newBlocks, 0, freeBlocks);freeByteBlocks = newBlocks;}final int stop = start + numBlocks;for (int i = start; i < stop; i++) {freeByteBlocks[freeBlocks++] = blocks[i];blocks[i] = null;}for (int i = stop; i < end; i++) {blocks[i] = null;}bytesUsed.addAndGet(-(end - stop) * blockSize);assert bytesUsed.get() >= 0;}", "after": "public override void RecycleByteBlocks(byte[][] blocks, int start, int end){int numBlocks = Math.Min(maxBufferedBlocks - freeBlocks, end - start);int size = freeBlocks + numBlocks;if (size >= freeByteBlocks.Length){var newBlocks = new byte[ArrayUtil.Oversize(size, RamUsageEstimator.NUM_BYTES_OBJECT_REF)][];Array.Copy(freeByteBlocks, 0, newBlocks, 0, freeBlocks);freeByteBlocks = newBlocks;}int stop = start + numBlocks;for (int i = start; i < stop; i++){freeByteBlocks[freeBlocks++] = blocks[i];blocks[i] = null;}for (int i = stop; i < end; i++){blocks[i] = null;}bytesUsed.AddAndGet(-(end - stop) * m_blockSize);Debug.Assert(bytesUsed.Get() >= 0);}" }, { "index": 870, "before": "public GeohashPrefixTree(SpatialContext ctx, int maxLevels) {super(ctx, maxLevels);Rectangle bounds = ctx.getWorldBounds();if (bounds.getMinX() != -180)throw new IllegalArgumentException(\"Geohash only supports lat-lon world bounds. Got \"+bounds);int MAXP = getMaxLevelsPossible();if (maxLevels <= 0 || maxLevels > MAXP)throw new IllegalArgumentException(\"maxLevels must be [1-\"+MAXP+\"] but got \"+ maxLevels);}", "after": "public GeohashPrefixTree(SpatialContext ctx, int maxLevels): base(ctx, maxLevels){IRectangle bounds = ctx.WorldBounds;if (bounds.MinX != -180){throw new ArgumentException(\"Geohash only supports lat-lon world bounds. Got \" + bounds);}int Maxp = MaxLevelsPossible;if (maxLevels <= 0 || maxLevels > Maxp){throw new ArgumentException(\"maxLen must be [1-\" + Maxp + \"] but got \" + maxLevels);}}" }, { "index": 871, "before": "public void removeName(int namenum) {_definedNames.remove(namenum);}", "after": "public void RemoveName(int namenum){_definedNames.RemoveAt(namenum);}" }, { "index": 872, "before": "public CancelSpotFleetRequestsResult cancelSpotFleetRequests(CancelSpotFleetRequestsRequest request) {request = beforeClientExecution(request);return executeCancelSpotFleetRequests(request);}", "after": "public virtual CancelSpotFleetRequestsResponse CancelSpotFleetRequests(CancelSpotFleetRequestsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelSpotFleetRequestsRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelSpotFleetRequestsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 873, "before": "public GetIndustryInfoLineageListRequest() {super(\"industry-brain\", \"2018-07-12\", \"GetIndustryInfoLineageList\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetIndustryInfoLineageListRequest(): base(\"industry-brain\", \"2018-07-12\", \"GetIndustryInfoLineageList\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 874, "before": "public static double[] grow(double[] array, int minSize) {assert minSize >= 0: \"size must be positive (got \" + minSize + \"): likely integer overflow?\";if (array.length < minSize) {return growExact(array, oversize(minSize, Double.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": 875, "before": "public void setResult(RefUpdate.Result status) {result = status;super.setResult(status);}", "after": "public override void SetResult(RefUpdate.Result status){this._enclosing.result = status;base.SetResult(status);}" }, { "index": 876, "before": "public void decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final int byte0 = blocks[blocksOffset++] & 0xFF;final int byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 2) | (byte1 >>> 6);final int byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 63) << 4) | (byte2 >>> 4);final int byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 6) | (byte3 >>> 2);final int byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 3) << 8) | byte4;}}", "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 << 2) | ((int)((uint)byte1 >> 6));int byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 63) << 4) | ((int)((uint)byte2 >> 4));int byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 6) | ((int)((uint)byte3 >> 2));int byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 3) << 8) | byte4;}}" }, { "index": 877, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1, ValueEval arg2) {try {ValueEval ve = OperandResolver.getSingleValue(arg0, srcRowIndex, srcColumnIndex);final double result = OperandResolver.coerceValueToDouble(ve);if (Double.isNaN(result) || Double.isInfinite(result)) {throw new EvaluationException(ErrorEval.NUM_ERROR);}ve = OperandResolver.getSingleValue(arg2, srcRowIndex, srcColumnIndex);int order_value = OperandResolver.coerceValueToInt(ve);final boolean order;if (order_value==0) {order = true;} else if(order_value==1) {order = false;} else {throw new EvaluationException(ErrorEval.NUM_ERROR);}if (arg1 instanceof RefListEval) {return eval(result, ((RefListEval)arg1), order);}final AreaEval aeRange = convertRangeArg(arg1);return eval(result, aeRange, order);} catch (EvaluationException e) {return e.getErrorEval();}}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1, ValueEval arg2){AreaEval aeRange;double result;bool order = false;try{ValueEval ve = OperandResolver.GetSingleValue(arg0, srcRowIndex, srcColumnIndex);result = OperandResolver.CoerceValueToDouble(ve);if (Double.IsNaN(result) || Double.IsInfinity(result)){throw new EvaluationException(ErrorEval.NUM_ERROR);}aeRange = ConvertRangeArg(arg1);ve = OperandResolver.GetSingleValue(arg2, srcRowIndex, srcColumnIndex);int order_value = OperandResolver.CoerceValueToInt(ve);if (order_value == 0){order = true;}else if (order_value == 1){order = false;}else throw new EvaluationException(ErrorEval.NUM_ERROR);}catch (EvaluationException e){return e.GetErrorEval();}return eval(srcRowIndex, srcColumnIndex, result, aeRange, order);}" }, { "index": 878, "before": "public DeleteEventBusResult deleteEventBus(DeleteEventBusRequest request) {request = beforeClientExecution(request);return executeDeleteEventBus(request);}", "after": "public virtual DeleteEventBusResponse DeleteEventBus(DeleteEventBusRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEventBusRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEventBusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 879, "before": "public static ByteBuffer wrap(byte[] array, int start, int byteCount) {Arrays.checkOffsetAndCount(array.length, start, byteCount);ByteBuffer buf = new ReadWriteHeapByteBuffer(array);buf.position = start;buf.limit = start + byteCount;return buf;}", "after": "public static java.nio.ByteBuffer wrap(byte[] array_1, int start, int byteCount){java.util.Arrays.checkOffsetAndCount(array_1.Length, start, byteCount);java.nio.ByteBuffer buf = new java.nio.ReadWriteHeapByteBuffer(array_1);buf._position = start;buf._limit = start + byteCount;return buf;}" }, { "index": 880, "before": "public String apiVersion() {return this.apiVersion;}", "after": "public string ApiVersion { get; private set; }" }, { "index": 881, "before": "public SearchResult search(SearchRequest request) {request = beforeClientExecution(request);return executeSearch(request);}", "after": "public virtual SearchResponse Search(SearchRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 882, "before": "public PushCommand setRemote(String remote) {checkCallable();this.remote = remote;return this;}", "after": "public virtual NGit.Api.PushCommand SetRemote(string remote){CheckCallable();this.remote = remote;return this;}" }, { "index": 883, "before": "public AcceptReservedInstancesExchangeQuoteResult acceptReservedInstancesExchangeQuote(AcceptReservedInstancesExchangeQuoteRequest request) {request = beforeClientExecution(request);return executeAcceptReservedInstancesExchangeQuote(request);}", "after": "public virtual AcceptReservedInstancesExchangeQuoteResponse AcceptReservedInstancesExchangeQuote(AcceptReservedInstancesExchangeQuoteRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptReservedInstancesExchangeQuoteRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptReservedInstancesExchangeQuoteResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 884, "before": "public GetAuthorizationTokenResult getAuthorizationToken(GetAuthorizationTokenRequest request) {request = beforeClientExecution(request);return executeGetAuthorizationToken(request);}", "after": "public virtual GetAuthorizationTokenResponse GetAuthorizationToken(GetAuthorizationTokenRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAuthorizationTokenRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAuthorizationTokenResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 885, "before": "public static InitCommand init() {return new InitCommand();}", "after": "public static InitCommand Init(){return new InitCommand();}" }, { "index": 886, "before": "public static RevFilter create(Collection list) {if (list.size() < 2)throw new IllegalArgumentException(JGitText.get().atLeastTwoFiltersNeeded);final RevFilter[] subfilters = new RevFilter[list.size()];list.toArray(subfilters);if (subfilters.length == 2)return create(subfilters[0], subfilters[1]);return new List(subfilters);}", "after": "public static RevFilter Create(ICollection list){if (list.Count < 2){throw new ArgumentException(JGitText.Get().atLeastTwoFiltersNeeded);}RevFilter[] subfilters = new RevFilter[list.Count];Sharpen.Collections.ToArray(list, subfilters);if (subfilters.Length == 2){return Create(subfilters[0], subfilters[1]);}return new AndRevFilter.List(subfilters);}" }, { "index": 887, "before": "public static PredictionContext mergeRoot(SingletonPredictionContext a,SingletonPredictionContext b,boolean rootIsWildcard){if ( rootIsWildcard ) {if ( a == EMPTY ) return EMPTY; if ( b == EMPTY ) return EMPTY; }else {if ( a == EMPTY && b == EMPTY ) return EMPTY; if ( a == EMPTY ) { int[] payloads = {b.returnState, EMPTY_RETURN_STATE};PredictionContext[] parents = {b.parent, null};PredictionContext joined =new ArrayPredictionContext(parents, payloads);return joined;}if ( b == EMPTY ) { int[] payloads = {a.returnState, EMPTY_RETURN_STATE};PredictionContext[] parents = {a.parent, null};PredictionContext joined =new ArrayPredictionContext(parents, payloads);return joined;}}return null;}", "after": "public static PredictionContext MergeRoot(SingletonPredictionContext a,SingletonPredictionContext b,bool rootIsWildcard){if (rootIsWildcard){if (a == PredictionContext.EMPTY)return PredictionContext.EMPTY; if (b == PredictionContext.EMPTY)return PredictionContext.EMPTY; }else {if (a == EMPTY && b == EMPTY) return EMPTY; if (a == EMPTY){ int[] payloads = { b.returnState, EMPTY_RETURN_STATE };PredictionContext[] parents = { b.parent, null };PredictionContext joined =new ArrayPredictionContext(parents, payloads);return joined;}if (b == EMPTY){ int[] payloads = { a.returnState, EMPTY_RETURN_STATE };PredictionContext[] parents = { a.parent, null };PredictionContext joined =new ArrayPredictionContext(parents, payloads);return joined;}}return null;}" }, { "index": 888, "before": "public ListTerminologiesResult listTerminologies(ListTerminologiesRequest request) {request = beforeClientExecution(request);return executeListTerminologies(request);}", "after": "public virtual ListTerminologiesResponse ListTerminologies(ListTerminologiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTerminologiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTerminologiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 889, "before": "public ModifyInstanceGroupsRequest(java.util.List instanceGroups) {setInstanceGroups(instanceGroups);}", "after": "public ModifyInstanceGroupsRequest(List instanceGroups){_instanceGroups = instanceGroups;}" }, { "index": 890, "before": "public String toString() {return \"AnyObjectId[\" + name() + \"]\";}", "after": "public override string ToString(){return \"AnyObjectId[\" + Name + \"]\";}" }, { "index": 891, "before": "public long ramBytesUsed() {long ramBytesUsed = postingsReader.ramBytesUsed();for (TermsReader r : fields.values()) {ramBytesUsed += r.ramBytesUsed();}return ramBytesUsed;}", "after": "public override long RamBytesUsed(){long ramBytesUsed = 0;foreach (TermsReader r in fields.Values){if (r.index != null){ramBytesUsed += r.index.GetSizeInBytes();ramBytesUsed += RamUsageEstimator.SizeOf(r.metaBytesBlock);ramBytesUsed += RamUsageEstimator.SizeOf(r.metaLongsBlock);ramBytesUsed += RamUsageEstimator.SizeOf(r.skipInfo);ramBytesUsed += RamUsageEstimator.SizeOf(r.statsBlock);}}return ramBytesUsed;}" }, { "index": 892, "before": "public static final ObjectId fromRaw(int[] is, int p) {return new ObjectId(is[p], is[p + 1], is[p + 2], is[p + 3], is[p + 4]);}", "after": "public static NGit.ObjectId FromRaw(int[] @is, int p){return new NGit.ObjectId(@is[p], @is[p + 1], @is[p + 2], @is[p + 3], @is[p + 4]);}" }, { "index": 893, "before": "public RemoveTagsFromStreamResult removeTagsFromStream(RemoveTagsFromStreamRequest request) {request = beforeClientExecution(request);return executeRemoveTagsFromStream(request);}", "after": "public virtual RemoveTagsFromStreamResponse RemoveTagsFromStream(RemoveTagsFromStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveTagsFromStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveTagsFromStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 894, "before": "public void writeChar(int value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeChar(value);}", "after": "public virtual void writeChar(int value){throw new System.NotImplementedException();}" }, { "index": 895, "before": "public void setParams(String params) {super.setParams(params);if (params != null) {commitUserData = params;}}", "after": "public override void SetParams(string @params){base.SetParams(@params);if (@params != null){commitUserData = @params;}}" }, { "index": 896, "before": "public OptionGroup modifyOptionGroup(ModifyOptionGroupRequest request) {request = beforeClientExecution(request);return executeModifyOptionGroup(request);}", "after": "public virtual ModifyOptionGroupResponse ModifyOptionGroup(ModifyOptionGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyOptionGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyOptionGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 897, "before": "public CreateCommentResult createComment(CreateCommentRequest request) {request = beforeClientExecution(request);return executeCreateComment(request);}", "after": "public virtual CreateCommentResponse CreateComment(CreateCommentRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCommentRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCommentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 898, "before": "public void setParams(String params) {super.setParams(params);userData = params;}", "after": "public override void SetParams(string @params){base.SetParams(@params);userData = @params;}" }, { "index": 899, "before": "public SearchAvailablePhoneNumbersResult searchAvailablePhoneNumbers(SearchAvailablePhoneNumbersRequest request) {request = beforeClientExecution(request);return executeSearchAvailablePhoneNumbers(request);}", "after": "public virtual SearchAvailablePhoneNumbersResponse SearchAvailablePhoneNumbers(SearchAvailablePhoneNumbersRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchAvailablePhoneNumbersRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchAvailablePhoneNumbersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 900, "before": "public SpanPositionCheckQuery(SpanQuery match) {this.match = Objects.requireNonNull(match);}", "after": "public SpanPositionCheckQuery(SpanQuery match){this.m_match = match;}" }, { "index": 901, "before": "public boolean removeChildRecord(EscherRecord toBeRemoved) {return _childRecords.remove(toBeRemoved);}", "after": "public bool RemoveChildRecord(EscherRecord toBeRemoved){return _childRecords.Remove(toBeRemoved);}" }, { "index": 902, "before": "public BytesRef clone() {return new BytesRef(bytes, offset, length);}", "after": "public object Clone(){return new BytesRef(bytes, Offset, Length);}" }, { "index": 903, "before": "public ByteBuffer putLong(long value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putLong(long value){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 904, "before": "@Override public boolean add(E object) {synchronized (CopyOnWriteArrayList.this) {add(slice.to - slice.from, object);return true;}}", "after": "public virtual bool add(E e){lock (this){object[] newElements = new object[elements.Length + 1];System.Array.Copy(elements, 0, newElements, 0, elements.Length);newElements[elements.Length] = e;elements = newElements;return true;}}" }, { "index": 905, "before": "public RevTree lookupTree(AnyObjectId id) {RevTree c = (RevTree) objects.get(id);if (c == null) {c = new RevTree(id);objects.add(c);}return c;}", "after": "public virtual RevTree LookupTree(AnyObjectId id){RevTree c = (RevTree)objects.Get(id);if (c == null){c = new RevTree(id);objects.Add(c);}return c;}" }, { "index": 906, "before": "public boolean equals(Object other) {return sameClassAs(other) &&func.equals(((FunctionQuery) other).func);}", "after": "public override bool Equals(object o){var other = o as FunctionQuery;if (other == null){return false;}return Boost == other.Boost&& func.Equals(other.func);}" }, { "index": 907, "before": "public boolean changeExternalReference(String oldUrl, String newUrl) {for (ExternalBookBlock ex : _externalBookBlocks) {SupBookRecord externalRecord = ex.getExternalBookRecord();if (externalRecord.isExternalReferences()&& externalRecord.getURL().equals(oldUrl)) {externalRecord.setURL(newUrl);return true;}}return false;}", "after": "public bool ChangeExternalReference(String oldUrl, String newUrl){foreach (ExternalBookBlock ex in _externalBookBlocks){SupBookRecord externalRecord = ex.GetExternalBookRecord();if (externalRecord.IsExternalReferences&& externalRecord.URL.Equals(oldUrl)){externalRecord.URL = (newUrl);return true;}}return false;}" }, { "index": 908, "before": "public void removeLastPrinted() {remove1stProperty(PropertyIDMap.PID_LASTPRINTED);}", "after": "public void RemoveLastPrinted(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_LASTPRINTED);}" }, { "index": 909, "before": "public MergeCommand merge() {return new MergeCommand(repo);}", "after": "public virtual MergeCommand Merge(){return new MergeCommand(repo);}" }, { "index": 910, "before": "public String toString() {final Type t = getType();return t + \"(\" + beginA + \"-\" + endA + \",\" + beginB + \"-\" + endB + \")\";}", "after": "public override string ToString(){Edit.Type t = GetType();return t + \"(\" + beginA + \"-\" + endA + \",\" + beginB + \"-\" + endB + \")\";}" }, { "index": 911, "before": "public void serialize(LittleEndianOutput out) {int nItems = _list.size();out.writeShort(nItems);for (int k = 0; k < nItems; k++) {CellRangeAddress region = _list.get(k);region.serialize(out);}}", "after": "public void Serialize(ILittleEndianOutput out1){int nItems = _list.Count;out1.WriteShort(nItems);for (int k = 0; k < nItems; k++){CellRangeAddress region = (CellRangeAddress)_list[k];region.Serialize(out1);}}" }, { "index": 912, "before": "public void remove() {throw new UnsupportedOperationException(\"Remove not supported\");}", "after": "public void Remove(){throw new InvalidOperationException(\"Remove not supported\");}" }, { "index": 913, "before": "public TagCommand setSigned(boolean signed) {this.signed = signed;return this;}", "after": "public virtual NGit.Api.TagCommand SetSigned(bool signed){this.signed = signed;return this;}" }, { "index": 914, "before": "public DescribeReservedInstancesListingsResult describeReservedInstancesListings(DescribeReservedInstancesListingsRequest request) {request = beforeClientExecution(request);return executeDescribeReservedInstancesListings(request);}", "after": "public virtual DescribeReservedInstancesListingsResponse DescribeReservedInstancesListings(DescribeReservedInstancesListingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedInstancesListingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedInstancesListingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 915, "before": "public String getName() {return getRef().getName();}", "after": "public virtual string GetName(){return GetRef().GetName();}" }, { "index": 916, "before": "public boolean isAllSet(final int holder){return (holder & _mask) == _mask;}", "after": "public bool IsAllSet(int holder){return ((holder & this._mask) == this._mask);}" }, { "index": 917, "before": "public static int getEncodedSize(String value) {int result = 2 + 1;result += value.length() * (StringUtil.hasMultibyte(value) ? 2 : 1);return result;}", "after": "public static int GetEncodedSize(String value){int result = 2 + 1;result += value.Length * (StringUtil.HasMultibyte(value) ? 2 : 1);return result;}" }, { "index": 918, "before": "public List stem(char word[], int length) {if (dictionary.needsInputCleaning) {scratchSegment.setLength(0);scratchSegment.append(word, 0, length);CharSequence cleaned = dictionary.cleanInput(scratchSegment, segment);scratchBuffer = ArrayUtil.grow(scratchBuffer, cleaned.length());length = segment.length();segment.getChars(0, length, scratchBuffer, 0);word = scratchBuffer;}int caseType = caseOf(word, length);if (caseType == UPPER_CASE) {caseFoldTitle(word, length);caseFoldLower(titleBuffer, length);List list = doStem(word, length, false);list.addAll(doStem(titleBuffer, length, true));list.addAll(doStem(lowerBuffer, length, true));return list;} else if (caseType == TITLE_CASE) {caseFoldLower(word, length);List list = doStem(word, length, false);list.addAll(doStem(lowerBuffer, length, true));return list;} else {return doStem(word, length, false);}}", "after": "public IList Stem(char[] word, int length){if (dictionary.needsInputCleaning){scratchSegment.Length = 0;scratchSegment.Append(word, 0, length);string cleaned = dictionary.CleanInput(scratchSegment.ToString(), segment);scratchBuffer = ArrayUtil.Grow(scratchBuffer, cleaned.Length);length = segment.Length;segment.CopyTo(0, scratchBuffer, 0, length);word = scratchBuffer;}List stems = new List();Int32sRef forms = dictionary.LookupWord(word, 0, length);if (forms != null){for (int i = 0; i < forms.Length; i++){stems.Add(NewStem(word, length));}}stems.AddRange(Stem(word, length, -1, -1, -1, 0, true, true, false, false));return stems;}" }, { "index": 919, "before": "public HSSFConditionalFormattingRule createConditionalFormattingRule(String formula) {CFRuleRecord rr = CFRuleRecord.create(_sheet, formula);return new HSSFConditionalFormattingRule(_sheet, rr);}", "after": "public IConditionalFormattingRule CreateConditionalFormattingRule(String formula){HSSFWorkbook wb = (HSSFWorkbook)_sheet.Workbook;CFRuleRecord rr = CFRuleRecord.Create(_sheet, formula);return new HSSFConditionalFormattingRule(wb, rr);}" }, { "index": 920, "before": "public Record create(RecordInputStream in) {Object[] args = { in, };try {return (org.apache.poi.hssf.record.Record) _m.invoke(null, args);} catch (IllegalArgumentException | IllegalAccessException e) {throw new RuntimeException(e);} catch (InvocationTargetException e) {throw new org.apache.poi.util.RecordFormatException(\"Unable to construct record instance\" , e.getTargetException());}}", "after": "public Record Create(RecordInputStream in1){Object[] args = { in1 };try{return (Record)_m.Invoke(null, args);}catch (Exception e){throw new RecordFormatException(\"Unable to construct record instance\", e.InnerException);}}" }, { "index": 921, "before": "public int set(int index, long[] arr, int off, int len) {assert len > 0 : \"len must be > 0 (got \" + len + \")\";assert index >= 0 && index < size();len = Math.min(len, size() - index);assert off + len <= arr.length;for (int i = index, o = off, end = index + len; i < end; ++i, ++o) {set(i, arr[o]);}return len;}", "after": "public virtual int Set(int index, long[] arr, int off, int len){Debug.Assert(len > 0, \"len must be > 0 (got \" + len + \")\");Debug.Assert(index >= 0 && index < Count);len = Math.Min(len, Count - index);Debug.Assert(off + len <= arr.Length);for (int i = index, o = off, end = index + len; i < end; ++i, ++o){Set(i, arr[o]);}return len;}" }, { "index": 922, "before": "public synchronized long ramBytesUsed() {long bytes = 0;for(CachedOrds ords : ordsCache.values()) {bytes += ords.ramBytesUsed();}return bytes;}", "after": "public virtual long RamBytesUsed(){#if !FEATURE_CONDITIONALWEAKTABLE_ENUMERATORlock (this)#endifreturn ordsCache.Sum(pair => pair.Value.RamBytesUsed());}" }, { "index": 923, "before": "public void writeDouble(double v) {writeLong(Double.doubleToLongBits(v));}", "after": "public void WriteDouble(double v){WriteLong(BitConverter.DoubleToInt64Bits(v));}" }, { "index": 924, "before": "public String toString() {return \"DocumentsWriterFlushControl [activeBytes=\" + activeBytes+ \", flushBytes=\" + flushBytes + \"]\";}", "after": "public override string ToString(){return \"DocumentsWriterFlushControl [activeBytes=\" + activeBytes + \", flushBytes=\" + flushBytes + \"]\";}" }, { "index": 925, "before": "public ListSecurityConfigurationsResult listSecurityConfigurations(ListSecurityConfigurationsRequest request) {request = beforeClientExecution(request);return executeListSecurityConfigurations(request);}", "after": "public virtual ListSecurityConfigurationsResponse ListSecurityConfigurations(ListSecurityConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSecurityConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSecurityConfigurationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 926, "before": "public ListQualificationRequestsResult listQualificationRequests(ListQualificationRequestsRequest request) {request = beforeClientExecution(request);return executeListQualificationRequests(request);}", "after": "public virtual ListQualificationRequestsResponse ListQualificationRequests(ListQualificationRequestsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListQualificationRequestsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListQualificationRequestsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 927, "before": "public void println(char[] chars) {println(new String(chars, 0, chars.length));}", "after": "public virtual void println(char[] chars){println(new string(chars, 0, chars.Length));}" }, { "index": 928, "before": "public ReleaseAddressResult releaseAddress(ReleaseAddressRequest request) {request = beforeClientExecution(request);return executeReleaseAddress(request);}", "after": "public virtual ReleaseAddressResponse ReleaseAddress(ReleaseAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReleaseAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = ReleaseAddressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 929, "before": "public static boolean[] copyOfRange(boolean[] original, int start, int end) {if (start > end) {throw new IllegalArgumentException();}int originalLength = original.length;if (start < 0 || start > originalLength) {throw new ArrayIndexOutOfBoundsException();}int resultLength = end - start;int copyLength = Math.min(resultLength, originalLength - start);boolean[] result = new boolean[resultLength];System.arraycopy(original, start, result, 0, copyLength);return result;}", "after": "public static bool[] copyOfRange(bool[] original, int start, int end){if (start > end){throw new System.ArgumentException();}int originalLength = original.Length;if (start < 0 || start > originalLength){throw new System.IndexOutOfRangeException();}int resultLength = end - start;int copyLength = System.Math.Min(resultLength, originalLength - start);bool[] result = new bool[resultLength];System.Array.Copy(original, start, result, 0, copyLength);return result;}" }, { "index": 930, "before": "public void fillOval(int x, int y, int width, int height){HSSFSimpleShape shape = escherGroup.createShape(new HSSFChildAnchor( x, y, x + width, y + height ) );shape.setShapeType(HSSFSimpleShape.OBJECT_TYPE_OVAL);shape.setLineStyle(HSSFShape.LINESTYLE_NONE);shape.setFillColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());shape.setLineStyleColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());shape.setNoFill(false);}", "after": "public void FillOval(int x, int y, int width, int height){HSSFSimpleShape shape = escherGroup.CreateShape(new HSSFChildAnchor(x, y, x + width, y + height));shape.ShapeType = (HSSFSimpleShape.OBJECT_TYPE_OVAL);shape.LineStyle = LineStyle.None;shape.SetFillColor(foreground.R, foreground.G, foreground.B);shape.SetLineStyleColor(foreground.R, foreground.G, foreground.B);shape.IsNoFill = (false);}" }, { "index": 931, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2) {try {String needle = TextFunction.evaluateStringArg(arg0, srcRowIndex, srcColumnIndex);String haystack = TextFunction.evaluateStringArg(arg1, srcRowIndex, srcColumnIndex);int startpos = TextFunction.evaluateIntArg(arg2, srcRowIndex, srcColumnIndex) - 1;if (startpos < 0) {return ErrorEval.VALUE_INVALID;}return eval(haystack, needle, startpos);} catch (EvaluationException e) {return e.getErrorEval();}}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2){try{String needle = TextFunction.EvaluateStringArg(arg0, srcRowIndex, srcColumnIndex);String haystack = TextFunction.EvaluateStringArg(arg1, srcRowIndex, srcColumnIndex);int startpos = TextFunction.EvaluateIntArg(arg2, srcRowIndex, srcColumnIndex) - 1;if (startpos < 0){return ErrorEval.VALUE_INVALID;}return Eval(haystack, needle, startpos);}catch (EvaluationException e){return e.GetErrorEval();}}" }, { "index": 932, "before": "public CreateInvalidationRequest(String distributionId, InvalidationBatch invalidationBatch) {setDistributionId(distributionId);setInvalidationBatch(invalidationBatch);}", "after": "public CreateInvalidationRequest(string distributionId, InvalidationBatch invalidationBatch){_distributionId = distributionId;_invalidationBatch = invalidationBatch;}" }, { "index": 933, "before": "public CreateUsageReportSubscriptionResult createUsageReportSubscription(CreateUsageReportSubscriptionRequest request) {request = beforeClientExecution(request);return executeCreateUsageReportSubscription(request);}", "after": "public virtual CreateUsageReportSubscriptionResponse CreateUsageReportSubscription(CreateUsageReportSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateUsageReportSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateUsageReportSubscriptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 934, "before": "public static String fromString(String value) {return value;}", "after": "public static string FromString(String value){return value;}" }, { "index": 935, "before": "public GetDetectorsResult getDetectors(GetDetectorsRequest request) {request = beforeClientExecution(request);return executeGetDetectors(request);}", "after": "public virtual GetDetectorsResponse GetDetectors(GetDetectorsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDetectorsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDetectorsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 936, "before": "public static String fromDouble(Double d) {return Double.toString(d);}", "after": "public static string FromDouble(double value){return value.ToString(CultureInfo.InvariantCulture);}" }, { "index": 937, "before": "public void writeProtectWorkbook( String password, String username ) {FileSharingRecord frec = getFileSharing();WriteAccessRecord waccess = getWriteAccess(); getWriteProtect();frec.setReadOnly((short)1);frec.setPassword((short)CryptoFunctions.createXorVerifier1(password));frec.setUsername(username);waccess.setUsername(username);}", "after": "public void WriteProtectWorkbook(String password, String username){FileSharingRecord frec = FileSharing;WriteAccessRecord waccess = WriteAccess;frec.ReadOnly=((short)1);frec.Password=(FileSharingRecord.HashPassword(password));frec.Username=(username);waccess.Username=(username);}" }, { "index": 938, "before": "public Process exec(String command, int timeout)throws TransportException {String ssh = SystemReader.getInstance().getenv(\"GIT_SSH\"); boolean putty = ssh.toLowerCase(Locale.ROOT).contains(\"plink\"); List args = new ArrayList<>();args.add(ssh);if (putty&& !ssh.toLowerCase(Locale.ROOT).contains(\"tortoiseplink\")) args.add(\"-batch\"); if (0 < getURI().getPort()) {args.add(putty ? \"-P\" : \"-p\"); args.add(String.valueOf(getURI().getPort()));}if (getURI().getUser() != null)args.add(getURI().getUser() + \"@\" + getURI().getHost()); elseargs.add(getURI().getHost());args.add(command);ProcessBuilder pb = createProcess(args);try {return pb.start();} catch (IOException err) {throw new TransportException(err.getMessage(), err);}}", "after": "public virtual SystemProcess Exec(string command, int timeout){string ssh = SystemReader.GetInstance().Getenv(\"GIT_SSH\");bool putty = ssh.ToLower().Contains(\"plink\");IList args = new AList();args.AddItem(ssh);if (putty && !ssh.ToLower().Contains(\"tortoiseplink\")){args.AddItem(\"-batch\");}if (0 < this._enclosing.GetURI().GetPort()){args.AddItem(putty ? \"-P\" : \"-p\");args.AddItem(this._enclosing.GetURI().GetPort().ToString());}if (this._enclosing.GetURI().GetUser() != null){args.AddItem(this._enclosing.GetURI().GetUser() + \"@\" + this._enclosing.GetURI().GetHost());}else{args.AddItem(this._enclosing.GetURI().GetHost());}args.AddItem(command);ProcessStartInfo pb = new ProcessStartInfo();pb.SetCommand(args);if (this._enclosing.local.Directory != null){pb.EnvironmentVariables.Put(Constants.GIT_DIR_KEY, this._enclosing.local.Directory.GetPath());}try{return pb.Start();}catch (IOException err){throw new TransportException(err.Message, err);}}" }, { "index": 939, "before": "public void serialize(LittleEndianOutput out) {out.write(recordData);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.Write(recordData);}" }, { "index": 940, "before": "public UpdateFleetCapacityResult updateFleetCapacity(UpdateFleetCapacityRequest request) {request = beforeClientExecution(request);return executeUpdateFleetCapacity(request);}", "after": "public virtual UpdateFleetCapacityResponse UpdateFleetCapacity(UpdateFleetCapacityRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFleetCapacityRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFleetCapacityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 941, "before": "public CreateDirectConnectGatewayAssociationResult createDirectConnectGatewayAssociation(CreateDirectConnectGatewayAssociationRequest request) {request = beforeClientExecution(request);return executeCreateDirectConnectGatewayAssociation(request);}", "after": "public virtual CreateDirectConnectGatewayAssociationResponse CreateDirectConnectGatewayAssociation(CreateDirectConnectGatewayAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDirectConnectGatewayAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDirectConnectGatewayAssociationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 942, "before": "public TokenStream create(TokenStream input) {if (words == null) {return input;} else {final TokenStream filter = new KeepWordFilter(input, words);return filter;}}", "after": "public override TokenStream Create(TokenStream input){if (words == null){return input;}else{#pragma warning disable 612, 618TokenStream filter = new KeepWordFilter(m_luceneMatchVersion, enablePositionIncrements, input, words);#pragma warning restore 612, 618return filter;}}" }, { "index": 943, "before": "public final int getEndA() {return endA;}", "after": "public int GetEndA(){return endA;}" }, { "index": 944, "before": "public String getStrictHostKeyChecking() {return strictHostKeyChecking;}", "after": "public virtual string GetStrictHostKeyChecking(){return strictHostKeyChecking;}" }, { "index": 945, "before": "public Lift(boolean changeSkip) {this.changeSkip = changeSkip;}", "after": "public Lift(bool changeSkip){this.changeSkip = changeSkip;}" }, { "index": 946, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_precision);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_precision);}" }, { "index": 947, "before": "public GetAuthorizerResult getAuthorizer(GetAuthorizerRequest request) {request = beforeClientExecution(request);return executeGetAuthorizer(request);}", "after": "public virtual GetAuthorizerResponse GetAuthorizer(GetAuthorizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAuthorizerRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAuthorizerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 948, "before": "public StringCharacterIterator(String value, int start, int end, int location) {string = value;if (start < 0 || end > string.length() || start > end|| location < start || location > end) {throw new IllegalArgumentException();}this.start = start;this.end = end;offset = location;}", "after": "public StringCharacterIterator(string value, int start, int end, int location){@string = value;if (start < 0 || end > @string.Length || start > end || location < start || location> end){throw new System.ArgumentException();}this.start = start;this.end = end;offset = location;}" }, { "index": 949, "before": "public String toString() {StringBuilder buf = new StringBuilder();buf.append(\"ObjectToPack[\");buf.append(Constants.typeString(getType()));buf.append(\" \");buf.append(name());if (wantWrite())buf.append(\" wantWrite\");if (isReuseAsIs())buf.append(\" reuseAsIs\");if (isDoNotDelta())buf.append(\" doNotDelta\");if (isEdge())buf.append(\" edge\");if (getDeltaDepth() > 0)buf.append(\" depth=\").append(getDeltaDepth());if (isDeltaRepresentation()) {if (getDeltaBase() != null)buf.append(\" base=inpack:\").append(getDeltaBase().name());elsebuf.append(\" base=edge:\").append(getDeltaBaseId().name());}if (isWritten())buf.append(\" offset=\").append(getOffset());buf.append(\"]\");return buf.toString();}", "after": "public override string ToString(){StringBuilder buf = new StringBuilder();buf.Append(\"ObjectToPack[\");buf.Append(Constants.TypeString(GetType()));buf.Append(\" \");buf.Append(Name);if (WantWrite()){buf.Append(\" wantWrite\");}if (IsReuseAsIs()){buf.Append(\" reuseAsIs\");}if (IsDoNotDelta()){buf.Append(\" doNotDelta\");}if (IsEdge()){buf.Append(\" edge\");}if (GetDeltaDepth() > 0){buf.Append(\" depth=\" + GetDeltaDepth());}if (IsDeltaRepresentation()){if (GetDeltaBase() != null){buf.Append(\" base=inpack:\" + GetDeltaBase().Name);}else{buf.Append(\" base=edge:\" + GetDeltaBaseId().Name);}}if (IsWritten()){buf.Append(\" offset=\" + GetOffset());}buf.Append(\"]\");return buf.ToString();}" }, { "index": 950, "before": "public String toString() {return \"1\";}", "after": "public override string ToString(){return \"1\";}" }, { "index": 951, "before": "public final void readFully(byte[] dst, int offset, int byteCount) throws IOException {Streams.readFully(in, dst, offset, byteCount);}", "after": "public virtual void readFully(byte[] dst, int offset, int byteCount){throw new System.NotImplementedException();}" }, { "index": 952, "before": "public GetMailboxDetailsResult getMailboxDetails(GetMailboxDetailsRequest request) {request = beforeClientExecution(request);return executeGetMailboxDetails(request);}", "after": "public virtual GetMailboxDetailsResponse GetMailboxDetails(GetMailboxDetailsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMailboxDetailsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMailboxDetailsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 953, "before": "public CharBuffer append(CharSequence csq) {if (csq != null) {return put(csq.toString());}return put(\"null\");}", "after": "public virtual java.nio.CharBuffer append(java.lang.CharSequence csq){if (csq != null){return put(csq.ToString());}return put(\"null\");}" }, { "index": 954, "before": "public RegisterFaceRequest() {super(\"LinkFace\", \"2018-07-20\", \"RegisterFace\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public RegisterFaceRequest(): base(\"LinkFace\", \"2018-07-20\", \"RegisterFace\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 955, "before": "public static void checkValue(double result) throws EvaluationException {if (Double.isNaN(result) || Double.isInfinite(result)) {throw new EvaluationException(ErrorEval.NUM_ERROR);}}", "after": "public static void CheckValue(double result){if (Double.IsNaN(result) || Double.IsInfinity(result)){throw new EvaluationException(ErrorEval.NUM_ERROR);}}" }, { "index": 956, "before": "public PutInvitationConfigurationResult putInvitationConfiguration(PutInvitationConfigurationRequest request) {request = beforeClientExecution(request);return executePutInvitationConfiguration(request);}", "after": "public virtual PutInvitationConfigurationResponse PutInvitationConfiguration(PutInvitationConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutInvitationConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutInvitationConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 957, "before": "public QueryNode process(QueryNode queryTree) throws QueryNodeException {Operator op = getQueryConfigHandler().get(ConfigurationKeys.DEFAULT_OPERATOR);if (op == null) {throw new IllegalArgumentException(\"StandardQueryConfigHandler.ConfigurationKeys.DEFAULT_OPERATOR should be set on the QueryConfigHandler\");}this.usingAnd = StandardQueryConfigHandler.Operator.AND == op;return super.process(queryTree);}", "after": "public override IQueryNode Process(IQueryNode queryTree){Operator? op = GetQueryConfigHandler().Get(ConfigurationKeys.DEFAULT_OPERATOR);if (op == null){throw new ArgumentException(\"StandardQueryConfigHandler.ConfigurationKeys.DEFAULT_OPERATOR should be set on the QueryConfigHandler\");}this.usingAnd = Operator.AND == op;return base.Process(queryTree);}" }, { "index": 958, "before": "public void add(BytesRef utf8, int bucket) throws IOException {if (bucket < 0 || bucket >= buckets) {throw new IllegalArgumentException(\"Bucket outside of the allowed range [0, \" + buckets + \"): \" + bucket);}scratch.grow(utf8.length + 10);scratch.clear();scratch.append((byte) bucket);scratch.append(utf8);sorter.add(scratch.get());}", "after": "public virtual void Add(BytesRef utf8, int bucket){if (bucket < 0 || bucket >= buckets){throw new ArgumentException(\"Bucket outside of the allowed range [0, \" + buckets + \"): \" + bucket);}if (scratch.Bytes.Length < utf8.Length + 1){scratch.Grow(utf8.Length + 10);}scratch.Length = 1;scratch.Bytes[0] = (byte)bucket;scratch.Append(utf8);sorter.Add(scratch);}" }, { "index": 959, "before": "public DescribeWorkspaceBundlesResult describeWorkspaceBundles() {return describeWorkspaceBundles(new DescribeWorkspaceBundlesRequest());}", "after": "public virtual DescribeWorkspaceBundlesResponse DescribeWorkspaceBundles(){var request = new DescribeWorkspaceBundlesRequest();return DescribeWorkspaceBundles(request);}" }, { "index": 960, "before": "public static String decode(String s) {return decode(s, false, Charsets.UTF_8);}", "after": "public static string decode(string s){return decode(s, false, java.nio.charset.Charsets.UTF_8);}" }, { "index": 961, "before": "public void setExpire(Date expire) {this.expire = expire;expireAgeMillis = -1;}", "after": "public virtual void SetExpire(DateTime expire){this.expire = expire;expireAgeMillis = -1;}" }, { "index": 962, "before": "public int DecRef() {assert count > 0: Thread.currentThread().getName() + \": RefCount is 0 pre-decrement for file \\\"\" + fileName + \"\\\"\";return --count;}", "after": "public int DecRef(){Debug.Assert(count > 0, Thread.CurrentThread.Name + \": RefCount is 0 pre-decrement for file \\\"\" + fileName + \"\\\"\");return --count;}" }, { "index": 963, "before": "public List getWeightedFragInfoList( List src ) {return src;}", "after": "public override IList GetWeightedFragInfoList(IList src){return src;}" }, { "index": 964, "before": "public CreateInstancesFromSnapshotResult createInstancesFromSnapshot(CreateInstancesFromSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateInstancesFromSnapshot(request);}", "after": "public virtual CreateInstancesFromSnapshotResponse CreateInstancesFromSnapshot(CreateInstancesFromSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateInstancesFromSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateInstancesFromSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 965, "before": "public Comparator comparator() {return backingMap.comparator();}", "after": "public virtual java.util.Comparator comparator(){return backingMap.comparator();}" }, { "index": 966, "before": "public boolean isValueSecure() {return valueSecure;}", "after": "public virtual bool IsValueSecure(){return valueSecure;}" }, { "index": 967, "before": "public static short[] grow(short[] array, int minSize) {assert minSize >= 0: \"size must be positive (got \" + minSize + \"): likely integer overflow?\";if (array.length < minSize) {return growExact(array, oversize(minSize, Short.BYTES));} elsereturn array;}", "after": "public static short[] Grow(short[] array, int minSize){Debug.Assert(minSize >= 0, \"size must be positive (got \" + minSize + \"): likely integer overflow?\");if (array.Length < minSize){short[] newArray = new short[Oversize(minSize, RamUsageEstimator.NUM_BYTES_INT16)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}" }, { "index": 968, "before": "public ObjectId idFor(int type, byte[] data) {return idFor(type, data, 0, data.length);}", "after": "public override ObjectId IdFor(int type, byte[] data){return Delegate().IdFor(type, data);}" }, { "index": 969, "before": "public CreateDomainNameResult createDomainName(CreateDomainNameRequest request) {request = beforeClientExecution(request);return executeCreateDomainName(request);}", "after": "public virtual CreateDomainNameResponse CreateDomainName(CreateDomainNameRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDomainNameRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDomainNameResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 970, "before": "public DeleteAddressBookResult deleteAddressBook(DeleteAddressBookRequest request) {request = beforeClientExecution(request);return executeDeleteAddressBook(request);}", "after": "public virtual DeleteAddressBookResponse DeleteAddressBook(DeleteAddressBookRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAddressBookRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAddressBookResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 971, "before": "public void addToolPack(UDFFinder toopack){AggregatingUDFFinder udfs = (AggregatingUDFFinder)_udfFinder;udfs.add(toopack);}", "after": "public void AddToolPack(UDFFinder toopack){AggregatingUDFFinder udfs = (AggregatingUDFFinder)_udfFinder;udfs.Add(toopack);}" }, { "index": 972, "before": "public SearchUsersResult searchUsers(SearchUsersRequest request) {request = beforeClientExecution(request);return executeSearchUsers(request);}", "after": "public virtual SearchUsersResponse SearchUsers(SearchUsersRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchUsersRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchUsersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 973, "before": "public String getAccessKeySecret() {return privateKeySecret;}", "after": "public string GetAccessKeySecret(){return privateKeySecret;}" }, { "index": 974, "before": "public void setValueAt(int index, E value) {if (mGarbage) {gc();}mValues[index] = value;}", "after": "public virtual void setValueAt(int index, E value){if (mGarbage){gc();}mValues[index] = value;}" }, { "index": 975, "before": "public RefErrorPtg() {field_1_reserved = 0;}", "after": "public RefErrorPtg(){field_1_reserved = 0;}" }, { "index": 976, "before": "public boolean getFlagByBit(int bitmask) {return ((flags & bitmask) != 0);}", "after": "public bool GetFlagByBit(int bitmask){return ((flags & bitmask) != 0);}" }, { "index": 977, "before": "public UpdateAccountSendingEnabledResult updateAccountSendingEnabled(UpdateAccountSendingEnabledRequest request) {request = beforeClientExecution(request);return executeUpdateAccountSendingEnabled(request);}", "after": "public virtual UpdateAccountSendingEnabledResponse UpdateAccountSendingEnabled(UpdateAccountSendingEnabledRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAccountSendingEnabledRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAccountSendingEnabledResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 978, "before": "public AppCookieStickinessPolicy(String policyName, String cookieName) {setPolicyName(policyName);setCookieName(cookieName);}", "after": "public AppCookieStickinessPolicy(string policyName, string cookieName){_policyName = policyName;_cookieName = cookieName;}" }, { "index": 979, "before": "public GetAccountBalanceResult getAccountBalance(GetAccountBalanceRequest request) {request = beforeClientExecution(request);return executeGetAccountBalance(request);}", "after": "public virtual GetAccountBalanceResponse GetAccountBalance(GetAccountBalanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAccountBalanceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAccountBalanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 980, "before": "public DescribeConversionTasksResult describeConversionTasks(DescribeConversionTasksRequest request) {request = beforeClientExecution(request);return executeDescribeConversionTasks(request);}", "after": "public virtual DescribeConversionTasksResponse DescribeConversionTasks(DescribeConversionTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeConversionTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeConversionTasksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 981, "before": "public DescribeImagesResult describeImages() {return describeImages(new DescribeImagesRequest());}", "after": "public virtual DescribeImagesResponse DescribeImages(){return DescribeImages(new DescribeImagesRequest());}" }, { "index": 982, "before": "public void close() {_closed = true;}", "after": "public override void Close(){delegate1.Close();}" }, { "index": 983, "before": "public ListSignalingChannelsResult listSignalingChannels(ListSignalingChannelsRequest request) {request = beforeClientExecution(request);return executeListSignalingChannels(request);}", "after": "public virtual ListSignalingChannelsResponse ListSignalingChannels(ListSignalingChannelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSignalingChannelsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSignalingChannelsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 984, "before": "public MergeFacesRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"MergeFaces\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public MergeFacesRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"MergeFaces\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 985, "before": "public DetectTextResult detectText(DetectTextRequest request) {request = beforeClientExecution(request);return executeDetectText(request);}", "after": "public virtual DetectTextResponse DetectText(DetectTextRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectTextRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectTextResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 986, "before": "public DoubleBuffer get(double[] dst) {return get(dst, 0, dst.length);}", "after": "public virtual java.nio.DoubleBuffer get(double[] dst){return get(dst, 0, dst.Length);}" }, { "index": 987, "before": "public long getCreationTime() {return decodeTS(P_CTIME);}", "after": "public virtual long GetCreationTime(){return DecodeTS(P_CTIME);}" }, { "index": 988, "before": "public TreeFilter clone() {return new Binary(a.clone(), b.clone());}", "after": "public override TreeFilter Clone(){return new AndTreeFilter.Binary(a.Clone(), b.Clone());}" }, { "index": 989, "before": "public ByteBuffer putChar(char value) {int newPosition = position + SizeOf.CHAR;if (newPosition > limit) {throw new BufferOverflowException();}Memory.pokeShort(backingArray, offset + position, (short) value, order);position = newPosition;return this;}", "after": "public override java.nio.ByteBuffer putChar(char value){int newPosition = _position + libcore.io.SizeOf.CHAR;if (newPosition > _limit){throw new java.nio.BufferOverflowException();}libcore.io.Memory.pokeShort(backingArray, offset + _position, (short)value, _order);_position = newPosition;return this;}" }, { "index": 990, "before": "public String toString() {return String.format(\"Rect [(%d,%d)-(%d,%d): %dx%d]\", x, y, x + w, y + h, w, h);}", "after": "public override string ToString(){java.lang.StringBuilder sb = new java.lang.StringBuilder(32);sb.append(\"Rect(\");sb.append(left);sb.append(\", \");sb.append(top);sb.append(\" - \");sb.append(right);sb.append(\", \");sb.append(bottom);sb.append(\")\");return sb.ToString();}" }, { "index": 991, "before": "public static LongBuffer wrap(long[] array) {return wrap(array, 0, array.length);}", "after": "public static java.nio.LongBuffer wrap(long[] array_1){return wrap(array_1, 0, array_1.Length);}" }, { "index": 992, "before": "public CharsRef clone() {return new CharsRef(chars, offset, length);}", "after": "public object Clone(){return new CharsRef(chars, Offset, Length);}" }, { "index": 993, "before": "public SpanNearClauseFactory(IndexReader reader, String fieldName, BasicQueryFactory qf) {this.reader = reader;this.fieldName = fieldName;this.weightBySpanQuery = new HashMap<>();this.qf = qf;}", "after": "public SpanNearClauseFactory(IndexReader reader, string fieldName, BasicQueryFactory qf) {this.reader = reader;this.fieldName = fieldName;this.weightBySpanQuery = new JCG.Dictionary();this.qf = qf;}" }, { "index": 994, "before": "public BeginRecord clone() {return copy();}", "after": "public override Object Clone(){BeginRecord br = new BeginRecord();return br;}" }, { "index": 995, "before": "public int start() {return start(0);}", "after": "public int start(){return start(0);}" }, { "index": 996, "before": "public DescribeGameSessionQueuesResult describeGameSessionQueues(DescribeGameSessionQueuesRequest request) {request = beforeClientExecution(request);return executeDescribeGameSessionQueues(request);}", "after": "public virtual DescribeGameSessionQueuesResponse DescribeGameSessionQueues(DescribeGameSessionQueuesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGameSessionQueuesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGameSessionQueuesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 997, "before": "public SubmitAttachmentStateChangesResult submitAttachmentStateChanges(SubmitAttachmentStateChangesRequest request) {request = beforeClientExecution(request);return executeSubmitAttachmentStateChanges(request);}", "after": "public virtual SubmitAttachmentStateChangesResponse SubmitAttachmentStateChanges(SubmitAttachmentStateChangesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SubmitAttachmentStateChangesRequestMarshaller.Instance;options.ResponseUnmarshaller = SubmitAttachmentStateChangesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 998, "before": "public UnicodeString getString(int id ){return field_3_strings.get( id );}", "after": "public UnicodeString GetString(int id){return (UnicodeString)field_3_strings[id];}" }, { "index": 999, "before": "public BigInteger getSignificand() {return _significand;}", "after": "public BigInteger GetSignificand(){return _significand;}" }, { "index": 1000, "before": "public void join( AbstractEscherHolderRecord record ){rawDataContainer.concatenate(record.getRawData());}", "after": "public void Join(AbstractEscherHolderRecord record){rawDataContainer.Concatenate(record.RawData);}" }, { "index": 1001, "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 byte[] Grow(byte[] array, int minSize){Debug.Assert(minSize >= 0, \"size must be positive (got \" + minSize + \"): likely integer overflow?\");if (array.Length < minSize){byte[] newArray = new byte[Oversize(minSize, 1)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}" }, { "index": 1002, "before": "public boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;FlushInfo other = (FlushInfo) obj;if (estimatedSegmentSize != other.estimatedSegmentSize)return false;if (numDocs != other.numDocs)return false;return true;}", "after": "public override bool Equals(object obj){if (this == obj){return true;}if (obj == null){return false;}if (this.GetType() != obj.GetType()){return false;}FlushInfo other = (FlushInfo)obj;if (EstimatedSegmentSize != other.EstimatedSegmentSize){return false;}if (NumDocs != other.NumDocs){return false;}return true;}" }, { "index": 1003, "before": "public void copyRawTo(int[] b, int o) {b[o] = w1;b[o + 1] = w2;b[o + 2] = w3;b[o + 3] = w4;b[o + 4] = w5;}", "after": "public virtual void CopyRawTo(int[] b, int o){b[o] = w1;b[o + 1] = w2;b[o + 2] = w3;b[o + 3] = w4;b[o + 4] = w5;}" }, { "index": 1004, "before": "public ReadPipelineResult readPipeline(ReadPipelineRequest request) {request = beforeClientExecution(request);return executeReadPipeline(request);}", "after": "public virtual ReadPipelineResponse ReadPipeline(ReadPipelineRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReadPipelineRequestMarshaller.Instance;options.ResponseUnmarshaller = ReadPipelineResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1005, "before": "public BoostQueryNode(QueryNode query, float value) {if (query == null) {throw new QueryNodeError(new MessageImpl(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED, \"query\", \"null\"));}this.value = value;setLeaf(false);allocate();add(query);}", "after": "public BoostQueryNode(IQueryNode query, float value){if (query == null){throw new QueryNodeError(new Message(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED, \"query\", \"null\"));}this.value = value;IsLeaf = false;Allocate();Add(query);}" }, { "index": 1006, "before": "public void setFallbackAlgorithm(DiffAlgorithm alg) {fallback = alg;}", "after": "public virtual void SetFallbackAlgorithm(DiffAlgorithm alg){fallback = alg;}" }, { "index": 1007, "before": "public void add(Transition t) {find(t.min).starts.add(t);find(1+t.max).ends.add(t);}", "after": "public void Add(Transition t){Find(t.min).starts.Add(t);Find(1 + t.max).ends.Add(t);}" }, { "index": 1008, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\" [FEATURE FORMULA ERRORS]\\n\");buffer.append(\" checkCalculationErrors = \");buffer.append(\" checkEmptyCellRef = \");buffer.append(\" checkNumbersAsText = \");buffer.append(\" checkInconsistentRanges = \");buffer.append(\" checkInconsistentFormulas = \");buffer.append(\" checkDateTimeFormats = \");buffer.append(\" checkUnprotectedFormulas = \");buffer.append(\" performDataValidation = \");buffer.append(\" [/FEATURE FORMULA ERRORS]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\" [FEATURE FORMULA ERRORS]\\n\");buffer.Append(\" checkCalculationErrors = \");buffer.Append(\" checkEmptyCellRef = \");buffer.Append(\" checkNumbersAsText = \");buffer.Append(\" checkInconsistentRanges = \");buffer.Append(\" checkInconsistentFormulas = \");buffer.Append(\" checkDateTimeFormats = \");buffer.Append(\" checkUnprotectedFormulas = \");buffer.Append(\" performDataValidation = \");buffer.Append(\" [/FEATURE FORMULA ERRORS]\\n\");return buffer.ToString();}" }, { "index": 1009, "before": "public void execute(Lexer lexer) {lexer.setType(type);}", "after": "public virtual void Execute(Lexer lexer){lexer.Type = type;}" }, { "index": 1010, "before": "public UpgradePublishedSchemaResult upgradePublishedSchema(UpgradePublishedSchemaRequest request) {request = beforeClientExecution(request);return executeUpgradePublishedSchema(request);}", "after": "public virtual UpgradePublishedSchemaResponse UpgradePublishedSchema(UpgradePublishedSchemaRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpgradePublishedSchemaRequestMarshaller.Instance;options.ResponseUnmarshaller = UpgradePublishedSchemaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1011, "before": "public int readRecordSID() {readPlain(buffer, 0, LittleEndianConsts.SHORT_SIZE);int sid = LittleEndian.getUShort(buffer, 0);shouldSkipEncryptionOnCurrentRecord = isNeverEncryptedRecord(sid);return sid;}", "after": "public int ReadRecordSID(){int sid = _le.ReadUShort();_rc4.SkipTwoBytes();_rc4.StartRecord(sid);return sid;}" }, { "index": 1012, "before": "public CreateImageBuilderStreamingURLResult createImageBuilderStreamingURL(CreateImageBuilderStreamingURLRequest request) {request = beforeClientExecution(request);return executeCreateImageBuilderStreamingURL(request);}", "after": "public virtual CreateImageBuilderStreamingURLResponse CreateImageBuilderStreamingURL(CreateImageBuilderStreamingURLRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateImageBuilderStreamingURLRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateImageBuilderStreamingURLResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1013, "before": "public SheetIdentifier(String bookName, NameIdentifier sheetIdentifier) {_bookName = bookName;_sheetIdentifier = sheetIdentifier;}", "after": "public SheetIdentifier(String bookName, NameIdentifier sheetIdentifier){_bookName = bookName;_sheetIdentifier = sheetIdentifier;}" }, { "index": 1014, "before": "public boolean equals( Object o ) {return o instanceof PortugueseStemmer;}", "after": "public override bool Equals(object o){return o is PortugueseStemmer;}" }, { "index": 1015, "before": "public PasswordRecord clone() {return copy();}", "after": "public override Object Clone(){return new PasswordRecord(field_1_password);}" }, { "index": 1016, "before": "public DescribeTableRequest(String tableName) {setTableName(tableName);}", "after": "public DescribeTableRequest(string tableName){_tableName = tableName;}" }, { "index": 1017, "before": "public ModifyCacheParameterGroupResult modifyCacheParameterGroup(ModifyCacheParameterGroupRequest request) {request = beforeClientExecution(request);return executeModifyCacheParameterGroup(request);}", "after": "public virtual ModifyCacheParameterGroupResponse ModifyCacheParameterGroup(ModifyCacheParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyCacheParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyCacheParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1018, "before": "public E set(int location, E object) {ListIterator it = listIterator(location);if (!it.hasNext()) {throw new IndexOutOfBoundsException();}E result = it.next();it.set(object);return result;}", "after": "public override E set(int location, E @object){java.util.ListIterator it = listIterator(location);if (!it.hasNext()){throw new System.IndexOutOfRangeException();}E result = it.next();it.set(@object);return result;}" }, { "index": 1019, "before": "public String toFormulaString() {return NumberToTextConverter.toText(field_1_value);}", "after": "public override String ToFormulaString(){return NumberToTextConverter.ToText(Value);}" }, { "index": 1020, "before": "public ListBootstrapActionsResult listBootstrapActions(ListBootstrapActionsRequest request) {request = beforeClientExecution(request);return executeListBootstrapActions(request);}", "after": "public virtual ListBootstrapActionsResponse ListBootstrapActions(ListBootstrapActionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListBootstrapActionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListBootstrapActionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1021, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(_wStyle);out.writeShort(_cLine);out.writeShort(_dxMin);StringUtil.writeUnicodeString(out, _str);if(_unused != null) {out.writeByte(_unused);}}", "after": "public void Serialize(ILittleEndianOutput out1) {out1.WriteShort(_wStyle);out1.WriteShort(_cLine);out1.WriteShort(_dxMin);StringUtil.WriteUnicodeString(out1, _str);out1.WriteByte(_unused);}" }, { "index": 1022, "before": "public SynonymFilter(TokenStream input, SynonymMap synonyms, boolean ignoreCase) {super(input);this.synonyms = synonyms;this.ignoreCase = ignoreCase;this.fst = synonyms.fst;if (fst == null) {throw new IllegalArgumentException(\"fst must be non-null\");}this.fstReader = fst.getBytesReader();rollBufferSize = 1+synonyms.maxHorizontalContext;futureInputs = new PendingInput[rollBufferSize];futureOutputs = new PendingOutputs[rollBufferSize];for(int pos=0;pos();}", "after": "public SynonymFilter(TokenStream input, SynonymMap synonyms, bool ignoreCase): base(input){termAtt = AddAttribute();posIncrAtt = AddAttribute();posLenAtt = AddAttribute();typeAtt = AddAttribute();offsetAtt = AddAttribute();this.synonyms = synonyms;this.ignoreCase = ignoreCase;this.fst = synonyms.Fst;if (fst == null){throw new System.ArgumentException(\"fst must be non-null\");}this.fstReader = fst.GetBytesReader();rollBufferSize = 1 + synonyms.MaxHorizontalContext;futureInputs = new PendingInput[rollBufferSize];futureOutputs = new PendingOutputs[rollBufferSize];for (int pos = 0; pos < rollBufferSize; pos++){futureInputs[pos] = new PendingInput();futureOutputs[pos] = new PendingOutputs();}scratchArc = new FST.Arc();}" }, { "index": 1023, "before": "public CreateApiResult createApi(CreateApiRequest request) {request = beforeClientExecution(request);return executeCreateApi(request);}", "after": "public virtual CreateApiResponse CreateApi(CreateApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateApiRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateApiResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1024, "before": "public IndexOutput createOutput(String name, IOContext context) throws IOException {ensureOpen();if (context.context != Context.MERGE || context.mergeInfo.estimatedMergeBytes < minBytesDirect) {return delegate.createOutput(name, context);} else {return new NativeUnixIndexOutput(getDirectory().resolve(name), name, mergeBufferSize);}}", "after": "public IndexOutput createOutput(string name, IOContext context) throws IOException{ensureOpen();if (context.context != Context.MERGE || context.mergeInfo.estimatedMergeBytes < minBytesDirect){return @delegate.createOutput(name, context);}else{ensureCanWrite(name);return new NativeUnixIndexOutput(new File(Directory, name), mergeBufferSize);}}" }, { "index": 1025, "before": "public void drawArc(int x, int y, int width, int height,int startAngle, int arcAngle){if (logger.check( POILogger.WARN ))logger.log(POILogger.WARN,\"drawArc not supported\");}", "after": "public void DrawArc(int x, int y, int width, int height,int startAngle, int arcAngle){if (Logger.Check(POILogger.WARN))Logger.Log(POILogger.WARN, \"DrawArc not supported\");}" }, { "index": 1026, "before": "public UpdateUserSettingsResult updateUserSettings(UpdateUserSettingsRequest request) {request = beforeClientExecution(request);return executeUpdateUserSettings(request);}", "after": "public virtual UpdateUserSettingsResponse UpdateUserSettings(UpdateUserSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateUserSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateUserSettingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1027, "before": "public DeleteDiskSnapshotResult deleteDiskSnapshot(DeleteDiskSnapshotRequest request) {request = beforeClientExecution(request);return executeDeleteDiskSnapshot(request);}", "after": "public virtual DeleteDiskSnapshotResponse DeleteDiskSnapshot(DeleteDiskSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDiskSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDiskSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1028, "before": "public ColumnInfoRecord() {setColumnWidth(2275);_options = 2;_xfIndex = 0x0f;field_6_reserved = 2; }", "after": "public ColumnInfoRecord(){this.ColumnWidth = 2275;_options = 2;_xf_index = 0x0f;field_6_reserved = 2; }" }, { "index": 1029, "before": "public final long getLong(int index) {checkIndex(index, SizeOf.LONG);return Memory.peekLong(backingArray, offset + index, order);}", "after": "public sealed override long getLong(int index){checkIndex(index, libcore.io.SizeOf.LONG);return libcore.io.Memory.peekLong(backingArray, offset + index, _order);}" }, { "index": 1030, "before": "public DeleteKnownHostKeysResult deleteKnownHostKeys(DeleteKnownHostKeysRequest request) {request = beforeClientExecution(request);return executeDeleteKnownHostKeys(request);}", "after": "public virtual DeleteKnownHostKeysResponse DeleteKnownHostKeys(DeleteKnownHostKeysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteKnownHostKeysRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteKnownHostKeysResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1031, "before": "public DeleteSigningCertificateRequest(String certificateId) {setCertificateId(certificateId);}", "after": "public DeleteSigningCertificateRequest(string certificateId){_certificateId = certificateId;}" }, { "index": 1032, "before": "public StopProcessingJobResult stopProcessingJob(StopProcessingJobRequest request) {request = beforeClientExecution(request);return executeStopProcessingJob(request);}", "after": "public virtual StopProcessingJobResponse StopProcessingJob(StopProcessingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopProcessingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopProcessingJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1033, "before": "public TermsEnum getTermsEnum(Terms terms) throws IOException {switch(type) {case NONE:return TermsEnum.EMPTY;case ALL:return terms.iterator();case SINGLE:return new SingleTermsEnum(terms.iterator(), term);case NORMAL:return terms.intersect(this, null);default:throw new RuntimeException(\"unhandled case\");}}", "after": "public virtual TermsEnum GetTermsEnum(Terms terms){switch (Type){case Lucene.Net.Util.Automaton.CompiledAutomaton.AUTOMATON_TYPE.NONE:return TermsEnum.EMPTY;case Lucene.Net.Util.Automaton.CompiledAutomaton.AUTOMATON_TYPE.ALL:return terms.GetIterator(null);case Lucene.Net.Util.Automaton.CompiledAutomaton.AUTOMATON_TYPE.SINGLE:return new SingleTermsEnum(terms.GetIterator(null), Term);case Lucene.Net.Util.Automaton.CompiledAutomaton.AUTOMATON_TYPE.PREFIX:return new PrefixTermsEnum(terms.GetIterator(null), Term);case Lucene.Net.Util.Automaton.CompiledAutomaton.AUTOMATON_TYPE.NORMAL:return terms.Intersect(this, null);default:throw new Exception(\"unhandled case\");}}" }, { "index": 1034, "before": "public void grow() {costs = ArrayUtil.grow(costs, 1+count);lastRightID = ArrayUtil.grow(lastRightID, 1+count);backPos = ArrayUtil.grow(backPos, 1+count);backWordPos = ArrayUtil.grow(backWordPos, 1+count);backIndex = ArrayUtil.grow(backIndex, 1+count);backID = ArrayUtil.grow(backID, 1+count);final Type[] newBackType = new Type[backID.length];System.arraycopy(backType, 0, newBackType, 0, backType.length);backType = newBackType;}", "after": "public void Grow(){costs = ArrayUtil.Grow(costs, 1 + count);lastRightID = ArrayUtil.Grow(lastRightID, 1 + count);backPos = ArrayUtil.Grow(backPos, 1 + count);backIndex = ArrayUtil.Grow(backIndex, 1 + count);backID = ArrayUtil.Grow(backID, 1 + count);JapaneseTokenizerType[] newBackType = new JapaneseTokenizerType[backID.Length];System.Array.Copy(backType, 0, newBackType, 0, backType.Length);backType = newBackType;}" }, { "index": 1035, "before": "public int get(final int index){if (index >= _limit){throw new IndexOutOfBoundsException(index + \" not accessible in a list of length \" + _limit);}return _array[ index ];}", "after": "public int Get(int index){if (index >= _limit){throw new IndexOutOfRangeException(index + \" not accessible in a list of length \" + _limit);}return _array[index];}" }, { "index": 1036, "before": "public LongBuffer slice() {return new ReadWriteLongArrayBuffer(remaining(), backingArray, offset + position);}", "after": "public override java.nio.LongBuffer slice(){return new java.nio.ReadWriteLongArrayBuffer(remaining(), backingArray, offset +_position);}" }, { "index": 1037, "before": "public ListProblemsResult listProblems(ListProblemsRequest request) {request = beforeClientExecution(request);return executeListProblems(request);}", "after": "public virtual ListProblemsResponse ListProblems(ListProblemsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListProblemsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListProblemsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1038, "before": "public static double pmt(double r, double n, double p, double f, boolean t) {double retval = 0;if (r == 0) {retval = -1*(f+p)/n;}else {double r1 = r + 1;retval = ( f + p * Math.pow(r1, n) ) * r/((t ? r1 : 1) * (1 - Math.pow(r1, n)));}return retval;}", "after": "public static double pmt(double r, double n, double p, double f, bool t){double retval = 0;if (r == 0){retval = -1 * (f + p) / n;}else{double r1 = r + 1;retval = (f + p * Math.Pow(r1, n)) * r/((t ? r1 : 1) * (1 - Math.Pow(r1, n)));}return retval;}" }, { "index": 1039, "before": "public PrintGridlinesRecord clone() {return copy();}", "after": "public override Object Clone(){PrintGridlinesRecord rec = new PrintGridlinesRecord();rec.field_1_print_gridlines = field_1_print_gridlines;return rec;}" }, { "index": 1040, "before": "public HSSFCellStyle getColumnStyle(int column) {short styleIndex = _sheet.getXFIndexForColAt((short) column);if (styleIndex == 0xf) {return null;}ExtendedFormatRecord xf = _book.getExFormatAt(styleIndex);return new HSSFCellStyle(styleIndex, xf, _book);}", "after": "public NPOI.SS.UserModel.ICellStyle GetColumnStyle(int column){short styleIndex = _sheet.GetXFIndexForColAt((short)column);if (styleIndex == 0xf){return null;}ExtendedFormatRecord xf = book.GetExFormatAt(styleIndex);return new HSSFCellStyle(styleIndex, xf, book);}" }, { "index": 1041, "before": "public Query makeLuceneQueryField(String fieldName, BasicQueryFactory qf){Query q = makeLuceneQueryFieldNoBoost(fieldName, qf);if (isWeighted()) {q = new BoostQuery(q, getWeight()); }return q;}", "after": "public virtual Search.Query MakeLuceneQueryField(string fieldName, BasicQueryFactory qf){Search.Query q = MakeLuceneQueryFieldNoBoost(fieldName, qf);if (IsWeighted){q.Boost=(Weight * q.Boost); }return q;}" }, { "index": 1042, "before": "public double getPrecisionAt(int n) {if (n<1 || n>MAX_POINTS) {throw new IllegalArgumentException(\"n=\"+n+\" - but it must be in [1,\"+MAX_POINTS+\"] range!\");}if (n>numPoints) {return (numPoints * pAt[(int)numPoints])/n;}return pAt[n];}", "after": "public virtual double GetPrecisionAt(int n){if (n < 1 || n > MAX_POINTS){throw new ArgumentException(\"n=\" + n + \" - but it must be in [1,\" + MAX_POINTS + \"] range!\");}if (n > numPoints){return (numPoints * pAt[(int)numPoints]) / n;}return pAt[n];}" }, { "index": 1043, "before": "public DescribeEngineDefaultParametersRequest(String dBParameterGroupFamily) {setDBParameterGroupFamily(dBParameterGroupFamily);}", "after": "public DescribeEngineDefaultParametersRequest(string dbParameterGroupFamily){_dbParameterGroupFamily = dbParameterGroupFamily;}" }, { "index": 1044, "before": "public DeleteClientCertificateResult deleteClientCertificate(DeleteClientCertificateRequest request) {request = beforeClientExecution(request);return executeDeleteClientCertificate(request);}", "after": "public virtual DeleteClientCertificateResponse DeleteClientCertificate(DeleteClientCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteClientCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteClientCertificateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1045, "before": "public int compareTo(CharBuffer otherBuffer) {int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining(): otherBuffer.remaining();int thisPos = position;int otherPos = otherBuffer.position;char thisByte, otherByte;while (compareRemaining > 0) {thisByte = get(thisPos);otherByte = otherBuffer.get(otherPos);if (thisByte != otherByte) {return thisByte < otherByte ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}", "after": "public virtual int compareTo(java.nio.CharBuffer otherBuffer){int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining();int thisPos = _position;int otherPos = otherBuffer._position;char thisByte;char otherByte;while (compareRemaining > 0){thisByte = get(thisPos);otherByte = otherBuffer.get(otherPos);if (thisByte != otherByte){return thisByte < otherByte ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}" }, { "index": 1046, "before": "public byte readByte(){return _in.readByte();}", "after": "public int ReadByte(){return _in.ReadByte();}" }, { "index": 1047, "before": "public SendBounceResult sendBounce(SendBounceRequest request) {request = beforeClientExecution(request);return executeSendBounce(request);}", "after": "public virtual SendBounceResponse SendBounce(SendBounceRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendBounceRequestMarshaller.Instance;options.ResponseUnmarshaller = SendBounceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1048, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1) {double dn;try {ValueEval ve1 = OperandResolver.getSingleValue(arg1, srcRowIndex, srcColumnIndex);dn = OperandResolver.coerceValueToDouble(ve1);} catch (EvaluationException e1) {return ErrorEval.VALUE_INVALID;}if (dn < 0 || dn > 1) { return ErrorEval.NUM_ERROR;}double result;try {double[] ds = ValueCollector.collectValues(arg0);int N = ds.length;if (N == 0 || N > 8191) {return ErrorEval.NUM_ERROR;}double n = (N - 1) * dn + 1;if (n == 1d) {result = StatsLib.kthSmallest(ds, 1);} else if (Double.compare(n, N) == 0) {result = StatsLib.kthLargest(ds, 1);} else {int k = (int) n;double d = n - k;result = StatsLib.kthSmallest(ds, k) + d* (StatsLib.kthSmallest(ds, k + 1) - StatsLib.kthSmallest(ds, k));}NumericFunction.checkValue(result);} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1){double dn;try{ValueEval ve1 = OperandResolver.GetSingleValue(arg1, srcRowIndex, srcColumnIndex);dn = OperandResolver.CoerceValueToDouble(ve1);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}if (dn < 0 || dn > 1){ return ErrorEval.NUM_ERROR;}double result;try{double[] ds = NPOI.SS.Formula.Functions.AggregateFunction.ValueCollector.CollectValues(arg0);int N = ds.Length;if (N == 0 || N > 8191){return ErrorEval.NUM_ERROR;}double n = (N - 1) * dn + 1;if (n == 1d){result = StatsLib.kthSmallest(ds, 1);}else if (n == N){result = StatsLib.kthLargest(ds, 1);}else{int k = (int)n;double d = n - k;result = StatsLib.kthSmallest(ds, k) + d* (StatsLib.kthSmallest(ds, k + 1) - StatsLib.kthSmallest(ds, k));}NumericFunction.CheckValue(result);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}" }, { "index": 1049, "before": "public int getIndexOfFormattingRun(int index) {FormatRun r = _string.getFormatRun(index);return r.getCharacterPos();}", "after": "public int GetIndexOfFormattingRun(int index){UnicodeString.FormatRun r = _string.GetFormatRun(index);return r.CharacterPos;}" }, { "index": 1050, "before": "public void getEntryObjectId(MutableObjectId out) {out.fromRaw(idBuffer(), idOffset());}", "after": "public virtual void GetEntryObjectId(MutableObjectId @out){@out.FromRaw(IdBuffer, IdOffset);}" }, { "index": 1051, "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 float[] Grow(float[] array, int minSize){Debug.Assert(minSize >= 0, \"size must be positive (got \" + minSize + \"): likely integer overflow?\");if (array.Length < minSize){float[] newArray = new float[Oversize(minSize, RamUsageEstimator.NUM_BYTES_SINGLE)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}" }, { "index": 1052, "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 string Get(string name, string dflt){string[] vals;object temp;if (valByRound.TryGetValue(name, out temp) && temp != null){vals = (string[])temp;return vals[roundNumber % vals.Length];}string sval;if (!props.TryGetValue(name, out sval)){sval = dflt;}if (sval == null){return null;}if (sval.IndexOf(':') < 0){return sval;}else if (sval.IndexOf(\":\\\\\", StringComparison.Ordinal) >= 0 || sval.IndexOf(\":/\", StringComparison.Ordinal) >= 0){return sval;}int k = sval.IndexOf(':');string colName = sval.Substring(0, k - 0);sval = sval.Substring(k + 1);colForValByRound[name] = colName;vals = PropToStringArray(sval);valByRound[name] = vals;return vals[roundNumber % vals.Length];}" }, { "index": 1053, "before": "public GroupingSearch setCaching(int maxDocsToCache, boolean cacheScores) {this.maxDocsToCache = maxDocsToCache;this.maxCacheRAMMB = null;this.cacheScores = cacheScores;return this;}", "after": "public virtual GroupingSearch SetCaching(int maxDocsToCache, bool cacheScores){this.maxDocsToCache = maxDocsToCache;this.maxCacheRAMMB = null;this.cacheScores = cacheScores;return this;}" }, { "index": 1054, "before": "public boolean isValidTermOrPhrase( final List phraseCandidate ){if( !terminal ) return false;if( phraseCandidate.size() == 1 ) return true;int pos = phraseCandidate.get( 0 ).getPosition();for( int i = 1; i < phraseCandidate.size(); i++ ){int nextPos = phraseCandidate.get( i ).getPosition();if( Math.abs( nextPos - pos - 1 ) > slop ) return false;pos = nextPos;}return true;}", "after": "public virtual bool IsValidTermOrPhrase(IList phraseCandidate){if (!terminal) return false;if (phraseCandidate.Count == 1) return true;int pos = phraseCandidate[0].Position;for (int i = 1; i < phraseCandidate.Count; i++){int nextPos = phraseCandidate[i].Position;if (Math.Abs(nextPos - pos - 1) > slop) return false;pos = nextPos;}return true;}" }, { "index": 1055, "before": "public Run startWorkflowExecution(StartWorkflowExecutionRequest request) {request = beforeClientExecution(request);return executeStartWorkflowExecution(request);}", "after": "public virtual StartWorkflowExecutionResponse StartWorkflowExecution(StartWorkflowExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartWorkflowExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartWorkflowExecutionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1056, "before": "public char[] nextKey() {goNext();return keys[lastPos];}", "after": "public virtual char[] NextKey(){GoNext();return outerInstance.keys[lastPos];}" }, { "index": 1057, "before": "public ContainsResult contains(BytesRef value) {int hash = hashFunction.hash(value);if (hash < 0) {hash = hash * -1;}return mayContainValue(hash);}", "after": "public virtual ContainsResult Contains(BytesRef value){var hash = _hashFunction.Hash(value);if (hash < 0){hash = hash*-1;}return MayContainValue(hash);}" }, { "index": 1058, "before": "public GetMethodResponseResult getMethodResponse(GetMethodResponseRequest request) {request = beforeClientExecution(request);return executeGetMethodResponse(request);}", "after": "public virtual GetMethodResponseResponse GetMethodResponse(GetMethodResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMethodResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMethodResponseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1059, "before": "public void setValue(boolean value) {_value = value ? 1 : 0;_isError = false;}", "after": "public void SetValue(bool value){_value = value ? 1 : 0;_isError = false;}" }, { "index": 1060, "before": "public synchronized E elementAt(int location) {if (location < elementCount) {return (E) elementData[location];}throw arrayIndexOutOfBoundsException(location, elementCount);}", "after": "public virtual E elementAt(int location){lock (this){if (location < elementCount){return (E)elementData[location];}throw arrayIndexOutOfBoundsException(location, elementCount);}}" }, { "index": 1061, "before": "public void set(int index, long value) {final int o = index >>> 3;final int b = index & 7;final int shift = b << 3;blocks[o] = (blocks[o] & ~(255L << shift)) | (value << shift);}", "after": "public override void Set(int index, long value){int o = (int)((uint)index >> 3);int b = index & 7;int shift = b << 3;blocks[o] = (blocks[o] & ~(255L << shift)) | (value << shift);}" }, { "index": 1062, "before": "public IterationRecord clone() {return copy();}", "after": "public override Object Clone(){return new IterationRecord(Iteration);}" }, { "index": 1063, "before": "public boolean requiresCommitBody() {return a.requiresCommitBody();}", "after": "public override bool RequiresCommitBody(){return a.RequiresCommitBody();}" }, { "index": 1064, "before": "public UpdateTrafficPolicyCommentResult updateTrafficPolicyComment(UpdateTrafficPolicyCommentRequest request) {request = beforeClientExecution(request);return executeUpdateTrafficPolicyComment(request);}", "after": "public virtual UpdateTrafficPolicyCommentResponse UpdateTrafficPolicyComment(UpdateTrafficPolicyCommentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTrafficPolicyCommentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTrafficPolicyCommentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1065, "before": "public UpdatePrimaryEmailAddressResult updatePrimaryEmailAddress(UpdatePrimaryEmailAddressRequest request) {request = beforeClientExecution(request);return executeUpdatePrimaryEmailAddress(request);}", "after": "public virtual UpdatePrimaryEmailAddressResponse UpdatePrimaryEmailAddress(UpdatePrimaryEmailAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePrimaryEmailAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePrimaryEmailAddressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1066, "before": "public static Pattern compile(String pattern) {return new Pattern(pattern, 0);}", "after": "public static java.util.regex.Pattern compile(string pattern_1){return new java.util.regex.Pattern(pattern_1, 0);}" }, { "index": 1067, "before": "public static int update(int hash, int value) {final int c1 = 0xCC9E2D51;final int c2 = 0x1B873593;final int r1 = 15;final int r2 = 13;final int m = 5;final int n = 0xE6546B64;int k = value;k = k * c1;k = (k << r1) | (k >>> (32 - r1));k = k * c2;hash = hash ^ k;hash = (hash << r2) | (hash >>> (32 - r2));hash = hash * m + n;return hash;}", "after": "public static int Update(int hash, int value){int c1 = unchecked((int)(0xCC9E2D51));int c2 = unchecked((int)(0x1B873593));int r1 = 15;int r2 = 13;int m = 5;int n = unchecked((int)(0xE6546B64));int k = value;k = k * c1;k = (k << r1) | ((int)(((uint)k) >> (32 - r1)));k = k * c2;hash = hash ^ k;hash = (hash << r2) | ((int)(((uint)hash) >> (32 - r2)));hash = hash * m + n;return hash;}" }, { "index": 1068, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getHorizontalHold());out.writeShort(getVerticalHold());out.writeShort(getWidth());out.writeShort(getHeight());out.writeShort(getOptions());out.writeShort(getActiveSheetIndex());out.writeShort(getFirstVisibleTab());out.writeShort(getNumSelectedTabs());out.writeShort(getTabWidthRatio());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(HorizontalHold);out1.WriteShort(VerticalHold);out1.WriteShort(Width);out1.WriteShort(Height);out1.WriteShort(Options);out1.WriteShort(ActiveSheetIndex);out1.WriteShort(FirstVisibleTab);out1.WriteShort(NumSelectedTabs);out1.WriteShort(TabWidthRatio);}" }, { "index": 1069, "before": "public boolean lessThan(ShardRef first, ShardRef second) {assert first != second;final FieldDoc firstFD = (FieldDoc) shardHits[first.shardIndex][first.hitIndex];final FieldDoc secondFD = (FieldDoc) shardHits[second.shardIndex][second.hitIndex];for(int compIDX=0;compIDX second.ShardIndex){return false;}else{Debug.Assert(first.HitIndex != second.HitIndex);return first.HitIndex < second.HitIndex;}}" }, { "index": 1070, "before": "public static int UTF8toUTF16(BytesRef bytesRef, char[] chars) {return UTF8toUTF16(bytesRef.bytes, bytesRef.offset, bytesRef.length, chars);}", "after": "public static void UTF8toUTF16(BytesRef bytesRef, CharsRef chars){UTF8toUTF16(bytesRef.Bytes, bytesRef.Offset, bytesRef.Length, chars);}" }, { "index": 1071, "before": "public Trie optimize(Trie orig) {List cmds = orig.cmds;List rows = new ArrayList<>();List orows = orig.rows;int remap[] = new int[orows.size()];Arrays.fill(remap, 1);for (int j = orows.size() - 1; j >= 0; j--) {if (eat(orows.get(j), remap)) {remap[j] = 0;}}Arrays.fill(remap, -1);rows = removeGaps(orig.root, orows, new ArrayList(), remap);return new Trie(orig.forward, remap[orig.root], cmds, rows);}", "after": "public override Trie Optimize(Trie orig){IList cmds = orig.cmds;IList rows = new List();IList orows = orig.rows;int[] remap = new int[orows.Count];Arrays.Fill(remap, 1);for (int j = orows.Count - 1; j >= 0; j--){if (Eat(orows[j], remap)){remap[j] = 0;}}Arrays.Fill(remap, -1);rows = RemoveGaps(orig.root, orows, new List(), remap);return new Trie(orig.forward, remap[orig.root], cmds, rows);}" }, { "index": 1072, "before": "public DataValidationConstraint createCustomConstraint(String formula) {return DVConstraint.createCustomFormulaConstraint(formula);}", "after": "public IDataValidationConstraint CreateCustomConstraint(String formula){return DVConstraint.CreateCustomFormulaConstraint(formula);}" }, { "index": 1073, "before": "public ByteBuffer putInt(int index, int value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putInt(int index, int value){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 1074, "before": "public DescribeLoadBalancerPolicyTypesResult describeLoadBalancerPolicyTypes() {return describeLoadBalancerPolicyTypes(new DescribeLoadBalancerPolicyTypesRequest());}", "after": "public virtual DescribeLoadBalancerPolicyTypesResponse DescribeLoadBalancerPolicyTypes(){return DescribeLoadBalancerPolicyTypes(new DescribeLoadBalancerPolicyTypesRequest());}" }, { "index": 1075, "before": "public NIOFSIndexInput clone() {NIOFSIndexInput clone = (NIOFSIndexInput)super.clone();clone.isClone = true;return clone;}", "after": "public override object Clone(){NIOFSIndexInput clone = (NIOFSIndexInput)base.Clone();clone.isClone = true;return clone;}" }, { "index": 1076, "before": "public long getTotalSLLATNLookaheadOps() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.length; i++) {k += decisions[i].SLL_ATNTransitions;}return k;}", "after": "public long getTotalSLLATNLookaheadOps(){DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.Length; i++){k += decisions[i].SLL_ATNTransitions;}return k;}" }, { "index": 1077, "before": "public UpdateEndpointResult updateEndpoint(UpdateEndpointRequest request) {request = beforeClientExecution(request);return executeUpdateEndpoint(request);}", "after": "public virtual UpdateEndpointResponse UpdateEndpoint(UpdateEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1078, "before": "public GetEmailChannelResult getEmailChannel(GetEmailChannelRequest request) {request = beforeClientExecution(request);return executeGetEmailChannel(request);}", "after": "public virtual GetEmailChannelResponse GetEmailChannel(GetEmailChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEmailChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEmailChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1079, "before": "public ListPhoneNumberOrdersResult listPhoneNumberOrders(ListPhoneNumberOrdersRequest request) {request = beforeClientExecution(request);return executeListPhoneNumberOrders(request);}", "after": "public virtual ListPhoneNumberOrdersResponse ListPhoneNumberOrders(ListPhoneNumberOrdersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPhoneNumberOrdersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPhoneNumberOrdersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1080, "before": "public UpdateBuildResult updateBuild(UpdateBuildRequest request) {request = beforeClientExecution(request);return executeUpdateBuild(request);}", "after": "public virtual UpdateBuildResponse UpdateBuild(UpdateBuildRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBuildRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBuildResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1081, "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() );int remainingBytes = 16;LittleEndian.putInt( data, offset + 4, remainingBytes );LittleEndian.putInt( data, offset + 8, field_1_rectX1 );LittleEndian.putInt( data, offset + 12, field_2_rectY1 );LittleEndian.putInt( data, offset + 16, field_3_rectX2 );LittleEndian.putInt( data, offset + 20, field_4_rectY2 );listener.afterRecordSerialize( offset + getRecordSize(), getRecordId(), offset + getRecordSize(), this );return 8 + 16;}", "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);int remainingBytes = 16;LittleEndian.PutInt(data, offset + 4, remainingBytes);LittleEndian.PutInt(data, offset + 8, field_1_rectX1);LittleEndian.PutInt(data, offset + 12, field_2_rectY1);LittleEndian.PutInt(data, offset + 16, field_3_rectX2);LittleEndian.PutInt(data, offset + 20, field_4_rectY2);listener.AfterRecordSerialize(offset + RecordSize, RecordId, offset + RecordSize, this);return 8 + 16;}" }, { "index": 1082, "before": "public CleanCommand setDryRun(boolean dryRun) {this.dryRun = dryRun;return this;}", "after": "public virtual NGit.Api.CleanCommand SetDryRun(bool dryRun){this.dryRun = dryRun;return this;}" }, { "index": 1083, "before": "public DescribeClusterVersionsResult describeClusterVersions(DescribeClusterVersionsRequest request) {request = beforeClientExecution(request);return executeDescribeClusterVersions(request);}", "after": "public virtual DescribeClusterVersionsResponse DescribeClusterVersions(DescribeClusterVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterVersionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1084, "before": "public DescribeWorkspacesResult describeWorkspaces(DescribeWorkspacesRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspaces(request);}", "after": "public virtual DescribeWorkspacesResponse DescribeWorkspaces(DescribeWorkspacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkspacesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkspacesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1085, "before": "public void copyRawTo(int[] b, int o) {b[o] = w1;b[o + 1] = w2;b[o + 2] = w3;b[o + 3] = w4;b[o + 4] = 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": 1086, "before": "public SetStackPolicyResult setStackPolicy(SetStackPolicyRequest request) {request = beforeClientExecution(request);return executeSetStackPolicy(request);}", "after": "public virtual SetStackPolicyResponse SetStackPolicy(SetStackPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetStackPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = SetStackPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1087, "before": "public String toString() {StringBuilder s = new StringBuilder();append(s, oldRef, \"CREATE\"); s.append(' ');append(s, newRef, \"DELETE\"); s.append(' ').append(getRefName());s.append(' ').append(getResult());if (getMessage() != null) {s.append(' ').append(getMessage());}return s.toString();}", "after": "public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append(\"TrackingRefUpdate[\");sb.Append(remoteName);sb.Append(\" -> \");sb.Append(localName);if (forceUpdate){sb.Append(\" (forced)\");}sb.Append(\" \");sb.Append(oldObjectId == null ? string.Empty : oldObjectId.Abbreviate(7).Name);sb.Append(\"..\");sb.Append(newObjectId == null ? string.Empty : newObjectId.Abbreviate(7).Name);sb.Append(\"]\");return sb.ToString();}" }, { "index": 1088, "before": "public short getXFAt(int coffset) {return field_3_rks[coffset].xf;}", "after": "public short GetXFAt(int coffset){return field_3_rks[coffset].xf;}" }, { "index": 1089, "before": "public ByteBuffer put(byte[] src, int srcOffset, int byteCount) {Arrays.checkOffsetAndCount(src.length, srcOffset, byteCount);if (byteCount > remaining()) {throw new BufferOverflowException();}for (int i = srcOffset; i < srcOffset + byteCount; ++i) {put(src[i]);}return this;}", "after": "public virtual java.nio.ByteBuffer put(byte[] src, int srcOffset, int byteCount){java.util.Arrays.checkOffsetAndCount(src.Length, srcOffset, byteCount);if (byteCount > remaining()){throw new java.nio.BufferOverflowException();}{for (int i = srcOffset; i < srcOffset + byteCount; ++i){put(src[i]);}}return this;}" }, { "index": 1090, "before": "public ReceiveMessageResult receiveMessage(String queueUrl) {return receiveMessage(new ReceiveMessageRequest().withQueueUrl(queueUrl));}", "after": "public virtual ReceiveMessageResponse ReceiveMessage(string queueUrl){var request = new ReceiveMessageRequest();request.QueueUrl = queueUrl;return ReceiveMessage(request);}" }, { "index": 1091, "before": "public NativeUnixIndexInput(NativeUnixIndexInput other) throws IOException {super(other.toString());this.fis = null;channel = other.channel;this.bufferSize = other.bufferSize;buffer = ByteBuffer.allocateDirect(bufferSize);filePos = -bufferSize;bufferPos = bufferSize;isOpen = true;isClone = true;seek(other.getFilePointer());}", "after": "public NativeUnixIndexInput(NativeUnixIndexInput other) throws IOException{base(other.ToString());this.fis = null;channel = other.channel;this.bufferSize = other.bufferSize;buffer = ByteBuffer.allocateDirect(bufferSize);filePos = -bufferSize;bufferPos = bufferSize;isOpen = true;isClone = true;seek(other.FilePointer);}" }, { "index": 1092, "before": "public Merger newMerger(Repository db, boolean inCore) {return new OneSide(db, treeIndex);}", "after": "public override Merger NewMerger(Repository db, bool inCore){return new StrategyOneSided.OneSide(db, treeIndex);}" }, { "index": 1093, "before": "public void flush() {synchronized (lock) {if (out != null) {try {out.flush();} catch (IOException e) {setError();}} else {setError();}}}", "after": "public override void flush(){lock (@lock){if (@out != null){try{@out.flush();}catch (System.IO.IOException){setError();}}else{setError();}}}" }, { "index": 1094, "before": "public DisassociateIamInstanceProfileResult disassociateIamInstanceProfile(DisassociateIamInstanceProfileRequest request) {request = beforeClientExecution(request);return executeDisassociateIamInstanceProfile(request);}", "after": "public virtual DisassociateIamInstanceProfileResponse DisassociateIamInstanceProfile(DisassociateIamInstanceProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateIamInstanceProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateIamInstanceProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1095, "before": "public void beginTask(String title, int totalWork) {if (!isMainThread())throw new IllegalStateException();pm.beginTask(title, totalWork);}", "after": "public override void BeginTask(string title, int totalWork){if (!IsMainThread()){throw new InvalidOperationException();}pm.BeginTask(title, totalWork);}" }, { "index": 1096, "before": "public void run() {try {count = task.runAndMaybeStats(letChildReport);} catch (Exception e) {throw new RuntimeException(e);}}", "after": "public override void Run(){try{count = task.RunAndMaybeStats(letChildReport);}catch (Exception e){throw new Exception(e.ToString(), e);}}" }, { "index": 1097, "before": "public TokenFilter create(TokenStream input) {return new EdgeNGramTokenFilter(input, minGramSize, maxGramSize, preserveOriginal);}", "after": "public override TokenStream Create(TokenStream input){#pragma warning disable 612, 618return new EdgeNGramTokenFilter(m_luceneMatchVersion, input, side, minGramSize, maxGramSize);#pragma warning restore 612, 618}" }, { "index": 1098, "before": "public String toString() {return \"RemoteRefUpdate[remoteName=\"+ remoteName+ \", \"+ status+ \", \"+ (expectedOldObjectId != null ? expectedOldObjectId.name(): \"(null)\") + \"...\"+ (newObjectId != null ? newObjectId.name() : \"(null)\")+ (fastForward ? \", fastForward\" : \"\")+ \", srcRef=\" + srcRef+ (forceUpdate ? \", forceUpdate\" : \"\") + \", message=\"+ (message != null ? \"\\\"\" + message + \"\\\"\" : \"null\") + \"]\";}", "after": "public override string ToString(){return \"RemoteRefUpdate[remoteName=\" + remoteName + \", \" + status + \", \" + (expectedOldObjectId!= null ? expectedOldObjectId.Name : \"(null)\") + \"...\" + (newObjectId != null ?newObjectId.Name : \"(null)\") + (fastForward ? \", fastForward\" : string.Empty) +\", srcRef=\" + srcRef + (forceUpdate ? \", forceUpdate\" : string.Empty) + \", message=\"+ (message != null ? \"\\\"\" + message + \"\\\"\" : \"null\") + \"]\";}" }, { "index": 1099, "before": "public ListJournalS3ExportsResult listJournalS3Exports(ListJournalS3ExportsRequest request) {request = beforeClientExecution(request);return executeListJournalS3Exports(request);}", "after": "public virtual ListJournalS3ExportsResponse ListJournalS3Exports(ListJournalS3ExportsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListJournalS3ExportsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListJournalS3ExportsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1100, "before": "public boolean lookingAt() {matchFound = lookingAtImpl(address, input, matchOffsets);if (matchFound) {findPos = matchOffsets[1];}return matchFound;}", "after": "public bool lookingAt(){matchFound = lookingAtImpl(address, input, matchOffsets);if (matchFound){findPos = matchOffsets[1];}return matchFound;}" }, { "index": 1101, "before": "public DescribeIdentityUsageResult describeIdentityUsage(DescribeIdentityUsageRequest request) {request = beforeClientExecution(request);return executeDescribeIdentityUsage(request);}", "after": "public virtual DescribeIdentityUsageResponse DescribeIdentityUsage(DescribeIdentityUsageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIdentityUsageRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIdentityUsageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1102, "before": "public void carry(RevFlag flag) {final int carry = flags & flag.mask;if (carry != 0)carryFlags(this, carry);}", "after": "public virtual void Carry(RevFlag flag){int carry = flags & flag.mask;if (carry != 0){CarryFlags(this, carry);}}" }, { "index": 1103, "before": "public Count(){_predicate = defaultPredicate;}", "after": "public Count(){_predicate = defaultPredicate;}" }, { "index": 1104, "before": "public ShowNoteCommand notesShow() {return new ShowNoteCommand(repo);}", "after": "public virtual ShowNoteCommand NotesShow(){return new ShowNoteCommand(repo);}" }, { "index": 1105, "before": "public ResolveRoomResult resolveRoom(ResolveRoomRequest request) {request = beforeClientExecution(request);return executeResolveRoom(request);}", "after": "public virtual ResolveRoomResponse ResolveRoom(ResolveRoomRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResolveRoomRequestMarshaller.Instance;options.ResponseUnmarshaller = ResolveRoomResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1106, "before": "public ValueEval getArea3DEval(Area3DPxg aptg) {SheetRangeEvaluator sre = createExternSheetRefEvaluator(aptg.getSheetName(), aptg.getLastSheetName(), aptg.getExternalWorkbookNumber());return new LazyAreaEval(aptg.getFirstRow(), aptg.getFirstColumn(),aptg.getLastRow(), aptg.getLastColumn(), sre);}", "after": "public ValueEval GetArea3DEval(Area3DPxg aptg){SheetRangeEvaluator sre = CreateExternSheetRefEvaluator(aptg.SheetName, aptg.LastSheetName, aptg.ExternalWorkbookNumber);return new LazyAreaEval(aptg.FirstRow, aptg.FirstColumn,aptg.LastRow, aptg.LastColumn, sre);}" }, { "index": 1107, "before": "public DoubleMetaphoneFilterFactory(Map args) {super(args);inject = getBoolean(args, INJECT, true);maxCodeLength = getInt(args, MAX_CODE_LENGTH, DEFAULT_MAX_CODE_LENGTH);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public DoubleMetaphoneFilterFactory(IDictionary args): base(args){inject = GetBoolean(args, INJECT, true);maxCodeLength = GetInt32(args, MAX_CODE_LENGTH, DEFAULT_MAX_CODE_LENGTH);if (!(args.Count == 0)){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 1108, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[PALETTE]\\n\");buffer.append(\" numcolors = \").append(_colors.size()).append('\\n');for (int i = 0; i < _colors.size(); i++) {PColor c = _colors.get(i);buffer.append(\"* colornum = \").append(i).append('\\n');buffer.append(c);buffer.append(\"", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\" red = \").Append(_red & 0xff).Append('\\n');buffer.Append(\" green = \").Append(_green & 0xff).Append('\\n');buffer.Append(\" blue = \").Append(_blue & 0xff).Append('\\n');return buffer.ToString();}" }, { "index": 1109, "before": "public DocOffsetSorter(int maxDoc) {super(maxDoc / 64);this.tmpDocs = new int[maxDoc / 64];this.tmpOffsets = new long[maxDoc / 64];}", "after": "public DocOffsetSorter(int maxDoc): base(maxDoc / 64){this.tmpDocs = new int[maxDoc / 64];this.tmpOffsets = new long[maxDoc / 64];}" }, { "index": 1110, "before": "public EnableInsightRulesResult enableInsightRules(EnableInsightRulesRequest request) {request = beforeClientExecution(request);return executeEnableInsightRules(request);}", "after": "public virtual EnableInsightRulesResponse EnableInsightRules(EnableInsightRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableInsightRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableInsightRulesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1111, "before": "public boolean equals(Object obj) {if ( this==obj ) return true;if ( !(obj instanceof AND) ) return false;AND other = (AND)obj;return Arrays.equals(this.opnds, other.opnds);}", "after": "public override bool Equals(object obj){if (this == obj){return true;}if (!(obj is SemanticContext.AND)){return false;}SemanticContext.AND other = (SemanticContext.AND)obj;return Arrays.Equals(this.opnds, other.opnds);}" }, { "index": 1112, "before": "public static int getEncodedSize(Ptg[] ptgs) {int result = 0;for (Ptg ptg : ptgs) {result += ptg.getSize();}return result;}", "after": "public static int GetEncodedSize(Ptg[] ptgs){int result = 0;for (int i = 0; i < ptgs.Length; i++){result += ptgs[i].Size;}return result;}" }, { "index": 1113, "before": "public IterationRecord(boolean iterateOn) {_flags = iterationOn.setBoolean(0, iterateOn);}", "after": "public IterationRecord(bool iterateOn){_flags = iterationOn.SetBoolean(0, iterateOn);}" }, { "index": 1114, "before": "public UnlinkIdentityResult unlinkIdentity(UnlinkIdentityRequest request) {request = beforeClientExecution(request);return executeUnlinkIdentity(request);}", "after": "public virtual UnlinkIdentityResponse UnlinkIdentity(UnlinkIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = UnlinkIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = UnlinkIdentityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1115, "before": "public CreateThreatIntelSetResult createThreatIntelSet(CreateThreatIntelSetRequest request) {request = beforeClientExecution(request);return executeCreateThreatIntelSet(request);}", "after": "public virtual CreateThreatIntelSetResponse CreateThreatIntelSet(CreateThreatIntelSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateThreatIntelSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateThreatIntelSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1116, "before": "public TokenizedPhraseQueryNode() {setLeaf(false);allocate();}", "after": "public TokenizedPhraseQueryNode(){IsLeaf = false;Allocate();}" }, { "index": 1117, "before": "public DataItemRecord(RecordInputStream in) {isxvdData = in.readUShort();iiftab = in.readUShort();df = in.readUShort();isxvd = in.readUShort();isxvi = in.readUShort();ifmt = in.readUShort();name = in.readString();}", "after": "public DataItemRecord(RecordInputStream in1){isxvdData = in1.ReadUShort();iiftab = in1.ReadUShort();df = in1.ReadUShort();isxvd = in1.ReadUShort();isxvi = in1.ReadUShort();ifmt = in1.ReadUShort();name = in1.ReadString();}" }, { "index": 1118, "before": "public DeleteDBParameterGroupResult deleteDBParameterGroup(DeleteDBParameterGroupRequest request) {request = beforeClientExecution(request);return executeDeleteDBParameterGroup(request);}", "after": "public virtual DeleteDBParameterGroupResponse DeleteDBParameterGroup(DeleteDBParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1119, "before": "public GetReservedNodeExchangeOfferingsResult getReservedNodeExchangeOfferings(GetReservedNodeExchangeOfferingsRequest request) {request = beforeClientExecution(request);return executeGetReservedNodeExchangeOfferings(request);}", "after": "public virtual GetReservedNodeExchangeOfferingsResponse GetReservedNodeExchangeOfferings(GetReservedNodeExchangeOfferingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetReservedNodeExchangeOfferingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetReservedNodeExchangeOfferingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1120, "before": "public static long nextHighestPowerOfTwo(long v) {v--;v |= v >> 1;v |= v >> 2;v |= v >> 4;v |= v >> 8;v |= v >> 16;v |= v >> 32;v++;return v;}", "after": "public static int NextHighestPowerOfTwo(int v){v--;v |= v >> 1;v |= v >> 2;v |= v >> 4;v |= v >> 8;v |= v >> 16;v++;return v;}" }, { "index": 1121, "before": "public RunInstancesResult runInstances(RunInstancesRequest request) {request = beforeClientExecution(request);return executeRunInstances(request);}", "after": "public virtual RunInstancesResponse RunInstances(RunInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RunInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = RunInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1122, "before": "public ChangeMessageVisibilityBatchResult changeMessageVisibilityBatch(String queueUrl, java.util.List entries) {return changeMessageVisibilityBatch(new ChangeMessageVisibilityBatchRequest().withQueueUrl(queueUrl).withEntries(entries));}", "after": "public virtual ChangeMessageVisibilityBatchResponse ChangeMessageVisibilityBatch(string queueUrl, List entries){var request = new ChangeMessageVisibilityBatchRequest();request.QueueUrl = queueUrl;request.Entries = entries;return ChangeMessageVisibilityBatch(request);}" }, { "index": 1123, "before": "public DeleteRealtimeEndpointResult deleteRealtimeEndpoint(DeleteRealtimeEndpointRequest request) {request = beforeClientExecution(request);return executeDeleteRealtimeEndpoint(request);}", "after": "public virtual DeleteRealtimeEndpointResponse DeleteRealtimeEndpoint(DeleteRealtimeEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRealtimeEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRealtimeEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1124, "before": "public CreateDiskSnapshotResult createDiskSnapshot(CreateDiskSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateDiskSnapshot(request);}", "after": "public virtual CreateDiskSnapshotResponse CreateDiskSnapshot(CreateDiskSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDiskSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDiskSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1125, "before": "public void mark(int readLimit) throws IOException {if (readLimit < 0) {throw new IllegalArgumentException();}synchronized (lock) {checkNotClosed();markpos = pos;}}", "after": "public override void mark(int readLimit){if (readLimit < 0){throw new System.ArgumentException();}lock (@lock){checkNotClosed();markpos = pos;}}" }, { "index": 1126, "before": "public TokenStream create(TokenStream input) {return new ICUNormalizer2Filter(input, normalizer);}", "after": "public override TokenStream Create(TokenStream input){return new ICUNormalizer2Filter(input, normalizer);}" }, { "index": 1127, "before": "public ModifyImageAttributeResult modifyImageAttribute(ModifyImageAttributeRequest request) {request = beforeClientExecution(request);return executeModifyImageAttribute(request);}", "after": "public virtual ModifyImageAttributeResponse ModifyImageAttribute(ModifyImageAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyImageAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyImageAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1128, "before": "public DescribeClusterSubnetGroupsResult describeClusterSubnetGroups(DescribeClusterSubnetGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeClusterSubnetGroups(request);}", "after": "public virtual DescribeClusterSubnetGroupsResponse DescribeClusterSubnetGroups(DescribeClusterSubnetGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterSubnetGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterSubnetGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1129, "before": "public StopQueryExecutionResult stopQueryExecution(StopQueryExecutionRequest request) {request = beforeClientExecution(request);return executeStopQueryExecution(request);}", "after": "public virtual StopQueryExecutionResponse StopQueryExecution(StopQueryExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopQueryExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = StopQueryExecutionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1130, "before": "public UpdateUserInfoRequest() {super(\"cr\", \"2016-06-07\", \"UpdateUserInfo\", \"cr\");setUriPattern(\"/users\");setMethod(MethodType.POST);}", "after": "public UpdateUserInfoRequest(): base(\"cr\", \"2016-06-07\", \"UpdateUserInfo\", \"cr\", \"openAPI\"){UriPattern = \"/users\";Method = MethodType.POST;}" }, { "index": 1131, "before": "public DiscoverInputSchemaResult discoverInputSchema(DiscoverInputSchemaRequest request) {request = beforeClientExecution(request);return executeDiscoverInputSchema(request);}", "after": "public virtual DiscoverInputSchemaResponse DiscoverInputSchema(DiscoverInputSchemaRequest request){var options = new InvokeOptions();options.RequestMarshaller = DiscoverInputSchemaRequestMarshaller.Instance;options.ResponseUnmarshaller = DiscoverInputSchemaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1132, "before": "public GetEnvironmentResult getEnvironment(GetEnvironmentRequest request) {request = beforeClientExecution(request);return executeGetEnvironment(request);}", "after": "public virtual GetEnvironmentResponse GetEnvironment(GetEnvironmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEnvironmentRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEnvironmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1133, "before": "public UpdateCondition(String name, String value, Boolean exists) {setName(name);setValue(value);setExists(exists);}", "after": "public UpdateCondition(string name, string value, bool exists){_name = name;_value = value;_exists = exists;}" }, { "index": 1134, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getCalcMode());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(GetCalcMode());}" }, { "index": 1135, "before": "public AmazonS3EncryptionClient(EncryptionMaterials encryptionMaterials) {this(new StaticEncryptionMaterialsProvider(encryptionMaterials));}", "after": "public AmazonS3EncryptionClient(EncryptionMaterials materials): base(){this.EncryptionMaterials = materials;S3CryptoConfig = new AmazonS3CryptoConfiguration();}" }, { "index": 1136, "before": "public void addRule(ConditionalFormattingRule cfRule){addRule((HSSFConditionalFormattingRule)cfRule);}", "after": "public void AddRule(HSSFConditionalFormattingRule cfRule){cfAggregate.AddRule(cfRule.CfRuleRecord);}" }, { "index": 1137, "before": "public Iterator descendingIterator() {return descendingSet().iterator();}", "after": "public virtual java.util.Iterator descendingIterator(){return descendingSet().iterator();}" }, { "index": 1138, "before": "public DescribeSubnetGroupsResult describeSubnetGroups(DescribeSubnetGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeSubnetGroups(request);}", "after": "public virtual DescribeSubnetGroupsResponse DescribeSubnetGroups(DescribeSubnetGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSubnetGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSubnetGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1139, "before": "public void append(String name, RevBlob blob) {append(name, REGULAR_FILE, blob);}", "after": "public virtual void Append(string name, RevTree tree){Append(name, FileMode.TREE, tree);}" }, { "index": 1140, "before": "public NavigableMap subMap(K from, boolean fromInclusive, K to, boolean toInclusive) {Bound fromBound = fromInclusive ? INCLUSIVE : EXCLUSIVE;Bound toBound = toInclusive ? INCLUSIVE : EXCLUSIVE;return subMap(from, fromBound, to, toBound);}", "after": "public java.util.NavigableMap subMap(K from, bool fromInclusive, K to, booltoInclusive){java.util.TreeMap.Bound fromBound = fromInclusive ? java.util.TreeMap.Bound.INCLUSIVE: java.util.TreeMap.Bound.EXCLUSIVE;java.util.TreeMap.Bound toBound = toInclusive ? java.util.TreeMap.Bound.INCLUSIVE: java.util.TreeMap.Bound.EXCLUSIVE;return this.subMap(from, fromBound, to, toBound);}" }, { "index": 1141, "before": "public E next() {if (expectedModCount == modCount) {try {E result = get(pos + 1);lastPosition = ++pos;return result;} catch (IndexOutOfBoundsException e) {throw new NoSuchElementException();}}throw new ConcurrentModificationException();}", "after": "public virtual E next(){if (this.expectedModCount == this._enclosing.modCount){try{E result = this._enclosing.get(this.pos + 1);this.lastPosition = ++this.pos;return result;}catch (System.IndexOutOfRangeException){throw new java.util.NoSuchElementException();}}throw new java.util.ConcurrentModificationException();}" }, { "index": 1142, "before": "static public double ipmt(double r, int per, int nper, double pv) {return ipmt(r, per, nper, pv, 0);}", "after": "static public double IPMT(double r, int per, int nper, double pv){return IPMT(r, per, nper, pv, 0);}" }, { "index": 1143, "before": "public TokenStream create(TokenStream input) {if (dictionary == null) {return input;}return new DictionaryCompoundWordTokenFilter(input, dictionary, minWordSize, minSubwordSize, maxSubwordSize, onlyLongestMatch);}", "after": "public override TokenStream Create(TokenStream input){return dictionary == null ? input : new DictionaryCompoundWordTokenFilter(m_luceneMatchVersion, input, dictionary, minWordSize, minSubwordSize, maxSubwordSize, onlyLongestMatch);}" }, { "index": 1144, "before": "public String toString() {StringBuilder r = new StringBuilder();r.append(\"(\");fieldNamesToString(r);r.append(q.toString());r.append(\")\");return r.toString();}", "after": "public override string ToString(){StringBuilder r = new StringBuilder();r.Append(\"(\");FieldNamesToString(r);r.Append(q.ToString());r.Append(\")\");return r.ToString();}" }, { "index": 1145, "before": "public AssociateDeviceWithRoomResult associateDeviceWithRoom(AssociateDeviceWithRoomRequest request) {request = beforeClientExecution(request);return executeAssociateDeviceWithRoom(request);}", "after": "public virtual AssociateDeviceWithRoomResponse AssociateDeviceWithRoom(AssociateDeviceWithRoomRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateDeviceWithRoomRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateDeviceWithRoomResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1146, "before": "public DeleteRetentionPolicyRequest(String logGroupName) {setLogGroupName(logGroupName);}", "after": "public DeleteRetentionPolicyRequest(string logGroupName){_logGroupName = logGroupName;}" }, { "index": 1147, "before": "public TypeTokenFilterFactory(Map args) {super(args);stopTypesFiles = require(args, \"types\");useWhitelist = getBoolean(args, \"useWhitelist\", false);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public TypeTokenFilterFactory(IDictionary args): base(args){stopTypesFiles = Require(args, \"types\");enablePositionIncrements = GetBoolean(args, \"enablePositionIncrements\", true);useWhitelist = GetBoolean(args, \"useWhitelist\", false);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 1148, "before": "public ServerCertificate(ServerCertificateMetadata serverCertificateMetadata, String certificateBody) {setServerCertificateMetadata(serverCertificateMetadata);setCertificateBody(certificateBody);}", "after": "public ServerCertificate(ServerCertificateMetadata serverCertificateMetadata, string certificateBody){_serverCertificateMetadata = serverCertificateMetadata;_certificateBody = certificateBody;}" }, { "index": 1149, "before": "public final void add(RevCommit c, RevFlag queueControl) {if (!c.has(queueControl)) {c.add(queueControl);add(c);}}", "after": "public void Add(RevCommit c, RevFlag queueControl){if (!c.Has(queueControl)){c.Add(queueControl);Add(c);}}" }, { "index": 1150, "before": "public BlameCommand setFilePath(String filePath) {this.path = filePath;return this;}", "after": "public virtual NGit.Api.BlameCommand SetFilePath(string filePath){this.path = filePath;return this;}" }, { "index": 1151, "before": "public boolean isTraverseEmptyCells() {return traverseEmptyCells;}", "after": "public bool IsTraverseEmptyCells(){return traverseEmptyCells;}" }, { "index": 1152, "before": "public QueryCustomerByIdRequest() {super(\"xspace\", \"2017-07-20\", \"QueryCustomerById\");setUriPattern(\"/customer\");setMethod(MethodType.PUT);}", "after": "public QueryCustomerByIdRequest(): base(\"xspace\", \"2017-07-20\", \"QueryCustomerById\"){UriPattern = \"/customer\";Method = MethodType.PUT;}" }, { "index": 1153, "before": "public OpenNLPPOSFilterFactory(Map args) {super(args);posTaggerModelFile = require(args, POS_TAGGER_MODEL);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public OpenNLPPOSFilterFactory(IDictionary args): base(args){posTaggerModelFile = Require(args, POS_TAGGER_MODEL);if (args.Any()){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 1154, "before": "public GetLinkAttributesResult getLinkAttributes(GetLinkAttributesRequest request) {request = beforeClientExecution(request);return executeGetLinkAttributes(request);}", "after": "public virtual GetLinkAttributesResponse GetLinkAttributes(GetLinkAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetLinkAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetLinkAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1155, "before": "public byte[] getByteBlock() {bytesUsed.addAndGet(blockSize);return new byte[blockSize];}", "after": "public override byte[] GetByteBlock(){bytesUsed.AddAndGet(m_blockSize);return new byte[m_blockSize];}" }, { "index": 1156, "before": "public CanonicalTreeParser() {reset(EMPTY);}", "after": "public CanonicalTreeParser(){Reset(EMPTY);}" }, { "index": 1157, "before": "public OldLabelRecord(RecordInputStream in){super(in, in.getSid() == biff2_sid);if (isBiff2()) {field_4_string_len = (short)in.readUByte();} else {field_4_string_len = in.readShort();}field_5_bytes = IOUtils.safelyAllocate(field_4_string_len, MAX_RECORD_LENGTH);in.read(field_5_bytes, 0, field_4_string_len);if (in.remaining() > 0) {logger.log(POILogger.INFO,\"LabelRecord data remains: \" + in.remaining() +\" : \" + HexDump.toHex(in.readRemainder()));}}", "after": "public OldLabelRecord(RecordInputStream in1): base(in1, in1.Sid == biff2_sid){if (IsBiff2){field_4_string_len = (short)in1.ReadUByte();}else{field_4_string_len = in1.ReadShort();}field_5_bytes = new byte[field_4_string_len];in1.Read(field_5_bytes, 0, field_4_string_len);if (in1.Remaining > 0){logger.Log(POILogger.INFO,\"LabelRecord data remains: \" + in1.Remaining +\" : \" + HexDump.ToHex(in1.ReadRemainder()));}}" }, { "index": 1158, "before": "public DBCellRecord clone() {return copy();}", "after": "public override Object Clone(){return this;}" }, { "index": 1159, "before": "public GetCampaignResult getCampaign(GetCampaignRequest request) {request = beforeClientExecution(request);return executeGetCampaign(request);}", "after": "public virtual GetCampaignResponse GetCampaign(GetCampaignRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCampaignRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCampaignResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1160, "before": "public boolean isEmpty() {return backingMap.isEmpty();}", "after": "public override bool isEmpty(){return backingMap.isEmpty();}" }, { "index": 1161, "before": "public Object subtract(Object object, Object inc) {return outputs.subtract((T) object, (T) inc);}", "after": "public override object Subtract(object @object, object inc){return outputs.Subtract((T)@object, (T)inc);}" }, { "index": 1162, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(\"[COLINFO]\\n\");sb.append(\" colfirst = \").append(getFirstColumn()).append(\"\\n\");sb.append(\" collast = \").append(getLastColumn()).append(\"\\n\");sb.append(\" colwidth = \").append(getColumnWidth()).append(\"\\n\");sb.append(\" xfindex = \").append(getXFIndex()).append(\"\\n\");sb.append(\" options = \").append(HexDump.shortToHex(_options)).append(\"\\n\");sb.append(\" hidden = \").append(getHidden()).append(\"\\n\");sb.append(\" olevel = \").append(getOutlineLevel()).append(\"\\n\");sb.append(\" collapsed= \").append(getCollapsed()).append(\"\\n\");sb.append(\"[/COLINFO]\\n\");return sb.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[COLINFO]\\n\");buffer.Append(\"colfirst = \").Append(FirstColumn).Append(\"\\n\");buffer.Append(\"collast = \").Append(LastColumn).Append(\"\\n\");buffer.Append(\"colwidth = \").Append(ColumnWidth).Append(\"\\n\");buffer.Append(\"xFindex = \").Append(XFIndex).Append(\"\\n\");buffer.Append(\"options = \").Append(Options).Append(\"\\n\");buffer.Append(\" hidden = \").Append(IsHidden).Append(\"\\n\");buffer.Append(\" olevel = \").Append(OutlineLevel).Append(\"\\n\");buffer.Append(\" collapsed = \").Append(IsCollapsed).Append(\"\\n\");buffer.Append(\"[/COLINFO]\\n\");return buffer.ToString();}" }, { "index": 1163, "before": "public EditList toEditList() {final EditList r = new EditList();for (HunkHeader hunk : hunks)r.addAll(hunk.toEditList());return r;}", "after": "public virtual EditList ToEditList(){EditList r = new EditList();foreach (HunkHeader hunk in hunks){Sharpen.Collections.AddAll(r, hunk.ToEditList());}return r;}" }, { "index": 1164, "before": "public void setParams(String params) {super.setParams(params);if (params != null) {String[] split = params.split(\",\");if (split.length > 0) {commitUserData = split[0];}}}", "after": "public override void SetParams(string @params){base.SetParams(@params);if (@params != null){string[] split = @params.Split(',').TrimEnd();if (split.Length > 0){commitUserData = split[0];}}}" }, { "index": 1165, "before": "public HSSFCell createCell(int columnIndex, CellType type){short shortCellNum = (short)columnIndex;if(columnIndex > 0x7FFF) {shortCellNum = (short)(0xffff - columnIndex);}HSSFCell cell = new HSSFCell(book, sheet, getRowNum(), shortCellNum, type);addCell(cell);sheet.getSheet().addValueRecord(getRowNum(), cell.getCellValueRecord());return cell;}", "after": "public ICell CreateCell(int columnIndex, CellType type){short shortCellNum = (short)columnIndex;if (columnIndex > 0x7FFF){shortCellNum = (short)(0xffff - columnIndex);}ICell cell = new HSSFCell(book, sheet, RowNum, (short)columnIndex, type);AddCell(cell);sheet.Sheet.AddValueRecord(RowNum, ((HSSFCell)cell).CellValueRecord);return cell;}" }, { "index": 1166, "before": "public PhraseQuery build() {Term[] terms = this.terms.toArray(new Term[this.terms.size()]);int[] positions = new int[this.positions.size()];for (int i = 0; i < positions.length; ++i) {positions[i] = this.positions.get(i);}return new PhraseQuery(slop, terms, positions);}", "after": "public virtual StemmerOverrideMap Build(){ByteSequenceOutputs outputs = ByteSequenceOutputs.Singleton;Builder builder = new Builder(FST.INPUT_TYPE.BYTE4, outputs);int[] sort = hash.Sort(BytesRef.UTF8SortedAsUnicodeComparer);Int32sRef intsSpare = new Int32sRef();int size = hash.Count;for (int i = 0; i < size; i++){int id = sort[i];BytesRef bytesRef = hash.Get(id, spare);UnicodeUtil.UTF8toUTF32(bytesRef, intsSpare);builder.Add(intsSpare, new BytesRef(outputValues[id]));}return new StemmerOverrideMap(builder.Finish(), ignoreCase);}" }, { "index": 1167, "before": "public ModifyInstanceEventStartTimeResult modifyInstanceEventStartTime(ModifyInstanceEventStartTimeRequest request) {request = beforeClientExecution(request);return executeModifyInstanceEventStartTime(request);}", "after": "public virtual ModifyInstanceEventStartTimeResponse ModifyInstanceEventStartTime(ModifyInstanceEventStartTimeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyInstanceEventStartTimeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyInstanceEventStartTimeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1168, "before": "public boolean checkShowJsonItemName() {return false;}", "after": "public override bool CheckShowJsonItemName(){return false;}" }, { "index": 1169, "before": "public Analyzer create() {return new Analyzer() {private final Integer positionIncrementGap = AnalyzerFactory.this.positionIncrementGap;private final Integer offsetGap = AnalyzerFactory.this.offsetGap;@Override", "after": "public Analyzer Create(){return new AnalyzerAnonymousHelper(this);}" }, { "index": 1170, "before": "public static RevFilter create(RevFilter[] list) {if (list.length == 2)return create(list[0], list[1]);if (list.length < 2)throw new IllegalArgumentException(JGitText.get().atLeastTwoFiltersNeeded);final RevFilter[] subfilters = new RevFilter[list.length];System.arraycopy(list, 0, subfilters, 0, list.length);return new List(subfilters);}", "after": "public static RevFilter Create(RevFilter[] list){if (list.Length == 2){return Create(list[0], list[1]);}if (list.Length < 2){throw new ArgumentException(JGitText.Get().atLeastTwoFiltersNeeded);}RevFilter[] subfilters = new RevFilter[list.Length];System.Array.Copy(list, 0, subfilters, 0, list.Length);return new OrRevFilter.List(subfilters);}" }, { "index": 1171, "before": "public DescribePrefixListsResult describePrefixLists(DescribePrefixListsRequest request) {request = beforeClientExecution(request);return executeDescribePrefixLists(request);}", "after": "public virtual DescribePrefixListsResponse DescribePrefixLists(DescribePrefixListsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePrefixListsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePrefixListsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1172, "before": "public CharVector clone() {CharVector cv = new CharVector(array.clone(), blockSize);cv.n = this.n;return cv;}", "after": "public virtual object Clone(){CharVector cv = new CharVector((char[])array.Clone(), blockSize);cv.n = this.n;return cv;}" }, { "index": 1173, "before": "public CreateDatasetImportJobResult createDatasetImportJob(CreateDatasetImportJobRequest request) {request = beforeClientExecution(request);return executeCreateDatasetImportJob(request);}", "after": "public virtual CreateDatasetImportJobResponse CreateDatasetImportJob(CreateDatasetImportJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDatasetImportJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDatasetImportJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1174, "before": "public GetRecommenderConfigurationsResult getRecommenderConfigurations(GetRecommenderConfigurationsRequest request) {request = beforeClientExecution(request);return executeGetRecommenderConfigurations(request);}", "after": "public virtual GetRecommenderConfigurationsResponse GetRecommenderConfigurations(GetRecommenderConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRecommenderConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRecommenderConfigurationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1175, "before": "public void setOldPrefix(String prefix) {oldPrefix = prefix;}", "after": "public virtual void SetOldPrefix(string prefix){oldPrefix = prefix;}" }, { "index": 1176, "before": "public DescribeAvailabilityZonesResult describeAvailabilityZones() {return describeAvailabilityZones(new DescribeAvailabilityZonesRequest());}", "after": "public virtual DescribeAvailabilityZonesResponse DescribeAvailabilityZones(){return DescribeAvailabilityZones(new DescribeAvailabilityZonesRequest());}" }, { "index": 1177, "before": "public final boolean matches(char c) {return this.expectedCharacter == c;}", "after": "public bool Matches(char c){return this.expectedCharacter == c;}" }, { "index": 1178, "before": "public static void putCompressedUnicode(String input, byte[] output, int offset) {byte[] bytes = input.getBytes(ISO_8859_1);System.arraycopy(bytes, 0, output, offset, bytes.length);}", "after": "public static void PutCompressedUnicode(String input, byte[] output, int offset){byte[] bytes = ISO_8859_1.GetBytes(input);Array.Copy(bytes, 0, output, offset, bytes.Length);}" }, { "index": 1179, "before": "public void put(int key, int value) {int i = binarySearch(mKeys, 0, mSize, key);if (i >= 0) {mValues[i] = value;} else {i = ~i;if (mSize >= mKeys.length) {int n = ArrayUtils.idealIntArraySize(mSize + 1);int[] nkeys = new int[n];int[] nvalues = new int[n];System.arraycopy(mKeys, 0, nkeys, 0, mKeys.length);System.arraycopy(mValues, 0, nvalues, 0, mValues.length);mKeys = nkeys;mValues = nvalues;}if (mSize - i != 0) {System.arraycopy(mKeys, i, mKeys, i + 1, mSize - i);System.arraycopy(mValues, i, mValues, i + 1, mSize - i);}mKeys[i] = key;mValues[i] = value;mSize++;}}", "after": "public virtual void put(int key, int value){int i = binarySearch(mKeys, 0, mSize, key);if (i >= 0){mValues[i] = value;}else{i = ~i;if (mSize >= mKeys.Length){int n = android.util.@internal.ArrayUtils.idealIntArraySize(mSize + 1);int[] nkeys = new int[n];int[] nvalues = new int[n];System.Array.Copy(mKeys, 0, nkeys, 0, mKeys.Length);System.Array.Copy(mValues, 0, nvalues, 0, mValues.Length);mKeys = nkeys;mValues = nvalues;}if (mSize - i != 0){System.Array.Copy(mKeys, i, mKeys, i + 1, mSize - i);System.Array.Copy(mValues, i, mValues, i + 1, mSize - i);}mKeys[i] = key;mValues[i] = value;mSize++;}}" }, { "index": 1180, "before": "public void clearEscherRecords(){escherRecords.clear();}", "after": "public void ClearEscherRecords(){escherRecords.Clear();}" }, { "index": 1181, "before": "public String getSchemeSpecificPart() {return decode(schemeSpecificPart);}", "after": "public string getSchemeSpecificPart(){return decode(schemeSpecificPart);}" }, { "index": 1182, "before": "public DeleteSkillAuthorizationResult deleteSkillAuthorization(DeleteSkillAuthorizationRequest request) {request = beforeClientExecution(request);return executeDeleteSkillAuthorization(request);}", "after": "public virtual DeleteSkillAuthorizationResponse DeleteSkillAuthorization(DeleteSkillAuthorizationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSkillAuthorizationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSkillAuthorizationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1183, "before": "public QuerySyncPicScheduleRequest() {super(\"LinkFace\", \"2018-07-20\", \"QuerySyncPicSchedule\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public QuerySyncPicScheduleRequest(): base(\"LinkFace\", \"2018-07-20\", \"QuerySyncPicSchedule\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 1184, "before": "public SheetRecordCollectingListener(HSSFListener childListener) {this.childListener = childListener;}", "after": "public SheetRecordCollectingListener(IHSSFListener childListener){this.childListener = childListener;}" }, { "index": 1185, "before": "public boolean equals( Object o ) {return o instanceof RussianStemmer;}", "after": "public override bool Equals(object o){return o is RussianStemmer;}" }, { "index": 1186, "before": "public void clear() {ArrayList copy = new ArrayList<>(_shapes);for (HSSFShape shape: copy){removeShape(shape);}}", "after": "public void Clear(){List copy = new List(_shapes);foreach (HSSFShape shape in copy){RemoveShape(shape);}}" }, { "index": 1187, "before": "public AddTagsToVaultResult addTagsToVault(AddTagsToVaultRequest request) {request = beforeClientExecution(request);return executeAddTagsToVault(request);}", "after": "public virtual AddTagsToVaultResponse AddTagsToVault(AddTagsToVaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddTagsToVaultRequestMarshaller.Instance;options.ResponseUnmarshaller = AddTagsToVaultResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1188, "before": "public String toString() {return getClass().getSimpleName() + '@' + Integer.toHexString(hashCode());}", "after": "public override string ToString(){return this.GetType().Name + '@' + GetHashCode().ToString(\"x\") + \" lockFactory=\" + LockFactory;}" }, { "index": 1189, "before": "public final boolean equals(Object obj) {if (obj instanceof Charset) {Charset that = (Charset) obj;return this.canonicalName.equals(that.canonicalName);}return false;}", "after": "public sealed override bool Equals(object obj){if (obj is java.nio.charset.Charset){java.nio.charset.Charset that = (java.nio.charset.Charset)obj;return this.canonicalName.Equals(that.canonicalName);}return false;}" }, { "index": 1190, "before": "public String toString() {return source + \" --> \" + dest + \" \" + (char) min + \"-\" + (char) max;}", "after": "public override string ToString(){StringBuilder b = new StringBuilder();AppendCharString(min, b);if (min != max){b.Append(\"-\");AppendCharString(max, b);}b.Append(\" -> \").Append(to.number);return b.ToString();}" }, { "index": 1191, "before": "public DeleteDirectoryConfigResult deleteDirectoryConfig(DeleteDirectoryConfigRequest request) {request = beforeClientExecution(request);return executeDeleteDirectoryConfig(request);}", "after": "public virtual DeleteDirectoryConfigResponse DeleteDirectoryConfig(DeleteDirectoryConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDirectoryConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDirectoryConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1192, "before": "public static DVConstraint createTimeConstraint(int comparisonOperator, String expr1, String expr2) {if (expr1 == null) {throw new IllegalArgumentException(\"expr1 must be supplied\");}OperatorType.validateSecondArg(comparisonOperator, expr1);String formula1 = getFormulaFromTextExpression(expr1);Double value1 = formula1 == null ? convertTime(expr1) : null;String formula2 = getFormulaFromTextExpression(expr2);Double value2 = formula2 == null ? convertTime(expr2) : null;return new DVConstraint(ValidationType.TIME, comparisonOperator, formula1, formula2, value1, value2, null);}", "after": "public static DVConstraint CreateTimeConstraint(int comparisonOperator, String expr1, String expr2){if (expr1 == null){throw new ArgumentException(\"expr1 must be supplied\");}OperatorType.ValidateSecondArg(comparisonOperator, expr1);String formula1 = GetFormulaFromTextExpression(expr1);Double value1 = formula1 == null ? ConvertTime(expr1) : Double.NaN;String formula2 = GetFormulaFromTextExpression(expr2);Double value2 = formula2 == null ? ConvertTime(expr2) : Double.NaN;return new DVConstraint(ValidationType.TIME, comparisonOperator, formula1, formula2, value1, value2, null);}" }, { "index": 1193, "before": "public String toString() {return \".\";}", "after": "public override string ToString(){return \".\";}" }, { "index": 1194, "before": "public RestoreDBInstanceFromDBSnapshotRequest(String dBInstanceIdentifier, String dBSnapshotIdentifier) {setDBInstanceIdentifier(dBInstanceIdentifier);setDBSnapshotIdentifier(dBSnapshotIdentifier);}", "after": "public RestoreDBInstanceFromDBSnapshotRequest(string dbInstanceIdentifier, string dbSnapshotIdentifier){_dbInstanceIdentifier = dbInstanceIdentifier;_dbSnapshotIdentifier = dbSnapshotIdentifier;}" }, { "index": 1195, "before": "public String getName() {return seqName; }", "after": "public override string GetName(){return seqName; }" }, { "index": 1196, "before": "public void readFully(byte[] buf) {readFully(buf, 0, buf.length);}", "after": "public virtual void ReadFully(byte[] buf){ReadFully(buf, 0, buf.Length);}" }, { "index": 1197, "before": "public boolean containsKey(Object o) {if(o == null)throw new NullPointerException();return false;}", "after": "public override bool ContainsKey(char[] text){if (text == null){throw new ArgumentNullException(\"text\");}return false;}" }, { "index": 1198, "before": "public String toFormulaString() {return FormulaError.REF.getString();}", "after": "public override String ToFormulaString(){return \"#REF!\";}" }, { "index": 1199, "before": "public History getWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest request) {request = beforeClientExecution(request);return executeGetWorkflowExecutionHistory(request);}", "after": "public virtual GetWorkflowExecutionHistoryResponse GetWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetWorkflowExecutionHistoryRequestMarshaller.Instance;options.ResponseUnmarshaller = GetWorkflowExecutionHistoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1200, "before": "public DeleteFileSystemPolicyResult deleteFileSystemPolicy(DeleteFileSystemPolicyRequest request) {request = beforeClientExecution(request);return executeDeleteFileSystemPolicy(request);}", "after": "public virtual DeleteFileSystemPolicyResponse DeleteFileSystemPolicy(DeleteFileSystemPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFileSystemPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFileSystemPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1201, "before": "public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {switch (args.length) {case 1:return evaluate(srcRowIndex, srcColumnIndex, args[0]);case 0:return new NumberEval(srcColumnIndex+1);}return ErrorEval.VALUE_INVALID;}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){switch (args.Length){case 1:return Evaluate(srcRowIndex, srcColumnIndex, args[0]);case 0:return new NumberEval(srcColumnIndex + 1);}return ErrorEval.VALUE_INVALID;}" }, { "index": 1202, "before": "public String getFormat(short index) {if (_movedBuiltins) {return _formats.get(index);}if(index == -1) {return null;}String fmt = _formats.size() > index ? _formats.get(index) : null;if (_builtinFormats.length > index && _builtinFormats[index] != null) {if (fmt != null) {return fmt;} else {return _builtinFormats[index];}}return fmt;}", "after": "public String GetFormat(short index){if (movedBuiltins)return (String)formats[index];if (index == -1)return null;String fmt = formats.Count > index ? formats[index] : null;if (builtinFormats.Count > index&& builtinFormats[index] != null){if (fmt != null){return fmt;}else{return builtinFormats[index];}}return fmt;}" }, { "index": 1203, "before": "public boolean include(RevWalk walker, RevCommit cmit)throws StopWalkException, MissingObjectException,IncorrectObjectTypeException, IOException {count++;if (count > maxCount)throw StopWalkException.INSTANCE;return true;}", "after": "public override bool Include(RevWalk walker, RevCommit cmit){count++;if (count > maxCount){throw StopWalkException.INSTANCE;}return true;}" }, { "index": 1204, "before": "public final Buffer mark() {mark = position;return this;}", "after": "public java.nio.Buffer mark(){_mark = _position;return this;}" }, { "index": 1205, "before": "public ModifyClientPropertiesResult modifyClientProperties(ModifyClientPropertiesRequest request) {request = beforeClientExecution(request);return executeModifyClientProperties(request);}", "after": "public virtual ModifyClientPropertiesResponse ModifyClientProperties(ModifyClientPropertiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClientPropertiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClientPropertiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1206, "before": "public void stopWalk() {if (parent != null)parent.stopWalk();}", "after": "public override void StopWalk(){if (parent != null){parent.StopWalk();}}" }, { "index": 1207, "before": "public ObjectId toObjectId() {return isComplete() ? new ObjectId(w1, w2, w3, w4, w5) : null;}", "after": "public ObjectId ToObjectId(){return IsComplete ? new ObjectId(w1, w2, w3, w4, w5) : null;}" }, { "index": 1208, "before": "public UpdateIntegrationResult updateIntegration(UpdateIntegrationRequest request) {request = beforeClientExecution(request);return executeUpdateIntegration(request);}", "after": "public virtual UpdateIntegrationResponse UpdateIntegration(UpdateIntegrationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateIntegrationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateIntegrationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1209, "before": "public PutDetectorResult putDetector(PutDetectorRequest request) {request = beforeClientExecution(request);return executePutDetector(request);}", "after": "public virtual PutDetectorResponse PutDetector(PutDetectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutDetectorRequestMarshaller.Instance;options.ResponseUnmarshaller = PutDetectorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1210, "before": "public long getLong(String section, String name, long defaultValue) {return typedGetter.getLong(this, section, null, name, defaultValue);}", "after": "public virtual long GetLong(string section, string name, long defaultValue){return GetLong(section, null, name, defaultValue);}" }, { "index": 1211, "before": "public void resetBackgroundImage(){EscherSimpleProperty property = getOptRecord().lookup(EscherPropertyTypes.FILL__PATTERNTEXTURE);if (null != property){EscherBSERecord bse = getPatriarch().getSheet().getWorkbook().getWorkbook().getBSERecord(property.getPropertyValue());bse.setRef(bse.getRef() - 1);getOptRecord().removeEscherProperty(EscherPropertyTypes.FILL__PATTERNTEXTURE);}setPropertyValue(new EscherSimpleProperty( EscherPropertyTypes.FILL__FILLTYPE, false, false, FILL_TYPE_SOLID));}", "after": "public void ResetBackgroundImage(){EscherSimpleProperty property = (EscherSimpleProperty)GetOptRecord().Lookup(EscherProperties.FILL__PATTERNTEXTURE);if (null != property){EscherBSERecord bse = ((HSSFWorkbook)((HSSFPatriarch)Patriarch).Sheet.Workbook).Workbook.GetBSERecord(property.PropertyValue);bse.Ref = (bse.Ref - 1);GetOptRecord().RemoveEscherProperty(EscherProperties.FILL__PATTERNTEXTURE);}SetPropertyValue(new EscherSimpleProperty(EscherProperties.FILL__FILLTYPE, false, false, FILL_TYPE_SOLID));}" }, { "index": 1212, "before": "public void reset(DataInput in, long valueCount) {this.in = in;assert valueCount >= 0;this.valueCount = valueCount;off = blockSize;ord = 0;}", "after": "public void Reset(DataInput @in, long valueCount){this.@in = @in;Debug.Assert(valueCount >= 0);this.valueCount = valueCount;off = blockSize;ord = 0;}" }, { "index": 1213, "before": "public ResetSnapshotAttributeResult resetSnapshotAttribute(ResetSnapshotAttributeRequest request) {request = beforeClientExecution(request);return executeResetSnapshotAttribute(request);}", "after": "public virtual ResetSnapshotAttributeResponse ResetSnapshotAttribute(ResetSnapshotAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetSnapshotAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetSnapshotAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1214, "before": "public MutableValue duplicate() {MutableValueStr v = new MutableValueStr();v.value.copyBytes(value);v.exists = this.exists;return v;}", "after": "public override MutableValue Duplicate(){MutableValueStr v = new MutableValueStr();v.Value.CopyBytes(Value);v.Exists = this.Exists;return v;}" }, { "index": 1215, "before": "public int getColumnNumber() { return column; }", "after": "public virtual int getColumnNumber(){return column;}" }, { "index": 1216, "before": "public TokenStream create(TokenStream input) {if (pattern != null) {input = new PatternKeywordMarkerFilter(input, pattern);}if (protectedWords != null) {input = new SetKeywordMarkerFilter(input, protectedWords);}return input;}", "after": "public override TokenStream Create(TokenStream input){if (pattern != null){input = new PatternKeywordMarkerFilter(input, pattern);}if (protectedWords != null){input = new SetKeywordMarkerFilter(input, protectedWords);}return input;}" }, { "index": 1217, "before": "public ElisionFilter(TokenStream input, CharArraySet articles) {super(input);this.articles = articles;}", "after": "public ElisionFilter(TokenStream input, CharArraySet articles): base(input){this.articles = articles;termAtt = AddAttribute();}" }, { "index": 1218, "before": "public static int strcmp(String str, char[] a, int start) {int i, d, len = str.length();for (i = 0; i < len; i++) {d = (int) str.charAt(i) - a[start + i];if (d != 0) {return d;}if (a[start + i] == 0) {return d;}}if (a[start + i] != 0) {return -a[start + i];}return 0;}", "after": "public static int StrCmp(string str, char[] a, int start){int i, d, len = str.Length;for (i = 0; i < len; i++){d = (int)str[i] - a[start + i];if (d != 0){return d;}if (a[start + i] == 0){return d;}}if (a[start + i] != 0){return -a[start + i];}return 0;}" }, { "index": 1219, "before": "public NavigableSet descendingSet() {return (descendingSet != null) ? descendingSet: (descendingSet = new TreeSet(backingMap.descendingMap()));}", "after": "public virtual java.util.NavigableSet descendingSet(){return (_descendingSet != null) ? _descendingSet : (_descendingSet = new java.util.TreeSet(backingMap.descendingMap()));}" }, { "index": 1220, "before": "public DecisionInfo[] getDecisionInfo() {return decisions;}", "after": "public DecisionInfo[] getDecisionInfo(){return decisions;}" }, { "index": 1221, "before": "public PushConnection openPush() throws NotSupportedException {throw new NotSupportedException(JGitText.get().pushIsNotSupportedForBundleTransport);}", "after": "public override PushConnection OpenPush(){throw new NGit.Errors.NotSupportedException(JGitText.Get().pushIsNotSupportedForBundleTransport);}" }, { "index": 1222, "before": "public PutRecordResult putRecord(PutRecordRequest request) {request = beforeClientExecution(request);return executePutRecord(request);}", "after": "public virtual PutRecordResponse PutRecord(PutRecordRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutRecordRequestMarshaller.Instance;options.ResponseUnmarshaller = PutRecordResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1223, "before": "public List getAllTokens() {List tokens = new ArrayList();Token t = nextToken();while ( t.getType()!=Token.EOF ) {tokens.add(t);t = nextToken();}return tokens;}", "after": "public virtual IList GetAllTokens(){IList tokens = new List();IToken t = NextToken();while (t.Type != TokenConstants.EOF){tokens.Add(t);t = NextToken();}return tokens;}" }, { "index": 1224, "before": "public ModifyInstanceCapacityReservationAttributesResult modifyInstanceCapacityReservationAttributes(ModifyInstanceCapacityReservationAttributesRequest request) {request = beforeClientExecution(request);return executeModifyInstanceCapacityReservationAttributes(request);}", "after": "public virtual ModifyInstanceCapacityReservationAttributesResponse ModifyInstanceCapacityReservationAttributes(ModifyInstanceCapacityReservationAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyInstanceCapacityReservationAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyInstanceCapacityReservationAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1225, "before": "public MoveFacePhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"MoveFacePhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public MoveFacePhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"MoveFacePhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 1226, "before": "public RequestSpotFleetResult requestSpotFleet(RequestSpotFleetRequest request) {request = beforeClientExecution(request);return executeRequestSpotFleet(request);}", "after": "public virtual RequestSpotFleetResponse RequestSpotFleet(RequestSpotFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = RequestSpotFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = RequestSpotFleetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1227, "before": "public ListApplicationSnapshotsResult listApplicationSnapshots(ListApplicationSnapshotsRequest request) {request = beforeClientExecution(request);return executeListApplicationSnapshots(request);}", "after": "public virtual ListApplicationSnapshotsResponse ListApplicationSnapshots(ListApplicationSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListApplicationSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListApplicationSnapshotsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1228, "before": "public DefaultAcsClient(IClientProfile profile, AlibabaCloudCredentials credentials) {this(profile, new StaticCredentialsProvider(credentials));}", "after": "public DefaultAcsClient(IClientProfile profile, AlibabaCloudCredentials credentials) : this(){clientProfile = profile;credentialsProvider = new StaticCredentialsProvider(credentials);clientProfile.SetCredentialsProvider(credentialsProvider);}" }, { "index": 1229, "before": "public ConcurrentRefUpdateException(String message, Ref ref,RefUpdate.Result rc) {super((rc == null) ? message : message + \". \" + MessageFormat.format(JGitText.get().refUpdateReturnCodeWas, rc));this.rc = rc;this.ref = ref;}", "after": "public ConcurrentRefUpdateException(string message, Ref @ref, RefUpdate.Result rc) : base((rc == null) ? message : message + \". \" + MessageFormat.Format(JGitText.Get().refUpdateReturnCodeWas, rc)){this.rc = rc;this.@ref = @ref;}" }, { "index": 1230, "before": "public DeleteNetworkAclResult deleteNetworkAcl(DeleteNetworkAclRequest request) {request = beforeClientExecution(request);return executeDeleteNetworkAcl(request);}", "after": "public virtual DeleteNetworkAclResponse DeleteNetworkAcl(DeleteNetworkAclRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNetworkAclRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNetworkAclResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1231, "before": "public ShortBuffer get(short[] dst, int dstOffset, int shortCount) {Arrays.checkOffsetAndCount(dst.length, dstOffset, shortCount);if (shortCount > remaining()) {throw new BufferUnderflowException();}for (int i = dstOffset; i < dstOffset + shortCount; ++i) {dst[i] = get();}return this;}", "after": "public virtual java.nio.ShortBuffer get(short[] dst, int dstOffset, int shortCount){java.util.Arrays.checkOffsetAndCount(dst.Length, dstOffset, shortCount);if (shortCount > remaining()){throw new java.nio.BufferUnderflowException();}{for (int i = dstOffset; i < dstOffset + shortCount; ++i){dst[i] = get();}}return this;}" }, { "index": 1232, "before": "public static SharedValueManager createEmpty() {return new SharedValueManager(new SharedFormulaRecord[0], new CellReference[0], new ArrayRecord[0], new TableRecord[0]);}", "after": "public static SharedValueManager CreateEmpty(){return new SharedValueManager(new SharedFormulaRecord[0], new CellReference[0], new List(), new List());}" }, { "index": 1233, "before": "public DeleteCacheSecurityGroupResult deleteCacheSecurityGroup(DeleteCacheSecurityGroupRequest request) {request = beforeClientExecution(request);return executeDeleteCacheSecurityGroup(request);}", "after": "public virtual DeleteCacheSecurityGroupResponse DeleteCacheSecurityGroup(DeleteCacheSecurityGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCacheSecurityGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCacheSecurityGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1234, "before": "public CreateGroupRequest(String groupName) {setGroupName(groupName);}", "after": "public CreateGroupRequest(string groupName){_groupName = groupName;}" }, { "index": 1235, "before": "public void setParentId(AnyObjectId newParent) {parentIds = new ObjectId[] { newParent.copy() };}", "after": "public virtual void SetParentId(AnyObjectId newParent){parentIds = new ObjectId[] { newParent.Copy() };}" }, { "index": 1236, "before": "public static boolean hasConflictingAltSet(Collection altsets) {for (BitSet alts : altsets) {if ( alts.cardinality()>1 ) {return true;}}return false;}", "after": "public static bool HasConflictingAltSet(IEnumerable altsets){foreach (BitSet alts in altsets){if (alts.Cardinality() > 1){return true;}}return false;}" }, { "index": 1237, "before": "public CommonRpcRequest(String product) {super(product);setAcceptFormat(FormatType.JSON);}", "after": "public CommonRpcRequest(string product) : base(product){AcceptFormat = FormatType.JSON;}" }, { "index": 1238, "before": "public K next() { return super.nextEntry().key; }", "after": "public override K next(){return this.nextEntry().key;}" }, { "index": 1239, "before": "public DeleteTransitGatewayMulticastDomainResult deleteTransitGatewayMulticastDomain(DeleteTransitGatewayMulticastDomainRequest request) {request = beforeClientExecution(request);return executeDeleteTransitGatewayMulticastDomain(request);}", "after": "public virtual DeleteTransitGatewayMulticastDomainResponse DeleteTransitGatewayMulticastDomain(DeleteTransitGatewayMulticastDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTransitGatewayMulticastDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTransitGatewayMulticastDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1240, "before": "public DescribeEventsResult describeEvents(DescribeEventsRequest request) {request = beforeClientExecution(request);return executeDescribeEvents(request);}", "after": "public virtual DescribeEventsResponse DescribeEvents(DescribeEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEventsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1241, "before": "public DescribeFleetsResult describeFleets(DescribeFleetsRequest request) {request = beforeClientExecution(request);return executeDescribeFleets(request);}", "after": "public virtual DescribeFleetsResponse DescribeFleets(DescribeFleetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFleetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFleetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1242, "before": "public DescribeDataRepositoryTasksResult describeDataRepositoryTasks(DescribeDataRepositoryTasksRequest request) {request = beforeClientExecution(request);return executeDescribeDataRepositoryTasks(request);}", "after": "public virtual DescribeDataRepositoryTasksResponse DescribeDataRepositoryTasks(DescribeDataRepositoryTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDataRepositoryTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDataRepositoryTasksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1243, "before": "public StartLabelDetectionResult startLabelDetection(StartLabelDetectionRequest request) {request = beforeClientExecution(request);return executeStartLabelDetection(request);}", "after": "public virtual StartLabelDetectionResponse StartLabelDetection(StartLabelDetectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartLabelDetectionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartLabelDetectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1244, "before": "public static long getLastCommitGeneration(String[] files) {long max = -1;for (String file : files) {if (file.startsWith(IndexFileNames.SEGMENTS) &&file.startsWith(OLD_SEGMENTS_GEN) == false) {long gen = generationFromSegmentsFileName(file);if (gen > max) {max = gen;}}}return max;}", "after": "public static long GetLastCommitGeneration(string[] files){if (files == null){return -1;}long max = -1;foreach (var file in files){if (file.StartsWith(IndexFileNames.SEGMENTS, StringComparison.Ordinal) && !file.Equals(IndexFileNames.SEGMENTS_GEN, StringComparison.Ordinal)){long gen = GenerationFromSegmentsFileName(file);if (gen > max){max = gen;}}}return max;}" }, { "index": 1245, "before": "public EnableFastSnapshotRestoresResult enableFastSnapshotRestores(EnableFastSnapshotRestoresRequest request) {request = beforeClientExecution(request);return executeEnableFastSnapshotRestores(request);}", "after": "public virtual EnableFastSnapshotRestoresResponse EnableFastSnapshotRestores(EnableFastSnapshotRestoresRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableFastSnapshotRestoresRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableFastSnapshotRestoresResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1246, "before": "public ListVPCAssociationAuthorizationsResult listVPCAssociationAuthorizations(ListVPCAssociationAuthorizationsRequest request) {request = beforeClientExecution(request);return executeListVPCAssociationAuthorizations(request);}", "after": "public virtual ListVPCAssociationAuthorizationsResponse ListVPCAssociationAuthorizations(ListVPCAssociationAuthorizationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListVPCAssociationAuthorizationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListVPCAssociationAuthorizationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1247, "before": "public Thumbnail(final byte[] thumbnailData){this._thumbnailData = thumbnailData;}", "after": "public Thumbnail(byte[] thumbnailData){this.thumbnailData = thumbnailData;}" }, { "index": 1248, "before": "public final Explanation explain(BasicStats stats, double tfn) {return Explanation.match((float) (scoreTimes1pTfn(stats) / (1 + tfn)),getClass().getSimpleName() + \", computed as 1 / (tfn + 1) from:\",Explanation.match((float) tfn, \"tfn, normalized term frequency\"));}", "after": "public override sealed Explanation Explain(BasicStats stats, float tfn){Explanation result = new Explanation();result.Description = this.GetType().Name + \", computed from: \";result.Value = Score(stats, tfn);result.AddDetail(new Explanation(tfn, \"tfn\"));return result;}" }, { "index": 1249, "before": "public static String[] parse(String line) {boolean insideQuote = false;ArrayList result = new ArrayList<>();int quoteCount = 0;StringBuilder sb = new StringBuilder();for(int i = 0; i < line.length(); i++) {char c = line.charAt(i);if(c == QUOTE) {insideQuote = !insideQuote;quoteCount++;}if(c == COMMA && !insideQuote) {String value = sb.toString();value = unQuoteUnEscape(value);result.add(value);sb.setLength(0);continue;}sb.append(c);}result.add(sb.toString());if(quoteCount % 2 != 0) {return new String[0];}return result.toArray(new String[result.size()]);}", "after": "public static string[] Parse(string line){bool insideQuote = false;List result = new List();int quoteCount = 0;StringBuilder sb = new StringBuilder();for (int i = 0; i < line.Length; i++){char c = line[i];if (c == QUOTE){insideQuote = !insideQuote;quoteCount++;}if (c == COMMA && !insideQuote){string value = sb.ToString();value = UnQuoteUnEscape(value);result.Add(value);sb.Length = 0;continue;}sb.Append(c);}result.Add(sb.ToString());if (quoteCount % 2 != 0){return new string[0];}return result.ToArray();}" }, { "index": 1250, "before": "public String toString(String field) {StringBuilder buffer = new StringBuilder();buffer.append(\"mask(\");buffer.append(maskedQuery.toString(field));buffer.append(\")\");buffer.append(\" as \");buffer.append(this.field);return buffer.toString();}", "after": "public override string ToString(string field){StringBuilder buffer = new StringBuilder();buffer.Append(\"mask(\");buffer.Append(maskedQuery.ToString(field));buffer.Append(\")\");buffer.Append(ToStringUtils.Boost(Boost));buffer.Append(\" as \");buffer.Append(this.field);return buffer.ToString();}" }, { "index": 1251, "before": "public static RevFilter create(String pattern) {if (pattern.length() == 0)throw new IllegalArgumentException(JGitText.get().cannotMatchOnEmptyString);if (SubStringRevFilter.safe(pattern))return new SubStringSearch(pattern);return new PatternSearch(pattern);}", "after": "public static RevFilter Create(string pattern){if (pattern.Length == 0){throw new ArgumentException(JGitText.Get().cannotMatchOnEmptyString);}if (SubStringRevFilter.Safe(pattern)){return new AuthorRevFilter.SubStringSearch(pattern);}return new AuthorRevFilter.PatternSearch(pattern);}" }, { "index": 1252, "before": "public NotImplementedFunctionException(String functionName) {super(functionName);this.functionName = functionName;}", "after": "public NotImplementedFunctionException(string functionName): base(functionName){this.functionName = functionName;}" }, { "index": 1253, "before": "public DeleteResourceResult deleteResource(DeleteResourceRequest request) {request = beforeClientExecution(request);return executeDeleteResource(request);}", "after": "public virtual DeleteResourceResponse DeleteResource(DeleteResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1254, "before": "public PaletteRecord() {PColor[] defaultPalette = createDefaultPalette();_colors.ensureCapacity(defaultPalette.length);Collections.addAll(_colors, defaultPalette);}", "after": "public PaletteRecord(){PColor[] defaultPalette = CreateDefaultPalette();field_2_colors = new List(defaultPalette.Length);for (int i = 0; i < defaultPalette.Length; i++){field_2_colors.Add(defaultPalette[i]);}}" }, { "index": 1255, "before": "public GetRepoBuildLogsRequest() {super(\"cr\", \"2016-06-07\", \"GetRepoBuildLogs\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/build/[BuildId]/logs\");setMethod(MethodType.GET);}", "after": "public GetRepoBuildLogsRequest(): base(\"cr\", \"2016-06-07\", \"GetRepoBuildLogs\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/build/[BuildId]/logs\";Method = MethodType.GET;}" }, { "index": 1256, "before": "public String toString() {return \"SortedSetDocValuesFacetField(dim=\" + dim + \" label=\" + label + \")\";}", "after": "public override string ToString(){return \"SortedSetDocValuesFacetField(dim=\" + Dim + \" label=\" + Label + \")\";}" }, { "index": 1257, "before": "public Break(int main, int subFrom, int subTo) {this.main = main;this.subFrom = subFrom;this.subTo = subTo;}", "after": "public Break(int main, int subFrom, int subTo){this.main = main;this.subFrom = subFrom;this.subTo = subTo;}" }, { "index": 1258, "before": "public void setParams(String params) {super.setParams(params);docSize = (int) Float.parseFloat(params);}", "after": "public override void SetParams(string @params){base.SetParams(@params);docSize = (int)float.Parse(@params, CultureInfo.InvariantCulture);}" }, { "index": 1259, "before": "public static double pv(double r, double n, double y, double f, boolean t) {double retval = 0;if (r == 0) {retval = -1*((n*y)+f);}else {double r1 = r + 1;retval =(( ( 1 - Math.pow(r1, n) ) / r ) * (t ? r1 : 1) * y - f)/Math.pow(r1, n);}return retval;}", "after": "public static double pv(double r, double n, double y, double f, bool t){double retval = 0;if (r == 0){retval = -1 * ((n * y) + f);}else{double r1 = r + 1;retval = (((1 - Math.Pow(r1, n)) / r) * (t ? r1 : 1) * y - f)/Math.Pow(r1, n);}return retval;}" }, { "index": 1260, "before": "public int compareTo(File another) {return this.getPath().compareTo(another.getPath());}", "after": "public int compareTo(java.io.File another){return string.CompareOrdinal(this.getPath(), another.getPath());}" }, { "index": 1261, "before": "public void writeByte(int value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeByte(value);}", "after": "public virtual void writeByte(int value){throw new System.NotImplementedException();}" }, { "index": 1262, "before": "public String toString() {StringBuilder buffer = new StringBuilder(\"[Data Table - Parent cell is an interior cell in a data table]\\n\");buffer.append(\"top left row = \").append(getRow()).append(\"\\n\");buffer.append(\"top left col = \").append(getColumn()).append(\"\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder(\"[Data Table - Parent cell is an interior cell in a data table]\\n\");buffer.Append(\"top left row = \").Append(Row).Append(\"\\n\");buffer.Append(\"top left col = \").Append(Column).Append(\"\\n\");return buffer.ToString();}" }, { "index": 1263, "before": "public Credential() {this.refreshDate = new Date();}", "after": "public Credential(){RefreshDate = DateTime.UtcNow;}" }, { "index": 1264, "before": "public NavigableMap subMap(K fromInclusive, K toExclusive) {return subMap(fromInclusive, INCLUSIVE, toExclusive, EXCLUSIVE);}", "after": "public java.util.NavigableMap subMap(K fromInclusive, K toExclusive){return this.subMap(fromInclusive, java.util.TreeMap.Bound.INCLUSIVE, toExclusive,java.util.TreeMap.Bound.EXCLUSIVE);}" }, { "index": 1265, "before": "public DescribeLedgerResult describeLedger(DescribeLedgerRequest request) {request = beforeClientExecution(request);return executeDescribeLedger(request);}", "after": "public virtual DescribeLedgerResponse DescribeLedger(DescribeLedgerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLedgerRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLedgerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1266, "before": "public boolean isNoPrefix() {return noPrefix;}", "after": "public virtual bool IsNoPrefix(){return noPrefix;}" }, { "index": 1267, "before": "public static Policy fromJson(String jsonString) {return fromJson(jsonString, new PolicyReaderOptions());}", "after": "public static Policy FromJson(string json){return JsonPolicyReader.ReadJsonStringToPolicy(json);}" }, { "index": 1268, "before": "public GetPhoneNumberResult getPhoneNumber(GetPhoneNumberRequest request) {request = beforeClientExecution(request);return executeGetPhoneNumber(request);}", "after": "public virtual GetPhoneNumberResponse GetPhoneNumber(GetPhoneNumberRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPhoneNumberRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPhoneNumberResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1269, "before": "public static void writeUnicodeString(LittleEndianOutput out, String value) {int nChars = value.length();out.writeShort(nChars);boolean is16Bit = hasMultibyte(value);out.writeByte(is16Bit ? 0x01 : 0x00);if (is16Bit) {putUnicodeLE(value, out);} else {putCompressedUnicode(value, out);}}", "after": "public static void WriteUnicodeString(ILittleEndianOutput out1, String value){int nChars = value.Length;out1.WriteShort(nChars);bool is16Bit = HasMultibyte(value);out1.WriteByte(is16Bit ? 0x01 : 0x00);if (is16Bit){PutUnicodeLE(value, out1);}else{PutCompressedUnicode(value, out1);}}" }, { "index": 1270, "before": "public DescribeCoipPoolsResult describeCoipPools(DescribeCoipPoolsRequest request) {request = beforeClientExecution(request);return executeDescribeCoipPools(request);}", "after": "public virtual DescribeCoipPoolsResponse DescribeCoipPools(DescribeCoipPoolsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCoipPoolsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCoipPoolsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1271, "before": "public void removeRow(Row row) {HSSFRow hrow = (HSSFRow) row;if (row.getSheet() != this) {throw new IllegalArgumentException(\"Specified row does not belong to this sheet\");}for (Cell cell : row) {HSSFCell xcell = (HSSFCell) cell;if (xcell.isPartOfArrayFormulaGroup()) {String msg = \"Row[rownum=\" + row.getRowNum() + \"] contains cell(s) included in a multi-cell array formula. You cannot change part of an array.\";xcell.tryToDeleteArrayFormula(msg);}}if (_rows.size() > 0) {Integer key = Integer.valueOf(row.getRowNum());HSSFRow removedRow = _rows.remove(key);if (removedRow != row) {throw new IllegalArgumentException(\"Specified row does not belong to this sheet\");}if (hrow.getRowNum() == getLastRowNum()) {_lastrow = findLastRow(_lastrow);}if (hrow.getRowNum() == getFirstRowNum()) {_firstrow = findFirstRow(_firstrow);}_sheet.removeRow(hrow.getRowRecord());if(_rows.size() == 0) {_firstrow = -1;_lastrow = -1;}}}", "after": "public void RemoveRow(IRow row){if (row.Sheet != this){throw new ArgumentException(\"Specified row does not belong to this sheet\");}foreach (ICell cell in row){HSSFCell xcell = (HSSFCell)cell;if (xcell.IsPartOfArrayFormulaGroup){String msg = \"Row[rownum=\" + row.RowNum + \"] contains cell(s) included in a multi-cell array formula. You cannot change part of an array.\";xcell.NotifyArrayFormulaChanging(msg);}}if (rows.Count > 0){int key = row.RowNum;HSSFRow removedRow = (HSSFRow)rows[key];rows.Remove(key);if (removedRow != row){if (removedRow != null){rows[key] = removedRow;}throw new InvalidOperationException(\"Specified row does not belong to this _sheet\");}if (row.RowNum == LastRowNum){lastrow = FindLastRow(lastrow);}if (row.RowNum == FirstRowNum){firstrow = FindFirstRow(firstrow);}CellValueRecordInterface[] cellvaluerecods = _sheet.GetValueRecords();for (int i = 0; i < cellvaluerecods.Length; i++){if (cellvaluerecods[i].Row == key){_sheet.RemoveValueRecord(key, cellvaluerecods[i]);}}_sheet.RemoveRow(((HSSFRow)row).RowRecord);}}" }, { "index": 1272, "before": "public static TreeFilter create(Collection list) {if (list.size() < 2)throw new IllegalArgumentException(JGitText.get().atLeastTwoFiltersNeeded);final TreeFilter[] subfilters = new TreeFilter[list.size()];list.toArray(subfilters);if (subfilters.length == 2)return create(subfilters[0], subfilters[1]);return new List(subfilters);}", "after": "public static TreeFilter Create(ICollection list){if (list.Count < 2){throw new ArgumentException(JGitText.Get().atLeastTwoFiltersNeeded);}TreeFilter[] subfilters = new TreeFilter[list.Count];Sharpen.Collections.ToArray(list, subfilters);if (subfilters.Length == 2){return Create(subfilters[0], subfilters[1]);}return new OrTreeFilter.List(subfilters);}" }, { "index": 1273, "before": "public SpanOrTermsBuilder(Analyzer analyzer) {this.analyzer = analyzer;}", "after": "public SpanOrTermsBuilder(Analyzer analyzer){this.analyzer = analyzer;}" }, { "index": 1274, "before": "public boolean isReadOnly() {return byteBuffer.isReadOnly();}", "after": "public override bool isReadOnly(){return byteBuffer.isReadOnly();}" }, { "index": 1275, "before": "public void setValuesCellRange(CellRangeAddressBase range) {Integer count = setVerticalCellRange(dataValues, range);if (count == null){return;}series.setNumValues((short)(int)count);}", "after": "public void SetValuesCellRange(CellRangeAddressBase range){int count = SetVerticalCellRange(dataValues, range);series.NumValues = (short)count;}" }, { "index": 1276, "before": "public GlobalReplicationGroup modifyGlobalReplicationGroup(ModifyGlobalReplicationGroupRequest request) {request = beforeClientExecution(request);return executeModifyGlobalReplicationGroup(request);}", "after": "public virtual ModifyGlobalReplicationGroupResponse ModifyGlobalReplicationGroup(ModifyGlobalReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyGlobalReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyGlobalReplicationGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1277, "before": "public CreateTrialResult createTrial(CreateTrialRequest request) {request = beforeClientExecution(request);return executeCreateTrial(request);}", "after": "public virtual CreateTrialResponse CreateTrial(CreateTrialRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTrialRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTrialResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1278, "before": "public void preWrite() {List pList = new ArrayList<>();int i=0;for (Property p : _properties) {if (p == null) continue;p.setIndex(i++);pList.add(p);}for (Property p : pList) p.preWrite();}", "after": "public void PreWrite(){List properties = new List(_properties.Count);for (int i = 0; i < _properties.Count; i++)properties.Add(_properties[i]);for (int k = 0; k < properties.Count; k++){properties[ k ].Index = k;}_blocks = PropertyBlock.CreatePropertyBlockArray(_bigBigBlockSize, properties);for (int k = 0; k < properties.Count; k++){properties[ k ].PreWrite();}}" }, { "index": 1279, "before": "public E first() {return backingMap.firstKey();}", "after": "public virtual E first(){return backingMap.firstKey();}" }, { "index": 1280, "before": "public int available() {return data.length - ptr;}", "after": "public override int Available(){return data.Length - ptr;}" }, { "index": 1281, "before": "public GetHostedZoneCountResult getHostedZoneCount(GetHostedZoneCountRequest request) {request = beforeClientExecution(request);return executeGetHostedZoneCount(request);}", "after": "public virtual GetHostedZoneCountResponse GetHostedZoneCount(GetHostedZoneCountRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHostedZoneCountRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHostedZoneCountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1282, "before": "public LookupResult[] getResults() {int size = size();LookupResult[] res = new LookupResult[size];for (int i = size - 1; i >= 0; i--) {res[i] = pop();}return res;}", "after": "public LookupResult[] GetResults(){int size = Count;var res = new LookupResult[size];for (int i = size - 1; i >= 0; i--){res[i] = Pop();}return res;}" }, { "index": 1283, "before": "public void add(Transition t) {if (transitions.length < next+3) {transitions = ArrayUtil.grow(transitions, next+3);}transitions[next] = t.dest;transitions[next+1] = t.min;transitions[next+2] = t.max;next += 3;}", "after": "public void Add(Transition t){if (transitions.Length == count){Transition[] newArray = new Transition[ArrayUtil.Oversize(1 + count, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];Array.Copy(transitions, 0, newArray, 0, count);transitions = newArray;}transitions[count++] = t;}" }, { "index": 1284, "before": "public String getFormatString(int formatIndex) {String format = null;if (formatIndex >= HSSFDataFormat.getNumberOfBuiltinBuiltinFormats()) {FormatRecord tfr = _customFormatRecords.get(Integer.valueOf(formatIndex));if (tfr == null) {logger.log( POILogger.ERROR, \"Requested format at index \" + formatIndex+ \", but it wasn't found\");} else {format = tfr.getFormatString();}} else {format = HSSFDataFormat.getBuiltinFormat((short) formatIndex);}return format;}", "after": "public String GetFormatString(int formatIndex){String format = null;if (formatIndex >= HSSFDataFormat.NumberOfBuiltinBuiltinFormats){FormatRecord tfr = (FormatRecord)customFormatRecords[formatIndex];if (tfr == null){logger.Log(POILogger.ERROR, \"Requested format at index \" + formatIndex + \", but it wasn't found\");}else{format = tfr.FormatString;}}else{format = HSSFDataFormat.GetBuiltinFormat((short)formatIndex);}return format;}" }, { "index": 1285, "before": "public DisassociateDelegateFromResourceResult disassociateDelegateFromResource(DisassociateDelegateFromResourceRequest request) {request = beforeClientExecution(request);return executeDisassociateDelegateFromResource(request);}", "after": "public virtual DisassociateDelegateFromResourceResponse DisassociateDelegateFromResource(DisassociateDelegateFromResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateDelegateFromResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateDelegateFromResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1286, "before": "public void readFully(byte[] dst, int offset, int byteCount) throws IOException {primitiveTypes.readFully(dst, offset, byteCount);}", "after": "public virtual void readFully(byte[] dst, int offset, int byteCount){throw new System.NotImplementedException();}" }, { "index": 1287, "before": "public StartDocumentClassificationJobResult startDocumentClassificationJob(StartDocumentClassificationJobRequest request) {request = beforeClientExecution(request);return executeStartDocumentClassificationJob(request);}", "after": "public virtual StartDocumentClassificationJobResponse StartDocumentClassificationJob(StartDocumentClassificationJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDocumentClassificationJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDocumentClassificationJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1288, "before": "public final float[] array() {return protectedArray();}", "after": "public sealed override object array(){return protectedArray();}" }, { "index": 1289, "before": "public void prunePacked() throws IOException {ObjectDirectory objdb = repo.getObjectDatabase();Collection packs = objdb.getPacks();File objects = repo.getObjectsDirectory();String[] fanout = objects.list();if (fanout != null && fanout.length > 0) {pm.beginTask(JGitText.get().pruneLoosePackedObjects, fanout.length);try {for (String d : fanout) {checkCancelled();pm.update(1);if (d.length() != 2)continue;String[] entries = new File(objects, d).list();if (entries == null)continue;for (String e : entries) {checkCancelled();if (e.length() != Constants.OBJECT_ID_STRING_LENGTH - 2)continue;ObjectId id;try {id = ObjectId.fromString(d + e);} catch (IllegalArgumentException notAnObject) {continue;}boolean found = false;for (PackFile p : packs) {checkCancelled();if (p.hasObject(id)) {found = true;break;}}if (found)FileUtils.delete(objdb.fileFor(id), FileUtils.RETRY| FileUtils.SKIP_MISSING| FileUtils.IGNORE_ERRORS);}}} finally {pm.endTask();}}}", "after": "public virtual void PrunePacked(){ObjectDirectory objdb = ((ObjectDirectory)repo.ObjectDatabase);ICollection packs = objdb.GetPacks();FilePath objects = repo.ObjectsDirectory;string[] fanout = objects.List();if (fanout != null && fanout.Length > 0){pm.BeginTask(JGitText.Get().pruneLoosePackedObjects, fanout.Length);try{foreach (string d in fanout){pm.Update(1);if (d.Length != 2){continue;}string[] entries = new FilePath(objects, d).List();if (entries == null){continue;}foreach (string e in entries){if (e.Length != Constants.OBJECT_ID_STRING_LENGTH - 2){continue;}ObjectId id;try{id = ObjectId.FromString(d + e);}catch (ArgumentException){continue;}bool found = false;foreach (PackFile p in packs){if (p.HasObject(id)){found = true;break;}}if (found){FileUtils.Delete(objdb.FileFor(id), FileUtils.RETRY | FileUtils.SKIP_MISSING | FileUtils.IGNORE_ERRORS);}}}}finally{pm.EndTask();}}}" }, { "index": 1290, "before": "public ListJobsByPipelineResult listJobsByPipeline(ListJobsByPipelineRequest request) {request = beforeClientExecution(request);return executeListJobsByPipeline(request);}", "after": "public virtual ListJobsByPipelineResponse ListJobsByPipeline(ListJobsByPipelineRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListJobsByPipelineRequestMarshaller.Instance;options.ResponseUnmarshaller = ListJobsByPipelineResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1291, "before": "public SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest() {super(\"Domain\", \"2018-01-29\", \"SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential\");setMethod(MethodType.POST);}", "after": "public SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest(): base(\"Domain-intl\", \"2017-12-18\", \"SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential\", \"domain\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 1292, "before": "public DeleteDhcpOptionsResult deleteDhcpOptions(DeleteDhcpOptionsRequest request) {request = beforeClientExecution(request);return executeDeleteDhcpOptions(request);}", "after": "public virtual DeleteDhcpOptionsResponse DeleteDhcpOptions(DeleteDhcpOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDhcpOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDhcpOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1293, "before": "public String getSheetLastNameByExternSheet(int externSheetIndex) {return _iBook.findSheetLastNameFromExternSheet(externSheetIndex);}", "after": "public String GetSheetLastNameByExternSheet(int externSheetIndex){return _iBook.FindSheetLastNameFromExternSheet(externSheetIndex);}" }, { "index": 1294, "before": "public InMemorySorter(Comparator comparator) {this.comparator = comparator;}", "after": "public InMemorySorter(IComparer comparer){this.comparer = comparer;}" }, { "index": 1295, "before": "public boolean isSymbolic() {return true;}", "after": "public virtual bool IsSymbolic(){return true;}" }, { "index": 1296, "before": "public static ValueEval chooseSingleElementFromArea(AreaEval ae,int srcCellRow, int srcCellCol) throws EvaluationException {ValueEval result = chooseSingleElementFromAreaInternal(ae, srcCellRow, srcCellCol);if (result instanceof ErrorEval) {throw new EvaluationException((ErrorEval) result);}return result;}", "after": "public static ValueEval ChooseSingleElementFromArea(AreaEval ae,int srcCellRow, int srcCellCol){ValueEval result = ChooseSingleElementFromAreaInternal(ae, srcCellRow, srcCellCol);if (result is ErrorEval){throw new EvaluationException((ErrorEval)result);}return result;}" }, { "index": 1297, "before": "public int freeBlocks(int num) {assert num >= 0 : \"free blocks must be >= 0 but was: \"+ num;final int stop;final int count;if (num > freeBlocks) {stop = 0;count = freeBlocks;} else {stop = freeBlocks - num;count = num;}while (freeBlocks > stop) {freeByteBlocks[--freeBlocks] = null;}bytesUsed.addAndGet(-count*blockSize);assert bytesUsed.get() >= 0;return count;}", "after": "public int FreeBlocks(int num){Debug.Assert(num >= 0, \"free blocks must be >= 0 but was: \" + num);int stop;int count;if (num > freeBlocks){stop = 0;count = freeBlocks;}else{stop = freeBlocks - num;count = num;}while (freeBlocks > stop){freeByteBlocks[--freeBlocks] = null;}bytesUsed.AddAndGet(-count * m_blockSize);Debug.Assert(bytesUsed.Get() >= 0);return count;}" }, { "index": 1298, "before": "public final static String htmlEncode(String plainText){if (plainText == null || plainText.length() == 0){return \"\";}StringBuilder result = new StringBuilder(plainText.length());for (int index=0; index':result.append(\">\");break;case '\\'':result.append(\"'\");break;case '/':result.append(\"/\");break;default:result.append(ch);}}return result.toString();}", "after": "public static string HtmlEncode(string plainText){if (string.IsNullOrEmpty(plainText)){return string.Empty;}var result = new StringBuilder(plainText.Length);for (int index = 0; index < plainText.Length; index++){char ch = plainText[index];switch (ch){case '\"':result.Append(\""\");break;case '&':result.Append(\"&\");break;case '<':result.Append(\"<\");break;case '>':result.Append(\">\");break;case '\\'':result.Append(\"'\");break;case '/':result.Append(\"/\");break;default:if (ch < 128){result.Append(ch);}else{result.Append(\"&#\").Append((int)ch).Append(\";\");}break;}}return result.ToString();}" }, { "index": 1299, "before": "public boolean isReuseDeltas() {return reuseDeltas;}", "after": "public virtual bool IsReuseDeltas(){return reuseDeltas;}" }, { "index": 1300, "before": "public static int headerLength(String codec) {return 9+codec.length();}", "after": "public static int HeaderLength(string codec){return 9 + codec.Length;}" }, { "index": 1301, "before": "public StartCelebrityRecognitionResult startCelebrityRecognition(StartCelebrityRecognitionRequest request) {request = beforeClientExecution(request);return executeStartCelebrityRecognition(request);}", "after": "public virtual StartCelebrityRecognitionResponse StartCelebrityRecognition(StartCelebrityRecognitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartCelebrityRecognitionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartCelebrityRecognitionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1302, "before": "public synchronized void write(byte[] buffer, int offset, int length) throws IOException {checkNotClosed();if (buffer == null) {throw new NullPointerException(\"buffer == null\");}byte[] internalBuffer = buf;if (length >= internalBuffer.length) {flushInternal();out.write(buffer, offset, length);return;}Arrays.checkOffsetAndCount(buffer.length, offset, length);if (length > (internalBuffer.length - count)) {flushInternal();}System.arraycopy(buffer, offset, internalBuffer, count, length);count += length;}", "after": "public override void write(byte[] buffer, int offset, int length){lock (this){checkNotClosed();if (buffer == null){throw new System.ArgumentNullException(\"buffer == null\");}byte[] internalBuffer = buf;if (length >= internalBuffer.Length){flushInternal();@out.write(buffer, offset, length);return;}java.util.Arrays.checkOffsetAndCount(buffer.Length, offset, length);if (length > (internalBuffer.Length - count)){flushInternal();}System.Array.Copy(buffer, offset, internalBuffer, count, length);count += length;}}" }, { "index": 1303, "before": "public int readRecordSID() {return _lei.readUShort();}", "after": "public int ReadRecordSID(){return _lei.ReadUShort();}" }, { "index": 1304, "before": "public ListProfileTimesResult listProfileTimes(ListProfileTimesRequest request) {request = beforeClientExecution(request);return executeListProfileTimes(request);}", "after": "public virtual ListProfileTimesResponse ListProfileTimes(ListProfileTimesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListProfileTimesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListProfileTimesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1305, "before": "public RevFilter clone() {final RevFilter[] s = new RevFilter[subfilters.length];for (int i = 0; i < s.length; i++)s[i] = subfilters[i].clone();return new List(s);}", "after": "public override TreeFilter Clone(){TreeFilter[] s = new TreeFilter[subfilters.Length];for (int i = 0; i < s.Length; i++){s[i] = subfilters[i].Clone();}return new OrTreeFilter.List(s);}" }, { "index": 1306, "before": "public Cluster modifyCluster(ModifyClusterRequest request) {request = beforeClientExecution(request);return executeModifyCluster(request);}", "after": "public virtual ModifyClusterResponse ModifyCluster(ModifyClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1307, "before": "public GetRouteResponsesResult getRouteResponses(GetRouteResponsesRequest request) {request = beforeClientExecution(request);return executeGetRouteResponses(request);}", "after": "public virtual GetRouteResponsesResponse GetRouteResponses(GetRouteResponsesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRouteResponsesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRouteResponsesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1308, "before": "synchronized public QueryMaker getQueryMaker(ReadTask readTask) {Class readTaskClass = readTask.getClass();QueryMaker qm = readTaskQueryMaker.get(readTaskClass);if (qm == null) {try {qm = qmkrClass.getConstructor().newInstance();qm.setConfig(config);} catch (Exception e) {throw new RuntimeException(e);}readTaskQueryMaker.put(readTaskClass,qm);}return qm;}", "after": "public virtual IQueryMaker GetQueryMaker(ReadTask readTask){lock (this){Type readTaskClass = readTask.GetType();IQueryMaker qm;if (!readTaskQueryMaker.TryGetValue(readTaskClass, out qm) || qm == null){try{qm = (IQueryMaker)Activator.CreateInstance(qmkrClass);qm.SetConfig(config);}catch (Exception e){throw new Exception(e.ToString(), e);}readTaskQueryMaker[readTaskClass] = qm;}return qm;}}" }, { "index": 1309, "before": "public boolean promptYesNo(String msg) {CredentialItem.YesNoType v = new CredentialItem.YesNoType(msg);return provider.get(uri, v) && v.getValue();}", "after": "public virtual bool PromptYesNo(string msg){CredentialItem.YesNoType v = new CredentialItem.YesNoType(msg);return provider.Get(uri, v) && v.GetValue();}" }, { "index": 1310, "before": "public String utf8ToString() {final char[] ref = new char[length];final int len = UnicodeUtil.UTF8toUTF16(bytes, offset, length, ref);return new String(ref, 0, len);}", "after": "public string Utf8ToString(){CharsRef @ref = new CharsRef(Length);UnicodeUtil.UTF8toUTF16(bytes, Offset, Length, @ref);return @ref.ToString();}" }, { "index": 1311, "before": "public ListCandidatesForAutoMLJobResult listCandidatesForAutoMLJob(ListCandidatesForAutoMLJobRequest request) {request = beforeClientExecution(request);return executeListCandidatesForAutoMLJob(request);}", "after": "public virtual ListCandidatesForAutoMLJobResponse ListCandidatesForAutoMLJob(ListCandidatesForAutoMLJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListCandidatesForAutoMLJobRequestMarshaller.Instance;options.ResponseUnmarshaller = ListCandidatesForAutoMLJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1312, "before": "public String toFormulaString(FormulaRenderingWorkbook book) {return book.resolveNameXText(this);}", "after": "public String ToFormulaString(IFormulaRenderingWorkbook book){return book.ResolveNameXText(this);}" }, { "index": 1313, "before": "public UpdateSkillGroupResult updateSkillGroup(UpdateSkillGroupRequest request) {request = beforeClientExecution(request);return executeUpdateSkillGroup(request);}", "after": "public virtual UpdateSkillGroupResponse UpdateSkillGroup(UpdateSkillGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSkillGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSkillGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1314, "before": "public String getValue() {return RawParseUtils.decode(enc, buffer, valStart, valEnd);}", "after": "public string GetValue(){return RawParseUtils.Decode(enc, buffer, valStart, valEnd);}" }, { "index": 1315, "before": "public ListAssociatedFleetsResult listAssociatedFleets(ListAssociatedFleetsRequest request) {request = beforeClientExecution(request);return executeListAssociatedFleets(request);}", "after": "public virtual ListAssociatedFleetsResponse ListAssociatedFleets(ListAssociatedFleetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAssociatedFleetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAssociatedFleetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1316, "before": "public void removeLastChild() {if ( children!=null ) {children.remove(children.size()-1);}}", "after": "public virtual void RemoveLastChild(){if (children != null){children.RemoveAt(children.Count - 1);}}" }, { "index": 1317, "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 << 6) | (byte1 >>> 2);final long byte2 = blocks[blocksOffset++] & 0xFF;final long byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 3) << 12) | (byte2 << 4) | (byte3 >>> 4);final long byte4 = blocks[blocksOffset++] & 0xFF;final long byte5 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 15) << 10) | (byte4 << 2) | (byte5 >>> 6);final long byte6 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte5 & 63) << 8) | byte6;}}", "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 << 6) | ((int)((uint)byte1 >> 2));int byte2 = blocks[blocksOffset++] & 0xFF;int byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 3) << 12) | (byte2 << 4) | ((int)((uint)byte3 >> 4));int byte4 = blocks[blocksOffset++] & 0xFF;int byte5 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 15) << 10) | (byte4 << 2) | ((int)((uint)byte5 >> 6));int byte6 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte5 & 63) << 8) | byte6;}}" }, { "index": 1318, "before": "public String describeParams() {StringBuilder sb = new StringBuilder();sb.append(\"\\t\").append(\"maxQueryTerms : \").append(maxQueryTerms).append(\"\\n\");sb.append(\"\\t\").append(\"minWordLen : \").append(minWordLen).append(\"\\n\");sb.append(\"\\t\").append(\"maxWordLen : \").append(maxWordLen).append(\"\\n\");sb.append(\"\\t\").append(\"fieldNames : \");String delim = \"\";for (String fieldName : fieldNames) {sb.append(delim).append(fieldName);delim = \", \";}sb.append(\"\\n\");sb.append(\"\\t\").append(\"boost : \").append(boost).append(\"\\n\");sb.append(\"\\t\").append(\"minTermFreq : \").append(minTermFreq).append(\"\\n\");sb.append(\"\\t\").append(\"minDocFreq : \").append(minDocFreq).append(\"\\n\");return sb.toString();}", "after": "public string DescribeParams(){StringBuilder sb = new StringBuilder();sb.Append(\"\\t\").Append(\"maxQueryTerms : \").Append(MaxQueryTerms).Append(\"\\n\");sb.Append(\"\\t\").Append(\"minWordLen : \").Append(MinWordLen).Append(\"\\n\");sb.Append(\"\\t\").Append(\"maxWordLen : \").Append(MaxWordLen).Append(\"\\n\");sb.Append(\"\\t\").Append(\"fieldNames : \");string delim = \"\";foreach (string fieldName in FieldNames){sb.Append(delim).Append(fieldName);delim = \", \";}sb.Append(\"\\n\");sb.Append(\"\\t\").Append(\"boost : \").Append(ApplyBoost).Append(\"\\n\");sb.Append(\"\\t\").Append(\"minTermFreq : \").Append(MinTermFreq).Append(\"\\n\");sb.Append(\"\\t\").Append(\"minDocFreq : \").Append(MinDocFreq).Append(\"\\n\");return sb.ToString();}" }, { "index": 1319, "before": "public RunScheduledInstancesResult runScheduledInstances(RunScheduledInstancesRequest request) {request = beforeClientExecution(request);return executeRunScheduledInstances(request);}", "after": "public virtual RunScheduledInstancesResponse RunScheduledInstances(RunScheduledInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RunScheduledInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = RunScheduledInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1320, "before": "public static boolean isValidExcelDate(double value){return (value > -Double.MIN_VALUE);}", "after": "public static bool IsValidExcelDate(double value){return value > -Double.Epsilon;}" }, { "index": 1321, "before": "public CreateBranchCommand setForce(boolean force) {checkCallable();this.force = force;return this;}", "after": "public virtual NGit.Api.CreateBranchCommand SetForce(bool force){CheckCallable();this.force = force;return this;}" }, { "index": 1322, "before": "public AbstractEscherHolderRecord(RecordInputStream in) {if (! DESERIALISE ) {rawDataContainer.concatenate(in.readRemainder());} else {byte[] data = in.readAllContinuedRemainder();convertToEscherRecords( 0, data.length, data );}}", "after": "public AbstractEscherHolderRecord(RecordInputStream in1){escherRecords = new List();if (!DESERIALISE){rawDataContainer.Concatenate(in1.ReadRemainder());}else{byte[] data = in1.ReadAllContinuedRemainder();ConvertToEscherRecords(0, data.Length, data);}}" }, { "index": 1323, "before": "public int next(int n) {currentSentence += n;if (n < 0) {if (text.getIndex() == text.getEndIndex()) {++currentSentence;}if (currentSentence < 0) {currentSentence = 0;text.setIndex(text.getBeginIndex());return DONE;} else {text.setIndex(sentenceStarts[currentSentence]);}} else if (n > 0) {if (currentSentence >= sentenceStarts.length) {currentSentence = sentenceStarts.length - 1;text.setIndex(text.getEndIndex());return DONE;} else {text.setIndex(sentenceStarts[currentSentence]);}}return current();}", "after": "public override int Next(int n){currentSentence += n;if (n < 0){if (text.Index == text.EndIndex){++currentSentence;}if (currentSentence < 0){currentSentence = 0;text.SetIndex(text.BeginIndex);return Done;}else{text.SetIndex(sentenceStarts[currentSentence]);}}else if (n > 0){if (currentSentence >= sentenceStarts.Length){currentSentence = sentenceStarts.Length - 1;text.SetIndex(text.EndIndex);return Done;}else{text.SetIndex(sentenceStarts[currentSentence]);}}return Current;}" }, { "index": 1324, "before": "public boolean equals(Object obj) {if (this == obj) return true;if (obj == null) return false;if (getClass() != obj.getClass()) return false;RunAutomaton other = (RunAutomaton) obj;if (alphabetSize != other.alphabetSize) return false;if (size != other.size) return false;if (!Arrays.equals(points, other.points)) return false;if (!accept.equals(other.accept)) return false;if (!Arrays.equals(transitions, other.transitions)) return false;return true;}", "after": "public override bool Equals(object obj){if (this == obj){return true;}if (obj == null){return false;}if (this.GetType() != obj.GetType()){return false;}RunAutomaton other = (RunAutomaton)obj;if (m_initial != other.m_initial){return false;}if (_maxInterval != other._maxInterval){return false;}if (_size != other._size){return false;}if (!Arrays.Equals(_points, other._points)){return false;}if (!Arrays.Equals(m_accept, other.m_accept)){return false;}if (!Arrays.Equals(m_transitions, other.m_transitions)){return false;}return true;}" }, { "index": 1325, "before": "public void setOffset(long offset) {this.offset = offset;}", "after": "public virtual void SetOffset(long offset){this.offset = offset;}" }, { "index": 1326, "before": "public DescribeKeyPairsResult describeKeyPairs() {return describeKeyPairs(new DescribeKeyPairsRequest());}", "after": "public virtual DescribeKeyPairsResponse DescribeKeyPairs(){return DescribeKeyPairs(new DescribeKeyPairsRequest());}" }, { "index": 1327, "before": "public ParseTree get(String label) {List parseTrees = labels.get(label);if ( parseTrees==null || parseTrees.size()==0 ) {return null;}return parseTrees.get( parseTrees.size()-1 ); }", "after": "public virtual IParseTree Get(string label){IList parseTrees = labels.Get(label);if (parseTrees == null || parseTrees.Count == 0){return null;}return parseTrees[parseTrees.Count - 1];}" }, { "index": 1328, "before": "public ListRecordsResult listRecords(ListRecordsRequest request) {request = beforeClientExecution(request);return executeListRecords(request);}", "after": "public virtual ListRecordsResponse ListRecords(ListRecordsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRecordsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRecordsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1329, "before": "public DetectStackResourceDriftResult detectStackResourceDrift(DetectStackResourceDriftRequest request) {request = beforeClientExecution(request);return executeDetectStackResourceDrift(request);}", "after": "public virtual DetectStackResourceDriftResponse DetectStackResourceDrift(DetectStackResourceDriftRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectStackResourceDriftRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectStackResourceDriftResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1330, "before": "public String encodeText(String originalText){return htmlEncode(originalText);}", "after": "public string EncodeText(string originalText){return HtmlEncode(originalText);}" }, { "index": 1331, "before": "public Collection evaluate(ParseTree t) {if ( invert ) return new ArrayList(); return Trees.getDescendants(t);}", "after": "public override ICollection Evaluate(IParseTree t){if (invert){return new List();}return Trees.Descendants(t);}" }, { "index": 1332, "before": "public DeleteUsagePlanKeyResult deleteUsagePlanKey(DeleteUsagePlanKeyRequest request) {request = beforeClientExecution(request);return executeDeleteUsagePlanKey(request);}", "after": "public virtual DeleteUsagePlanKeyResponse DeleteUsagePlanKey(DeleteUsagePlanKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUsagePlanKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUsagePlanKeyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1333, "before": "public String getLocalName() {return localName;}", "after": "public virtual string GetLocalName(){return localName;}" }, { "index": 1334, "before": "public DeleteDocumentResult deleteDocument(DeleteDocumentRequest request) {request = beforeClientExecution(request);return executeDeleteDocument(request);}", "after": "public virtual DeleteDocumentResponse DeleteDocument(DeleteDocumentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDocumentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDocumentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1335, "before": "public int getExternalSheetIndex(String sheetName) {int sheetIndex = _uBook.getSheetIndex(sheetName);return _iBook.checkExternSheet(sheetIndex);}", "after": "public int GetExternalSheetIndex(String sheetName){int sheetIndex = _uBook.GetSheetIndex(sheetName);return _iBook.CheckExternSheet(sheetIndex);}" }, { "index": 1336, "before": "public IdentityEncoder(Charset charset) {this.charset = charset;}", "after": "public IdentityEncoder(Encoding charset){this.m_charset = charset;}" }, { "index": 1337, "before": "public static SupBookRecord createInternalReferences(short numberOfSheets) {return new SupBookRecord(false, numberOfSheets);}", "after": "public static SupBookRecord CreateInternalReferences(short numberOfSheets){return new SupBookRecord(false, numberOfSheets);}" }, { "index": 1338, "before": "public DBInstance createDBInstanceReadReplica(CreateDBInstanceReadReplicaRequest request) {request = beforeClientExecution(request);return executeCreateDBInstanceReadReplica(request);}", "after": "public virtual CreateDBInstanceReadReplicaResponse CreateDBInstanceReadReplica(CreateDBInstanceReadReplicaRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBInstanceReadReplicaRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBInstanceReadReplicaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1339, "before": "public DescribePartnerEventSourceResult describePartnerEventSource(DescribePartnerEventSourceRequest request) {request = beforeClientExecution(request);return executeDescribePartnerEventSource(request);}", "after": "public virtual DescribePartnerEventSourceResponse DescribePartnerEventSource(DescribePartnerEventSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePartnerEventSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePartnerEventSourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1340, "before": "public EnterStandbyResult enterStandby(EnterStandbyRequest request) {request = beforeClientExecution(request);return executeEnterStandby(request);}", "after": "public virtual EnterStandbyResponse EnterStandby(EnterStandbyRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnterStandbyRequestMarshaller.Instance;options.ResponseUnmarshaller = EnterStandbyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1341, "before": "public ParseException generateParseException() {jj_expentries.clear();boolean[] la1tokens = new boolean[24];if (jj_kind >= 0) {la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 10; i++) {if (jj_la1[i] == jj_gen) {for (int j = 0; j < 32; j++) {if ((jj_la1_0[i] & (1<= 0){la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 21; i++){if (jj_la1[i] == jj_gen){for (int j = 0; j < 32; j++){if ((jj_la1_0[i] & (1 << j)) != 0){la1tokens[j] = true;}if ((jj_la1_1[i] & (1 << j)) != 0){la1tokens[32 + j] = true;}}}}for (int i = 0; i < 33; i++){if (la1tokens[i]){jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.Add(jj_expentry);}}jj_endpos = 0;Jj_rescan_token();Jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.Count][];for (int i = 0; i < jj_expentries.Count; i++){exptokseq[i] = jj_expentries[i];}return new ParseException(Token, exptokseq, QueryParserConstants.TokenImage);}" }, { "index": 1342, "before": "public CreateCloudFrontOriginAccessIdentityRequest(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig) {setCloudFrontOriginAccessIdentityConfig(cloudFrontOriginAccessIdentityConfig);}", "after": "public CreateCloudFrontOriginAccessIdentityRequest(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig){_cloudFrontOriginAccessIdentityConfig = cloudFrontOriginAccessIdentityConfig;}" }, { "index": 1343, "before": "public ResetFpgaImageAttributeResult resetFpgaImageAttribute(ResetFpgaImageAttributeRequest request) {request = beforeClientExecution(request);return executeResetFpgaImageAttribute(request);}", "after": "public virtual ResetFpgaImageAttributeResponse ResetFpgaImageAttribute(ResetFpgaImageAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetFpgaImageAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetFpgaImageAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1344, "before": "public void serialize(ContinuableRecordOutput out) {out.writeInt(_numStrings);out.writeInt(_numUniqueStrings);for ( int k = 0; k < strings.size(); k++ ){if (k % ExtSSTRecord.DEFAULT_BUCKET_SIZE == 0){int rOff = out.getTotalSize();int index = k/ExtSSTRecord.DEFAULT_BUCKET_SIZE;if (index < ExtSSTRecord.MAX_BUCKETS) {bucketAbsoluteOffsets[index] = rOff;bucketRelativeOffsets[index] = rOff;}}UnicodeString s = getUnicodeString(k);s.serialize(out);}}", "after": "public void Serialize(ContinuableRecordOutput out1){out1.WriteInt(_numStrings);out1.WriteInt(_numUniqueStrings);for (int k = 0; k < strings.Size; k++){if (k % ExtSSTRecord.DEFAULT_BUCKET_SIZE == 0){int rOff = out1.TotalSize;int index = k / ExtSSTRecord.DEFAULT_BUCKET_SIZE;if (index < ExtSSTRecord.MAX_BUCKETS){bucketAbsoluteOffsets[index] = rOff;bucketRelativeOffsets[index] = rOff;}}UnicodeString s = GetUnicodeString(k);s.Serialize(out1);}}" }, { "index": 1345, "before": "public DeleteGroupMembershipResult deleteGroupMembership(DeleteGroupMembershipRequest request) {request = beforeClientExecution(request);return executeDeleteGroupMembership(request);}", "after": "public virtual DeleteGroupMembershipResponse DeleteGroupMembership(DeleteGroupMembershipRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGroupMembershipRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGroupMembershipResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1346, "before": "public GetHostedZoneCountResult getHostedZoneCount() {return getHostedZoneCount(new GetHostedZoneCountRequest());}", "after": "public virtual GetHostedZoneCountResponse GetHostedZoneCount(){return GetHostedZoneCount(new GetHostedZoneCountRequest());}" }, { "index": 1347, "before": "public NameXPtg getNameXPtg(String name, int sheetRefIndex) {for (int i = 0; i < _externalBookBlocks.length; i++) {int definedNameIndex = _externalBookBlocks[i].getIndexOfName(name);if (definedNameIndex < 0) {continue;}int thisSheetRefIndex = findRefIndexFromExtBookIndex(i);if (thisSheetRefIndex >= 0) {if (sheetRefIndex == -1 || thisSheetRefIndex == sheetRefIndex) {return new NameXPtg(thisSheetRefIndex, definedNameIndex);}}}return null;}", "after": "public NameXPtg GetNameXPtg(String name, int sheetRefIndex){for (int i = 0; i < _externalBookBlocks.Length; i++){int definedNameIndex = _externalBookBlocks[i].GetIndexOfName(name);if (definedNameIndex < 0){continue;}int thisSheetRefIndex = FindRefIndexFromExtBookIndex(i);if (thisSheetRefIndex >= 0){if (sheetRefIndex == -1 || thisSheetRefIndex == sheetRefIndex){return new NameXPtg(thisSheetRefIndex, definedNameIndex);}}}return null;}" }, { "index": 1348, "before": "public E pop() {return removeFirstImpl();}", "after": "public virtual E pop(){return removeFirstImpl();}" }, { "index": 1349, "before": "public void set(ET object) {if (expectedModCount == list.modCount) {if (lastLink != null) {lastLink.data = object;} else {throw new IllegalStateException();}} else {throw new ConcurrentModificationException();}}", "after": "public void set(ET @object){if (expectedModCount == list.modCount){if (lastLink != null){lastLink.data = @object;}else{throw new System.InvalidOperationException();}}else{throw new java.util.ConcurrentModificationException();}}" }, { "index": 1350, "before": "public ElisionFilterFactory(Map args) {super(args);articlesFile = get(args, \"articles\");ignoreCase = getBoolean(args, \"ignoreCase\", false);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public ElisionFilterFactory(IDictionary args) : base(args){articlesFile = Get(args, \"articles\");ignoreCase = GetBoolean(args, \"ignoreCase\", false);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 1351, "before": "public int[] grow() {final int[] ord = super.grow();if (start.length < ord.length) {start = ArrayUtil.grow(start, ord.length);end = ArrayUtil.grow(end, ord.length);freq = ArrayUtil.grow(freq, ord.length);}assert start.length >= ord.length;assert end.length >= ord.length;assert freq.length >= ord.length;return ord;}", "after": "public override int[] Grow(){int[] ord = base.Grow();if (start.Length < ord.Length){start = ArrayUtil.Grow(start, ord.Length);end = ArrayUtil.Grow(end, ord.Length);freq = ArrayUtil.Grow(freq, ord.Length);}Debug.Assert(start.Length >= ord.Length);Debug.Assert(end.Length >= ord.Length);Debug.Assert(freq.Length >= ord.Length);return ord;}" }, { "index": 1352, "before": "public GetPersonalizedRankingResult getPersonalizedRanking(GetPersonalizedRankingRequest request) {request = beforeClientExecution(request);return executeGetPersonalizedRanking(request);}", "after": "public virtual GetPersonalizedRankingResponse GetPersonalizedRanking(GetPersonalizedRankingRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPersonalizedRankingRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPersonalizedRankingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1353, "before": "public ObjectId getObjectId() {return ObjectId.fromRaw(idBuffer(), idOffset());}", "after": "public virtual ObjectId GetObjectId(){return ObjectId.FromRaw(IdBuffer, IdOffset);}" }, { "index": 1354, "before": "public void serialize(LittleEndianOutput out) {out.writeInt(getFirstRow());out.writeInt(getLastRow());out.writeShort(getFirstCol());out.writeShort(getLastCol());out.writeShort(( short ) 0);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(FirstRow);out1.WriteInt(LastRow);out1.WriteShort(FirstCol);out1.WriteShort(LastCol);out1.WriteShort(( short ) 0);}" }, { "index": 1355, "before": "public RmCommand(Repository repo) {super(repo);filepatterns = new LinkedList<>();}", "after": "protected internal RmCommand(Repository repo) : base(repo){filepatterns = new List();}" }, { "index": 1356, "before": "public void recover(Parser recognizer, RecognitionException e) {for (ParserRuleContext context = recognizer.getContext(); context != null; context = context.getParent()) {context.exception = e;}throw new ParseCancellationException(e);}", "after": "public override void Recover(Parser recognizer, RecognitionException e){for (ParserRuleContext context = recognizer.Context; context != null; context = ((ParserRuleContext)context.Parent)){context.exception = e;}throw new ParseCanceledException(e);}" }, { "index": 1357, "before": "public static BATBlock createBATBlock(final POIFSBigBlockSize bigBlockSize, ByteBuffer data){BATBlock block = new BATBlock(bigBlockSize);byte[] buffer = new byte[LittleEndian.INT_SIZE];for(int i=0; i= 0.0 && startDateAsNumber < 1.0) {startDateAsNumber = 1.0;}Date startDate = DateUtil.getJavaDate(startDateAsNumber, false);Calendar cal = LocaleUtil.getLocaleCalendar();cal.setTime(startDate);cal.clear(Calendar.HOUR);cal.set(Calendar.HOUR_OF_DAY, 0);cal.clear(Calendar.MINUTE);cal.clear(Calendar.SECOND);cal.clear(Calendar.MILLISECOND);cal.add(Calendar.MONTH, months + 1);cal.set(Calendar.DAY_OF_MONTH, 1);cal.add(Calendar.DAY_OF_MONTH, -1);return new NumberEval(DateUtil.getExcelDate(cal.getTime()));} catch (EvaluationException e) {return e.getErrorEval();}}", "after": "public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){if (args.Length != 2){return ErrorEval.VALUE_INVALID;}try{double startDateAsNumber = NumericFunction.SingleOperandEvaluate(args[0], ec.RowIndex, ec.ColumnIndex);int months = (int)NumericFunction.SingleOperandEvaluate(args[1], ec.RowIndex, ec.ColumnIndex);if (startDateAsNumber >= 0.0 && startDateAsNumber < 1.0){startDateAsNumber = 1.0;}DateTime startDate = DateUtil.GetJavaDate(startDateAsNumber, false);DateTime dtEnd = startDate.AddMonths(months);dtEnd = dtEnd.AddMonths(1);dtEnd = new DateTime(dtEnd.Year, dtEnd.Month, 1);dtEnd = dtEnd.AddDays(-1);return new NumberEval(DateUtil.GetExcelDate(dtEnd));}catch (EvaluationException e){return e.GetErrorEval();}}" }, { "index": 1364, "before": "public UnicodeString getSSTString(int str) {if (sst == null) {insertSST();}UnicodeString retval = sst.getString(str);LOG.log(DEBUG, \"Returning SST for index=\", str, \" String= \", retval);return retval;}", "after": "public UnicodeString GetSSTString(int str){if (sst == null){InsertSST();}UnicodeString retval = sst.GetString(str);return retval;}" }, { "index": 1365, "before": "public String quote(String in) {final StringBuilder r = new StringBuilder();r.append('\\'');int start = 0, i = 0;for (; i < in.length(); i++) {switch (in.charAt(i)) {case '\\'':case '!':r.append(in, start, i);r.append('\\'');r.append('\\\\');r.append(in.charAt(i));r.append('\\'');start = i + 1;break;}}r.append(in, start, i);r.append('\\'');return r.toString();}", "after": "public override string Quote(string @in){StringBuilder r = new StringBuilder();r.Append('\\'');int start = 0;int i = 0;for (; i < @in.Length; i++){switch (@in[i]){case '\\'':case '!':{r.AppendRange(@in, start, i);r.Append('\\'');r.Append('\\\\');r.Append(@in[i]);r.Append('\\'');start = i + 1;break;}}}r.AppendRange(@in, start, i);r.Append('\\'');return r.ToString();}" }, { "index": 1366, "before": "public void clear() {lastElement = 0;currentOffset = 0;Arrays.fill(offsets, 0);pool.reset(false, true); }", "after": "public void Clear(){lastElement = 0;currentOffset = 0;Array.Clear(offsets, 0, offsets.Length);pool.Reset(false, true); }" }, { "index": 1367, "before": "public ReplaceableItem(String name, java.util.List attributes) {setName(name);setAttributes(attributes);}", "after": "public ReplaceableItem(string name, List attributes){_name = name;_attributes = attributes;}" }, { "index": 1368, "before": "public int getScore() {return score;}", "after": "public virtual int GetScore(){return score;}" }, { "index": 1369, "before": "public IrishLowerCaseFilter(TokenStream in) {super(in);}", "after": "public IrishLowerCaseFilter(TokenStream @in): base(@in){termAtt = AddAttribute();}" }, { "index": 1370, "before": "public synchronized void setSecondaryProgress(int secondaryProgress) {if (mIndeterminate) {return;}if (secondaryProgress < 0) {secondaryProgress = 0;}if (secondaryProgress > mMax) {secondaryProgress = mMax;}if (secondaryProgress != mSecondaryProgress) {mSecondaryProgress = secondaryProgress;refreshProgress(R.id.secondaryProgress, mSecondaryProgress, false);}}", "after": "public virtual void setSecondaryProgress(int secondaryProgress){lock (this){if (mIndeterminate){return;}if (secondaryProgress < 0){secondaryProgress = 0;}if (secondaryProgress > mMax){secondaryProgress = mMax;}if (secondaryProgress != mSecondaryProgress){mSecondaryProgress = secondaryProgress;refreshProgress(android.@internal.R.id.secondaryProgress, mSecondaryProgress, false);}}}" }, { "index": 1371, "before": "public static byte[] grow(byte[] array) {return grow(array, 1 + array.length);}", "after": "public static short[] Grow(short[] array){return Grow(array, 1 + array.Length);}" }, { "index": 1372, "before": "public List getHiddenTokensToRight(int tokenIndex) {return getHiddenTokensToRight(tokenIndex, -1);}", "after": "public virtual IList GetHiddenTokensToRight(int tokenIndex){return GetHiddenTokensToRight(tokenIndex, -1);}" }, { "index": 1373, "before": "public DataValidityTable() {_headerRec = new DVALRecord();_validationList = new ArrayList<>();}", "after": "public DataValidityTable(){_headerRec = new DVALRecord();_validationList = new ArrayList();}" }, { "index": 1374, "before": "public EvaluationException(ErrorEval errorEval) {_errorEval = errorEval;}", "after": "public EvaluationException(ErrorEval errorEval){_errorEval = errorEval;}" }, { "index": 1375, "before": "public UpdateConfigurationTemplateRequest(String applicationName, String templateName) {setApplicationName(applicationName);setTemplateName(templateName);}", "after": "public UpdateConfigurationTemplateRequest(string applicationName, string templateName){_applicationName = applicationName;_templateName = templateName;}" }, { "index": 1376, "before": "public DescribeAvailabilityZonesResult describeAvailabilityZones(DescribeAvailabilityZonesRequest request) {request = beforeClientExecution(request);return executeDescribeAvailabilityZones(request);}", "after": "public virtual DescribeAvailabilityZonesResponse DescribeAvailabilityZones(DescribeAvailabilityZonesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAvailabilityZonesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAvailabilityZonesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1377, "before": "public static int idealShortArraySize(int need) {return idealByteArraySize(need * 2) / 2;}", "after": "public static int idealShortArraySize(int need){return idealByteArraySize(need * 2) / 2;}" }, { "index": 1378, "before": "public NumericPayloadTokenFilterFactory(Map args) {super(args);payload = requireFloat(args, \"payload\");typeMatch = require(args, \"typeMatch\");if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public NumericPayloadTokenFilterFactory(IDictionary args) : base(args){payload = RequireSingle(args, \"payload\");typeMatch = Require(args, \"typeMatch\");if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 1379, "before": "public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int j = 0; j < iterations; ++j) {values[valuesOffset++] = blocks[blocksOffset++] & 0xFF;}}", "after": "public override void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int j = 0; j < iterations; ++j){values[valuesOffset++] = blocks[blocksOffset++] & 0xFF;}}" }, { "index": 1380, "before": "public DescribeResourcePermissionsResult describeResourcePermissions(DescribeResourcePermissionsRequest request) {request = beforeClientExecution(request);return executeDescribeResourcePermissions(request);}", "after": "public virtual DescribeResourcePermissionsResponse DescribeResourcePermissions(DescribeResourcePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeResourcePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeResourcePermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1381, "before": "public TokenStream create(TokenStream input) {return map.fst == null ? input : new SynonymFilter(input, map, ignoreCase);}", "after": "public override TokenStream Create(TokenStream input){return delegator.Create(input);}" }, { "index": 1382, "before": "public List getRuleInvocationStack() {return getRuleInvocationStack(_ctx);}", "after": "public virtual IList GetRuleInvocationStack(){return GetRuleInvocationStack(_ctx);}" }, { "index": 1383, "before": "public void write(String s) {reserve(s.length());s.getChars(0,s.length(),buf, len);len +=s.length();}", "after": "public virtual void Write(char b){if (m_len >= m_buf.Length){Resize(m_len + 1);}UnsafeWrite(b);}" }, { "index": 1384, "before": "public void clear() {map.clear();}", "after": "public virtual void Clear(){map.Clear();}" }, { "index": 1385, "before": "public DeleteWorkteamResult deleteWorkteam(DeleteWorkteamRequest request) {request = beforeClientExecution(request);return executeDeleteWorkteam(request);}", "after": "public virtual DeleteWorkteamResponse DeleteWorkteam(DeleteWorkteamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteWorkteamRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteWorkteamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1386, "before": "public String toString() {return \"(\" + a.toString() + \" OR \" + b.toString() + \")\";}", "after": "public override string ToString(){return \"(\" + a.ToString() + \" AND \" + b.ToString() + \")\";}" }, { "index": 1387, "before": "public TreeFilter clone() {final TreeFilter[] s = new TreeFilter[subfilters.length];for (int i = 0; i < s.length; i++)s[i] = subfilters[i].clone();return new List(s);}", "after": "public override TreeFilter Clone(){TreeFilter[] s = new TreeFilter[subfilters.Length];for (int i = 0; i < s.Length; i++){s[i] = subfilters[i].Clone();}return new AndTreeFilter.List(s);}" }, { "index": 1388, "before": "public String toString() {StringBuilder buf = new StringBuilder();buf.append(\"DiffEntry[\");buf.append(changeType);buf.append(\" \");switch (changeType) {case ADD:buf.append(newPath);break;case COPY:buf.append(oldPath + \"->\" + newPath);break;case DELETE:buf.append(oldPath);break;case MODIFY:buf.append(oldPath);break;case RENAME:buf.append(oldPath + \"->\" + newPath);break;}buf.append(\"]\");return buf.toString();}", "after": "public override string ToString(){StringBuilder buf = new StringBuilder();buf.Append(\"DiffEntry[\");buf.Append(changeType);buf.Append(\" \");switch (changeType){case DiffEntry.ChangeType.ADD:{buf.Append(newPath);break;}case DiffEntry.ChangeType.COPY:{buf.Append(oldPath + \"->\" + newPath);break;}case DiffEntry.ChangeType.DELETE:{buf.Append(oldPath);break;}case DiffEntry.ChangeType.MODIFY:{buf.Append(oldPath);break;}case DiffEntry.ChangeType.RENAME:{buf.Append(oldPath + \"->\" + newPath);break;}}buf.Append(\"]\");return buf.ToString();}" }, { "index": 1389, "before": "public CreateRepositoryResult createRepository(CreateRepositoryRequest request) {request = beforeClientExecution(request);return executeCreateRepository(request);}", "after": "public virtual CreateRepositoryResponse CreateRepository(CreateRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRepositoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1390, "before": "public static String toHex(String value) {return (value == null || value.length() == 0)? \"[]\": toHex(value.getBytes(LocaleUtil.CHARSET_1252));}", "after": "public static string ToHex(int value){return ToHex((long)value, 8);}" }, { "index": 1391, "before": "public LineFormatRecord(RecordInputStream in) {field_1_lineColor = in.readInt();field_2_linePattern = in.readShort();field_3_weight = in.readShort();field_4_format = in.readShort();field_5_colourPaletteIndex = in.readShort();}", "after": "public LineFormatRecord(RecordInputStream in1){field_1_lineColor = in1.ReadInt();field_2_linePattern = in1.ReadShort();field_3_weight = in1.ReadShort();field_4_format = in1.ReadShort();field_5_colourPaletteIndex = in1.ReadShort();}" }, { "index": 1392, "before": "public DescribeClusterResult describeCluster(DescribeClusterRequest request) {request = beforeClientExecution(request);return executeDescribeCluster(request);}", "after": "public virtual DescribeClusterResponse DescribeCluster(DescribeClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1393, "before": "public UserAgentConfig getUserAgentConfig() {return userAgentConfig;}", "after": "public UserAgent GetUserAgentConfig(){return userAgentConfig;}" }, { "index": 1394, "before": "public float getTokenScore() {String termText = termAtt.toString();WeightedTerm queryTerm = termsToFind.get(termText);if (queryTerm == null) {return 0;}if (!uniqueTermsInFragment.contains(termText)) {totalScore += queryTerm.getWeight();uniqueTermsInFragment.add(termText);}return queryTerm.getWeight();}", "after": "public virtual float GetTokenScore(){string termText = termAtt.ToString();WeightedTerm queryTerm;if (!termsToFind.TryGetValue(termText, out queryTerm) || queryTerm == null){return 0;}if (!uniqueTermsInFragment.Contains(termText)){totalScore += queryTerm.Weight;uniqueTermsInFragment.Add(termText);}return queryTerm.Weight;}" }, { "index": 1395, "before": "public void clear() {arrays.clear();}", "after": "public void Clear(){arrays.Clear();}" }, { "index": 1396, "before": "public DescribeEndpointsResult describeEndpoints(DescribeEndpointsRequest request) {request = beforeClientExecution(request);return executeDescribeEndpoints(request);}", "after": "public virtual DescribeEndpointsResponse DescribeEndpoints(DescribeEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEndpointsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1397, "before": "public String toString() {return \"PATH(\\\"\" + pathStr + \"\\\")\";}", "after": "public override string ToString(){return \"PATH(\\\"\" + pathStr + \"\\\")\";}" }, { "index": 1398, "before": "public DictionaryCompoundWordTokenFilterFactory(Map args) {super(args);dictFile = require(args, \"dictionary\");minWordSize = getInt(args, \"minWordSize\", CompoundWordTokenFilterBase.DEFAULT_MIN_WORD_SIZE);minSubwordSize = getInt(args, \"minSubwordSize\", CompoundWordTokenFilterBase.DEFAULT_MIN_SUBWORD_SIZE);maxSubwordSize = getInt(args, \"maxSubwordSize\", CompoundWordTokenFilterBase.DEFAULT_MAX_SUBWORD_SIZE);onlyLongestMatch = getBoolean(args, \"onlyLongestMatch\", true);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public DictionaryCompoundWordTokenFilterFactory(IDictionary args): base(args){AssureMatchVersion();dictFile = Require(args, \"dictionary\");minWordSize = GetInt32(args, \"minWordSize\", CompoundWordTokenFilterBase.DEFAULT_MIN_WORD_SIZE);minSubwordSize = GetInt32(args, \"minSubwordSize\", CompoundWordTokenFilterBase.DEFAULT_MIN_SUBWORD_SIZE);maxSubwordSize = GetInt32(args, \"maxSubwordSize\", CompoundWordTokenFilterBase.DEFAULT_MAX_SUBWORD_SIZE);onlyLongestMatch = GetBoolean(args, \"onlyLongestMatch\", true);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 1399, "before": "public final void writeFloat(float val) throws IOException {writeInt(Float.floatToIntBits(val));}", "after": "public virtual void writeFloat(float val){throw new System.NotImplementedException();}" }, { "index": 1400, "before": "public char[] toCharArray() {char newbuf[] = new char[size()];System.arraycopy(buf, 0, newbuf, 0, size());return newbuf;}", "after": "public virtual char[] ToCharArray(){char[] newbuf = new char[Length];System.Array.Copy(m_buf, 0, newbuf, 0, Length);return newbuf;}" }, { "index": 1401, "before": "public IntervalSet getExpectedTokens() {if (recognizer != null) {return recognizer.getATN().getExpectedTokens(offendingState, ctx);}return null;}", "after": "public virtual IntervalSet GetExpectedTokens(){if (recognizer != null){return recognizer.Atn.GetExpectedTokens(offendingState, ctx);}return null;}" }, { "index": 1402, "before": "public HindiNormalizationFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public HindiNormalizationFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 1403, "before": "public UpdateUserIdentityInfoResult updateUserIdentityInfo(UpdateUserIdentityInfoRequest request) {request = beforeClientExecution(request);return executeUpdateUserIdentityInfo(request);}", "after": "public virtual UpdateUserIdentityInfoResponse UpdateUserIdentityInfo(UpdateUserIdentityInfoRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateUserIdentityInfoRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateUserIdentityInfoResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1404, "before": "public Allocator(int blockSize) {this.blockSize = blockSize;}", "after": "public Allocator(int blockSize){this.m_blockSize = blockSize;}" }, { "index": 1405, "before": "public NoteMapMerger(Repository db, NoteMerger noteMerger,MergeStrategy nonNotesMergeStrategy) {this.db = db;this.reader = db.newObjectReader();this.inserter = db.newObjectInserter();this.noteMerger = noteMerger;this.nonNotesMergeStrategy = nonNotesMergeStrategy;this.objectIdPrefix = new MutableObjectId();}", "after": "public NoteMapMerger(Repository db, NoteMerger noteMerger, MergeStrategy nonNotesMergeStrategy){this.db = db;this.reader = db.NewObjectReader();this.inserter = db.NewObjectInserter();this.noteMerger = noteMerger;this.nonNotesMergeStrategy = nonNotesMergeStrategy;this.objectIdPrefix = new MutableObjectId();}" }, { "index": 1406, "before": "public ListAliasesResult listAliases(ListAliasesRequest request) {request = beforeClientExecution(request);return executeListAliases(request);}", "after": "public virtual ListAliasesResponse ListAliases(ListAliasesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAliasesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAliasesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1407, "before": "public STSAssumeRoleSessionCredentialsProvider withRoleSessionName(String roleSessionName) {this.roleSessionName = roleSessionName;return this;}", "after": "public void WithRoleSessionName(string roleSessionName){this.roleSessionName = roleSessionName;}" }, { "index": 1408, "before": "public IntList(int capacity) {entries = new int[capacity];}", "after": "public IntList(int capacity){entries = new int[capacity];}" }, { "index": 1409, "before": "public Result getResult() {return result;}", "after": "public virtual ReceiveCommand.Result GetResult(){return status;}" }, { "index": 1410, "before": "public int size() {return count;}", "after": "public virtual int Size(){return count;}" }, { "index": 1411, "before": "public DescribeAccountAttributesResult describeAccountAttributes() {return describeAccountAttributes(new DescribeAccountAttributesRequest());}", "after": "public virtual DescribeAccountAttributesResponse DescribeAccountAttributes(){return DescribeAccountAttributes(new DescribeAccountAttributesRequest());}" }, { "index": 1412, "before": "public String toString() {return \"G\";}", "after": "public override string ToString(){return \"G\";}" }, { "index": 1413, "before": "public StoredField(String name, double value) {super(name, TYPE);fieldsData = value;}", "after": "public StoredField(string name, long value): base(name, TYPE){FieldsData = new Int64(value);}" }, { "index": 1414, "before": "public GroupedFacetResult(int size, int minCount, boolean orderByCount, int totalCount, int totalMissingCount) {this.facetEntries = new TreeSet<>(orderByCount ? orderByCountAndValue : orderByValue);this.totalMissingCount = totalMissingCount;this.totalCount = totalCount;maxSize = size;currentMin = minCount;}", "after": "public GroupedFacetResult(int size, int minCount, bool orderByCount, int totalCount, int totalMissingCount){this.facetEntries = new JCG.SortedSet(orderByCount ? orderByCountAndValue : orderByValue);this.totalMissingCount = totalMissingCount;this.totalCount = totalCount;maxSize = size;currentMin = minCount;}" }, { "index": 1415, "before": "public FieldInfo fieldInfo(String fieldName) {return byName.get(fieldName);}", "after": "public virtual FieldInfo FieldInfo(string fieldName){FieldInfo ret;byName.TryGetValue(fieldName, out ret);return ret;}" }, { "index": 1416, "before": "public int regionStart() {return regionStart;}", "after": "public int regionStart(){return _regionStart;}" }, { "index": 1417, "before": "public int getPort() {return Host.this.getPort();}", "after": "public virtual int GetPort(){return port;}" }, { "index": 1418, "before": "public InterruptTimer(String threadName) {state = new AlarmState();autoKiller = new AutoKiller(state);thread = new AlarmThread(threadName, state);thread.start();}", "after": "public InterruptTimer(string threadName){state = new InterruptTimer.AlarmState();autoKiller = new InterruptTimer.AutoKiller(state);thread = new InterruptTimer.AlarmThread(threadName, state);thread.Start();}" }, { "index": 1419, "before": "public HighFrequencyDictionary(IndexReader reader, String field, float thresh) {this.reader = reader;this.field = field;this.thresh = thresh;}", "after": "public HighFrequencyDictionary(IndexReader reader, string field, float thresh){this.reader = reader;this.field = field;this.thresh = thresh;}" }, { "index": 1420, "before": "public ModifyDBProxyTargetGroupResult modifyDBProxyTargetGroup(ModifyDBProxyTargetGroupRequest request) {request = beforeClientExecution(request);return executeModifyDBProxyTargetGroup(request);}", "after": "public virtual ModifyDBProxyTargetGroupResponse ModifyDBProxyTargetGroup(ModifyDBProxyTargetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBProxyTargetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBProxyTargetGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1421, "before": "public void close() throws IOException {input.close();}", "after": "public override void close(){throw new System.NotImplementedException();}" }, { "index": 1422, "before": "public void reset() {arriving = -1;leaving = -1;}", "after": "public void Reset(){arriving = null;leaving = null;}" }, { "index": 1423, "before": "public SetLoadBalancerListenerSSLCertificateRequest(String loadBalancerName, Integer loadBalancerPort, String sSLCertificateId) {setLoadBalancerName(loadBalancerName);setLoadBalancerPort(loadBalancerPort);setSSLCertificateId(sSLCertificateId);}", "after": "public SetLoadBalancerListenerSSLCertificateRequest(string loadBalancerName, int loadBalancerPort, string sslCertificateId){_loadBalancerName = loadBalancerName;_loadBalancerPort = loadBalancerPort;_sslCertificateId = sslCertificateId;}" }, { "index": 1424, "before": "public SpanTermQuery(Term term) {this.term = Objects.requireNonNull(term);this.termStates = null;}", "after": "public SpanTermQuery(Term term){this.m_term = term;}" }, { "index": 1425, "before": "public long ramBytesUsed() {long ramBytesUsed = postingsReader.ramBytesUsed();for (TermsReader r : fields.values()) {ramBytesUsed += r.ramBytesUsed();}return ramBytesUsed;}", "after": "public override long RamBytesUsed(){long sizeInByes = ((postingsReader != null) ? postingsReader.RamBytesUsed() : 0);foreach (FieldReader reader in fields.Values){sizeInByes += reader.RamBytesUsed();}return sizeInByes;}" }, { "index": 1426, "before": "public boolean equals(Object o) {if (this.getClass() != o.getClass()) return false;DocFreqValueSource other = (DocFreqValueSource)o;return this.indexedField.equals(other.indexedField) && this.indexedBytes.equals(other.indexedBytes);}", "after": "public override bool Equals(object o){if (this.GetType() != o.GetType()){return false;}var other = (DocFreqValueSource)o;return this.m_indexedField.Equals(other.m_indexedField, StringComparison.Ordinal) && this.m_indexedBytes.Equals(other.m_indexedBytes);}" }, { "index": 1427, "before": "public Term getLucenePrefixTerm(String fieldName) {return new Term(fieldName, getPrefix());}", "after": "public virtual Term GetLucenePrefixTerm(string fieldName){return new Term(fieldName, Prefix);}" }, { "index": 1428, "before": "public Collection evaluate(ParseTree t) {return Trees.findAllTokenNodes(t, tokenType);}", "after": "public override ICollection Evaluate(IParseTree t){return Trees.FindAllTokenNodes(t, tokenType);}" }, { "index": 1429, "before": "public static Signer getSigner(AlibabaCloudCredentials credentials) {if (credentials instanceof KeyPairCredentials) {return SHA256_WITH_RSA_SIGNER;} else if (credentials instanceof BearerTokenCredentials) {return BEARER_TOKEN_SIGNER;} else {return HMACSHA1_SIGNER;}}", "after": "public static Signer GetSigner(AlibabaCloudCredentials credentials){if (credentials is BearerTokenCredential){return bearerTokenSigner;}return credentials is KeyPairCredentials ? sha256withRSASigner : hmacSHA1Signer;}" }, { "index": 1430, "before": "public PutAccountSendingAttributesResult putAccountSendingAttributes(PutAccountSendingAttributesRequest request) {request = beforeClientExecution(request);return executePutAccountSendingAttributes(request);}", "after": "public virtual PutAccountSendingAttributesResponse PutAccountSendingAttributes(PutAccountSendingAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAccountSendingAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAccountSendingAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1431, "before": "public static String getExtension(String filename) {final int idx = filename.indexOf('.');if (idx == -1) {return null;} else {return filename.substring(idx + 1, filename.length());}}", "after": "public static string GetExtension(string filename){int idx = filename.IndexOf('.');if (idx == -1){return null;}else{return filename.Substring(idx + 1, filename.Length - (idx + 1));}}" }, { "index": 1432, "before": "public RunJobFlowResult runJobFlow(RunJobFlowRequest request) {request = beforeClientExecution(request);return executeRunJobFlow(request);}", "after": "public virtual RunJobFlowResponse RunJobFlow(RunJobFlowRequest request){var options = new InvokeOptions();options.RequestMarshaller = RunJobFlowRequestMarshaller.Instance;options.ResponseUnmarshaller = RunJobFlowResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1433, "before": "public int lastLength() {return lastLength;}", "after": "public virtual int LastLength(){return lastLength;}" }, { "index": 1434, "before": "public ListStreamConsumersResult listStreamConsumers(ListStreamConsumersRequest request) {request = beforeClientExecution(request);return executeListStreamConsumers(request);}", "after": "public virtual ListStreamConsumersResponse ListStreamConsumers(ListStreamConsumersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStreamConsumersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStreamConsumersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1435, "before": "public static SimpleFraction buildFractionMaxDenominator(double value, int maxDenominator){return buildFractionMaxDenominator(value, 0, maxDenominator, 100);}", "after": "public static SimpleFraction BuildFractionMaxDenominator(double value, int maxDenominator){return BuildFractionMaxDenominator(value, 0, maxDenominator, 100);}" }, { "index": 1436, "before": "public void seekExact(BytesRef term, TermState state) {throw new IllegalStateException(\"this method should never be called\");}", "after": "public virtual void SeekExact(BytesRef term, TermState state){if (!SeekExact(term)){throw new System.ArgumentException(\"term=\" + term + \" does not exist\");}}" }, { "index": 1437, "before": "public LsRemoteCommand setUploadPack(String uploadPack) {this.uploadPack = uploadPack;return this;}", "after": "public virtual NGit.Api.LsRemoteCommand SetUploadPack(string uploadPack){this.uploadPack = uploadPack;return this;}" }, { "index": 1438, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE) {final String hex;if (numberVE instanceof RefEval) {RefEval re = (RefEval) numberVE;hex = OperandResolver.coerceValueToString(re.getInnerValueEval(re.getFirstSheetIndex()));} else {hex = OperandResolver.coerceValueToString(numberVE);}try {return new NumberEval(BaseNumberUtils.convertToDecimal(hex, HEXADECIMAL_BASE, MAX_NUMBER_OF_PLACES));} catch (IllegalArgumentException e) {return ErrorEval.NUM_ERROR;}}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE){String hex;if (numberVE is RefEval){RefEval re = (RefEval)numberVE;hex = OperandResolver.CoerceValueToString(re.GetInnerValueEval(re.FirstSheetIndex));}else{hex = OperandResolver.CoerceValueToString(numberVE);}try{return new NumberEval(BaseNumberUtils.ConvertToDecimal(hex, HEXADECIMAL_BASE, MAX_NUMBER_OF_PLACES));}catch (ArgumentException){return ErrorEval.NUM_ERROR;}}" }, { "index": 1439, "before": "public DescribeInstancesResult describeInstances() {return describeInstances(new DescribeInstancesRequest());}", "after": "public virtual DescribeInstancesResponse DescribeInstances(){return DescribeInstances(new DescribeInstancesRequest());}" }, { "index": 1440, "before": "public Collection call() throws GitAPIException,InvalidRefNameException {checkCallable();try {if (repo.exactRef(Constants.R_STASH) == null)return Collections.emptyList();} catch (IOException e) {throw new InvalidRefNameException(MessageFormat.format(JGitText.get().cannotRead, Constants.R_STASH), e);}final ReflogCommand refLog = new ReflogCommand(repo);refLog.setRef(Constants.R_STASH);final Collection stashEntries = refLog.call();if (stashEntries.isEmpty())return Collections.emptyList();final List stashCommits = new ArrayList<>(stashEntries.size());try (RevWalk walk = new RevWalk(repo)) {for (ReflogEntry entry : stashEntries) {try {stashCommits.add(walk.parseCommit(entry.getNewId()));} catch (IOException e) {throw new JGitInternalException(MessageFormat.format(JGitText.get().cannotReadCommit, entry.getNewId()),e);}}}return stashCommits;}", "after": "public override ICollection Call(){CheckCallable();try{if (repo.GetRef(Constants.R_STASH) == null){return Sharpen.Collections.EmptyList();}}catch (IOException e){throw new InvalidRefNameException(MessageFormat.Format(JGitText.Get().cannotRead,Constants.R_STASH), e);}ReflogCommand refLog = new ReflogCommand(repo);refLog.SetRef(Constants.R_STASH);ICollection stashEntries = refLog.Call();if (stashEntries.IsEmpty()){return Sharpen.Collections.EmptyList();}IList stashCommits = new AList(stashEntries.Count);RevWalk walk = new RevWalk(repo);walk.SetRetainBody(true);try{foreach (ReflogEntry entry in stashEntries){try{stashCommits.AddItem(walk.ParseCommit(entry.GetNewId()));}catch (IOException e){throw new JGitInternalException(MessageFormat.Format(JGitText.Get().cannotReadCommit, entry.GetNewId()), e);}}}finally{walk.Dispose();}return stashCommits;}" }, { "index": 1441, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeByte(field_1_error_code);}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteByte((byte)field_1_error_code);}" }, { "index": 1442, "before": "public PutAccountSettingResult putAccountSetting(PutAccountSettingRequest request) {request = beforeClientExecution(request);return executePutAccountSetting(request);}", "after": "public virtual PutAccountSettingResponse PutAccountSetting(PutAccountSettingRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAccountSettingRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAccountSettingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1443, "before": "public static CharacterBuffer newCharacterBuffer(final int bufferSize) {if (bufferSize < 2) {throw new IllegalArgumentException(\"buffersize must be >= 2\");}return new CharacterBuffer(new char[bufferSize], 0, 0);}", "after": "public static CharacterBuffer NewCharacterBuffer(int bufferSize){if (bufferSize < 2){throw new ArgumentException(\"buffersize must be >= 2\");}return new CharacterBuffer(new char[bufferSize], 0, 0);}" }, { "index": 1444, "before": "public int getLevelForDistance(double dist) {if (dist == 0)return maxLevels;for (int i = 0; i < maxLevels-1; i++) {if(dist > levelW[i] && dist > levelH[i]) {return i+1;}}return maxLevels;}", "after": "public override int GetLevelForDistance(double dist){if (dist == 0){return m_maxLevels;}int level = GeohashUtils.LookupHashLenForWidthHeight(dist, dist);return Math.Max(Math.Min(level, m_maxLevels), 1);}" }, { "index": 1445, "before": "public Query makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf) {return makeLuceneQueryNoBoost(qf); }", "after": "public override Search.Query MakeLuceneQueryFieldNoBoost(string fieldName, BasicQueryFactory qf){return MakeLuceneQueryNoBoost(qf); }" }, { "index": 1446, "before": "public ListDedicatedIpPoolsResult listDedicatedIpPools(ListDedicatedIpPoolsRequest request) {request = beforeClientExecution(request);return executeListDedicatedIpPools(request);}", "after": "public virtual ListDedicatedIpPoolsResponse ListDedicatedIpPools(ListDedicatedIpPoolsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDedicatedIpPoolsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDedicatedIpPoolsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1447, "before": "public static ValueVector createVector(RefEval re) {return new SheetVector(re);}", "after": "public static ValueVector CreateVector(RefEval re){return new SheetVector(re);}" }, { "index": 1448, "before": "public RemoveNoteCommand setObjectId(RevObject id) {checkCallable();this.id = id;return this;}", "after": "public virtual NGit.Api.RemoveNoteCommand SetObjectId(RevObject id){CheckCallable();this.id = id;return this;}" }, { "index": 1449, "before": "public int getSheetIndex(String sheetName) {return _uBook.getSheetIndex(sheetName);}", "after": "public int GetSheetIndex(String sheetName){return _uBook.GetSheetIndex(sheetName);}" }, { "index": 1450, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_chartGroupIndex);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_chartGroupIndex);}" }, { "index": 1451, "before": "public FontFormatting() {setFontHeight(-1);setItalic(false);setFontWieghtModified(false);setOutline(false);setShadow(false);setStrikeout(false);setEscapementType((short)0);setUnderlineType((byte)0);setFontColorIndex((short)-1);setFontStyleModified(false);setFontOutlineModified(false);setFontShadowModified(false);setFontCancellationModified(false);setEscapementTypeModified(false);setUnderlineTypeModified(false);setShort(OFFSET_FONT_NAME, 0);setInt(OFFSET_NOT_USED1, 0x00000001);setInt(OFFSET_NOT_USED2, 0x00000000);setInt(OFFSET_NOT_USED3, 0x7FFFFFFF);setShort(OFFSET_FONT_FORMATING_END, 0x0001);}", "after": "public FontFormatting():this(new byte[RAW_DATA_SIZE]){FontHeight=-1;IsItalic=false;IsFontWeightModified=false;IsOutlineOn=false;IsShadowOn=false;IsStruckout=false;EscapementType=(FontSuperScript)0;UnderlineType=(FontUnderlineType)0;FontColorIndex=(short)-1;IsFontStyleModified=false;IsFontOutlineModified=false;IsFontShadowModified=false;IsFontCancellationModified=false;IsEscapementTypeModified=false;IsUnderlineTypeModified=false;SetShort(OFFSET_FONT_NAME, 0);SetInt(OFFSET_NOT_USED1, 0x00000001);SetInt(OFFSET_NOT_USED2, 0x00000000);SetInt(OFFSET_NOT_USED3, 0x7FFFFFFF);SetShort(OFFSET_FONT_FORMATING_END, 0x0001);}" }, { "index": 1452, "before": "public GetFacetResult getFacet(GetFacetRequest request) {request = beforeClientExecution(request);return executeGetFacet(request);}", "after": "public virtual GetFacetResponse GetFacet(GetFacetRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFacetRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFacetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1453, "before": "public IndexInput clone() {return (IndexInput) super.clone();}", "after": "public override object Clone(){return (IndexInput)base.Clone();}" }, { "index": 1454, "before": "public String toFormulaString(){throw new RuntimeException(\"Table and Arrays are not yet supported\");}", "after": "public override String ToFormulaString(){throw new RecordFormatException(\"Table and Arrays are not yet supported\");}" }, { "index": 1455, "before": "public StartFleetResult startFleet(StartFleetRequest request) {request = beforeClientExecution(request);return executeStartFleet(request);}", "after": "public virtual StartFleetResponse StartFleet(StartFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = StartFleetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1456, "before": "public static FontFamily valueOf(int nativeId) {for (FontFamily ff : values()) {if (ff.nativeId == nativeId) {return ff;}}return null;}", "after": "public static FontFamily ValueOf(int family){switch(family){case 0: return NOT_APPLICABLE;case 1: return ROMAN;case 2: return SWISS;case 3: return MODERN;case 4: return SCRIPT;case 5: return DECORATIVE;}return NOT_APPLICABLE;}" }, { "index": 1457, "before": "public synchronized boolean isEmpty() {return size == 0;}", "after": "public override bool isEmpty(){lock (this){return _size == 0;}}" }, { "index": 1458, "before": "public static String encodeBytes(byte[] source) {return encodeBytes(source, 0, source.length);}", "after": "public static string EncodeBytes(byte[] source){return EncodeBytes(source, 0, source.Length);}" }, { "index": 1459, "before": "public DescribeBackupsResult describeBackups(DescribeBackupsRequest request) {request = beforeClientExecution(request);return executeDescribeBackups(request);}", "after": "public virtual DescribeBackupsResponse DescribeBackups(DescribeBackupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeBackupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeBackupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1460, "before": "public ReflectionMethodRecordCreator(Method m) {_m = m;}", "after": "public ReflectionMethodRecordCreator(MethodInfo m){_m = m;}" }, { "index": 1461, "before": "public static int resolvesToJustOneViableAlt(Collection altsets) {return getSingleViableAlt(altsets);}", "after": "public static int ResolvesToJustOneViableAlt(IEnumerable altsets){return GetSingleViableAlt(altsets);}" }, { "index": 1462, "before": "public GetGatewayResult getGateway(GetGatewayRequest request) {request = beforeClientExecution(request);return executeGetGateway(request);}", "after": "public virtual GetGatewayResponse GetGateway(GetGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = GetGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1463, "before": "public void onFilterComplete(int count) {updateDropDownForFilter(count);}", "after": "public virtual void onFilterComplete(int count){updateDropDownForFilter(count);}" }, { "index": 1464, "before": "public boolean isReadOnly() {return true;}", "after": "public override bool isReadOnly(){return true;}" }, { "index": 1465, "before": "public FreeRefFunction findUserDefinedFunction(String functionName) {return _bookEvaluator.findUserDefinedFunction(functionName);}", "after": "public FreeRefFunction FindUserDefinedFunction(String functionName){return _bookEvaluator.FindUserDefinedFunction(functionName);}" }, { "index": 1466, "before": "public boolean equals(Object obj) {if (!(obj instanceof PrecedencePredicate)) {return false;}if (this == obj) {return true;}PrecedencePredicate other = (PrecedencePredicate)obj;return this.precedence == other.precedence;}", "after": "public override bool Equals(object obj){if (!(obj is SemanticContext.PrecedencePredicate)){return false;}if (this == obj){return true;}SemanticContext.PrecedencePredicate other = (SemanticContext.PrecedencePredicate)obj;return this.precedence == other.precedence;}" }, { "index": 1467, "before": "public int getStringWidth(String str){int width = 0;for (int i = 0; i < str.length(); i++){width += getCharWidth(str.charAt(i));}return width;}", "after": "public int GetStringWidth(String str){int width = 0;for (int i = 0; i < str.Length; i++){width += GetCharWidth(str[i]);}return width;}" }, { "index": 1468, "before": "public ByteVector(byte[] a) {blockSize = DEFAULT_BLOCK_SIZE;array = a;n = 0;}", "after": "public ByteVector(byte[] a){blockSize = DEFAULT_BLOCK_SIZE;array = a;n = 0;}" }, { "index": 1469, "before": "public DeleteVerifiedEmailAddressResult deleteVerifiedEmailAddress(DeleteVerifiedEmailAddressRequest request) {request = beforeClientExecution(request);return executeDeleteVerifiedEmailAddress(request);}", "after": "public virtual DeleteVerifiedEmailAddressResponse DeleteVerifiedEmailAddress(DeleteVerifiedEmailAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVerifiedEmailAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVerifiedEmailAddressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1470, "before": "public DescribeScalingActivitiesResult describeScalingActivities(DescribeScalingActivitiesRequest request) {request = beforeClientExecution(request);return executeDescribeScalingActivities(request);}", "after": "public virtual DescribeScalingActivitiesResponse DescribeScalingActivities(DescribeScalingActivitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScalingActivitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScalingActivitiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1471, "before": "public SimpleQueryParser(Analyzer analyzer, String field) {this(analyzer, Collections.singletonMap(field, 1.0F));}", "after": "public SimpleQueryParser(Analyzer analyzer, string field): this(analyzer, new JCG.Dictionary() { { field, 1.0F } }" }, { "index": 1472, "before": "final public SrndQuery AndQuery() throws ParseException {SrndQuery q;ArrayList queries = null;Token oprt = null;q = NotQuery();label_3:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case AND:;break;default:jj_la1[1] = jj_gen;break label_3;}oprt = jj_consume_token(AND);if (queries == null) {queries = new ArrayList();queries.add(q);}q = NotQuery();queries.add(q);}{if (true) return (queries == null) ? q : getAndQuery(queries, true , oprt);}throw new Error(\"Missing return statement in function\");}", "after": "public SrndQuery AndQuery(){SrndQuery q;IList queries = null;Token oprt = null;q = NotQuery();while (true){switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.AND:;break;default:jj_la1[1] = jj_gen;goto label_3;}oprt = Jj_consume_token(RegexpToken.AND);if (queries == null){queries = new List();queries.Add(q);}q = NotQuery();queries.Add(q);}label_3:{ if (true) return (queries == null) ? q : GetAndQuery(queries, true , oprt); }throw new Exception(\"Missing return statement in function\");}" }, { "index": 1473, "before": "public final int get() {if (position == limit) {throw new BufferUnderflowException();}return backingArray[offset + position++];}", "after": "public sealed override int get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return backingArray[offset + _position++];}" }, { "index": 1474, "before": "public AddJobFlowStepsRequest(String jobFlowId, java.util.List steps) {setJobFlowId(jobFlowId);setSteps(steps);}", "after": "public AddJobFlowStepsRequest(string jobFlowId, List steps){_jobFlowId = jobFlowId;_steps = steps;}" }, { "index": 1475, "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": 1476, "before": "public static String toHex(short value) {StringBuilder sb = new StringBuilder(4);writeHex(sb, value & 0xFFFF, 4, \"\");return sb.toString();}", "after": "public static string ToHex(short value){return ToHex((long)value, 4);}" }, { "index": 1477, "before": "public static String stripSegmentName(String filename) {int idx = indexOfSegmentName(filename);if (idx != -1) {filename = filename.substring(idx);}return filename;}", "after": "public static string StripSegmentName(string filename){int idx = IndexOfSegmentName(filename);if (idx != -1){filename = filename.Substring(idx);}return filename;}" }, { "index": 1478, "before": "public InvalidMarkException(String detailMessage) {super(detailMessage);}", "after": "public InvalidMarkException(string detailMessage) : base(detailMessage){throw new System.NotImplementedException();}" }, { "index": 1479, "before": "public V nextElement() { return nextEntryNotFailFast().value; }", "after": "public V nextElement(){return this.nextEntryNotFailFast().value;}" }, { "index": 1480, "before": "public boolean equals(Object o) {if (o instanceof PersonIdent) {final PersonIdent p = (PersonIdent) o;return getName().equals(p.getName())&& getEmailAddress().equals(p.getEmailAddress())&& when / 1000L == p.when / 1000L;}return false;}", "after": "public override bool Equals(object o){if (o is NGit.PersonIdent){NGit.PersonIdent p = (NGit.PersonIdent)o;return GetName().Equals(p.GetName()) && GetEmailAddress().Equals(p.GetEmailAddress()) && when / 1000L == p.when / 1000L;}return false;}" }, { "index": 1481, "before": "public DetectKeyPhrasesResult detectKeyPhrases(DetectKeyPhrasesRequest request) {request = beforeClientExecution(request);return executeDetectKeyPhrases(request);}", "after": "public virtual DetectKeyPhrasesResponse DetectKeyPhrases(DetectKeyPhrasesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectKeyPhrasesRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectKeyPhrasesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1482, "before": "public long skip(long byteCount) throws IOException {return Streams.skipByReading(this, byteCount);}", "after": "public override long skip(long byteCount){throw new System.NotImplementedException();}" }, { "index": 1483, "before": "public ByteBuffer get(byte[] dst) {return get(dst, 0, dst.length);}", "after": "public virtual java.nio.ByteBuffer get(byte[] dst){return get(dst, 0, dst.Length);}" }, { "index": 1484, "before": "public void setHideObj(short hide){field_1_hide_obj = hide;}", "after": "public void SetHideObj(short hide){field_1_hide_obj = hide;}" }, { "index": 1485, "before": "public final void setLastColumnRaw(short column) {field_4_last_column = column;}", "after": "public void SetLastColumnRaw(short column){field_4_last_column = column;}" }, { "index": 1486, "before": "public static PrintCellComments valueOf(int value){return _table[value];}", "after": "public static PrintCellComments ValueOf(int value){return _table[value];}" }, { "index": 1487, "before": "public DBInstance deleteDBInstance(DeleteDBInstanceRequest request) {request = beforeClientExecution(request);return executeDeleteDBInstance(request);}", "after": "public virtual DeleteDBInstanceResponse DeleteDBInstance(DeleteDBInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1488, "before": "public String require(Map args, String name) {String s = args.remove(name);if (s == null) {throw new IllegalArgumentException(\"Configuration Error: missing parameter '\" + name + \"'\");}return s;}", "after": "public virtual string Require(IDictionary args, string name){string s;if (!args.TryGetValue(name, out s)){throw new System.ArgumentException(\"Configuration Error: missing parameter '\" + name + \"'\");}args.Remove(name);return s;}" }, { "index": 1489, "before": "public CompositeReaderContext build() {return (CompositeReaderContext) build(null, reader, 0, 0);}", "after": "public override WAH8DocIdSet Build(){if (this.wordNum != -1){AddWord(wordNum, (byte)word);}return base.Build();}" }, { "index": 1490, "before": "public GetImageLayerRequest() {super(\"cr\", \"2016-06-07\", \"GetImageLayer\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/layers\");setMethod(MethodType.GET);}", "after": "public GetImageLayerRequest(): base(\"cr\", \"2016-06-07\", \"GetImageLayer\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/layers\";Method = MethodType.GET;}" }, { "index": 1491, "before": "public ParameterNameValue(String parameterName) {setParameterName(parameterName);}", "after": "public ParameterNameValue(string parameterName){_parameterName = parameterName;}" }, { "index": 1492, "before": "public CreateDirectConnectGatewayAssociationProposalResult createDirectConnectGatewayAssociationProposal(CreateDirectConnectGatewayAssociationProposalRequest request) {request = beforeClientExecution(request);return executeCreateDirectConnectGatewayAssociationProposal(request);}", "after": "public virtual CreateDirectConnectGatewayAssociationProposalResponse CreateDirectConnectGatewayAssociationProposal(CreateDirectConnectGatewayAssociationProposalRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDirectConnectGatewayAssociationProposalRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDirectConnectGatewayAssociationProposalResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1493, "before": "public ListResourceDelegatesResult listResourceDelegates(ListResourceDelegatesRequest request) {request = beforeClientExecution(request);return executeListResourceDelegates(request);}", "after": "public virtual ListResourceDelegatesResponse ListResourceDelegates(ListResourceDelegatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListResourceDelegatesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListResourceDelegatesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1494, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE, ValueEval placesVE) {ValueEval veText1;try {veText1 = OperandResolver.getSingleValue(numberVE, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {return e.getErrorEval();}String strText1 = OperandResolver.coerceValueToString(veText1);Double number = OperandResolver.parseDouble(strText1);if (number == null) {return ErrorEval.VALUE_INVALID;}if (number.longValue() < MIN_VALUE || number.longValue() > MAX_VALUE) {return ErrorEval.NUM_ERROR;}int placesNumber;if (number < 0 || placesVE == null) {placesNumber = DEFAULT_PLACES_VALUE;} else {ValueEval placesValueEval;try {placesValueEval = OperandResolver.getSingleValue(placesVE, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {return e.getErrorEval();}String placesStr = OperandResolver.coerceValueToString(placesValueEval);Double placesNumberDouble = OperandResolver.parseDouble(placesStr);if (placesNumberDouble == null) {return ErrorEval.VALUE_INVALID;}placesNumber = placesNumberDouble.intValue();if (placesNumber < 0 || placesNumber == 0) {return ErrorEval.NUM_ERROR;}}String binary = Integer.toBinaryString(number.intValue());if (binary.length() > DEFAULT_PLACES_VALUE) {binary = binary.substring(binary.length() - DEFAULT_PLACES_VALUE);}if (binary.length() > placesNumber) {return ErrorEval.NUM_ERROR;}return new StringEval(binary);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE, ValueEval placesVE){ValueEval veText1;try{veText1 = OperandResolver.GetSingleValue(numberVE, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){return e.GetErrorEval();}String strText1 = OperandResolver.CoerceValueToString(veText1);Double number = OperandResolver.ParseDouble(strText1);if (double.IsNaN(number)){return ErrorEval.VALUE_INVALID;}if (number< MinValue || number > MaxValue){return ErrorEval.NUM_ERROR;}int placesNumber;if (number < 0 || placesVE == null){placesNumber = DEFAULT_PLACES_VALUE;}else{ValueEval placesValueEval;try{placesValueEval = OperandResolver.GetSingleValue(placesVE, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){return e.GetErrorEval();}String placesStr = OperandResolver.CoerceValueToString(placesValueEval);Double placesNumberDouble = OperandResolver.ParseDouble(placesStr);if (double.IsNaN( placesNumberDouble)){return ErrorEval.VALUE_INVALID;}placesNumber = (int)Math.Floor(placesNumberDouble);if (placesNumber < 0 || placesNumber == 0){return ErrorEval.NUM_ERROR;}}String binary = Convert.ToString((int)Math.Floor(number), 2);if (binary.Length > DEFAULT_PLACES_VALUE){binary = binary.Substring(binary.Length - DEFAULT_PLACES_VALUE);}if (binary.Length > placesNumber){return ErrorEval.NUM_ERROR;}return new StringEval(binary);}" }, { "index": 1495, "before": "public static int checkHeaderNoMagic(DataInput in, String codec, int minVersion, int maxVersion) throws IOException {final String actualCodec = in.readString();if (!actualCodec.equals(codec)) {throw new CorruptIndexException(\"codec mismatch: actual codec=\" + actualCodec + \" vs expected codec=\" + codec, in);}final int actualVersion = in.readInt();if (actualVersion < minVersion) {throw new IndexFormatTooOldException(in, actualVersion, minVersion, maxVersion);}if (actualVersion > maxVersion) {throw new IndexFormatTooNewException(in, actualVersion, minVersion, maxVersion);}return actualVersion;}", "after": "public static int CheckHeaderNoMagic(DataInput @in, string codec, int minVersion, int maxVersion){string actualCodec = @in.ReadString();if (!actualCodec.Equals(codec, StringComparison.Ordinal)){throw new System.IO.IOException(\"codec mismatch: actual codec=\" + actualCodec + \" vs expected codec=\" + codec + \" (resource: \" + @in + \")\");}int actualVersion = @in.ReadInt32();if (actualVersion < minVersion){throw new System.IO.IOException(\"Version: \" + actualVersion + \" is not supported. Minimum Version number is \" + minVersion + \".\");}if (actualVersion > maxVersion){throw new System.IO.IOException(\"Version: \" + actualVersion + \" is not supported. Maximum Version number is \" + maxVersion + \".\");}return actualVersion;}" }, { "index": 1496, "before": "public DescribeDefaultParametersResult describeDefaultParameters(DescribeDefaultParametersRequest request) {request = beforeClientExecution(request);return executeDescribeDefaultParameters(request);}", "after": "public virtual DescribeDefaultParametersResponse DescribeDefaultParameters(DescribeDefaultParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDefaultParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDefaultParametersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1497, "before": "public SimpleSpanFragmenter(QueryScorer queryScorer, int fragmentSize) {this.fragmentSize = fragmentSize;this.queryScorer = queryScorer;}", "after": "public SimpleSpanFragmenter(QueryScorer queryScorer, int fragmentSize){this.fragmentSize = fragmentSize;this.queryScorer = queryScorer;}" }, { "index": 1498, "before": "public CreateApplicationResult createApplication(CreateApplicationRequest request) {request = beforeClientExecution(request);return executeCreateApplication(request);}", "after": "public virtual CreateApplicationResponse CreateApplication(CreateApplicationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1499, "before": "public URIish getURI() {return uri;}", "after": "public virtual URIish GetURI(){return uri;}" }, { "index": 1500, "before": "public DeleteConferenceProviderResult deleteConferenceProvider(DeleteConferenceProviderRequest request) {request = beforeClientExecution(request);return executeDeleteConferenceProvider(request);}", "after": "public virtual DeleteConferenceProviderResponse DeleteConferenceProvider(DeleteConferenceProviderRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteConferenceProviderRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteConferenceProviderResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1501, "before": "public byte setByte(final byte holder){return ( byte ) set(holder);}", "after": "public byte SetByte(byte holder){return (byte)this.Set(holder);}" }, { "index": 1502, "before": "public PipedInputStream(PipedOutputStream out) throws IOException {connect(out);}", "after": "public PipedInputStream(java.io.PipedOutputStream @out){throw new System.NotImplementedException();}" }, { "index": 1503, "before": "public IntBuffer slice() {byteBuffer.limit(limit * SizeOf.INT);byteBuffer.position(position * SizeOf.INT);ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());IntBuffer result = new IntToByteBufferAdapter(bb);byteBuffer.clear();return result;}", "after": "public override java.nio.IntBuffer slice(){byteBuffer.limit(_limit * libcore.io.SizeOf.INT);byteBuffer.position(_position * libcore.io.SizeOf.INT);java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());java.nio.IntBuffer result = new java.nio.IntToByteBufferAdapter(bb);byteBuffer.clear();return result;}" }, { "index": 1504, "before": "public CreateDeploymentConfigResult createDeploymentConfig(CreateDeploymentConfigRequest request) {request = beforeClientExecution(request);return executeCreateDeploymentConfig(request);}", "after": "public virtual CreateDeploymentConfigResponse CreateDeploymentConfig(CreateDeploymentConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDeploymentConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDeploymentConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1505, "before": "public HSSFColor findColor(byte red, byte green, byte blue){byte[] b = _palette.getColor(PaletteRecord.FIRST_COLOR_INDEX);for (short i = PaletteRecord.FIRST_COLOR_INDEX; b != null;b = _palette.getColor(++i)){if (b[0] == red && b[1] == green && b[2] == blue){return new CustomColor(i, b);}}return null;}", "after": "public HSSFColor FindColor(byte red, byte green, byte blue){byte[] b = palette.GetColor(PaletteRecord.FIRST_COLOR_INDEX);for (short i = (short)PaletteRecord.FIRST_COLOR_INDEX; b != null;b = palette.GetColor(++i)){if (b[0] == red && b[1] == green && b[2] == blue){return new CustomColor(i, b);}}return null;}" }, { "index": 1506, "before": "public boolean canEncode(char c) {return implCanEncode(CharBuffer.wrap(new char[] { c }));}", "after": "public virtual bool canEncode(char c){return implCanEncode(java.nio.CharBuffer.wrap(new char[] { c }));}" }, { "index": 1507, "before": "public NetworkInterface(String macAddress) {mac = macAddress;path = \"/network/interfaces/macs/\" + mac + \"/\";}", "after": "public NetworkInterface(string macAddress){_mac = macAddress;_path = string.Format(CultureInfo.InvariantCulture, \"/network/interfaces/macs/{0}/\", _mac);}" }, { "index": 1508, "before": "public final boolean isAccept(int state) {return accept.get(state);}", "after": "public bool IsAccept(int state){return m_accept[state];}" }, { "index": 1509, "before": "public String toStringTree() {return toStringTree((List)null);}", "after": "public virtual string ToStringTree(){return ToStringTree((IList)null);}" }, { "index": 1510, "before": "public TermRangeQuery(String field, BytesRef lowerTerm, BytesRef upperTerm, boolean includeLower, boolean includeUpper) {super(new Term(field, lowerTerm), toAutomaton(lowerTerm, upperTerm, includeLower, includeUpper), Integer.MAX_VALUE, true);this.lowerTerm = lowerTerm;this.upperTerm = upperTerm;this.includeLower = includeLower;this.includeUpper = includeUpper;}", "after": "public TermRangeQuery(string field, BytesRef lowerTerm, BytesRef upperTerm, bool includeLower, bool includeUpper): base(field){this.lowerTerm = lowerTerm;this.upperTerm = upperTerm;this.includeLower = includeLower;this.includeUpper = includeUpper;}" }, { "index": 1511, "before": "public ScanResult scan(String tableName, java.util.List attributesToGet) {return scan(new ScanRequest().withTableName(tableName).withAttributesToGet(attributesToGet));}", "after": "public virtual ScanResponse Scan(string tableName, List attributesToGet){var request = new ScanRequest();request.TableName = tableName;request.AttributesToGet = attributesToGet;return Scan(request);}" }, { "index": 1512, "before": "public StopLabelingJobResult stopLabelingJob(StopLabelingJobRequest request) {request = beforeClientExecution(request);return executeStopLabelingJob(request);}", "after": "public virtual StopLabelingJobResponse StopLabelingJob(StopLabelingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopLabelingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopLabelingJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1513, "before": "public PublishSchemaResult publishSchema(PublishSchemaRequest request) {request = beforeClientExecution(request);return executePublishSchema(request);}", "after": "public virtual PublishSchemaResponse PublishSchema(PublishSchemaRequest request){var options = new InvokeOptions();options.RequestMarshaller = PublishSchemaRequestMarshaller.Instance;options.ResponseUnmarshaller = PublishSchemaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1514, "before": "public DeleteAttributesRequest(String domainName, String itemName, java.util.List attributes) {setDomainName(domainName);setItemName(itemName);setAttributes(attributes);}", "after": "public DeleteAttributesRequest(string domainName, string itemName, List attributes){_domainName = domainName;_itemName = itemName;_attributes = attributes;}" }, { "index": 1515, "before": "public ObjectId toObjectId() {return this;}", "after": "public override NGit.ObjectId ToObjectId(){return this;}" }, { "index": 1516, "before": "@Override public ListIterator listIterator() {return listIterator(0);}", "after": "public virtual java.util.ListIterator listIterator(){object[] snapshot = elements;return new java.util.concurrent.CopyOnWriteArrayList.CowIterator(snapshot, 0,snapshot.Length);}" }, { "index": 1517, "before": "public ExternalBookBlock() {_externalBookRecord = SupBookRecord.createAddInFunctions();_externalNameRecords = new ExternalNameRecord[0];_crnBlocks = new CRNBlock[0];}", "after": "public ExternalBookBlock(){_externalBookRecord = SupBookRecord.CreateAddInFunctions();_externalNameRecords = new ExternalNameRecord[0];_crnBlocks = new CRNBlock[0];}" }, { "index": 1518, "before": "public String getFragment() {return decode(fragment);}", "after": "public string getFragment(){return decode(fragment);}" }, { "index": 1519, "before": "public String toString() {return slice.toString()+\":\"+ postingsEnum;}", "after": "public override string ToString(){return \"MultiDocsAndPositionsEnum(\" + Arrays.ToString(Subs) + \")\";}" }, { "index": 1520, "before": "public ByteBuffer putDouble(double value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putDouble(double value){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 1521, "before": "public static InternalWorkbook createStubWorkbook(ExternSheetRecord[] externs,BoundSheetRecord[] bounds) {return createStubWorkbook(externs, bounds, null);}", "after": "public static InternalWorkbook CreateStubWorkbook(ExternSheetRecord[] externs,BoundSheetRecord[] bounds){return CreateStubWorkbook(externs, bounds, null);}" }, { "index": 1522, "before": "public IndexDocumentsResult indexDocuments(IndexDocumentsRequest request) {request = beforeClientExecution(request);return executeIndexDocuments(request);}", "after": "public virtual IndexDocumentsResponse IndexDocuments(IndexDocumentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = IndexDocumentsRequestMarshaller.Instance;options.ResponseUnmarshaller = IndexDocumentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1523, "before": "public String toStringTree(Parser recog) {return Trees.toStringTree(this, recog);}", "after": "public virtual string ToStringTree(Parser recog){return Trees.ToStringTree(this, recog);}" }, { "index": 1524, "before": "public FieldsConsumer fieldsConsumer(SegmentWriteState state)throws IOException {if (delegatePostingsFormat == null) {throw new UnsupportedOperationException(\"Error - \" + getClass().getName()+ \" has been constructed without a choice of PostingsFormat\");}FieldsConsumer fieldsConsumer = delegatePostingsFormat.fieldsConsumer(state);return new BloomFilteredFieldsConsumer(fieldsConsumer, state);}", "after": "public override FieldsConsumer FieldsConsumer(SegmentWriteState state){if (_delegatePostingsFormat == null){throw new InvalidOperationException(\"Error - constructed without a choice of PostingsFormat\");}return new BloomFilteredFieldsConsumer(this, _delegatePostingsFormat.FieldsConsumer(state), state);}" }, { "index": 1525, "before": "public String toString() {return super.toString() + \"(\\\"\" + pattern.pattern() + \"\\\")\";}", "after": "public override string ToString(){return base.ToString() + \"(\\\"\" + pattern.Pattern() + \"\\\")\";}" }, { "index": 1526, "before": "public static String stripTags(String buf, int start) {if (start>0) {buf = buf.substring(start);}return buf.replaceAll(\"<[^>]*>\", \" \");}", "after": "public static string StripTags(StringBuilder buf, int start){return StripTags(buf.ToString(start, buf.Length - start), 0);}" }, { "index": 1527, "before": "public Reader create(Reader input) {return new JapaneseIterationMarkCharFilter(input, normalizeKanji, normalizeKana);}", "after": "public override TextReader Create(TextReader input){return new JapaneseIterationMarkCharFilter(input, normalizeKanji, normalizeKana);}" }, { "index": 1528, "before": "public int getKeyProgressIncrement() {return mKeyProgressIncrement;}", "after": "public virtual int getKeyProgressIncrement(){return mKeyProgressIncrement;}" }, { "index": 1529, "before": "public void ReInit(StandardSyntaxParserTokenManager tm) {token_source = tm;token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 25; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();}", "after": "public void ReInit(StandardSyntaxParserTokenManager tm){TokenSource = tm;Token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 28; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();}" }, { "index": 1530, "before": "public long copyUsingLengthPrefix(BytesRef bytes) {if (bytes.length >= 32768) {throw new IllegalArgumentException(\"max length is 32767 (got \" + bytes.length + \")\");}if (upto + bytes.length + 2 > blockSize) {if (bytes.length + 2 > blockSize) {throw new IllegalArgumentException(\"block size \" + blockSize + \" is too small to store length \" + bytes.length + \" bytes\");}if (currentBlock != null) {addBlock(currentBlock);}currentBlock = new byte[blockSize];upto = 0;}final long pointer = getPointer();if (bytes.length < 128) {currentBlock[upto++] = (byte) bytes.length;} else {currentBlock[upto++] = (byte) (0x80 | (bytes.length >> 8));currentBlock[upto++] = (byte) (bytes.length & 0xff);}System.arraycopy(bytes.bytes, bytes.offset, currentBlock, upto, bytes.length);upto += bytes.length;return pointer;}", "after": "public long CopyUsingLengthPrefix(BytesRef bytes){if (bytes.Length >= 32768){throw new System.ArgumentException(\"max length is 32767 (got \" + bytes.Length + \")\");}if (upto + bytes.Length + 2 > blockSize){if (bytes.Length + 2 > blockSize){throw new System.ArgumentException(\"block size \" + blockSize + \" is too small to store length \" + bytes.Length + \" bytes\");}if (currentBlock != null){blocks.Add(currentBlock);blockEnd.Add(upto);}currentBlock = new byte[blockSize];upto = 0;}long pointer = GetPointer();if (bytes.Length < 128){currentBlock[upto++] = (byte)bytes.Length;}else{currentBlock[upto++] = unchecked((byte)(0x80 | (bytes.Length >> 8)));currentBlock[upto++] = unchecked((byte)(bytes.Length & 0xff));}Array.Copy(bytes.Bytes, bytes.Offset, currentBlock, upto, bytes.Length);upto += bytes.Length;return pointer;}" }, { "index": 1531, "before": "public HighFreqTerm(int[] docIDs, int[] freqs, int[][] positions, byte[][][] payloads, long totalTermFreq) {this.docIDs = docIDs;this.freqs = freqs;this.positions = positions;this.payloads = payloads;this.totalTermFreq = totalTermFreq;}", "after": "public HighFreqTerm(int[] docIDs, int[] freqs, int[][] positions, byte[][][] payloads,long totalTermFreq){this.docIDs = docIDs;this.freqs = freqs;this.positions = positions;this.payloads = payloads;this.totalTermFreq = totalTermFreq;}" }, { "index": 1532, "before": "public TermQuery newTermQuery(Term term) throws TooManyBasicQueries {checkMax();return new TermQuery(term);}", "after": "public virtual TermQuery NewTermQuery(Term term){CheckMax();return new TermQuery(term);}" }, { "index": 1533, "before": "public HindiStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public HindiStemFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 1534, "before": "public DecisionInfo[] getDecisionInfo() {return atnSimulator.getDecisionInfo();}", "after": "public DecisionInfo[] getDecisionInfo(){return atnSimulator.getDecisionInfo();}" }, { "index": 1535, "before": "public String toString() {return \"\";}", "after": "public override string ToString(){return \"\";}" }, { "index": 1536, "before": "public CreateStackSetResult createStackSet(CreateStackSetRequest request) {request = beforeClientExecution(request);return executeCreateStackSet(request);}", "after": "public virtual CreateStackSetResponse CreateStackSet(CreateStackSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStackSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStackSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1537, "before": "public SendMessagesResult sendMessages(SendMessagesRequest request) {request = beforeClientExecution(request);return executeSendMessages(request);}", "after": "public virtual SendMessagesResponse SendMessages(SendMessagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendMessagesRequestMarshaller.Instance;options.ResponseUnmarshaller = SendMessagesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1538, "before": "public synchronized void setCharAt(int index, char ch) {super.setCharAt(index, ch);}", "after": "public override void setCharAt(int index, char ch){lock (this){base.setCharAt(index, ch);}}" }, { "index": 1539, "before": "public CreateIntegrationResult createIntegration(CreateIntegrationRequest request) {request = beforeClientExecution(request);return executeCreateIntegration(request);}", "after": "public virtual CreateIntegrationResponse CreateIntegration(CreateIntegrationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIntegrationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIntegrationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1540, "before": "public void execute(Lexer lexer) {lexer.mode(mode);}", "after": "public void Execute(Lexer lexer){lexer.Mode(mode);}" }, { "index": 1541, "before": "public void readFully(byte[] dst) throws IOException {primitiveTypes.readFully(dst);}", "after": "public virtual void readFully(byte[] dst){throw new System.NotImplementedException();}" }, { "index": 1542, "before": "public final void decRef() throws IOException {ensureOpen();final int rc = refCount.decrementAndGet();if (rc == 0) {boolean success = false;try {doClose();closed = true;success = true;} finally {if (!success) {refCount.incrementAndGet();}}} else if (rc < 0) {throw new IllegalStateException(\"too many decRef calls: refCount is \" + rc + \" after decrement\");}}", "after": "public void DecRef(){EnsureOpen();int rc = refCount.DecrementAndGet();if (rc == 0){bool success = false;try{DoClose();closed = true;success = true;}finally{if (!success){refCount.IncrementAndGet();}}}else if (rc < 0){throw new ThreadStateException(\"too many decRef calls: refCount is \" + rc + \" after decrement\");}}" }, { "index": 1543, "before": "public String toString() {if ( dfa.s0==null ) return null;StringBuilder buf = new StringBuilder();List states = dfa.getStates();for (DFAState s : states) {int n = 0;if ( s.edges!=null ) n = s.edges.length;for (int i=0; i\").append(getStateString(t)).append('\\n');}}}String output = buf.toString();if ( output.length()==0 ) return null;return output;}", "after": "public override string ToString(){if (dfa.s0 == null){return null;}StringBuilder buf = new StringBuilder();if (dfa.states != null){List states = new List(dfa.states.Values);states.Sort((x,y)=>x.stateNumber - y.stateNumber);foreach (DFAState s in states){int n = s.edges != null ? s.edges.Length : 0;for (int i = 0; i < n; i++){DFAState t = s.edges[i];if (t != null && t.stateNumber != int.MaxValue){buf.Append(GetStateString(s));String label = GetEdgeLabel(i);buf.Append(\"-\");buf.Append(label);buf.Append(\"->\");buf.Append(GetStateString(t));buf.Append('\\n');}}}}string output = buf.ToString();if (output.Length == 0){return null;}return output;}" }, { "index": 1544, "before": "public static void register(Repository db) {if (db.getDirectory() != null) {FileKey key = FileKey.exact(db.getDirectory(), db.getFS());cache.registerRepository(key, db);}}", "after": "public static void Register(Repository db){if (db.Directory != null){RepositoryCache.FileKey key = RepositoryCache.FileKey.Exact(db.Directory, db.FileSystem);cache.RegisterRepository(key, db);}}" }, { "index": 1545, "before": "public GetConfigurationSetEventDestinationsResult getConfigurationSetEventDestinations(GetConfigurationSetEventDestinationsRequest request) {request = beforeClientExecution(request);return executeGetConfigurationSetEventDestinations(request);}", "after": "public virtual GetConfigurationSetEventDestinationsResponse GetConfigurationSetEventDestinations(GetConfigurationSetEventDestinationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetConfigurationSetEventDestinationsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetConfigurationSetEventDestinationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1546, "before": "public ByteBuffer put(byte value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer put(byte value){throw new System.NotImplementedException();}" }, { "index": 1547, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2) {AreaEval aeRange;AreaEval aeSum;try {aeRange = convertRangeArg(arg0);aeSum = createSumRange(arg2, aeRange);} catch (EvaluationException e) {return e.getErrorEval();}return eval(srcRowIndex, srcColumnIndex, arg1, aeRange, aeSum);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2){AreaEval aeRange;AreaEval aeSum;try{aeRange = ConvertRangeArg(arg0);aeSum = CreateSumRange(arg2, aeRange);}catch (EvaluationException e){return e.GetErrorEval();}return Eval(srcRowIndex, srcColumnIndex, arg1, aeRange, aeSum);}" }, { "index": 1548, "before": "public MoPenAddGroupMemberRequest() {super(\"MoPen\", \"2018-02-11\", \"MoPenAddGroupMember\", \"mopen\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public MoPenAddGroupMemberRequest(): base(\"MoPen\", \"2018-02-11\", \"MoPenAddGroupMember\", \"mopen\", \"openAPI\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 1549, "before": "public DeleteAssessmentTargetResult deleteAssessmentTarget(DeleteAssessmentTargetRequest request) {request = beforeClientExecution(request);return executeDeleteAssessmentTarget(request);}", "after": "public virtual DeleteAssessmentTargetResponse DeleteAssessmentTarget(DeleteAssessmentTargetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAssessmentTargetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAssessmentTargetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1550, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[SXDI]\\n\");buffer.append(\" .isxvdData = \").append(HexDump.shortToHex(isxvdData)).append(\"\\n\");buffer.append(\" .iiftab = \").append(HexDump.shortToHex(iiftab)).append(\"\\n\");buffer.append(\" .df = \").append(HexDump.shortToHex(df)).append(\"\\n\");buffer.append(\" .isxvd = \").append(HexDump.shortToHex(isxvd)).append(\"\\n\");buffer.append(\" .isxvi = \").append(HexDump.shortToHex(isxvi)).append(\"\\n\");buffer.append(\" .ifmt = \").append(HexDump.shortToHex(ifmt)).append(\"\\n\");buffer.append(\"[/SXDI]\\n\");return buffer.toString();}", "after": "public override string ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[SXDI]\\n\");buffer.Append(\" .isxvdData = \").Append(HexDump.ShortToHex(isxvdData)).Append(\"\\n\");buffer.Append(\" .iiftab = \").Append(HexDump.ShortToHex(iiftab)).Append(\"\\n\");buffer.Append(\" .df = \").Append(HexDump.ShortToHex(df)).Append(\"\\n\");buffer.Append(\" .isxvd = \").Append(HexDump.ShortToHex(isxvd)).Append(\"\\n\");buffer.Append(\" .isxvi = \").Append(HexDump.ShortToHex(isxvi)).Append(\"\\n\");buffer.Append(\" .ifmt = \").Append(HexDump.ShortToHex(ifmt)).Append(\"\\n\");buffer.Append(\"[/SXDI]\\n\");return buffer.ToString();}" }, { "index": 1551, "before": "public String toString() {return \"LL\";}", "after": "public override string ToString(){return \"LL\";}" }, { "index": 1552, "before": "public DescribeReservedInstancesOfferingsResult describeReservedInstancesOfferings(DescribeReservedInstancesOfferingsRequest request) {request = beforeClientExecution(request);return executeDescribeReservedInstancesOfferings(request);}", "after": "public virtual DescribeReservedInstancesOfferingsResponse DescribeReservedInstancesOfferings(DescribeReservedInstancesOfferingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedInstancesOfferingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedInstancesOfferingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1553, "before": "public void setNextEnum(TermsEnum termsEnum) {this.termsEnum = termsEnum;this.boostAtt = termsEnum.attributes().addAttribute(BoostAttribute.class);}", "after": "public override void SetNextEnum(TermsEnum termsEnum){this.termsEnum = termsEnum;this.boostAtt = termsEnum.Attributes.AddAttribute();}" }, { "index": 1554, "before": "public RevFilter clone() {return new PatternSearch(pattern());}", "after": "public override RevFilter Clone(){return new MessageRevFilter.PatternSearch(Pattern());}" }, { "index": 1555, "before": "public GetRouteResponseResult getRouteResponse(GetRouteResponseRequest request) {request = beforeClientExecution(request);return executeGetRouteResponse(request);}", "after": "public virtual GetRouteResponseResponse GetRouteResponse(GetRouteResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRouteResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRouteResponseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1556, "before": "public UpdateLagResult updateLag(UpdateLagRequest request) {request = beforeClientExecution(request);return executeUpdateLag(request);}", "after": "public virtual UpdateLagResponse UpdateLag(UpdateLagRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateLagRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateLagResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1557, "before": "public DescribeEndpointResult describeEndpoint(DescribeEndpointRequest request) {request = beforeClientExecution(request);return executeDescribeEndpoint(request);}", "after": "public virtual DescribeEndpointResponse DescribeEndpoint(DescribeEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1558, "before": "public void addPositionSpans(List positionSpans) {this.positionSpans.addAll(positionSpans);}", "after": "public virtual void AddPositionSpans(IList positionSpans){this._positionSpans.AddRange(positionSpans);}" }, { "index": 1559, "before": "public boolean remove(Object object) {return backingMap.remove(object) != null;}", "after": "public override bool remove(object @object){return backingMap.remove(@object) != null;}" }, { "index": 1560, "before": "public ListPartsResult listParts(ListPartsRequest request) {request = beforeClientExecution(request);return executeListParts(request);}", "after": "public virtual ListPartsResponse ListParts(ListPartsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPartsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPartsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1561, "before": "public void setForceUpdate(boolean b) {force = b;}", "after": "public virtual void SetForceUpdate(bool b){force = b;}" }, { "index": 1562, "before": "public void removeCustomProperties() {if (getSectionCount() < 2) {", "after": "public void RemoveCustomProperties(){if (SectionCount >= 2)Sections.RemoveAt(1);else" }, { "index": 1563, "before": "public int available() {return remaining();}", "after": "public int Available(){return _lei.Available();}" }, { "index": 1564, "before": "public GetInstanceResult getInstance(GetInstanceRequest request) {request = beforeClientExecution(request);return executeGetInstance(request);}", "after": "public virtual GetInstanceResponse GetInstance(GetInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1565, "before": "public UpdateSmsChannelResult updateSmsChannel(UpdateSmsChannelRequest request) {request = beforeClientExecution(request);return executeUpdateSmsChannel(request);}", "after": "public virtual UpdateSmsChannelResponse UpdateSmsChannel(UpdateSmsChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSmsChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSmsChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1566, "before": "public CreateEgressOnlyInternetGatewayResult createEgressOnlyInternetGateway(CreateEgressOnlyInternetGatewayRequest request) {request = beforeClientExecution(request);return executeCreateEgressOnlyInternetGateway(request);}", "after": "public virtual CreateEgressOnlyInternetGatewayResponse CreateEgressOnlyInternetGateway(CreateEgressOnlyInternetGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEgressOnlyInternetGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEgressOnlyInternetGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1567, "before": "public GetResourcesResult getResources(GetResourcesRequest request) {request = beforeClientExecution(request);return executeGetResources(request);}", "after": "public virtual GetResourcesResponse GetResources(GetResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetResourcesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1568, "before": "public ByteBlockPool(Allocator allocator) {this.allocator = allocator;}", "after": "public ByteBlockPool(Allocator allocator){ByteUpto = BYTE_BLOCK_SIZE;ByteOffset = -BYTE_BLOCK_SIZE;this.allocator = allocator;}" }, { "index": 1569, "before": "public ListStepsResult listSteps(ListStepsRequest request) {request = beforeClientExecution(request);return executeListSteps(request);}", "after": "public virtual ListStepsResponse ListSteps(ListStepsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStepsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStepsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1570, "before": "public boolean readBoolean() throws IOException {return primitiveTypes.readBoolean();}", "after": "public virtual bool readBoolean(){throw new System.NotImplementedException();}" }, { "index": 1571, "before": "public PutLogEventsRequest(String logGroupName, String logStreamName, java.util.List logEvents) {setLogGroupName(logGroupName);setLogStreamName(logStreamName);setLogEvents(logEvents);}", "after": "public PutLogEventsRequest(string logGroupName, string logStreamName, List logEvents){_logGroupName = logGroupName;_logStreamName = logStreamName;_logEvents = logEvents;}" }, { "index": 1572, "before": "public void reset(int sliceOffset) {this.offset = sliceOffset;}", "after": "public virtual void Reset(int sliceOffset){this.offset = sliceOffset;}" }, { "index": 1573, "before": "public GetAttendeeResult getAttendee(GetAttendeeRequest request) {request = beforeClientExecution(request);return executeGetAttendee(request);}", "after": "public virtual GetAttendeeResponse GetAttendee(GetAttendeeRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAttendeeRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAttendeeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1574, "before": "public long getFilePointer() {return pointer + pos;}", "after": "public override long GetFilePointer(){return pointer + pos;}" }, { "index": 1575, "before": "public int serializeSimplePart(byte[] data, int pos) {LittleEndian.putShort(data, pos, getId());int recordSize = getComplexData().length;if (!sizeIncludesHeaderSize) {recordSize -= 6;}LittleEndian.putInt(data, pos + 2, recordSize);return 6;}", "after": "public override int SerializeSimplePart(byte[] data, int pos){LittleEndian.PutShort(data, pos, Id);int recordSize = _complexData.Length;if (!sizeIncludesHeaderSize){recordSize -= 6;}LittleEndian.PutInt(data, pos + 2, recordSize);return 6;}" }, { "index": 1576, "before": "public CherryPickCommand include(AnyObjectId commit) {return include(commit.getName(), commit);}", "after": "public virtual NGit.Api.CherryPickCommand Include(AnyObjectId commit){return Include(commit.GetName(), commit);}" }, { "index": 1577, "before": "public int readDataSize() {readPlain(buffer, 0, LittleEndianConsts.SHORT_SIZE);int dataSize = LittleEndian.getUShort(buffer, 0);ccis.setNextRecordSize(dataSize);return dataSize;}", "after": "public int ReadDataSize(){int dataSize = _le.ReadUShort();_rc4.SkipTwoBytes();return dataSize;}" }, { "index": 1578, "before": "public RemoveUserFromGroupRequest(String groupName, String userName) {setGroupName(groupName);setUserName(userName);}", "after": "public RemoveUserFromGroupRequest(string groupName, string userName){_groupName = groupName;_userName = userName;}" }, { "index": 1579, "before": "public PutImageResult putImage(PutImageRequest request) {request = beforeClientExecution(request);return executePutImage(request);}", "after": "public virtual PutImageResponse PutImage(PutImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutImageRequestMarshaller.Instance;options.ResponseUnmarshaller = PutImageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1580, "before": "public boolean stem() {limit_backward = cursor;cursor = limit;int v_1 = limit - cursor;r_endings();cursor = limit - v_1;int v_2 = limit - cursor;r_undouble();cursor = limit - v_2;int v_3 = limit - cursor;r_respell();cursor = limit - v_3;cursor = limit_backward;return true;}", "after": "public override bool Stem(){int v_1;int v_2;int v_3;m_limit_backward = m_cursor; m_cursor = m_limit;v_1 = m_limit - m_cursor;do{if (!r_endings()){goto lab0;}} while (false);lab0:m_cursor = m_limit - v_1;v_2 = m_limit - m_cursor;do{if (!r_undouble()){goto lab1;}} while (false);lab1:m_cursor = m_limit - v_2;v_3 = m_limit - m_cursor;do{if (!r_respell()){goto lab2;}} while (false);lab2:m_cursor = m_limit - v_3;m_cursor = m_limit_backward; return true;}" }, { "index": 1581, "before": "public IntervalSet[] getDecisionLookahead(ATNState s) {if ( s==null ) {return null;}IntervalSet[] look = new IntervalSet[s.getNumberOfTransitions()];for (int alt = 0; alt < s.getNumberOfTransitions(); alt++) {look[alt] = new IntervalSet();Set lookBusy = new HashSet();boolean seeThruPreds = false; _LOOK(s.transition(alt).target, null, PredictionContext.EMPTY,look[alt], lookBusy, new BitSet(), seeThruPreds, false);if ( look[alt].size()==0 || look[alt].contains(HIT_PRED) ) {look[alt] = null;}}return look;}", "after": "public virtual IntervalSet[] GetDecisionLookahead(ATNState s){if (s == null){return null;}IntervalSet[] look = new IntervalSet[s.NumberOfTransitions];for (int alt = 0; alt < s.NumberOfTransitions; alt++){look[alt] = new IntervalSet();HashSet lookBusy = new HashSet();bool seeThruPreds = false;Look(s.Transition(alt).target, null, PredictionContext.EMPTY, look[alt], lookBusy, new BitSet(), seeThruPreds, false);if (look[alt].Count == 0 || look[alt].Contains(HitPred)){look[alt] = null;}}return look;}" }, { "index": 1582, "before": "public static Ptg createPtg(LittleEndianInput in) {byte id = in.readByte();if (id < 0x20) {return createBasePtg(id, in);}Ptg retval = createClassifiedPtg(id, in);if (id >= 0x60) {retval.setClass(CLASS_ARRAY);} else if (id >= 0x40) {retval.setClass(CLASS_VALUE);} else {retval.setClass(CLASS_REF);}return retval;}", "after": "public static Ptg CreatePtg(ILittleEndianInput in1){byte id = (byte)in1.ReadByte();if (id < 0x20){return CreateBasePtg(id, in1);}Ptg retval = CreateClassifiedPtg(id, in1);if (id >= 0x60){retval.PtgClass = CLASS_ARRAY;}else if (id >= 0x40){retval.PtgClass = CLASS_VALUE;}else{retval.PtgClass = CLASS_REF;}return retval;}" }, { "index": 1583, "before": "public ListEntitiesDetectionJobsResult listEntitiesDetectionJobs(ListEntitiesDetectionJobsRequest request) {request = beforeClientExecution(request);return executeListEntitiesDetectionJobs(request);}", "after": "public virtual ListEntitiesDetectionJobsResponse ListEntitiesDetectionJobs(ListEntitiesDetectionJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEntitiesDetectionJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEntitiesDetectionJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1584, "before": "public ListReviewableHITsResult listReviewableHITs(ListReviewableHITsRequest request) {request = beforeClientExecution(request);return executeListReviewableHITs(request);}", "after": "public virtual ListReviewableHITsResponse ListReviewableHITs(ListReviewableHITsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListReviewableHITsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListReviewableHITsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1585, "before": "public OperationEvaluationContext(WorkbookEvaluator bookEvaluator, EvaluationWorkbook workbook, int sheetIndex, int srcRowNum,int srcColNum, EvaluationTracker tracker) {this(bookEvaluator, workbook, sheetIndex, srcRowNum, srcColNum, tracker, true);}", "after": "public OperationEvaluationContext(WorkbookEvaluator bookEvaluator, IEvaluationWorkbook workbook, int sheetIndex, int srcRowNum,int srcColNum, EvaluationTracker tracker){_bookEvaluator = bookEvaluator;_workbook = workbook;_sheetIndex = sheetIndex;_rowIndex = srcRowNum;_columnIndex = srcColNum;_tracker = tracker;}" }, { "index": 1586, "before": "public void setMaxDocFreqPct(int maxPercentage) {setMaxDocFreq(Math.toIntExact((long) maxPercentage * ir.maxDoc() / 100));}", "after": "public void SetMaxDocFreqPct(int maxPercentage){this.MaxDocFreq = maxPercentage * ir.NumDocs / 100;}" }, { "index": 1587, "before": "public final void lazySet(V newValue) {unsafe.putOrderedObject(this, valueOffset, newValue);}", "after": "public void lazySet(V newValue){value = newValue;}" }, { "index": 1588, "before": "public UpdateVpcLinkResult updateVpcLink(UpdateVpcLinkRequest request) {request = beforeClientExecution(request);return executeUpdateVpcLink(request);}", "after": "public virtual UpdateVpcLinkResponse UpdateVpcLink(UpdateVpcLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateVpcLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateVpcLinkResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1589, "before": "public void removeNoteCount() {remove1stProperty(PropertyIDMap.PID_NOTECOUNT);}", "after": "public void RemoveNoteCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_NOTECOUNT);}" }, { "index": 1590, "before": "public Ref setValue(Ref value) {Ref prior = put(getKey(), value);ref = value;return prior;}", "after": "public virtual Ref SetValue(Ref value){Ref prior = this._enclosing.Put(this.Key, value);this.@ref = value;return prior;}" }, { "index": 1591, "before": "public RevCommit getSourceCommit(int idx) {return sourceCommits[idx];}", "after": "public virtual RevCommit GetSourceCommit(int idx){return sourceCommits[idx];}" }, { "index": 1592, "before": "public ClassicTokenizerFactory(Map args) {super(args);maxTokenLength = getInt(args, \"maxTokenLength\", StandardAnalyzer.DEFAULT_MAX_TOKEN_LENGTH);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public ClassicTokenizerFactory(IDictionary args): base(args){AssureMatchVersion();maxTokenLength = GetInt32(args, \"maxTokenLength\", StandardAnalyzer.DEFAULT_MAX_TOKEN_LENGTH);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 1593, "before": "public GetDistributionResult getDistribution(GetDistributionRequest request) {request = beforeClientExecution(request);return executeGetDistribution(request);}", "after": "public virtual GetDistributionResponse GetDistribution(GetDistributionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDistributionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDistributionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1594, "before": "public long seek(long ord) {long idx = ord / indexInterval;assert idx < fieldIndex.numIndexTerms;final long offset = fieldIndex.termOffsets.get(idx);final int length = (int) (fieldIndex.termOffsets.get(1+idx) - offset);termBytesReader.fillSlice(term, fieldIndex.termBytesStart + offset, length);this.ord = idx * indexInterval;return fieldIndex.termsStart + fieldIndex.termsDictOffsets.get(idx);}", "after": "public override long Seek(long ord){int idx = (int)(ord / outerInstance.totalIndexInterval);Debug.Assert(idx < fieldIndex.numIndexTerms);long offset = fieldIndex.termOffsets.Get(idx);int length = (int)(fieldIndex.termOffsets.Get(1 + idx) - offset);outerInstance.termBytesReader.FillSlice(term, fieldIndex.termBytesStart + offset, length);this.ord = idx * outerInstance.totalIndexInterval;return fieldIndex.termsStart + fieldIndex.termsDictOffsets.Get(idx);}" }, { "index": 1595, "before": "public DescribeInterconnectsResult describeInterconnects(DescribeInterconnectsRequest request) {request = beforeClientExecution(request);return executeDescribeInterconnects(request);}", "after": "public virtual DescribeInterconnectsResponse DescribeInterconnects(DescribeInterconnectsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInterconnectsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInterconnectsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1596, "before": "public static EvaluationException invalidValue() {return new EvaluationException(ErrorEval.VALUE_INVALID);}", "after": "public static EvaluationException InvalidValue(){return new EvaluationException(ErrorEval.VALUE_INVALID);}" }, { "index": 1597, "before": "public static String escapeWhitespace(String s, boolean escapeSpaces) {StringBuilder buf = new StringBuilder();for (char c : s.toCharArray()) {if ( c==' ' && escapeSpaces ) buf.append('\\u00B7');else if ( c=='\\t' ) buf.append(\"\\\\t\");else if ( c=='\\n' ) buf.append(\"\\\\n\");else if ( c=='\\r' ) buf.append(\"\\\\r\");else buf.append(c);}return buf.toString();}", "after": "public static string EscapeWhitespace(string s, bool escapeSpaces){StringBuilder buf = new StringBuilder();foreach (char c in s.ToCharArray()){if (c == ' ' && escapeSpaces){buf.Append('\\u00B7');}else{if (c == '\\t'){buf.Append(\"\\\\t\");}else{if (c == '\\n'){buf.Append(\"\\\\n\");}else{if (c == '\\r'){buf.Append(\"\\\\r\");}else{buf.Append(c);}}}}}return buf.ToString();}" }, { "index": 1598, "before": "public DescribeOrderableClusterOptionsResult describeOrderableClusterOptions(DescribeOrderableClusterOptionsRequest request) {request = beforeClientExecution(request);return executeDescribeOrderableClusterOptions(request);}", "after": "public virtual DescribeOrderableClusterOptionsResponse DescribeOrderableClusterOptions(DescribeOrderableClusterOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeOrderableClusterOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeOrderableClusterOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1599, "before": "public DeleteArchiveRequest(String vaultName, String archiveId) {setVaultName(vaultName);setArchiveId(archiveId);}", "after": "public DeleteArchiveRequest(string vaultName, string archiveId){_vaultName = vaultName;_archiveId = archiveId;}" }, { "index": 1600, "before": "public DescribeSnapshotsResult describeSnapshots(DescribeSnapshotsRequest request) {request = beforeClientExecution(request);return executeDescribeSnapshots(request);}", "after": "public virtual DescribeSnapshotsResponse DescribeSnapshots(DescribeSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSnapshotsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1601, "before": "public BatchDeleteClusterSnapshotsResult batchDeleteClusterSnapshots(BatchDeleteClusterSnapshotsRequest request) {request = beforeClientExecution(request);return executeBatchDeleteClusterSnapshots(request);}", "after": "public virtual BatchDeleteClusterSnapshotsResponse BatchDeleteClusterSnapshots(BatchDeleteClusterSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDeleteClusterSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDeleteClusterSnapshotsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1602, "before": "public DescribeClientVpnRoutesResult describeClientVpnRoutes(DescribeClientVpnRoutesRequest request) {request = beforeClientExecution(request);return executeDescribeClientVpnRoutes(request);}", "after": "public virtual DescribeClientVpnRoutesResponse DescribeClientVpnRoutes(DescribeClientVpnRoutesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClientVpnRoutesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClientVpnRoutesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1603, "before": "public String toString() {String padd = getPadding();StringBuilder sb = new StringBuilder(super.toString());sb.append(parallel ? \" [\" : \" {\");sb.append(NEW_LINE);for (final PerfTask task : tasks) {sb.append(task.toString());sb.append(NEW_LINE);}sb.append(padd);sb.append(!letChildReport ? \">\" : (parallel ? \"]\" : \"}\"));if (fixedTime) {sb.append(' ').append(NumberFormat.getNumberInstance(Locale.ROOT).format(runTimeSec)).append('s');} else if (repetitions>1) {sb.append(\" * \").append(repetitions);} else if (repetitions==REPEAT_EXHAUST) {sb.append(\" * EXHAUST\");}if (rate>0) {sb.append(\", rate: \").append(rate).append('/').append(perMin ? \"min\" : \"sec\");}if (getRunInBackground()) {sb.append(\" &\");int x = getBackgroundDeltaPriority();if (x != 0) {sb.append(x);}}return sb.toString();}", "after": "public override string ToString(){string padd = GetPadding();StringBuilder sb = new StringBuilder(base.ToString());sb.Append(parallel ? \" [\" : \" {\");sb.Append(NEW_LINE);foreach (PerfTask task in tasks){sb.Append(task.ToString());sb.Append(NEW_LINE);}sb.Append(padd);sb.Append(!letChildReport ? \">\" : (parallel ? \"]\" : \"}\"));if (fixedTime){sb.AppendFormat(CultureInfo.InvariantCulture, \" {0:N}s\", runTimeSec);}else if (repetitions > 1){sb.Append(\" * \" + repetitions);}else if (repetitions == REPEAT_EXHAUST){sb.Append(\" * EXHAUST\");}if (rate > 0){sb.Append(\", rate: \" + rate + \"/\" + (perMin ? \"min\" : \"sec\"));}if (RunInBackground){sb.Append(\" &\");int x = BackgroundDeltaPriority;if (x != 0){sb.Append(x);}}return sb.ToString();}" }, { "index": 1604, "before": "public void serialize(LittleEndianOutput out) {out.writeDouble(field_1_minimumAxisValue);out.writeDouble(field_2_maximumAxisValue);out.writeDouble(field_3_majorIncrement);out.writeDouble(field_4_minorIncrement);out.writeDouble(field_5_categoryAxisCross);out.writeShort(field_6_options);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteDouble(field_1_minimumAxisValue);out1.WriteDouble(field_2_maximumAxisValue);out1.WriteDouble(field_3_majorIncrement);out1.WriteDouble(field_4_minorIncrement);out1.WriteDouble(field_5_categoryAxisCross);out1.WriteShort(field_6_options);}" }, { "index": 1605, "before": "public final void makeReadOnly() {readOnly = true;}", "after": "public void MakeReadOnly(){readOnly = true;}" }, { "index": 1606, "before": "public DescribeDirectConnectGatewaysResult describeDirectConnectGateways(DescribeDirectConnectGatewaysRequest request) {request = beforeClientExecution(request);return executeDescribeDirectConnectGateways(request);}", "after": "public virtual DescribeDirectConnectGatewaysResponse DescribeDirectConnectGateways(DescribeDirectConnectGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDirectConnectGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDirectConnectGatewaysResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1607, "before": "public GetUsagePlanKeyResult getUsagePlanKey(GetUsagePlanKeyRequest request) {request = beforeClientExecution(request);return executeGetUsagePlanKey(request);}", "after": "public virtual GetUsagePlanKeyResponse GetUsagePlanKey(GetUsagePlanKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUsagePlanKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUsagePlanKeyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1608, "before": "public DescribeVpcEndpointConnectionNotificationsResult describeVpcEndpointConnectionNotifications(DescribeVpcEndpointConnectionNotificationsRequest request) {request = beforeClientExecution(request);return executeDescribeVpcEndpointConnectionNotifications(request);}", "after": "public virtual DescribeVpcEndpointConnectionNotificationsResponse DescribeVpcEndpointConnectionNotifications(DescribeVpcEndpointConnectionNotificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcEndpointConnectionNotificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcEndpointConnectionNotificationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1609, "before": "public UpdateGatewayGroupResult updateGatewayGroup(UpdateGatewayGroupRequest request) {request = beforeClientExecution(request);return executeUpdateGatewayGroup(request);}", "after": "public virtual UpdateGatewayGroupResponse UpdateGatewayGroup(UpdateGatewayGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGatewayGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGatewayGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1610, "before": "public DetachClassicLinkVpcResult detachClassicLinkVpc(DetachClassicLinkVpcRequest request) {request = beforeClientExecution(request);return executeDetachClassicLinkVpc(request);}", "after": "public virtual DetachClassicLinkVpcResponse DetachClassicLinkVpc(DetachClassicLinkVpcRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachClassicLinkVpcRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachClassicLinkVpcResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1611, "before": "public ListOperationsResult listOperations() {return listOperations(new ListOperationsRequest());}", "after": "public virtual ListOperationsResponse ListOperations(){return ListOperations(new ListOperationsRequest());}" }, { "index": 1612, "before": "public BatchDeletePhoneNumberResult batchDeletePhoneNumber(BatchDeletePhoneNumberRequest request) {request = beforeClientExecution(request);return executeBatchDeletePhoneNumber(request);}", "after": "public virtual BatchDeletePhoneNumberResponse BatchDeletePhoneNumber(BatchDeletePhoneNumberRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDeletePhoneNumberRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDeletePhoneNumberResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1613, "before": "public void setExpireAgeMillis(long expireAgeMillis) {this.expireAgeMillis = expireAgeMillis;expire = null;}", "after": "public virtual void SetExpireAgeMillis(long expireAgeMillis){this.expireAgeMillis = expireAgeMillis;expire = null;}" }, { "index": 1614, "before": "public DeactivateEventSourceResult deactivateEventSource(DeactivateEventSourceRequest request) {request = beforeClientExecution(request);return executeDeactivateEventSource(request);}", "after": "public virtual DeactivateEventSourceResponse DeactivateEventSource(DeactivateEventSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeactivateEventSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeactivateEventSourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1615, "before": "public void readBytes(byte[] b, int offset, int len) {System.arraycopy(bytes, pos, b, offset, len);pos += len;}", "after": "public override void ReadBytes(byte[] b, int offset, int len){Array.Copy(bytes, pos, b, offset, len);pos += len;}" }, { "index": 1616, "before": "public IntBuffer put(int index, int c) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.IntBuffer put(int index, int c){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 1617, "before": "public SendUsersMessagesResult sendUsersMessages(SendUsersMessagesRequest request) {request = beforeClientExecution(request);return executeSendUsersMessages(request);}", "after": "public virtual SendUsersMessagesResponse SendUsersMessages(SendUsersMessagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendUsersMessagesRequestMarshaller.Instance;options.ResponseUnmarshaller = SendUsersMessagesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1618, "before": "public MissingFormatWidthException(String s) {if (s == null) {throw new NullPointerException();}this.s = s;}", "after": "public MissingFormatWidthException(string s){if (s == null){throw new System.ArgumentNullException();}this.s = s;}" }, { "index": 1619, "before": "public DescribeVolumesRequest(java.util.List volumeIds) {setVolumeIds(volumeIds);}", "after": "public DescribeVolumesRequest(List volumeIds){_volumeIds = volumeIds;}" }, { "index": 1620, "before": "public SubmitCutoutTaskRequest() {super(\"lubancloud\", \"2018-05-09\", \"SubmitCutoutTask\", \"luban\");setMethod(MethodType.POST);}", "after": "public SubmitCutoutTaskRequest(): base(\"lubancloud\", \"2018-05-09\", \"SubmitCutoutTask\", \"luban\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 1621, "before": "public DoubleBuffer asReadOnlyBuffer() {return duplicate();}", "after": "public override java.nio.DoubleBuffer asReadOnlyBuffer(){return duplicate();}" }, { "index": 1622, "before": "@Override public int size() {return subMap.size();}", "after": "public override int size(){return this._enclosing._size;}" }, { "index": 1623, "before": "public CreateLabelsResult createLabels(CreateLabelsRequest request) {request = beforeClientExecution(request);return executeCreateLabels(request);}", "after": "public virtual CreateLabelsResponse CreateLabels(CreateLabelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLabelsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLabelsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1624, "before": "public boolean isEmpty() {return size == 0;}", "after": "public bool isEmpty(){return size == 0;}" }, { "index": 1625, "before": "public int getRenameScore() {return outCandidate.renameScore;}", "after": "public virtual int GetRenameScore(){return currentSource.renameScore;}" }, { "index": 1626, "before": "public SeriesTextRecord() {field_4_text = \"\";is16bit = false;}", "after": "public SeriesTextRecord(){field_4_text = \"\";is16bit = false;}" }, { "index": 1627, "before": "public char get() {if (position == limit) {throw new BufferUnderflowException();}return sequence.charAt(position++);}", "after": "public override char get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return sequence[_position++];}" }, { "index": 1628, "before": "public static double irr(double[] values, double guess) {double x0 = guess;for (int i = 0; i < MAX_ITERATION_COUNT; i++) {final double factor = 1.0 + x0;double denominator = factor;if (denominator == 0) {return Double.NaN;}double fValue = values[0];double fDerivative = 0;for (int k = 1; k < values.length; k++) {final double value = values[k];fValue += value / denominator;denominator *= factor;fDerivative -= k * value / denominator;}if (fDerivative == 0) {return Double.NaN;}double x1 = x0 - fValue/fDerivative;if (Math.abs(x1 - x0) <= ABSOLUTE_ACCURACY) {return x1;}x0 = x1;}return Double.NaN;}", "after": "public static double irr(double[] values, double guess){int maxIterationCount = 20;double absoluteAccuracy = 1E-7;double x0 = guess;double x1;int i = 0;while (i < maxIterationCount){double fValue = 0;double fDerivative = 0;for (int k = 0; k < values.Length; k++){fValue += values[k] / Math.Pow(1.0 + x0, k);fDerivative += -k * values[k] / Math.Pow(1.0 + x0, k + 1);}x1 = x0 - fValue / fDerivative;if (Math.Abs(x1 - x0) <= absoluteAccuracy){return x1;}x0 = x1;++i;}return Double.NaN;}" }, { "index": 1629, "before": "public static String toHex(long value) {StringBuilder sb = new StringBuilder(16);writeHex(sb, value, 16, \"\");return sb.toString();}", "after": "public static string ToHex(short value){return ToHex((long)value, 4);}" }, { "index": 1630, "before": "public void skip() {_type = SKIP;}", "after": "public virtual void Skip(){_type = TokenTypes.Skip;}" }, { "index": 1631, "before": "public HSSFClientAnchor getPreferredSize(){return getPreferredSize(1.0);}", "after": "public IClientAnchor GetPreferredSize(){return GetPreferredSize(1.0);}" }, { "index": 1632, "before": "public void fromRaw(int[] ints) {fromRaw(ints, 0);}", "after": "public virtual void FromRaw(int[] ints){FromRaw(ints, 0);}" }, { "index": 1633, "before": "public ModifyClusterParameterGroupResult modifyClusterParameterGroup(ModifyClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeModifyClusterParameterGroup(request);}", "after": "public virtual ModifyClusterParameterGroupResponse ModifyClusterParameterGroup(ModifyClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClusterParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1634, "before": "public boolean get(URIish uri, List items)throws UnsupportedCredentialItem {return get(uri, items.toArray(new CredentialItem[0]));}", "after": "public virtual bool Get(URIish uri, IList items){return Get(uri, Sharpen.Collections.ToArray(items, new CredentialItem[items.Count]));}" }, { "index": 1635, "before": "public synchronized FormatType getFormat() {return acceptFormat;}", "after": "public FormatType GetFormat(){return acceptFormat;}" }, { "index": 1636, "before": "public ListTypesResult listTypes(ListTypesRequest request) {request = beforeClientExecution(request);return executeListTypes(request);}", "after": "public virtual ListTypesResponse ListTypes(ListTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTypesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1637, "before": "public K next() { return nextEntry().key; }", "after": "public override K next(){return this.nextEntry().key;}" }, { "index": 1638, "before": "public StartAssessmentRunResult startAssessmentRun(StartAssessmentRunRequest request) {request = beforeClientExecution(request);return executeStartAssessmentRun(request);}", "after": "public virtual StartAssessmentRunResponse StartAssessmentRun(StartAssessmentRunRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartAssessmentRunRequestMarshaller.Instance;options.ResponseUnmarshaller = StartAssessmentRunResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1639, "before": "public boolean equals(Object obj) {if ( this==obj ) return true;if ( !(obj instanceof OR) ) return false;OR other = (OR)obj;return Arrays.equals(this.opnds, other.opnds);}", "after": "public override bool Equals(object obj){if (this == obj){return true;}if (!(obj is SemanticContext.OR)){return false;}SemanticContext.OR other = (SemanticContext.OR)obj;return Arrays.Equals(this.opnds, other.opnds);}" }, { "index": 1640, "before": "public boolean equals(Object other) {return ((PointTransitions) other).point == point;}", "after": "public override bool Equals(object other){return ((PointTransitions)other).point == point;}" }, { "index": 1641, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2, ValueEval arg3) {throw new RuntimeException(\"Incomplete code\"+ \" - don't know how to support the 'area_num' parameter yet)\");}", "after": "public ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2, ValueEval arg3){throw new Exception(\"Incomplete code\"+ \" - don't know how to support the 'area_num' parameter yet)\");}" }, { "index": 1642, "before": "public DescribeClusterParametersResult describeClusterParameters(DescribeClusterParametersRequest request) {request = beforeClientExecution(request);return executeDescribeClusterParameters(request);}", "after": "public virtual DescribeClusterParametersResponse DescribeClusterParameters(DescribeClusterParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterParametersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1643, "before": "public String typeName() {return typeName;}", "after": "public virtual string typeName(){return _typeName;}" }, { "index": 1644, "before": "public CreateModelPackageResult createModelPackage(CreateModelPackageRequest request) {request = beforeClientExecution(request);return executeCreateModelPackage(request);}", "after": "public virtual CreateModelPackageResponse CreateModelPackage(CreateModelPackageRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateModelPackageRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateModelPackageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1645, "before": "public long ramBytesUsed() {long mem = RamUsageEstimator.shallowSizeOf(this) + RamUsageEstimator.sizeOf(offsets);if (offsets != ordinals) {mem += RamUsageEstimator.sizeOf(ordinals);}return mem;}", "after": "public long RamBytesUsed(){long mem = RamUsageEstimator.ShallowSizeOf(this) + RamUsageEstimator.SizeOf(Offsets);if (Offsets != Ordinals){mem += RamUsageEstimator.SizeOf(Ordinals);}return mem;}" }, { "index": 1646, "before": "public final int get(int index) {checkIndex(index);return backingArray[offset + index];}", "after": "public sealed override int get(int index){checkIndex(index);return backingArray[offset + index];}" }, { "index": 1647, "before": "public final State captureState() {final State state = this.getCurrentState();return (state == null) ? null : state.clone();}", "after": "public virtual State CaptureState(){State state = this.GetCurrentState();return (state == null) ? null : (State)state.Clone();}" }, { "index": 1648, "before": "public String toString() {CellReference cr = new CellReference(getRow(), getColumn());return getClass().getName() + \"[\" +_evaluator.getSheetNameRange() +'!' +cr.formatAsString() +\"]\";}", "after": "public override String ToString(){CellReference cr = new CellReference(Row, Column);StringBuilder sb = new StringBuilder();sb.Append(GetType().Name).Append(\"[\");sb.Append(_evaluator.SheetNameRange);sb.Append('!');sb.Append(cr.FormatAsString());sb.Append(\"]\");return sb.ToString();}" }, { "index": 1649, "before": "public CharBuffer compact() {throw new ReadOnlyBufferException();}", "after": "public override java.nio.CharBuffer compact(){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 1650, "before": "public DetectCustomLabelsResult detectCustomLabels(DetectCustomLabelsRequest request) {request = beforeClientExecution(request);return executeDetectCustomLabels(request);}", "after": "public virtual DetectCustomLabelsResponse DetectCustomLabels(DetectCustomLabelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectCustomLabelsRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectCustomLabelsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1651, "before": "public int indexOf(final int o){int rval = 0;for (; rval < _limit; rval++){if (o == _array[ rval ]){break;}}if (rval == _limit){rval = -1; }return rval;}", "after": "public int IndexOf(int o){int rval = 0;for (; rval < _limit; rval++){if (o == _array[rval]){break;}}if (rval == _limit){rval = -1; }return rval;}" }, { "index": 1652, "before": "public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol) {return symbol >= minVocabSymbol && symbol <= maxVocabSymbol;}", "after": "public override bool Matches(int symbol, int minVocabSymbol, int maxVocabSymbol){return symbol >= minVocabSymbol && symbol <= maxVocabSymbol;}" }, { "index": 1653, "before": "@Override public int indexOf(Object object) {Object[] a = array;int s = size;if (object != null) {for (int i = 0; i < s; i++) {if (object.equals(a[i])) {return i;}}} else {for (int i = 0; i < s; i++) {if (a[i] == null) {return i;}}}return -1;}", "after": "public override int indexOf(object @object){if (@object != null){{for (int i = 0; i < a.Length; i++){if (@object.Equals(a[i])){return i;}}}}else{{for (int i = 0; i < a.Length; i++){if ((object)a[i] == null){return i;}}}}return -1;}" }, { "index": 1654, "before": "public void setObjectChecking(boolean on) {setObjectChecker(on ? new ObjectChecker() : null);}", "after": "public virtual void SetObjectChecking(bool on){SetObjectChecker(on ? new ObjectChecker() : null);}" }, { "index": 1655, "before": "public ModifyVpcEndpointResult modifyVpcEndpoint(ModifyVpcEndpointRequest request) {request = beforeClientExecution(request);return executeModifyVpcEndpoint(request);}", "after": "public virtual ModifyVpcEndpointResponse ModifyVpcEndpoint(ModifyVpcEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpcEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpcEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1656, "before": "public DeleteMethodResponseResult deleteMethodResponse(DeleteMethodResponseRequest request) {request = beforeClientExecution(request);return executeDeleteMethodResponse(request);}", "after": "public virtual DeleteMethodResponseResponse DeleteMethodResponse(DeleteMethodResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMethodResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMethodResponseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1657, "before": "public StringRecord( RecordInputStream in) {int field_1_string_length = in.readUShort();_is16bitUnicode = in.readByte() != 0x00;if (_is16bitUnicode){_text = in.readUnicodeLEString(field_1_string_length);} else {_text = in.readCompressedUnicode(field_1_string_length);}}", "after": "public StringRecord(RecordInputStream in1){int field_1_string_length = in1.ReadShort();_is16bitUnicode = in1.ReadByte() != 0x00;if (_is16bitUnicode){_text = in1.ReadUnicodeLEString(field_1_string_length);}else{_text = in1.ReadCompressedUnicode(field_1_string_length);}}" }, { "index": 1658, "before": "public DrawingRecord(RecordInputStream in) {recordData = in.readRemainder();}", "after": "public DrawingRecord(RecordInputStream in1){recordData = in1.ReadRemainder();}" }, { "index": 1659, "before": "public GetProfileResult getProfile(GetProfileRequest request) {request = beforeClientExecution(request);return executeGetProfile(request);}", "after": "public virtual GetProfileResponse GetProfile(GetProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = GetProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1660, "before": "public DescribeTableResult describeTable(String tableName) {return describeTable(new DescribeTableRequest().withTableName(tableName));}", "after": "public virtual DescribeTableResponse DescribeTable(string tableName){var request = new DescribeTableRequest();request.TableName = tableName;return DescribeTable(request);}" }, { "index": 1661, "before": "public GetSegmentResult getSegment(GetSegmentRequest request) {request = beforeClientExecution(request);return executeGetSegment(request);}", "after": "public virtual GetSegmentResponse GetSegment(GetSegmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSegmentRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSegmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1662, "before": "public IntBuffer duplicate() {return copy(this, mark);}", "after": "public override java.nio.IntBuffer duplicate(){return copy(this, _mark);}" }, { "index": 1663, "before": "public PutAlarmResult putAlarm(PutAlarmRequest request) {request = beforeClientExecution(request);return executePutAlarm(request);}", "after": "public virtual PutAlarmResponse PutAlarm(PutAlarmRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAlarmRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAlarmResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1664, "before": "public boolean matches(ValueEval x) {int testValue;if(x instanceof StringEval) {return false;} else if((x instanceof BoolEval)) {BoolEval be = (BoolEval) x;testValue = boolToInt(be.getBooleanValue());} else if((x instanceof BlankEval)) {switch (getCode()) {case CmpOp.NE:return true;default:return false;}} else if((x instanceof NumberEval)) {switch (getCode()) {case CmpOp.NE:return true;default:return false;}} else {return false;}return evaluate(testValue - _value);}", "after": "public override bool Matches(ValueEval x){int testValue;if (x is StringEval){#if !HIDE_UNREACHABLE_CODEif (true){ return false;}StringEval se = (StringEval)x;Boolean? val = ParseBoolean(se.StringValue);if (val == null){return false;}testValue = BoolToInt(val.Value);#elsereturn false;#endif}else if ((x is BoolEval)){BoolEval be = (BoolEval)x;testValue = BoolToInt(be.BooleanValue);}else if ((x is BlankEval)){switch (Code){case CmpOp.NE:return true;default:return false;}}else if ((x is NumberEval)){switch (Code){case CmpOp.NE:return true;default:return false;}}else{return false;}return Evaluate(testValue - _value);}" }, { "index": 1665, "before": "public DeleteTrialResult deleteTrial(DeleteTrialRequest request) {request = beforeClientExecution(request);return executeDeleteTrial(request);}", "after": "public virtual DeleteTrialResponse DeleteTrial(DeleteTrialRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTrialRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTrialResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1666, "before": "public String toString() {return set.toString();}", "after": "public override string ToString(){return set.ToString();}" }, { "index": 1667, "before": "public String toString(String field) {StringBuilder buffer = new StringBuilder();if (!getField().equals(field)) {buffer.append(getField());buffer.append(\":\");}buffer.append(includeLower ? '[' : '{');buffer.append(lowerTerm != null ? (\"*\".equals(Term.toString(lowerTerm)) ? \"\\\\*\" : Term.toString(lowerTerm)) : \"*\");buffer.append(\" TO \");buffer.append(upperTerm != null ? (\"*\".equals(Term.toString(upperTerm)) ? \"\\\\*\" : Term.toString(upperTerm)) : \"*\");buffer.append(includeUpper ? ']' : '}');return buffer.toString();}", "after": "public override string ToString(string field){StringBuilder buffer = new StringBuilder();if (!Field.Equals(field, StringComparison.Ordinal)){buffer.Append(Field);buffer.Append(\":\");}buffer.Append(includeLower ? '[' : '{');buffer.Append(lowerTerm != null ? (\"*\".Equals(Term.ToString(lowerTerm), StringComparison.Ordinal) ? \"\\\\*\" : Term.ToString(lowerTerm)) : \"*\");buffer.Append(\" TO \");buffer.Append(upperTerm != null ? (\"*\".Equals(Term.ToString(upperTerm), StringComparison.Ordinal) ? \"\\\\*\" : Term.ToString(upperTerm)) : \"*\");buffer.Append(includeUpper ? ']' : '}');buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}" }, { "index": 1668, "before": "public void reset() {count = 0;}", "after": "public void Reset(){arriving = null;leaving = null;}" }, { "index": 1669, "before": "public int[] init() {return bytesStart = new int[ArrayUtil.oversize(initSize, Integer.BYTES)];}", "after": "public override int[] Init(){return bytesStart = new int[ArrayUtil.Oversize(m_initSize, RamUsageEstimator.NUM_BYTES_INT32)];}" }, { "index": 1670, "before": "public int codePointBefore(int index) {if (index < 1 || index > count) {throw indexAndLength(index);}return Character.codePointBefore(value, index);}", "after": "public virtual int codePointBefore(int index){if (index < 1 || index > count){throw indexAndLength(index);}return Sharpen.CharHelper.CodePointBefore(value, index);}" }, { "index": 1671, "before": "public String toString() {return \"SkipWorkTree(\" + treeIdx + \")\";}", "after": "public override string ToString(){return \"SkipWorkTree(\" + treeIdx + \")\";}" }, { "index": 1672, "before": "public GetLifecyclePoliciesResult getLifecyclePolicies(GetLifecyclePoliciesRequest request) {request = beforeClientExecution(request);return executeGetLifecyclePolicies(request);}", "after": "public virtual GetLifecyclePoliciesResponse GetLifecyclePolicies(GetLifecyclePoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetLifecyclePoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetLifecyclePoliciesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1673, "before": "public NRTCachingDirectory(Directory delegate, double maxMergeSizeMB, double maxCachedMB) {super(delegate);maxMergeSizeBytes = (long) (maxMergeSizeMB * 1024 * 1024);maxCachedBytes = (long) (maxCachedMB * 1024 * 1024);}", "after": "public NRTCachingDirectory(Directory @delegate, double maxMergeSizeMB, double maxCachedMB){this.@delegate = @delegate;maxMergeSizeBytes = (long)(maxMergeSizeMB * 1024 * 1024);maxCachedBytes = (long)(maxCachedMB * 1024 * 1024);}" }, { "index": 1674, "before": "public void visitContainedRecords(RecordVisitor rv) {visitIfPresent(_protectRecord, rv);visitIfPresent(_objectProtectRecord, rv);visitIfPresent(_scenarioProtectRecord, rv);visitIfPresent(_passwordRecord, rv);}", "after": "public override void VisitContainedRecords(RecordVisitor rv){VisitIfPresent(_protectRecord, rv);VisitIfPresent(_objectProtectRecord, rv);VisitIfPresent(_scenarioProtectRecord, rv);VisitIfPresent(_passwordRecord, rv);}" }, { "index": 1675, "before": "public RefSubRecord(int extBookIndex, int firstSheetIndex, int lastSheetIndex) {_extBookIndex = extBookIndex;_firstSheetIndex = firstSheetIndex;_lastSheetIndex = lastSheetIndex;}", "after": "public RefSubRecord(int extBookIndex, int firstSheetIndex, int lastSheetIndex){_extBookIndex = extBookIndex;_firstSheetIndex = firstSheetIndex;_lastSheetIndex = lastSheetIndex;}" }, { "index": 1676, "before": "public long getEntryLength() {return current().getLength();}", "after": "public virtual long GetEntryLength(){return Current().GetLength();}" }, { "index": 1677, "before": "public String toString() {return getClass().getSimpleName() + \"(maxLevels:\" + maxLevels + \",ctx:\" + ctx + \")\";}", "after": "public override string ToString(){return GetType().Name + \"(maxLevels:\" + m_maxLevels + \",ctx:\" + m_ctx + \")\";}" }, { "index": 1678, "before": "public BooleanQueryBuilder(QueryBuilder factory) {this.factory = factory;}", "after": "public BooleanQueryBuilder(IQueryBuilder factory){this.factory = factory;}" }, { "index": 1679, "before": "public HSSFShape(EscherContainerRecord spContainer, ObjRecord objRecord) {this._escherContainer = spContainer;this._objRecord = objRecord;this._optRecord = spContainer.getChildById(EscherOptRecord.RECORD_ID);this.anchor = HSSFAnchor.createAnchorFromEscher(spContainer);}", "after": "public HSSFShape(EscherContainerRecord spContainer, ObjRecord objRecord){this._escherContainer = spContainer;this._objRecord = objRecord;this._optRecord = (EscherOptRecord)spContainer.GetChildById(EscherOptRecord.RECORD_ID);this.anchor = HSSFAnchor.CreateAnchorFromEscher(spContainer);}" }, { "index": 1680, "before": "public ListUpdatesResult listUpdates(ListUpdatesRequest request) {request = beforeClientExecution(request);return executeListUpdates(request);}", "after": "public virtual ListUpdatesResponse ListUpdates(ListUpdatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListUpdatesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListUpdatesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1681, "before": "public IncreaseStreamRetentionPeriodResult increaseStreamRetentionPeriod(IncreaseStreamRetentionPeriodRequest request) {request = beforeClientExecution(request);return executeIncreaseStreamRetentionPeriod(request);}", "after": "public virtual IncreaseStreamRetentionPeriodResponse IncreaseStreamRetentionPeriod(IncreaseStreamRetentionPeriodRequest request){var options = new InvokeOptions();options.RequestMarshaller = IncreaseStreamRetentionPeriodRequestMarshaller.Instance;options.ResponseUnmarshaller = IncreaseStreamRetentionPeriodResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1682, "before": "public void writeFloat(float value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeFloat(value);}", "after": "public virtual void writeFloat(float value){throw new System.NotImplementedException();}" }, { "index": 1683, "before": "public Collection getSubCells() {String[] hashes = GeohashUtils.getSubGeohashes(getGeohash());List cells = new ArrayList<>(hashes.length);for (String hash : hashes) {cells.add(new GhCell(hash));}return cells;}", "after": "protected internal override ICollection GetSubCells(){string[] hashes = GeohashUtils.GetSubGeohashes(Geohash);IList cells = new List(hashes.Length);foreach (string hash in hashes){cells.Add(new GhCell((GeohashPrefixTree)m_outerInstance, hash));}return cells;}" }, { "index": 1684, "before": "public StringBuilder insert(int offset, CharSequence s) {insert0(offset, s == null ? \"null\" : s.toString());return this;}", "after": "public java.lang.StringBuilder insert(int offset, char[] ch){insert0(offset, ch);return this;}" }, { "index": 1685, "before": "public static Collection findAllTokenNodes(ParseTree t, int ttype) {return findAllNodes(t, ttype, true);}", "after": "public static ICollection FindAllTokenNodes(IParseTree t, int ttype){return FindAllNodes(t, ttype, true);}" }, { "index": 1686, "before": "public NameIdentifier(String name, boolean isQuoted) {_name = name;_isQuoted = isQuoted;}", "after": "public NameIdentifier(String name, bool isQuoted){_name = name;_isQuoted = isQuoted;}" }, { "index": 1687, "before": "public ObjectLoader open(DiffEntry.Side side, DiffEntry ent)throws IOException {switch (side) {case OLD:return oldSource.open(ent.oldPath, ent.oldId.toObjectId());case NEW:return newSource.open(ent.newPath, ent.newId.toObjectId());default:throw new IllegalArgumentException();}}", "after": "public ObjectLoader Open(DiffEntry.Side side, DiffEntry ent){switch (side){case DiffEntry.Side.OLD:{return oldSource.Open(ent.oldPath, ent.oldId.ToObjectId());}case DiffEntry.Side.NEW:{return newSource.Open(ent.newPath, ent.newId.ToObjectId());}default:{throw new ArgumentException();}}}" }, { "index": 1688, "before": "public DBClusterSnapshot createDBClusterSnapshot(CreateDBClusterSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateDBClusterSnapshot(request);}", "after": "public virtual CreateDBClusterSnapshotResponse CreateDBClusterSnapshot(CreateDBClusterSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBClusterSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBClusterSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1689, "before": "public ExternalBookBlock(String url, String[] sheetNames) {_externalBookRecord = SupBookRecord.createExternalReferences(url, sheetNames);_crnBlocks = new CRNBlock[0];}", "after": "public ExternalBookBlock(String url, String[] sheetNames){_externalBookRecord = SupBookRecord.CreateExternalReferences(url, sheetNames);_crnBlocks = new CRNBlock[0];}" }, { "index": 1690, "before": "public static int compareWithCase(String a, String b) {for (int i = 0; i < a.length() && i < b.length(); i++) {int d = a.charAt(i) - b.charAt(i);if (d != 0)return d;}return a.length() - b.length();}", "after": "public static int CompareWithCase(string a, string b){for (int i = 0; i < a.Length && i < b.Length; i++){int d = a[i] - b[i];if (d != 0){return d;}}return a.Length - b.Length;}" }, { "index": 1691, "before": "public RecallPoint [] getRecallPoints() {return recallPoints.toArray(new RecallPoint[0]);}", "after": "public virtual RecallPoint[] GetRecallPoints(){return recallPoints.ToArray();}" }, { "index": 1692, "before": "public RemoveFacePhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"RemoveFacePhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public RemoveFacePhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"RemoveFacePhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 1693, "before": "public static IntsRef toUTF32(char[] s, int offset, int length, IntsRefBuilder scratch) {int charIdx = offset;int intIdx = 0;final int charLimit = offset + length;while(charIdx < charLimit) {scratch.grow(intIdx+1);final int utf32 = Character.codePointAt(s, charIdx, charLimit);scratch.setIntAt(intIdx, utf32);charIdx += Character.charCount(utf32);intIdx++;}scratch.setLength(intIdx);return scratch.get();}", "after": "public static Int32sRef ToUTF32(char[] s, int offset, int length, Int32sRef scratch){int charIdx = offset;int intIdx = 0;int charLimit = offset + length;while (charIdx < charLimit){scratch.Grow(intIdx + 1);int utf32 = Character.CodePointAt(s, charIdx, charLimit);scratch.Int32s[intIdx] = utf32;charIdx += Character.CharCount(utf32);intIdx++;}scratch.Length = intIdx;return scratch;}" }, { "index": 1694, "before": "public void skipBytes(long count) {pos -= count;}", "after": "public override void SkipBytes(int count){pos -= count;}" }, { "index": 1695, "before": "public void addDataValidation(DVRecord dvRecord) {_validationList.add(dvRecord);_headerRec.setDVRecNo(_validationList.size());}", "after": "public void AddDataValidation(DVRecord dvRecord){_validationList.Add(dvRecord);_headerRec.DVRecNo = (_validationList.Count);}" }, { "index": 1696, "before": "public void setDoubleValue(double value) {if (!(fieldsData instanceof Double)) {throw new IllegalArgumentException(\"cannot change value type from \" + fieldsData.getClass().getSimpleName() + \" to Double\");}fieldsData = Double.valueOf(value);}", "after": "public virtual void SetDoubleValue(double value){if (!(FieldsData is Double)){throw new System.ArgumentException(\"cannot change value type from \" + FieldsData.GetType().Name + \" to Double\");}FieldsData = new Double(value);}" }, { "index": 1697, "before": "public DeleteRepoAuthorizationRequest() {super(\"cr\", \"2016-06-07\", \"DeleteRepoAuthorization\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/authorizations/[AuthorizeId]\");setMethod(MethodType.DELETE);}", "after": "public DeleteRepoAuthorizationRequest(): base(\"cr\", \"2016-06-07\", \"DeleteRepoAuthorization\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/authorizations/[AuthorizeId]\";Method = MethodType.DELETE;}" }, { "index": 1698, "before": "public final void writeObject(Object object) throws IOException {writeObject(object, false);}", "after": "public virtual void writeObject(object @object){throw new System.NotImplementedException();}" }, { "index": 1699, "before": "public String toString() {byte[] raw = toByteArray();CanonicalTreeParser p = new CanonicalTreeParser();p.reset(raw);StringBuilder r = new StringBuilder();r.append(\"Tree={\");if (!p.eof()) {r.append('\\n');try {new ObjectChecker().checkTree(raw);} catch (CorruptObjectException error) {r.append(\"*** ERROR: \").append(error.getMessage()).append(\"\\n\");r.append('\\n');}}while (!p.eof()) {final FileMode mode = p.getEntryFileMode();r.append(mode);r.append(' ');r.append(Constants.typeString(mode.getObjectType()));r.append(' ');r.append(p.getEntryObjectId().name());r.append(' ');r.append(p.getEntryPathString());r.append('\\n');p.next();}r.append(\"}\");return r.toString();}", "after": "public override string ToString(){byte[] raw = ToByteArray();CanonicalTreeParser p = new CanonicalTreeParser();p.Reset(raw);StringBuilder r = new StringBuilder();r.Append(\"Tree={\");if (!p.Eof){r.Append('\\n');try{new ObjectChecker().CheckTree(raw);}catch (CorruptObjectException error){r.Append(\"*** ERROR: \").Append(error.Message).Append(\"\\n\");r.Append('\\n');}}while (!p.Eof){FileMode mode = p.EntryFileMode;r.Append(mode);r.Append(' ');r.Append(Constants.TypeString(mode.GetObjectType()));r.Append(' ');r.Append(p.EntryObjectId.Name);r.Append(' ');r.Append(p.EntryPathString);r.Append('\\n');p.Next();}r.Append(\"}\");return r.ToString();}" }, { "index": 1700, "before": "public char getChar(int index) {return (char) getShort(index);}", "after": "public override char getChar(int index){return (char)getShort(index);}" }, { "index": 1701, "before": "public String toString() {return \"I(ne)\";}", "after": "public override string ToString(){return \"I(ne)\";}" }, { "index": 1702, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[GUTS]\\n\");buffer.append(\" .leftgutter = \").append(Integer.toHexString(getLeftRowGutter())).append(\"\\n\");buffer.append(\" .topgutter = \").append(Integer.toHexString(getTopColGutter())).append(\"\\n\");buffer.append(\" .rowlevelmax = \").append(Integer.toHexString(getRowLevelMax())).append(\"\\n\");buffer.append(\" .collevelmax = \").append(Integer.toHexString(getColLevelMax())).append(\"\\n\");buffer.append(\"[/GUTS]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[GUTS]\\n\");buffer.Append(\" .leftgutter = \").Append(StringUtil.ToHexString(LeftRowGutter)).Append(\"\\n\");buffer.Append(\" .topgutter = \").Append(StringUtil.ToHexString(TopColGutter)).Append(\"\\n\");buffer.Append(\" .rowlevelmax = \").Append(StringUtil.ToHexString(RowLevelMax)).Append(\"\\n\");buffer.Append(\" .collevelmax = \").Append(StringUtil.ToHexString(ColLevelMax)).Append(\"\\n\");buffer.Append(\"[/GUTS]\\n\");return buffer.ToString();}" }, { "index": 1703, "before": "public ParseTree getChild(int i) {return null;}", "after": "public virtual IParseTree GetChild(int i){return null;}" }, { "index": 1704, "before": "public ListInvalidationsResult listInvalidations(ListInvalidationsRequest request) {request = beforeClientExecution(request);return executeListInvalidations(request);}", "after": "public virtual ListInvalidationsResponse ListInvalidations(ListInvalidationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListInvalidationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListInvalidationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1705, "before": "public TokenStream newSinkTokenStream() {return new SinkTokenStream(this.cloneAttributes(), cachedStates);}", "after": "public SinkTokenStream NewSinkTokenStream(){return NewSinkTokenStream(ACCEPT_ALL_FILTER);}" }, { "index": 1706, "before": "public PrecedencePredicate(int precedence) {this.precedence = precedence;}", "after": "public PrecedencePredicate(int precedence){this.precedence = precedence;}" }, { "index": 1707, "before": "public ReadPresetResult readPreset(ReadPresetRequest request) {request = beforeClientExecution(request);return executeReadPreset(request);}", "after": "public virtual ReadPresetResponse ReadPreset(ReadPresetRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReadPresetRequestMarshaller.Instance;options.ResponseUnmarshaller = ReadPresetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1708, "before": "public File getIndexFile() throws NoWorkTreeException {if (isBare())throw new NoWorkTreeException();return indexFile;}", "after": "public virtual FilePath GetIndexFile(){if (IsBare){throw new NoWorkTreeException();}return indexFile;}" }, { "index": 1709, "before": "public ListApplicationsResult listApplications(ListApplicationsRequest request) {request = beforeClientExecution(request);return executeListApplications(request);}", "after": "public virtual ListApplicationsResponse ListApplications(ListApplicationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1710, "before": "public DataValidationConstraint createNumericConstraint(int validationType,int operatorType, String formula1, String formula2) {return DVConstraint.createNumericConstraint(validationType, operatorType, formula1, formula2);}", "after": "public IDataValidationConstraint CreateNumericConstraint(int validationType, int operatorType, String formula1, String formula2){return DVConstraint.CreateNumericConstraint(validationType, operatorType, formula1, formula2);}" }, { "index": 1711, "before": "public int read(byte[] buffer) throws IOException {return read(buffer, 0, buffer.length);}", "after": "public virtual int read(byte[] buffer){throw new System.NotImplementedException();}" }, { "index": 1712, "before": "public String toFormulaString() {return _value ? \"TRUE\" : \"FALSE\";}", "after": "public override String ToFormulaString(){return field_1_value ? \"TRUE\" : \"FALSE\";}" }, { "index": 1713, "before": "public void write(char[] chars, int offset, int count) {Arrays.checkOffsetAndCount(chars.length, offset, count);if (count == 0) {return;}buf.append(chars, offset, count);}", "after": "public override void write(char[] chars, int offset, int count){java.util.Arrays.checkOffsetAndCount(chars.Length, offset, count);if (count == 0){return;}buf.append(chars, offset, count);}" }, { "index": 1714, "before": "public void ReInit(CharStream stream) {token_source.ReInit(stream);token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 10; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();}", "after": "public override void ReInit(ICharStream stream){TokenSource.ReInit(stream);Token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 21; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();}" }, { "index": 1715, "before": "public RevokeDBSecurityGroupIngressRequest(String dBSecurityGroupName) {setDBSecurityGroupName(dBSecurityGroupName);}", "after": "public RevokeDBSecurityGroupIngressRequest(string dbSecurityGroupName){_dbSecurityGroupName = dbSecurityGroupName;}" }, { "index": 1716, "before": "public InitiateDocumentVersionUploadResult initiateDocumentVersionUpload(InitiateDocumentVersionUploadRequest request) {request = beforeClientExecution(request);return executeInitiateDocumentVersionUpload(request);}", "after": "public virtual InitiateDocumentVersionUploadResponse InitiateDocumentVersionUpload(InitiateDocumentVersionUploadRequest request){var options = new InvokeOptions();options.RequestMarshaller = InitiateDocumentVersionUploadRequestMarshaller.Instance;options.ResponseUnmarshaller = InitiateDocumentVersionUploadResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1717, "before": "public MemAreaPtg(int subexLen) {field_1_reserved = 0;field_2_subex_len = subexLen;}", "after": "public MemAreaPtg(int subexLen){field_1_reserved = 0;field_2_subex_len = subexLen;}" }, { "index": 1718, "before": "public FtrHeader() {associatedRange = new CellRangeAddress(0, 0, 0, 0);}", "after": "public FtrHeader(){reserved = new byte[8];}" }, { "index": 1719, "before": "public IntBuffer compact() {if (byteBuffer.isReadOnly()) {throw new ReadOnlyBufferException();}byteBuffer.limit(limit * SizeOf.INT);byteBuffer.position(position * SizeOf.INT);byteBuffer.compact();byteBuffer.clear();position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}", "after": "public override java.nio.IntBuffer compact(){if (byteBuffer.isReadOnly()){throw new java.nio.ReadOnlyBufferException();}byteBuffer.limit(_limit * libcore.io.SizeOf.INT);byteBuffer.position(_position * libcore.io.SizeOf.INT);byteBuffer.compact();byteBuffer.clear();_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}" }, { "index": 1720, "before": "public String getRawAuthority() {return authority;}", "after": "public string getRawAuthority(){return authority;}" }, { "index": 1721, "before": "public void write(byte[] b, int off, int len) throws IOException {if ((off < 0) || (off > b.length) || (len < 0) ||((off + len) > b.length) || ((off + len) < 0)) {throw new IndexOutOfBoundsException();} else if (len == 0) {return;}do {createBlockIfNeeded();int writeBytes = Math.min(buffer.remaining(), len);buffer.put(b, off, writeBytes);off += writeBytes;len -= writeBytes;} while (len > 0);}", "after": "public override void Write(byte[] b, int off, int len){if ((off < 0) || (off > b.Length) || (len < 0) ||((off + len) > b.Length) || ((off + len) < 0)){throw new IndexOutOfRangeException();}else if (len == 0){return;}do{CreateBlockIfNeeded();int writeBytes = Math.Min(buffer.Remaining(), len);buffer.Write(b, off, writeBytes);off += writeBytes;len -= writeBytes;} while (len > 0);}" }, { "index": 1722, "before": "public static void validateSimple(String s, String legal)throws URISyntaxException {for (int i = 0; i < s.length(); i++) {char ch = s.charAt(i);if (!((ch >= 'a' && ch <= 'z')|| (ch >= 'A' && ch <= 'Z')|| (ch >= '0' && ch <= '9')|| legal.indexOf(ch) > -1)) {throw new URISyntaxException(s, \"Illegal character\", i);}}}", "after": "public static void validateSimple(string s, string legal){{for (int i = 0; i < s.Length; i++){char ch = s[i];if (!((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <='9') || legal.IndexOf(ch) > -1)){throw new java.net.URISyntaxException(s, \"Illegal character\", i);}}}}" }, { "index": 1723, "before": "public static String readUnicodeString(LittleEndianInput in) {int nChars = in.readUShort();byte flag = in.readByte();if ((flag & 0x01) == 0) {return readCompressedUnicode(in, nChars);}return readUnicodeLE(in, nChars);}", "after": "public static String ReadUnicodeString(ILittleEndianInput in1){int nChars = in1.ReadUShort();byte flag = (byte)in1.ReadByte();if ((flag & 0x01) == 0){return ReadCompressedUnicode(in1, nChars);}return ReadUnicodeLE(in1, nChars);}" }, { "index": 1724, "before": "public DocValuesOrdinalsReader(String field) {this.field = field;}", "after": "public DocValuesOrdinalsReader(string field){this.field = field;}" }, { "index": 1725, "before": "public AdvertiseByoipCidrResult advertiseByoipCidr(AdvertiseByoipCidrRequest request) {request = beforeClientExecution(request);return executeAdvertiseByoipCidr(request);}", "after": "public virtual AdvertiseByoipCidrResponse AdvertiseByoipCidr(AdvertiseByoipCidrRequest request){var options = new InvokeOptions();options.RequestMarshaller = AdvertiseByoipCidrRequestMarshaller.Instance;options.ResponseUnmarshaller = AdvertiseByoipCidrResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1726, "before": "public DescribeAlarmsResult describeAlarms() {return describeAlarms(new DescribeAlarmsRequest());}", "after": "public virtual DescribeAlarmsResponse DescribeAlarms(){return DescribeAlarms(new DescribeAlarmsRequest());}" }, { "index": 1727, "before": "public DescribeCrossAccountAccessRoleResult describeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest request) {request = beforeClientExecution(request);return executeDescribeCrossAccountAccessRole(request);}", "after": "public virtual DescribeCrossAccountAccessRoleResponse DescribeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCrossAccountAccessRoleRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCrossAccountAccessRoleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1728, "before": "public StringBuilder reverse() {reverse0();return this;}", "after": "public java.lang.StringBuilder reverse(){reverse0();return this;}" }, { "index": 1729, "before": "public DescribeImagesResult describeImages(DescribeImagesRequest request) {request = beforeClientExecution(request);return executeDescribeImages(request);}", "after": "public virtual DescribeImagesResponse DescribeImages(DescribeImagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeImagesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeImagesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1730, "before": "public CreateDhcpOptionsRequest(java.util.List dhcpConfigurations) {setDhcpConfigurations(dhcpConfigurations);}", "after": "public CreateDhcpOptionsRequest(List dhcpConfigurations){_dhcpConfigurations = dhcpConfigurations;}" }, { "index": 1731, "before": "public StartChatContactResult startChatContact(StartChatContactRequest request) {request = beforeClientExecution(request);return executeStartChatContact(request);}", "after": "public virtual StartChatContactResponse StartChatContact(StartChatContactRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartChatContactRequestMarshaller.Instance;options.ResponseUnmarshaller = StartChatContactResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1732, "before": "public GetCampaignsResult getCampaigns(GetCampaignsRequest request) {request = beforeClientExecution(request);return executeGetCampaigns(request);}", "after": "public virtual GetCampaignsResponse GetCampaigns(GetCampaignsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCampaignsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCampaignsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1733, "before": "public GetAssessmentReportResult getAssessmentReport(GetAssessmentReportRequest request) {request = beforeClientExecution(request);return executeGetAssessmentReport(request);}", "after": "public virtual GetAssessmentReportResponse GetAssessmentReport(GetAssessmentReportRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAssessmentReportRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAssessmentReportResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1734, "before": "public void reportAmbiguity(Parser recognizer,DFA dfa,int startIndex,int stopIndex,boolean exact,BitSet ambigAlts,ATNConfigSet configs){if (exactOnly && !exact) {return;}String format = \"reportAmbiguity d=%s: ambigAlts=%s, input='%s'\";String decision = getDecisionDescription(recognizer, dfa);BitSet conflictingAlts = getConflictingAlts(ambigAlts, configs);String text = recognizer.getTokenStream().getText(Interval.of(startIndex, stopIndex));String message = String.format(format, decision, conflictingAlts, text);recognizer.notifyErrorListeners(message);}", "after": "public override void ReportAmbiguity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, bool exact, BitSet ambigAlts, ATNConfigSet configs){if (exactOnly && !exact){return;}string format = \"reportAmbiguity d={0}: ambigAlts={1}, input='{2}'\";string decision = GetDecisionDescription(recognizer, dfa);BitSet conflictingAlts = GetConflictingAlts(ambigAlts, configs);string text = ((ITokenStream)recognizer.InputStream).GetText(Interval.Of(startIndex, stopIndex));string message = string.Format(format, decision, conflictingAlts, text);recognizer.NotifyErrorListeners(message);}" }, { "index": 1735, "before": "public Object[] toArray() {synchronized (Hashtable.this) {return super.toArray();}}", "after": "public override object[] toArray(){lock (this._enclosing){return base.toArray();}}" }, { "index": 1736, "before": "public boolean contains(Object o) {if (o instanceof RevFlag)return (mask & ((RevFlag) o).mask) != 0;return false;}", "after": "public override bool Contains(object o){if (o is RevFlag){return (mask & ((RevFlag)o).mask) != 0;}return false;}" }, { "index": 1737, "before": "public DisableAlarmActionsResult disableAlarmActions(DisableAlarmActionsRequest request) {request = beforeClientExecution(request);return executeDisableAlarmActions(request);}", "after": "public virtual DisableAlarmActionsResponse DisableAlarmActions(DisableAlarmActionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableAlarmActionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableAlarmActionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1738, "before": "public RegisterDBProxyTargetsResult registerDBProxyTargets(RegisterDBProxyTargetsRequest request) {request = beforeClientExecution(request);return executeRegisterDBProxyTargets(request);}", "after": "public virtual RegisterDBProxyTargetsResponse RegisterDBProxyTargets(RegisterDBProxyTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterDBProxyTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterDBProxyTargetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1739, "before": "public static void fill(byte[] array, int start, int end, byte value) {Arrays.checkStartAndEnd(array.length, start, end);for (int i = start; i < end; i++) {array[i] = value;}}", "after": "public static void fill(byte[] array, int start, int end, byte value){java.util.Arrays.checkStartAndEnd(array.Length, start, end);{for (int i = start; i < end; i++){array[i] = value;}}}" }, { "index": 1740, "before": "public boolean containsColumn(int columnIndex) {return _firstCol <= columnIndex && columnIndex <= _lastCol;}", "after": "public bool ContainsColumn(int columnIndex){return _first_col <= columnIndex && columnIndex <= _last_col;}" }, { "index": 1741, "before": "public Hashtable() {table = (HashtableEntry[]) EMPTY_TABLE;threshold = -1; }", "after": "public Hashtable(){table = (java.util.Hashtable.HashtableEntry[])EMPTY_TABLE;threshold = -1;}" }, { "index": 1742, "before": "public final AttributeFactory getAttributeFactory() {return this.factory;}", "after": "public AttributeFactory GetAttributeFactory(){return this.factory;}" }, { "index": 1743, "before": "public void onChange(boolean selfChange) {refreshData();}", "after": "public override void onChange(bool selfChange){this._enclosing.onContentChanged();}" }, { "index": 1744, "before": "public ListObjectAttributesResult listObjectAttributes(ListObjectAttributesRequest request) {request = beforeClientExecution(request);return executeListObjectAttributes(request);}", "after": "public virtual ListObjectAttributesResponse ListObjectAttributes(ListObjectAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListObjectAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListObjectAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1745, "before": "public GetDeploymentsResult getDeployments(GetDeploymentsRequest request) {request = beforeClientExecution(request);return executeGetDeployments(request);}", "after": "public virtual GetDeploymentsResponse GetDeployments(GetDeploymentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDeploymentsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDeploymentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1746, "before": "public ListWorkGroupsResult listWorkGroups(ListWorkGroupsRequest request) {request = beforeClientExecution(request);return executeListWorkGroups(request);}", "after": "public virtual ListWorkGroupsResponse ListWorkGroups(ListWorkGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListWorkGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListWorkGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1747, "before": "public CreatePhotoStoreRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"CreatePhotoStore\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public CreatePhotoStoreRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"CreatePhotoStore\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 1748, "before": "public PutMethodResult putMethod(PutMethodRequest request) {request = beforeClientExecution(request);return executePutMethod(request);}", "after": "public virtual PutMethodResponse PutMethod(PutMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = PutMethodResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1749, "before": "public DescribeServiceAccessPoliciesResult describeServiceAccessPolicies(DescribeServiceAccessPoliciesRequest request) {request = beforeClientExecution(request);return executeDescribeServiceAccessPolicies(request);}", "after": "public virtual DescribeServiceAccessPoliciesResponse DescribeServiceAccessPolicies(DescribeServiceAccessPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeServiceAccessPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeServiceAccessPoliciesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1750, "before": "public DescribeCacheParameterGroupsResult describeCacheParameterGroups() {return describeCacheParameterGroups(new DescribeCacheParameterGroupsRequest());}", "after": "public virtual DescribeCacheParameterGroupsResponse DescribeCacheParameterGroups(){return DescribeCacheParameterGroups(new DescribeCacheParameterGroupsRequest());}" }, { "index": 1751, "before": "public Float getAndIncrement(String key) {String key2 = key.trim().toLowerCase(locale);TSTNode node = getNode(key2);if (node == null) {return null;}Float aux = (Float) (node.data);if (aux == null) {aux = 1f;} else {aux = (float) (aux.intValue() + 1);}put(key2, aux);return aux;}", "after": "public virtual float? GetAndIncrement(string key){string key2 = culture.TextInfo.ToLower(key.Trim());TSTNode node = GetNode(key2);if (node == null){return null;}float? aux = (float?)(node.data);if (aux == null){aux = new float?(1);}else{aux = new float?((int)aux + 1);}Put(key2, aux);return aux;}" }, { "index": 1752, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[WINDOWPROTECT]\\n\");buffer.append(\" .options = \").append(HexDump.shortToHex(_options)).append(\"\\n\");buffer.append(\"[/WINDOWPROTECT]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[WINDOWPROTECT]\\n\");buffer.Append(\" .protect = \").Append(Protect).Append(\"\\n\");buffer.Append(\"[/WINDOWPROTECT]\\n\");return buffer.ToString();}" }, { "index": 1753, "before": "public RetrieveDomainAuthCodeResult retrieveDomainAuthCode(RetrieveDomainAuthCodeRequest request) {request = beforeClientExecution(request);return executeRetrieveDomainAuthCode(request);}", "after": "public virtual RetrieveDomainAuthCodeResponse RetrieveDomainAuthCode(RetrieveDomainAuthCodeRequest request){var options = new InvokeOptions();options.RequestMarshaller = RetrieveDomainAuthCodeRequestMarshaller.Instance;options.ResponseUnmarshaller = RetrieveDomainAuthCodeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1754, "before": "public GetRelationalDatabaseMetricDataResult getRelationalDatabaseMetricData(GetRelationalDatabaseMetricDataRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseMetricData(request);}", "after": "public virtual GetRelationalDatabaseMetricDataResponse GetRelationalDatabaseMetricData(GetRelationalDatabaseMetricDataRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseMetricDataRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseMetricDataResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1755, "before": "public Entry pollFirstEntry() {Node result = endpoint(true);if (result != null) {removeInternal(result);}return immutableCopy(result);}", "after": "public java.util.MapClass.Entry pollFirstEntry(){java.util.TreeMap.Node result = this.endpoint(true);if (result != null){this._enclosing.removeInternal(result);}return this._enclosing.immutableCopy(result);}" }, { "index": 1756, "before": "public LimitTokenPositionFilter(TokenStream in, int maxTokenPosition, boolean consumeAllTokens) {super(in);if (maxTokenPosition < 1) {throw new IllegalArgumentException(\"maxTokenPosition must be greater than zero\");}this.maxTokenPosition = maxTokenPosition;this.consumeAllTokens = consumeAllTokens;}", "after": "public LimitTokenPositionFilter(TokenStream @in, int maxTokenPosition, bool consumeAllTokens): base(@in){if (maxTokenPosition < 1){throw new System.ArgumentException(\"maxTokenPosition must be greater than zero\");}this.maxTokenPosition = maxTokenPosition;this.consumeAllTokens = consumeAllTokens;posIncAtt = AddAttribute();}" }, { "index": 1757, "before": "public ViewFieldsRecord(RecordInputStream in) {_sxaxis = in.readShort();_cSub = in.readShort();_grbitSub = in.readShort();_cItm = in.readShort();int cchName = in.readUShort();if (cchName != STRING_NOT_PRESENT_LEN) {int flag = in.readByte();if ((flag & 0x01) != 0) {_name = in.readUnicodeLEString(cchName);} else {_name = in.readCompressedUnicode(cchName);}}}", "after": "public ViewFieldsRecord(RecordInputStream in1){sxaxis = in1.ReadShort();cSub = in1.ReadShort();grbitSub = in1.ReadShort();cItm = in1.ReadShort();int cchName = in1.ReadUShort();if (cchName != STRING_NOT_PRESENT_LEN){int flag = in1.ReadByte();if ((flag & 0x01) != 0){_name = in1.ReadUnicodeLEString(cchName);}else{_name = in1.ReadCompressedUnicode(cchName);}}}" }, { "index": 1758, "before": "public synchronized static DefaultProfile getProfile(String regionId, String accessKeyId, String secret) {Credential creden = new Credential(accessKeyId, secret);profile = new DefaultProfile(regionId, creden);return profile;}", "after": "public static DefaultProfile GetProfile(string regionId, string accessKeyId, string secret){var credential = new Credential(accessKeyId, secret);_profile = new DefaultProfile(regionId, credential);return _profile;}" }, { "index": 1759, "before": "public int indexOf(String string) {return indexOf(string, 0);}", "after": "public virtual int indexOf(string @string){return indexOf(@string, 0);}" }, { "index": 1760, "before": "public ListAppsResult listApps(ListAppsRequest request) {request = beforeClientExecution(request);return executeListApps(request);}", "after": "public virtual ListAppsResponse ListApps(ListAppsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAppsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAppsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1761, "before": "public ListAttachedIndicesResult listAttachedIndices(ListAttachedIndicesRequest request) {request = beforeClientExecution(request);return executeListAttachedIndices(request);}", "after": "public virtual ListAttachedIndicesResponse ListAttachedIndices(ListAttachedIndicesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAttachedIndicesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAttachedIndicesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1762, "before": "public void addShape(HSSFShape shape) {shape.setPatriarch(this);_shapes.add(shape);}", "after": "public void AddShape(HSSFShape shape){shape.Patriarch = this;_shapes.Add(shape);}" }, { "index": 1763, "before": "public CreateNatGatewayResult createNatGateway(CreateNatGatewayRequest request) {request = beforeClientExecution(request);return executeCreateNatGateway(request);}", "after": "public virtual CreateNatGatewayResponse CreateNatGateway(CreateNatGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNatGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNatGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1764, "before": "public GetApnsVoipChannelResult getApnsVoipChannel(GetApnsVoipChannelRequest request) {request = beforeClientExecution(request);return executeGetApnsVoipChannel(request);}", "after": "public virtual GetApnsVoipChannelResponse GetApnsVoipChannel(GetApnsVoipChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApnsVoipChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApnsVoipChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1765, "before": "public ReplaceTransitGatewayRouteResult replaceTransitGatewayRoute(ReplaceTransitGatewayRouteRequest request) {request = beforeClientExecution(request);return executeReplaceTransitGatewayRoute(request);}", "after": "public virtual ReplaceTransitGatewayRouteResponse ReplaceTransitGatewayRoute(ReplaceTransitGatewayRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReplaceTransitGatewayRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = ReplaceTransitGatewayRouteResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1766, "before": "public long ramBytesUsed() {return super.ramBytesUsed()+ offsets.ramBytesUsed()+ lengths.ramBytesUsed()+ RamUsageEstimator.NUM_BYTES_OBJECT_HEADER+ 2 * Integer.BYTES+ 3 * RamUsageEstimator.NUM_BYTES_OBJECT_REF+ values.bytes().length;}", "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": 1767, "before": "public ParseTreePattern compile(String pattern, int patternRuleIndex) {List tokenList = tokenize(pattern);ListTokenSource tokenSrc = new ListTokenSource(tokenList);CommonTokenStream tokens = new CommonTokenStream(tokenSrc);ParserInterpreter parserInterp = new ParserInterpreter(parser.getGrammarFileName(),parser.getVocabulary(),Arrays.asList(parser.getRuleNames()),parser.getATNWithBypassAlts(),tokens);ParseTree tree = null;try {parserInterp.setErrorHandler(new BailErrorStrategy());tree = parserInterp.parse(patternRuleIndex);}catch (ParseCancellationException e) {throw (RecognitionException)e.getCause();}catch (RecognitionException re) {throw re;}catch (Exception e) {throw new CannotInvokeStartRule(e);}if ( tokens.LA(1)!=Token.EOF ) {throw new StartRuleDoesNotConsumeFullPattern();}return new ParseTreePattern(this, pattern, patternRuleIndex, tree);}", "after": "public virtual ParseTreePattern Compile(string pattern, int patternRuleIndex){IList tokenList = Tokenize(pattern);ListTokenSource tokenSrc = new ListTokenSource(tokenList);CommonTokenStream tokens = new CommonTokenStream(tokenSrc);ParserInterpreter parserInterp = new ParserInterpreter(parser.GrammarFileName, parser.Vocabulary, Arrays.AsList(parser.RuleNames), parser.GetATNWithBypassAlts(), tokens);IParseTree tree = null;try{parserInterp.ErrorHandler = new BailErrorStrategy();tree = parserInterp.Parse(patternRuleIndex);}catch (ParseCanceledException e){throw (RecognitionException)e.InnerException;}catch (RecognitionException){throw;}catch (Exception e){throw new ParseTreePatternMatcher.CannotInvokeStartRule(e);}if (tokens.LA(1) != TokenConstants.EOF){throw new ParseTreePatternMatcher.StartRuleDoesNotConsumeFullPattern();}return new ParseTreePattern(this, pattern, patternRuleIndex, tree);}" }, { "index": 1768, "before": "public GetRelationalDatabaseLogEventsResult getRelationalDatabaseLogEvents(GetRelationalDatabaseLogEventsRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseLogEvents(request);}", "after": "public virtual GetRelationalDatabaseLogEventsResponse GetRelationalDatabaseLogEvents(GetRelationalDatabaseLogEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseLogEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseLogEventsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1769, "before": "public TokenStream create(TokenStream input) {return new BeiderMorseFilter(input, engine, languageSet);}", "after": "public override TokenStream Create(TokenStream input){return new BeiderMorseFilter(input, engine, languageSet);}" }, { "index": 1770, "before": "public FloatBuffer duplicate() {return copy(this, mark);}", "after": "public override java.nio.FloatBuffer duplicate(){return copy(this, _mark);}" }, { "index": 1771, "before": "public ClasspathResourceLoader(Class clazz) {this(clazz, clazz.getClassLoader());}", "after": "public ClasspathResourceLoader(Type clazz){this.clazz = clazz;}" }, { "index": 1772, "before": "public DescribeRouteTablesResult describeRouteTables(DescribeRouteTablesRequest request) {request = beforeClientExecution(request);return executeDescribeRouteTables(request);}", "after": "public virtual DescribeRouteTablesResponse DescribeRouteTables(DescribeRouteTablesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRouteTablesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRouteTablesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1773, "before": "public void setRenameCallback(RenameCallback callback) {renameCallback = callback;}", "after": "public virtual void SetRenameCallback(RenameCallback callback){renameCallback = callback;}" }, { "index": 1774, "before": "public DimensionsRecord createDimensions() {DimensionsRecord result = new DimensionsRecord();result.setFirstRow(_firstrow);result.setLastRow(_lastrow);result.setFirstCol((short) _valuesAgg.getFirstCellNum());result.setLastCol((short) _valuesAgg.getLastCellNum());return result;}", "after": "public DimensionsRecord CreateDimensions(){DimensionsRecord result = new DimensionsRecord();result.FirstRow=(firstrow);result.LastRow=(lastrow);result.FirstCol =_valuesAgg.FirstCellNum;result.LastCol = _valuesAgg.LastCellNum;return result;}" }, { "index": 1775, "before": "public StopTransformJobResult stopTransformJob(StopTransformJobRequest request) {request = beforeClientExecution(request);return executeStopTransformJob(request);}", "after": "public virtual StopTransformJobResponse StopTransformJob(StopTransformJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopTransformJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopTransformJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1776, "before": "public final String toString() {return getClass().getName() + \" [\" +getStringValue() +\"]\";}", "after": "public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetType().Name).Append(\" [\");sb.Append(this.StringValue);sb.Append(\"]\");return sb.ToString();}" }, { "index": 1777, "before": "public QueryAuthenticationRequest() {super(\"LinkFace\", \"2018-07-20\", \"QueryAuthentication\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public QueryAuthenticationRequest(): base(\"LinkFace\", \"2018-07-20\", \"QueryAuthentication\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 1778, "before": "public PrintStream append(char c) {print(c);return this;}", "after": "public virtual java.io.PrintStream append(char c){print(c);return this;}" }, { "index": 1779, "before": "public StartKeyPhrasesDetectionJobResult startKeyPhrasesDetectionJob(StartKeyPhrasesDetectionJobRequest request) {request = beforeClientExecution(request);return executeStartKeyPhrasesDetectionJob(request);}", "after": "public virtual StartKeyPhrasesDetectionJobResponse StartKeyPhrasesDetectionJob(StartKeyPhrasesDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartKeyPhrasesDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StartKeyPhrasesDetectionJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1780, "before": "public QueryPhraseMap searchPhrase( final List phraseCandidate ){QueryPhraseMap currMap = this;for( TermInfo ti : phraseCandidate ){currMap = currMap.subMap.get( ti.getText() );if( currMap == null ) return null;}return currMap.isValidTermOrPhrase( phraseCandidate ) ? currMap : null;}", "after": "public virtual QueryPhraseMap SearchPhrase(IList phraseCandidate){QueryPhraseMap currMap = this;foreach (TermInfo ti in phraseCandidate){currMap.subMap.TryGetValue(ti.Text, out currMap);if (currMap == null) return null;}return currMap.IsValidTermOrPhrase(phraseCandidate) ? currMap : null;}" }, { "index": 1781, "before": "public void add(Term term) {if (term == null) {throw new IllegalArgumentException(\"Term must not be null\");}this.terms.add(term);}", "after": "public virtual void Add(Term term){if (term == null){throw new ArgumentException(\"Term must not be null\");}this.m_terms.Add(term);}" }, { "index": 1782, "before": "public ListEmailIdentitiesResult listEmailIdentities(ListEmailIdentitiesRequest request) {request = beforeClientExecution(request);return executeListEmailIdentities(request);}", "after": "public virtual ListEmailIdentitiesResponse ListEmailIdentities(ListEmailIdentitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEmailIdentitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEmailIdentitiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1783, "before": "public MutableFPNumber(BigInteger frac, int binaryExponent) {_significand = frac;_binaryExponent = binaryExponent;}", "after": "public MutableFPNumber(BigInteger frac, int binaryExponent){_significand = frac;_binaryExponent = binaryExponent;}" }, { "index": 1784, "before": "public CreateNetworkProfileResult createNetworkProfile(CreateNetworkProfileRequest request) {request = beforeClientExecution(request);return executeCreateNetworkProfile(request);}", "after": "public virtual CreateNetworkProfileResponse CreateNetworkProfile(CreateNetworkProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNetworkProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNetworkProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1785, "before": "public Transition removeTransition(int index) {return transitions.remove(index);}", "after": "public virtual void RemoveTransition(int index){transitions.RemoveAt(index);}" }, { "index": 1786, "before": "public int doLogic() throws Exception {final PerfRunData runData = getRunData();IndexWriter w = runData.getIndexWriter();if (w == null) {throw new RuntimeException(\"please open the writer before invoking NearRealtimeReader\");}if (runData.getIndexReader() != null) {throw new RuntimeException(\"please close the existing reader before invoking NearRealtimeReader\");}long t = System.currentTimeMillis();DirectoryReader r = DirectoryReader.open(w);runData.setIndexReader(r);r.decRef();reopenCount = 0;while(!stopNow) {long waitForMsec = (pauseMSec - (System.currentTimeMillis() - t));if (waitForMsec > 0) {Thread.sleep(waitForMsec);}t = System.currentTimeMillis();final DirectoryReader newReader = DirectoryReader.openIfChanged(r);if (newReader != null) {final int delay = (int) (System.currentTimeMillis()-t);if (reopenTimes.length == reopenCount) {reopenTimes = ArrayUtil.grow(reopenTimes, 1+reopenCount);}reopenTimes[reopenCount++] = delay;runData.setIndexReader(newReader);newReader.decRef();r = newReader;}}stopNow = false;return reopenCount;}", "after": "public override int DoLogic(){PerfRunData runData = RunData;IndexWriter w = runData.IndexWriter;if (w == null){throw new Exception(\"please open the writer before invoking NearRealtimeReader\");}if (runData.GetIndexReader() != null){throw new Exception(\"please close the existing reader before invoking NearRealtimeReader\");}long t = J2N.Time.CurrentTimeMilliseconds();DirectoryReader r = DirectoryReader.Open(w, true);runData.SetIndexReader(r);r.DecRef();reopenCount = 0;while (!Stop){long waitForMsec = (pauseMSec - (J2N.Time.CurrentTimeMilliseconds() - t));if (waitForMsec > 0){Thread.Sleep((int)waitForMsec);}t = J2N.Time.CurrentTimeMilliseconds();DirectoryReader newReader = DirectoryReader.OpenIfChanged(r);if (newReader != null){int delay = (int)(J2N.Time.CurrentTimeMilliseconds() - t);if (reopenTimes.Length == reopenCount){reopenTimes = ArrayUtil.Grow(reopenTimes, 1 + reopenCount);}reopenTimes[reopenCount++] = delay;runData.SetIndexReader(newReader);newReader.DecRef();r = newReader;}}Stop = false;return reopenCount;}" }, { "index": 1787, "before": "public PutAttributesResult putAttributes(PutAttributesRequest request) {request = beforeClientExecution(request);return executePutAttributes(request);}", "after": "public virtual PutAttributesResponse PutAttributes(PutAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1788, "before": "public DeleteLocalGatewayRouteTableVpcAssociationResult deleteLocalGatewayRouteTableVpcAssociation(DeleteLocalGatewayRouteTableVpcAssociationRequest request) {request = beforeClientExecution(request);return executeDeleteLocalGatewayRouteTableVpcAssociation(request);}", "after": "public virtual DeleteLocalGatewayRouteTableVpcAssociationResponse DeleteLocalGatewayRouteTableVpcAssociation(DeleteLocalGatewayRouteTableVpcAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLocalGatewayRouteTableVpcAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLocalGatewayRouteTableVpcAssociationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1789, "before": "public TreeFilter clone() {return this;}", "after": "public override RevFilter Clone(){return this;}" }, { "index": 1790, "before": "public static TreeFilter create(TreeFilter[] list) {if (list.length == 2)return create(list[0], list[1]);if (list.length < 2)throw new IllegalArgumentException(JGitText.get().atLeastTwoFiltersNeeded);final TreeFilter[] subfilters = new TreeFilter[list.length];System.arraycopy(list, 0, subfilters, 0, list.length);return new List(subfilters);}", "after": "public static TreeFilter Create(TreeFilter[] list){if (list.Length == 2){return Create(list[0], list[1]);}if (list.Length < 2){throw new ArgumentException(JGitText.Get().atLeastTwoFiltersNeeded);}TreeFilter[] subfilters = new TreeFilter[list.Length];System.Array.Copy(list, 0, subfilters, 0, list.Length);return new AndTreeFilter.List(subfilters);}" }, { "index": 1791, "before": "public void back(int delta) {while (--delta >= 0) {if (currentSubtree != null)nextSubtreePos--;ptr--;parseEntry(false);if (currentSubtree != null)ptr -= currentSubtree.getEntrySpan() - 1;}}", "after": "public override void Back(int delta){while (--delta >= 0){if (currentSubtree != null){nextSubtreePos--;}ptr--;ParseEntry();if (currentSubtree != null){ptr -= currentSubtree.GetEntrySpan() - 1;}}}" }, { "index": 1792, "before": "public Map call() throws GitAPIException {checkCallable();try (SubmoduleWalk generator = SubmoduleWalk.forIndex(repo)) {if (!paths.isEmpty())generator.setFilter(PathFilterGroup.createFromStrings(paths));Map statuses = new HashMap<>();while (generator.next()) {SubmoduleStatus status = getStatus(generator);statuses.put(status.getPath(), status);}return statuses;} catch (IOException | ConfigInvalidException e) {throw new JGitInternalException(e.getMessage(), e);}}", "after": "public override IDictionary Call(){CheckCallable();try{SubmoduleWalk generator = SubmoduleWalk.ForIndex(repo);if (!paths.IsEmpty()){generator.SetFilter(PathFilterGroup.CreateFromStrings(paths));}IDictionary statuses = new Dictionary();while (generator.Next()){SubmoduleStatus status = GetStatus(generator);statuses.Put(status.GetPath(), status);}return statuses;}catch (IOException e){throw new JGitInternalException(e.Message, e);}catch (ConfigInvalidException e){throw new JGitInternalException(e.Message, e);}}" }, { "index": 1793, "before": "public synchronized int available() {return count - pos;}", "after": "public override int available(){lock (this){return count - pos;}}" }, { "index": 1794, "before": "public SmallStream(int type, byte[] data) {this.type = type;this.data = data;}", "after": "public SmallStream(int type, byte[] data){this.type = type;this.data = data;}" }, { "index": 1795, "before": "public String escapeExtensionField(String extfield) {return QueryParserBase.escape(extfield);}", "after": "public virtual string EscapeExtensionField(string extfield){return QueryParserBase.Escape(extfield);}" }, { "index": 1796, "before": "public QueryScorer(Query query) {init(query, null, null, true);}", "after": "public QueryScorer(Query query){Init(query, null, null, true);}" }, { "index": 1797, "before": "public int getHighIx() {return _highIx;}", "after": "public int GetHighIx(){return _highIx;}" }, { "index": 1798, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[VCENTER]\\n\");buffer.append(\" .vcenter = \").append(getVCenter()).append(\"\\n\");buffer.append(\"[/VCENTER]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[VCENTER]\\n\");buffer.Append(\" .vcenter = \").Append(VCenter).Append(\"\\n\");buffer.Append(\"[/VCENTER]\\n\");return buffer.ToString();}" }, { "index": 1799, "before": "public int size(){return _limit;}", "after": "public int Size(){return _limit;}" }, { "index": 1800, "before": "public PredictCategoryRequest() {super(\"visionai-poc\", \"2020-04-08\", \"PredictCategory\");setMethod(MethodType.POST);}", "after": "public PredictCategoryRequest(): base(\"visionai-poc\", \"2020-04-08\", \"PredictCategory\"){Method = MethodType.POST;}" }, { "index": 1801, "before": "public DeleteLagResult deleteLag(DeleteLagRequest request) {request = beforeClientExecution(request);return executeDeleteLag(request);}", "after": "public virtual DeleteLagResponse DeleteLag(DeleteLagRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLagRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLagResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1802, "before": "public boolean equals(Object other) {if (!(other instanceof LongBuffer)) {return false;}LongBuffer otherBuffer = (LongBuffer) other;if (remaining() != otherBuffer.remaining()) {return false;}int myPosition = position;int otherPosition = otherBuffer.position;boolean equalSoFar = true;while (equalSoFar && (myPosition < limit)) {equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}", "after": "public override bool Equals(object other){if (!(other is java.nio.LongBuffer)){return false;}java.nio.LongBuffer otherBuffer = (java.nio.LongBuffer)other;if (remaining() != otherBuffer.remaining()){return false;}int myPosition = _position;int otherPosition = otherBuffer._position;bool equalSoFar = true;while (equalSoFar && (myPosition < _limit)){equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}" }, { "index": 1803, "before": "public void end() {state.end();}", "after": "public void End(){state.End();}" }, { "index": 1804, "before": "public BooleanMatcher(boolean value, CmpOp operator) {super(operator);_value = boolToInt(value);}", "after": "public BooleanMatcher(bool value, CmpOp optr): base(optr){_value = BoolToInt(value);}" }, { "index": 1805, "before": "public SheetVector(RefEval re) {_size = re.getNumberOfSheets();_re = re;}", "after": "public SheetVector(RefEval re){_size = re.NumberOfSheets;_re = re;}" }, { "index": 1806, "before": "public UpdateGameSessionResult updateGameSession(UpdateGameSessionRequest request) {request = beforeClientExecution(request);return executeUpdateGameSession(request);}", "after": "public virtual UpdateGameSessionResponse UpdateGameSession(UpdateGameSessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGameSessionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGameSessionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1807, "before": "public String getName() {return String.format(Locale.ROOT, \"Dirichlet(%f)\", getMu());}", "after": "public override string GetName(){return \"Dirichlet(\" + Number.ToString(Mu) + \")\";}" }, { "index": 1808, "before": "public void decompress(DataInput in, int originalLength, int offset, int length, BytesRef bytes) throws IOException {assert offset + length <= originalLength;if (length == 0) {bytes.length = 0;return;}final int compressedLength = in.readVInt();final int paddedLength = compressedLength + 1;compressed = ArrayUtil.grow(compressed, paddedLength);in.readBytes(compressed, 0, compressedLength);compressed[compressedLength] = 0; final Inflater decompressor = new Inflater(true);try {decompressor.setInput(compressed, 0, paddedLength);bytes.offset = bytes.length = 0;bytes.bytes = ArrayUtil.grow(bytes.bytes, originalLength);try {bytes.length = decompressor.inflate(bytes.bytes, bytes.length, originalLength);} catch (DataFormatException e) {throw new IOException(e);}if (!decompressor.finished()) {throw new CorruptIndexException(\"Invalid decoder state: needsInput=\" + decompressor.needsInput()+ \", needsDict=\" + decompressor.needsDictionary(), in);}} finally {decompressor.end();}if (bytes.length != originalLength) {throw new CorruptIndexException(\"Lengths mismatch: \" + bytes.length + \" != \" + originalLength, in);}bytes.offset = offset;bytes.length = length;}", "after": "public override void Decompress(DataInput input, int originalLength, int offset, int length, BytesRef bytes){Debug.Assert(offset + length <= originalLength);if (length == 0){bytes.Length = 0;return;}byte[] compressedBytes = new byte[input.ReadVInt32()];input.ReadBytes(compressedBytes, 0, compressedBytes.Length);byte[] decompressedBytes = null;using (MemoryStream decompressedStream = new MemoryStream()){using (MemoryStream compressedStream = new MemoryStream(compressedBytes)){using (DeflateStream dStream = new DeflateStream(compressedStream, System.IO.Compression.CompressionMode.Decompress)){dStream.CopyTo(decompressedStream);}}decompressedBytes = decompressedStream.ToArray();}if (decompressedBytes.Length != originalLength){throw new CorruptIndexException(\"Length mismatch: \" + decompressedBytes.Length + \" != \" + originalLength + \" (resource=\" + input + \")\");}bytes.Bytes = decompressedBytes;bytes.Offset = offset;bytes.Length = length;}" }, { "index": 1809, "before": "public Pair splitExtensionField(String defaultField,String field) {int indexOf = field.indexOf(this.extensionFieldDelimiter);if (indexOf < 0)return new Pair<>(field, null);final String indexField = indexOf == 0 ? defaultField : field.substring(0,indexOf);final String extensionKey = field.substring(indexOf + 1);return new Pair<>(indexField, extensionKey);}", "after": "public virtual Tuple SplitExtensionField(string defaultField, string field){int indexOf = field.IndexOf(this.extensionFieldDelimiter);if (indexOf < 0)return new Tuple(field, null);string indexField = indexOf == 0 ? defaultField : field.Substring(0, indexOf);string extensionKey = field.Substring(indexOf + 1);return new Tuple(indexField, extensionKey);}" }, { "index": 1810, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[FRAME]\\n\");buffer.append(\" .borderType = \").append(\"0x\").append(HexDump.toHex( getBorderType ())).append(\" (\").append( getBorderType() ).append(\" )\");buffer.append(System.getProperty(\"line.separator\"));buffer.append(\" .options = \").append(\"0x\").append(HexDump.toHex( getOptions ())).append(\" (\").append( getOptions() ).append(\" )\");buffer.append(System.getProperty(\"line.separator\"));buffer.append(\" .autoSize = \").append(isAutoSize()).append('\\n');buffer.append(\" .autoPosition = \").append(isAutoPosition()).append('\\n');buffer.append(\"[/FRAME]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[FRAME]\\n\");buffer.Append(\" .borderType = \").Append(\"0x\").Append(HexDump.ToHex(BorderType)).Append(\" (\").Append(BorderType).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\" .options = \").Append(\"0x\").Append(HexDump.ToHex(Options)).Append(\" (\").Append(Options).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\" .autoSize = \").Append(IsAutoSize).Append('\\n');buffer.Append(\" .autoPosition = \").Append(IsAutoPosition).Append('\\n');buffer.Append(\"[/FRAME]\\n\");return buffer.ToString();}" }, { "index": 1811, "before": "public Cluster pauseCluster(PauseClusterRequest request) {request = beforeClientExecution(request);return executePauseCluster(request);}", "after": "public virtual PauseClusterResponse PauseCluster(PauseClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = PauseClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = PauseClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1812, "before": "public void setValue(String newValue) {value = newValue;}", "after": "public virtual void SetValue(string newValue){value = newValue;}" }, { "index": 1813, "before": "public AllocateAddressResult allocateAddress(AllocateAddressRequest request) {request = beforeClientExecution(request);return executeAllocateAddress(request);}", "after": "public virtual AllocateAddressResponse AllocateAddress(AllocateAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = AllocateAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = AllocateAddressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1814, "before": "public GetNetworkProfileResult getNetworkProfile(GetNetworkProfileRequest request) {request = beforeClientExecution(request);return executeGetNetworkProfile(request);}", "after": "public virtual GetNetworkProfileResponse GetNetworkProfile(GetNetworkProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetNetworkProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = GetNetworkProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1815, "before": "public static void reThrow(Throwable th) throws IOException {if (th != null) {throw rethrowAlways(th);}}", "after": "public static void ReThrow(Exception th){if (th != null){if (th is System.IO.IOException){throw th;}ReThrowUnchecked(th);}}" }, { "index": 1816, "before": "public void removeCell(CellValueRecordInterface cvRec) {if (cvRec instanceof FormulaRecordAggregate) {((FormulaRecordAggregate)cvRec).notifyFormulaChanging();}_valuesAgg.removeCell(cvRec);}", "after": "public void RemoveCell(CellValueRecordInterface cvRec){if (cvRec is FormulaRecordAggregate){((FormulaRecordAggregate)cvRec).NotifyFormulaChanging();}_valuesAgg.RemoveCell(cvRec);}" }, { "index": 1817, "before": "public Snapshot createSnapshot(CreateSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateSnapshot(request);}", "after": "public virtual CreateSnapshotResponse CreateSnapshot(CreateSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1818, "before": "public Token get(int i) {if ( i < 0 || i >= tokens.size() ) {throw new IndexOutOfBoundsException(\"token index \"+i+\" out of range 0..\"+(tokens.size()-1));}return tokens.get(i);}", "after": "public virtual IToken Get(int i){if (i < 0 || i >= tokens.Count){throw new ArgumentOutOfRangeException(\"token index \" + i + \" out of range 0..\" + (tokens.Count - 1));}return tokens[i];}" }, { "index": 1819, "before": "public DescribeAlarmsResult describeAlarms(DescribeAlarmsRequest request) {request = beforeClientExecution(request);return executeDescribeAlarms(request);}", "after": "public virtual DescribeAlarmsResponse DescribeAlarms(DescribeAlarmsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAlarmsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAlarmsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1820, "before": "public static long[] grow(long[] array, int minSize) {assert minSize >= 0: \"size must be positive (got \" + minSize + \"): likely integer overflow?\";if (array.length < minSize) {return growExact(array, oversize(minSize, Long.BYTES));} elsereturn array;}", "after": "public static long[] Grow(long[] array, int minSize){Debug.Assert(minSize >= 0, \"size must be positive (got \" + minSize + \"): likely integer overflow?\");if (array.Length < minSize){long[] newArray = new long[Oversize(minSize, RamUsageEstimator.NUM_BYTES_INT64)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}" }, { "index": 1821, "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() );int remainingBytes = 8;LittleEndian.putInt( data, offset + 4, remainingBytes );LittleEndian.putInt( data, offset + 8, field_1_shapeId );LittleEndian.putInt( data, offset + 12, field_2_flags );listener.afterRecordSerialize( offset + getRecordSize(), getRecordId(), getRecordSize(), this );return 8 + 8;}", "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);int remainingBytes = 8;LittleEndian.PutInt(data, offset + 4, remainingBytes);LittleEndian.PutInt(data, offset + 8, field_1_shapeId);LittleEndian.PutInt(data, offset + 12, field_2_flags);listener.AfterRecordSerialize(offset + RecordSize, RecordId, RecordSize, this);return 8 + 8;}" }, { "index": 1822, "before": "public LsRemoteCommand setTags(boolean tags) {this.tags = tags;return this;}", "after": "public virtual NGit.Api.LsRemoteCommand SetTags(bool tags){this.tags = tags;return this;}" }, { "index": 1823, "before": "public ASCIIFoldingFilterFactory(Map args) {super(args);preserveOriginal = getBoolean(args, PRESERVE_ORIGINAL, false);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public ASCIIFoldingFilterFactory(IDictionary args): base(args){preserveOriginal = GetBoolean(args, \"preserveOriginal\", false);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 1824, "before": "public String toString() {return \"input=\" + input.get() + \" output=\" + output + \" context=\" + context + \" boost=\" + boost + \" payload=\" + payload;}", "after": "public override string ToString(){return \"input=\" + Input + \" cost=\" + Cost;}" }, { "index": 1825, "before": "public ListNotesCommand setNotesRef(String notesRef) {checkCallable();this.notesRef = notesRef;return this;}", "after": "public virtual NGit.Api.ListNotesCommand SetNotesRef(string notesRef){CheckCallable();this.notesRef = notesRef;return this;}" }, { "index": 1826, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[SXVD]\\n\");buffer.append(\" .sxaxis = \").append(HexDump.shortToHex(_sxaxis)).append('\\n');buffer.append(\" .cSub = \").append(HexDump.shortToHex(_cSub)).append('\\n');buffer.append(\" .grbitSub = \").append(HexDump.shortToHex(_grbitSub)).append('\\n');buffer.append(\" .cItm = \").append(HexDump.shortToHex(_cItm)).append('\\n');buffer.append(\" .name = \").append(_name).append('\\n');buffer.append(\"[/SXVD]\\n\");return buffer.toString();}", "after": "public override string ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[SXVD]\\n\");buffer.Append(\" .sxaxis = \").Append(HexDump.ShortToHex(sxaxis)).Append('\\n');buffer.Append(\" .cSub = \").Append(HexDump.ShortToHex(cSub)).Append('\\n');buffer.Append(\" .grbitSub = \").Append(HexDump.ShortToHex(grbitSub)).Append('\\n');buffer.Append(\" .cItm = \").Append(HexDump.ShortToHex(cItm)).Append('\\n');buffer.Append(\" .name = \").Append(_name).Append('\\n');buffer.Append(\"[/SXVD]\\n\");return buffer.ToString();}" }, { "index": 1827, "before": "public V get(Object o) {if(o == null)throw new NullPointerException();return null;}", "after": "public override V Get(object o){if (o == null){throw new ArgumentNullException(\"o\");}return default(V);}" }, { "index": 1828, "before": "public String toString() {final StringBuilder sb = new StringBuilder();sb.append(\"[NAMECMT]\\n\");sb.append(\" .record type = \").append(HexDump.shortToHex(field_1_record_type)).append(\"\\n\");sb.append(\" .frt cell ref flag = \").append(HexDump.byteToHex(field_2_frt_cell_ref_flag)).append(\"\\n\");sb.append(\" .reserved = \").append(field_3_reserved).append(\"\\n\");sb.append(\" .name length = \").append(field_6_name_text.length()).append(\"\\n\");sb.append(\" .comment length = \").append(field_7_comment_text.length()).append(\"\\n\");sb.append(\" .name = \").append(field_6_name_text).append(\"\\n\");sb.append(\" .comment = \").append(field_7_comment_text).append(\"\\n\");sb.append(\"[/NAMECMT]\\n\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(\"[NAMECMT]\\n\");sb.Append(\" .record type = \").Append(HexDump.ShortToHex(field_1_record_type)).Append(\"\\n\");sb.Append(\" .frt cell ref flag = \").Append(HexDump.ByteToHex(field_2_frt_cell_ref_flag)).Append(\"\\n\");sb.Append(\" .reserved = \").Append(field_3_reserved).Append(\"\\n\");sb.Append(\" .name length = \").Append(field_6_name_text.Length).Append(\"\\n\");sb.Append(\" .comment length = \").Append(field_7_comment_text.Length).Append(\"\\n\");sb.Append(\" .name = \").Append(field_6_name_text).Append(\"\\n\");sb.Append(\" .comment = \").Append(field_7_comment_text).Append(\"\\n\");sb.Append(\"[/NAMECMT]\\n\");return sb.ToString();}" }, { "index": 1829, "before": "public CodepointCountFilterFactory(Map args) {super(args);min = requireInt(args, MIN_KEY);max = requireInt(args, MAX_KEY);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public CodepointCountFilterFactory(IDictionary args): base(args){min = RequireInt32(args, MIN_KEY);max = RequireInt32(args, MAX_KEY);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 1830, "before": "public Entry ceilingEntry(K key) {return immutableCopy(findBounded(key, CEILING));}", "after": "public java.util.MapClass.Entry ceilingEntry(K key){return this._enclosing.immutableCopy(this.findBounded(key, java.util.TreeMap.Relation.CEILING));}" }, { "index": 1831, "before": "public long setStartTimeMillis() {startTimeMillis = System.currentTimeMillis();return startTimeMillis;}", "after": "public virtual long SetStartTimeMillis(){startTimeMillis = J2N.Time.CurrentTimeMilliseconds();return startTimeMillis;}" }, { "index": 1832, "before": "public ListProfilingGroupsResult listProfilingGroups(ListProfilingGroupsRequest request) {request = beforeClientExecution(request);return executeListProfilingGroups(request);}", "after": "public virtual ListProfilingGroupsResponse ListProfilingGroups(ListProfilingGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListProfilingGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListProfilingGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1833, "before": "public static PersonIdent parsePersonIdent(String in) {return parsePersonIdent(Constants.encode(in), 0);}", "after": "public static PersonIdent ParsePersonIdent(string @in){return ParsePersonIdent(Constants.Encode(@in), 0);}" }, { "index": 1834, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_numerator);out.writeShort(field_2_denominator);}", "after": "public override void Serialize(ILittleEndianOutput out1) {out1.WriteShort(field_1_numerator);out1.WriteShort(field_2_denominator);}" }, { "index": 1835, "before": "public AddCommand setUpdate(boolean update) {this.update = update;return this;}", "after": "public virtual NGit.Api.AddCommand SetUpdate(bool update){this.update = update;return this;}" }, { "index": 1836, "before": "public static T[] copyOf(T[] original, int newLength) {if (original == null) {throw new NullPointerException();}if (newLength < 0) {throw new NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}", "after": "public static int[] copyOf(int[] original, int newLength){if (newLength < 0){throw new java.lang.NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}" }, { "index": 1837, "before": "public void writeByte(int v) {writeContinueIfRequired(1);_ulrOutput.writeByte(v);}", "after": "public void WriteByte(int v){WriteContinueIfRequired(1);_ulrOutput.WriteByte(v);}" }, { "index": 1838, "before": "public DeleteDBInstanceRequest(String dBInstanceIdentifier) {setDBInstanceIdentifier(dBInstanceIdentifier);}", "after": "public DeleteDBInstanceRequest(string dbInstanceIdentifier){_dbInstanceIdentifier = dbInstanceIdentifier;}" }, { "index": 1839, "before": "public void reset() {previousValue = value = minValue;}", "after": "public virtual void Reset(){previousValue = value = minValue;}" }, { "index": 1840, "before": "public void setLength(long sz) {setLength((int) sz);}", "after": "public virtual void SetLength(long sz){SetLength((int)sz);}" }, { "index": 1841, "before": "public static String revisionVersion(IndexCommit indexCommit, IndexCommit taxoCommit) {return Long.toString(indexCommit.getGeneration(), RADIX) + \":\" + Long.toString(taxoCommit.getGeneration(), RADIX);}", "after": "public static string RevisionVersion(IndexCommit indexCommit, IndexCommit taxonomyCommit){return string.Format(\"{0:X}:{1:X}\", indexCommit.Generation, taxonomyCommit.Generation);}" }, { "index": 1842, "before": "public String pattern() {return needleString;}", "after": "public virtual string Pattern(){return needleString;}" }, { "index": 1843, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append( \"[SST]\\n\" );buffer.append( \" .numstrings = \" ).append( Integer.toHexString( getNumStrings() ) ).append( \"\\n\" );buffer.append( \" .uniquestrings = \" ).append( Integer.toHexString( getNumUniqueStrings() ) ).append( \"\\n\" );for ( int k = 0; k < field_3_strings.size(); k++ ){UnicodeString s = field_3_strings.get( k );buffer.append(\" .string_\").append(k).append(\" = \").append( s.getDebugInfo() ).append( \"\\n\" );}buffer.append( \"[/SST]\\n\" );return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[SST]\\n\");buffer.Append(\" .numstrings = \").Append(StringUtil.ToHexString(NumStrings)).Append(\"\\n\");buffer.Append(\" .uniquestrings = \").Append(StringUtil.ToHexString(NumUniqueStrings)).Append(\"\\n\");for (int k = 0; k < field_3_strings.Size; k++){UnicodeString s = (UnicodeString)field_3_strings[k];buffer.Append(\" .string_\" + k + \" = \").Append(s.GetDebugInfo()).Append(\"\\n\");}buffer.Append(\"[/SST]\\n\");return buffer.ToString();}" }, { "index": 1844, "before": "public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChildren() == null || getChildren().size() == 0)return \"\";StringBuilder sb = new StringBuilder();String filler = \"\";for (Iterator it = getChildren().iterator(); it.hasNext();) {sb.append(filler).append(it.next().toQueryString(escapeSyntaxParser));filler = \" OR \";}if ((getParent() != null && getParent() instanceof GroupQueryNode)|| isRoot())return sb.toString();elsereturn \"( \" + sb.toString() + \" )\";}", "after": "public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){var children = GetChildren();if (children == null || children.Count == 0)return \"\";StringBuilder sb = new StringBuilder();string filler = \"\";foreach (var child in children){sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));filler = \" OR \";}if ((Parent != null && Parent is GroupQueryNode)|| IsRoot)return sb.ToString();elsereturn \"( \" + sb.ToString() + \" )\";}" }, { "index": 1845, "before": "public PushCommand setReceivePack(String receivePack) {checkCallable();this.receivePack = receivePack;return this;}", "after": "public virtual NGit.Api.PushCommand SetReceivePack(string receivePack){CheckCallable();this.receivePack = receivePack;return this;}" }, { "index": 1846, "before": "public DeleteImagePermissionsResult deleteImagePermissions(DeleteImagePermissionsRequest request) {request = beforeClientExecution(request);return executeDeleteImagePermissions(request);}", "after": "public virtual DeleteImagePermissionsResponse DeleteImagePermissions(DeleteImagePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteImagePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteImagePermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1847, "before": "public static Ptg[] getTokens(Formula formula) {if (formula == null) {return null;}return formula.getTokens();}", "after": "public static Ptg[] GetTokens(Formula formula){if (formula == null){return null;}return formula.Tokens;}" }, { "index": 1848, "before": "public void skipToNextByte() {remainingBits = 0;}", "after": "public void SkipToNextByte(){remainingBits = 0;}" }, { "index": 1849, "before": "public GetJourneyExecutionActivityMetricsResult getJourneyExecutionActivityMetrics(GetJourneyExecutionActivityMetricsRequest request) {request = beforeClientExecution(request);return executeGetJourneyExecutionActivityMetrics(request);}", "after": "public virtual GetJourneyExecutionActivityMetricsResponse GetJourneyExecutionActivityMetrics(GetJourneyExecutionActivityMetricsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetJourneyExecutionActivityMetricsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetJourneyExecutionActivityMetricsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1850, "before": "public DeregisterContainerInstanceResult deregisterContainerInstance(DeregisterContainerInstanceRequest request) {request = beforeClientExecution(request);return executeDeregisterContainerInstance(request);}", "after": "public virtual DeregisterContainerInstanceResponse DeregisterContainerInstance(DeregisterContainerInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterContainerInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterContainerInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1851, "before": "public DeleteEntityRecognizerResult deleteEntityRecognizer(DeleteEntityRecognizerRequest request) {request = beforeClientExecution(request);return executeDeleteEntityRecognizer(request);}", "after": "public virtual DeleteEntityRecognizerResponse DeleteEntityRecognizer(DeleteEntityRecognizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEntityRecognizerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEntityRecognizerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1852, "before": "public DescribeGameSessionsResult describeGameSessions(DescribeGameSessionsRequest request) {request = beforeClientExecution(request);return executeDescribeGameSessions(request);}", "after": "public virtual DescribeGameSessionsResponse DescribeGameSessions(DescribeGameSessionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGameSessionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGameSessionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1853, "before": "public SegToken(char[] idArray, int start, int end, int wordType, int weight) {this.charArray = idArray;this.startOffset = start;this.endOffset = end;this.wordType = wordType;this.weight = weight;}", "after": "public SegToken(char[] idArray, int start, int end, WordType wordType, int weight){this.CharArray = idArray;this.StartOffset = start;this.EndOffset = end;this.WordType = wordType;this.Weight = weight;}" }, { "index": 1854, "before": "public int compareTo( TermInfo o ){return ( this.position - o.position );}", "after": "public virtual int CompareTo(TermInfo o){return (this.position - o.position);}" }, { "index": 1855, "before": "public TagMeetingResult tagMeeting(TagMeetingRequest request) {request = beforeClientExecution(request);return executeTagMeeting(request);}", "after": "public virtual TagMeetingResponse TagMeeting(TagMeetingRequest request){var options = new InvokeOptions();options.RequestMarshaller = TagMeetingRequestMarshaller.Instance;options.ResponseUnmarshaller = TagMeetingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1856, "before": "public final Buffer limit(int newLimit) {limitImpl(newLimit);return this;}", "after": "public java.nio.Buffer limit(int newLimit){limitImpl(newLimit);return this;}" }, { "index": 1857, "before": "public final DoubleValuesSource makeRecipDistanceValueSource(Shape queryShape) {Rectangle bbox = queryShape.getBoundingBox();double diagonalDist = ctx.getDistCalc().distance(ctx.makePoint(bbox.getMinX(), bbox.getMinY()), bbox.getMaxX(), bbox.getMaxY());double distToEdge = diagonalDist * 0.5;float c = (float)distToEdge * 0.1f;DoubleValuesSource distance = makeDistanceValueSource(queryShape.getCenter(), 1.0);return new ReciprocalDoubleValuesSource(c, distance);}", "after": "public ValueSource MakeRecipDistanceValueSource(IShape queryShape){IRectangle bbox = queryShape.BoundingBox;double diagonalDist = m_ctx.DistCalc.Distance(m_ctx.MakePoint(bbox.MinX, bbox.MinY), bbox.MaxX, bbox.MaxY);double distToEdge = diagonalDist * 0.5;float c = (float)distToEdge * 0.1f; return new ReciprocalSingleFunction(MakeDistanceValueSource(queryShape.Center, 1.0), 1f, c, c);}" }, { "index": 1858, "before": "public GetLoginProfileRequest(String userName) {setUserName(userName);}", "after": "public GetLoginProfileRequest(string userName){_userName = userName;}" }, { "index": 1859, "before": "public int serializeComplexPart( byte[] data, int pos ){return 0;}", "after": "public override int SerializeComplexPart(byte[] data, int pos){return 0;}" }, { "index": 1860, "before": "public DBCellRecord(int rowOffset, short[] cellOffsets) {field_1_row_offset = rowOffset;field_2_cell_offsets = cellOffsets;}", "after": "public DBCellRecord(int rowOffset, short[]cellOffsets) {field_1_row_offset = rowOffset;field_2_cell_offsets = cellOffsets;}" }, { "index": 1861, "before": "public StoredField(String name, long value) {super(name, TYPE);fieldsData = value;}", "after": "public StoredField(string name, int value): base(name, TYPE){FieldsData = new Int32(value);}" }, { "index": 1862, "before": "public final Locale getLocale() {return locale;}", "after": "public CultureInfo GetLocale(){return locale;}" }, { "index": 1863, "before": "public SpanNotBuilder(SpanQueryBuilder factory) {this.factory = factory;}", "after": "public SpanNotBuilder(ISpanQueryBuilder factory){this.factory = factory;}" }, { "index": 1864, "before": "public String toString() {return toString(0);}", "after": "public override string ToString(){return ToString(Info.Dir, 0);}" }, { "index": 1865, "before": "public int compareTo(ExtRst o) {int result;result = reserved - o.reserved;if (result != 0) {return result;}result = formattingFontIndex - o.formattingFontIndex;if (result != 0) {return result;}result = formattingOptions - o.formattingOptions;if (result != 0) {return result;}result = numberOfRuns - o.numberOfRuns;if (result != 0) {return result;}result = phoneticText.compareTo(o.phoneticText);if (result != 0) {return result;}result = phRuns.length - o.phRuns.length;if (result != 0) {return result;}for(int i=0; i(request, options);}" }, { "index": 1867, "before": "public static long[] grow(long[] array) {return grow(array, 1 + array.length);}", "after": "public static short[] Grow(short[] array){return Grow(array, 1 + array.Length);}" }, { "index": 1868, "before": "public TranslateTextResult translateText(TranslateTextRequest request) {request = beforeClientExecution(request);return executeTranslateText(request);}", "after": "public virtual TranslateTextResponse TranslateText(TranslateTextRequest request){var options = new InvokeOptions();options.RequestMarshaller = TranslateTextRequestMarshaller.Instance;options.ResponseUnmarshaller = TranslateTextResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1869, "before": "public DimensionsRecord(RecordInputStream in) {field_1_first_row = in.readInt();field_2_last_row = in.readInt();field_3_first_col = in.readShort();field_4_last_col = in.readShort();field_5_zero = in.readShort();if (in.available() == 2) {logger.log(POILogger.INFO, \"DimensionsRecord has extra 2 bytes.\");in.readShort();}}", "after": "public DimensionsRecord(RecordInputStream in1){field_1_first_row = in1.ReadInt();field_2_last_row = in1.ReadInt();field_3_first_col = in1.ReadShort();field_4_last_col = in1.ReadShort();field_5_zero = in1.ReadShort();}" }, { "index": 1870, "before": "public int flags() {return flags;}", "after": "public int flags(){return _flags;}" }, { "index": 1871, "before": "public Vector(int capacity, int capacityIncrement) {if (capacity < 0) {throw new IllegalArgumentException();}elementData = newElementArray(capacity);elementCount = 0;this.capacityIncrement = capacityIncrement;}", "after": "public Vector(int capacity_1, int capacityIncrement){if (capacity_1 < 0){throw new System.ArgumentException();}elementData = new object[capacity_1];elementCount = 0;this.capacityIncrement = capacityIncrement;}" }, { "index": 1872, "before": "public DeleteLogGroupRequest(String logGroupName) {setLogGroupName(logGroupName);}", "after": "public DeleteLogGroupRequest(string logGroupName){_logGroupName = logGroupName;}" }, { "index": 1873, "before": "public RemoveManagedScalingPolicyResult removeManagedScalingPolicy(RemoveManagedScalingPolicyRequest request) {request = beforeClientExecution(request);return executeRemoveManagedScalingPolicy(request);}", "after": "public virtual RemoveManagedScalingPolicyResponse RemoveManagedScalingPolicy(RemoveManagedScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveManagedScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveManagedScalingPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1874, "before": "public GetDataRetrievalPolicyResult getDataRetrievalPolicy(GetDataRetrievalPolicyRequest request) {request = beforeClientExecution(request);return executeGetDataRetrievalPolicy(request);}", "after": "public virtual GetDataRetrievalPolicyResponse GetDataRetrievalPolicy(GetDataRetrievalPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDataRetrievalPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDataRetrievalPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1875, "before": "public DescribeExportImageTasksResult describeExportImageTasks(DescribeExportImageTasksRequest request) {request = beforeClientExecution(request);return executeDescribeExportImageTasks(request);}", "after": "public virtual DescribeExportImageTasksResponse DescribeExportImageTasks(DescribeExportImageTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeExportImageTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeExportImageTasksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1876, "before": "public DefaultICUTokenizerConfig(boolean cjkAsWords, boolean myanmarAsWords) {this.cjkAsWords = cjkAsWords;this.myanmarAsWords = myanmarAsWords;}", "after": "public DefaultICUTokenizerConfig(bool cjkAsWords, bool myanmarAsWords){this.cjkAsWords = cjkAsWords;this.myanmarAsWords = myanmarAsWords;}" }, { "index": 1877, "before": "public DisableAvailabilityZonesForLoadBalancerResult disableAvailabilityZonesForLoadBalancer(DisableAvailabilityZonesForLoadBalancerRequest request) {request = beforeClientExecution(request);return executeDisableAvailabilityZonesForLoadBalancer(request);}", "after": "public virtual DisableAvailabilityZonesForLoadBalancerResponse DisableAvailabilityZonesForLoadBalancer(DisableAvailabilityZonesForLoadBalancerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableAvailabilityZonesForLoadBalancerRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableAvailabilityZonesForLoadBalancerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1878, "before": "public synchronized void setIndexFieldName(String dimName, String indexFieldName) {DimConfig ft = fieldTypes.get(dimName);if (ft == null) {ft = new DimConfig();fieldTypes.put(dimName, ft);}ft.indexFieldName = indexFieldName;}", "after": "public virtual void SetIndexFieldName(string dimName, string indexFieldName){lock (this){if (!fieldTypes.TryGetValue(dimName, out DimConfig fieldType)){fieldTypes[dimName] = new DimConfig { IndexFieldName = indexFieldName };}else{fieldType.IndexFieldName = indexFieldName;}}}" }, { "index": 1879, "before": "public BytesRef encode(char[] buffer, int offset, int length) {int payload = ArrayUtil.parseInt(buffer, offset, length);byte[] bytes = PayloadHelper.encodeInt(payload);BytesRef result = new BytesRef(bytes);return result;}", "after": "public override BytesRef Encode(char[] buffer, int offset, int length){int payload = ArrayUtil.ParseInt32(buffer, offset, length); byte[] bytes = PayloadHelper.EncodeInt32(payload);BytesRef result = new BytesRef(bytes);return result;}" }, { "index": 1880, "before": "public HideObjRecord(RecordInputStream in) {field_1_hide_obj = in.readShort();}", "after": "public HideObjRecord(RecordInputStream in1){field_1_hide_obj = in1.ReadShort();}" }, { "index": 1881, "before": "public String toString() {if ( isEmpty() ) return \"[]\";StringBuilder buf = new StringBuilder();buf.append(\"[\");for (int i=0; i0 ) buf.append(\", \");if ( returnStates[i]==EMPTY_RETURN_STATE ) {buf.append(\"$\");continue;}buf.append(returnStates[i]);if ( parents[i]!=null ) {buf.append(' ');buf.append(parents[i].toString());}else {buf.append(\"null\");}}buf.append(\"]\");return buf.toString();}", "after": "public override String ToString(){if (IsEmpty)return \"[]\";StringBuilder buf = new StringBuilder();buf.Append(\"[\");for (int i = 0; i < returnStates.Length; i++){if (i > 0) buf.Append(\", \");if (returnStates[i] == EMPTY_RETURN_STATE){buf.Append(\"$\");continue;}buf.Append(returnStates[i]);if (parents[i] != null){buf.Append(' ');buf.Append(parents[i].ToString());}else {buf.Append(\"null\");}}buf.Append(\"]\");return buf.ToString();}" }, { "index": 1882, "before": "public synchronized int getSecondaryProgress() {return mIndeterminate ? 0 : mSecondaryProgress;}", "after": "public virtual int getSecondaryProgress(){lock (this){return mIndeterminate ? 0 : mSecondaryProgress;}}" }, { "index": 1883, "before": "public DeleteContactMethodResult deleteContactMethod(DeleteContactMethodRequest request) {request = beforeClientExecution(request);return executeDeleteContactMethod(request);}", "after": "public virtual DeleteContactMethodResponse DeleteContactMethod(DeleteContactMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteContactMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteContactMethodResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1884, "before": "@Override public List subList(int start, int end) {synchronized (mutex) {return new SynchronizedList(list.subList(start, end), mutex);}}", "after": "public virtual java.util.List subList(int start, int end){lock (mutex){return new java.util.Collections.SynchronizedList(list.subList(start, end), mutex);}}" }, { "index": 1885, "before": "@Override public boolean equals(Object object) {return m.equals(object);}", "after": "public override bool Equals(object @object){return mapEntry.Equals(@object);}" }, { "index": 1886, "before": "public static String getSchemePrefix(String spec) {int colon = spec.indexOf(':');if (colon < 1) {return null;}for (int i = 0; i < colon; i++) {char c = spec.charAt(i);if (!isValidSchemeChar(i, c)) {return null;}}return spec.substring(0, colon).toLowerCase(Locale.US);}", "after": "public static string getSchemePrefix(string spec){int colon = spec.IndexOf(':');if (colon < 1){return null;}{for (int i = 0; i < colon; i++){char c = spec[i];if (!isValidSchemeChar(i, c)){return null;}}}return Sharpen.StringHelper.Substring(spec, 0, colon).ToLower(System.Globalization.CultureInfo.InvariantCulture);}" }, { "index": 1887, "before": "public ByteBuffer put(byte[] src, int srcOffset, int byteCount) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer put(byte[] src, int srcOffset, int byteCount){throw new System.NotImplementedException();}" }, { "index": 1888, "before": "public CreateServiceResult createService(CreateServiceRequest request) {request = beforeClientExecution(request);return executeCreateService(request);}", "after": "public virtual CreateServiceResponse CreateService(CreateServiceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateServiceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateServiceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1889, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(_numberOfRegions);for (int i = 0; i < _numberOfRegions; i++) {_regions[_startIndex + i].serialize(out);}}", "after": "public override void Serialize(ILittleEndianOutput out1){int nItems = _numberOfRegions;out1.WriteShort(nItems);for (int i = 0; i < _numberOfRegions; i++){_regions[_startIndex + i].Serialize(out1);}}" }, { "index": 1890, "before": "public StringBuilder insert(int offset, char c) {insert0(offset, c);return this;}", "after": "public java.lang.StringBuilder insert(int offset, char c){insert0(offset, c);return this;}" }, { "index": 1891, "before": "public LabelSSTRecord(RecordInputStream in) {super(in);field_4_sst_index = in.readInt();}", "after": "public LabelSSTRecord(RecordInputStream in1): base(in1){field_4_sst_index = in1.ReadInt();}" }, { "index": 1892, "before": "public void setObjectId(AnyObjectId id) {if (objectId == null)objectId = id.copy();}", "after": "public virtual void SetObjectId(AnyObjectId id){if (objectId == null){objectId = id.Copy();}}" }, { "index": 1893, "before": "public int add(CFRecordsAggregate cfAggregate) {cfAggregate.getHeader().setID(_cfHeaders.size());_cfHeaders.add(cfAggregate);return _cfHeaders.size() - 1;}", "after": "public int Add(CFRecordsAggregate cfAggregate){_cfHeaders.Add(cfAggregate);return _cfHeaders.Count - 1;}" }, { "index": 1894, "before": "public TermVectorsPostingsArray(int size) {super(size);freqs = new int[size];lastOffsets = new int[size];lastPositions = new int[size];}", "after": "public TermVectorsPostingsArray(int size): base(size){freqs = new int[size];lastOffsets = new int[size];lastPositions = new int[size];}" }, { "index": 1895, "before": "public FieldsQuery(SrndQuery q, List fieldNames, char fieldOp) {this.q = q;this.fieldNames = fieldNames;this.fieldOp = fieldOp;}", "after": "public FieldsQuery(SrndQuery q, IList fieldNames, char fieldOp){this.q = q;this.fieldNames = fieldNames;this.fieldOp = fieldOp;}" }, { "index": 1896, "before": "public TokenStream create(TokenStream in) {return new GreekLowerCaseFilter(in);}", "after": "public override TokenStream Create(TokenStream @in){return new GreekLowerCaseFilter(m_luceneMatchVersion, @in);}" }, { "index": 1897, "before": "public ECSMetadataServiceCredentialsFetcher() {this.connectionTimeoutInMilliseconds = DEFAULT_TIMEOUT_IN_MILLISECONDS;}", "after": "public ECSMetadataServiceCredentialsFetcher(){connectionTimeoutInMilliseconds = DEFAULT_TIMEOUT_IN_MILLISECONDS;}" }, { "index": 1898, "before": "public static Decoder getDecoder(Format format, int version, int bitsPerValue) {checkVersion(version);return BulkOperation.of(format, bitsPerValue);}", "after": "public static IDecoder GetDecoder(Format format, int version, int bitsPerValue){CheckVersion(version);return BulkOperation.Of(format, bitsPerValue);}" }, { "index": 1899, "before": "public synchronized void reset() {nameFinder.clearAdaptiveData();}", "after": "public virtual void Reset(){lock (this){nameFinder.clearAdaptiveData();}}" }, { "index": 1900, "before": "public String nextKeyString() {return new String(nextKey());}", "after": "public virtual string NextKeyString(){return new string(NextKey());}" }, { "index": 1901, "before": "public DescribeEventsResult describeEvents() {return describeEvents(new DescribeEventsRequest());}", "after": "public virtual DescribeEventsResponse DescribeEvents(){return DescribeEvents(new DescribeEventsRequest());}" }, { "index": 1902, "before": "public UpdateNodeResult updateNode(UpdateNodeRequest request) {request = beforeClientExecution(request);return executeUpdateNode(request);}", "after": "public virtual UpdateNodeResponse UpdateNode(UpdateNodeRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateNodeRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateNodeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1903, "before": "public GetJobOutputRequest(String vaultName, String jobId, String range) {setVaultName(vaultName);setJobId(jobId);setRange(range);}", "after": "public GetJobOutputRequest(string vaultName, string jobId, string range){_vaultName = vaultName;_jobId = jobId;_range = range;}" }, { "index": 1904, "before": "public static String stripTags(String buf, int start) {if (start>0) {buf = buf.substring(start);}return buf.replaceAll(\"<[^>]*>\", \" \");}", "after": "public static string StripTags(string buf, int start){if (start > 0){buf = buf.Substring(0);}return Regex.Replace(buf, \"<[^>]*>\", \" \");}" }, { "index": 1905, "before": "public DescribeLaunchTemplatesResult describeLaunchTemplates(DescribeLaunchTemplatesRequest request) {request = beforeClientExecution(request);return executeDescribeLaunchTemplates(request);}", "after": "public virtual DescribeLaunchTemplatesResponse DescribeLaunchTemplates(DescribeLaunchTemplatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLaunchTemplatesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLaunchTemplatesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1906, "before": "public SynonymFilterFactory(Map args) {super(args);ignoreCase = getBoolean(args, \"ignoreCase\", false);synonyms = require(args, \"synonyms\");format = get(args, \"format\");expand = getBoolean(args, \"expand\", true);analyzerName = get(args, \"analyzer\");tokenizerFactory = get(args, \"tokenizerFactory\");if (analyzerName != null && tokenizerFactory != null) {throw new IllegalArgumentException(\"Analyzer and TokenizerFactory can't be specified both: \" +analyzerName + \" and \" + tokenizerFactory);}if (tokenizerFactory != null) {tokArgs.put(\"luceneMatchVersion\", getLuceneMatchVersion().toString());for (Iterator itr = args.keySet().iterator(); itr.hasNext();) {String key = itr.next();tokArgs.put(key.replaceAll(\"^tokenizerFactory\\\\.\",\"\"), args.get(key));itr.remove();}}if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public SynonymFilterFactory(IDictionary args): base(args){AssureMatchVersion();#pragma warning disable 612, 618if (m_luceneMatchVersion.OnOrAfter(Lucene.Net.Util.LuceneVersion.LUCENE_34)){delegator = new FSTSynonymFilterFactory(new Dictionary(OriginalArgs));}#pragma warning restore 612, 618else{if (args.TryGetValue(\"format\", out string value) && !value.Equals(\"solr\", StringComparison.Ordinal)){throw new System.ArgumentException(\"You must specify luceneMatchVersion >= 3.4 to use alternate synonyms formats\");}#pragma warning disable 612, 618delegator = new SlowSynonymFilterFactory(new Dictionary(OriginalArgs));#pragma warning restore 612, 618}}" }, { "index": 1907, "before": "public void removePrintArea(int sheetIndex) {getWorkbook().removeBuiltinRecord(NameRecord.BUILTIN_PRINT_AREA, sheetIndex+1);}", "after": "public void RemovePrintArea(int sheetIndex){Workbook.RemoveBuiltinRecord(NameRecord.BUILTIN_PRINT_AREA, sheetIndex + 1);}" }, { "index": 1908, "before": "public ModifyTrafficMirrorFilterNetworkServicesResult modifyTrafficMirrorFilterNetworkServices(ModifyTrafficMirrorFilterNetworkServicesRequest request) {request = beforeClientExecution(request);return executeModifyTrafficMirrorFilterNetworkServices(request);}", "after": "public virtual ModifyTrafficMirrorFilterNetworkServicesResponse ModifyTrafficMirrorFilterNetworkServices(ModifyTrafficMirrorFilterNetworkServicesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyTrafficMirrorFilterNetworkServicesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyTrafficMirrorFilterNetworkServicesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1909, "before": "public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {if (args.length == 2) {return evaluate(ec.getRowIndex(), ec.getColumnIndex(), args[0], args[1]);}return ErrorEval.VALUE_INVALID;}", "after": "public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){if (args.Length == 2){return Evaluate(ec.RowIndex, ec.ColumnIndex, args[0], args[1]);}return ErrorEval.VALUE_INVALID;}" }, { "index": 1910, "before": "public DeltaRecord(double maxChange) {field_1_max_change = maxChange;}", "after": "public DeltaRecord(double maxChange){field_1_max_change = maxChange;}" }, { "index": 1911, "before": "public UpdateDomainEntryResult updateDomainEntry(UpdateDomainEntryRequest request) {request = beforeClientExecution(request);return executeUpdateDomainEntry(request);}", "after": "public virtual UpdateDomainEntryResponse UpdateDomainEntry(UpdateDomainEntryRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDomainEntryRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDomainEntryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1912, "before": "public SegmentCommitInfo clone() {SegmentCommitInfo other = new SegmentCommitInfo(info, delCount, softDelCount, delGen, fieldInfosGen, docValuesGen);other.nextWriteDelGen = nextWriteDelGen;other.nextWriteFieldInfosGen = nextWriteFieldInfosGen;other.nextWriteDocValuesGen = nextWriteDocValuesGen;for (Entry> e : dvUpdatesFiles.entrySet()) {other.dvUpdatesFiles.put(e.getKey(), new HashSet<>(e.getValue()));}other.fieldInfosFiles.addAll(fieldInfosFiles);return other;}", "after": "public virtual object Clone(){SegmentCommitInfo other = new SegmentCommitInfo(Info, delCount, delGen, fieldInfosGen);other.nextWriteDelGen = nextWriteDelGen;other.nextWriteFieldInfosGen = nextWriteFieldInfosGen;foreach (KeyValuePair> e in genUpdatesFiles){other.genUpdatesFiles[e.Key] = new JCG.HashSet(e.Value);}return other;}" }, { "index": 1913, "before": "public String putAttribute(String key, String value) {HashMap newMap = new HashMap<>(attributes);String oldValue = newMap.put(key, value);attributes = Collections.unmodifiableMap(newMap);return oldValue;}", "after": "public string PutAttribute(string key, string value){if (attributes == null){attributes = new Dictionary();}return attributes[key] = value;}" }, { "index": 1914, "before": "public void write(int oneChar) {buf.append((char) oneChar);}", "after": "public override void write(int oneChar){buf.append((char)oneChar);}" }, { "index": 1915, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[WRITEPROTECT]\\n\");buffer.append(\"[/WRITEPROTECT]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[WritePROTECT]\\n\");buffer.Append(\"[/WritePROTECT]\\n\");return buffer.ToString();}" }, { "index": 1916, "before": "public EvaluationSheet getSheet(int sheetIndex) {return new HSSFEvaluationSheet(_uBook.getSheetAt(sheetIndex));}", "after": "public IEvaluationSheet GetSheet(int sheetIndex){return new HSSFEvaluationSheet((HSSFSheet)_uBook.GetSheetAt(sheetIndex));}" }, { "index": 1917, "before": "public void removeSlideCount() {remove1stProperty(PropertyIDMap.PID_SLIDECOUNT);}", "after": "public void RemoveSlideCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_SLIDECOUNT);}" }, { "index": 1918, "before": "public DescribeFlowDefinitionResult describeFlowDefinition(DescribeFlowDefinitionRequest request) {request = beforeClientExecution(request);return executeDescribeFlowDefinition(request);}", "after": "public virtual DescribeFlowDefinitionResponse DescribeFlowDefinition(DescribeFlowDefinitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFlowDefinitionRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFlowDefinitionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1919, "before": "public void set(int index) {intSet.put(index);if (index > maxInt)maxInt = index;}", "after": "public virtual void Set(int index){intSet.Put(index);if (index > maxInt){maxInt = index;}}" }, { "index": 1920, "before": "public boolean equals(Object other) {if (other == null) {return false;}if (other instanceof CharsRef) {return this.charsEquals((CharsRef) other);}return false;}", "after": "public override bool Equals(object other){if (other == null){return false;}if (other is CharsRef){return this.CharsEquals(((CharsRef)other));}return false;}" }, { "index": 1921, "before": "public StopFilterFactory(Map args) {super(args);stopWordFiles = get(args, \"words\");format = get(args, \"format\", (null == stopWordFiles ? null : FORMAT_WORDSET));ignoreCase = getBoolean(args, \"ignoreCase\", false);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public StopFilterFactory(IDictionary args): base(args){AssureMatchVersion();stopWordFiles = Get(args, \"words\");format = Get(args, \"format\", (null == stopWordFiles ? null : FORMAT_WORDSET));ignoreCase = GetBoolean(args, \"ignoreCase\", false);enablePositionIncrements = GetBoolean(args, \"enablePositionIncrements\", true);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 1922, "before": "public void addState(ATNState state) {if (state != null) {state.atn = this;state.stateNumber = states.size();}states.add(state);}", "after": "public virtual void AddState(ATNState state){if (state != null){state.atn = this;state.stateNumber = states.Count;}states.Add(state);}" }, { "index": 1923, "before": "public String batchUrl() {return this.batchUrl;}", "after": "public string BatchUrl { get; set; }" }, { "index": 1924, "before": "public ParseException generateParseException() {jj_expentries.clear();boolean[] la1tokens = new boolean[33];if (jj_kind >= 0) {la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 25; i++) {if (jj_la1[i] == jj_gen) {for (int j = 0; j < 32; j++) {if ((jj_la1_0[i] & (1<= 0){la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 21; i++){if (jj_la1[i] == jj_gen){for (int j = 0; j < 32; j++){if ((jj_la1_0[i] & (1 << j)) != 0){la1tokens[j] = true;}if ((jj_la1_1[i] & (1 << j)) != 0){la1tokens[32 + j] = true;}}}}for (int i = 0; i < 33; i++){if (la1tokens[i]){jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.Add(jj_expentry);}}jj_endpos = 0;Jj_rescan_token();Jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.Count][];for (int i = 0; i < jj_expentries.Count; i++){exptokseq[i] = jj_expentries[i];}return new ParseException(Token, exptokseq, QueryParserConstants.TokenImage);}" }, { "index": 1925, "before": "@Override public Iterator iterator() {return new KeyIterator();}", "after": "public override java.util.Iterator iterator(){return new java.util.Hashtable.KeyIterator(this._enclosing);}" }, { "index": 1926, "before": "public DoubleList() {_array = new double[8];_count = 0;}", "after": "public DoubleList(){_array = new double[8];_Count = 0;}" }, { "index": 1927, "before": "public AddNoteCommand setMessage(String message) {checkCallable();this.message = message;return this;}", "after": "public virtual NGit.Api.AddNoteCommand SetMessage(string message){CheckCallable();this.message = message;return this;}" }, { "index": 1928, "before": "public SerializationHandleMap() {this.size = 0;this.threshold = 21; int arraySize = (int) (((long) threshold * 10000) / LOAD_FACTOR);resizeArrays(arraySize);}", "after": "public SerializationHandleMap(){this.size = 0;this.threshold = 21;int arraySize = (int)(((long)threshold * 10000) / LOAD_FACTOR);resizeArrays(arraySize);}" }, { "index": 1929, "before": "public PagedBytes(int blockBits) {assert blockBits > 0 && blockBits <= 31 : blockBits;this.blockSize = 1 << blockBits;this.blockBits = blockBits;blockMask = blockSize-1;upto = blockSize;bytesUsedPerBlock = RamUsageEstimator.alignObjectSize(blockSize + RamUsageEstimator.NUM_BYTES_ARRAY_HEADER);numBlocks = 0;}", "after": "public PagedBytes(int blockBits){Debug.Assert(blockBits > 0 && blockBits <= 31, blockBits.ToString());this.blockSize = 1 << blockBits;this.blockBits = blockBits;blockMask = blockSize - 1;upto = blockSize;bytesUsedPerBlock = blockSize + RamUsageEstimator.NUM_BYTES_ARRAY_HEADER + RamUsageEstimator.NUM_BYTES_OBJECT_REF;}" }, { "index": 1930, "before": "public IncreaseReplicationFactorResult increaseReplicationFactor(IncreaseReplicationFactorRequest request) {request = beforeClientExecution(request);return executeIncreaseReplicationFactor(request);}", "after": "public virtual IncreaseReplicationFactorResponse IncreaseReplicationFactor(IncreaseReplicationFactorRequest request){var options = new InvokeOptions();options.RequestMarshaller = IncreaseReplicationFactorRequestMarshaller.Instance;options.ResponseUnmarshaller = IncreaseReplicationFactorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1931, "before": "public UpdateRuntimeConfigurationResult updateRuntimeConfiguration(UpdateRuntimeConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateRuntimeConfiguration(request);}", "after": "public virtual UpdateRuntimeConfigurationResponse UpdateRuntimeConfiguration(UpdateRuntimeConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRuntimeConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRuntimeConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1932, "before": "public char getChar(Map args, String name, char defaultValue) {String s = args.remove(name);if (s == null) {return defaultValue;} else {if (s.length() != 1) {throw new IllegalArgumentException(name + \" should be a char. \\\"\" + s + \"\\\" is invalid\");} else {return s.charAt(0);}}}", "after": "public virtual char GetChar(IDictionary args, string name, char defaultVal){string s;if (args.TryGetValue(name, out s)){args.Remove(name);if (s.Length != 1){throw new System.ArgumentException(name + \" should be a char. \\\"\" + s + \"\\\" is invalid\");}else{return s[0];}}return defaultVal;}" }, { "index": 1933, "before": "public void notifyListeners(LexerNoViableAltException e) {String text = _input.getText(Interval.of(_tokenStartCharIndex, _input.index()));String msg = \"token recognition error at: '\"+ getErrorDisplay(text) + \"'\";ANTLRErrorListener listener = getErrorListenerDispatch();listener.syntaxError(this, null, _tokenStartLine, _tokenStartCharPositionInLine, msg, e);}", "after": "public virtual void NotifyListeners(LexerNoViableAltException e){string text = _input.GetText(Interval.Of(_tokenStartCharIndex, _input.Index));string msg = \"token recognition error at: '\" + GetErrorDisplay(text) + \"'\";IAntlrErrorListener listener = ErrorListenerDispatch;listener.SyntaxError(ErrorOutput, this, 0, _tokenStartLine, _tokenStartColumn, msg, e);}" }, { "index": 1934, "before": "public void writeLong(long v) {writeContinueIfRequired(8);_ulrOutput.writeLong(v);}", "after": "public void WriteLong(long v){_out.WriteLong(v);_size += 8;}" }, { "index": 1935, "before": "public ChangeMessageVisibilityBatchRequest(String queueUrl, java.util.List entries) {setQueueUrl(queueUrl);setEntries(entries);}", "after": "public ChangeMessageVisibilityBatchRequest(string queueUrl, List entries){_queueUrl = queueUrl;_entries = entries;}" }, { "index": 1936, "before": "public GetExportJobResult getExportJob(GetExportJobRequest request) {request = beforeClientExecution(request);return executeGetExportJob(request);}", "after": "public virtual GetExportJobResponse GetExportJob(GetExportJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetExportJobRequestMarshaller.Instance;options.ResponseUnmarshaller = GetExportJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1937, "before": "public AddRoleToDBInstanceResult addRoleToDBInstance(AddRoleToDBInstanceRequest request) {request = beforeClientExecution(request);return executeAddRoleToDBInstance(request);}", "after": "public virtual AddRoleToDBInstanceResponse AddRoleToDBInstance(AddRoleToDBInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddRoleToDBInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = AddRoleToDBInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1938, "before": "public DeregisterInstancesFromLoadBalancerResult deregisterInstancesFromLoadBalancer(DeregisterInstancesFromLoadBalancerRequest request) {request = beforeClientExecution(request);return executeDeregisterInstancesFromLoadBalancer(request);}", "after": "public virtual DeregisterInstancesFromLoadBalancerResponse DeregisterInstancesFromLoadBalancer(DeregisterInstancesFromLoadBalancerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterInstancesFromLoadBalancerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterInstancesFromLoadBalancerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1939, "before": "public synchronized StringBuffer insert(int index, char ch) {insert0(index, ch);return this;}", "after": "public java.lang.StringBuffer insert(int index, char ch){lock (this){insert0(index, ch);return this;}}" }, { "index": 1940, "before": "public DownloadDBLogFilePortionResult downloadDBLogFilePortion(DownloadDBLogFilePortionRequest request) {request = beforeClientExecution(request);return executeDownloadDBLogFilePortion(request);}", "after": "public virtual DownloadDBLogFilePortionResponse DownloadDBLogFilePortion(DownloadDBLogFilePortionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DownloadDBLogFilePortionRequestMarshaller.Instance;options.ResponseUnmarshaller = DownloadDBLogFilePortionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1941, "before": "public GetStaticIpResult getStaticIp(GetStaticIpRequest request) {request = beforeClientExecution(request);return executeGetStaticIp(request);}", "after": "public virtual GetStaticIpResponse GetStaticIp(GetStaticIpRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetStaticIpRequestMarshaller.Instance;options.ResponseUnmarshaller = GetStaticIpResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1942, "before": "public CreateUsagePlanResult createUsagePlan(CreateUsagePlanRequest request) {request = beforeClientExecution(request);return executeCreateUsagePlan(request);}", "after": "public virtual CreateUsagePlanResponse CreateUsagePlan(CreateUsagePlanRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateUsagePlanRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateUsagePlanResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1943, "before": "public BlameResult call() throws GitAPIException {checkCallable();try (BlameGenerator gen = new BlameGenerator(repo, path)) {if (diffAlgorithm != null)gen.setDiffAlgorithm(diffAlgorithm);if (textComparator != null)gen.setTextComparator(textComparator);if (followFileRenames != null)gen.setFollowFileRenames(followFileRenames.booleanValue());if (reverseEndCommits != null)gen.reverse(startCommit, reverseEndCommits);else if (startCommit != null)gen.push(null, startCommit);else {gen.prepareHead();}return gen.computeBlameResult();} catch (IOException e) {throw new JGitInternalException(e.getMessage(), e);}}", "after": "public override BlameResult Call(){CheckCallable();BlameGenerator gen = new BlameGenerator(repo, path);try{if (diffAlgorithm != null){gen.SetDiffAlgorithm(diffAlgorithm);}if (textComparator != null){gen.SetTextComparator(textComparator);}if (followFileRenames != null){gen.SetFollowFileRenames(followFileRenames);}if (reverseEndCommits != null){gen.Reverse(startCommit, reverseEndCommits);}else{if (startCommit != null){gen.Push(null, startCommit);}else{gen.Push(null, repo.Resolve(Constants.HEAD));if (!repo.IsBare){DirCache dc = repo.ReadDirCache();int entry = dc.FindEntry(path);if (0 <= entry){gen.Push(null, dc.GetEntry(entry).GetObjectId());}FilePath inTree = new FilePath(repo.WorkTree, path);if (inTree.IsFile()){gen.Push(null, new RawText(inTree));}}}}return gen.ComputeBlameResult();}catch (IOException e){throw new JGitInternalException(e.Message, e);}finally{gen.Release();}}" }, { "index": 1944, "before": "public SearchTransitGatewayMulticastGroupsResult searchTransitGatewayMulticastGroups(SearchTransitGatewayMulticastGroupsRequest request) {request = beforeClientExecution(request);return executeSearchTransitGatewayMulticastGroups(request);}", "after": "public virtual SearchTransitGatewayMulticastGroupsResponse SearchTransitGatewayMulticastGroups(SearchTransitGatewayMulticastGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchTransitGatewayMulticastGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchTransitGatewayMulticastGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1945, "before": "public LinearOffsetRange normaliseAndTranslate(int translationAmount) {if (_length > 0) {if(translationAmount == 0) {return this;}return new LinearOffsetRange(translationAmount + _offset, _length);}return new LinearOffsetRange(translationAmount + _offset + _length + 1, -_length);}", "after": "public LinearOffsetRange NormaliseAndTranslate(int translationAmount){if (_Length > 0){if (translationAmount == 0){return this;}return new LinearOffsetRange(translationAmount + _offset, _Length);}return new LinearOffsetRange(translationAmount + _offset + _Length + 1, -_Length);}" }, { "index": 1946, "before": "public boolean isInvoke(char c) {return invokeMap[characterCategoryMap[c]];}", "after": "public bool IsInvoke(char c){return invokeMap[characterCategoryMap[c]];}" }, { "index": 1947, "before": "public int getSize() {return size;}", "after": "public virtual int GetSize(){return size;}" }, { "index": 1948, "before": "public int read() throws IOException {if (buf == null) {throw new IOException();}if (pos < buf.length) {return (buf[pos++] & 0xFF);}return in.read();}", "after": "public override int read(){if (buf == null){throw new System.IO.IOException();}if (pos < buf.Length){return (buf[pos++] & unchecked((int)(0xFF)));}return @in.read();}" }, { "index": 1949, "before": "public int mark() {return 0;}", "after": "public virtual int Mark(){return 0;}" }, { "index": 1950, "before": "public SearchPhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"SearchPhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public SearchPhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"SearchPhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 1951, "before": "public void copyFrom(TermState other) {assert other instanceof OrdTermState : \"can not copy from \" + other.getClass().getName();this.ord = ((OrdTermState) other).ord;}", "after": "public override void CopyFrom(TermState other){Debug.Assert(other is OrdTermState, \"can not copy from \" + other.GetType().Name);this.Ord = ((OrdTermState)other).Ord;}" }, { "index": 1952, "before": "public AnalyzeDocumentResult analyzeDocument(AnalyzeDocumentRequest request) {request = beforeClientExecution(request);return executeAnalyzeDocument(request);}", "after": "public virtual AnalyzeDocumentResponse AnalyzeDocument(AnalyzeDocumentRequest request){var options = new InvokeOptions();options.RequestMarshaller = AnalyzeDocumentRequestMarshaller.Instance;options.ResponseUnmarshaller = AnalyzeDocumentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1953, "before": "public int calcExtSSTRecordSize() {return ExtSSTRecord.getRecordSizeForStrings(field_3_strings.size());}", "after": "public int CalcExtSSTRecordSize(){return ExtSSTRecord.GetRecordSizeForStrings(field_3_strings.Size);}" }, { "index": 1954, "before": "public static FormulaShifter createForSheetShift(int srcSheetIndex, int dstSheetIndex) {return new FormulaShifter(srcSheetIndex, dstSheetIndex);}", "after": "public static FormulaShifter CreateForSheetShift(int srcSheetIndex, int dstSheetIndex){return new FormulaShifter(srcSheetIndex, dstSheetIndex);}" }, { "index": 1955, "before": "public void setRule(int idx, ConditionalFormattingRule cfRule){setRule(idx, (HSSFConditionalFormattingRule)cfRule);}", "after": "public void SetRule(int idx, HSSFConditionalFormattingRule cfRule){cfAggregate.SetRule(idx, cfRule.CfRuleRecord);}" }, { "index": 1956, "before": "public SelectionRecord(RecordInputStream in) {field_1_pane = in.readByte();field_2_row_active_cell = in.readUShort();field_3_col_active_cell = in.readShort();field_4_active_cell_ref_index = in.readShort();int field_5_num_refs = in.readUShort();field_6_refs = new CellRangeAddress8Bit[field_5_num_refs];for (int i = 0; i < field_6_refs.length; i++) {field_6_refs[i] = new CellRangeAddress8Bit(in);}}", "after": "public SelectionRecord(RecordInputStream in1){field_1_pane = (byte)in1.ReadByte();field_2_row_active_cell = in1.ReadUShort();field_3_col_active_cell = in1.ReadShort();field_4_ref_active_cell = in1.ReadShort();int field_5_num_refs = in1.ReadUShort();field_6_refs = new CellRangeAddress8Bit[field_5_num_refs];for (int i = 0; i < field_5_num_refs; i++){field_6_refs[i] = new CellRangeAddress8Bit(in1);}}" }, { "index": 1957, "before": "public void setNeedNewObjectIds(boolean b) {if (b)newObjectIds = new ObjectIdSubclassMap<>();elsenewObjectIds = null;}", "after": "public virtual void SetNeedNewObjectIds(bool b){if (b){newObjectIds = new ObjectIdSubclassMap();}else{newObjectIds = null;}}" }, { "index": 1958, "before": "public GetResolverRulePolicyResult getResolverRulePolicy(GetResolverRulePolicyRequest request) {request = beforeClientExecution(request);return executeGetResolverRulePolicy(request);}", "after": "public virtual GetResolverRulePolicyResponse GetResolverRulePolicy(GetResolverRulePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetResolverRulePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetResolverRulePolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1959, "before": "public static DoubleBuffer wrap(double[] array) {return wrap(array, 0, array.length);}", "after": "public static java.nio.DoubleBuffer wrap(double[] array_1){return wrap(array_1, 0, array_1.Length);}" }, { "index": 1960, "before": "public UnitsRecord clone() {return copy();}", "after": "public override Object Clone(){UnitsRecord rec = new UnitsRecord();rec.field_1_units = field_1_units;return rec;}" }, { "index": 1961, "before": "public void readFully(byte[] buf, int off, int len) {try {checkEOF(_read(buf, off, len), len);} catch (IOException e) {throw new RuntimeException(e);}}", "after": "public void ReadFully(byte[] buf, int off, int len){int max = off + len;for (int i = off; i < max; i++){byte ch;try{ch = (byte)in1.ReadByte();}catch (IOException e){throw new RuntimeException(e);}CheckEOF(ch);buf[i] = ch;}}" }, { "index": 1962, "before": "public DescribeInterconnectLoaResult describeInterconnectLoa(DescribeInterconnectLoaRequest request) {request = beforeClientExecution(request);return executeDescribeInterconnectLoa(request);}", "after": "public virtual DescribeInterconnectLoaResponse DescribeInterconnectLoa(DescribeInterconnectLoaRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInterconnectLoaRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInterconnectLoaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1963, "before": "public static ByteOrder nativeOrder() {return NATIVE_ORDER;}", "after": "public static java.nio.ByteOrder nativeOrder(){return NATIVE_ORDER;}" }, { "index": 1964, "before": "public CalcModeRecord(RecordInputStream in) {field_1_calcmode = in.readShort();}", "after": "public CalcModeRecord(RecordInputStream in1){field_1_calcmode = in1.ReadShort();}" }, { "index": 1965, "before": "public void addParentId(AnyObjectId additionalParent) {if (parentIds.length == 0) {setParentId(additionalParent);} else {ObjectId[] newParents = new ObjectId[parentIds.length + 1];System.arraycopy(parentIds, 0, newParents, 0, parentIds.length);newParents[parentIds.length] = additionalParent.copy();parentIds = newParents;}}", "after": "public virtual void AddParentId(AnyObjectId additionalParent){if (parentIds.Length == 0){SetParentId(additionalParent);}else{ObjectId[] newParents = new ObjectId[parentIds.Length + 1];System.Array.Copy(parentIds, 0, newParents, 0, parentIds.Length);newParents[parentIds.Length] = additionalParent.Copy();parentIds = newParents;}}" }, { "index": 1966, "before": "public CreateAccessPointResult createAccessPoint(CreateAccessPointRequest request) {request = beforeClientExecution(request);return executeCreateAccessPoint(request);}", "after": "public virtual CreateAccessPointResponse CreateAccessPoint(CreateAccessPointRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAccessPointRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAccessPointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1967, "before": "public DeleteLoadBalancerListenersResult deleteLoadBalancerListeners(DeleteLoadBalancerListenersRequest request) {request = beforeClientExecution(request);return executeDeleteLoadBalancerListeners(request);}", "after": "public virtual DeleteLoadBalancerListenersResponse DeleteLoadBalancerListeners(DeleteLoadBalancerListenersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLoadBalancerListenersRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLoadBalancerListenersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1968, "before": "public DescribeOrderableClusterOptionsResult describeOrderableClusterOptions() {return describeOrderableClusterOptions(new DescribeOrderableClusterOptionsRequest());}", "after": "public virtual DescribeOrderableClusterOptionsResponse DescribeOrderableClusterOptions(){return DescribeOrderableClusterOptions(new DescribeOrderableClusterOptionsRequest());}" }, { "index": 1969, "before": "public void setDerefTags(boolean deref) {derefTags = deref;}", "after": "public virtual void SetDerefTags(bool deref){derefTags = deref;}" }, { "index": 1970, "before": "public DeactivateMFADeviceRequest(String userName, String serialNumber) {setUserName(userName);setSerialNumber(serialNumber);}", "after": "public DeactivateMFADeviceRequest(string userName, string serialNumber){_userName = userName;_serialNumber = serialNumber;}" }, { "index": 1971, "before": "public boolean markSupported() {synchronized (lock) {return in.markSupported();}}", "after": "public override bool markSupported(){lock (@lock){return @in.markSupported();}}" }, { "index": 1972, "before": "public static void createNewFile(File f) throws IOException {if (!f.createNewFile())throw new IOException(MessageFormat.format(JGitText.get().createNewFileFailed, f));}", "after": "public static void CreateNewFile(FilePath f){if (!f.CreateNewFile()){throw new IOException(MessageFormat.Format(JGitText.Get().createNewFileFailed, f));}}" }, { "index": 1973, "before": "public String getFieldAsString() {if (this.field == null)return null;elsereturn this.field.toString();}", "after": "public virtual string GetFieldAsString(){if (this.field == null)return null;elsereturn this.field.ToString();}" }, { "index": 1974, "before": "public void inform(ResourceLoader loader) throws IOException {String dicts[] = dictionaryFiles.split(\",\");InputStream affix = null;List dictionaries = new ArrayList<>();try {dictionaries = new ArrayList<>();for (String file : dicts) {dictionaries.add(loader.openResource(file));}affix = loader.openResource(affixFile);Path tempPath = Files.createTempDirectory(Dictionary.getDefaultTempDir(), \"Hunspell\");try (Directory tempDir = FSDirectory.open(tempPath)) {this.dictionary = new Dictionary(tempDir, \"hunspell\", affix, dictionaries, ignoreCase);} finally {IOUtils.rm(tempPath);}} catch (ParseException e) {throw new IOException(\"Unable to load hunspell data! [dictionary=\" + dictionaries + \",affix=\" + affixFile + \"]\", e);} finally {IOUtils.closeWhileHandlingException(affix);IOUtils.closeWhileHandlingException(dictionaries);}}", "after": "public virtual void Inform(IResourceLoader loader){string[] dicts = dictionaryFiles.Split(',').TrimEnd();Stream affix = null;IList dictionaries = new List();try{dictionaries = new List();foreach (string file in dicts){dictionaries.Add(loader.OpenResource(file));}affix = loader.OpenResource(affixFile);this.dictionary = new Dictionary(affix, dictionaries, ignoreCase);}catch (Exception e){throw new IOException(\"Unable to load hunspell data! [dictionary=\" + dictionaries + \",affix=\" + affixFile + \"]\", e);}finally{IOUtils.DisposeWhileHandlingException(affix);IOUtils.DisposeWhileHandlingException(dictionaries);}}" }, { "index": 1975, "before": "public DetectDocumentTextResult detectDocumentText(DetectDocumentTextRequest request) {request = beforeClientExecution(request);return executeDetectDocumentText(request);}", "after": "public virtual DetectDocumentTextResponse DetectDocumentText(DetectDocumentTextRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectDocumentTextRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectDocumentTextResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1976, "before": "public DescribeCertificatesResult describeCertificates(DescribeCertificatesRequest request) {request = beforeClientExecution(request);return executeDescribeCertificates(request);}", "after": "public virtual DescribeCertificatesResponse DescribeCertificates(DescribeCertificatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCertificatesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCertificatesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1977, "before": "public int getFormatCount() {return _formats.length;}", "after": "public int GetFormatCount(){return m_formats.Count;}" }, { "index": 1978, "before": "public GetOutcomesResult getOutcomes(GetOutcomesRequest request) {request = beforeClientExecution(request);return executeGetOutcomes(request);}", "after": "public virtual GetOutcomesResponse GetOutcomes(GetOutcomesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOutcomesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOutcomesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1979, "before": "public Set getOptionalFields() {return Collections.emptySet();}", "after": "public virtual ICollection GetOptionalFields(){return Sharpen.Collections.EmptySet();}" }, { "index": 1980, "before": "public BasicStats(String field, double boost) {this.field = field;this.boost = boost;}", "after": "public BasicStats(string field, float queryBoost){this.field = field;this.m_queryBoost = queryBoost;this.m_totalBoost = queryBoost;}" }, { "index": 1981, "before": "public UpdateSecurityGroupRuleDescriptionsIngressResult updateSecurityGroupRuleDescriptionsIngress(UpdateSecurityGroupRuleDescriptionsIngressRequest request) {request = beforeClientExecution(request);return executeUpdateSecurityGroupRuleDescriptionsIngress(request);}", "after": "public virtual UpdateSecurityGroupRuleDescriptionsIngressResponse UpdateSecurityGroupRuleDescriptionsIngress(UpdateSecurityGroupRuleDescriptionsIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSecurityGroupRuleDescriptionsIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSecurityGroupRuleDescriptionsIngressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1982, "before": "public long getOffset() {return position;}", "after": "public virtual long GetOffset(){return position;}" }, { "index": 1983, "before": "public Collection getAdvertisedRefs() {return Collections.unmodifiableCollection(advertisedRefs.values());}", "after": "public virtual ICollection GetAdvertisedRefs(){return Sharpen.Collections.UnmodifiableCollection(advertisedRefs.Values);}" }, { "index": 1984, "before": "public QueryParser(QueryParserTokenManager tm) {token_source = tm;token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 10; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();}", "after": "public QueryParser(QueryParserTokenManager tm){TokenSource = tm;Token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 10; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();}" }, { "index": 1985, "before": "public void setText(CharacterIterator newText) {start = newText.getBeginIndex();end = newText.getEndIndex();text = newText;current = start;}", "after": "public override void SetText(CharacterIterator newText){start = newText.BeginIndex;end = newText.EndIndex;text = newText;current = start;}" }, { "index": 1986, "before": "public PutOutcomeResult putOutcome(PutOutcomeRequest request) {request = beforeClientExecution(request);return executePutOutcome(request);}", "after": "public virtual PutOutcomeResponse PutOutcome(PutOutcomeRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutOutcomeRequestMarshaller.Instance;options.ResponseUnmarshaller = PutOutcomeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1987, "before": "public UnescapedCharSequence(CharSequence text) {this.chars = new char[text.length()];this.wasEscaped = new boolean[text.length()];for (int i = 0; i < text.length(); i++) {this.chars[i] = text.charAt(i);this.wasEscaped[i] = false;}}", "after": "public UnescapedCharSequence(ICharSequence text){this.chars = new char[text.Length];this.wasEscaped = new bool[text.Length];for (int i = 0; i < text.Length; i++){this.chars[i] = text[i];this.wasEscaped[i] = false;}}" }, { "index": 1988, "before": "public DoubleBuffer put(double[] src, int srcOffset, int doubleCount) {byteBuffer.limit(limit * SizeOf.DOUBLE);byteBuffer.position(position * SizeOf.DOUBLE);if (byteBuffer instanceof ReadWriteDirectByteBuffer) {((ReadWriteDirectByteBuffer) byteBuffer).put(src, srcOffset, doubleCount);} else {((ReadWriteHeapByteBuffer) byteBuffer).put(src, srcOffset, doubleCount);}this.position += doubleCount;return this;}", "after": "public override java.nio.DoubleBuffer put(double[] src, int srcOffset, int doubleCount){byteBuffer.limit(_limit * libcore.io.SizeOf.DOUBLE);byteBuffer.position(_position * libcore.io.SizeOf.DOUBLE);if (byteBuffer is java.nio.ReadWriteDirectByteBuffer){((java.nio.ReadWriteDirectByteBuffer)byteBuffer).put(src, srcOffset, doubleCount);}else{((java.nio.ReadWriteHeapByteBuffer)byteBuffer).put(src, srcOffset, doubleCount);}this._position += doubleCount;return this;}" }, { "index": 1989, "before": "public void remove() {throw new UnsupportedOperationException();}", "after": "public virtual void remove(){throw new System.NotSupportedException();}" }, { "index": 1990, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[CHARTTITLEFORMAT]\\n\");buffer.append(\" .format_runs = \").append(_formats.length).append(\"\\n\");for(int i=0; i<_formats.length; i++) {CTFormat ctf = _formats[i];buffer.append(\" .char_offset= \").append(ctf.getOffset());buffer.append(\",.fontidx= \").append(ctf.getFontIndex());buffer.append(\"\\n\");}buffer.append(\"[/CHARTTITLEFORMAT]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[ALRUNS]\\n\");buffer.Append(\" .format_runs = \").Append(m_recs).Append(\"\\n\");int idx;CTFormat ctf;for (idx = 0; idx < m_formats.Count; idx++){ctf = (CTFormat)m_formats[idx];buffer.Append(\" .char_offset= \").Append(ctf.Offset);buffer.Append(\",.fontidx= \").Append(ctf.FontIndex);buffer.Append(\"\\n\");}buffer.Append(\"[/ALRUNS]\\n\");return buffer.ToString();}" }, { "index": 1991, "before": "public StartDominantLanguageDetectionJobResult startDominantLanguageDetectionJob(StartDominantLanguageDetectionJobRequest request) {request = beforeClientExecution(request);return executeStartDominantLanguageDetectionJob(request);}", "after": "public virtual StartDominantLanguageDetectionJobResponse StartDominantLanguageDetectionJob(StartDominantLanguageDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDominantLanguageDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDominantLanguageDetectionJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 1992, "before": "public static boolean hasNonConflictingAltSet(Collection altsets) {for (BitSet alts : altsets) {if ( alts.cardinality()==1 ) {return true;}}return false;}", "after": "public static bool HasNonConflictingAltSet(IEnumerable altsets){foreach (BitSet alts in altsets){if (alts.Cardinality() == 1){return true;}}return false;}" }, { "index": 1993, "before": "public ByteBuffer putChar(int index, char value) {return putShort(index, (short) value);}", "after": "public override java.nio.ByteBuffer putChar(int index, char value){return putShort(index, (short)value);}" }, { "index": 1994, "before": "public DataValidationConstraint createTextLengthConstraint(int operatorType, String formula1, String formula2) {return DVConstraint.createNumericConstraint(ValidationType.TEXT_LENGTH, operatorType, formula1, formula2);}", "after": "public IDataValidationConstraint CreateTextLengthConstraint(int operatorType, String formula1, String formula2){return DVConstraint.CreateNumericConstraint(ValidationType.TEXT_LENGTH, operatorType, formula1, formula2);}" }, { "index": 1995, "before": "public void writeShort(int v) {writeContinueIfRequired(2);_ulrOutput.writeShort(v);}", "after": "public void WriteShort(int v){_out.WriteShort(v);_size += 2;}" }, { "index": 1996, "before": "public final short getShort(int index) {checkIndex(index, SizeOf.SHORT);return Memory.peekShort(backingArray, offset + index, order);}", "after": "public sealed override short getShort(int index){checkIndex(index, libcore.io.SizeOf.SHORT);return libcore.io.Memory.peekShort(backingArray, offset + index, _order);}" }, { "index": 1997, "before": "public static FuncPtg create(int functionIndex) {FunctionMetadata fm = FunctionMetadataRegistry.getFunctionByIndex(functionIndex);if(fm == null) {throw new RuntimeException(\"Invalid built-in function index (\" + functionIndex + \")\");}return new FuncPtg(functionIndex, fm);}", "after": "public static FuncPtg Create(int functionIndex) {FunctionMetadata fm = FunctionMetadataRegistry.GetFunctionByIndex(functionIndex);if(fm == null) {throw new Exception(\"Invalid built-in function index (\" + functionIndex + \")\");}return new FuncPtg(functionIndex, fm);}" }, { "index": 1998, "before": "public String toString() {return \"{\"+ruleIndex+\":\"+predIndex+\"}?\";}", "after": "public override string ToString(){return \"{\" + ruleIndex + \":\" + predIndex + \"}?\";}" }, { "index": 1999, "before": "public ListDashboardsResult listDashboards(ListDashboardsRequest request) {request = beforeClientExecution(request);return executeListDashboards(request);}", "after": "public virtual ListDashboardsResponse ListDashboards(ListDashboardsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDashboardsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDashboardsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2000, "before": "public DeleteVoiceTemplateResult deleteVoiceTemplate(DeleteVoiceTemplateRequest request) {request = beforeClientExecution(request);return executeDeleteVoiceTemplate(request);}", "after": "public virtual DeleteVoiceTemplateResponse DeleteVoiceTemplate(DeleteVoiceTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVoiceTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVoiceTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2001, "before": "public void addListenerForAllRecords(HSSFListener lsnr) {short[] rectypes = RecordFactory.getAllKnownRecordSIDs();for (short rectype : rectypes) {addListener(lsnr, rectype);}}", "after": "public void AddListenerForAllRecords(IHSSFListener lsnr){short[] rectypes = RecordFactory.GetAllKnownRecordSIDs();for (int k = 0; k < rectypes.Length; k++){AddListener(lsnr, rectypes[k]);}}" }, { "index": 2002, "before": "public DescribeLocalGatewayRouteTablesResult describeLocalGatewayRouteTables(DescribeLocalGatewayRouteTablesRequest request) {request = beforeClientExecution(request);return executeDescribeLocalGatewayRouteTables(request);}", "after": "public virtual DescribeLocalGatewayRouteTablesResponse DescribeLocalGatewayRouteTables(DescribeLocalGatewayRouteTablesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLocalGatewayRouteTablesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLocalGatewayRouteTablesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2003, "before": "public EnableDomainAutoRenewResult enableDomainAutoRenew(EnableDomainAutoRenewRequest request) {request = beforeClientExecution(request);return executeEnableDomainAutoRenew(request);}", "after": "public virtual EnableDomainAutoRenewResponse EnableDomainAutoRenew(EnableDomainAutoRenewRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableDomainAutoRenewRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableDomainAutoRenewResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2004, "before": "public String toString() {StringBuilder result = new StringBuilder();result.append(type.toString());result.append('<');result.append(name);result.append(':');if (fieldsData != null) {result.append(fieldsData);}result.append('>');return result.toString();}", "after": "public override string ToString(){StringBuilder result = new StringBuilder();result.Append(m_type.ToString());result.Append('<');result.Append(m_name);result.Append(':');if (FieldsData != null){result.Append(FieldsData);}result.Append('>');return result.ToString();}" }, { "index": 2005, "before": "public DescribeConversionTasksResult describeConversionTasks() {return describeConversionTasks(new DescribeConversionTasksRequest());}", "after": "public virtual DescribeConversionTasksResponse DescribeConversionTasks(){return DescribeConversionTasks(new DescribeConversionTasksRequest());}" }, { "index": 2006, "before": "public GetFieldLevelEncryptionProfileConfigResult getFieldLevelEncryptionProfileConfig(GetFieldLevelEncryptionProfileConfigRequest request) {request = beforeClientExecution(request);return executeGetFieldLevelEncryptionProfileConfig(request);}", "after": "public virtual GetFieldLevelEncryptionProfileConfigResponse GetFieldLevelEncryptionProfileConfig(GetFieldLevelEncryptionProfileConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFieldLevelEncryptionProfileConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFieldLevelEncryptionProfileConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2007, "before": "public ListInstancesResult listInstances(ListInstancesRequest request) {request = beforeClientExecution(request);return executeListInstances(request);}", "after": "public virtual ListInstancesResponse ListInstances(ListInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2008, "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 >>> 6) & 3;values[valuesOffset++] = (block >>> 4) & 3;values[valuesOffset++] = (block >>> 2) & 3;values[valuesOffset++] = block & 3;}}", "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 >> 6)) & 3;values[valuesOffset++] = ((int)((uint)block >> 4)) & 3;values[valuesOffset++] = ((int)((uint)block >> 2)) & 3;values[valuesOffset++] = block & 3;}}" }, { "index": 2009, "before": "public int read(byte[] dst, int pos, int cnt) throws IOException {try {int n = 0;while (n < cnt) {int r = inf.inflate(dst, pos + n, cnt - n);n += r;if (inf.finished())break;if (inf.needsInput()) {onObjectData(src, buf, p, bAvail);use(bAvail);p = fill(src, 1);inf.setInput(buf, p, bAvail);} else if (r == 0) {throw new CorruptObjectException(MessageFormat.format(JGitText.get().packfileCorruptionDetected,JGitText.get().unknownZlibError));}}actualSize += n;return 0 < n ? n : -1;} catch (DataFormatException dfe) {throw new CorruptObjectException(MessageFormat.format(JGitText.get().packfileCorruptionDetected, dfe.getMessage()));}}", "after": "public override int Read(byte[] dst, int pos, int cnt){try{int n = 0;while (n < cnt){int r = this.inf.Inflate(dst, pos + n, cnt - n);if (r == 0){if (this.inf.IsFinished){break;}if (this.inf.IsNeedingInput){this._enclosing.OnObjectData(this.src, this._enclosing.buf, this.p, this._enclosing.bAvail);this._enclosing.Use(this._enclosing.bAvail);this.p = this._enclosing.Fill(this.src, 1);this.inf.SetInput(this._enclosing.buf, this.p, this._enclosing.bAvail);}else{throw new CorruptObjectException(MessageFormat.Format(JGitText.Get().packfileCorruptionDetected, JGitText.Get().unknownZlibError));}}else{n += r;}}this.actualSize += n;return 0 < n ? n : -1;}catch (SharpZipBaseException dfe){throw new CorruptObjectException(MessageFormat.Format(JGitText.Get().packfileCorruptionDetected, dfe.Message));}}" }, { "index": 2010, "before": "public WorkflowExecutionCount countClosedWorkflowExecutions(CountClosedWorkflowExecutionsRequest request) {request = beforeClientExecution(request);return executeCountClosedWorkflowExecutions(request);}", "after": "public virtual CountClosedWorkflowExecutionsResponse CountClosedWorkflowExecutions(CountClosedWorkflowExecutionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CountClosedWorkflowExecutionsRequestMarshaller.Instance;options.ResponseUnmarshaller = CountClosedWorkflowExecutionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2011, "before": "public E remove() {return removeFirstImpl();}", "after": "public virtual E remove(){return removeFirstImpl();}" }, { "index": 2012, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE) {final String number;if (numberVE instanceof RefEval) {RefEval re = (RefEval) numberVE;number = OperandResolver.coerceValueToString(re.getInnerValueEval(re.getFirstSheetIndex()));} else {number = OperandResolver.coerceValueToString(numberVE);}if (number.length() > 10) {return ErrorEval.NUM_ERROR;}String unsigned;boolean isPositive;if (number.length() < 10) {unsigned = number;isPositive = true;} else {unsigned = number.substring(1);isPositive = number.startsWith(\"0\");}String value;try {if (isPositive) {int sum = getDecimalValue(unsigned);value = String.valueOf(sum);} else {String inverted = toggleBits(unsigned);int sum = getDecimalValue(inverted);sum++;value = \"-\" + sum;}} catch (NumberFormatException e) {return ErrorEval.NUM_ERROR;}return new NumberEval(Long.parseLong(value));}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE){String number;if (numberVE is RefEval){RefEval re = (RefEval)numberVE;number = OperandResolver.CoerceValueToString(re.GetInnerValueEval(re.FirstSheetIndex));}else{number = OperandResolver.CoerceValueToString(numberVE);}if (number.Length > 10){return ErrorEval.NUM_ERROR;}String unsigned;bool isPositive;if (number.Length < 10){unsigned = number;isPositive = true;}else{unsigned = number.Substring(1);isPositive = number.StartsWith(\"0\");}String value;try{if (isPositive){int sum = getDecimalValue(unsigned);value = sum.ToString();}else{String inverted = toggleBits(unsigned);int sum = getDecimalValue(inverted);sum++;value = \"-\" + sum.ToString();}}catch (FormatException){return ErrorEval.NUM_ERROR;}return new NumberEval(long.Parse(value));}" }, { "index": 2013, "before": "public ObjectId getOldId() {return oldId;}", "after": "public virtual ObjectId GetOldId(){return oldId;}" }, { "index": 2014, "before": "public FeatProtection(RecordInputStream in) {fSD = in.readInt();passwordVerifier = in.readInt();title = StringUtil.readUnicodeString(in);securityDescriptor = in.readRemainder();}", "after": "public FeatProtection(RecordInputStream in1){fSD = in1.ReadInt();passwordVerifier = in1.ReadInt();title = StringUtil.ReadUnicodeString(in1);securityDescriptor = in1.ReadRemainder();}" }, { "index": 2015, "before": "public UpdateContactAttributesResult updateContactAttributes(UpdateContactAttributesRequest request) {request = beforeClientExecution(request);return executeUpdateContactAttributes(request);}", "after": "public virtual UpdateContactAttributesResponse UpdateContactAttributes(UpdateContactAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateContactAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateContactAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2016, "before": "public DescribeClientVpnEndpointsResult describeClientVpnEndpoints(DescribeClientVpnEndpointsRequest request) {request = beforeClientExecution(request);return executeDescribeClientVpnEndpoints(request);}", "after": "public virtual DescribeClientVpnEndpointsResponse DescribeClientVpnEndpoints(DescribeClientVpnEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClientVpnEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClientVpnEndpointsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2017, "before": "public DescribeCacheSecurityGroupsResult describeCacheSecurityGroups(DescribeCacheSecurityGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeCacheSecurityGroups(request);}", "after": "public virtual DescribeCacheSecurityGroupsResponse DescribeCacheSecurityGroups(DescribeCacheSecurityGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCacheSecurityGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCacheSecurityGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2018, "before": "public boolean equals(Object object) {synchronized (Hashtable.this) {return super.equals(object);}}", "after": "public override bool Equals(object @object){lock (this._enclosing){return base.Equals(@object);}}" }, { "index": 2019, "before": "public static List getTransportProtocols() {int cnt = protocols.size();List res = new ArrayList<>(cnt);for (WeakReference ref : protocols) {TransportProtocol proto = ref.get();if (proto != null)res.add(proto);elseprotocols.remove(ref);}return Collections.unmodifiableList(res);}", "after": "public static IList GetTransportProtocols(){int cnt = protocols.Count;IList res = new AList(cnt);foreach (JavaWeakReference @ref in protocols){TransportProtocol proto = @ref.Get();if (proto != null){res.AddItem(proto);}else{protocols.Remove(@ref);}}return Sharpen.Collections.UnmodifiableList(res);}" }, { "index": 2020, "before": "public SrndTermQuery(String termText, boolean quoted) {super(quoted);this.termText = termText;}", "after": "public SrndTermQuery(string termText, bool quoted): base(quoted){this.termText = termText;}" }, { "index": 2021, "before": "public CreateEmailTemplateResult createEmailTemplate(CreateEmailTemplateRequest request) {request = beforeClientExecution(request);return executeCreateEmailTemplate(request);}", "after": "public virtual CreateEmailTemplateResponse CreateEmailTemplate(CreateEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEmailTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2022, "before": "public ByteBuffer putChar(char value) {return putShort((short) value);}", "after": "public override java.nio.ByteBuffer putChar(char value){return putShort((short)value);}" }, { "index": 2023, "before": "public static String getLocalizedMessage(String key) {return getLocalizedMessage(key, Locale.getDefault());}", "after": "public static string GetLocalizedMessage(string key){return GetLocalizedMessage(key, CultureInfo.InvariantCulture);}" }, { "index": 2024, "before": "public Snapshot deleteSnapshot(DeleteSnapshotRequest request) {request = beforeClientExecution(request);return executeDeleteSnapshot(request);}", "after": "public virtual DeleteSnapshotResponse DeleteSnapshot(DeleteSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2025, "before": "public ListMemberAccountsResult listMemberAccounts(ListMemberAccountsRequest request) {request = beforeClientExecution(request);return executeListMemberAccounts(request);}", "after": "public virtual ListMemberAccountsResponse ListMemberAccounts(ListMemberAccountsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListMemberAccountsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListMemberAccountsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2026, "before": "public boolean shouldRefresh() {long now = System.currentTimeMillis();return now - lastFailedRefreshTime > refreshIntervalInMillSeconds;}", "after": "public bool ShouldRefresh(){var now = DateTime.UtcNow.Ticks;return now - lastFailedRefreshTime > refreshIntervalInMillSeconds;}" }, { "index": 2027, "before": "public void setRefLogMessage(String msg, boolean appendStatus) {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": 2028, "before": "public Status getStatus() {return myStatus;}", "after": "public virtual RemoteRefUpdate.Status GetStatus(){return status;}" }, { "index": 2029, "before": "public GetDeploymentStrategyResult getDeploymentStrategy(GetDeploymentStrategyRequest request) {request = beforeClientExecution(request);return executeGetDeploymentStrategy(request);}", "after": "public virtual GetDeploymentStrategyResponse GetDeploymentStrategy(GetDeploymentStrategyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDeploymentStrategyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDeploymentStrategyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2030, "before": "public DeleteEventResult deleteEvent(DeleteEventRequest request) {request = beforeClientExecution(request);return executeDeleteEvent(request);}", "after": "public virtual DeleteEventResponse DeleteEvent(DeleteEventRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEventRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEventResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2031, "before": "public ListQueryLoggingConfigsResult listQueryLoggingConfigs(ListQueryLoggingConfigsRequest request) {request = beforeClientExecution(request);return executeListQueryLoggingConfigs(request);}", "after": "public virtual ListQueryLoggingConfigsResponse ListQueryLoggingConfigs(ListQueryLoggingConfigsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListQueryLoggingConfigsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListQueryLoggingConfigsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2032, "before": "public BatchGetDeploymentTargetsResult batchGetDeploymentTargets(BatchGetDeploymentTargetsRequest request) {request = beforeClientExecution(request);return executeBatchGetDeploymentTargets(request);}", "after": "public virtual BatchGetDeploymentTargetsResponse BatchGetDeploymentTargets(BatchGetDeploymentTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetDeploymentTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetDeploymentTargetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2033, "before": "public GetRulesResult getRules(GetRulesRequest request) {request = beforeClientExecution(request);return executeGetRules(request);}", "after": "public virtual GetRulesResponse GetRules(GetRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRulesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2034, "before": "public void setMessage(String newMessage) {message = newMessage;}", "after": "public virtual void SetMessage(string newMessage){message = newMessage;}" }, { "index": 2035, "before": "public String toString(String field) {return null;}", "after": "public override string ToString(string field){return null;}" }, { "index": 2036, "before": "public ReplicationGroup completeMigration(CompleteMigrationRequest request) {request = beforeClientExecution(request);return executeCompleteMigration(request);}", "after": "public virtual CompleteMigrationResponse CompleteMigration(CompleteMigrationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CompleteMigrationRequestMarshaller.Instance;options.ResponseUnmarshaller = CompleteMigrationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2037, "before": "public SupBookRecord(RecordInputStream in) {int recLen = in.remaining();field_1_number_of_sheets = in.readShort();if(recLen > SMALL_RECORD_SIZE) {_isAddInFunctions = false;field_2_encoded_url = in.readString();String[] sheetNames = new String[field_1_number_of_sheets];for (int i = 0; i < sheetNames.length; i++) {sheetNames[i] = in.readString();}field_3_sheet_names = sheetNames;return;}field_2_encoded_url = null;field_3_sheet_names = null;short nextShort = in.readShort();if(nextShort == TAG_INTERNAL_REFERENCES) {_isAddInFunctions = false;} else if(nextShort == TAG_ADD_IN_FUNCTIONS) {_isAddInFunctions = true;if(field_1_number_of_sheets != 1) {throw new RuntimeException(\"Expected 0x0001 for number of sheets field in 'Add-In Functions' but got (\"+ field_1_number_of_sheets + \")\");}} else {throw new RuntimeException(\"invalid EXTERNALBOOK code (\"+ Integer.toHexString(nextShort) + \")\");}}", "after": "public SupBookRecord(RecordInputStream in1){int recLen = in1.Remaining;field_1_number_of_sheets = in1.ReadShort();if (recLen > SMALL_RECORD_SIZE){_isAddInFunctions = false;field_2_encoded_url = in1.ReadString();String[] sheetNames = new String[field_1_number_of_sheets];for (int i = 0; i < sheetNames.Length; i++){sheetNames[i] = in1.ReadString();}field_3_sheet_names = sheetNames;return;}field_2_encoded_url = null;field_3_sheet_names = null;short nextShort = in1.ReadShort();if (nextShort == TAG_INTERNAL_REFERENCES){_isAddInFunctions = false;}else if (nextShort == TAG_ADD_IN_FUNCTIONS){_isAddInFunctions = true;if (field_1_number_of_sheets != 1){throw new Exception(\"Expected 0x0001 for number of sheets field in 'Add-In Functions' but got (\"+ field_1_number_of_sheets + \")\");}}else{throw new Exception(\"invalid EXTERNALBOOK code (\"+ StringUtil.ToHexString(nextShort) + \")\");}}" }, { "index": 2038, "before": "public GetEmailTemplateResult getEmailTemplate(GetEmailTemplateRequest request) {request = beforeClientExecution(request);return executeGetEmailTemplate(request);}", "after": "public virtual GetEmailTemplateResponse GetEmailTemplate(GetEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEmailTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2039, "before": "public void setByte(int index, int value) {switch (index >> 2) {case 0:w1 = set(w1, index & 3, value);break;case 1:w2 = set(w2, index & 3, value);break;case 2:w3 = set(w3, index & 3, value);break;case 3:w4 = set(w4, index & 3, value);break;case 4:w5 = set(w5, index & 3, value);break;default:throw new ArrayIndexOutOfBoundsException(index);}}", "after": "public virtual void SetByte(int index, int value){switch (index >> 2){case 0:{w1 = Set(w1, index & 3, value);break;}case 1:{w2 = Set(w2, index & 3, value);break;}case 2:{w3 = Set(w3, index & 3, value);break;}case 3:{w4 = Set(w4, index & 3, value);break;}case 4:{w5 = Set(w5, index & 3, value);break;}default:{throw Sharpen.Extensions.CreateIndexOutOfRangeException(index);}}}" }, { "index": 2040, "before": "public LongBuffer put(int index, long c) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.LongBuffer put(int index, long c){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 2041, "before": "public SumTotalTermFreqValueSource(String indexedField) {this.indexedField = indexedField;}", "after": "public SumTotalTermFreqValueSource(string indexedField){this.m_indexedField = indexedField;}" }, { "index": 2042, "before": "public NavigableSet tailSet(E start, boolean startInclusive) {Comparator c = backingMap.comparator();if (c == null) {((Comparable) start).compareTo(start);} else {c.compare(start, start);}return new TreeSet(backingMap.tailMap(start, startInclusive));}", "after": "public virtual java.util.NavigableSet tailSet(E start, bool startInclusive){java.util.Comparator c = backingMap.comparator();if (c == null){((java.lang.Comparable)start).compareTo(start);}else{c.compare(start, start);}return new java.util.TreeSet(backingMap.tailMap(start, startInclusive));}" }, { "index": 2043, "before": "public ReadJobResult readJob(ReadJobRequest request) {request = beforeClientExecution(request);return executeReadJob(request);}", "after": "public virtual ReadJobResponse ReadJob(ReadJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReadJobRequestMarshaller.Instance;options.ResponseUnmarshaller = ReadJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2044, "before": "public GetSignalingChannelEndpointResult getSignalingChannelEndpoint(GetSignalingChannelEndpointRequest request) {request = beforeClientExecution(request);return executeGetSignalingChannelEndpoint(request);}", "after": "public virtual GetSignalingChannelEndpointResponse GetSignalingChannelEndpoint(GetSignalingChannelEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSignalingChannelEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSignalingChannelEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2045, "before": "public VariableGapTermsIndexWriter(SegmentWriteState state, IndexTermSelector policy) throws IOException {final String indexFileName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, TERMS_INDEX_EXTENSION);out = state.directory.createOutput(indexFileName, state.context);boolean success = false;try {fieldInfos = state.fieldInfos;this.policy = policy;CodecUtil.writeIndexHeader(out, CODEC_NAME, VERSION_CURRENT, state.segmentInfo.getId(), state.segmentSuffix);success = true;} finally {if (!success) {IOUtils.closeWhileHandlingException(out);}}}", "after": "public VariableGapTermsIndexWriter(SegmentWriteState state, IndexTermSelector policy){string indexFileName = IndexFileNames.SegmentFileName(state.SegmentInfo.Name, state.SegmentSuffix, TERMS_INDEX_EXTENSION);m_output = state.Directory.CreateOutput(indexFileName, state.Context);bool success = false;try{fieldInfos = state.FieldInfos;this.policy = policy;WriteHeader(m_output);success = true;}finally{if (!success){IOUtils.DisposeWhileHandlingException(m_output);}}}" }, { "index": 2046, "before": "@Override public boolean add(E object) {Object[] a = array;int s = size;if (s == a.length) {Object[] newArray = new Object[s +(s < (MIN_CAPACITY_INCREMENT / 2) ?MIN_CAPACITY_INCREMENT : s >> 1)];System.arraycopy(a, 0, newArray, 0, s);array = a = newArray;}a[s] = object;size = s + 1;modCount++;return true;}", "after": "public override bool add(E @object){object[] a = array;int s = _size;if (s == a.Length){object[] newArray = new object[s + (s < (java.util.ArrayList.MIN_CAPACITY_INCREMENT/ 2) ? java.util.ArrayList.MIN_CAPACITY_INCREMENT : s >> 1)];System.Array.Copy(a, 0, newArray, 0, s);array = a = newArray;}a[s] = @object;_size = s + 1;modCount++;return true;}" }, { "index": 2047, "before": "public Set toSet() {Set s = new HashSet();for (Interval I : intervals) {int a = I.a;int b = I.b;for (int v=a; v<=b; v++) {s.add(v);}}return s;}", "after": "public virtual HashSet ToSet(){HashSet s = new HashSet();foreach (Interval I in intervals){int a = I.a;int b = I.b;for (int v = a; v <= b; v++){s.Add(v);}}return s;}" }, { "index": 2048, "before": "public final void writeBoolean(boolean val) throws IOException {write(val ? 1 : 0);}", "after": "public virtual void writeBoolean(bool val){throw new System.NotImplementedException();}" }, { "index": 2049, "before": "public void serialize(LittleEndianOutput out) {throw new RecordFormatException( \"Sorry, you can't serialize MulRK in this release\");}", "after": "public override void Serialize(ILittleEndianOutput out1){throw new RecordFormatException(\"Sorry, you can't serialize MulRK in this release\");}" }, { "index": 2050, "before": "public T get(int index) {if (index < 0 || size <= index)throw new IndexOutOfBoundsException(String.valueOf(index));return directory[toDirectoryIndex(index)][toBlockIndex(index)];}", "after": "public override T Get(int index){if (index < 0 || size <= index){throw new IndexOutOfRangeException(index.ToString());}return directory[ToDirectoryIndex(index)][ToBlockIndex(index)];}" }, { "index": 2051, "before": "public DeleteSnapshotCopyGrantResult deleteSnapshotCopyGrant(DeleteSnapshotCopyGrantRequest request) {request = beforeClientExecution(request);return executeDeleteSnapshotCopyGrant(request);}", "after": "public virtual DeleteSnapshotCopyGrantResponse DeleteSnapshotCopyGrant(DeleteSnapshotCopyGrantRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSnapshotCopyGrantRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSnapshotCopyGrantResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2052, "before": "public void resetFontStyle(){setFontStyle(false,false);}", "after": "public void ResetFontStyle(){SetFontStyle(false, false);}" }, { "index": 2053, "before": "public static int getEncodedSize(int numberOfRanges) {return 2 + CellRangeAddress.getEncodedSize(numberOfRanges);}", "after": "public static int GetEncodedSize(int numberOfRanges){return 2 + CellRangeAddress.GetEncodedSize(numberOfRanges);}" }, { "index": 2054, "before": "public ListJobsRequest(String vaultName) {setVaultName(vaultName);}", "after": "public ListJobsRequest(string vaultName){_vaultName = vaultName;}" }, { "index": 2055, "before": "public DeletePlacementGroupRequest(String groupName) {setGroupName(groupName);}", "after": "public DeletePlacementGroupRequest(string groupName){_groupName = groupName;}" }, { "index": 2056, "before": "public void fill() {lazyInit();final int blockSize = 1000;while (true) {int fetched = fetch(blockSize);if (fetched < blockSize) {return;}}}", "after": "public virtual void Fill(){LazyInit();int blockSize = 1000;while (true){int fetched = Fetch(blockSize);if (fetched < blockSize){return;}}}" }, { "index": 2057, "before": "public DescribeGlobalClustersResult describeGlobalClusters(DescribeGlobalClustersRequest request) {request = beforeClientExecution(request);return executeDescribeGlobalClusters(request);}", "after": "public virtual DescribeGlobalClustersResponse DescribeGlobalClusters(DescribeGlobalClustersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGlobalClustersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGlobalClustersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2058, "before": "public PutVoiceConnectorTerminationResult putVoiceConnectorTermination(PutVoiceConnectorTerminationRequest request) {request = beforeClientExecution(request);return executePutVoiceConnectorTermination(request);}", "after": "public virtual PutVoiceConnectorTerminationResponse PutVoiceConnectorTermination(PutVoiceConnectorTerminationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutVoiceConnectorTerminationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutVoiceConnectorTerminationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2059, "before": "public static int strcmp(char[] a, int startA, char[] b, int startB) {for (; a[startA] == b[startB]; startA++, startB++) {if (a[startA] == 0) {return 0;}}return a[startA] - b[startB];}", "after": "public static int StrCmp(char[] a, int startA, char[] b, int startB){for (; a[startA] == b[startB]; startA++, startB++){if (a[startA] == 0){return 0;}}return a[startA] - b[startB];}" }, { "index": 2060, "before": "public StartSentimentDetectionJobResult startSentimentDetectionJob(StartSentimentDetectionJobRequest request) {request = beforeClientExecution(request);return executeStartSentimentDetectionJob(request);}", "after": "public virtual StartSentimentDetectionJobResponse StartSentimentDetectionJob(StartSentimentDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartSentimentDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StartSentimentDetectionJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2061, "before": "public HSSFCell createCell(int column){return this.createCell(column,CellType.BLANK);}", "after": "public ICell CreateCell(int column){return this.CreateCell(column, CellType.Blank);}" }, { "index": 2062, "before": "public RecalcIdRecord(RecordInputStream in) {in.readUShort(); _reserved0 = in.readUShort();_engineId = in.readInt();}", "after": "public RecalcIdRecord(RecordInputStream in1){in1.ReadUShort(); _reserved0 = in1.ReadUShort();_engineId = in1.ReadInt();}" }, { "index": 2063, "before": "public static int getEncodedSizeWithoutArrayData(Ptg[] ptgs) {int result = 0;for (Ptg ptg : ptgs) {if (ptg instanceof ArrayPtg) {result += ArrayPtg.PLAIN_TOKEN_SIZE;} else {result += ptg.getSize();}}return result;}", "after": "public static int GetEncodedSizeWithoutArrayData(Ptg[] ptgs){int result = 0;for (int i = 0; i < ptgs.Length; i++){Ptg ptg = ptgs[i];if (ptg is ArrayPtg){result += ArrayPtg.PLAIN_TOKEN_SIZE;}else{result += ptg.Size;}}return result;}" }, { "index": 2064, "before": "public static double ceiling(double n, double s) {if (n>0 && s<0) {return Double.NaN;} else {return (n == 0 || s == 0) ? 0 : Math.ceil(n/s) * s;}}", "after": "public static double Ceiling(double n, double s){double c;if ((n < 0 && s > 0) || (n > 0 && s < 0)){c = double.NaN;}else{c = (n == 0 || s == 0) ? 0 : Math.Ceiling(n / s) * s;}return c;}" }, { "index": 2065, "before": "public ListResolverRulesResult listResolverRules(ListResolverRulesRequest request) {request = beforeClientExecution(request);return executeListResolverRules(request);}", "after": "public virtual ListResolverRulesResponse ListResolverRules(ListResolverRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListResolverRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListResolverRulesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2066, "before": "public ListBusinessReportSchedulesResult listBusinessReportSchedules(ListBusinessReportSchedulesRequest request) {request = beforeClientExecution(request);return executeListBusinessReportSchedules(request);}", "after": "public virtual ListBusinessReportSchedulesResponse ListBusinessReportSchedules(ListBusinessReportSchedulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListBusinessReportSchedulesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListBusinessReportSchedulesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2067, "before": "public EscherDgRecord createDgRecord() {EscherDgRecord dg = new EscherDgRecord();dg.setRecordId( EscherDgRecord.RECORD_ID );short dgId = findNewDrawingGroupId();dg.setOptions( (short) ( dgId << 4 ) );dg.setNumShapes( 0 );dg.setLastMSOSPID( -1 );drawingGroups.add(dg);dgg.addCluster( dgId, 0 );dgg.setDrawingsSaved( dgg.getDrawingsSaved() + 1 );return dg;}", "after": "public virtual EscherDgRecord CreateDgRecord(){EscherDgRecord dg = new EscherDgRecord();dg.RecordId = EscherDgRecord.RECORD_ID;short dgId = FindNewDrawingGroupId();dg.Options=(short)(dgId << 4);dg.NumShapes=0;dg.LastMSOSPID=(-1);drawingGroups.Add(dg);dgg.AddCluster(dgId, 0);dgg.DrawingsSaved=dgg.DrawingsSaved + 1;return dg;}" }, { "index": 2068, "before": "public Transport open(URIish uri)throws NotSupportedException, TransportException {throw new NotSupportedException(JGitText.get().transportNeedsRepository);}", "after": "public virtual NGit.Transport.Transport Open(URIish uri){throw new NotSupportedException(JGitText.Get().transportNeedsRepository);}" }, { "index": 2069, "before": "public int compare(Ref o1, Ref o2) {return compareTo(o1, o2);}", "after": "public virtual int Compare(Ref o1, Ref o2){return CompareTo(o1, o2);}" }, { "index": 2070, "before": "public OrdRange(int start, int end) {this.start = start;this.end = end;}", "after": "public OrdRange(int start, int end){this.Start = start;this.End = end;}" }, { "index": 2071, "before": "public boolean add(E object) {return backingMap.put(object, this) == null;}", "after": "public override bool add(E @object){return backingMap.put(@object, this) == null;}" }, { "index": 2072, "before": "public void write(String s) {reserve(s.length());s.getChars(0,s.length(),buf, len);len +=s.length();}", "after": "public virtual void Write(int b){Write((char)b);}" }, { "index": 2073, "before": "public long skip(long cnt) throws IOException {try {beginRead();return super.skip(cnt);} catch (InterruptedIOException e) {throw readTimedOut(e);} finally {endRead();}}", "after": "public override long Skip(long cnt){try{BeginRead();return base.Skip(cnt);}catch (ThreadInterruptedException){throw ReadTimedOut();}finally{EndRead();}}" }, { "index": 2074, "before": "public StepDetail(StepConfig stepConfig, StepExecutionStatusDetail executionStatusDetail) {setStepConfig(stepConfig);setExecutionStatusDetail(executionStatusDetail);}", "after": "public StepDetail(StepConfig stepConfig, StepExecutionStatusDetail executionStatusDetail){_stepConfig = stepConfig;_executionStatusDetail = executionStatusDetail;}" }, { "index": 2075, "before": "final 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 = 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": 2076, "before": "public Object[] toArray() {synchronized (mutex) {return delegate().toArray();}}", "after": "public virtual object[] toArray(){lock (mutex){return c.toArray();}}" }, { "index": 2077, "before": "public DBParameterGroup createDBParameterGroup(CreateDBParameterGroupRequest request) {request = beforeClientExecution(request);return executeCreateDBParameterGroup(request);}", "after": "public virtual CreateDBParameterGroupResponse CreateDBParameterGroup(CreateDBParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2078, "before": "public StringBuilder append(boolean b) {append0(b ? \"true\" : \"false\");return this;}", "after": "public java.lang.StringBuilder append(bool b){append0(b ? \"true\" : \"false\");return this;}" }, { "index": 2079, "before": "public void execute(Lexer lexer, CharStream input, int startIndex) {boolean requiresSeek = false;int stopIndex = input.index();try {for (LexerAction lexerAction : lexerActions) {if (lexerAction instanceof LexerIndexedCustomAction) {int offset = ((LexerIndexedCustomAction)lexerAction).getOffset();input.seek(startIndex + offset);lexerAction = ((LexerIndexedCustomAction)lexerAction).getAction();requiresSeek = (startIndex + offset) != stopIndex;}else if (lexerAction.isPositionDependent()) {input.seek(stopIndex);requiresSeek = false;}lexerAction.execute(lexer);}}finally {if (requiresSeek) {input.seek(stopIndex);}}}", "after": "public virtual void Execute(Lexer lexer, ICharStream input, int startIndex){bool requiresSeek = false;int stopIndex = input.Index;try{foreach (ILexerAction lexerAction in lexerActions){ILexerAction action = lexerAction;if (action is LexerIndexedCustomAction){int offset = ((LexerIndexedCustomAction)action).Offset;input.Seek(startIndex + offset);action = ((LexerIndexedCustomAction)action).Action;requiresSeek = (startIndex + offset) != stopIndex;}else{if (action.IsPositionDependent){input.Seek(stopIndex);requiresSeek = false;}}action.Execute(lexer);}}finally{if (requiresSeek){input.Seek(stopIndex);}}}" }, { "index": 2080, "before": "public ListMailboxPermissionsResult listMailboxPermissions(ListMailboxPermissionsRequest request) {request = beforeClientExecution(request);return executeListMailboxPermissions(request);}", "after": "public virtual ListMailboxPermissionsResponse ListMailboxPermissions(ListMailboxPermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListMailboxPermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListMailboxPermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2081, "before": "public ConditionalFormattingTable(RecordStream rs) {while (rs.peekNextRecord() instanceof CFHeaderBase) {_cfHeaders.add(CFRecordsAggregate.createCFAggregate(rs));}}", "after": "public ConditionalFormattingTable(RecordStream rs){IList temp = new ArrayList();while (rs.PeekNextClass() == typeof(CFHeaderRecord)){temp.Add(CFRecordsAggregate.CreateCFAggregate(rs));}_cfHeaders = temp;}" }, { "index": 2082, "before": "public void decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final int byte0 = blocks[blocksOffset++] & 0xFF;final int byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 4) | (byte1 >>> 4);final int 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": 2083, "before": "public Map getTags() {try {return getRefDatabase().getRefs(Constants.R_TAGS);} catch (IOException e) {throw new UncheckedIOException(e);}}", "after": "public virtual IDictionary GetTags(){try{return RefDatabase.GetRefs(Constants.R_TAGS);}catch (IOException){return new Dictionary();}}" }, { "index": 2084, "before": "public ComposedQuery(List qs, boolean operatorInfix, String opName) {recompose(qs);this.operatorInfix = operatorInfix;this.opName = opName;}", "after": "public ComposedQuery(IList qs, bool operatorInfix, string opName){Recompose(qs);this.operatorInfix = operatorInfix;this.m_opName = opName;}" }, { "index": 2085, "before": "public TestRoleResult testRole(TestRoleRequest request) {request = beforeClientExecution(request);return executeTestRole(request);}", "after": "public virtual TestRoleResponse TestRole(TestRoleRequest request){var options = new InvokeOptions();options.RequestMarshaller = TestRoleRequestMarshaller.Instance;options.ResponseUnmarshaller = TestRoleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2086, "before": "public String toString() {final StringBuilder r = new StringBuilder();r.append(\"(\");for (int i = 0; i < subfilters.length; i++) {if (i > 0)r.append(\" AND \");r.append(subfilters[i].toString());}r.append(\")\");return r.toString();}", "after": "public override string ToString(){StringBuilder r = new StringBuilder();r.Append(\"(\");for (int i = 0; i < subfilters.Length; i++){if (i > 0){r.Append(\" OR \");}r.Append(subfilters[i].ToString());}r.Append(\")\");return r.ToString();}" }, { "index": 2087, "before": "public ModifyVpcAttributeResult modifyVpcAttribute(ModifyVpcAttributeRequest request) {request = beforeClientExecution(request);return executeModifyVpcAttribute(request);}", "after": "public virtual ModifyVpcAttributeResponse ModifyVpcAttribute(ModifyVpcAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpcAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpcAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2088, "before": "public void seekExact(long ord) throws IOException {throw new UnsupportedOperationException();}", "after": "public override void SeekExact(long ord){throw new System.NotSupportedException();}" }, { "index": 2089, "before": "public ArabicNormalizationFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public ArabicNormalizationFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 2090, "before": "public boolean equals(Object obj) {if (!(obj instanceof BookSheetKey)) {return false;}BookSheetKey other = (BookSheetKey) obj;return _bookIndex == other._bookIndex && _sheetIndex == other._sheetIndex;}", "after": "public override bool Equals(Object obj){BookSheetKey other = (BookSheetKey)obj;return _bookIndex == other._bookIndex && _sheetIndex == other._sheetIndex;}" }, { "index": 2091, "before": "public TermQuery(Term t, TermStates states) {assert states != null;term = Objects.requireNonNull(t);perReaderTermState = Objects.requireNonNull(states);}", "after": "public TermQuery(Term t, TermContext states){Debug.Assert(states != null);term = t;docFreq = states.DocFreq;perReaderTermState = states;}" }, { "index": 2092, "before": "public GetClusterCredentialsResult getClusterCredentials(GetClusterCredentialsRequest request) {request = beforeClientExecution(request);return executeGetClusterCredentials(request);}", "after": "public virtual GetClusterCredentialsResponse GetClusterCredentials(GetClusterCredentialsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetClusterCredentialsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetClusterCredentialsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2093, "before": "public boolean equals(Object other) {return (getClass() == other.getClass()) && this.equalsSameType(other);}", "after": "public override bool Equals(object other){return (this.GetType() == other.GetType()) && this.EqualsSameType(other);}" }, { "index": 2094, "before": "public Item clone() {return new Item(parent, child);}", "after": "public object Clone(){return new Item(parent, child);}" }, { "index": 2095, "before": "public UpdateClusterResult updateCluster(UpdateClusterRequest request) {request = beforeClientExecution(request);return executeUpdateCluster(request);}", "after": "public virtual UpdateClusterResponse UpdateCluster(UpdateClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2096, "before": "public E get(int index) {synchronized (mutex) {return delegate().get(index);}}", "after": "public virtual E get(int location){lock (mutex){return list.get(location);}}" }, { "index": 2097, "before": "public LogCommand setMaxCount(int maxCount) {checkCallable();this.maxCount = maxCount;return this;}", "after": "public virtual NGit.Api.LogCommand SetMaxCount(int maxCount){CheckCallable();this.maxCount = maxCount;return this;}" }, { "index": 2098, "before": "public GetInsightRuleReportResult getInsightRuleReport(GetInsightRuleReportRequest request) {request = beforeClientExecution(request);return executeGetInsightRuleReport(request);}", "after": "public virtual GetInsightRuleReportResponse GetInsightRuleReport(GetInsightRuleReportRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInsightRuleReportRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInsightRuleReportResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2099, "before": "public CommonToken(Token oldToken) {type = oldToken.getType();line = oldToken.getLine();index = oldToken.getTokenIndex();charPositionInLine = oldToken.getCharPositionInLine();channel = oldToken.getChannel();start = oldToken.getStartIndex();stop = oldToken.getStopIndex();if (oldToken instanceof CommonToken) {text = ((CommonToken)oldToken).text;source = ((CommonToken)oldToken).source;}else {text = oldToken.getText();source = new Pair(oldToken.getTokenSource(), oldToken.getInputStream());}}", "after": "public CommonToken(IToken oldToken){_type = oldToken.Type;_line = oldToken.Line;index = oldToken.TokenIndex;charPositionInLine = oldToken.Column;_channel = oldToken.Channel;start = oldToken.StartIndex;stop = oldToken.StopIndex;if (oldToken is Antlr4.Runtime.CommonToken){_text = ((Antlr4.Runtime.CommonToken)oldToken)._text;source = ((Antlr4.Runtime.CommonToken)oldToken).source;}else{_text = oldToken.Text;source = Tuple.Create(oldToken.TokenSource, oldToken.InputStream);}}" }, { "index": 2100, "before": "public ListSolutionsResult listSolutions(ListSolutionsRequest request) {request = beforeClientExecution(request);return executeListSolutions(request);}", "after": "public virtual ListSolutionsResponse ListSolutions(ListSolutionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSolutionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSolutionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2101, "before": "public boolean hasPrevious() {return index > from;}", "after": "public virtual bool hasPrevious(){return index > from;}" }, { "index": 2102, "before": "public final void end() {if (finalState != null) {restoreState(finalState);}}", "after": "public override void End(){if (finalState != null){RestoreState(finalState);}}" }, { "index": 2103, "before": "public DoubleBuffer put(int index, double c) {checkIndex(index);backingArray[offset + index] = c;return this;}", "after": "public override java.nio.DoubleBuffer put(int index, double c){checkIndex(index);backingArray[offset + index] = c;return this;}" }, { "index": 2104, "before": "public ThreeWayMerger newMerger(Repository db) {return new ResolveMerger(db, false);}", "after": "public override Merger NewMerger(Repository db){return new ResolveMerger(db, false);}" }, { "index": 2105, "before": "public static long pop_union(long[] arr1, long[] arr2, int wordOffset, int numWords) {long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i) {popCount += Long.bitCount(arr1[i] | arr2[i]);}return popCount;}", "after": "public static long Pop_Union(long[] arr1, long[] arr2, int wordOffset, int numWords){long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i){popCount += (arr1[i] | arr2[i]).PopCount();}return popCount;}" }, { "index": 2106, "before": "public LongBuffer put(long c) {if (position == limit) {throw new BufferOverflowException();}backingArray[offset + position++] = c;return this;}", "after": "public override java.nio.LongBuffer put(long c){if (_position == _limit){throw new java.nio.BufferOverflowException();}backingArray[offset + _position++] = c;return this;}" }, { "index": 2107, "before": "public ConstValueSource(float constant) {this.constant = constant;this.dv = constant;}", "after": "public ConstValueSource(float constant){this.constant = constant;this.dv = constant;}" }, { "index": 2108, "before": "public boolean matches(char c) {return punctCharacters.indexOf(c) != -1;}", "after": "public bool Matches(char c){return punctCharacters.IndexOf(c) != -1;}" }, { "index": 2109, "before": "public FlushInfo(int numDocs, long estimatedSegmentSize) {this.numDocs = numDocs;this.estimatedSegmentSize = estimatedSegmentSize;}", "after": "public FlushInfo(int numDocs, long estimatedSegmentSize){this.NumDocs = numDocs;this.EstimatedSegmentSize = estimatedSegmentSize;}" }, { "index": 2110, "before": "public void print(char[] chars) {print(new String(chars, 0, chars.length));}", "after": "public virtual void print(char[] chars){print(new string(chars, 0, chars.Length));}" }, { "index": 2111, "before": "public E element() {return getFirstImpl();}", "after": "public virtual E element(){return getFirstImpl();}" }, { "index": 2112, "before": "public ListNodegroupsResult listNodegroups(ListNodegroupsRequest request) {request = beforeClientExecution(request);return executeListNodegroups(request);}", "after": "public virtual ListNodegroupsResponse ListNodegroups(ListNodegroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListNodegroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListNodegroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2113, "before": "public PutSkillAuthorizationResult putSkillAuthorization(PutSkillAuthorizationRequest request) {request = beforeClientExecution(request);return executePutSkillAuthorization(request);}", "after": "public virtual PutSkillAuthorizationResponse PutSkillAuthorization(PutSkillAuthorizationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutSkillAuthorizationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutSkillAuthorizationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2114, "before": "public DescribeSourceRegionsResult describeSourceRegions(DescribeSourceRegionsRequest request) {request = beforeClientExecution(request);return executeDescribeSourceRegions(request);}", "after": "public virtual DescribeSourceRegionsResponse DescribeSourceRegions(DescribeSourceRegionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSourceRegionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSourceRegionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2115, "before": "public SplitShardResult splitShard(SplitShardRequest request) {request = beforeClientExecution(request);return executeSplitShard(request);}", "after": "public virtual SplitShardResponse SplitShard(SplitShardRequest request){var options = new InvokeOptions();options.RequestMarshaller = SplitShardRequestMarshaller.Instance;options.ResponseUnmarshaller = SplitShardResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2116, "before": "public CreateTableRequest(String tableName, java.util.List keySchema) {setTableName(tableName);setKeySchema(keySchema);}", "after": "public CreateTableRequest(string tableName, List keySchema){_tableName = tableName;_keySchema = keySchema;}" }, { "index": 2117, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_id);out.writeByte(field_4_text.length());if (is16bit) {out.writeByte(0x01);StringUtil.putUnicodeLE(field_4_text, out);} else {out.writeByte(0x00);StringUtil.putCompressedUnicode(field_4_text, out);}}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_id);out1.WriteByte(field_4_text.Length);if (is16bit){out1.WriteByte(0x01);StringUtil.PutUnicodeLE(field_4_text, out1);}else{out1.WriteByte(0x00);StringUtil.PutCompressedUnicode(field_4_text, out1);}}" }, { "index": 2118, "before": "public UpdateVoiceTemplateResult updateVoiceTemplate(UpdateVoiceTemplateRequest request) {request = beforeClientExecution(request);return executeUpdateVoiceTemplate(request);}", "after": "public virtual UpdateVoiceTemplateResponse UpdateVoiceTemplate(UpdateVoiceTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateVoiceTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateVoiceTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2119, "before": "public BookBoolRecord(RecordInputStream in) {field_1_save_link_values = in.readShort();}", "after": "public BookBoolRecord(RecordInputStream in1){field_1_save_link_values = in1.ReadShort();}" }, { "index": 2120, "before": "public final Buffer flip() {limit = position;position = 0;mark = UNSET_MARK;return this;}", "after": "public java.nio.Buffer flip(){_limit = _position;_position = 0;_mark = UNSET_MARK;return this;}" }, { "index": 2121, "before": "public IntBuffer get(int[] dst, int dstOffset, int intCount) {Arrays.checkOffsetAndCount(dst.length, dstOffset, intCount);if (intCount > remaining()) {throw new BufferUnderflowException();}for (int i = dstOffset; i < dstOffset + intCount; ++i) {dst[i] = get();}return this;}", "after": "public virtual java.nio.IntBuffer get(int[] dst, int dstOffset, int intCount){java.util.Arrays.checkOffsetAndCount(dst.Length, dstOffset, intCount);if (intCount > remaining()){throw new java.nio.BufferUnderflowException();}{for (int i = dstOffset; i < dstOffset + intCount; ++i){dst[i] = get();}}return this;}" }, { "index": 2122, "before": "public GroupingSearch setGroupDocsOffset(int groupDocsOffset) {this.groupDocsOffset = groupDocsOffset;return this;}", "after": "public virtual GroupingSearch SetGroupDocsOffset(int groupDocsOffset){this.groupDocsOffset = groupDocsOffset;return this;}" }, { "index": 2123, "before": "public Builder() {this(16, 16);}", "after": "public Builder(){InitializeInstanceFields();}" }, { "index": 2124, "before": "public String getCommandName() {return command;}", "after": "public virtual string GetCommandName(){return command;}" }, { "index": 2125, "before": "public int getFirstInternalSheetIndexForExtIndex(int extRefIndex) {if (extRefIndex >= _externSheetRecord.getNumOfRefs() || extRefIndex < 0) {return -1;}return _externSheetRecord.getFirstSheetIndexFromRefIndex(extRefIndex);}", "after": "public int GetFirstInternalSheetIndexForExtIndex(int extRefIndex){if (extRefIndex >= _externSheetRecord.NumOfRefs || extRefIndex < 0){return -1;}return _externSheetRecord.GetFirstSheetIndexFromRefIndex(extRefIndex);}" }, { "index": 2126, "before": "public boolean isExpired() {return this.expiredDate == null || this.expiredDate.after(new Date());}", "after": "public bool IsExpired(){if (null == ExpiredDate){return false;}return !(ExpiredDate < DateTime.UtcNow);}" }, { "index": 2127, "before": "public ListPolicyAttachmentsResult listPolicyAttachments(ListPolicyAttachmentsRequest request) {request = beforeClientExecution(request);return executeListPolicyAttachments(request);}", "after": "public virtual ListPolicyAttachmentsResponse ListPolicyAttachments(ListPolicyAttachmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPolicyAttachmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPolicyAttachmentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2128, "before": "public double readDouble() {return Double.longBitsToDouble(readLong());}", "after": "public double ReadDouble(){return BitConverter.Int64BitsToDouble(ReadLong());}" }, { "index": 2129, "before": "public UpdateLoginProfileRequest(String userName) {setUserName(userName);}", "after": "public UpdateLoginProfileRequest(string userName){_userName = userName;}" }, { "index": 2130, "before": "public String getResultPath() {return resultPath;}", "after": "public virtual string GetResultPath(){return resultPath;}" }, { "index": 2131, "before": "public DescribeInstanceAttributeRequest(String instanceId, InstanceAttributeName attribute) {setInstanceId(instanceId);setAttribute(attribute.toString());}", "after": "public DescribeInstanceAttributeRequest(string instanceId, InstanceAttributeName attribute){_instanceId = instanceId;_attribute = attribute;}" }, { "index": 2132, "before": "public int previousIndex() {return index - 1;}", "after": "public virtual int previousIndex(){return index - 1;}" }, { "index": 2133, "before": "public static RevFilter create(RevFilter[] list) {if (list.length == 2)return create(list[0], list[1]);if (list.length < 2)throw new IllegalArgumentException(JGitText.get().atLeastTwoFiltersNeeded);final RevFilter[] subfilters = new RevFilter[list.length];System.arraycopy(list, 0, subfilters, 0, list.length);return new List(subfilters);}", "after": "public static RevFilter Create(RevFilter[] list){if (list.Length == 2){return Create(list[0], list[1]);}if (list.Length < 2){throw new ArgumentException(JGitText.Get().atLeastTwoFiltersNeeded);}RevFilter[] subfilters = new RevFilter[list.Length];System.Array.Copy(list, 0, subfilters, 0, list.Length);return new AndRevFilter.List(subfilters);}" }, { "index": 2134, "before": "public void reset() {seek(0);}", "after": "public virtual void Reset(){Seek(0);}" }, { "index": 2135, "before": "public ListResourceRecordSetsRequest(String hostedZoneId) {setHostedZoneId(hostedZoneId);}", "after": "public ListResourceRecordSetsRequest(string hostedZoneId){_hostedZoneId = hostedZoneId;}" }, { "index": 2136, "before": "public EventBasedExcelExtractor(POIFSFileSystem fs) {this(fs.getRoot());super.setFilesystem(fs);}", "after": "public EventBasedExcelExtractor(POIFSFileSystem fs): base(null){this.fs = fs;}" }, { "index": 2137, "before": "public ListClustersResult listClusters() {return listClusters(new ListClustersRequest());}", "after": "public virtual ListClustersResponse ListClusters(){return ListClusters(new ListClustersRequest());}" }, { "index": 2138, "before": "public CreateAddressResult createAddress(CreateAddressRequest request) {request = beforeClientExecution(request);return executeCreateAddress(request);}", "after": "public virtual CreateAddressResponse CreateAddress(CreateAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAddressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2139, "before": "public ListFacePhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"ListFacePhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public ListFacePhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"ListFacePhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 2140, "before": "public String toPrivateASCIIString() {return format(true, true);}", "after": "public virtual string ToPrivateASCIIString(){return Format(true, true);}" }, { "index": 2141, "before": "public BatchGetNamedQueryResult batchGetNamedQuery(BatchGetNamedQueryRequest request) {request = beforeClientExecution(request);return executeBatchGetNamedQuery(request);}", "after": "public virtual BatchGetNamedQueryResponse BatchGetNamedQuery(BatchGetNamedQueryRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetNamedQueryRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetNamedQueryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2142, "before": "public CreateProfilingGroupResult createProfilingGroup(CreateProfilingGroupRequest request) {request = beforeClientExecution(request);return executeCreateProfilingGroup(request);}", "after": "public virtual CreateProfilingGroupResponse CreateProfilingGroup(CreateProfilingGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateProfilingGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateProfilingGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2143, "before": "@Override public String toString() {return Arrays.toString(elements);}", "after": "public override string ToString(){return java.util.Arrays.toString(elements);}" }, { "index": 2144, "before": "public String toString() {String padd = getPadding();StringBuilder sb = new StringBuilder(padd);if (disableCounting) {sb.append('-');}sb.append(getName());if (getRunInBackground()) {sb.append(\" &\");int x = getBackgroundDeltaPriority();if (x != 0) {sb.append(x);}}return sb.toString();}", "after": "public override string ToString(){string padd = GetPadding();StringBuilder sb = new StringBuilder(padd);if (disableCounting){sb.Append('-');}sb.Append(GetName());if (RunInBackground){sb.Append(\" &\");int x = BackgroundDeltaPriority;if (x != 0){sb.Append(x);}}return sb.ToString();}" }, { "index": 2145, "before": "public Counter bytesUsed() {return bytesUsed;}", "after": "public override Counter BytesUsed(){return bytesUsed;}" }, { "index": 2146, "before": "public ListStreamingDistributionsResult listStreamingDistributions(ListStreamingDistributionsRequest request) {request = beforeClientExecution(request);return executeListStreamingDistributions(request);}", "after": "public virtual ListStreamingDistributionsResponse ListStreamingDistributions(ListStreamingDistributionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStreamingDistributionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStreamingDistributionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2147, "before": "public final void writeInt(int val) throws IOException {Memory.pokeInt(scratch, 0, val, ByteOrder.BIG_ENDIAN);write(scratch, 0, SizeOf.INT);}", "after": "public virtual void writeInt(int val){throw new System.NotImplementedException();}" }, { "index": 2148, "before": "public static ExpandedDouble fromRawBitsAndExponent(long rawBits, int exp) {return new ExpandedDouble(getFrac(rawBits), exp);}", "after": "public static ExpandedDouble FromRawBitsAndExponent(long rawBits, int exp){return new ExpandedDouble(GetFrac(rawBits), exp);}" }, { "index": 2149, "before": "public boolean offerFirst(E e) {return addFirstImpl(e);}", "after": "public virtual bool offerFirst(E e){return addFirstImpl(e);}" }, { "index": 2150, "before": "public BlockTermsWriter(TermsIndexWriterBase termsIndexWriter,SegmentWriteState state, PostingsWriterBase postingsWriter)throws IOException {final String termsFileName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, TERMS_EXTENSION);this.termsIndexWriter = termsIndexWriter;maxDoc = state.segmentInfo.maxDoc();out = state.directory.createOutput(termsFileName, state.context);boolean success = false;try {fieldInfos = state.fieldInfos;CodecUtil.writeIndexHeader(out, CODEC_NAME, VERSION_CURRENT, state.segmentInfo.getId(), state.segmentSuffix);currentField = null;this.postingsWriter = postingsWriter;postingsWriter.init(out, state); success = true;} finally {if (!success) {IOUtils.closeWhileHandlingException(out);}}}", "after": "public BlockTermsWriter(TermsIndexWriterBase termsIndexWriter,SegmentWriteState state, PostingsWriterBase postingsWriter){string termsFileName = IndexFileNames.SegmentFileName(state.SegmentInfo.Name, state.SegmentSuffix, TERMS_EXTENSION);this.termsIndexWriter = termsIndexWriter;m_output = state.Directory.CreateOutput(termsFileName, state.Context);bool success = false;try{fieldInfos = state.FieldInfos;WriteHeader(m_output);currentField = null;this.postingsWriter = postingsWriter;postingsWriter.Init(m_output); success = true;}finally{if (!success){IOUtils.DisposeWhileHandlingException(m_output);}}}" }, { "index": 2151, "before": "public InstanceGroupModifyConfig(String instanceGroupId, Integer instanceCount) {setInstanceGroupId(instanceGroupId);setInstanceCount(instanceCount);}", "after": "public InstanceGroupModifyConfig(string instanceGroupId, int instanceCount){_instanceGroupId = instanceGroupId;_instanceCount = instanceCount;}" }, { "index": 2152, "before": "public void collect(int doc) {totalHits++;}", "after": "public virtual void Collect(int doc){totalHits++;}" }, { "index": 2153, "before": "public void writeByte(int v) {try {out.write(v);} catch (IOException e) {throw new RuntimeException(e);}}", "after": "public void WriteByte(int v){try{out1.WriteByte((byte)v);}catch (IOException e){throw new RuntimeException(e);}}" }, { "index": 2154, "before": "public int serializeComplexPart(byte[] data, int pos) {System.arraycopy(complexData, 0, data, pos, complexData.length);return complexData.length;}", "after": "public override int SerializeComplexPart(byte[] data, int pos){Array.Copy(_complexData, 0, data, pos, _complexData.Length);return _complexData.Length;}" }, { "index": 2155, "before": "public String toString() {return \"\";}", "after": "public override string ToString(){return \"\";}" }, { "index": 2156, "before": "public DecisionInfo(int decision) {this.decision = decision;}", "after": "public DecisionInfo(int decision){this.decision = decision;}" }, { "index": 2157, "before": "public CFRuleRecord(RecordInputStream in) {setConditionType(in.readByte());setComparisonOperation(in.readByte());int field_3_formula1_len = in.readUShort();int field_4_formula2_len = in.readUShort();readFormatOptions(in);setFormula1(Formula.read(field_3_formula1_len, in));setFormula2(Formula.read(field_4_formula2_len, in));}", "after": "public CFRuleRecord(RecordInputStream in1){field_1_condition_type = (byte)in1.ReadByte();field_2_comparison_operator = (byte)in1.ReadByte();int field_3_formula1_len = in1.ReadUShort();int field_4_formula2_len = in1.ReadUShort();field_5_options = in1.ReadInt();field_6_not_used = in1.ReadShort();if (ContainsFontFormattingBlock){_fontFormatting = new FontFormatting(in1);}if (ContainsBorderFormattingBlock){_borderFormatting = new BorderFormatting(in1);}if (ContainsPatternFormattingBlock){_patternFormatting = new PatternFormatting(in1);}field_17_formula1 = FR.Formula.Read(field_3_formula1_len, in1);field_18_formula2 = FR.Formula.Read(field_4_formula2_len, in1);}" }, { "index": 2158, "before": "public GroupMarkerSubRecord() {reserved = EMPTY_BYTE_ARRAY;}", "after": "public GroupMarkerSubRecord(){reserved = EMPTY_BYTE_ARRAY;}" }, { "index": 2159, "before": "public SegToken filter(SegToken token) {switch (token.wordType) {case WordType.FULLWIDTH_NUMBER:case WordType.FULLWIDTH_STRING: for (int i = 0; i < token.charArray.length; i++) {if (token.charArray[i] >= 0xFF10)token.charArray[i] -= 0xFEE0;if (token.charArray[i] >= 0x0041 && token.charArray[i] <= 0x005A) token.charArray[i] += 0x0020;}break;case WordType.STRING:for (int i = 0; i < token.charArray.length; i++) {if (token.charArray[i] >= 0x0041 && token.charArray[i] <= 0x005A) token.charArray[i] += 0x0020;}break;case WordType.DELIMITER: token.charArray = Utility.COMMON_DELIMITER;break;default:break;}return token;}", "after": "public virtual SegToken Filter(SegToken token){switch (token.WordType){case WordType.FULLWIDTH_NUMBER:case WordType.FULLWIDTH_STRING: for (int i = 0; i < token.CharArray.Length; i++){if (token.CharArray[i] >= 0xFF10){token.CharArray[i] = (char)(token.CharArray[i] - 0xFEE0);}if (token.CharArray[i] >= 0x0041 && token.CharArray[i] <= 0x005A) {token.CharArray[i] = (char)(token.CharArray[i] + 0x0020);}}break;case WordType.STRING:for (int i = 0; i < token.CharArray.Length; i++){if (token.CharArray[i] >= 0x0041 && token.CharArray[i] <= 0x005A) {token.CharArray[i] = (char)(token.CharArray[i] + 0x0020);}}break;case WordType.DELIMITER: token.CharArray = Utility.COMMON_DELIMITER;break;default:break;}return token;}" }, { "index": 2160, "before": "public BarRecord(RecordInputStream in) {field_1_barSpace = in.readShort();field_2_categorySpace = in.readShort();field_3_formatFlags = in.readShort();}", "after": "public BarRecord(RecordInputStream in1){field_1_barSpace = in1.ReadShort();field_2_categorySpace = in1.ReadShort();field_3_formatFlags = in1.ReadShort();}" }, { "index": 2161, "before": "public final boolean tryIncRef() {int count;while ((count = refCount.get()) > 0) {if (refCount.compareAndSet(count, count+1)) {return true;}}return false;}", "after": "public bool TryIncRef(){int count;while ((count = refCount) > 0){if (refCount.CompareAndSet(count, count + 1)){return true;}}return false;}" }, { "index": 2162, "before": "public GetStackPolicyResult getStackPolicy(GetStackPolicyRequest request) {request = beforeClientExecution(request);return executeGetStackPolicy(request);}", "after": "public virtual GetStackPolicyResponse GetStackPolicy(GetStackPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetStackPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetStackPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2163, "before": "public void removeKeywords() {remove1stProperty(PropertyIDMap.PID_KEYWORDS);}", "after": "public void RemoveKeywords(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_KEYWORDS);}" }, { "index": 2164, "before": "public boolean follows(TextFragment fragment){return textStartPos == fragment.textEndPos;}", "after": "public virtual bool Follows(TextFragment fragment){return TextStartPos == fragment.TextEndPos;}" }, { "index": 2165, "before": "public DescribeHyperParameterTuningJobResult describeHyperParameterTuningJob(DescribeHyperParameterTuningJobRequest request) {request = beforeClientExecution(request);return executeDescribeHyperParameterTuningJob(request);}", "after": "public virtual DescribeHyperParameterTuningJobResponse DescribeHyperParameterTuningJob(DescribeHyperParameterTuningJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeHyperParameterTuningJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeHyperParameterTuningJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2166, "before": "public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChildren() == null || getChildren().size() == 0)return \"\";StringBuilder sb = new StringBuilder();String filler = \"\";for (QueryNode child : getChildren()) {sb.append(filler).append(child.toQueryString(escapeSyntaxParser));filler = \" AND \";}if ((getParent() != null && getParent() instanceof GroupQueryNode)|| isRoot())return sb.toString();elsereturn \"( \" + sb.toString() + \" )\";}", "after": "public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){var children = GetChildren();if (children == null || children.Count == 0)return \"\";StringBuilder sb = new StringBuilder();string filler = \"\";foreach (IQueryNode child in children){sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));filler = \" AND \";}if ((Parent != null && Parent is GroupQueryNode)|| IsRoot)return sb.ToString();elsereturn \"( \" + sb.ToString() + \" )\";}" }, { "index": 2167, "before": "public String toString() {return \"State [entries=\" + entries + \", hosts=\" + hosts + \"]\";}", "after": "public override string ToString(){return \"PackWriter.State[\" + this.phase + \", memory=\" + this.bytesUsed + \"]\";}" }, { "index": 2168, "before": "public DataFormatRecord(RecordInputStream in) {field_1_pointNumber = in.readShort();field_2_seriesIndex = in.readShort();field_3_seriesNumber = in.readShort();field_4_formatFlags = in.readShort();}", "after": "public DataFormatRecord(RecordInputStream in1){field_1_pointNumber = in1.ReadShort();field_2_seriesIndex = in1.ReadShort();field_3_seriesNumber = in1.ReadShort();field_4_formatFlags = in1.ReadShort();}" }, { "index": 2169, "before": "public ModifyVpcEndpointServiceConfigurationResult modifyVpcEndpointServiceConfiguration(ModifyVpcEndpointServiceConfigurationRequest request) {request = beforeClientExecution(request);return executeModifyVpcEndpointServiceConfiguration(request);}", "after": "public virtual ModifyVpcEndpointServiceConfigurationResponse ModifyVpcEndpointServiceConfiguration(ModifyVpcEndpointServiceConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpcEndpointServiceConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpcEndpointServiceConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2170, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(_encodedTokenLen);out.write(_byteEncoding);}", "after": "public void Serialize(ILittleEndianOutput out1){out1.WriteShort(_encodedTokenLen);out1.Write(_byteEncoding);}" }, { "index": 2171, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {AreaEval aeRange;try {aeRange = convertRangeArg(arg0);} catch (EvaluationException e) {return e.getErrorEval();}return eval(srcRowIndex, srcColumnIndex, arg1, aeRange, aeRange);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){AreaEval aeRange;try{aeRange = ConvertRangeArg(arg0);}catch (EvaluationException e){return e.GetErrorEval();}return Eval(srcRowIndex, srcColumnIndex, arg1, aeRange, aeRange);}" }, { "index": 2172, "before": "public RecognizeLabelRequest() {super(\"visionai-poc\", \"2020-04-08\", \"RecognizeLabel\");setMethod(MethodType.POST);}", "after": "public RecognizeLabelRequest(): base(\"visionai-poc\", \"2020-04-08\", \"RecognizeLabel\"){Method = MethodType.POST;}" }, { "index": 2173, "before": "public ListStackSetsResult listStackSets(ListStackSetsRequest request) {request = beforeClientExecution(request);return executeListStackSets(request);}", "after": "public virtual ListStackSetsResponse ListStackSets(ListStackSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStackSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStackSetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2174, "before": "public ModifyNetworkInterfaceAttributeResult modifyNetworkInterfaceAttribute(ModifyNetworkInterfaceAttributeRequest request) {request = beforeClientExecution(request);return executeModifyNetworkInterfaceAttribute(request);}", "after": "public virtual ModifyNetworkInterfaceAttributeResponse ModifyNetworkInterfaceAttribute(ModifyNetworkInterfaceAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyNetworkInterfaceAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyNetworkInterfaceAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2175, "before": "public static RevFilter create(RevFilter a) {return new NotRevFilter(a);}", "after": "public static RevFilter Create(RevFilter a){return new NGit.Revwalk.Filter.NotRevFilter(a);}" }, { "index": 2176, "before": "public String toString() {String up = parent!=null ? parent.toString() : \"\";if ( up.length()==0 ) {if ( returnState == EMPTY_RETURN_STATE ) {return \"$\";}return String.valueOf(returnState);}return String.valueOf(returnState)+\" \"+up;}", "after": "public override string ToString(){string up = parent != null ? parent.ToString() : \"\";if (up.Length == 0){if (returnState == EMPTY_RETURN_STATE){return \"$\";}return returnState.ToString();}return returnState.ToString() + \" \" + up;}" }, { "index": 2177, "before": "public ToParentBlockJoinQuery(Query childQuery, BitSetProducer parentsFilter, ScoreMode scoreMode) {super();this.childQuery = childQuery;this.parentsFilter = parentsFilter;this.scoreMode = scoreMode;}", "after": "public ToParentBlockJoinQuery(Query childQuery, Filter parentsFilter, ScoreMode scoreMode): base(){_origChildQuery = childQuery;_childQuery = childQuery;_parentsFilter = parentsFilter;_scoreMode = scoreMode;}" }, { "index": 2178, "before": "public int previousIndex() {int previous = iterator.previousIndex();if (previous >= start) {return previous - start;}return -1;}", "after": "public int previousIndex(){int previous_1 = iterator.previousIndex();if (previous_1 >= start){return previous_1 - start;}return -1;}" }, { "index": 2179, "before": "public String getSourcePath(int idx) {return sourcePaths[idx];}", "after": "public virtual string GetSourcePath(int idx){return sourcePaths[idx];}" }, { "index": 2180, "before": "public DoubleBuffer slice() {return new ReadWriteDoubleArrayBuffer(remaining(), backingArray, offset + position);}", "after": "public override java.nio.DoubleBuffer slice(){return new java.nio.ReadWriteDoubleArrayBuffer(remaining(), backingArray, offset+ _position);}" }, { "index": 2181, "before": "public DescribeEvaluationsResult describeEvaluations(DescribeEvaluationsRequest request) {request = beforeClientExecution(request);return executeDescribeEvaluations(request);}", "after": "public virtual DescribeEvaluationsResponse DescribeEvaluations(DescribeEvaluationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEvaluationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEvaluationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2182, "before": "public int getBigBlockSize() {return bigBlockSize;}", "after": "public int GetBigBlockSize(){return bigBlockSize;}" }, { "index": 2183, "before": "public static ValueVector createRowVector(TwoDEval tableArray, int relativeRowIndex) {return new RowVector(tableArray, relativeRowIndex);}", "after": "public static ValueVector CreateRowVector(TwoDEval tableArray, int relativeRowIndex){return new RowVector((AreaEval)tableArray, relativeRowIndex);}" }, { "index": 2184, "before": "public void setDbcell(int cell, int value){field_5_dbcells.set(cell, value);}", "after": "public void SetDbcell(int cell, int value){field_5_dbcells.Set(cell, value);}" }, { "index": 2185, "before": "public int compareTo(MutableValue other) {Class c1 = this.getClass();Class c2 = other.getClass();if (c1 != c2) {int c = c1.hashCode() - c2.hashCode();if (c == 0) {c = c1.getCanonicalName().compareTo(c2.getCanonicalName());}return c;}return compareSameType(other);}", "after": "public virtual int CompareTo(MutableValue other){Type c1 = this.GetType();Type c2 = other.GetType();if (c1 != c2){int c = c1.GetHashCode() - c2.GetHashCode();if (c == 0){c = c1.FullName.CompareToOrdinal(c2.FullName);}return c;}return CompareSameType(other);}" }, { "index": 2186, "before": "public StartSpeechSynthesisTaskResult startSpeechSynthesisTask(StartSpeechSynthesisTaskRequest request) {request = beforeClientExecution(request);return executeStartSpeechSynthesisTask(request);}", "after": "public virtual StartSpeechSynthesisTaskResponse StartSpeechSynthesisTask(StartSpeechSynthesisTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartSpeechSynthesisTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = StartSpeechSynthesisTaskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2187, "before": "public void removeParseListeners() {_parseListeners = null;}", "after": "public virtual void RemoveParseListeners(){_parseListeners = null;}" }, { "index": 2188, "before": "public ListIdentityPoolsResult listIdentityPools(ListIdentityPoolsRequest request) {request = beforeClientExecution(request);return executeListIdentityPools(request);}", "after": "public virtual ListIdentityPoolsResponse ListIdentityPools(ListIdentityPoolsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIdentityPoolsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIdentityPoolsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2189, "before": "public String toString(){return text + '(' + startOffset + ',' + endOffset + ',' + position + ')';}", "after": "public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append(text).Append('(').Append(startOffset).Append(',').Append(endOffset).Append(',').Append(position).Append(')');return sb.ToString();}" }, { "index": 2190, "before": "public void setWrapIfNotCachingTokenFilter(boolean wrap) {this.wrapToCaching = wrap;}", "after": "public virtual void SetWrapIfNotCachingTokenFilter(bool wrap){this.wrapToCaching = wrap;}" }, { "index": 2191, "before": "public void onChange(boolean selfChange) {mCursor.requery();}", "after": "public override void onChange(bool selfChange){this._enclosing.onContentChanged();}" }, { "index": 2192, "before": "public DeleteRuleResult deleteRule(DeleteRuleRequest request) {request = beforeClientExecution(request);return executeDeleteRule(request);}", "after": "public virtual DeleteRuleResponse DeleteRule(DeleteRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2193, "before": "public void serialize(LittleEndianOutput out) {out.writeByte(getAddMenuCount());out.writeByte(getDelMenuCount());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteByte(AddMenuCount);out1.WriteByte(DelMenuCount);}" }, { "index": 2194, "before": "public String getPattern() {return pattern;}", "after": "public virtual string getPattern(){return pattern;}" }, { "index": 2195, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append( \"[BottomMargin]\\n\" );buffer.append( \" .margin = \" ).append( \" (\" ).append( getMargin() ).append( \" )\\n\" );buffer.append( \"[/BottomMargin]\\n\" );return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[BottomMargin]\\n\");buffer.Append(\" .margin = \").Append(\" (\").Append(Margin).Append(\" )\\n\");buffer.Append(\"[/BottomMargin]\\n\");return buffer.ToString();}" }, { "index": 2196, "before": "public final void getText(CharTermAttribute t) {t.copyBuffer(zzBuffer, zzStartRead, zzMarkedPos-zzStartRead);}", "after": "public void GetText(ICharTermAttribute t){t.CopyBuffer(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);}" }, { "index": 2197, "before": "public LinkedList() {voidLink = new Link(null, null, null);voidLink.previous = voidLink;voidLink.next = voidLink;}", "after": "public LinkedList(){voidLink = new java.util.LinkedList.Link(default(E), null, null);voidLink.previous = voidLink;voidLink.next = voidLink;}" }, { "index": 2198, "before": "public SnapshotCopyGrant createSnapshotCopyGrant(CreateSnapshotCopyGrantRequest request) {request = beforeClientExecution(request);return executeCreateSnapshotCopyGrant(request);}", "after": "public virtual CreateSnapshotCopyGrantResponse CreateSnapshotCopyGrant(CreateSnapshotCopyGrantRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSnapshotCopyGrantRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSnapshotCopyGrantResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2199, "before": "public static int getSingleViableAlt(Collection altsets) {BitSet viableAlts = new BitSet();for (BitSet alts : altsets) {int minAlt = alts.nextSetBit(0);viableAlts.set(minAlt);if ( viableAlts.cardinality()>1 ) { return ATN.INVALID_ALT_NUMBER;}}return viableAlts.nextSetBit(0);}", "after": "public static int GetSingleViableAlt(IEnumerable altsets){BitSet viableAlts = new BitSet();foreach (BitSet alts in altsets){int minAlt = alts.NextSetBit(0);viableAlts.Set(minAlt);if (viableAlts.Cardinality() > 1){return ATN.INVALID_ALT_NUMBER;}}return viableAlts.NextSetBit(0);}" }, { "index": 2200, "before": "public Builder() {this.similarity = new BM25Similarity();}", "after": "public Builder(){InitializeInstanceFields();}" }, { "index": 2201, "before": "public List getRevertedRefs() {return revertedRefs;}", "after": "public virtual IList GetRevertedRefs(){return revertedRefs;}" }, { "index": 2202, "before": "public DetachPolicyResult detachPolicy(DetachPolicyRequest request) {request = beforeClientExecution(request);return executeDetachPolicy(request);}", "after": "public virtual DetachPolicyResponse DetachPolicy(DetachPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2203, "before": "public final void writeUTF(String str) throws IOException {write(ModifiedUtf8.encode(str));}", "after": "public virtual void writeUTF(string str){throw new System.NotImplementedException();}" }, { "index": 2204, "before": "public DeleteBusinessReportScheduleResult deleteBusinessReportSchedule(DeleteBusinessReportScheduleRequest request) {request = beforeClientExecution(request);return executeDeleteBusinessReportSchedule(request);}", "after": "public virtual DeleteBusinessReportScheduleResponse DeleteBusinessReportSchedule(DeleteBusinessReportScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteBusinessReportScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteBusinessReportScheduleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2205, "before": "public JapanesePartOfSpeechStopFilterFactory(Map args) {super(args);stopTagFiles = get(args, \"tags\");if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public JapanesePartOfSpeechStopFilterFactory(IDictionary args): base(args){stopTagFiles = Get(args, \"tags\");enablePositionIncrements = GetBoolean(args, \"enablePositionIncrements\", true);if (args.Count > 0){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 2206, "before": "public SetVaultNotificationsResult setVaultNotifications(SetVaultNotificationsRequest request) {request = beforeClientExecution(request);return executeSetVaultNotifications(request);}", "after": "public virtual SetVaultNotificationsResponse SetVaultNotifications(SetVaultNotificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetVaultNotificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = SetVaultNotificationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2207, "before": "public void writeBytes(byte[] b, int offset, int length) {assert pos + length <= limit;System.arraycopy(b, offset, bytes, pos, length);pos += length;}", "after": "public override void WriteBytes(byte[] b, int offset, int length){Debug.Assert(pos + length <= limit);System.Buffer.BlockCopy(b, offset, bytes, pos, length);pos += length;}" }, { "index": 2208, "before": "public UpdateLedgerResult updateLedger(UpdateLedgerRequest request) {request = beforeClientExecution(request);return executeUpdateLedger(request);}", "after": "public virtual UpdateLedgerResponse UpdateLedger(UpdateLedgerRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateLedgerRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateLedgerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2209, "before": "public BatchDetectDominantLanguageResult batchDetectDominantLanguage(BatchDetectDominantLanguageRequest request) {request = beforeClientExecution(request);return executeBatchDetectDominantLanguage(request);}", "after": "public virtual BatchDetectDominantLanguageResponse BatchDetectDominantLanguage(BatchDetectDominantLanguageRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDetectDominantLanguageRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDetectDominantLanguageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2210, "before": "public void pollForUpdates() {assert isMainThread();doUpdates();}", "after": "public virtual void PollForUpdates(){DoUpdates();}" }, { "index": 2211, "before": "public int getAltNumber() { return ATN.INVALID_ALT_NUMBER; }", "after": "public virtual int getAltNumber() { return Atn.ATN.INVALID_ALT_NUMBER; }" }, { "index": 2212, "before": "public String toString() {StringBuilder sb = new StringBuilder(64);sb.append(getClass().getName()).append(\" [\");sb.append(\"]\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(\" [\");sb.Append(FormatAsString());sb.Append(\"]\");return sb.ToString();}" }, { "index": 2213, "before": "public int getTimeout() {return timeout;}", "after": "public virtual int GetTimeout(){return timeout;}" }, { "index": 2214, "before": "public boolean canReuse(IndexInput in) {return in == inStart;}", "after": "public virtual bool CanReuse(IndexInput @in){return @in == _inStart;}" }, { "index": 2215, "before": "public DescribeMetricFiltersRequest(String logGroupName) {setLogGroupName(logGroupName);}", "after": "public DescribeMetricFiltersRequest(string logGroupName){_logGroupName = logGroupName;}" }, { "index": 2216, "before": "public final void write(char[] b) {write(b,0,b.length);}", "after": "public virtual void Write(char b){if (m_len >= m_buf.Length){Resize(m_len + 1);}UnsafeWrite(b);}" }, { "index": 2217, "before": "public void trimToSize() {if (count < value.length) {char[] newValue = new char[count];System.arraycopy(value, 0, newValue, 0, count);value = newValue;shared = false;}}", "after": "public virtual void trimToSize(){if (count < value.Length){char[] newValue = new char[count];System.Array.Copy(value, 0, newValue, 0, count);value = newValue;shared = false;}}" }, { "index": 2218, "before": "public ListTransformJobsResult listTransformJobs(ListTransformJobsRequest request) {request = beforeClientExecution(request);return executeListTransformJobs(request);}", "after": "public virtual ListTransformJobsResponse ListTransformJobs(ListTransformJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTransformJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTransformJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2219, "before": "public EvaluationName getName(NamePtg namePtg) {int ix = namePtg.getIndex();return new Name(_iBook.getNameRecord(ix), ix);}", "after": "public IEvaluationName GetName(NamePtg namePtg){int ix = namePtg.Index;return new Name(_iBook.GetNameRecord(ix), ix);}" }, { "index": 2220, "before": "public StashCreateCommand setIndexMessage(String message) {indexMessage = message;return this;}", "after": "public virtual NGit.Api.StashCreateCommand SetIndexMessage(string message){indexMessage = message;return this;}" }, { "index": 2221, "before": "public HSSFPalette getCustomPalette(){return new HSSFPalette(workbook.getCustomPalette());}", "after": "public HSSFPalette GetCustomPalette(){return new HSSFPalette(workbook.CustomPalette);}" }, { "index": 2222, "before": "public DeregisterTaskDefinitionResult deregisterTaskDefinition(DeregisterTaskDefinitionRequest request) {request = beforeClientExecution(request);return executeDeregisterTaskDefinition(request);}", "after": "public virtual DeregisterTaskDefinitionResponse DeregisterTaskDefinition(DeregisterTaskDefinitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterTaskDefinitionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterTaskDefinitionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2223, "before": "public String pattern() {return pattern;}", "after": "public string pattern(){return _pattern;}" }, { "index": 2224, "before": "public void setThreads(int threads) {this.threads = threads;}", "after": "public virtual void SetThreads(int threads){this.threads = threads;}" }, { "index": 2225, "before": "public void execute(ReceivePack rp) {try {String expTarget = getOldSymref();boolean detach = getNewSymref() != null|| (type == Type.DELETE && expTarget != null);RefUpdate ru = rp.getRepository().updateRef(getRefName(), detach);if (expTarget != null) {if (!ru.getRef().isSymbolic() || !ru.getRef().getTarget().getName().equals(expTarget)) {setResult(Result.LOCK_FAILURE);return;}}ru.setRefLogIdent(rp.getRefLogIdent());ru.setRefLogMessage(refLogMessage, refLogIncludeResult);switch (getType()) {case DELETE:if (!ObjectId.zeroId().equals(getOldId())) {ru.setExpectedOldObjectId(getOldId());}ru.setForceUpdate(true);setResult(ru.delete(rp.getRevWalk()));break;case CREATE:case UPDATE:case UPDATE_NONFASTFORWARD:ru.setForceUpdate(rp.isAllowNonFastForwards());ru.setExpectedOldObjectId(getOldId());ru.setRefLogMessage(\"push\", true); if (getNewSymref() != null) {setResult(ru.link(getNewSymref()));} else {ru.setNewObjectId(getNewId());setResult(ru.update(rp.getRevWalk()));}break;}} catch (IOException err) {reject(err);}}", "after": "public virtual void Execute(BaseReceivePack rp){try{RefUpdate ru = rp.GetRepository().UpdateRef(GetRefName());ru.SetRefLogIdent(rp.GetRefLogIdent());switch (GetType()){case ReceiveCommand.Type.DELETE:{if (!ObjectId.ZeroId.Equals(GetOldId())){ru.SetExpectedOldObjectId(GetOldId());}ru.SetForceUpdate(true);SetResult(ru.Delete(rp.GetRevWalk()));break;}case ReceiveCommand.Type.CREATE:case ReceiveCommand.Type.UPDATE:case ReceiveCommand.Type.UPDATE_NONFASTFORWARD:{ru.SetForceUpdate(rp.IsAllowNonFastForwards());ru.SetExpectedOldObjectId(GetOldId());ru.SetNewObjectId(GetNewId());ru.SetRefLogMessage(\"push\", true);SetResult(ru.Update(rp.GetRevWalk()));break;}}}catch (IOException err){Reject(err);}}" }, { "index": 2226, "before": "public GetEbsDefaultKmsKeyIdResult getEbsDefaultKmsKeyId(GetEbsDefaultKmsKeyIdRequest request) {request = beforeClientExecution(request);return executeGetEbsDefaultKmsKeyId(request);}", "after": "public virtual GetEbsDefaultKmsKeyIdResponse GetEbsDefaultKmsKeyId(GetEbsDefaultKmsKeyIdRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEbsDefaultKmsKeyIdRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEbsDefaultKmsKeyIdResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2227, "before": "public String toString() {return \"MultiDocsAndPositionsEnum(\" + Arrays.toString(getSubs()) + \")\";}", "after": "public override string ToString(){return Slice.ToString() + \":\" + DocsAndPositionsEnum;}" }, { "index": 2228, "before": "public DeleteCacheParameterGroupRequest(String cacheParameterGroupName) {setCacheParameterGroupName(cacheParameterGroupName);}", "after": "public DeleteCacheParameterGroupRequest(string cacheParameterGroupName){_cacheParameterGroupName = cacheParameterGroupName;}" }, { "index": 2229, "before": "public NavigableMap headMap(K to, boolean inclusive) {Bound toBound = inclusive ? INCLUSIVE : EXCLUSIVE;return subMap(null, NO_BOUND, to, toBound);}", "after": "public java.util.NavigableMap headMap(K to, bool inclusive){java.util.TreeMap.Bound toBound = inclusive ? java.util.TreeMap.Bound.INCLUSIVE :java.util.TreeMap.Bound.EXCLUSIVE;return this.subMap(default(K), java.util.TreeMap.Bound.NO_BOUND, to, toBound);}" }, { "index": 2230, "before": "public OutputStream getOutputStream() {return rawOut;}", "after": "public virtual OutputStream GetOutputStream(){return rawOut;}" }, { "index": 2231, "before": "public Boolean booleanValue(String key) {String value = responseMap.get(key);if (null == value || 0 == value.length()) {return null;}return Boolean.valueOf(responseMap.get(key));}", "after": "public bool? BooleanValue(string key){if (null != DictionaryUtil.Get(ResponseDictionary, key)){return bool.Parse(DictionaryUtil.Get(ResponseDictionary, key));}return null;}" }, { "index": 2232, "before": "public ATN getATNWithBypassAlts() {String serializedAtn = getSerializedATN();if (serializedAtn == null) {throw new UnsupportedOperationException(\"The current parser does not support an ATN with bypass alternatives.\");}synchronized (bypassAltsAtnCache) {ATN result = bypassAltsAtnCache.get(serializedAtn);if (result == null) {ATNDeserializationOptions deserializationOptions = new ATNDeserializationOptions();deserializationOptions.setGenerateRuleBypassTransitions(true);result = new ATNDeserializer(deserializationOptions).deserialize(serializedAtn.toCharArray());bypassAltsAtnCache.put(serializedAtn, result);}return result;}}", "after": "public virtual ATN GetATNWithBypassAlts(){string serializedAtn = SerializedAtn;if (serializedAtn == null){throw new NotSupportedException(\"The current parser does not support an ATN with bypass alternatives.\");}lock (bypassAltsAtnCache){ATN result = bypassAltsAtnCache.Get(serializedAtn);if (result == null){ATNDeserializationOptions deserializationOptions = new ATNDeserializationOptions();deserializationOptions.GenerateRuleBypassTransitions = true;result = new ATNDeserializer(deserializationOptions).Deserialize(serializedAtn.ToCharArray());bypassAltsAtnCache.Put(serializedAtn, result);}return result;}}" }, { "index": 2233, "before": "public GetDownloadUrlRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"GetDownloadUrl\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetDownloadUrlRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"GetDownloadUrl\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 2234, "before": "public int getCRC() {return crc;}", "after": "public virtual int GetCRC(){return crc;}" }, { "index": 2235, "before": "public boolean addEscherRecord(EscherRecord element){return escherRecords.add( element );}", "after": "public bool AddEscherRecord(EscherRecord element){escherRecords.Add(element);return true;}" }, { "index": 2236, "before": "public CharBuffer put(String src, int start, int end) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.CharBuffer put(string src, int start, int end){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 2237, "before": "public ModifyWorkspaceStateResult modifyWorkspaceState(ModifyWorkspaceStateRequest request) {request = beforeClientExecution(request);return executeModifyWorkspaceState(request);}", "after": "public virtual ModifyWorkspaceStateResponse ModifyWorkspaceState(ModifyWorkspaceStateRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyWorkspaceStateRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyWorkspaceStateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2238, "before": "public ICUTransformFilter(TokenStream input, Transliterator transform) {super(input);this.transform = transform;if (transform.getFilter() == null && transform instanceof com.ibm.icu.text.RuleBasedTransliterator) {final UnicodeSet sourceSet = transform.getSourceSet();if (sourceSet != null && !sourceSet.isEmpty())transform.setFilter(sourceSet);}}", "after": "public ICUTransformFilter(TokenStream input, Transliterator transform): base(input){this.transform = transform;this.termAtt = AddAttribute();#pragma warning disable 612, 618if (transform.Filter == null && transform is RuleBasedTransliterator)#pragma warning restore 612, 618{UnicodeSet sourceSet = transform.GetSourceSet();if (sourceSet != null && sourceSet.Any())transform.Filter=sourceSet;}}" }, { "index": 2239, "before": "public StopGameSessionPlacementResult stopGameSessionPlacement(StopGameSessionPlacementRequest request) {request = beforeClientExecution(request);return executeStopGameSessionPlacement(request);}", "after": "public virtual StopGameSessionPlacementResponse StopGameSessionPlacement(StopGameSessionPlacementRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopGameSessionPlacementRequestMarshaller.Instance;options.ResponseUnmarshaller = StopGameSessionPlacementResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2240, "before": "public ObjectId getDeltaBase() {return null;}", "after": "public virtual ObjectId GetDeltaBase(){return null;}" }, { "index": 2241, "before": "public RefModeRecord clone() {return copy();}", "after": "public override Object Clone(){RefModeRecord rec = new RefModeRecord();rec.field_1_mode = field_1_mode;return rec;}" }, { "index": 2242, "before": "public boolean addURI(URIish toAdd) {if (uris.contains(toAdd))return false;return uris.add(toAdd);}", "after": "public virtual bool AddURI(URIish toAdd){if (uris.Contains(toAdd)){return false;}return uris.AddItem(toAdd);}" }, { "index": 2243, "before": "public FileMode getOldMode() {return getOldMode(0);}", "after": "public override FileMode GetOldMode(){return GetOldMode(0);}" }, { "index": 2244, "before": "public Collection getRemoteUpdates() {return Collections.unmodifiableCollection(remoteUpdates.values());}", "after": "public virtual ICollection GetRemoteUpdates(){return Sharpen.Collections.UnmodifiableCollection(remoteUpdates.Values);}" }, { "index": 2245, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName());sb.append(\" [\");String ws = String.valueOf(_wholePart);sb.append(ws.charAt(0));sb.append('.');sb.append(ws.substring(1));sb.append(' ');sb.append(getFractionalDigits());sb.append(\"E\");sb.append(getDecimalExponent());sb.append(\"]\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(this.GetType().Name);sb.Append(\" [\");String ws = _wholePart.ToString(CultureInfo.InvariantCulture);sb.Append(ws[0]);sb.Append('.');sb.Append(ws.Substring(1));sb.Append(' ');sb.Append(GetFractionalDigits());sb.Append(\"E\");sb.Append(GetDecimalExponent());sb.Append(\"]\");return sb.ToString();}" }, { "index": 2246, "before": "public CreateCollectionResult createCollection(CreateCollectionRequest request) {request = beforeClientExecution(request);return executeCreateCollection(request);}", "after": "public virtual CreateCollectionResponse CreateCollection(CreateCollectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCollectionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCollectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2247, "before": "public ChangeMessageVisibilityBatchResult changeMessageVisibilityBatch(ChangeMessageVisibilityBatchRequest request) {request = beforeClientExecution(request);return executeChangeMessageVisibilityBatch(request);}", "after": "public virtual ChangeMessageVisibilityBatchResponse ChangeMessageVisibilityBatch(ChangeMessageVisibilityBatchRequest request){var options = new InvokeOptions();options.RequestMarshaller = ChangeMessageVisibilityBatchRequestMarshaller.Instance;options.ResponseUnmarshaller = ChangeMessageVisibilityBatchResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2248, "before": "public static int[] copyOfRange(int[] original, int start, int end) {if (start > end) {throw new IllegalArgumentException();}int originalLength = original.length;if (start < 0 || start > originalLength) {throw new ArrayIndexOutOfBoundsException();}int resultLength = end - start;int copyLength = Math.min(resultLength, originalLength - start);int[] result = new int[resultLength];System.arraycopy(original, start, result, 0, copyLength);return result;}", "after": "public static int[] copyOfRange(int[] original, int start, int end){if (start > end){throw new System.ArgumentException();}int originalLength = original.Length;if (start < 0 || start > originalLength){throw new System.IndexOutOfRangeException();}int resultLength = end - start;int copyLength = System.Math.Min(resultLength, originalLength - start);int[] result = new int[resultLength];System.Array.Copy(original, start, result, 0, copyLength);return result;}" }, { "index": 2249, "before": "public static void setInstance(SshSessionFactory newFactory) {if (newFactory != null) {INSTANCE = newFactory;} else {INSTANCE = loadSshSessionFactory();}}", "after": "public static void SetInstance(SshSessionFactory newFactory){if (newFactory != null){INSTANCE = newFactory;}else{INSTANCE = new DefaultSshSessionFactory();}}" }, { "index": 2250, "before": "public GetRepoSyncTaskListRequest() {super(\"cr\", \"2016-06-07\", \"GetRepoSyncTaskList\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/syncTasks\");setMethod(MethodType.GET);}", "after": "public GetRepoSyncTaskListRequest(): base(\"cr\", \"2016-06-07\", \"GetRepoSyncTaskList\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/syncTasks\";Method = MethodType.GET;}" }, { "index": 2251, "before": "public RunInstancesRequest(String imageId, Integer minCount, Integer maxCount) {setImageId(imageId);setMinCount(minCount);setMaxCount(maxCount);}", "after": "public RunInstancesRequest(string imageId, int minCount, int maxCount){_imageId = imageId;_minCount = minCount;_maxCount = maxCount;}" }, { "index": 2252, "before": "public DeleteCodeRepositoryResult deleteCodeRepository(DeleteCodeRepositoryRequest request) {request = beforeClientExecution(request);return executeDeleteCodeRepository(request);}", "after": "public virtual DeleteCodeRepositoryResponse DeleteCodeRepository(DeleteCodeRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCodeRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCodeRepositoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2253, "before": "public void fill(int fromIndex, int toIndex, long val) {assert fromIndex >= 0;assert fromIndex <= toIndex;assert PackedInts.unsignedBitsRequired(val) <= bitsPerValue;final int valuesPerBlock = 64 / bitsPerValue;if (toIndex - fromIndex <= valuesPerBlock << 1) {super.fill(fromIndex, toIndex, val);return;}int fromOffsetInBlock = fromIndex % valuesPerBlock;if (fromOffsetInBlock != 0) {for (int i = fromOffsetInBlock; i < valuesPerBlock; ++i) {set(fromIndex++, val);}assert fromIndex % valuesPerBlock == 0;}final int fromBlock = fromIndex / valuesPerBlock;final int toBlock = toIndex / valuesPerBlock;assert fromBlock * valuesPerBlock == fromIndex;long blockValue = 0L;for (int i = 0; i < valuesPerBlock; ++i) {blockValue = blockValue | (val << (i * bitsPerValue));}Arrays.fill(blocks, fromBlock, toBlock, blockValue);for (int i = valuesPerBlock * toBlock; i < toIndex; ++i) {set(i, val);}}", "after": "public override void Fill(int fromIndex, int toIndex, long val){Debug.Assert(fromIndex >= 0);Debug.Assert(fromIndex <= toIndex);Debug.Assert(PackedInt32s.BitsRequired(val) <= m_bitsPerValue);int valuesPerBlock = 64 / m_bitsPerValue;if (toIndex - fromIndex <= valuesPerBlock << 1){base.Fill(fromIndex, toIndex, val);return;}int fromOffsetInBlock = fromIndex % valuesPerBlock;if (fromOffsetInBlock != 0){for (int i = fromOffsetInBlock; i < valuesPerBlock; ++i){Set(fromIndex++, val);}Debug.Assert(fromIndex % valuesPerBlock == 0);}int fromBlock = fromIndex / valuesPerBlock;int toBlock = toIndex / valuesPerBlock;Debug.Assert(fromBlock * valuesPerBlock == fromIndex);long blockValue = 0L;for (int i = 0; i < valuesPerBlock; ++i){blockValue = blockValue | (val << (i * m_bitsPerValue));}Arrays.Fill(blocks, fromBlock, toBlock, blockValue);for (int i = valuesPerBlock * toBlock; i < toIndex; ++i){Set(i, val);}}" }, { "index": 2254, "before": "public void close() {str = null;}", "after": "public override void close(){str = null;}" }, { "index": 2255, "before": "public ListDomainNamesResult listDomainNames() {return listDomainNames(new ListDomainNamesRequest());}", "after": "public virtual ListDomainNamesResponse ListDomainNames(){return ListDomainNames(new ListDomainNamesRequest());}" }, { "index": 2256, "before": "public AbortMultipartUploadRequest(String accountId, String vaultName, String uploadId) {setAccountId(accountId);setVaultName(vaultName);setUploadId(uploadId);}", "after": "public AbortMultipartUploadRequest(string accountId, string vaultName, string uploadId){_accountId = accountId;_vaultName = vaultName;_uploadId = uploadId;}" }, { "index": 2257, "before": "public RevCommit getNewHead() {return newHead;}", "after": "public virtual RevCommit GetNewHead(){return newHead;}" }, { "index": 2258, "before": "public long get(int index) {final int o = index >>> 5;final int b = index & 31;final int shift = b << 1;return (blocks[o] >>> shift) & 3L;}", "after": "public override long Get(int index){int o = (int)((uint)index >> 5);int b = index & 31;int shift = b << 1;return ((long)((ulong)blocks[o] >> shift)) & 3L;}" }, { "index": 2259, "before": "public UpdateContainerInstancesStateResult updateContainerInstancesState(UpdateContainerInstancesStateRequest request) {request = beforeClientExecution(request);return executeUpdateContainerInstancesState(request);}", "after": "public virtual UpdateContainerInstancesStateResponse UpdateContainerInstancesState(UpdateContainerInstancesStateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateContainerInstancesStateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateContainerInstancesStateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2260, "before": "public GetExternalModelsResult getExternalModels(GetExternalModelsRequest request) {request = beforeClientExecution(request);return executeGetExternalModels(request);}", "after": "public virtual GetExternalModelsResponse GetExternalModels(GetExternalModelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetExternalModelsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetExternalModelsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2261, "before": "public GetFaceDetectionResult getFaceDetection(GetFaceDetectionRequest request) {request = beforeClientExecution(request);return executeGetFaceDetection(request);}", "after": "public virtual GetFaceDetectionResponse GetFaceDetection(GetFaceDetectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFaceDetectionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFaceDetectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2262, "before": "public void delete() {synchronized (SnapshotDeletionPolicy.this) {if (!refCounts.containsKey(cp.getGeneration())) {cp.delete();}}}", "after": "public override void Delete(){lock (outerInstance){if (!outerInstance.m_refCounts.ContainsKey(m_cp.Generation)){m_cp.Delete();}}}" }, { "index": 2263, "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 = 56; shift >= 0; shift -= 8) {values[valuesOffset++] = (int) ((block >>> shift) & 255);}}}", "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 = 56; shift >= 0; shift -= 8){values[valuesOffset++] = (int)(((long)((ulong)block >> shift)) & 255);}}}" }, { "index": 2264, "before": "public Iterator descendingIterator() {return new ReverseLinkIterator(this);}", "after": "public virtual java.util.Iterator descendingIterator(){return new java.util.LinkedList.ReverseLinkIterator(this, this);}" }, { "index": 2265, "before": "public CredentialsBackupCompatibilityAdaptor(AlibabaCloudCredentialsProvider provider) {this.provider = provider;}", "after": "public CredentialsBackupCompatibilityAdaptor(AlibabaCloudCredentialsProvider provider){this.provider = provider;}" }, { "index": 2266, "before": "public DescribeDBClusterSnapshotsResult describeDBClusterSnapshots(DescribeDBClusterSnapshotsRequest request) {request = beforeClientExecution(request);return executeDescribeDBClusterSnapshots(request);}", "after": "public virtual DescribeDBClusterSnapshotsResponse DescribeDBClusterSnapshots(DescribeDBClusterSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBClusterSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBClusterSnapshotsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2267, "before": "public FontRecord getFontRecordAt(int idx) {int index = idx;if (index > 4) {index -= 1; }if (index > (numfonts - 1)) {throw new ArrayIndexOutOfBoundsException(\"There are only \" + numfonts + \" font records, but you asked for index \" + idx);}return ( FontRecord ) records.get((records.getFontpos() - (numfonts - 1)) + index);}", "after": "public FontRecord GetFontRecordAt(int idx){int index = idx;if (index > 4){index -= 1; }if (index > (numfonts - 1)){throw new IndexOutOfRangeException(\"There are only \" + numfonts+ \" font records, you asked for \" + idx);}FontRecord retval =(FontRecord)records[(records.Fontpos - (numfonts - 1) + index)];return retval;}" }, { "index": 2268, "before": "public final ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {if (args.length != 2) {return ErrorEval.VALUE_INVALID;}return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1]);}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){if (args.Length != 2){return ErrorEval.VALUE_INVALID;}return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1]);}" }, { "index": 2269, "before": "public DescribeCustomerGatewaysResult describeCustomerGateways() {return describeCustomerGateways(new DescribeCustomerGatewaysRequest());}", "after": "public virtual DescribeCustomerGatewaysResponse DescribeCustomerGateways(){return DescribeCustomerGateways(new DescribeCustomerGatewaysRequest());}" }, { "index": 2270, "before": "public CreateSubnetRequest(String vpcId, String cidrBlock) {setVpcId(vpcId);setCidrBlock(cidrBlock);}", "after": "public CreateSubnetRequest(string vpcId, string cidrBlock){_vpcId = vpcId;_cidrBlock = cidrBlock;}" }, { "index": 2271, "before": "public StempelStemmer(Trie stemmer) {this.stemmer = stemmer;}", "after": "public StempelStemmer(Trie stemmer){this.stemmer = stemmer;}" }, { "index": 2272, "before": "public NLPNERTaggerOp(TokenNameFinderModel model) {this.nameFinder = new NameFinderME(model);}", "after": "public NLPNERTaggerOp(TokenNameFinderModel model){this.nameFinder = new NameFinderME(model);}" }, { "index": 2273, "before": "public TreeFilter clone() {return new FollowFilter(path.clone(), cfg);}", "after": "public override TreeFilter Clone(){return new NGit.Revwalk.FollowFilter(((PathFilter)path.Clone()));}" }, { "index": 2274, "before": "public QueryAddUserInfoRequest() {super(\"LinkFace\", \"2018-07-20\", \"QueryAddUserInfo\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public QueryAddUserInfoRequest(): base(\"LinkFace\", \"2018-07-20\", \"QueryAddUserInfo\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 2275, "before": "public boolean include(TreeWalk walker) {DirCacheIterator i = walker.getTree(treeIdx, DirCacheIterator.class);if (i == null)return true;DirCacheEntry e = i.getDirCacheEntry();return e == null || !e.isSkipWorkTree();}", "after": "public override bool Include(TreeWalk walker){DirCacheIterator i = walker.GetTree(treeIdx);if (i == null){return true;}DirCacheEntry e = i.GetDirCacheEntry();return e == null || !e.IsSkipWorkTree;}" }, { "index": 2276, "before": "public final CompareResult compareTo(ValueEval other) {if (other == null) {throw new RuntimeException(\"compare to value cannot be null\");}if (_targetClass != other.getClass()) {return CompareResult.TYPE_MISMATCH;}return compareSameType(other);}", "after": "public CompareResult CompareTo(ValueEval other){if (other == null){throw new Exception(\"Compare to value cannot be null\");}if (_targetType != other.GetType()){return CompareResult.TypeMismatch;}return CompareSameType(other);}" }, { "index": 2277, "before": "public SegmentReadState(SegmentReadState other,String newSegmentSuffix) {this.directory = other.directory;this.segmentInfo = other.segmentInfo;this.fieldInfos = other.fieldInfos;this.context = other.context;this.segmentSuffix = newSegmentSuffix;}", "after": "public SegmentReadState(SegmentReadState other, string newSegmentSuffix){this.Directory = other.Directory;this.SegmentInfo = other.SegmentInfo;this.FieldInfos = other.FieldInfos;this.Context = other.Context;this.TermsIndexDivisor = other.TermsIndexDivisor;this.SegmentSuffix = newSegmentSuffix;}" }, { "index": 2278, "before": "public void println(Object obj) {println(String.valueOf(obj));}", "after": "public virtual void println(object obj){println(Sharpen.StringHelper.GetValueOf(obj));}" }, { "index": 2279, "before": "public DeleteModelResult deleteModel(DeleteModelRequest request) {request = beforeClientExecution(request);return executeDeleteModel(request);}", "after": "public virtual DeleteModelResponse DeleteModel(DeleteModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteModelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteModelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2280, "before": "public void setFiles(Collection files) {setFiles = new HashSet<>();addFiles(files);}", "after": "public void SetFiles(ISet files){CheckFileNames(files);setFiles = files;}" }, { "index": 2281, "before": "public void release() {lItr.release();}", "after": "public virtual void Release(){reader.Release();}" }, { "index": 2282, "before": "public FloatBuffer asReadOnlyBuffer() {return duplicate();}", "after": "public override java.nio.FloatBuffer asReadOnlyBuffer(){return duplicate();}" }, { "index": 2283, "before": "public int get(int key, int valueIfKeyNotFound) {int i = binarySearch(mKeys, 0, mSize, key);if (i < 0) {return valueIfKeyNotFound;} else {return mValues[i];}}", "after": "public virtual int get(int key, int valueIfKeyNotFound){int i = binarySearch(mKeys, 0, mSize, key);if (i < 0){return valueIfKeyNotFound;}else{return mValues[i];}}" }, { "index": 2284, "before": "public CharBuffer get(char[] dst) {return get(dst, 0, dst.length);}", "after": "public virtual java.nio.CharBuffer get(char[] dst){return get(dst, 0, dst.Length);}" }, { "index": 2285, "before": "public static String toHex(String value) {return (value == null || value.length() == 0)? \"[]\": toHex(value.getBytes(LocaleUtil.CHARSET_1252));}", "after": "public static string ToHex(byte value){return ToHex((long)value, 2);}" }, { "index": 2286, "before": "public String resolveNameXText(NameXPtg n) {return _iBook.resolveNameXText(n.getSheetRefIndex(), n.getNameIndex());}", "after": "public String ResolveNameXText(NameXPtg n){return _iBook.ResolveNameXText(n.SheetRefIndex, n.NameIndex);}" }, { "index": 2287, "before": "public String toString() {StringBuilder sb = new StringBuilder(64);sb.append(getClass().getName());sb.append(\" [\").append(_representation).append(\"]\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(this.GetType().Name);sb.Append(\" [\").Append(_representation).Append(\"]\");return sb.ToString();}" }, { "index": 2288, "before": "public PutEmailIdentityMailFromAttributesResult putEmailIdentityMailFromAttributes(PutEmailIdentityMailFromAttributesRequest request) {request = beforeClientExecution(request);return executePutEmailIdentityMailFromAttributes(request);}", "after": "public virtual PutEmailIdentityMailFromAttributesResponse PutEmailIdentityMailFromAttributes(PutEmailIdentityMailFromAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutEmailIdentityMailFromAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutEmailIdentityMailFromAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2289, "before": "public RemoveAlbumPhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"RemoveAlbumPhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public RemoveAlbumPhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"RemoveAlbumPhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 2290, "before": "public DeleteAttributesResult deleteAttributes(DeleteAttributesRequest request) {request = beforeClientExecution(request);return executeDeleteAttributes(request);}", "after": "public virtual DeleteAttributesResponse DeleteAttributes(DeleteAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2291, "before": "public void disableRefLog() {destination.setRefLogMessage(\"\", false); }", "after": "public virtual void DisableRefLog(){destination.SetRefLogMessage(string.Empty, false);}" }, { "index": 2292, "before": "public TokenStream create(TokenStream input) {return new GermanLightStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new GermanLightStemFilter(input);}" }, { "index": 2293, "before": "public E removeLast() {return removeLastImpl();}", "after": "public virtual E removeLast(){return removeLastImpl();}" }, { "index": 2294, "before": "public UpdateDomainMetadataResult updateDomainMetadata(UpdateDomainMetadataRequest request) {request = beforeClientExecution(request);return executeUpdateDomainMetadata(request);}", "after": "public virtual UpdateDomainMetadataResponse UpdateDomainMetadata(UpdateDomainMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDomainMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDomainMetadataResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2295, "before": "public short findNewDrawingGroupId() {return dgg.findNewDrawingGroupId();}", "after": "public short FindNewDrawingGroupId(){short dgId = 1;while (DrawingGroupExists(dgId))dgId++;return dgId;}" }, { "index": 2296, "before": "public String toString() {return \"FacetEntry{\" +\"value=\" + value.utf8ToString() +\", count=\" + count +'}';}", "after": "public override string ToString(){return \"FacetEntry{\" +\"value=\" + value.Utf8ToString() +\", count=\" + count +'}';}" }, { "index": 2297, "before": "public SharedFormulaRecord linkSharedFormulaRecord(CellReference firstCell, FormulaRecordAggregate agg) {SharedFormulaGroup result = findFormulaGroupForCell(firstCell);if(null == result) {throw new RuntimeException(\"Failed to find a matching shared formula record\");}result.add(agg);return result.getSFR();}", "after": "public SharedFormulaRecord LinkSharedFormulaRecord(CellReference firstCell, FormulaRecordAggregate agg){SharedFormulaGroup result = FindFormulaGroupForCell(firstCell);if (null == result){throw new RuntimeException(\"Failed to find a matching shared formula record\");}result.Add(agg);return result.SFR;}" }, { "index": 2298, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(field_1_label_index);out.writeShort(field_2_zero);}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(field_1_label_index);out1.WriteShort(field_2_zero);}" }, { "index": 2299, "before": "public Appendable append(char c) {write(c);return this;}", "after": "public virtual OpenStringBuilder Append(string csq){return Append(csq, 0, csq.Length);}" }, { "index": 2300, "before": "public static BigInteger factorial(int n) {if (n == 0 || n < 0) {return BigInteger.ONE;}if (cache.containsKey(n)) {return cache.get(n);}BigInteger result = BigInteger.valueOf(n).multiply(factorial(n - 2));cache.put(n, result);return result;}", "after": "public static BigInteger factorial(int n){if (n == 0 || n < 0){return BigInteger.One;}if (cache.ContainsKey(n)){return cache[(n)];}BigInteger result = BigInteger.ValueOf(n).Multiply(factorial(n - 2));cache.Add(n, result);return result;}" }, { "index": 2301, "before": "public DelimitedPayloadTokenFilter create(TokenStream input) {return new DelimitedPayloadTokenFilter(input, delimiter, encoder);}", "after": "public override TokenStream Create(TokenStream input){return new DelimitedPayloadTokenFilter(input, delimiter, encoder);}" }, { "index": 2302, "before": "public String toString() {return \"NONE\"; }", "after": "public override string ToString(){return \"NONE\";}" }, { "index": 2303, "before": "public GetAlarmsResult getAlarms(GetAlarmsRequest request) {request = beforeClientExecution(request);return executeGetAlarms(request);}", "after": "public virtual GetAlarmsResponse GetAlarms(GetAlarmsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAlarmsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAlarmsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2304, "before": "public DeleteDetectorVersionResult deleteDetectorVersion(DeleteDetectorVersionRequest request) {request = beforeClientExecution(request);return executeDeleteDetectorVersion(request);}", "after": "public virtual DeleteDetectorVersionResponse DeleteDetectorVersion(DeleteDetectorVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDetectorVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDetectorVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2305, "before": "public ExpandedDouble createExpandedDouble() {return new ExpandedDouble(_significand, _binaryExponent);}", "after": "public ExpandedDouble CreateExpandedDouble(){return new ExpandedDouble(_significand, _binaryExponent);}" }, { "index": 2306, "before": "public CharBuffer duplicate() {ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());CharToByteBufferAdapter buf = new CharToByteBufferAdapter(bb);buf.limit = limit;buf.position = position;buf.mark = mark;return buf;}", "after": "public override java.nio.CharBuffer duplicate(){java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());java.nio.CharToByteBufferAdapter buf = new java.nio.CharToByteBufferAdapter(bb);buf._limit = _limit;buf._position = _position;buf._mark = _mark;return buf;}" }, { "index": 2307, "before": "public int size() {return Hashtable.this.size();}", "after": "public override int size(){return this._enclosing._size;}" }, { "index": 2308, "before": "public ResetInstanceAttributeRequest(String instanceId, InstanceAttributeName attribute) {setInstanceId(instanceId);setAttribute(attribute.toString());}", "after": "public ResetInstanceAttributeRequest(string instanceId, InstanceAttributeName attribute){_instanceId = instanceId;_attribute = attribute;}" }, { "index": 2309, "before": "public final List getFooterLines() {final byte[] raw = buffer;int ptr = raw.length - 1;while (raw[ptr] == '\\n') ptr--;final int msgB = RawParseUtils.commitMessage(raw, 0);final ArrayList r = new ArrayList<>(4);final Charset enc = guessEncoding();for (;;) {ptr = RawParseUtils.prevLF(raw, ptr);if (ptr <= msgB)break; final int keyStart = ptr + 2;if (raw[keyStart] == '\\n')break; final int keyEnd = RawParseUtils.endOfFooterLineKey(raw, keyStart);if (keyEnd < 0)continue; int valStart = keyEnd + 1;while (valStart < raw.length && raw[valStart] == ' ')valStart++;int valEnd = RawParseUtils.nextLF(raw, valStart);if (raw[valEnd - 1] == '\\n')valEnd--;r.add(new FooterLine(raw, enc, keyStart, keyEnd, valStart, valEnd));}Collections.reverse(r);return r;}", "after": "public IList GetFooterLines(){byte[] raw = buffer;int ptr = raw.Length - 1;while (raw[ptr] == '\\n'){ptr--;}int msgB = RawParseUtils.CommitMessage(raw, 0);AList r = new AList(4);System.Text.Encoding enc = Encoding;for (; ; ){ptr = RawParseUtils.PrevLF(raw, ptr);if (ptr <= msgB){break;}int keyStart = ptr + 2;if (raw[keyStart] == '\\n'){break;}int keyEnd = RawParseUtils.EndOfFooterLineKey(raw, keyStart);if (keyEnd < 0){continue;}int valStart = keyEnd + 1;while (valStart < raw.Length && raw[valStart] == ' '){valStart++;}int valEnd = RawParseUtils.NextLF(raw, valStart);if (raw[valEnd - 1] == '\\n'){valEnd--;}r.AddItem(new FooterLine(raw, enc, keyStart, keyEnd, valStart, valEnd));}Sharpen.Collections.Reverse(r);return r;}" }, { "index": 2310, "before": "public SupBookRecord getExternalBookRecord() {return _externalBookRecord;}", "after": "public SupBookRecord GetExternalBookRecord(){return _externalBookRecord;}" }, { "index": 2311, "before": "public Builder() {this(false);}", "after": "public Builder(){InitializeInstanceFields();}" }, { "index": 2312, "before": "public ApplySecurityGroupsToLoadBalancerResult applySecurityGroupsToLoadBalancer(ApplySecurityGroupsToLoadBalancerRequest request) {request = beforeClientExecution(request);return executeApplySecurityGroupsToLoadBalancer(request);}", "after": "public virtual ApplySecurityGroupsToLoadBalancerResponse ApplySecurityGroupsToLoadBalancer(ApplySecurityGroupsToLoadBalancerRequest request){var options = new InvokeOptions();options.RequestMarshaller = ApplySecurityGroupsToLoadBalancerRequestMarshaller.Instance;options.ResponseUnmarshaller = ApplySecurityGroupsToLoadBalancerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2313, "before": "public DeleteDedicatedIpPoolResult deleteDedicatedIpPool(DeleteDedicatedIpPoolRequest request) {request = beforeClientExecution(request);return executeDeleteDedicatedIpPool(request);}", "after": "public virtual DeleteDedicatedIpPoolResponse DeleteDedicatedIpPool(DeleteDedicatedIpPoolRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDedicatedIpPoolRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDedicatedIpPoolResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2314, "before": "public DescribeStackInstanceResult describeStackInstance(DescribeStackInstanceRequest request) {request = beforeClientExecution(request);return executeDescribeStackInstance(request);}", "after": "public virtual DescribeStackInstanceResponse DescribeStackInstance(DescribeStackInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStackInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStackInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2315, "before": "public HSSFChildAnchor(EscherChildAnchorRecord escherChildAnchorRecord) {this._escherChildAnchor = escherChildAnchorRecord;}", "after": "public HSSFChildAnchor(EscherChildAnchorRecord escherChildAnchorRecord){this._escherChildAnchor = escherChildAnchorRecord;}" }, { "index": 2316, "before": "public SynonymQuery build() {Collections.sort(terms, Comparator.comparing(a -> a.term));return new SynonymQuery(terms.toArray(new TermAndBoost[0]), field);}", "after": "public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}" }, { "index": 2317, "before": "public void addCell(int rowIndex, int columnIndex) {if (rowIndex > _lastDefinedRow) return;if (_currentRowIndex == -1) {_currentRowIndex = rowIndex;_firstColumnIndex = columnIndex;_lastColumnIndex = columnIndex;} else {if (_currentRowIndex == rowIndex && _lastColumnIndex+1 == columnIndex) {_lastColumnIndex = columnIndex;} else {if (_currentRectangleGroup == null) {_currentRectangleGroup = new BlankCellRectangleGroup(_currentRowIndex, _firstColumnIndex, _lastColumnIndex);} else {if (!_currentRectangleGroup.acceptRow(_currentRowIndex, _firstColumnIndex, _lastColumnIndex)) {_rectangleGroups.add(_currentRectangleGroup);_currentRectangleGroup = new BlankCellRectangleGroup(_currentRowIndex, _firstColumnIndex, _lastColumnIndex);}}_currentRowIndex = rowIndex;_firstColumnIndex = columnIndex;_lastColumnIndex = columnIndex;}}}", "after": "public void AddCell(int rowIndex, int columnIndex){if (_currentRowIndex == -1){_currentRowIndex = rowIndex;_firstColumnIndex = columnIndex;_lastColumnIndex = columnIndex;}else{if (_currentRowIndex == rowIndex && _lastColumnIndex + 1 == columnIndex){_lastColumnIndex = columnIndex;}else{if (_currentRectangleGroup == null){_currentRectangleGroup = new BlankCellRectangleGroup(_currentRowIndex, _firstColumnIndex, _lastColumnIndex);}else{if (!_currentRectangleGroup.AcceptRow(_currentRowIndex, _firstColumnIndex, _lastColumnIndex)){_rectangleGroups.Add(_currentRectangleGroup);_currentRectangleGroup = new BlankCellRectangleGroup(_currentRowIndex, _firstColumnIndex, _lastColumnIndex);}}_currentRowIndex = rowIndex;_firstColumnIndex = columnIndex;_lastColumnIndex = columnIndex;}}}" }, { "index": 2318, "before": "public String toString() {return \"BLOCK: prefix=\" + brToString(prefix);}", "after": "public override string ToString(){return \"BLOCK: \" + Prefix.Utf8ToString();}" }, { "index": 2319, "before": "public void set(int index, long value) {final int o = index / 21;final int b = index % 21;final int shift = b * 3;blocks[o] = (blocks[o] & ~(7L << shift)) | (value << shift);}", "after": "public override void Set(int index, long value){int o = index / 21;int b = index % 21;int shift = b * 3;blocks[o] = (blocks[o] & ~(7L << shift)) | (value << shift);}" }, { "index": 2320, "before": "@Override public boolean contains(Object o) {if (!(o instanceof Entry)) {return false;}Entry e = (Entry) o;Object key = e.getKey();if (key == null) {return false;}V v = Impl.this.get(key);return v != null && strategy.equalValues(v, e.getValue());}", "after": "public override bool contains(object o){if (!(o is java.util.MapClass.Entry)){return false;}java.util.MapClass.Entry e = (java.util.MapClass.Entry)o;return this._enclosing.containsMapping(e.getKey(), e.getValue());}" }, { "index": 2321, "before": "public void clear() {if (value != null) {Arrays.fill(value, (char) 0);value = null;}}", "after": "public override void Clear(){if (value != null){Arrays.Fill(value, (char)0);value = null;}}" }, { "index": 2322, "before": "public DescribeDirectConnectGatewayAssociationsResult describeDirectConnectGatewayAssociations(DescribeDirectConnectGatewayAssociationsRequest request) {request = beforeClientExecution(request);return executeDescribeDirectConnectGatewayAssociations(request);}", "after": "public virtual DescribeDirectConnectGatewayAssociationsResponse DescribeDirectConnectGatewayAssociations(DescribeDirectConnectGatewayAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDirectConnectGatewayAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDirectConnectGatewayAssociationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2323, "before": "public GetRestApiResult getRestApi(GetRestApiRequest request) {request = beforeClientExecution(request);return executeGetRestApi(request);}", "after": "public virtual GetRestApiResponse GetRestApi(GetRestApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRestApiRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRestApiResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2324, "before": "public CreateLaunchTemplateVersionResult createLaunchTemplateVersion(CreateLaunchTemplateVersionRequest request) {request = beforeClientExecution(request);return executeCreateLaunchTemplateVersion(request);}", "after": "public virtual CreateLaunchTemplateVersionResponse CreateLaunchTemplateVersion(CreateLaunchTemplateVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLaunchTemplateVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLaunchTemplateVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2325, "before": "public SetLoadBalancerPoliciesOfListenerResult setLoadBalancerPoliciesOfListener(SetLoadBalancerPoliciesOfListenerRequest request) {request = beforeClientExecution(request);return executeSetLoadBalancerPoliciesOfListener(request);}", "after": "public virtual SetLoadBalancerPoliciesOfListenerResponse SetLoadBalancerPoliciesOfListener(SetLoadBalancerPoliciesOfListenerRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetLoadBalancerPoliciesOfListenerRequestMarshaller.Instance;options.ResponseUnmarshaller = SetLoadBalancerPoliciesOfListenerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2326, "before": "public SoraniNormalizationFilter(TokenStream input) {super(input);}", "after": "public SoraniNormalizationFilter(TokenStream input): base(input){termAtt = AddAttribute();}" }, { "index": 2327, "before": "public UpdateTerminationProtectionResult updateTerminationProtection(UpdateTerminationProtectionRequest request) {request = beforeClientExecution(request);return executeUpdateTerminationProtection(request);}", "after": "public virtual UpdateTerminationProtectionResponse UpdateTerminationProtection(UpdateTerminationProtectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTerminationProtectionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTerminationProtectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2328, "before": "public void addChildRecord(EscherRecord record) {_childRecords.add(record);}", "after": "public void AddChildRecord(EscherRecord record){this._childRecords.Add(record);}" }, { "index": 2329, "before": "public SetIdentityMailFromDomainResult setIdentityMailFromDomain(SetIdentityMailFromDomainRequest request) {request = beforeClientExecution(request);return executeSetIdentityMailFromDomain(request);}", "after": "public virtual SetIdentityMailFromDomainResponse SetIdentityMailFromDomain(SetIdentityMailFromDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetIdentityMailFromDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = SetIdentityMailFromDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2330, "before": "public E remove(int location) {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 next = link.next;previous.next = next;next.previous = previous;size--;modCount++;return link.data;}throw new IndexOutOfBoundsException();}", "after": "public override E remove(int location){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 next = link.next;previous.next = next;next.previous = previous;_size--;modCount++;return link.data;}throw new System.IndexOutOfRangeException();}" }, { "index": 2331, "before": "public UpdateJobResult updateJob(UpdateJobRequest request) {request = beforeClientExecution(request);return executeUpdateJob(request);}", "after": "public virtual UpdateJobResponse UpdateJob(UpdateJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateJobRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2332, "before": "public AddNoteCommand setNotesRef(String notesRef) {checkCallable();this.notesRef = notesRef;return this;}", "after": "public virtual NGit.Api.AddNoteCommand SetNotesRef(string notesRef){CheckCallable();this.notesRef = notesRef;return this;}" }, { "index": 2333, "before": "public ListInvitationsResult listInvitations(ListInvitationsRequest request) {request = beforeClientExecution(request);return executeListInvitations(request);}", "after": "public virtual ListInvitationsResponse ListInvitations(ListInvitationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListInvitationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListInvitationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2334, "before": "public boolean equals(Object obj) {if(! (obj instanceof ExtRst)) {return false;}ExtRst other = (ExtRst)obj;return (compareTo(other) == 0);}", "after": "public override bool Equals(Object obj){if (!(obj is ExtRst)){return false;}ExtRst other = (ExtRst)obj;return (CompareTo(other) == 0);}" }, { "index": 2335, "before": "public synchronized void close() throws IOException {buffer = null;isClosed = true;notifyAll();}", "after": "public override void close(){throw new System.NotImplementedException();}" }, { "index": 2336, "before": "public ListTrialsResult listTrials(ListTrialsRequest request) {request = beforeClientExecution(request);return executeListTrials(request);}", "after": "public virtual ListTrialsResponse ListTrials(ListTrialsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTrialsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTrialsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2337, "before": "public CreateDocumentClassifierResult createDocumentClassifier(CreateDocumentClassifierRequest request) {request = beforeClientExecution(request);return executeCreateDocumentClassifier(request);}", "after": "public virtual CreateDocumentClassifierResponse CreateDocumentClassifier(CreateDocumentClassifierRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDocumentClassifierRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDocumentClassifierResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2338, "before": "public GetPasswordDataResult getPasswordData(GetPasswordDataRequest request) {request = beforeClientExecution(request);return executeGetPasswordData(request);}", "after": "public virtual GetPasswordDataResponse GetPasswordData(GetPasswordDataRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPasswordDataRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPasswordDataResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2339, "before": "public final String text() {return toString(bytes);}", "after": "public string Text(){return ToString(Bytes);}" }, { "index": 2340, "before": "public HSSFPicture( HSSFShape parent, HSSFAnchor anchor ){super( parent, anchor );super.setShapeType(OBJECT_TYPE_PICTURE);CommonObjectDataSubRecord cod = (CommonObjectDataSubRecord) getObjRecord().getSubRecords().get(0);cod.setObjectType(CommonObjectDataSubRecord.OBJECT_TYPE_PICTURE);}", "after": "public HSSFPicture(HSSFShape parent, HSSFAnchor anchor): base(parent, anchor){base.ShapeType = (OBJECT_TYPE_PICTURE);CommonObjectDataSubRecord cod = (CommonObjectDataSubRecord)GetObjRecord().SubRecords[0];cod.ObjectType = CommonObjectType.Picture;}" }, { "index": 2341, "before": "public CharSequence subSequence(int start, int end) {return new RawCharSequence(buffer, startPtr + start, startPtr + end);}", "after": "public CharSequence SubSequence(int start, int end){return new NGit.Util.RawCharSequence(buffer, startPtr + start, startPtr + end);}" }, { "index": 2342, "before": "public DeleteAccessPointResult deleteAccessPoint(DeleteAccessPointRequest request) {request = beforeClientExecution(request);return executeDeleteAccessPoint(request);}", "after": "public virtual DeleteAccessPointResponse DeleteAccessPoint(DeleteAccessPointRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAccessPointRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAccessPointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2343, "before": "public DescribeSubnetsResult describeSubnets() {return describeSubnets(new DescribeSubnetsRequest());}", "after": "public virtual DescribeSubnetsResponse DescribeSubnets(){return DescribeSubnets(new DescribeSubnetsRequest());}" }, { "index": 2344, "before": "public AddTagsToOnPremisesInstancesResult addTagsToOnPremisesInstances(AddTagsToOnPremisesInstancesRequest request) {request = beforeClientExecution(request);return executeAddTagsToOnPremisesInstances(request);}", "after": "public virtual AddTagsToOnPremisesInstancesResponse AddTagsToOnPremisesInstances(AddTagsToOnPremisesInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddTagsToOnPremisesInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = AddTagsToOnPremisesInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2345, "before": "public static String coerceValueToString(ValueEval ve) {if (ve instanceof StringValueEval) {StringValueEval sve = (StringValueEval) ve;return sve.getStringValue();}if (ve == BlankEval.instance) {return \"\";}", "after": "public static String CoerceValueToString(ValueEval ve){if (ve is StringValueEval){StringValueEval sve = (StringValueEval)ve;return sve.StringValue;}if (ve is BlankEval){return \"\";}" }, { "index": 2346, "before": "public CreateVpcLinkResult createVpcLink(CreateVpcLinkRequest request) {request = beforeClientExecution(request);return executeCreateVpcLink(request);}", "after": "public virtual CreateVpcLinkResponse CreateVpcLink(CreateVpcLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVpcLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVpcLinkResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2347, "before": "public DescribeTrafficMirrorTargetsResult describeTrafficMirrorTargets(DescribeTrafficMirrorTargetsRequest request) {request = beforeClientExecution(request);return executeDescribeTrafficMirrorTargets(request);}", "after": "public virtual DescribeTrafficMirrorTargetsResponse DescribeTrafficMirrorTargets(DescribeTrafficMirrorTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTrafficMirrorTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTrafficMirrorTargetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2348, "before": "public SetRepositoryPolicyResult setRepositoryPolicy(SetRepositoryPolicyRequest request) {request = beforeClientExecution(request);return executeSetRepositoryPolicy(request);}", "after": "public virtual SetRepositoryPolicyResponse SetRepositoryPolicy(SetRepositoryPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetRepositoryPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = SetRepositoryPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2349, "before": "public String toFormulaString() {return \"UNKNOWN\";}", "after": "public override String ToFormulaString(){return \"UNKNOWN\";}" }, { "index": 2350, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {try {double d0 = NumericFunction.singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.singleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);return new NumberEval(evaluate(d0, d1, false));} catch (EvaluationException e) {return e.getErrorEval();}}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){double result;try{double d0 = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);result = Evaluate(d0, d1);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}" }, { "index": 2351, "before": "public void set(int index, long value) {final int o = index / 5;final int b = index % 5;final int shift = b * 12;blocks[o] = (blocks[o] & ~(4095L << shift)) | (value << shift);}", "after": "public override void Set(int index, long value){int o = index / 5;int b = index % 5;int shift = b * 12;blocks[o] = (blocks[o] & ~(4095L << shift)) | (value << shift);}" }, { "index": 2352, "before": "public ProtectionRev4Record(boolean protect) {this(0);setProtect(protect);}", "after": "public ProtectionRev4Record(bool protect):this(0){Protect = protect;}" }, { "index": 2353, "before": "public UpdateAuditStreamConfigurationResult updateAuditStreamConfiguration(UpdateAuditStreamConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateAuditStreamConfiguration(request);}", "after": "public virtual UpdateAuditStreamConfigurationResponse UpdateAuditStreamConfiguration(UpdateAuditStreamConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAuditStreamConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAuditStreamConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2354, "before": "public Sheet build() {Sheet sheet = (sheetName == null) ? workbook.createSheet() : workbook.createSheet(sheetName);Row currentRow;Cell currentCell;for (int rowIndex = 0; rowIndex < cells.length; ++rowIndex) {Object[] rowArray = cells[rowIndex];currentRow = sheet.createRow(rowIndex);for (int cellIndex = 0; cellIndex < rowArray.length; ++cellIndex) {Object cellValue = rowArray[cellIndex];if (cellValue != null || shouldCreateEmptyCells) {currentCell = currentRow.createCell(cellIndex);setCellValue(currentCell, cellValue);}}}return sheet;}", "after": "public ISheet Build(){ISheet sheet = (sheetName == null) ? workbook.CreateSheet() : workbook.CreateSheet(sheetName);IRow currentRow = null;ICell currentCell = null;for (int rowIndex = 0; rowIndex < cells.Length; ++rowIndex){Object[] rowArray = cells[rowIndex];currentRow = sheet.CreateRow(rowIndex);for (int cellIndex = 0; cellIndex < rowArray.Length; ++cellIndex){Object cellValue = rowArray[cellIndex];if (cellValue != null || shouldCreateEmptyCells){currentCell = currentRow.CreateCell(cellIndex);SetCellValue(currentCell, cellValue);}}}return sheet;}" }, { "index": 2355, "before": "public CharArrayWriter(int initialSize) {if (initialSize < 0) {throw new IllegalArgumentException(\"size < 0\");}buf = new char[initialSize];lock = buf;}", "after": "public CharArrayWriter(int initialSize){if (initialSize < 0){throw new System.ArgumentException(\"size < 0\");}buf = new char[initialSize];@lock = buf;}" }, { "index": 2356, "before": "public AtomicReference(V initialValue) {value = initialValue;}", "after": "public AtomicReference(V initialValue){value = initialValue;}" }, { "index": 2357, "before": "public static ISignatureComposer getComposer() {if (null == composer) {composer = new RpcSignatureComposer();}return composer;}", "after": "public static ISignatureComposer GetComposer(){if (null == composer){composer = new RpcSignatureComposer();}return composer;}" }, { "index": 2358, "before": "public ListHITsForQualificationTypeResult listHITsForQualificationType(ListHITsForQualificationTypeRequest request) {request = beforeClientExecution(request);return executeListHITsForQualificationType(request);}", "after": "public virtual ListHITsForQualificationTypeResponse ListHITsForQualificationType(ListHITsForQualificationTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListHITsForQualificationTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = ListHITsForQualificationTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2359, "before": "public AddTagsToStreamResult addTagsToStream(AddTagsToStreamRequest request) {request = beforeClientExecution(request);return executeAddTagsToStream(request);}", "after": "public virtual AddTagsToStreamResponse AddTagsToStream(AddTagsToStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddTagsToStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = AddTagsToStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2360, "before": "public String toString(){StringBuilder buffer = new StringBuilder();final String nl = System.getProperty(\"line.separator\");buffer.append('[' + getRecordName() + ']' + nl);if (escherRecords.size() == 0)buffer.append(\"No Escher Records Decoded\" + nl);for (EscherRecord r : escherRecords) {buffer.append(r);}buffer.append(\"[/\" + getRecordName() + ']' + nl);return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();String nl = Environment.NewLine;buffer.Append('[' + RecordName + ']' + nl);if (escherRecords.Count == 0)buffer.Append(\"No Escher Records Decoded\" + nl);foreach (EscherRecord r in escherRecords){buffer.Append(r.ToString());}buffer.Append(\"[/\" + RecordName + ']' + nl);return buffer.ToString();}" }, { "index": 2361, "before": "public WSBoolRecord(RecordInputStream in) {byte[] data = in.readRemainder();field_1_wsbool =data[ 1 ]; field_2_wsbool =data[ 0 ]; }", "after": "public WSBoolRecord(RecordInputStream in1){byte[] data = in1.ReadRemainder();field_1_wsbool =data[0];field_2_wsbool =data[1];}" }, { "index": 2362, "before": "public BrazilianStemFilter create(TokenStream in) {return new BrazilianStemFilter(in);}", "after": "public override TokenStream Create(TokenStream @in){return new BrazilianStemFilter(@in);}" }, { "index": 2363, "before": "public ResetCommand setRef(String ref) {this.ref = ref;return this;}", "after": "public virtual NGit.Api.ResetCommand SetRef(string @ref){this.@ref = @ref;return this;}" }, { "index": 2364, "before": "public EnableOrganizationAdminAccountResult enableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest request) {request = beforeClientExecution(request);return executeEnableOrganizationAdminAccount(request);}", "after": "public virtual EnableOrganizationAdminAccountResponse EnableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableOrganizationAdminAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableOrganizationAdminAccountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2365, "before": "public ValueEval getInnerValueEval(int sheetIndex) {return _evaluator.getEvalForCell(sheetIndex, getRow(), getColumn());}", "after": "public override ValueEval GetInnerValueEval(int sheetIndex){return _evaluator.GetEvalForCell(sheetIndex, Row, Column);}" }, { "index": 2366, "before": "public DeleteRecommenderConfigurationResult deleteRecommenderConfiguration(DeleteRecommenderConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteRecommenderConfiguration(request);}", "after": "public virtual DeleteRecommenderConfigurationResponse DeleteRecommenderConfiguration(DeleteRecommenderConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRecommenderConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRecommenderConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2367, "before": "public UpdateIntegrationResponseResult updateIntegrationResponse(UpdateIntegrationResponseRequest request) {request = beforeClientExecution(request);return executeUpdateIntegrationResponse(request);}", "after": "public virtual UpdateIntegrationResponseResponse UpdateIntegrationResponse(UpdateIntegrationResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateIntegrationResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateIntegrationResponseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2368, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[INTERFACEHDR]\\n\");buffer.append(\" .codepage = \").append(HexDump.shortToHex(_codepage)).append(\"\\n\");buffer.append(\"[/INTERFACEHDR]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[INTERFACEHDR]\\n\");buffer.Append(\" .codepage = \").Append(StringUtil.ToHexString(_codepage)).Append(\"\\n\");buffer.Append(\"[/INTERFACEHDR]\\n\");return buffer.ToString();}" }, { "index": 2369, "before": "public String outputToString(BytesRef output) {return output.toString();}", "after": "public override string OutputToString(BytesRef output){return output.ToString();}" }, { "index": 2370, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(\"dim=\");sb.append(dim);sb.append(\" path=\");sb.append(Arrays.toString(path));sb.append(\" value=\");sb.append(value);sb.append(\" childCount=\");sb.append(childCount);sb.append('\\n');for(LabelAndValue labelValue : labelValues) {sb.append(\" \").append(labelValue).append(\"\\n\");}return sb.toString();}", "after": "public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append(\"dim=\");sb.Append(Dim);sb.Append(\" path=\");sb.Append(Arrays.ToString(Path));sb.Append(\" value=\");if (TypeOfValue == typeof(int)){sb.AppendFormat(CultureInfo.InvariantCulture, \"{0:0}\", Value); }else{sb.AppendFormat(CultureInfo.InvariantCulture, \"{0:0.0#####}\", Value); }sb.Append(\" childCount=\");sb.Append(ChildCount);sb.Append('\\n');foreach (LabelAndValue labelValue in LabelValues){sb.Append(\" \" + labelValue + \"\\n\");}return sb.ToString();}" }, { "index": 2371, "before": "public AcceptVpcEndpointConnectionsResult acceptVpcEndpointConnections(AcceptVpcEndpointConnectionsRequest request) {request = beforeClientExecution(request);return executeAcceptVpcEndpointConnections(request);}", "after": "public virtual AcceptVpcEndpointConnectionsResponse AcceptVpcEndpointConnections(AcceptVpcEndpointConnectionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptVpcEndpointConnectionsRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptVpcEndpointConnectionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2372, "before": "public DescribeIdentityProviderConfigurationResult describeIdentityProviderConfiguration(DescribeIdentityProviderConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeIdentityProviderConfiguration(request);}", "after": "public virtual DescribeIdentityProviderConfigurationResponse DescribeIdentityProviderConfiguration(DescribeIdentityProviderConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIdentityProviderConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIdentityProviderConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2373, "before": "public void clear() {head = null;free.clear();}", "after": "public override void Clear(){head = null;free.Clear();}" }, { "index": 2374, "before": "public String toString() {return getClass().getSimpleName() + \"[\" + getFile().getPath() + \"]\";}", "after": "public override string ToString(){return GetType().Name + \"[\" + GetFile().GetPath() + \"]\";}" }, { "index": 2375, "before": "public GetRelationalDatabaseBlueprintsResult getRelationalDatabaseBlueprints(GetRelationalDatabaseBlueprintsRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseBlueprints(request);}", "after": "public virtual GetRelationalDatabaseBlueprintsResponse GetRelationalDatabaseBlueprints(GetRelationalDatabaseBlueprintsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseBlueprintsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseBlueprintsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2376, "before": "public void concatenate(byte[] array) {if (array == null) {throw new IllegalArgumentException(\"array cannot be null\");}arrays.add(array);}", "after": "public void Concatenate(byte[] array){if (array == null){throw new ArgumentException(\"array cannot be null\");}arrays.Add(array);}" }, { "index": 2377, "before": "public final ByteBuffer get(byte[] dst, int dstOffset, int byteCount) {checkGetBounds(1, dst.length, dstOffset, byteCount);System.arraycopy(backingArray, offset + position, dst, dstOffset, byteCount);position += byteCount;return this;}", "after": "public sealed override java.nio.ByteBuffer get(byte[] dst, int dstOffset, int byteCount){checkGetBounds(1, dst.Length, dstOffset, byteCount);System.Array.Copy(backingArray, offset + _position, dst, dstOffset, byteCount);_position += byteCount;return this;}" }, { "index": 2378, "before": "public DescribeAutoScalingNotificationTypesResult describeAutoScalingNotificationTypes() {return describeAutoScalingNotificationTypes(new DescribeAutoScalingNotificationTypesRequest());}", "after": "public virtual DescribeAutoScalingNotificationTypesResponse DescribeAutoScalingNotificationTypes(){return DescribeAutoScalingNotificationTypes(new DescribeAutoScalingNotificationTypesRequest());}" }, { "index": 2379, "before": "public int compareTo(LookupResult o) {return CHARSEQUENCE_COMPARATOR.compare(key, o.key);}", "after": "public int CompareTo(LookupResult o){return CHARSEQUENCE_COMPARER.Compare(Key, o.Key);}" }, { "index": 2380, "before": "public UpdateVariableResult updateVariable(UpdateVariableRequest request) {request = beforeClientExecution(request);return executeUpdateVariable(request);}", "after": "public virtual UpdateVariableResponse UpdateVariable(UpdateVariableRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateVariableRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateVariableResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2381, "before": "public TranslateTextRequest() {super(\"hiknoengine\", \"2019-06-25\", \"TranslateText\", \"hiknoengine\");setMethod(MethodType.POST);}", "after": "public TranslateTextRequest(): base(\"hiknoengine\", \"2019-06-25\", \"TranslateText\", \"hiknoengine\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 2382, "before": "public E set(int location, E object) {E result = a[location];a[location] = object;return result;}", "after": "public override E set(int location, E @object){E result = a[location];a[location] = @object;return result;}" }, { "index": 2383, "before": "public static Document loadXML(Reader is) {DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();DocumentBuilder db = null;try {db = dbf.newDocumentBuilder();}catch (Exception se) {throw new RuntimeException(\"Parser configuration error\", se);}org.w3c.dom.Document doc = null;try {doc = db.parse(new InputSource(is));}catch (Exception se) {throw new RuntimeException(\"Error parsing file:\" + se, se);}return doc;}", "after": "public static XmlDocument LoadXML(XmlReader input){XmlDocument result = new XmlDocument();try{result.Load(input);}catch (Exception se){throw new Exception(\"Error parsing file:\" + se, se);}return result;}" }, { "index": 2384, "before": "public void setTokenStream(TokenStream tokenStream) {if (type.indexOptions() == IndexOptions.NONE || !type.tokenized()) {throw new IllegalArgumentException(\"TokenStream fields must be indexed and tokenized\");}this.tokenStream = tokenStream;}", "after": "public virtual void SetTokenStream(TokenStream tokenStream){if (!m_type.IsIndexed || !m_type.IsTokenized){throw new System.ArgumentException(\"TokenStream fields must be indexed and tokenized\");}if (m_type.NumericType != Documents.NumericType.NONE){throw new System.ArgumentException(\"cannot set private TokenStream on numeric fields\");}this.m_tokenStream = tokenStream;}" }, { "index": 2385, "before": "public ValueEval getArea3DEval(Area3DPtg aptg) {SheetRangeEvaluator sre = createExternSheetRefEvaluator(aptg.getExternSheetIndex());return new LazyAreaEval(aptg.getFirstRow(), aptg.getFirstColumn(),aptg.getLastRow(), aptg.getLastColumn(), sre);}", "after": "public ValueEval GetArea3DEval(Area3DPtg aptg){SheetRangeEvaluator sre = CreateExternSheetRefEvaluator(aptg.ExternSheetIndex);return new LazyAreaEval(aptg.FirstRow, aptg.FirstColumn,aptg.LastRow, aptg.LastColumn, sre);}" }, { "index": 2386, "before": "public MulBlankRecord(int row, int firstCol, short[] xfs) {_row = row;_firstCol = firstCol;_xfs = xfs;_lastCol = firstCol + xfs.length - 1;}", "after": "public MulBlankRecord(int row, int firstCol, short[] xfs){_row = row;_first_col = firstCol;_xfs = xfs;_last_col = firstCol + xfs.Length - 1;}" }, { "index": 2387, "before": "public EngineDefaults describeEngineDefaultParameters(DescribeEngineDefaultParametersRequest request) {request = beforeClientExecution(request);return executeDescribeEngineDefaultParameters(request);}", "after": "public virtual DescribeEngineDefaultParametersResponse DescribeEngineDefaultParameters(DescribeEngineDefaultParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEngineDefaultParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEngineDefaultParametersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2388, "before": "public AttachVolumeResult attachVolume(AttachVolumeRequest request) {request = beforeClientExecution(request);return executeAttachVolume(request);}", "after": "public virtual AttachVolumeResponse AttachVolume(AttachVolumeRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachVolumeRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachVolumeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2389, "before": "public long ramBytesUsed() {return ((termOffsets!=null)? termOffsets.ramBytesUsed() : 0) +((termsDictOffsets!=null)? termsDictOffsets.ramBytesUsed() : 0);}", "after": "public override long RamBytesUsed(){long sizeInBytes = 0;foreach (FieldIndexData entry in fields.Values){sizeInBytes += entry.RamBytesUsed();}return sizeInBytes;}" }, { "index": 2390, "before": "public DeleteWorkerBlockResult deleteWorkerBlock(DeleteWorkerBlockRequest request) {request = beforeClientExecution(request);return executeDeleteWorkerBlock(request);}", "after": "public virtual DeleteWorkerBlockResponse DeleteWorkerBlock(DeleteWorkerBlockRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteWorkerBlockRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteWorkerBlockResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2391, "before": "public static void unregister(TransportProtocol proto) {for (WeakReference ref : protocols) {TransportProtocol refProto = ref.get();if (refProto == null || refProto == proto)protocols.remove(ref);}}", "after": "public static void Unregister(TransportProtocol proto){foreach (JavaWeakReference @ref in protocols){TransportProtocol refProto = @ref.Get();if (refProto == null || refProto == proto){protocols.Remove(@ref);}}}" }, { "index": 2392, "before": "public CreateNetworkInterfacePermissionResult createNetworkInterfacePermission(CreateNetworkInterfacePermissionRequest request) {request = beforeClientExecution(request);return executeCreateNetworkInterfacePermission(request);}", "after": "public virtual CreateNetworkInterfacePermissionResponse CreateNetworkInterfacePermission(CreateNetworkInterfacePermissionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNetworkInterfacePermissionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNetworkInterfacePermissionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2393, "before": "public void parseLine(DocData docData, String line) {String[] parts = line.split(\"\\\\t\", 7);docData.setID(Integer.parseInt(parts[0]));docData.setName(parts[1]);String latitude = parts[4];String longitude = parts[5];docData.setBody(\"POINT(\"+longitude+\" \"+latitude+\")\");}", "after": "public override void ParseLine(DocData docData, string line){string[] parts = new Regex(\"\\\\t\").Split(line, 7);docData.ID = Convert.ToInt32(parts[0], CultureInfo.InvariantCulture);docData.Name = parts[1];string latitude = parts[4];string longitude = parts[5];docData.Body = \"POINT(\" + longitude + \" \" + latitude + \")\";}" }, { "index": 2394, "before": "public DeleteArchiveRequest(String accountId, String vaultName, String archiveId) {setAccountId(accountId);setVaultName(vaultName);setArchiveId(archiveId);}", "after": "public DeleteArchiveRequest(string accountId, string vaultName, string archiveId){_accountId = accountId;_vaultName = vaultName;_archiveId = archiveId;}" }, { "index": 2395, "before": "public static void close(@NonNull Repository db) {if (db.getDirectory() != null) {FileKey key = FileKey.exact(db.getDirectory(), db.getFS());cache.unregisterAndCloseRepository(key);}}", "after": "public static void Close(Repository db){if (db.Directory != null){RepositoryCache.FileKey key = RepositoryCache.FileKey.Exact(db.Directory, db.FileSystem);cache.UnregisterRepository(key);}}" }, { "index": 2396, "before": "public OrQueryNode(List clauses) {super(clauses);if ((clauses == null) || (clauses.size() == 0)) {throw new IllegalArgumentException(\"OR query must have at least one clause\");}}", "after": "public OrQueryNode(IList clauses): base(clauses){if ((clauses == null) || (clauses.Count == 0)){throw new ArgumentException(\"OR query must have at least one clause\");}}" }, { "index": 2397, "before": "public ReplicationGroup createReplicationGroup(CreateReplicationGroupRequest request) {request = beforeClientExecution(request);return executeCreateReplicationGroup(request);}", "after": "public virtual CreateReplicationGroupResponse CreateReplicationGroup(CreateReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateReplicationGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2398, "before": "public ListCollectionsResult listCollections(ListCollectionsRequest request) {request = beforeClientExecution(request);return executeListCollections(request);}", "after": "public virtual ListCollectionsResponse ListCollections(ListCollectionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListCollectionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListCollectionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2399, "before": "public void setParentIds(AnyObjectId parent1, AnyObjectId parent2) {parentIds = new ObjectId[] { parent1.copy(), parent2.copy() };}", "after": "public virtual void SetParentIds(AnyObjectId parent1, AnyObjectId parent2){parentIds = new ObjectId[] { parent1.Copy(), parent2.Copy() };}" }, { "index": 2400, "before": "public TokenOffsetPayloadTokenFilter create(TokenStream input) {return new TokenOffsetPayloadTokenFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new TokenOffsetPayloadTokenFilter(input);}" }, { "index": 2401, "before": "public CreateDataSourceResult createDataSource(CreateDataSourceRequest request) {request = beforeClientExecution(request);return executeCreateDataSource(request);}", "after": "public virtual CreateDataSourceResponse CreateDataSource(CreateDataSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDataSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDataSourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2402, "before": "public DeleteBranchCommand setBranchNames(String... branchnames) {checkCallable();this.branchNames.clear();this.branchNames.addAll(Arrays.asList(branchnames));return this;}", "after": "public virtual NGit.Api.DeleteBranchCommand SetBranchNames(params string[] branchnames){CheckCallable();this.branchNames.Clear();foreach (string branch in branchnames){this.branchNames.AddItem(branch);}return this;}" }, { "index": 2403, "before": "public void setCoordinates(int x1, int y1, int x2, int y2) {_spgrRecord.setRectX1(x1);_spgrRecord.setRectX2(x2);_spgrRecord.setRectY1(y1);_spgrRecord.setRectY2(y2);}", "after": "public void SetCoordinates(int x1, int y1, int x2, int y2){_spgrRecord.RectX1 = (x1);_spgrRecord.RectX2 = (x2);_spgrRecord.RectY1 = (y1);_spgrRecord.RectY2 = (y2);}" }, { "index": 2404, "before": "public DescribeNotificationConfigurationsResult describeNotificationConfigurations() {return describeNotificationConfigurations(new DescribeNotificationConfigurationsRequest());}", "after": "public virtual DescribeNotificationConfigurationsResponse DescribeNotificationConfigurations(){return DescribeNotificationConfigurations(new DescribeNotificationConfigurationsRequest());}" }, { "index": 2405, "before": "public GetStatusResult getStatus(GetStatusRequest request) {request = beforeClientExecution(request);return executeGetStatus(request);}", "after": "public virtual GetStatusResponse GetStatus(GetStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = GetStatusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2406, "before": "public final ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {switch (args.length) {case 1:return evaluate(srcRowIndex, srcColumnIndex, args[0]);case 2:return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1]);}return ErrorEval.VALUE_INVALID;}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){switch (args.Length){case 1:return Evaluate(srcRowIndex, srcColumnIndex, args[0]);case 2:return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1]);}return ErrorEval.VALUE_INVALID;}" }, { "index": 2407, "before": "public ExternalSheet getExternalSheet(int externSheetIndex) {String[] extNames = linkTable.getExternalBookAndSheetName(externSheetIndex);if (extNames == null) {return null;}if (extNames.length == 2) {return new ExternalSheet(extNames[0], extNames[1]);} else {return new ExternalSheetRange(extNames[0], extNames[1], extNames[2]);}}", "after": "public ExternalSheet GetExternalSheet(int externSheetIndex){String[] extNames = linkTable.GetExternalBookAndSheetName(externSheetIndex);if (extNames == null){return null;}if (extNames.Length == 2){return new ExternalSheet(extNames[0], extNames[1]);}else{return new ExternalSheetRange(extNames[0], extNames[1], extNames[2]);}}" }, { "index": 2408, "before": "public static int delete(char s[], int pos, int len) {assert pos < len;if (pos < len - 1) { System.arraycopy(s, pos + 1, s, pos, len - pos - 1);}return len - 1;}", "after": "public static int Delete(char[] s, int pos, int len){Debug.Assert(pos < len);if (pos < len - 1) {Array.Copy(s, pos + 1, s, pos, len - pos - 1);}return len - 1;}" }, { "index": 2409, "before": "public HSSFConditionalFormatting getConditionalFormattingAt(int index) {CFRecordsAggregate cf = _conditionalFormattingTable.get(index);if (cf == null) {return null;}return new HSSFConditionalFormatting(_sheet, cf);}", "after": "public IConditionalFormatting GetConditionalFormattingAt(int index){CFRecordsAggregate cf = _conditionalFormattingTable.Get(index);if (cf == null){return null;}return new HSSFConditionalFormatting((HSSFWorkbook)_sheet.Workbook, cf);}" }, { "index": 2410, "before": "public static Cell createCell(Row row, int column, String value, CellStyle style) {Cell cell = getCell(row, column);cell.setCellValue(cell.getRow().getSheet().getWorkbook().getCreationHelper().createRichTextString(value));if (style != null) {cell.setCellStyle(style);}return cell;}", "after": "public static ICell CreateCell(IRow row, int column, String value, HSSFCellStyle style){ICell cell = GetCell(row, column);cell.SetCellValue(new HSSFRichTextString(value));if (style != null){cell.CellStyle = (style);}return cell;}" }, { "index": 2411, "before": "public void setFillColor(int red, int green, int blue) {int fillColor = ((blue) << 16) | ((green) << 8) | red;setPropertyValue(new EscherRGBProperty(EscherPropertyTypes.FILL__FILLCOLOR, fillColor));}", "after": "public void SetFillColor(int red, int green, int blue){int fillColor = ((blue) << 16) | ((green) << 8) | red;SetPropertyValue(new EscherRGBProperty(EscherProperties.FILL__FILLCOLOR, fillColor));}" }, { "index": 2412, "before": "public ErrorResponseBody error() {return this.error;}", "after": "public virtual IPolicyOperations Policy { get; private set; }" }, { "index": 2413, "before": "public void write(int b) throws IOException {try {beginWrite();dst.write(b);} catch (InterruptedIOException e) {throw writeTimedOut(e);} finally {endWrite();}}", "after": "public override void Write(int b){try{BeginWrite();dst.Write(b);}catch (ThreadInterruptedException){throw WriteTimedOut();}finally{EndWrite();}}" }, { "index": 2414, "before": "public void add(String key, ParserExtension extension) {this.extensions.put(key, extension);}", "after": "public virtual void Add(string key, ParserExtension extension){this.extensions[key] = extension;}" }, { "index": 2415, "before": "public SignOutUserResult signOutUser(SignOutUserRequest request) {request = beforeClientExecution(request);return executeSignOutUser(request);}", "after": "public virtual SignOutUserResponse SignOutUser(SignOutUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = SignOutUserRequestMarshaller.Instance;options.ResponseUnmarshaller = SignOutUserResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2416, "before": "public PutImageTagMutabilityResult putImageTagMutability(PutImageTagMutabilityRequest request) {request = beforeClientExecution(request);return executePutImageTagMutability(request);}", "after": "public virtual PutImageTagMutabilityResponse PutImageTagMutability(PutImageTagMutabilityRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutImageTagMutabilityRequestMarshaller.Instance;options.ResponseUnmarshaller = PutImageTagMutabilityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2417, "before": "public CreateIAMPolicyAssignmentResult createIAMPolicyAssignment(CreateIAMPolicyAssignmentRequest request) {request = beforeClientExecution(request);return executeCreateIAMPolicyAssignment(request);}", "after": "public virtual CreateIAMPolicyAssignmentResponse CreateIAMPolicyAssignment(CreateIAMPolicyAssignmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIAMPolicyAssignmentRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIAMPolicyAssignmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2418, "before": "public GetRoomResult getRoom(GetRoomRequest request) {request = beforeClientExecution(request);return executeGetRoom(request);}", "after": "public virtual GetRoomResponse GetRoom(GetRoomRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRoomRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRoomResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2419, "before": "public DescribeLaunchConfigurationsResult describeLaunchConfigurations() {return describeLaunchConfigurations(new DescribeLaunchConfigurationsRequest());}", "after": "public virtual DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations(){return DescribeLaunchConfigurations(new DescribeLaunchConfigurationsRequest());}" }, { "index": 2420, "before": "public UpdateTaskSetResult updateTaskSet(UpdateTaskSetRequest request) {request = beforeClientExecution(request);return executeUpdateTaskSet(request);}", "after": "public virtual UpdateTaskSetResponse UpdateTaskSet(UpdateTaskSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTaskSetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTaskSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2421, "before": "public boolean equals(Object other_) {if (other_ == this) {return true;} else if (!(other_ instanceof FSTTermOutputs.TermData)) {return false;}TermData other = (TermData) other_;return statsEqual(this, other) &&bytesEqual(this, other);}", "after": "public override bool Equals(object other){if (other == this)return true;if (!(other is TermData))return false;var _other = (TermData) other;return StatsEqual(this, _other) && Int64sEqual(this, _other) && BytesEqual(this, _other);}" }, { "index": 2422, "before": "public int getSequenceIndex() {return sequenceIndex;}", "after": "public virtual int GetSequenceIndex(){return sequenceIndex;}" }, { "index": 2423, "before": "public DeleteAutoScalingGroupResult deleteAutoScalingGroup(DeleteAutoScalingGroupRequest request) {request = beforeClientExecution(request);return executeDeleteAutoScalingGroup(request);}", "after": "public virtual DeleteAutoScalingGroupResponse DeleteAutoScalingGroup(DeleteAutoScalingGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAutoScalingGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAutoScalingGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2424, "before": "public int nextDoc() {while (true) {if (queue.size() == 0) {doc = NO_MORE_DOCS;break;}int newDoc = queue.top().docID();if (newDoc != doc) {assert newDoc > doc: \"doc=\" + doc + \" newDoc=\" + newDoc;doc = newDoc;break;}if (queue.top().nextDoc() == NO_MORE_DOCS) {queue.pop();} else {queue.updateTop();}}return doc;}", "after": "public override int NextDoc(){if (idx >= size){offset = -1;return doc = DocIdSetIterator.NO_MORE_DOCS;}doc = (int)docs.Get(idx);++idx;while (idx < size && docs.Get(idx) == doc){++idx;}long prevIdx = idx - 1;if (!docsWithField.Get((int)prevIdx)){offset = -1;}else{offset = (int)offsets.Get(prevIdx);length = (int)lengths.Get(prevIdx);}return doc;}" }, { "index": 2425, "before": "public Collection getChildren() {return Collections.singleton(new ChildScorable(parentScorer, \"BLOCK_JOIN\"));}", "after": "public override ICollection GetChildren(){return new List { new ChildScorer(_parentScorer, \"BLOCK_JOIN\") };}" }, { "index": 2426, "before": "public void endTask() {if (!isMainThread())throw new IllegalStateException();pm.endTask();}", "after": "public override void EndTask(){if (!IsMainThread()){throw new InvalidOperationException();}pm.EndTask();}" }, { "index": 2427, "before": "public UpdateConfigurationSetEventDestinationResult updateConfigurationSetEventDestination(UpdateConfigurationSetEventDestinationRequest request) {request = beforeClientExecution(request);return executeUpdateConfigurationSetEventDestination(request);}", "after": "public virtual UpdateConfigurationSetEventDestinationResponse UpdateConfigurationSetEventDestination(UpdateConfigurationSetEventDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateConfigurationSetEventDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateConfigurationSetEventDestinationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2428, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getBackup());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Backup);}" }, { "index": 2429, "before": "public DescribeBundleTasksResult describeBundleTasks(DescribeBundleTasksRequest request) {request = beforeClientExecution(request);return executeDescribeBundleTasks(request);}", "after": "public virtual DescribeBundleTasksResponse DescribeBundleTasks(DescribeBundleTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeBundleTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeBundleTasksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2430, "before": "public Explanation idfExplain(CollectionStatistics collectionStats, TermStatistics termStats) {final long df = termStats.docFreq();final long docCount = collectionStats.docCount();final float idf = idf(df, docCount);return Explanation.match(idf, \"idf, computed as log(1 + (N - n + 0.5) / (n + 0.5)) from:\",Explanation.match(df, \"n, number of documents containing term\"),Explanation.match(docCount, \"N, total number of documents with field\"));}", "after": "public virtual Explanation IdfExplain(CollectionStatistics collectionStats, TermStatistics termStats){long df = termStats.DocFreq;long max = collectionStats.MaxDoc;float idf = Idf(df, max);return new Explanation(idf, \"idf(docFreq=\" + df + \", maxDocs=\" + max + \")\");}" }, { "index": 2431, "before": "public DescribeFleetEventsResult describeFleetEvents(DescribeFleetEventsRequest request) {request = beforeClientExecution(request);return executeDescribeFleetEvents(request);}", "after": "public virtual DescribeFleetEventsResponse DescribeFleetEvents(DescribeFleetEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFleetEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFleetEventsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2432, "before": "public BasicCredentials(String accessKeyId, String accessKeySecret) {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;}", "after": "public BasicCredentials(string accessKeyId, string accessKeySecret){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;}" }, { "index": 2433, "before": "public String getOldPath() {return oldPath;}", "after": "public virtual string GetOldPath(){return oldPath;}" }, { "index": 2434, "before": "public int nextIndex() {return iterator.nextIndex() - start;}", "after": "public int nextIndex(){return iterator.nextIndex() - start;}" }, { "index": 2435, "before": "public Snapshot deleteClusterSnapshot(DeleteClusterSnapshotRequest request) {request = beforeClientExecution(request);return executeDeleteClusterSnapshot(request);}", "after": "public virtual DeleteClusterSnapshotResponse DeleteClusterSnapshot(DeleteClusterSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteClusterSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteClusterSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2436, "before": "public String getColsNamesForValsByRound() {if (colForValByRound.size() == 0) {return \"\";}StringBuilder sb = new StringBuilder();for (final String colName : colForValByRound.values()) {sb.append(' ').append(colName);}return sb.toString();}", "after": "public virtual string GetColsNamesForValsByRound(){if (colForValByRound.Count == 0){return \"\";}StringBuilder sb = new StringBuilder();foreach (string name in colForValByRound.Keys){string colName = colForValByRound[name];sb.Append(\" \").Append(colName);}return sb.ToString();}" }, { "index": 2437, "before": "public void deprecateActivityType(DeprecateActivityTypeRequest request) {request = beforeClientExecution(request);executeDeprecateActivityType(request);}", "after": "public virtual DeprecateActivityTypeResponse DeprecateActivityType(DeprecateActivityTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeprecateActivityTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = DeprecateActivityTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2438, "before": "public PartETag(int partNumber, String eTag) {this.partNumber = partNumber;this.eTag = eTag;}", "after": "public PartETag(int partNumber, string eTag){this.partNumber = partNumber;this.eTag = eTag;}" }, { "index": 2439, "before": "@Override public boolean remove(Object object) {if (object instanceof Multiset.Entry) {Multiset.Entry entry = (Multiset.Entry) object;Object element = entry.getElement();int entryCount = entry.getCount();return countMap.remove(element, entryCount);}return false;}", "after": "public override bool remove(object o){if (!(o is java.util.MapClass.Entry)){return false;}java.util.MapClass.Entry e = (java.util.MapClass.Entry)o;return this._enclosing.removeMapping(e.getKey(), e.getValue());}" }, { "index": 2440, "before": "public ListAccessControlRulesResult listAccessControlRules(ListAccessControlRulesRequest request) {request = beforeClientExecution(request);return executeListAccessControlRules(request);}", "after": "public virtual ListAccessControlRulesResponse ListAccessControlRules(ListAccessControlRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAccessControlRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAccessControlRulesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2441, "before": "public final CharBuffer get(char[] dst, int srcOffset, int charCount) {if (charCount > remaining()) {throw new BufferUnderflowException();}System.arraycopy(backingArray, offset + position, dst, srcOffset, charCount);position += charCount;return this;}", "after": "public sealed override java.nio.CharBuffer get(char[] dst, int srcOffset, int charCount){if (charCount > remaining()){throw new java.nio.BufferUnderflowException();}System.Array.Copy(backingArray, offset + _position, dst, srcOffset, charCount);_position += charCount;return this;}" }, { "index": 2442, "before": "public DescribeDBClusterBacktracksResult describeDBClusterBacktracks(DescribeDBClusterBacktracksRequest request) {request = beforeClientExecution(request);return executeDescribeDBClusterBacktracks(request);}", "after": "public virtual DescribeDBClusterBacktracksResponse DescribeDBClusterBacktracks(DescribeDBClusterBacktracksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBClusterBacktracksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBClusterBacktracksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2443, "before": "public boolean equals(ATNConfig other) {if (this == other) {return true;}else if (other == null) {return false;}return this.state.stateNumber==other.state.stateNumber&& this.alt==other.alt&& (this.context==other.context || (this.context != null && this.context.equals(other.context)))&& this.semanticContext.equals(other.semanticContext)&& this.isPrecedenceFilterSuppressed() == other.isPrecedenceFilterSuppressed();}", "after": "public virtual bool Equals(ATNConfig other){if (this == other){return true;}else if (other == null){return false;}return this.state.stateNumber == other.state.stateNumber&& this.alt == other.alt&& (this.context == other.context || (this.context != null && this.context.Equals(other.context)))&& this.semanticContext.Equals(other.semanticContext)&& this.IsPrecedenceFilterSuppressed == other.IsPrecedenceFilterSuppressed;}" }, { "index": 2444, "before": "public AbbreviatedObjectId getId(Side side) {return side == Side.OLD ? getOldId() : getNewId();}", "after": "public virtual AbbreviatedObjectId GetId(DiffEntry.Side side){return side == DiffEntry.Side.OLD ? GetOldId() : GetNewId();}" }, { "index": 2445, "before": "public CatLabRecord(RecordInputStream in) {rt = in.readShort();grbitFrt = in.readShort();wOffset = in.readShort();at = in.readShort();grbit = in.readShort();if(in.available() == 0) {unused = null;} else {unused = in.readShort();}}", "after": "public CatLabRecord(RecordInputStream in1){rt = in1.ReadShort();grbitFrt = in1.ReadShort();wOffset = in1.ReadShort();at = in1.ReadShort();grbit = in1.ReadShort();if (in1.Available() == 0){unused = null;}else{unused = in1.ReadShort();}}" }, { "index": 2446, "before": "public String substring(int start, int end) {if (start >= 0 && start <= end && end <= count) {if (start == end) {return \"\";}return new String(value, start, end - start);}throw startEndAndLength(start, end);}", "after": "public virtual string substring(int start, int end){if (start >= 0 && start <= end && end <= count){if (start == end){return string.Empty;}return new string(value, start, end - start);}throw startEndAndLength(start, end);}" }, { "index": 2447, "before": "public int remove(final int index){if (index >= _limit){throw new IndexOutOfBoundsException();}int rval = _array[ index ];System.arraycopy(_array, index + 1, _array, index, _limit - index);_limit--;return rval;}", "after": "public int Remove(int index){if (index >= _limit){throw new IndexOutOfRangeException();}int rval = _array[index];Array.Copy(_array, index + 1, _array, index, _limit - index);_limit--;return rval;}" }, { "index": 2448, "before": "public K getKey() {return super.get();}", "after": "public K getKey(){return base.get();}" }, { "index": 2449, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeInt(unused1);out.writeInt(unused2);}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteInt(unused1);out1.WriteInt(unused2);}" }, { "index": 2450, "before": "public void setDeltaCacheLimit(int size) {deltaCacheLimit = size;}", "after": "public virtual void SetDeltaCacheLimit(int size){deltaCacheLimit = size;}" }, { "index": 2451, "before": "public String toString() {return \"L\";}", "after": "public override string ToString(){return \"L\";}" }, { "index": 2452, "before": "public Map read(String response, String endpoint) {return read(new StringCharacterIterator(response), endpoint, FIRST_POSITION);}", "after": "public Dictionary Read(string response, string endpoint){return Read(response.GetEnumerator(), endpoint);}" }, { "index": 2453, "before": "public DeleteMessageResult deleteMessage(DeleteMessageRequest request) {request = beforeClientExecution(request);return executeDeleteMessage(request);}", "after": "public virtual DeleteMessageResponse DeleteMessage(DeleteMessageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMessageRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMessageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2454, "before": "public SearchFind(boolean isCaseSensitive) {_isCaseSensitive = isCaseSensitive;}", "after": "public SearchFind(bool isCaseSensitive){_isCaseSensitive = isCaseSensitive;}" }, { "index": 2455, "before": "public void setRoleName(String roleName) {if (null == roleName) {throw new NullPointerException(\"You must specifiy a valid role name.\");}this.roleName = roleName;setCredentialUrl();}", "after": "public void SetRoleName(string roleName){if (string.IsNullOrEmpty(roleName)){throw new ArgumentNullException(\"You must specifiy a valid role name.\");}this.roleName = roleName;SetCredentialUrl();}" }, { "index": 2456, "before": "public AllocatePublicVirtualInterfaceResult allocatePublicVirtualInterface(AllocatePublicVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeAllocatePublicVirtualInterface(request);}", "after": "public virtual AllocatePublicVirtualInterfaceResponse AllocatePublicVirtualInterface(AllocatePublicVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AllocatePublicVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = AllocatePublicVirtualInterfaceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2457, "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 << 2) | (byte1 >>> 6);final long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 63) << 4) | (byte2 >>> 4);final long byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 6) | (byte3 >>> 2);final long byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 3) << 8) | byte4;}}", "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 << 2) | ((int)((uint)byte1 >> 6));int byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 63) << 4) | ((int)((uint)byte2 >> 4));int byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 6) | ((int)((uint)byte3 >> 2));int byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 3) << 8) | byte4;}}" }, { "index": 2458, "before": "public DeleteLoadBalancerRequest(String loadBalancerName) {setLoadBalancerName(loadBalancerName);}", "after": "public DeleteLoadBalancerRequest(string loadBalancerName){_loadBalancerName = loadBalancerName;}" }, { "index": 2459, "before": "public PutDeliverabilityDashboardOptionResult putDeliverabilityDashboardOption(PutDeliverabilityDashboardOptionRequest request) {request = beforeClientExecution(request);return executePutDeliverabilityDashboardOption(request);}", "after": "public virtual PutDeliverabilityDashboardOptionResponse PutDeliverabilityDashboardOption(PutDeliverabilityDashboardOptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutDeliverabilityDashboardOptionRequestMarshaller.Instance;options.ResponseUnmarshaller = PutDeliverabilityDashboardOptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2460, "before": "public XPathRuleElement(String ruleName, int ruleIndex) {super(ruleName);this.ruleIndex = ruleIndex;}", "after": "public XPathRuleElement(string ruleName, int ruleIndex): base(ruleName){this.ruleIndex = ruleIndex;}" }, { "index": 2461, "before": "public PullCommand setProgressMonitor(ProgressMonitor monitor) {if (monitor == null) {monitor = NullProgressMonitor.INSTANCE;}this.monitor = monitor;return this;}", "after": "public virtual NGit.Api.PullCommand SetProgressMonitor(ProgressMonitor monitor){this.monitor = monitor;return this;}" }, { "index": 2462, "before": "public static final RevFilter after(long ts) {return new After(ts);}", "after": "public static RevFilter After(long ts){return new CommitTimeRevFilterAfter(ts);}" }, { "index": 2463, "before": "public final String toString() {StringBuilder sb = new StringBuilder(64);sb.append(getClass().getName()).append(\" [len=\");sb.append(field_2_subex_len);sb.append(\"]\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(this.GetType().Name).Append(\" [len=\");sb.Append(field_2_subex_len);sb.Append(\"]\");return sb.ToString();}" }, { "index": 2464, "before": "public DeleteRoomResult deleteRoom(DeleteRoomRequest request) {request = beforeClientExecution(request);return executeDeleteRoom(request);}", "after": "public virtual DeleteRoomResponse DeleteRoom(DeleteRoomRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRoomRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRoomResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2465, "before": "public ScandinavianNormalizationFilter create(TokenStream input) {return new ScandinavianNormalizationFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new ScandinavianNormalizationFilter(input);}" }, { "index": 2466, "before": "public ValidateTemplateResult validateTemplate(ValidateTemplateRequest request) {request = beforeClientExecution(request);return executeValidateTemplate(request);}", "after": "public virtual ValidateTemplateResponse ValidateTemplate(ValidateTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = ValidateTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = ValidateTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2467, "before": "public ListBranchCommand branchList() {return new ListBranchCommand(repo);}", "after": "public virtual ListBranchCommand BranchList(){return new ListBranchCommand(repo);}" }, { "index": 2468, "before": "public String toString() {return getClass().getSimpleName() + \"[\" + getEntryPathString() + \"]\"; }", "after": "public override string ToString(){return GetType().Name + \"[\" + EntryPathString + \"]\";}" }, { "index": 2469, "before": "public final Edit before(Edit cut) {return new Edit(beginA, cut.beginA, beginB, cut.beginB);}", "after": "public NGit.Diff.Edit Before(NGit.Diff.Edit cut){return new NGit.Diff.Edit(beginA, cut.beginA, beginB, cut.beginB);}" }, { "index": 2470, "before": "public String toString() {if ( symbol.getType() == Token.EOF ) return \"\";return symbol.getText();}", "after": "public override string ToString(){if (Symbol != null){if (Symbol.Type == TokenConstants.EOF){return \"\";}return Symbol.Text;}else{return \"\";}}" }, { "index": 2471, "before": "public DeleteDeploymentStrategyResult deleteDeploymentStrategy(DeleteDeploymentStrategyRequest request) {request = beforeClientExecution(request);return executeDeleteDeploymentStrategy(request);}", "after": "public virtual DeleteDeploymentStrategyResponse DeleteDeploymentStrategy(DeleteDeploymentStrategyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDeploymentStrategyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDeploymentStrategyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2472, "before": "public GetModelResult getModel(GetModelRequest request) {request = beforeClientExecution(request);return executeGetModel(request);}", "after": "public virtual GetModelResponse GetModel(GetModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetModelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetModelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2473, "before": "public DescribeUserResult describeUser(DescribeUserRequest request) {request = beforeClientExecution(request);return executeDescribeUser(request);}", "after": "public virtual DescribeUserResponse DescribeUser(DescribeUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUserRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUserResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2474, "before": "public ListSnapshotBlocksResult listSnapshotBlocks(ListSnapshotBlocksRequest request) {request = beforeClientExecution(request);return executeListSnapshotBlocks(request);}", "after": "public virtual ListSnapshotBlocksResponse ListSnapshotBlocks(ListSnapshotBlocksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSnapshotBlocksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSnapshotBlocksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2475, "before": "public ByteBuffer putShort(int index, short value) {checkIndex(index, SizeOf.SHORT);Memory.pokeShort(backingArray, offset + index, value, order);return this;}", "after": "public override java.nio.ByteBuffer putShort(int index, short value){checkIndex(index, libcore.io.SizeOf.SHORT);libcore.io.Memory.pokeShort(backingArray, offset + index, value, _order);return this;}" }, { "index": 2476, "before": "public ResetCommand reset() {return new ResetCommand(repo);}", "after": "public virtual ResetCommand Reset(){return new ResetCommand(repo);}" }, { "index": 2477, "before": "public Snapshot createClusterSnapshot(CreateClusterSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateClusterSnapshot(request);}", "after": "public virtual CreateClusterSnapshotResponse CreateClusterSnapshot(CreateClusterSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateClusterSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateClusterSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2478, "before": "public void setCachedResultTypeEmptyString() {specialCachedValue = FormulaSpecialCachedValue.createCachedEmptyValue();}", "after": "public void SetCachedResultTypeEmptyString(){specialCachedValue = SpecialCachedValue.CreateCachedEmptyValue();}" }, { "index": 2479, "before": "public DeleteIdentityPolicyResult deleteIdentityPolicy(DeleteIdentityPolicyRequest request) {request = beforeClientExecution(request);return executeDeleteIdentityPolicy(request);}", "after": "public virtual DeleteIdentityPolicyResponse DeleteIdentityPolicy(DeleteIdentityPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIdentityPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIdentityPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2480, "before": "public int IncRef() {if (!initDone) {initDone = true;} else {assert count > 0: Thread.currentThread().getName() + \": RefCount is 0 pre-increment for file \\\"\" + fileName + \"\\\"\";}return ++count;}", "after": "public int IncRef(){if (!initDone){initDone = true;}else{Debug.Assert(count > 0, Thread.CurrentThread.Name + \": RefCount is 0 pre-increment for file \\\"\" + fileName + \"\\\"\");}return ++count;}" }, { "index": 2481, "before": "public void fromRaw(byte[] bs) {fromRaw(bs, 0);}", "after": "public virtual void FromRaw(byte[] bs){FromRaw(bs, 0);}" }, { "index": 2482, "before": "public LeftMarginRecord clone() {return copy();}", "after": "public override Object Clone(){LeftMarginRecord rec = new LeftMarginRecord();rec.field_1_margin = this.field_1_margin;return rec;}" }, { "index": 2483, "before": "public FailedPredicateException(Parser recognizer,String predicate,String message){super(formatMessage(predicate, message), recognizer, recognizer.getInputStream(), recognizer._ctx);ATNState s = recognizer.getInterpreter().atn.states.get(recognizer.getState());AbstractPredicateTransition trans = (AbstractPredicateTransition)s.transition(0);if (trans instanceof PredicateTransition) {this.ruleIndex = ((PredicateTransition)trans).ruleIndex;this.predicateIndex = ((PredicateTransition)trans).predIndex;}else {this.ruleIndex = 0;this.predicateIndex = 0;}this.predicate = predicate;this.setOffendingToken(recognizer.getCurrentToken());}", "after": "public FailedPredicateException(Parser recognizer, string predicate, string message): base(FormatMessage(predicate, message), recognizer, ((ITokenStream)recognizer.InputStream), recognizer.RuleContext){ATNState s = recognizer.Interpreter.atn.states[recognizer.State];AbstractPredicateTransition trans = (AbstractPredicateTransition)s.Transition(0);if (trans is PredicateTransition){this.ruleIndex = ((PredicateTransition)trans).ruleIndex;this.predicateIndex = ((PredicateTransition)trans).predIndex;}else{this.ruleIndex = 0;this.predicateIndex = 0;}this.predicate = predicate;this.OffendingToken = recognizer.CurrentToken;}" }, { "index": 2484, "before": "public int normalize(char s[], int len) {for (int i = 0; i < len; i++) {switch (s[i]) {case ALEF_MADDA:case ALEF_HAMZA_ABOVE:case ALEF_HAMZA_BELOW:s[i] = ALEF;break;case DOTLESS_YEH:s[i] = YEH;break;case TEH_MARBUTA:s[i] = HEH;break;case TATWEEL:case KASRATAN:case DAMMATAN:case FATHATAN:case FATHA:case DAMMA:case KASRA:case SHADDA:case SUKUN: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 ALEF_MADDA:case ALEF_HAMZA_ABOVE:case ALEF_HAMZA_BELOW:s[i] = ALEF;break;case DOTLESS_YEH:s[i] = YEH;break;case TEH_MARBUTA:s[i] = HEH;break;case TATWEEL:case KASRATAN:case DAMMATAN:case FATHATAN:case FATHA:case DAMMA:case KASRA:case SHADDA:case SUKUN:len = StemmerUtil.Delete(s, i, len);i--;break;default:break;}}return len;}" }, { "index": 2485, "before": "public static int idealCharArraySize(int need) {return idealByteArraySize(need * 2) / 2;}", "after": "public static int idealCharArraySize(int need){return idealByteArraySize(need * 2) / 2;}" }, { "index": 2486, "before": "public void setObjectId(AnyObjectId obj, int objType) {object = obj.copy();type = objType;}", "after": "public virtual void SetObjectId(AnyObjectId obj, int objType){@object = obj.Copy();type = objType;}" }, { "index": 2487, "before": "public ValueEval getItem(int index) {if (index != 0) {throw new RuntimeException(\"Invalid index (\"+ index + \") only zero is allowed\");}return _value;}", "after": "public ValueEval GetItem(int index){if (index != 0){throw new ArgumentException(\"Invalid index (\"+ index + \") only zero is allowed\");}return _value;}" }, { "index": 2488, "before": "public AND(SemanticContext a, SemanticContext b) {Set operands = new HashSet();if ( a instanceof AND ) operands.addAll(Arrays.asList(((AND)a).opnds));else operands.add(a);if ( b instanceof AND ) operands.addAll(Arrays.asList(((AND)b).opnds));else operands.add(b);List precedencePredicates = filterPrecedencePredicates(operands);if (!precedencePredicates.isEmpty()) {PrecedencePredicate reduced = Collections.min(precedencePredicates);operands.add(reduced);}opnds = operands.toArray(new SemanticContext[operands.size()]);}", "after": "public AND(SemanticContext a, SemanticContext b){HashSet operands = new HashSet();if (a is SemanticContext.AND){operands.UnionWith(((AND)a).opnds);}else{operands.Add(a);}if (b is SemanticContext.AND){operands.UnionWith(((AND)b).opnds);}else{operands.Add(b);}IList precedencePredicates = FilterPrecedencePredicates(operands);if (precedencePredicates.Count > 0){SemanticContext.PrecedencePredicate reduced = precedencePredicates.Min();operands.Add(reduced);}opnds = operands.ToArray();}" }, { "index": 2489, "before": "public GetCampaignVersionResult getCampaignVersion(GetCampaignVersionRequest request) {request = beforeClientExecution(request);return executeGetCampaignVersion(request);}", "after": "public virtual GetCampaignVersionResponse GetCampaignVersion(GetCampaignVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCampaignVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCampaignVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2490, "before": "public SeriesTextRecord(RecordInputStream in) {field_1_id = in.readUShort();int field_2_textLength = in.readUByte();is16bit = (in.readUByte() & 0x01) != 0;if (is16bit) {field_4_text = in.readUnicodeLEString(field_2_textLength);} else {field_4_text = in.readCompressedUnicode(field_2_textLength);}}", "after": "public SeriesTextRecord(RecordInputStream in1){field_1_id = in1.ReadShort();int field_2_textLength = (byte)in1.ReadByte();is16bit = (in1.ReadUByte() & 0x01) != 0;if (is16bit){field_4_text = in1.ReadUnicodeLEString(field_2_textLength);}else{field_4_text = in1.ReadCompressedUnicode(field_2_textLength);}}" }, { "index": 2491, "before": "public void writeUTF(String value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeUTF(value);}", "after": "public virtual void writeUTF(string value){throw new System.NotImplementedException();}" }, { "index": 2492, "before": "public DeleteCacheSubnetGroupResult deleteCacheSubnetGroup(DeleteCacheSubnetGroupRequest request) {request = beforeClientExecution(request);return executeDeleteCacheSubnetGroup(request);}", "after": "public virtual DeleteCacheSubnetGroupResponse DeleteCacheSubnetGroup(DeleteCacheSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCacheSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCacheSubnetGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2493, "before": "public Tab getItem(int position) {return mTabs.get(position);}", "after": "public override object getItem(int position){return ((android.widget.@internal.ScrollingTabContainerView.TabView)this._enclosing.mTabLayout.getChildAt(position)).getTab();}" }, { "index": 2494, "before": "public int createFormat(String formatString) {maxformatid = maxformatid >= 0xa4 ? maxformatid + 1 : 0xa4; FormatRecord rec = new FormatRecord(maxformatid, formatString);int pos = 0;while ( pos < records.size() && records.get( pos ).getSid() != FormatRecord.sid ) {pos++;}pos += formats.size();formats.add( rec );records.add( pos, rec );return maxformatid;}", "after": "public int CreateFormat(String formatString){maxformatid = maxformatid >= (short)0xa4 ? (short)(maxformatid + 1) : (short)0xa4; FormatRecord rec = new FormatRecord(maxformatid, formatString);int pos = 0;while (pos < records.Count && records[pos].Sid != FormatRecord.sid)pos++;pos += formats.Count;formats.Add(rec);records.Add(pos, rec);return maxformatid;}" }, { "index": 2495, "before": "public ListDeploymentStrategiesResult listDeploymentStrategies(ListDeploymentStrategiesRequest request) {request = beforeClientExecution(request);return executeListDeploymentStrategies(request);}", "after": "public virtual ListDeploymentStrategiesResponse ListDeploymentStrategies(ListDeploymentStrategiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeploymentStrategiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeploymentStrategiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2496, "before": "public CreateLoginProfileRequest(String userName, String password) {setUserName(userName);setPassword(password);}", "after": "public CreateLoginProfileRequest(string userName, string password){_userName = userName;_password = password;}" }, { "index": 2497, "before": "public String getMetadata() throws ClientException {HttpRequest request = new HttpRequest(credentialUrl.toString());request.setSysMethod(MethodType.GET);request.setSysConnectTimeout(connectionTimeoutInMilliseconds);request.setSysReadTimeout(connectionTimeoutInMilliseconds);HttpResponse response;try {response = CompatibleUrlConnClient.compatibleGetResponse(request);} catch (Exception e) {throw new ClientException(\"Failed to connect ECS Metadata Service: \" + e.toString());}if (response.getStatus() != HttpURLConnection.HTTP_OK) {throw new ClientException(ECS_METADAT_FETCH_ERROR_MSG + \" HttpCode=\" + response.getStatus());}return new String(response.getHttpContent());}", "after": "public string GetMetadata(){var request = new HttpRequest(credentialUrl);request.Method = MethodType.GET;request.SetConnectTimeoutInMilliSeconds(connectionTimeoutInMilliseconds);HttpResponse response;try{response = GetResponse(request);}catch (WebException e){throw new ClientException(\"Failed to connect ECS Metadata Service: \" + e);}if (response.Status != 200){throw new ClientException(ECS_METADAT_FETCH_ERROR_MSG + \" HttpCode=\" + response.Status);}return Encoding.UTF8.GetString(response.Content);}" }, { "index": 2498, "before": "public void setAbbreviationLength(int count) {if (count < 0)throw new IllegalArgumentException(JGitText.get().abbreviationLengthMustBeNonNegative);abbreviationLength = count;}", "after": "public virtual void SetAbbreviationLength(int count){if (count < 0){throw new ArgumentException(JGitText.Get().abbreviationLengthMustBeNonNegative);}abbreviationLength = count;}" }, { "index": 2499, "before": "public SearchFacesByImageResult searchFacesByImage(SearchFacesByImageRequest request) {request = beforeClientExecution(request);return executeSearchFacesByImage(request);}", "after": "public virtual SearchFacesByImageResponse SearchFacesByImage(SearchFacesByImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchFacesByImageRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchFacesByImageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2500, "before": "public ListMonitoringSchedulesResult listMonitoringSchedules(ListMonitoringSchedulesRequest request) {request = beforeClientExecution(request);return executeListMonitoringSchedules(request);}", "after": "public virtual ListMonitoringSchedulesResponse ListMonitoringSchedules(ListMonitoringSchedulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListMonitoringSchedulesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListMonitoringSchedulesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2501, "before": "public static double[] grow(double[] array) {return grow(array, 1 + array.length);}", "after": "public static double[] Grow(double[] array){return Grow(array, 1 + array.Length);}" }, { "index": 2502, "before": "public E next() {if (index < to) {return (E) snapshot[index++];} else {throw new NoSuchElementException();}}", "after": "public virtual E next(){if (index < to){return (E)snapshot[index++];}else{throw new java.util.NoSuchElementException();}}" }, { "index": 2503, "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 = Imaginary.COMPLEX_NUMBER_PATTERN.matcher(iNumber);boolean result = m.matches();String real = \"\";if (result) {String realGroup = m.group(2);boolean hasRealPart = realGroup.length() != 0;if (realGroup.length() == 0) {return new StringEval(String.valueOf(0));}if (hasRealPart) {String sign = \"\";String realSign = m.group(Imaginary.GROUP1_REAL_SIGN);if (realSign.length() != 0 && !(realSign.equals(\"+\"))) {sign = realSign;}String groupRealNumber = m.group(Imaginary.GROUP2_IMAGINARY_INTEGER_OR_DOUBLE);if (groupRealNumber.length() != 0) {real = sign + groupRealNumber;} else {real = sign + \"1\";}}} else {return ErrorEval.NUM_ERROR;}return new StringEval(real);}", "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 = Imaginary.COMPLEX_NUMBER_PATTERN.Match(iNumber);bool result = m.Success && !string.IsNullOrEmpty(m.Groups[0].Value);String real = \"\";if (result == true){String realGroup = m.Groups[(2)].Value;bool hasRealPart = realGroup.Length != 0;if (realGroup.Length == 0){return new StringEval(Convert.ToString(0));}if (hasRealPart){String sign = \"\";String realSign = m.Groups[(Imaginary.GROUP1_REAL_SIGN)].Value;if (realSign.Length != 0 && !(realSign.Equals(\"+\"))){sign = realSign;}String groupRealNumber = m.Groups[(Imaginary.GROUP2_IMAGINARY_INTEGER_OR_DOUBLE)].Value;if (groupRealNumber.Length != 0){real = sign + groupRealNumber;}else{real = sign + \"1\";}}}else{return ErrorEval.NUM_ERROR;}return new StringEval(real);}" }, { "index": 2504, "before": "public PlacementType(String availabilityZone) {setAvailabilityZone(availabilityZone);}", "after": "public PlacementType(string availabilityZone){_availabilityZone = availabilityZone;}" }, { "index": 2505, "before": "public UpdateDomainResult updateDomain(UpdateDomainRequest request) {request = beforeClientExecution(request);return executeUpdateDomain(request);}", "after": "public virtual UpdateDomainResponse UpdateDomain(UpdateDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2506, "before": "public byte[] serialize(){byte[] retval = new byte[getRecordSize()];serialize( 0, retval );return retval;}", "after": "public byte[] Serialize(){byte[] retval = new byte[RecordSize];int length=Serialize(0, retval);return retval;}" }, { "index": 2507, "before": "public GetLoadBalancerResult getLoadBalancer(GetLoadBalancerRequest request) {request = beforeClientExecution(request);return executeGetLoadBalancer(request);}", "after": "public virtual GetLoadBalancerResponse GetLoadBalancer(GetLoadBalancerRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetLoadBalancerRequestMarshaller.Instance;options.ResponseUnmarshaller = GetLoadBalancerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2508, "before": "public ModifyTrafficMirrorFilterRuleResult modifyTrafficMirrorFilterRule(ModifyTrafficMirrorFilterRuleRequest request) {request = beforeClientExecution(request);return executeModifyTrafficMirrorFilterRule(request);}", "after": "public virtual ModifyTrafficMirrorFilterRuleResponse ModifyTrafficMirrorFilterRule(ModifyTrafficMirrorFilterRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyTrafficMirrorFilterRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyTrafficMirrorFilterRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2509, "before": "public void resize(double scaleX, double scaleY) {HSSFClientAnchor anchor = getClientAnchor();anchor.setAnchorType(AnchorType.MOVE_DONT_RESIZE);HSSFClientAnchor pref = getPreferredSize(scaleX,scaleY);int row2 = anchor.getRow1() + (pref.getRow2() - pref.getRow1());int col2 = anchor.getCol1() + (pref.getCol2() - pref.getCol1());anchor.setCol2((short)col2);anchor.setDx2(pref.getDx2());anchor.setRow2(row2);anchor.setDy2(pref.getDy2());}", "after": "public void Resize(double scaleX, double scaleY){HSSFClientAnchor anchor = (HSSFClientAnchor)ClientAnchor;anchor.AnchorType = AnchorType.MoveDontResize;HSSFClientAnchor pref = GetPreferredSize(scaleX, scaleY) as HSSFClientAnchor;int row2 = anchor.Row1 + (pref.Row2 - pref.Row1);int col2 = anchor.Col1 + (pref.Col2 - pref.Col1);anchor.Col2=((short)col2);anchor.Dx2=(pref.Dx2);anchor.Row2 = (row2);anchor.Dy2 = (pref.Dy2);}" }, { "index": 2510, "before": "public void reset() throws IOException {throw new IOException(\"mark/reset not supported\");}", "after": "public override void reset(){throw new System.IO.IOException(\"mark/reset not supported\");}" }, { "index": 2511, "before": "public Body(Content text) {setText(text);}", "after": "public Body(Content text){_text = text;}" }, { "index": 2512, "before": "public StaticCredentialsProvider(IClientProfile clientProfile) {IClientProfile clientProfile1 = clientProfile;Credential legacyCredential = clientProfile1.getCredential();if (null != legacyCredential.getSecurityToken()) {this.credentials = new BasicSessionCredentials(legacyCredential.getAccessKeyId(), legacyCredential.getAccessSecret(), legacyCredential.getSecurityToken());} else {this.credentials = new LegacyCredentials(legacyCredential);}}", "after": "public StaticCredentialsProvider(IClientProfile clientProfile){this.clientProfile = clientProfile;var legacyCredential = this.clientProfile.GetCredential();if (null != legacyCredential.SecurityToken){credentials = new BasicSessionCredentials(legacyCredential.AccessKeyId,legacyCredential.AccessSecret,legacyCredential.SecurityToken);}else{credentials = new LegacyCredentials(legacyCredential);}}" }, { "index": 2513, "before": "public synchronized V get(Object key) {int hash = key.hashCode();hash ^= (hash >>> 20) ^ (hash >>> 12);hash ^= (hash >>> 7) ^ (hash >>> 4);HashtableEntry[] tab = table;for (HashtableEntry e = tab[hash & (tab.length - 1)];e != null; e = e.next) {K eKey = e.key;if (eKey == key || (e.hash == hash && key.equals(eKey))) {return e.value;}}return null;}", "after": "public override V get(object key){lock (this){int hash = key.GetHashCode();hash ^= ((int)(((uint)hash) >> 20)) ^ ((int)(((uint)hash) >> 12));hash ^= ((int)(((uint)hash) >> 7)) ^ ((int)(((uint)hash) >> 4));java.util.Hashtable.HashtableEntry[] tab = table;{for (java.util.Hashtable.HashtableEntry e = tab[hash & (tab.Length - 1)]; e!= null; e = e.next){K eKey = e.key;if (Sharpen.Util.Equals(eKey, key) || (e.hash == hash && key.Equals(eKey))){return e.value;}}}return default(V);}}" }, { "index": 2514, "before": "public void keep(int pos, int cnt) {beforeAdd(cache.getEntry(pos));fastKeep(pos, cnt);}", "after": "public virtual void Keep(int pos, int cnt){BeforeAdd(cache.GetEntry(pos));FastKeep(pos, cnt);}" }, { "index": 2515, "before": "public TableStylesRecord(RecordInputStream in) {rt = in.readUShort();grbitFrt = in.readUShort();in.readFully(unused);cts = in.readInt();int cchDefListStyle = in.readUShort();int cchDefPivotStyle = in.readUShort();rgchDefListStyle = in.readUnicodeLEString(cchDefListStyle);rgchDefPivotStyle = in.readUnicodeLEString(cchDefPivotStyle);}", "after": "public TableStylesRecord(RecordInputStream in1){rt = in1.ReadUShort();grbitFrt = in1.ReadUShort();in1.ReadFully(unused);cts = in1.ReadInt();int cchDefListStyle = in1.ReadUShort();int cchDefPivotStyle = in1.ReadUShort();rgchDefListStyle = in1.ReadUnicodeLEString(cchDefListStyle);rgchDefPivotStyle = in1.ReadUnicodeLEString(cchDefPivotStyle);}" }, { "index": 2516, "before": "public AddAttributesToFindingsResult addAttributesToFindings(AddAttributesToFindingsRequest request) {request = beforeClientExecution(request);return executeAddAttributesToFindings(request);}", "after": "public virtual AddAttributesToFindingsResponse AddAttributesToFindings(AddAttributesToFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddAttributesToFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = AddAttributesToFindingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2517, "before": "public CellElapsedFormatter(String pattern) {super(pattern);specs = new ArrayList<>();StringBuffer desc = CellFormatPart.parseFormat(pattern,CellFormatType.ELAPSED, new ElapsedPartHandler());ListIterator it = specs.listIterator(specs.size());while (it.hasPrevious()) {TimeSpec spec = it.previous();desc.replace(spec.pos, spec.pos + spec.len, \"%0\" + spec.len + \"d\");if (spec.type != topmost.type) {spec.modBy = modFor(spec.type, spec.len);}}printfFmt = desc.toString();}", "after": "public CellElapsedFormatter(String pattern): base(pattern){specs = new List();StringBuilder desc = CellFormatPart.ParseFormat(pattern,CellFormatType.ELAPSED, new ElapsedPartHandler(this));for(int i=specs.Count-1;i>=0;i--){TimeSpec spec = specs[i];desc.Remove(spec.pos, spec.len);desc.Insert(spec.pos, \"D\" + spec.len);if (spec.type != topmost.type){spec.modBy = modFor(spec.type, spec.len);}}printfFmt = desc.ToString();}" }, { "index": 2518, "before": "public final int capacity() {return capacity;}", "after": "public int capacity(){return _capacity;}" }, { "index": 2519, "before": "public final boolean matches(char c) {return Character.isWhitespace(c);}", "after": "public bool Matches(char c){return char.IsWhiteSpace(c);}" }, { "index": 2520, "before": "public BytesRef get(int bytesID, BytesRef ref) {assert bytesStart != null : \"bytesStart is null - not initialized\";assert bytesID < bytesStart.length: \"bytesID exceeds byteStart len: \" + bytesStart.length;pool.setBytesRef(ref, bytesStart[bytesID]);return ref;}", "after": "public BytesRef Get(int bytesID, BytesRef @ref){Debug.Assert(bytesStart != null, \"bytesStart is null - not initialized\");Debug.Assert(bytesID < bytesStart.Length, \"bytesID exceeds byteStart len: \" + bytesStart.Length);pool.SetBytesRef(@ref, bytesStart[bytesID]);return @ref;}" }, { "index": 2521, "before": "public void run() {display = true;}", "after": "public virtual void Run(){display = true;}" }, { "index": 2522, "before": "public UpdateMatchmakingConfigurationResult updateMatchmakingConfiguration(UpdateMatchmakingConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateMatchmakingConfiguration(request);}", "after": "public virtual UpdateMatchmakingConfigurationResponse UpdateMatchmakingConfiguration(UpdateMatchmakingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateMatchmakingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateMatchmakingConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2523, "before": "public boolean isGroup(char c) {return groupMap[characterCategoryMap[c]];}", "after": "public bool IsGroup(char c){return groupMap[characterCategoryMap[c]];}" }, { "index": 2524, "before": "public void setTraverseEmptyCells(boolean traverseEmptyCells) {this.traverseEmptyCells = traverseEmptyCells;}", "after": "public void SetTraverseEmptyCells(bool traverseEmptyCells){this.traverseEmptyCells = traverseEmptyCells;}" }, { "index": 2525, "before": "public ListPresetsResult listPresets(ListPresetsRequest request) {request = beforeClientExecution(request);return executeListPresets(request);}", "after": "public virtual ListPresetsResponse ListPresets(ListPresetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPresetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPresetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2526, "before": "@Override public Set keySet() {Set ks = keySet;return (ks != null) ? ks : (keySet = new KeySet());}", "after": "public override java.util.Set keySet(){java.util.Set ks = _keySet;return (ks != null) ? ks : (_keySet = new java.util.HashMap.KeySet(this));}" }, { "index": 2527, "before": "public void include(Ref r) {include(r.getName(), r.getObjectId());if (r.getPeeledObjectId() != null)tagTargets.add(r.getPeeledObjectId());else if (r.getObjectId() != null&& r.getName().startsWith(Constants.R_HEADS))tagTargets.add(r.getObjectId());}", "after": "public virtual void Include(Ref r){Include(r.GetName(), r.GetObjectId());if (r.GetPeeledObjectId() != null){tagTargets.AddItem(r.GetPeeledObjectId());}else{if (r.GetObjectId() != null && r.GetName().StartsWith(Constants.R_HEADS)){tagTargets.AddItem(r.GetObjectId());}}}" }, { "index": 2528, "before": "public CharBuffer get(char[] dst, int dstOffset, int charCount) {byteBuffer.limit(limit * SizeOf.CHAR);byteBuffer.position(position * SizeOf.CHAR);if (byteBuffer instanceof DirectByteBuffer) {((DirectByteBuffer) byteBuffer).get(dst, dstOffset, charCount);} else {((HeapByteBuffer) byteBuffer).get(dst, dstOffset, charCount);}this.position += charCount;return this;}", "after": "public override java.nio.CharBuffer get(char[] dst, int dstOffset, int charCount){byteBuffer.limit(_limit * libcore.io.SizeOf.CHAR);byteBuffer.position(_position * libcore.io.SizeOf.CHAR);if (byteBuffer is java.nio.DirectByteBuffer){((java.nio.DirectByteBuffer)byteBuffer).get(dst, dstOffset, charCount);}else{((java.nio.HeapByteBuffer)byteBuffer).get(dst, dstOffset, charCount);}this._position += charCount;return this;}" }, { "index": 2529, "before": "public BytesRef subtract(BytesRef output, BytesRef inc) {assert output != null;assert inc != null;if (inc == NO_OUTPUT) {return output;} else {assert StringHelper.startsWith(output, inc);if (inc.length == output.length) {return NO_OUTPUT;} else {assert inc.length < output.length: \"inc.length=\" + inc.length + \" vs output.length=\" + output.length;assert inc.length > 0;return new BytesRef(output.bytes, output.offset + inc.length, output.length-inc.length);}}}", "after": "public override BytesRef Subtract(BytesRef output, BytesRef inc){Debug.Assert(output != null);Debug.Assert(inc != null);if (inc == NO_OUTPUT){return output;}else if (inc.Length == output.Length){return NO_OUTPUT;}else{Debug.Assert(inc.Length < output.Length, \"inc.length=\" + inc.Length + \" vs output.length=\" + output.Length);Debug.Assert(inc.Length > 0);return new BytesRef(output.Bytes, output.Offset + inc.Length, output.Length - inc.Length);}}" }, { "index": 2530, "before": "public boolean isKanji(char c) {final byte characterClass = characterCategoryMap[c];return characterClass == KANJI || characterClass == KANJINUMERIC;}", "after": "public bool IsKanji(char c){byte characterClass = characterCategoryMap[c];return characterClass == KANJI || characterClass == KANJINUMERIC;}" }, { "index": 2531, "before": "public int getType() {return type;}", "after": "public override int GetType(){return type;}" }, { "index": 2532, "before": "public ValueEval getItem(int index) {if(index > _size) {throw new ArrayIndexOutOfBoundsException(\"Specified index (\" + index+ \") is outside the allowed range (0..\" + (_size-1) + \")\");}return _tableArray.getValue(index, _columnIndex);}", "after": "public ValueEval GetItem(int index){if (index > _size){throw new IndexOutOfRangeException(\"Specified index (\" + index+ \") is outside the allowed range (0..\" + (_size - 1) + \")\");}return _tableArray.GetRelativeValue(index, _columnIndex);}" }, { "index": 2533, "before": "public void writeDouble(double v) {writeContinueIfRequired(8);_ulrOutput.writeDouble(v);}", "after": "public void WriteDouble(double v){_out.WriteDouble(v);_size += 8;}" }, { "index": 2534, "before": "final public QueryNode ConjQuery(CharSequence field) throws ParseException {QueryNode first, c;Vector clauses = null;first = ModClause(field);label_3:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case AND:;break;default:jj_la1[4] = jj_gen;break label_3;}jj_consume_token(AND);c = ModClause(field);if (clauses == null) {clauses = new Vector();clauses.addElement(first);}clauses.addElement(c);}if (clauses != null) {{if (true) return new AndQueryNode(clauses);}} else {{if (true) return first;}}throw new Error(\"Missing return statement in function\");}", "after": "public IQueryNode ConjQuery(string field){IQueryNode first, c;List clauses = null;first = ModClause(field);while (true){switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.AND:;break;default:jj_la1[6] = jj_gen;goto label_3_break;}Jj_consume_token(RegexpToken.AND);c = ModClause(field);if (clauses == null){clauses = new List();clauses.Add(first);}clauses.Add(c);}label_3_break:if (clauses != null){{ if (true) return new AndQueryNode(clauses); }}else{{ if (true) return first; }}throw new Exception(\"Missing return statement in function\");}" }, { "index": 2535, "before": "public void setRevFilter(RevFilter newFilter) {assertNotStarted();filter = newFilter != null ? newFilter : RevFilter.ALL;}", "after": "public virtual void SetRevFilter(RevFilter newFilter){AssertNotStarted();filter = newFilter != null ? newFilter : RevFilter.ALL;}" }, { "index": 2536, "before": "public void setText(final char array[], int start, int length) {this.array = array;this.start = start;this.index = start;this.length = length;this.limit = start + length;}", "after": "public virtual void SetText(char[] array, int start, int length){this.array = array;this.start = start;this.index = start;this.length = length;this.limit = start + length;}" }, { "index": 2537, "before": "public GetVoiceChannelResult getVoiceChannel(GetVoiceChannelRequest request) {request = beforeClientExecution(request);return executeGetVoiceChannel(request);}", "after": "public virtual GetVoiceChannelResponse GetVoiceChannel(GetVoiceChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2538, "before": "public RevokeSecurityGroupIngressResult revokeSecurityGroupIngress(RevokeSecurityGroupIngressRequest request) {request = beforeClientExecution(request);return executeRevokeSecurityGroupIngress(request);}", "after": "public virtual RevokeSecurityGroupIngressResponse RevokeSecurityGroupIngress(RevokeSecurityGroupIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeSecurityGroupIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeSecurityGroupIngressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2539, "before": "public DoubleBuffer slice() {byteBuffer.limit(limit * SizeOf.DOUBLE);byteBuffer.position(position * SizeOf.DOUBLE);ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());DoubleBuffer result = new DoubleToByteBufferAdapter(bb);byteBuffer.clear();return result;}", "after": "public override java.nio.DoubleBuffer slice(){byteBuffer.limit(_limit * libcore.io.SizeOf.DOUBLE);byteBuffer.position(_position * libcore.io.SizeOf.DOUBLE);java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());java.nio.DoubleBuffer result = new java.nio.DoubleToByteBufferAdapter(bb);byteBuffer.clear();return result;}" }, { "index": 2540, "before": "public DoubleValuesSource makeDistanceValueSource(Point queryPoint, double multiplier) {return new DistanceValueSource(this, queryPoint, multiplier);}", "after": "public override ValueSource MakeDistanceValueSource(IPoint queryPoint, double multiplier){return new DistanceValueSource(this, queryPoint, multiplier);}" }, { "index": 2541, "before": "public String toString() {final StringBuilder r = new StringBuilder();final SimpleDateFormat dtfmt;dtfmt = new SimpleDateFormat(\"EEE MMM d HH:mm:ss yyyy Z\", Locale.US);dtfmt.setTimeZone(getTimeZone());r.append(\"PersonIdent[\");r.append(getName());r.append(\", \");r.append(getEmailAddress());r.append(\", \");r.append(dtfmt.format(Long.valueOf(when)));r.append(\"]\");return r.toString();}", "after": "public override string ToString(){StringBuilder r = new StringBuilder();SimpleDateFormat dtfmt;dtfmt = new SimpleDateFormat(\"EEE MMM d HH:mm:ss yyyy Z\", CultureInfo.InvariantCulture);dtfmt.SetTimeZone(GetTimeZone());r.Append(\"PersonIdent[\");r.Append(GetName());r.Append(\", \");r.Append(GetEmailAddress());r.Append(\", \");r.Append(dtfmt.Format(Sharpen.Extensions.ValueOf(when)));r.Append(\"]\");return r.ToString();}" }, { "index": 2542, "before": "public ArabicStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public ArabicStemFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 2543, "before": "public int getIndex() {return offset;}", "after": "public int getIndex(){return offset;}" }, { "index": 2544, "before": "public ListVoiceConnectorsResult listVoiceConnectors(ListVoiceConnectorsRequest request) {request = beforeClientExecution(request);return executeListVoiceConnectors(request);}", "after": "public virtual ListVoiceConnectorsResponse ListVoiceConnectors(ListVoiceConnectorsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListVoiceConnectorsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListVoiceConnectorsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2545, "before": "public GetOperationResult getOperation(GetOperationRequest request) {request = beforeClientExecution(request);return executeGetOperation(request);}", "after": "public virtual GetOperationResponse GetOperation(GetOperationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOperationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOperationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2546, "before": "public Item(String name, java.util.List attributes) {setName(name);setAttributes(attributes);}", "after": "public Item(string name, List attributes){_name = name;_attributes = attributes;}" }, { "index": 2547, "before": "public SetIdentityHeadersInNotificationsEnabledResult setIdentityHeadersInNotificationsEnabled(SetIdentityHeadersInNotificationsEnabledRequest request) {request = beforeClientExecution(request);return executeSetIdentityHeadersInNotificationsEnabled(request);}", "after": "public virtual SetIdentityHeadersInNotificationsEnabledResponse SetIdentityHeadersInNotificationsEnabled(SetIdentityHeadersInNotificationsEnabledRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetIdentityHeadersInNotificationsEnabledRequestMarshaller.Instance;options.ResponseUnmarshaller = SetIdentityHeadersInNotificationsEnabledResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2548, "before": "public void setSensitiveInputCells(CellCacheEntry[] sensitiveInputCells) {if (sensitiveInputCells == null) {_sensitiveInputCells = null;changeConsumingCells(CellCacheEntry.EMPTY_ARRAY);} else {_sensitiveInputCells = sensitiveInputCells.clone();changeConsumingCells(_sensitiveInputCells);}}", "after": "public void SetSensitiveInputCells(CellCacheEntry[] sensitiveInputCells){ChangeConsumingCells(sensitiveInputCells == null ? CellCacheEntry.EMPTY_ARRAY : sensitiveInputCells);_sensitiveInputCells = sensitiveInputCells;}" }, { "index": 2549, "before": "public synchronized boolean add(E e) {Object[] newElements = new Object[elements.length + 1];System.arraycopy(elements, 0, newElements, 0, elements.length);newElements[elements.length] = e;elements = newElements;return true;}", "after": "public virtual bool add(E e){lock (this){object[] newElements = new object[elements.Length + 1];System.Array.Copy(elements, 0, newElements, 0, elements.Length);newElements[elements.Length] = e;elements = newElements;return true;}}" }, { "index": 2550, "before": "public StringBuilder append(long l) {IntegralToString.appendLong(this, l);return this;}", "after": "public java.lang.StringBuilder append(bool b){append0(b ? \"true\" : \"false\");return this;}" }, { "index": 2551, "before": "public DeleteHsmClientCertificateResult deleteHsmClientCertificate(DeleteHsmClientCertificateRequest request) {request = beforeClientExecution(request);return executeDeleteHsmClientCertificate(request);}", "after": "public virtual DeleteHsmClientCertificateResponse DeleteHsmClientCertificate(DeleteHsmClientCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteHsmClientCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteHsmClientCertificateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2552, "before": "public CreateAssessmentTargetResult createAssessmentTarget(CreateAssessmentTargetRequest request) {request = beforeClientExecution(request);return executeCreateAssessmentTarget(request);}", "after": "public virtual CreateAssessmentTargetResponse CreateAssessmentTarget(CreateAssessmentTargetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAssessmentTargetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAssessmentTargetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2553, "before": "public DescribeGlobalReplicationGroupsResult describeGlobalReplicationGroups(DescribeGlobalReplicationGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeGlobalReplicationGroups(request);}", "after": "public virtual DescribeGlobalReplicationGroupsResponse DescribeGlobalReplicationGroups(DescribeGlobalReplicationGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGlobalReplicationGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGlobalReplicationGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2554, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(_sheetRefIndex);out.writeShort(_nameNumber);out.writeShort(_reserved);}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(_sheetRefIndex);out1.WriteShort(_nameNumber);out1.WriteShort(_reserved);}" }, { "index": 2555, "before": "public static String parseSegmentName(String filename) {int idx = indexOfSegmentName(filename);if (idx != -1) {filename = filename.substring(0, idx);}return filename;}", "after": "public static string ParseSegmentName(string filename){int idx = IndexOfSegmentName(filename);if (idx != -1){filename = filename.Substring(0, idx);}return filename;}" }, { "index": 2556, "before": "public String getRefLogMessage() {return refLogMessage;}", "after": "public virtual string GetRefLogMessage(){return refLogMessage;}" }, { "index": 2557, "before": "public ObjectId getObjectId() {return missing;}", "after": "public virtual ObjectId GetObjectId(){return missing;}" }, { "index": 2558, "before": "public void setPackedGitLimit(long newLimit) {packedGitLimit = newLimit;}", "after": "public virtual void SetPackedGitLimit(long newLimit){packedGitLimit = newLimit;}" }, { "index": 2559, "before": "public String toString() {return \"\";}", "after": "public override string ToString(){return \"\";}" }, { "index": 2560, "before": "public void clear() {if (size > 0) {size = 0;voidLink.next = voidLink;voidLink.previous = voidLink;modCount++;}}", "after": "public override void clear(){if (_size > 0){_size = 0;voidLink.next = voidLink;voidLink.previous = voidLink;modCount++;}}" }, { "index": 2561, "before": "public List call() throws GitAPIException {checkCallable();List notes = new ArrayList<>();NoteMap map = NoteMap.newEmptyMap();try (RevWalk walk = new RevWalk(repo)) {Ref ref = repo.findRef(notesRef);if (ref != null) {RevCommit notesCommit = walk.parseCommit(ref.getObjectId());map = NoteMap.read(walk.getObjectReader(), notesCommit);}Iterator i = map.iterator();while (i.hasNext())notes.add(i.next());} catch (IOException e) {throw new JGitInternalException(e.getMessage(), e);}return notes;}", "after": "public override IList Call(){CheckCallable();IList notes = new AList();RevWalk walk = new RevWalk(repo);NoteMap map = NoteMap.NewEmptyMap();try{Ref @ref = repo.GetRef(notesRef);if (@ref != null){RevCommit notesCommit = walk.ParseCommit(@ref.GetObjectId());map = NoteMap.Read(walk.GetObjectReader(), notesCommit);}Iterator i = map.Iterator();while (i.HasNext()){notes.AddItem(i.Next());}}catch (IOException e){throw new JGitInternalException(e.Message, e);}finally{walk.Release();}return notes;}" }, { "index": 2562, "before": "public ListOrganizationsResult listOrganizations(ListOrganizationsRequest request) {request = beforeClientExecution(request);return executeListOrganizations(request);}", "after": "public virtual ListOrganizationsResponse ListOrganizations(ListOrganizationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListOrganizationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListOrganizationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2563, "before": "public ParseTreeMatch match(ParseTree tree, String pattern, int patternRuleIndex) {ParseTreePattern p = compile(pattern, patternRuleIndex);return match(tree, p);}", "after": "public virtual ParseTreeMatch Match(IParseTree tree, string pattern, int patternRuleIndex){ParseTreePattern p = Compile(pattern, patternRuleIndex);return Match(tree, p);}" }, { "index": 2564, "before": "public GridsetRecord(RecordInputStream in) {field_1_gridset_flag = in.readShort();}", "after": "public GridsetRecord(RecordInputStream in1){field_1_gridset_flag = in1.ReadShort();}" }, { "index": 2565, "before": "public PagedBytesDataInput clone() {PagedBytesDataInput clone = getDataInput();clone.setPosition(getPosition());return clone;}", "after": "public override object Clone(){PagedBytesDataInput clone = outerInstance.GetDataInput();clone.SetPosition(GetPosition());return clone;}" }, { "index": 2566, "before": "public MissingObjectException(AbbreviatedObjectId id, int type) {super(MessageFormat.format(JGitText.get().missingObject, Constants.typeString(type), id.name()));missing = null;}", "after": "public MissingObjectException(AbbreviatedObjectId id, int type) : base(MessageFormat.Format(JGitText.Get().missingObject, Constants.TypeString(type), id.Name)){missing = null;}" }, { "index": 2567, "before": "public void getName(byte[] buffer, int offset) {System.arraycopy(path, pathOffset, buffer, offset, pathLen - pathOffset);}", "after": "public virtual void GetName(byte[] buffer, int offset){System.Array.Copy(path, pathOffset, buffer, offset, pathLen - pathOffset);}" }, { "index": 2568, "before": "public List getHunks() {return (List) super.getHunks();}", "after": "public override IList GetHunks(){return base.GetHunks();}" }, { "index": 2569, "before": "public long getPointer() {if (currentBlock == null) {return 0;} else {return (numBlocks * ((long) blockSize)) + upto;}}", "after": "public long GetPointer(){if (currentBlock == null){return 0;}else{return (blocks.Count * ((long)blockSize)) + upto;}}" }, { "index": 2570, "before": "public PendingTaskCount countPendingDecisionTasks(CountPendingDecisionTasksRequest request) {request = beforeClientExecution(request);return executeCountPendingDecisionTasks(request);}", "after": "public virtual CountPendingDecisionTasksResponse CountPendingDecisionTasks(CountPendingDecisionTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = CountPendingDecisionTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = CountPendingDecisionTasksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2571, "before": "public ListStackResourcesResult listStackResources(ListStackResourcesRequest request) {request = beforeClientExecution(request);return executeListStackResources(request);}", "after": "public virtual ListStackResourcesResponse ListStackResources(ListStackResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStackResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStackResourcesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2572, "before": "public Credential(String keyId, String secret, String securityToken, int expiredHours) {this.accessKeyId = keyId;this.accessSecret = secret;this.securityToken = securityToken;this.refreshDate = new Date();setExpiredDate(expiredHours);}", "after": "public Credential(string keyId, string secret, string securityToken, int expiredHours){AccessKeyId = keyId;AccessSecret = secret;SecurityToken = securityToken;RefreshDate = new DateTime();SetExpiredDate(expiredHours);}" }, { "index": 2573, "before": "public void writeFields() throws IOException {if (currentPutField == null) {throw new NotActiveException();}writeFieldValues(currentPutField);}", "after": "public virtual void writeFields(){throw new System.NotImplementedException();}" }, { "index": 2574, "before": "public Result getResult() {return status;}", "after": "public virtual ReceiveCommand.Result GetResult(){return status;}" }, { "index": 2575, "before": "public AssignIpv6AddressesResult assignIpv6Addresses(AssignIpv6AddressesRequest request) {request = beforeClientExecution(request);return executeAssignIpv6Addresses(request);}", "after": "public virtual AssignIpv6AddressesResponse AssignIpv6Addresses(AssignIpv6AddressesRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssignIpv6AddressesRequestMarshaller.Instance;options.ResponseUnmarshaller = AssignIpv6AddressesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2576, "before": "public DBInstance modifyDBInstance(ModifyDBInstanceRequest request) {request = beforeClientExecution(request);return executeModifyDBInstance(request);}", "after": "public virtual ModifyDBInstanceResponse ModifyDBInstance(ModifyDBInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2577, "before": "public RemoveAttributesFromFindingsResult removeAttributesFromFindings(RemoveAttributesFromFindingsRequest request) {request = beforeClientExecution(request);return executeRemoveAttributesFromFindings(request);}", "after": "public virtual RemoveAttributesFromFindingsResponse RemoveAttributesFromFindings(RemoveAttributesFromFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveAttributesFromFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveAttributesFromFindingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2578, "before": "public JoinDocFreqValueSource(String field, String qfield) {super(field);this.qfield = qfield;}", "after": "public JoinDocFreqValueSource(string field, string qfield): base(field){this.m_qfield = qfield;}" }, { "index": 2579, "before": "public double readDouble() {return Double.longBitsToDouble(readLong());}", "after": "public virtual double ReadDouble(){return delegate1.ReadDouble();}" }, { "index": 2580, "before": "public DescribeDirectoryConfigsResult describeDirectoryConfigs(DescribeDirectoryConfigsRequest request) {request = beforeClientExecution(request);return executeDescribeDirectoryConfigs(request);}", "after": "public virtual DescribeDirectoryConfigsResponse DescribeDirectoryConfigs(DescribeDirectoryConfigsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDirectoryConfigsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDirectoryConfigsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2581, "before": "public GetAccountResult getAccount(GetAccountRequest request) {request = beforeClientExecution(request);return executeGetAccount(request);}", "after": "public virtual GetAccountResponse GetAccount(GetAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAccountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2582, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[BOUNDSHEET]\\n\");buffer.append(\" .bof = \").append(HexDump.intToHex(getPositionOfBof())).append(\"\\n\");buffer.append(\" .visibility = \").append(HexDump.shortToHex(field_2_visibility)).append(\"\\n\");buffer.append(\" .type = \").append(HexDump.byteToHex(field_3_type)).append(\"\\n\");buffer.append(\" .sheetname = \").append(getSheetname()).append(\"\\n\");buffer.append(\"[/BOUNDSHEET]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[BOUNDSHEET]\\n\");buffer.Append(\" .bof = \").Append(HexDump.IntToHex(PositionOfBof)).Append(\"\\n\");buffer.Append(\" .visibility = \").Append(HexDump.ShortToHex(field_2_visibility)).Append(\"\\n\");buffer.Append(\" .type = \").Append(HexDump.ByteToHex(field_3_type)).Append(\"\\n\");buffer.Append(\" .sheetname = \").Append(Sheetname).Append(\"\\n\");buffer.Append(\"[/BOUNDSHEET]\\n\");return buffer.ToString();}" }, { "index": 2583, "before": "public short getShortRawValue(final short holder){return ( short ) getRawValue(holder);}", "after": "public short GetShortRawValue(short holder){return (short)this.GetRawValue(holder);}" }, { "index": 2584, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2) {double result;try {double d0 = NumericFunction.singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.singleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);double d2 = NumericFunction.singleOperandEvaluate(arg2, srcRowIndex, srcColumnIndex);result = evaluate(getYear(d0), (int) (d1 - 1), (int) d2);NumericFunction.checkValue(result);} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2){double result;try{double d0 = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);double d2 = NumericFunction.SingleOperandEvaluate(arg2, srcRowIndex, srcColumnIndex);result = Evaluate(GetYear(d0), (int)d1, (int)d2);NumericFunction.CheckValue(result);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}" }, { "index": 2585, "before": "public GetPublicKeyConfigResult getPublicKeyConfig(GetPublicKeyConfigRequest request) {request = beforeClientExecution(request);return executeGetPublicKeyConfig(request);}", "after": "public virtual GetPublicKeyConfigResponse GetPublicKeyConfig(GetPublicKeyConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPublicKeyConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPublicKeyConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2586, "before": "public URIish setUser(String n) {final URIish r = new URIish(this);r.user = n;return r;}", "after": "public virtual NGit.Transport.URIish SetUser(string n){NGit.Transport.URIish r = new NGit.Transport.URIish(this);r.user = n;return r;}" }, { "index": 2587, "before": "public EscherArrayProperty(short id, int complexSize) {super(id, complexSize);emptyComplexPart = (complexSize == 0);}", "after": "public EscherArrayProperty(short id, byte[] complexData): base(id, CheckComplexData(complexData)){emptyComplexPart = complexData.Length == 0;}" }, { "index": 2588, "before": "public String toASCIIString() {return format(false, true);}", "after": "public virtual string ToASCIIString(){return Format(false, true);}" }, { "index": 2589, "before": "public void decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block = blocks[blocksOffset++];for (int shift = 56; shift >= 0; shift -= 8) {values[valuesOffset++] = (block >>> shift) & 255;}}}", "after": "public override void Decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = blocks[blocksOffset++];for (int shift = 56; shift >= 0; shift -= 8){values[valuesOffset++] = ((long)((ulong)block >> shift)) & 255;}}}" }, { "index": 2590, "before": "public GetContactResult getContact(GetContactRequest request) {request = beforeClientExecution(request);return executeGetContact(request);}", "after": "public virtual GetContactResponse GetContact(GetContactRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetContactRequestMarshaller.Instance;options.ResponseUnmarshaller = GetContactResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2591, "before": "public void removeHiddenCount() {remove1stProperty(PropertyIDMap.PID_HIDDENCOUNT);}", "after": "public void RemoveHiddenCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_HIDDENCOUNT);}" }, { "index": 2592, "before": "public GetRestApisResult getRestApis(GetRestApisRequest request) {request = beforeClientExecution(request);return executeGetRestApis(request);}", "after": "public virtual GetRestApisResponse GetRestApis(GetRestApisRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRestApisRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRestApisResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2593, "before": "public ArrayPredictionContext(PredictionContext[] parents, int[] returnStates) {super(calculateHashCode(parents, returnStates));assert parents!=null && parents.length>0;assert returnStates!=null && returnStates.length>0;this.parents = parents;this.returnStates = returnStates;}", "after": "public ArrayPredictionContext(PredictionContext[] parents, int[] returnStates): base(CalculateHashCode(parents, returnStates)){this.parents = parents;this.returnStates = returnStates;}" }, { "index": 2594, "before": "public CharBuffer compact() {System.arraycopy(backingArray, position + offset, backingArray, offset, remaining());position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}", "after": "public override java.nio.CharBuffer compact(){System.Array.Copy(backingArray, _position + offset, backingArray, offset, remaining());_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}" }, { "index": 2595, "before": "public DeleteStageResult deleteStage(DeleteStageRequest request) {request = beforeClientExecution(request);return executeDeleteStage(request);}", "after": "public virtual DeleteStageResponse DeleteStage(DeleteStageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteStageRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteStageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2596, "before": "public Object[] toArray() {return elements.clone();}", "after": "public virtual object[] toArray(){return (object[])elements.Clone();}" }, { "index": 2597, "before": "public synchronized void mark(int ignoredReadlimit) {_marked_offset = _current_offset;_marked_offset_count = Math.max(0, _current_block_count - 1);}", "after": "public override void Mark(int ignoredReadlimit){delegate1.Mark(ignoredReadlimit);}" }, { "index": 2598, "before": "public String toString() {return \"NOT \" + a.toString(); }", "after": "public override string ToString(){return \"NOT \" + a.ToString();}" }, { "index": 2599, "before": "public void setExpectDataAfterPackFooter(boolean e) {expectDataAfterPackFooter = e;}", "after": "public virtual void SetExpectDataAfterPackFooter(bool e){expectDataAfterPackFooter = e;}" }, { "index": 2600, "before": "public Request marshall(DeletePublicAccessBlockRequest deletePublicAccessBlockRequest) {if (deletePublicAccessBlockRequest == null) {throw new SdkClientException(\"Invalid argument passed to marshall(...)\");}Request request = new DefaultRequest(deletePublicAccessBlockRequest, \"AWSS3Control\");request.setHttpMethod(HttpMethodName.DELETE);if (deletePublicAccessBlockRequest.getAccountId() != null) {request.addHeader(\"x-amz-account-id\", StringUtils.fromString(deletePublicAccessBlockRequest.getAccountId()));}String uriResourcePath = \"/v20180820/configuration/publicAccessBlock\";request.setResourcePath(uriResourcePath);return request;}", "after": "public IRequest Marshall(DeletePublicAccessBlockRequest deletePublicAccessBlockRequest){IRequest request = new DefaultRequest(deletePublicAccessBlockRequest, \"AmazonS3\");request.HttpMethod = \"DELETE\";if (string.IsNullOrEmpty(deletePublicAccessBlockRequest.BucketName))throw new System.ArgumentException(\"BucketName is a required property and must be set before making this call.\", \"deletePublicAccessBlockRequest.BucketName\");request.MarshallerVersion = 2;request.ResourcePath = string.Concat(\"/\", S3Transforms.ToStringValue(deletePublicAccessBlockRequest.BucketName));request.AddSubResource(\"publicAccessBlock\");request.UseQueryString = true;return request;}" }, { "index": 2601, "before": "public FetchResult getFetchResult() {return this.fetchResult;}", "after": "public virtual FetchResult GetFetchResult(){return this.fetchResult;}" }, { "index": 2602, "before": "public GetJourneyExecutionMetricsResult getJourneyExecutionMetrics(GetJourneyExecutionMetricsRequest request) {request = beforeClientExecution(request);return executeGetJourneyExecutionMetrics(request);}", "after": "public virtual GetJourneyExecutionMetricsResponse GetJourneyExecutionMetrics(GetJourneyExecutionMetricsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetJourneyExecutionMetricsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetJourneyExecutionMetricsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2603, "before": "public static long[] grow(long[] array) {return grow(array, 1 + array.length);}", "after": "public static int[] Grow(int[] array){return Grow(array, 1 + array.Length);}" }, { "index": 2604, "before": "@Override public String toString() {StringBuilder buf = new StringBuilder();buf.append(getClass().getName());buf.append(\", status: capacity=\");buf.append(capacity);buf.append(\" position=\");buf.append(position);buf.append(\" limit=\");buf.append(limit);return buf.toString();}", "after": "public override string ToString(){java.lang.StringBuilder buf = new java.lang.StringBuilder();buf.append(GetType().FullName);buf.append(\", status: capacity=\");buf.append(_capacity);buf.append(\" position=\");buf.append(_position);buf.append(\" limit=\");buf.append(_limit);return buf.ToString();}" }, { "index": 2605, "before": "public UpdateStreamingDistributionResult updateStreamingDistribution(UpdateStreamingDistributionRequest request) {request = beforeClientExecution(request);return executeUpdateStreamingDistribution(request);}", "after": "public virtual UpdateStreamingDistributionResponse UpdateStreamingDistribution(UpdateStreamingDistributionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateStreamingDistributionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateStreamingDistributionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2606, "before": "public DeleteVaultNotificationsRequest(String vaultName) {setVaultName(vaultName);}", "after": "public DeleteVaultNotificationsRequest(string vaultName){_vaultName = vaultName;}" }, { "index": 2607, "before": "public AttachNetworkInterfaceResult attachNetworkInterface(AttachNetworkInterfaceRequest request) {request = beforeClientExecution(request);return executeAttachNetworkInterface(request);}", "after": "public virtual AttachNetworkInterfaceResponse AttachNetworkInterface(AttachNetworkInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachNetworkInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachNetworkInterfaceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2608, "before": "public boolean equals( Object o ) {return o instanceof HungarianStemmer;}", "after": "public override bool Equals(object o){return o is HungarianStemmer;}" }, { "index": 2609, "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": 2610, "before": "public UpdateShardCountResult updateShardCount(UpdateShardCountRequest request) {request = beforeClientExecution(request);return executeUpdateShardCount(request);}", "after": "public virtual UpdateShardCountResponse UpdateShardCount(UpdateShardCountRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateShardCountRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateShardCountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2611, "before": "public String getText() {return getText(Interval.of(0,size()-1));}", "after": "public virtual string GetText(){Fill();return GetText(Interval.Of(0, Size - 1));}" }, { "index": 2612, "before": "public BoundSheetRecord[] getBoundSheetRecords() {return boundSheetRecords.toArray(new BoundSheetRecord[0]);}", "after": "public BoundSheetRecord[] GetBoundSheetRecords(){return (BoundSheetRecord[])boundSheetRecords.ToArray(typeof(BoundSheetRecord));}" }, { "index": 2613, "before": "public boolean matches(FooterKey key) {final byte[] kRaw = key.raw;final int len = kRaw.length;int bPtr = keyStart;if (keyEnd - bPtr != len)return false;for (int kPtr = 0; kPtr < len;) {byte b = buffer[bPtr++];if ('A' <= b && b <= 'Z')b += (byte) ('a' - 'A');if (b != kRaw[kPtr++])return false;}return true;}", "after": "public bool Matches(FooterKey key){byte[] kRaw = key.raw;int len = kRaw.Length;int bPtr = keyStart;if (keyEnd - bPtr != len){return false;}for (int kPtr = 0; kPtr < len; ){byte b = buffer[bPtr++];if ('A' <= b && ((sbyte)b) <= 'Z'){b += (byte)('a') - (byte)('A');}if (b != kRaw[kPtr++]){return false;}}return true;}" }, { "index": 2614, "before": "public CreateUserResult createUser(CreateUserRequest request) {request = beforeClientExecution(request);return executeCreateUser(request);}", "after": "public virtual CreateUserResponse CreateUser(CreateUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateUserRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateUserResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2615, "before": "public S3Origin(String domainName, String originAccessIdentity) {setDomainName(domainName);setOriginAccessIdentity(originAccessIdentity);}", "after": "public S3Origin(string domainName, string originAccessIdentity){_domainName = domainName;_originAccessIdentity = originAccessIdentity;}" }, { "index": 2616, "before": "public StartTopicsDetectionJobResult startTopicsDetectionJob(StartTopicsDetectionJobRequest request) {request = beforeClientExecution(request);return executeStartTopicsDetectionJob(request);}", "after": "public virtual StartTopicsDetectionJobResponse StartTopicsDetectionJob(StartTopicsDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartTopicsDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StartTopicsDetectionJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2617, "before": "public ClusterSecurityGroup revokeClusterSecurityGroupIngress(RevokeClusterSecurityGroupIngressRequest request) {request = beforeClientExecution(request);return executeRevokeClusterSecurityGroupIngress(request);}", "after": "public virtual RevokeClusterSecurityGroupIngressResponse RevokeClusterSecurityGroupIngress(RevokeClusterSecurityGroupIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeClusterSecurityGroupIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeClusterSecurityGroupIngressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2618, "before": "public void enterRule(ParserRuleContext localctx, int state, int ruleIndex) {setState(state);_ctx = localctx;_ctx.start = _input.LT(1);if (_buildParseTrees) addContextToParseTree();if ( _parseListeners != null) triggerEnterRuleEvent();}", "after": "public virtual void EnterRule(ParserRuleContext localctx, int state, int ruleIndex){State = state;_ctx = localctx;_ctx.Start = _input.LT(1);if (_buildParseTrees){AddContextToParseTree();}if (_parseListeners != null){TriggerEnterRuleEvent();}}" }, { "index": 2619, "before": "public ObjectReader newReader() {return new WindowCursor(db);}", "after": "public override ObjectReader NewReader(){return new NGit.Storage.File.WindowCursor(db);}" }, { "index": 2620, "before": "@Override public int size() {return backingMap.size();}", "after": "public override int size(){return this._enclosing._size;}" }, { "index": 2621, "before": "public static String pathToString(String[] path, int length) {if (length == 0) {return \"\";}StringBuilder sb = new StringBuilder();for(int i=0;i 0 (got: \\\"\\\")\");}int numChars = s.length();for(int j=0;j 0 (got: \\\"\\\")\");}int numChars = s.Length;for (int j = 0; j < numChars; j++){char ch = s[j];if (ch == DELIM_CHAR || ch == ESCAPE_CHAR){sb.Append(ESCAPE_CHAR);}sb.Append(ch);}sb.Append(DELIM_CHAR);}sb.Length = sb.Length - 1;return sb.ToString();}" }, { "index": 2622, "before": "public CancelSpotInstanceRequestsRequest(java.util.List spotInstanceRequestIds) {setSpotInstanceRequestIds(spotInstanceRequestIds);}", "after": "public CancelSpotInstanceRequestsRequest(List spotInstanceRequestIds){_spotInstanceRequestIds = spotInstanceRequestIds;}" }, { "index": 2623, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append('[');for (byte[] b : table) {if (b == null)continue;if (sb.length() > 1)sb.append(\" , \"); sb.append('\"');sb.append(RawParseUtils.decode(b));sb.append('\"');sb.append('(');sb.append(chainlength(b));sb.append(')');}sb.append(']');return sb.toString();}", "after": "public override string ToString(){StringBuilder r = new StringBuilder();r.Append(\"(\");for (int i = 0; i < subfilters.Length; i++){if (i > 0){r.Append(\" OR \");}r.Append(subfilters[i].ToString());}r.Append(\")\");return r.ToString();}" }, { "index": 2624, "before": "public GetConnectionResult getConnection(GetConnectionRequest request) {request = beforeClientExecution(request);return executeGetConnection(request);}", "after": "public virtual GetConnectionResponse GetConnection(GetConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetConnectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2625, "before": "public String toString() {return a+\"..\"+b;}", "after": "public override string ToString(){return a + \"..\" + b;}" }, { "index": 2626, "before": "public AddNoteCommand notesAdd() {return new AddNoteCommand(repo);}", "after": "public virtual AddNoteCommand NotesAdd(){return new AddNoteCommand(repo);}" }, { "index": 2627, "before": "public static void fill(short[] array, int start, int end, short value) {Arrays.checkStartAndEnd(array.length, start, end);for (int i = start; i < end; i++) {array[i] = value;}}", "after": "public static void fill(short[] array, int start, int end, short value){java.util.Arrays.checkStartAndEnd(array.Length, start, end);{for (int i = start; i < end; i++){array[i] = value;}}}" }, { "index": 2628, "before": "public boolean equals(Object obj) {if (obj == this) {return true;}else if (!(obj instanceof LexerIndexedCustomAction)) {return false;}LexerIndexedCustomAction other = (LexerIndexedCustomAction)obj;return offset == other.offset&& action.equals(other.action);}", "after": "public override bool Equals(object obj){if (obj == this){return true;}else{if (!(obj is Antlr4.Runtime.Atn.LexerIndexedCustomAction)){return false;}}Antlr4.Runtime.Atn.LexerIndexedCustomAction other = (Antlr4.Runtime.Atn.LexerIndexedCustomAction)obj;return offset == other.offset && action.Equals(other.action);}" }, { "index": 2629, "before": "public DeleteNamespaceAuthorizationRequest() {super(\"cr\", \"2016-06-07\", \"DeleteNamespaceAuthorization\", \"cr\");setUriPattern(\"/namespace/[Namespace]/authorizations/[AuthorizeId]\");setMethod(MethodType.DELETE);}", "after": "public DeleteNamespaceAuthorizationRequest(): base(\"cr\", \"2016-06-07\", \"DeleteNamespaceAuthorization\", \"cr\", \"openAPI\"){UriPattern = \"/namespace/[Namespace]/authorizations/[AuthorizeId]\";Method = MethodType.DELETE;}" }, { "index": 2630, "before": "public static final int author(byte[] b, int ptr) {final int sz = b.length;if (ptr == 0)ptr += 46; while (ptr < sz && b[ptr] == 'p')ptr += 48; return match(b, ptr, author);}", "after": "public static int Author(byte[] b, int ptr){int sz = b.Length;if (ptr == 0){ptr += 46;}while (ptr < sz && b[ptr] == 'p'){ptr += 48;}return Match(b, ptr, ObjectChecker.author);}" }, { "index": 2631, "before": "public DescribeHostsResult describeHosts(DescribeHostsRequest request) {request = beforeClientExecution(request);return executeDescribeHosts(request);}", "after": "public virtual DescribeHostsResponse DescribeHosts(DescribeHostsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeHostsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeHostsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2632, "before": "public void reset(byte[] bytes) {reset(bytes, 0, bytes.length);}", "after": "public void Reset(byte[] bytes){Reset(bytes, 0, bytes.Length);}" }, { "index": 2633, "before": "public OpenNLPChunkerFilterFactory(Map args) {super(args);chunkerModelFile = get(args, CHUNKER_MODEL);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public OpenNLPChunkerFilterFactory(IDictionary args): base(args){chunkerModelFile = Get(args, CHUNKER_MODEL);if (args.Any()){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 2634, "before": "public String toString() {StringBuilder r = new StringBuilder();r.append(\"Ref[\"); r.append(getName());r.append('=');r.append(ObjectId.toString(getObjectId()));r.append('(');r.append(updateIndex); r.append(\")]\"); return r.toString();}", "after": "public override string ToString(){StringBuilder r = new StringBuilder();r.Append(\"Ref[\");r.Append(GetName());r.Append('=');r.Append(ObjectId.ToString(GetObjectId()));r.Append(']');return r.ToString();}" }, { "index": 2635, "before": "public StartStreamEncryptionResult startStreamEncryption(StartStreamEncryptionRequest request) {request = beforeClientExecution(request);return executeStartStreamEncryption(request);}", "after": "public virtual StartStreamEncryptionResponse StartStreamEncryption(StartStreamEncryptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartStreamEncryptionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartStreamEncryptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2636, "before": "public DeleteCloudFrontOriginAccessIdentityRequest(String id, String ifMatch) {setId(id);setIfMatch(ifMatch);}", "after": "public DeleteCloudFrontOriginAccessIdentityRequest(string id, string ifMatch){_id = id;_ifMatch = ifMatch;}" }, { "index": 2637, "before": "public int getWidth() {return mImage.getWidth();}", "after": "public virtual int getWidth(){return mBitmap.getWidth();}" }, { "index": 2638, "before": "public List getUntrackedFolders() {LinkedList ret = new LinkedList<>(untrackedFolders);if (!untrackedParentFolders.isEmpty()) {String toBeAdded = untrackedParentFolders.getLast();while (!ret.isEmpty() && ret.getLast().startsWith(toBeAdded))ret.removeLast();ret.addLast(toBeAdded);}return ret;}", "after": "public virtual IList GetUntrackedFolders(){List ret = new List(untrackedFolders);if (!untrackedParentFolders.IsEmpty()){string toBeAdded = untrackedParentFolders.GetLast();while (!ret.IsEmpty() && ret.GetLast().StartsWith(toBeAdded)){ret.RemoveLast();}ret.AddLast(toBeAdded);}return ret;}" }, { "index": 2639, "before": "public CredentialsProviderUserInfo(Session session,CredentialsProvider credentialsProvider) {this.uri = createURI(session);this.provider = credentialsProvider;}", "after": "public CredentialsProviderUserInfo(Session session, CredentialsProvider credentialsProvider){this.uri = CreateURI(session);this.provider = credentialsProvider;}" }, { "index": 2640, "before": "public String toString() {return \"[SELECTION]\\n\" +\" .pane = \" + HexDump.byteToHex(getPane()) + \"\\n\" +\" .activecellrow = \" + HexDump.shortToHex(getActiveCellRow()) + \"\\n\" +\" .activecellcol = \" + HexDump.shortToHex(getActiveCellCol()) + \"\\n\" +\" .activecellref = \" + HexDump.shortToHex(getActiveCellRef()) + \"\\n\" +\" .numrefs = \" + HexDump.shortToHex(field_6_refs.length) + \"\\n\" +\"[/SELECTION]\\n\";}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[SELECTION]\\n\");buffer.Append(\" .pane = \").Append(StringUtil.ToHexString(Pane)).Append(\"\\n\");buffer.Append(\" .activecellrow = \").Append(StringUtil.ToHexString(ActiveCellRow)).Append(\"\\n\");buffer.Append(\" .activecellcol = \").Append(StringUtil.ToHexString(ActiveCellCol)).Append(\"\\n\");buffer.Append(\" .activecellref = \").Append(StringUtil.ToHexString(ActiveCellRef)).Append(\"\\n\");buffer.Append(\" .numrefs = \").Append(StringUtil.ToHexString(field_6_refs.Length)).Append(\"\\n\");buffer.Append(\"[/SELECTION]\\n\");return buffer.ToString();}" }, { "index": 2641, "before": "public static boolean isCellInternalDateFormatted(Cell cell) {if (cell == null) {return false;}boolean bDate = false;double d = cell.getNumericCellValue();if ( DateUtil.isValidExcelDate(d) ) {CellStyle style = cell.getCellStyle();int i = style.getDataFormat();bDate = isInternalDateFormat(i);}return bDate;}", "after": "public static bool IsCellInternalDateFormatted(ICell cell){if (cell == null) return false;bool bDate = false;double d = cell.NumericCellValue;if (DateUtil.IsValidExcelDate(d)){ICellStyle style = cell.CellStyle;int i = style.DataFormat;bDate = IsInternalDateFormat(i);}return bDate;}" }, { "index": 2642, "before": "public static String getSegmentsFile(List files, boolean allowEmpty) {if (files.isEmpty()) {if (allowEmpty) {return null;} else {throw new IllegalStateException(\"empty list of files not allowed\");}}String segmentsFile = files.remove(files.size() - 1);if (!segmentsFile.startsWith(IndexFileNames.SEGMENTS)) {throw new IllegalStateException(\"last file to copy+sync must be segments_N but got \" + segmentsFile+ \"; check your Revision implementation!\");}return segmentsFile;}", "after": "public static string GetSegmentsFile(IList files, bool allowEmpty){if (!files.Any()){if (allowEmpty)return null;throw new InvalidOperationException(\"empty list of files not allowed\");}string segmentsFile = files.Last();files.RemoveAt(files.Count - 1);if (!segmentsFile.StartsWith(IndexFileNames.SEGMENTS, StringComparison.Ordinal) || segmentsFile.Equals(IndexFileNames.SEGMENTS_GEN, StringComparison.Ordinal)){throw new InvalidOperationException(string.Format(\"last file to copy+sync must be segments_N but got {0}; check your Revision implementation!\", segmentsFile));}return segmentsFile;}" }, { "index": 2643, "before": "public static boolean hasMultibyte(String value) {if (value == null) {return false;}for (char c : value.toCharArray()) {if (c > 0xFF) {return true;}}return false;}", "after": "public static bool HasMultibyte(String value){if (value == null) return false;for (int i = 0; i < value.Length; i++){char c = value[i];if (c > 0xFF) return true;}return false;}" }, { "index": 2644, "before": "public static ObjectId fromString(String str) {if (str.length() != Constants.OBJECT_ID_STRING_LENGTH) {throw new InvalidObjectIdException(str);}return fromHexString(Constants.encodeASCII(str), 0);}", "after": "public static NGit.ObjectId FromString(string str){if (str.Length != Constants.OBJECT_ID_STRING_LENGTH){throw new ArgumentException(\"Invalid id: \" + str);}return FromHexString(Constants.EncodeASCII(str), 0);}" }, { "index": 2645, "before": "public void reset() throws IOException {throw new IOException();}", "after": "public override void reset(){throw new System.IO.IOException();}" }, { "index": 2646, "before": "public GetReservedInstancesExchangeQuoteResult getReservedInstancesExchangeQuote(GetReservedInstancesExchangeQuoteRequest request) {request = beforeClientExecution(request);return executeGetReservedInstancesExchangeQuote(request);}", "after": "public virtual GetReservedInstancesExchangeQuoteResponse GetReservedInstancesExchangeQuote(GetReservedInstancesExchangeQuoteRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetReservedInstancesExchangeQuoteRequestMarshaller.Instance;options.ResponseUnmarshaller = GetReservedInstancesExchangeQuoteResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2647, "before": "public IntBuffer put(int c) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.IntBuffer put(int c){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 2648, "before": "public GetFolderPathResult getFolderPath(GetFolderPathRequest request) {request = beforeClientExecution(request);return executeGetFolderPath(request);}", "after": "public virtual GetFolderPathResponse GetFolderPath(GetFolderPathRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFolderPathRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFolderPathResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2649, "before": "public DeleteDirectConnectGatewayAssociationResult deleteDirectConnectGatewayAssociation(DeleteDirectConnectGatewayAssociationRequest request) {request = beforeClientExecution(request);return executeDeleteDirectConnectGatewayAssociation(request);}", "after": "public virtual DeleteDirectConnectGatewayAssociationResponse DeleteDirectConnectGatewayAssociation(DeleteDirectConnectGatewayAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDirectConnectGatewayAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDirectConnectGatewayAssociationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2650, "before": "public ByteBuffer putDouble(double value) {return putLong(Double.doubleToRawLongBits(value));}", "after": "public override java.nio.ByteBuffer putDouble(double value){return putLong(Sharpen.Util.DoubleToRawLongBits(value));}" }, { "index": 2651, "before": "public SearchContactsResult searchContacts(SearchContactsRequest request) {request = beforeClientExecution(request);return executeSearchContacts(request);}", "after": "public virtual SearchContactsResponse SearchContacts(SearchContactsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchContactsRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchContactsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2652, "before": "@Override public boolean isEmpty() {return size == 0;}", "after": "public override bool isEmpty(){return _size == 0;}" }, { "index": 2653, "before": "public CreatePartnerEventSourceResult createPartnerEventSource(CreatePartnerEventSourceRequest request) {request = beforeClientExecution(request);return executeCreatePartnerEventSource(request);}", "after": "public virtual CreatePartnerEventSourceResponse CreatePartnerEventSource(CreatePartnerEventSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePartnerEventSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePartnerEventSourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2654, "before": "public CreateNamespaceAuthorizationRequest() {super(\"cr\", \"2016-06-07\", \"CreateNamespaceAuthorization\", \"cr\");setUriPattern(\"/namespace/[Namespace]/authorizations\");setMethod(MethodType.PUT);}", "after": "public CreateNamespaceAuthorizationRequest(): base(\"cr\", \"2016-06-07\", \"CreateNamespaceAuthorization\", \"cr\", \"openAPI\"){UriPattern = \"/namespace/[Namespace]/authorizations\";Method = MethodType.PUT;}" }, { "index": 2655, "before": "public URIish setPass(String n) {final URIish r = new URIish(this);r.pass = n;return r;}", "after": "public virtual NGit.Transport.URIish SetPass(string n){NGit.Transport.URIish r = new NGit.Transport.URIish(this);r.pass = n;return r;}" }, { "index": 2656, "before": "public void execute(Lexer lexer) {lexer.pushMode(mode);}", "after": "public void Execute(Lexer lexer){lexer.PushMode(mode);}" }, { "index": 2657, "before": "public CreateModelVersionResult createModelVersion(CreateModelVersionRequest request) {request = beforeClientExecution(request);return executeCreateModelVersion(request);}", "after": "public virtual CreateModelVersionResponse CreateModelVersion(CreateModelVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateModelVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateModelVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2658, "before": "public UpdateServicePrimaryTaskSetResult updateServicePrimaryTaskSet(UpdateServicePrimaryTaskSetRequest request) {request = beforeClientExecution(request);return executeUpdateServicePrimaryTaskSet(request);}", "after": "public virtual UpdateServicePrimaryTaskSetResponse UpdateServicePrimaryTaskSet(UpdateServicePrimaryTaskSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateServicePrimaryTaskSetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateServicePrimaryTaskSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2659, "before": "public LinearRegressionFunction(FUNCTION function) {this.function = function;}", "after": "public LinearRegressionFunction(FUNCTION function){this.function = function;}" }, { "index": 2660, "before": "public ATNConfig(ATNConfig old) { this.state = old.state;this.alt = old.alt;this.context = old.context;this.semanticContext = old.semanticContext;this.reachesIntoOuterContext = old.reachesIntoOuterContext;}", "after": "public ATNConfig(ATNConfig old){ this.state = old.state;this.alt = old.alt;this.context = old.context;this.semanticContext = old.semanticContext;this.reachesIntoOuterContext = old.reachesIntoOuterContext;}" }, { "index": 2661, "before": "public DescribeEntitiesDetectionJobResult describeEntitiesDetectionJob(DescribeEntitiesDetectionJobRequest request) {request = beforeClientExecution(request);return executeDescribeEntitiesDetectionJob(request);}", "after": "public virtual DescribeEntitiesDetectionJobResponse DescribeEntitiesDetectionJob(DescribeEntitiesDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEntitiesDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEntitiesDetectionJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2662, "before": "public AssociateDhcpOptionsRequest(String vpcId) {setVpcId(vpcId);}", "after": "public AssociateDhcpOptionsRequest(string vpcId){_vpcId = vpcId;}" }, { "index": 2663, "before": "public ListChangedBlocksResult listChangedBlocks(ListChangedBlocksRequest request) {request = beforeClientExecution(request);return executeListChangedBlocks(request);}", "after": "public virtual ListChangedBlocksResponse ListChangedBlocks(ListChangedBlocksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListChangedBlocksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListChangedBlocksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2664, "before": "public boolean removeFirstOccurrence(Object o) {return removeFirstOccurrenceImpl(o);}", "after": "public virtual bool removeFirstOccurrence(object o){return removeFirstOccurrenceImpl(o);}" }, { "index": 2665, "before": "public ArrayList extractTasks() {ArrayList res = new ArrayList<>();extractTasks(res, sequence);return res;}", "after": "public virtual IList ExtractTasks(){List res = new List();ExtractTasks(res, sequence);return res;}" }, { "index": 2666, "before": "public FacetsCollector(boolean keepScores) {this.keepScores = keepScores;}", "after": "public FacetsCollector(bool keepScores){this.keepScores = keepScores;}" }, { "index": 2667, "before": "public UpdateNodegroupVersionResult updateNodegroupVersion(UpdateNodegroupVersionRequest request) {request = beforeClientExecution(request);return executeUpdateNodegroupVersion(request);}", "after": "public virtual UpdateNodegroupVersionResponse UpdateNodegroupVersion(UpdateNodegroupVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateNodegroupVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateNodegroupVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2668, "before": "public DeleteAttributesRequest(String domainName, String itemName) {setDomainName(domainName);setItemName(itemName);}", "after": "public DeleteAttributesRequest(string domainName, string itemName){_domainName = domainName;_itemName = itemName;}" }, { "index": 2669, "before": "public void clearDFA() {throw new UnsupportedOperationException(\"This ATN simulator does not support clearing the DFA.\");}", "after": "public virtual void ClearDFA(){throw new Exception(\"This ATN simulator does not support clearing the DFA.\");}" }, { "index": 2670, "before": "public Field[] createIndexableFields(Shape shape) {if (shape instanceof Point)return createIndexableFields((Point) shape);throw new UnsupportedOperationException(\"Can only index Point, not \" + shape);}", "after": "public override Field[] CreateIndexableFields(IShape shape){var point = shape as IPoint;if (point != null)return CreateIndexableFields(point);throw new NotSupportedException(\"Can only index IPoint, not \" + shape);}" }, { "index": 2671, "before": "public void untagResource(UntagResourceRequest request) {request = beforeClientExecution(request);executeUntagResource(request);}", "after": "public virtual UntagResourceResponse UntagResource(UntagResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2672, "before": "public DBSecurityGroup createDBSecurityGroup(CreateDBSecurityGroupRequest request) {request = beforeClientExecution(request);return executeCreateDBSecurityGroup(request);}", "after": "public virtual CreateDBSecurityGroupResponse CreateDBSecurityGroup(CreateDBSecurityGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBSecurityGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBSecurityGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2673, "before": "public boolean equals(Object obj) {if (this == obj) {return true;}if (obj == null) {return false;}if (getClass() != obj.getClass()) {return false;}ExpressionValueSource other = (ExpressionValueSource) obj;if (expression == null) {if (other.expression != null) {return false;}} else if (!expression.sourceText.equals(other.expression.sourceText)) {return false;}if (needsScores != other.needsScores) {return false;}if (!Arrays.equals(variables, other.variables)) {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;}ExpressionValueSource other = (ExpressionValueSource)obj;if (expression == null){if (other.expression != null){return false;}}else{if (!expression.Equals(other.expression)){return false;}}if (needsScores != other.needsScores){return false;}if (!Arrays.Equals(variables, other.variables)){return false;}return true;}" }, { "index": 2674, "before": "public static String getPreferredEncoding() {return ISO_8859_1.name();}", "after": "public static String GetPreferredEncoding(){return ISO_8859_1.WebName;}" }, { "index": 2675, "before": "public synchronized IndexSearcher getIndexSearcher() {if (indexReader != null) {indexReader.incRef();}return indexSearcher;}", "after": "public virtual IndexSearcher GetIndexSearcher(){lock (this){if (indexReader != null){indexReader.IncRef();}return indexSearcher;}}" }, { "index": 2676, "before": "public boolean equals( Object o ) {return o instanceof German2Stemmer;}", "after": "public override bool Equals(object o){return o is German2Stemmer;}" }, { "index": 2677, "before": "public FacetLabel(final String... components) {this.components = components;length = components.length;checkComponents();}", "after": "public FacetLabel(params string[] components){this.Components = components;Length = components.Length;CheckComponents();}" }, { "index": 2678, "before": "public void visitContainedRecords(RecordVisitor rv) {if (_recs.isEmpty()) {return;}rv.visitRecord(_begin);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(_end);}", "after": "public override void VisitContainedRecords(RecordVisitor rv){if (_recs.Count == 0){return;}rv.VisitRecord(_begin);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(_end);}" }, { "index": 2679, "before": "public void setDirCache(DirCache dc) {this.dircache = dc;implicitDirCache = false;}", "after": "public virtual void SetDirCache(DirCache dc){this.dircache = dc;}" }, { "index": 2680, "before": "public long seek(BytesRef target) {long lo = 0; long hi = fieldIndex.numIndexTerms - 1;while (hi >= lo) {long mid = (lo + hi) >>> 1;final long offset = fieldIndex.termOffsets.get(mid);final int length = (int) (fieldIndex.termOffsets.get(1+mid) - offset);termBytesReader.fillSlice(term, fieldIndex.termBytesStart + offset, length);int delta = target.compareTo(term);if (delta < 0) {hi = mid - 1;} else if (delta > 0) {lo = mid + 1;} else {assert mid >= 0;ord = mid*indexInterval;return fieldIndex.termsStart + fieldIndex.termsDictOffsets.get(mid);}}if (hi < 0) {assert hi == -1;hi = 0;}final long offset = fieldIndex.termOffsets.get(hi);final int length = (int) (fieldIndex.termOffsets.get(1+hi) - offset);termBytesReader.fillSlice(term, fieldIndex.termBytesStart + offset, length);ord = hi*indexInterval;return fieldIndex.termsStart + fieldIndex.termsDictOffsets.get(hi);}", "after": "public override long Seek(BytesRef target){int lo = 0; int hi = fieldIndex.numIndexTerms - 1;Debug.Assert(outerInstance.totalIndexInterval > 0, \"totalIndexInterval=\" + outerInstance.totalIndexInterval);while (hi >= lo){int mid = (int)(((uint)(lo + hi)) >> 1);long offset2 = fieldIndex.termOffsets.Get(mid);int length2 = (int)(fieldIndex.termOffsets.Get(1 + mid) - offset2);outerInstance.termBytesReader.FillSlice(term, fieldIndex.termBytesStart + offset2, length2);int delta = outerInstance.termComp.Compare(target, term);if (delta < 0){hi = mid - 1;}else if (delta > 0){lo = mid + 1;}else{Debug.Assert(mid >= 0);ord = mid * outerInstance.totalIndexInterval;return fieldIndex.termsStart + fieldIndex.termsDictOffsets.Get(mid);}}if (hi < 0){Debug.Assert(hi == -1);hi = 0;}long offset = fieldIndex.termOffsets.Get(hi);int length = (int)(fieldIndex.termOffsets.Get(1 + hi) - offset);outerInstance.termBytesReader.FillSlice(term, fieldIndex.termBytesStart + offset, length);ord = hi * outerInstance.totalIndexInterval;return fieldIndex.termsStart + fieldIndex.termsDictOffsets.Get(hi);}" }, { "index": 2681, "before": "public void write(byte[] b, int offset, int len) {int i=0;while(true) {int nWritableChars = Math.min(len - i, _ulrOutput.getAvailableSpace() / 1);for ( ; nWritableChars > 0; nWritableChars--) {_ulrOutput.writeByte(b[offset + i++]);}if (i >= len) {break;}writeContinue();}}", "after": "public void Write(byte[] b, int offset, int len){int i = 0;while (true){int nWritableChars = Math.Min(len - i, _ulrOutput.AvailableSpace / 1);for (; nWritableChars > 0; nWritableChars--){_ulrOutput.WriteByte(b[offset + i++]);}if (i >= len){break;}WriteContinue();}}" }, { "index": 2682, "before": "public FormatFlagsConversionMismatchException(String f, char c) {if (f == null) {throw new NullPointerException();}this.f = f;this.c = c;}", "after": "public FormatFlagsConversionMismatchException(string f, char c){if (f == null){throw new System.ArgumentNullException();}this.f = f;this.c = c;}" }, { "index": 2683, "before": "public List getNextHeads(char c) {return FileNameMatcher.EMPTY_HEAD_LIST;}", "after": "public IList GetNextHeads(char c){return FileNameMatcher.EMPTY_HEAD_LIST;}" }, { "index": 2684, "before": "public void addQueryBuilder(String nodeName, QueryBuilder builder) {queryFactory.addBuilder(nodeName, builder);}", "after": "public virtual void AddQueryBuilder(string nodeName, IQueryBuilder builder){m_queryFactory.AddBuilder(nodeName, builder);}" }, { "index": 2685, "before": "public int defineDecisionState(DecisionState s) {decisionToState.add(s);s.decision = decisionToState.size()-1;return s.decision;}", "after": "public virtual int DefineDecisionState(DecisionState s){decisionToState.Add(s);s.decision = decisionToState.Count - 1;decisionToDFA = Arrays.CopyOf(decisionToDFA, decisionToState.Count);decisionToDFA[decisionToDFA.Length - 1] = new DFA(s, s.decision);return s.decision;}" }, { "index": 2686, "before": "public void afterRefresh(boolean didRefresh) {refreshDone();}", "after": "public virtual void AfterRefresh(bool didRefresh){outerInstance.RefreshDone();}" }, { "index": 2687, "before": "public static final int prevLF(byte[] b, int ptr, char chrA) {if (ptr == b.length)--ptr;while (ptr >= 0) {final byte c = b[ptr--];if (c == chrA || c == '\\n')return ptr;}return ptr;}", "after": "public static int PrevLF(byte[] b, int ptr, char chrA){if (ptr == b.Length){--ptr;}while (ptr >= 0){byte c = b[ptr--];if (c == chrA || c == '\\n'){return ptr;}}return ptr;}" }, { "index": 2688, "before": "public ConsumeContentSourceTask(PerfRunData runData) {super(runData);source = runData.getContentSource();}", "after": "public ConsumeContentSourceTask(PerfRunData runData): base(runData){source = runData.ContentSource;}" }, { "index": 2689, "before": "public DescribeInstanceTypeOfferingsResult describeInstanceTypeOfferings(DescribeInstanceTypeOfferingsRequest request) {request = beforeClientExecution(request);return executeDescribeInstanceTypeOfferings(request);}", "after": "public virtual DescribeInstanceTypeOfferingsResponse DescribeInstanceTypeOfferings(DescribeInstanceTypeOfferingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInstanceTypeOfferingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInstanceTypeOfferingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2690, "before": "public void clearDrawingGroups() {drawingGroups.clear();}", "after": "public void ClearDrawingGroups(){drawingGroups.Clear();}" }, { "index": 2691, "before": "public String formatDate(PersonIdent ident) {switch (format) {case RAW:int offset = ident.getTimeZoneOffset();String sign = offset < 0 ? \"-\" : \"+\"; int offset2;if (offset < 0)offset2 = -offset;elseoffset2 = offset;int hours = offset2 / 60;int minutes = offset2 % 60;return String.format(\"%d %s%02d%02d\", ident.getWhen().getTime() / 1000, sign, hours, minutes);case RELATIVE:return RelativeDateFormatter.format(ident.getWhen());case LOCALELOCAL:case LOCAL:dateTimeInstance.setTimeZone(SystemReader.getInstance().getTimeZone());return dateTimeInstance.format(ident.getWhen());case LOCALE:TimeZone tz = ident.getTimeZone();if (tz == null)tz = SystemReader.getInstance().getTimeZone();dateTimeInstance.setTimeZone(tz);dateTimeInstance2.setTimeZone(tz);return dateTimeInstance.format(ident.getWhen()) + \" \" + dateTimeInstance2.format(ident.getWhen());default:tz = ident.getTimeZone();if (tz == null)tz = SystemReader.getInstance().getTimeZone();dateTimeInstance.setTimeZone(ident.getTimeZone());return dateTimeInstance.format(ident.getWhen());}}", "after": "public virtual string FormatDate(PersonIdent ident){TimeZoneInfo tz;switch (format){case GitDateFormatter.Format.RAW:{int offset = ident.GetTimeZoneOffset();string sign = offset < 0 ? \"-\" : \"+\";int offset2;if (offset < 0){offset2 = -offset;}else{offset2 = offset;}int hours = offset2 / 60;int minutes = offset2 % 60;return string.Format(\"%d %s%02d%02d\", ident.GetWhen().GetTime() / 1000, sign, hours, minutes);}case GitDateFormatter.Format.RELATIVE:{return RelativeDateFormatter.Format(ident.GetWhen());}case GitDateFormatter.Format.LOCALELOCAL:case GitDateFormatter.Format.LOCAL:{dateTimeInstance.SetTimeZone(SystemReader.GetInstance().GetTimeZone());return dateTimeInstance.Format(ident.GetWhen());}case GitDateFormatter.Format.LOCALE:{tz = ident.GetTimeZone();if (tz == null){tz = SystemReader.GetInstance().GetTimeZone();}dateTimeInstance.SetTimeZone(tz);dateTimeInstance2.SetTimeZone(tz);return dateTimeInstance.Format(ident.GetWhen()) + \" \" + dateTimeInstance2.Format(ident.GetWhen());}default:{tz = ident.GetTimeZone();if (tz == null){tz = SystemReader.GetInstance().GetTimeZone();}dateTimeInstance.SetTimeZone(ident.GetTimeZone());return dateTimeInstance.Format(ident.GetWhen());break;}}}" }, { "index": 2692, "before": "public DeregisterStreamConsumerResult deregisterStreamConsumer(DeregisterStreamConsumerRequest request) {request = beforeClientExecution(request);return executeDeregisterStreamConsumer(request);}", "after": "public virtual DeregisterStreamConsumerResponse DeregisterStreamConsumer(DeregisterStreamConsumerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterStreamConsumerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterStreamConsumerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2693, "before": "public boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;return true;}", "after": "public override bool Equals(object obj){if (object.ReferenceEquals(obj, this)){return true;}if (object.ReferenceEquals(null, obj)){return object.ReferenceEquals(null, this);}if (this.GetType() != obj.GetType()){return false;}return true;}" }, { "index": 2694, "before": "public ByteBuffer asReadOnlyBuffer() {return ReadOnlyHeapByteBuffer.copy(this, mark);}", "after": "public override java.nio.ByteBuffer asReadOnlyBuffer(){return java.nio.ReadOnlyHeapByteBuffer.copy(this, _mark);}" }, { "index": 2695, "before": "public long ramBytesUsed() {long sizeInBytes = 0;for(FieldIndexData entry : fields.values()) {sizeInBytes += entry.ramBytesUsed();}return sizeInBytes;}", "after": "public override long RamBytesUsed(){long sizeInBytes = 0;foreach (FieldIndexData entry in fields.Values){sizeInBytes += entry.RamBytesUsed();}return sizeInBytes;}" }, { "index": 2696, "before": "public CreateTransitGatewayRouteTableResult createTransitGatewayRouteTable(CreateTransitGatewayRouteTableRequest request) {request = beforeClientExecution(request);return executeCreateTransitGatewayRouteTable(request);}", "after": "public virtual CreateTransitGatewayRouteTableResponse CreateTransitGatewayRouteTable(CreateTransitGatewayRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitGatewayRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitGatewayRouteTableResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2697, "before": "public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {int bytesRemaining = readHeader( data, offset );int pos = offset + 8;int size = 0;field_1_color1 = LittleEndian.getInt( data, pos + size );size+=4;field_2_color2 = LittleEndian.getInt( data, pos + size );size+=4;field_3_color3 = LittleEndian.getInt( data, pos + size );size+=4;field_4_color4 = LittleEndian.getInt( data, pos + size );size+=4;bytesRemaining -= size;if (bytesRemaining != 0) {throw new RecordFormatException(\"Expecting no remaining data but got \" + bytesRemaining + \" byte(s).\");}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_color1 = LittleEndian.GetInt(data, pos + size); size += 4;field_2_color2 = LittleEndian.GetInt(data, pos + size); size += 4;field_3_color3 = LittleEndian.GetInt(data, pos + size); size += 4;field_4_color4 = LittleEndian.GetInt(data, pos + size); size += 4;bytesRemaining -= size;if (bytesRemaining != 0)throw new RecordFormatException(\"Expecting no remaining data but got \" + bytesRemaining + \" byte(s).\");return 8 + size + bytesRemaining;}" }, { "index": 2698, "before": "public CharSequence[] getMultiFields() {return getQueryConfigHandler().get(ConfigurationKeys.MULTI_FIELDS);}", "after": "public virtual string[] GetMultiFields(){return QueryConfigHandler.Get(ConfigurationKeys.MULTI_FIELDS);}" }, { "index": 2699, "before": "public boolean hasNext() {return returnedNumber < getObjectCount();}", "after": "public override bool HasNext(){return this.returnedNumber < this._enclosing.GetObjectCount();}" }, { "index": 2700, "before": "public String toString() {return SpatialArgsParser.writeSpatialArgs(this);}", "after": "public override string ToString(){return SpatialArgsParser.WriteSpatialArgs(this);}" }, { "index": 2701, "before": "public static RowRecord createRow(int rowNumber) {return new RowRecord(rowNumber);}", "after": "public static RowRecord CreateRow(int rowNumber){return new RowRecord(rowNumber);}" }, { "index": 2702, "before": "public void serialize(LittleEndianOutput out) {out.writeByte(field_1_last_column_index);out.writeByte(field_2_first_column_index);out.writeShort(field_3_row_index);ConstantValueParser.encode(out, field_4_constant_values);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteByte(field_1_last_column_index);out1.WriteByte(field_2_first_column_index);out1.WriteShort(field_3_row_index);ConstantValueParser.Encode(out1, field_4_constant_values);}" }, { "index": 2703, "before": "public DescribeHostReservationOfferingsResult describeHostReservationOfferings(DescribeHostReservationOfferingsRequest request) {request = beforeClientExecution(request);return executeDescribeHostReservationOfferings(request);}", "after": "public virtual DescribeHostReservationOfferingsResponse DescribeHostReservationOfferings(DescribeHostReservationOfferingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeHostReservationOfferingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeHostReservationOfferingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2704, "before": "public void setEmpty() {field_2_first_col = 0;field_3_last_col = 0;}", "after": "public void SetEmpty(){field_2_first_col = 0;field_3_last_col = 0;}" }, { "index": 2705, "before": "public CancelBundleTaskResult cancelBundleTask(CancelBundleTaskRequest request) {request = beforeClientExecution(request);return executeCancelBundleTask(request);}", "after": "public virtual CancelBundleTaskResponse CancelBundleTask(CancelBundleTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelBundleTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelBundleTaskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2706, "before": "public ShingleFilter(TokenStream input, String tokenType) {this(input, DEFAULT_MIN_SHINGLE_SIZE, DEFAULT_MAX_SHINGLE_SIZE);setTokenType(tokenType);}", "after": "public ShingleFilter(TokenStream input, string tokenType): this(input, DEFAULT_MIN_SHINGLE_SIZE, DEFAULT_MAX_SHINGLE_SIZE){SetTokenType(tokenType);}" }, { "index": 2707, "before": "public MergeException(String message, Directory dir) {super(message);this.dir = dir;}", "after": "public MergeException(string message, Directory dir): base(message){this.dir = dir;}" }, { "index": 2708, "before": "public TestDNSAnswerResult testDNSAnswer(TestDNSAnswerRequest request) {request = beforeClientExecution(request);return executeTestDNSAnswer(request);}", "after": "public virtual TestDNSAnswerResponse TestDNSAnswer(TestDNSAnswerRequest request){var options = new InvokeOptions();options.RequestMarshaller = TestDNSAnswerRequestMarshaller.Instance;options.ResponseUnmarshaller = TestDNSAnswerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2709, "before": "public String getFieldAsString() {return field.toString();}", "after": "public virtual string GetFieldAsString(){return field.ToString();}" }, { "index": 2710, "before": "public GetMasterAccountResult getMasterAccount(GetMasterAccountRequest request) {request = beforeClientExecution(request);return executeGetMasterAccount(request);}", "after": "public virtual GetMasterAccountResponse GetMasterAccount(GetMasterAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMasterAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMasterAccountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2711, "before": "public int getIndexVersion() {return indexVersion;}", "after": "public virtual int GetIndexVersion(){return indexVersion;}" }, { "index": 2712, "before": "public GetAdmChannelResult getAdmChannel(GetAdmChannelRequest request) {request = beforeClientExecution(request);return executeGetAdmChannel(request);}", "after": "public virtual GetAdmChannelResponse GetAdmChannel(GetAdmChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAdmChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAdmChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2713, "before": "public boolean equals(Object obj) {if (! (obj instanceof BasicQueryFactory))return false;BasicQueryFactory other = (BasicQueryFactory) obj;return atMax() == other.atMax();}", "after": "public override bool Equals(object obj){if (!(obj is BasicQueryFactory))return false;BasicQueryFactory other = (BasicQueryFactory)obj;return AtMax == other.AtMax;}" }, { "index": 2714, "before": "public byte readByte() {return (byte)readUByte();}", "after": "public int ReadByte(){return (byte)ReadUByte();}" }, { "index": 2715, "before": "public DeletePolicyResult deletePolicy(DeletePolicyRequest request) {request = beforeClientExecution(request);return executeDeletePolicy(request);}", "after": "public virtual DeletePolicyResponse DeletePolicy(DeletePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeletePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeletePolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2716, "before": "public String get(Object key) {return idMap.get(key);}", "after": "public Object Get(long id){return this[id];}" }, { "index": 2717, "before": "public void setNonLocalizedMessage(Message message) {this.message = message;}", "after": "public virtual void SetNonLocalizedMessage(IMessage message){this.m_message = message;}" }, { "index": 2718, "before": "public DescribeClusterVersionsResult describeClusterVersions() {return describeClusterVersions(new DescribeClusterVersionsRequest());}", "after": "public virtual DescribeClusterVersionsResponse DescribeClusterVersions(){return DescribeClusterVersions(new DescribeClusterVersionsRequest());}" }, { "index": 2719, "before": "public void onPostReceive(ReceivePack rp,Collection commands) {for (int i = 0; i < count; i++)hooks[i].onPostReceive(rp, commands);}", "after": "public override void OnPostReceive(ReceivePack rp, ICollection commands){for (int i = 0; i < count; i++){hooks[i].OnPostReceive(rp, commands);}}" }, { "index": 2720, "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": 2721, "before": "public int stem(char s[], int len) {if (len < 6)return len;if (s[len-1] == 'x') {if (s[len-3] == 'a' && s[len-2] == 'u')s[len-2] = 'l';return len - 1;}if (s[len-1] == 's') len--;if (s[len-1] == 'r') len--;if (s[len-1] == 'e') len--;if (s[len-1] == 'é') len--;if (s[len-1] == s[len-2] && Character.isLetter(s[len-1])) len--;return len;}", "after": "public virtual int Stem(char[] s, int len){if (len < 6){return len;}if (s[len - 1] == 'x'){if (s[len - 3] == 'a' && s[len - 2] == 'u'){s[len - 2] = 'l';}return len - 1;}if (s[len - 1] == 's'){len--;}if (s[len - 1] == 'r'){len--;}if (s[len - 1] == 'e'){len--;}if (s[len - 1] == 'é'){len--;}if (s[len - 1] == s[len - 2]){len--;}return len;}" }, { "index": 2722, "before": "public static RkRec[] parseRKs(RecordInputStream in) {int nItems = (in.remaining()-2) / ENCODED_SIZE;RkRec[] retval = new RkRec[nItems];for (int i=0; i(request, options);}" }, { "index": 2725, "before": "public ProfilingATNSimulator(Parser parser) {super(parser,parser.getInterpreter().atn,parser.getInterpreter().decisionToDFA,parser.getInterpreter().sharedContextCache);numDecisions = atn.decisionToState.size();decisions = new DecisionInfo[numDecisions];for (int i=0; i(request, options);}" }, { "index": 2727, "before": "public boolean hasNext() {return link.next != list.voidLink;}", "after": "public bool hasNext(){return link.next != list.voidLink;}" }, { "index": 2728, "before": "public static double product(double[] values) {double product = 0;if (values!=null && values.length > 0) {product = 1;for (double value : values) {product *= value;}}return product;}", "after": "public static double Product(double[] values){double product = 0;if (values != null && values.Length > 0){product = 1;for (int i = 0, iSize = values.Length; i < iSize; i++){product *= values[i];}}return product;}" }, { "index": 2729, "before": "public RebaseCommand setUpstream(String upstream)throws RefNotFoundException {try {ObjectId upstreamId = repo.resolve(upstream);if (upstreamId == null)throw new RefNotFoundException(MessageFormat.format(JGitText.get().refNotResolved, upstream));upstreamCommit = walk.parseCommit(repo.resolve(upstream));upstreamCommitName = upstream;return this;} catch (IOException ioe) {throw new JGitInternalException(ioe.getMessage(), ioe);}}", "after": "public virtual NGit.Api.RebaseCommand SetUpstream(string upstream){try{ObjectId upstreamId = repo.Resolve(upstream);if (upstreamId == null){throw new RefNotFoundException(MessageFormat.Format(JGitText.Get().refNotResolved, upstream));}upstreamCommit = walk.ParseCommit(repo.Resolve(upstream));upstreamCommitName = upstream;return this;}catch (IOException ioe){throw new JGitInternalException(ioe.Message, ioe);}}" }, { "index": 2730, "before": "public ATN(ATNType grammarType, int maxTokenType) {this.grammarType = grammarType;this.maxTokenType = maxTokenType;}", "after": "public ATN(ATNType grammarType, int maxTokenType){this.grammarType = grammarType;this.maxTokenType = maxTokenType;}" }, { "index": 2731, "before": "public HyphenatedWordsFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public HyphenatedWordsFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 2732, "before": "public GetBlueprintsResult getBlueprints(GetBlueprintsRequest request) {request = beforeClientExecution(request);return executeGetBlueprints(request);}", "after": "public virtual GetBlueprintsResponse GetBlueprints(GetBlueprintsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBlueprintsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBlueprintsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2733, "before": "public synchronized StringBuffer append(StringBuffer sb) {if (sb == null) {appendNull();} else {synchronized (sb) {append0(sb.getValue(), 0, sb.length());}}return this;}", "after": "public java.lang.StringBuffer append(string @string){lock (this){append0(@string);return this;}}" }, { "index": 2734, "before": "public EngineDefaults describeEngineDefaultClusterParameters(DescribeEngineDefaultClusterParametersRequest request) {request = beforeClientExecution(request);return executeDescribeEngineDefaultClusterParameters(request);}", "after": "public virtual DescribeEngineDefaultClusterParametersResponse DescribeEngineDefaultClusterParameters(DescribeEngineDefaultClusterParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEngineDefaultClusterParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEngineDefaultClusterParametersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2735, "before": "public DeleteLaunchTemplateResult deleteLaunchTemplate(DeleteLaunchTemplateRequest request) {request = beforeClientExecution(request);return executeDeleteLaunchTemplate(request);}", "after": "public virtual DeleteLaunchTemplateResponse DeleteLaunchTemplate(DeleteLaunchTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLaunchTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLaunchTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2736, "before": "public Object toObject() {assert exists || (false == value);return exists ? value : null;}", "after": "public override object ToObject(){return Exists ? (object)Value : null;}" }, { "index": 2737, "before": "public ObjectReader newObjectReader() {return getObjectDatabase().newReader();}", "after": "public virtual ObjectReader NewObjectReader(){return ObjectDatabase.NewReader();}" }, { "index": 2738, "before": "public String toString() {String nl = System.getProperty(\"line.separtor\");StringBuilder result = new StringBuilder();result.append('[').append(getRecordName()).append(']').append(nl);for (EscherRecord escherRecord : getEscherRecords()) {result.append(escherRecord);}result.append(\"[/\").append(getRecordName()).append(']').append(nl);return result.toString();}", "after": "public override String ToString(){String nl = Environment.NewLine;StringBuilder result = new StringBuilder();result.Append('[').Append(RecordName).Append(']' + nl);for (IEnumerator iterator = EscherRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord escherRecord = (EscherRecord)iterator.Current;result.Append(escherRecord.ToString() + nl);}result.Append(\"[/\").Append(RecordName).Append(']' + nl);return result.ToString();}" }, { "index": 2739, "before": "public GetSnapshotBlockResult getSnapshotBlock(GetSnapshotBlockRequest request) {request = beforeClientExecution(request);return executeGetSnapshotBlock(request);}", "after": "public virtual GetSnapshotBlockResponse GetSnapshotBlock(GetSnapshotBlockRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSnapshotBlockRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSnapshotBlockResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2740, "before": "public HSSFComment createComment(HSSFAnchor anchor) {HSSFComment shape = new HSSFComment(null, anchor);addShape(shape);onCreate(shape);return shape;}", "after": "public HSSFComment CreateComment(HSSFAnchor anchor){HSSFComment shape = new HSSFComment(null, anchor);AddShape(shape);OnCreate(shape);return shape;}" }, { "index": 2741, "before": "public CopySnapshotResult copySnapshot(CopySnapshotRequest request) {request = beforeClientExecution(request);return executeCopySnapshot(request);}", "after": "public virtual CopySnapshotResponse CopySnapshot(CopySnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopySnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CopySnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2742, "before": "public String toString() {return \"\";}", "after": "public override string ToString(){return \"\";}" }, { "index": 2743, "before": "public void write(int b) throws IOException {throw new IllegalStateException(JGitText.get().writingNotPermitted);}", "after": "public override void Write(int b){throw new InvalidOperationException(JGitText.Get().writingNotPermitted);}" }, { "index": 2744, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {try {String needle = TextFunction.evaluateStringArg(arg0, srcRowIndex, srcColumnIndex);String haystack = TextFunction.evaluateStringArg(arg1, srcRowIndex, srcColumnIndex);return eval(haystack, needle, 0);} catch (EvaluationException e) {return e.getErrorEval();}}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){try{String needle = TextFunction.EvaluateStringArg(arg0, srcRowIndex, srcColumnIndex);String haystack = TextFunction.EvaluateStringArg(arg1, srcRowIndex, srcColumnIndex);return Eval(haystack, needle, 0);}catch (EvaluationException e){return e.GetErrorEval();}}" }, { "index": 2745, "before": "public NumberMatcher(double value, CmpOp operator) {super(operator);_value = value;}", "after": "public NumberMatcher(double value, CmpOp optr): base(optr){_value = value;}" }, { "index": 2746, "before": "public GroupingSearch setCachingInMB(double maxCacheRAMMB, boolean cacheScores) {this.maxCacheRAMMB = maxCacheRAMMB;this.maxDocsToCache = null;this.cacheScores = cacheScores;return this;}", "after": "public virtual GroupingSearch SetCachingInMB(double maxCacheRAMMB, bool cacheScores){this.maxCacheRAMMB = maxCacheRAMMB;this.maxDocsToCache = null;this.cacheScores = cacheScores;return this;}" }, { "index": 2747, "before": "public DescribeRegionsResult describeRegions(DescribeRegionsRequest request) {request = beforeClientExecution(request);return executeDescribeRegions(request);}", "after": "public virtual DescribeRegionsResponse DescribeRegions(DescribeRegionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRegionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRegionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2748, "before": "public ListApplicationRevisionsResult listApplicationRevisions(ListApplicationRevisionsRequest request) {request = beforeClientExecution(request);return executeListApplicationRevisions(request);}", "after": "public virtual ListApplicationRevisionsResponse ListApplicationRevisions(ListApplicationRevisionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListApplicationRevisionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListApplicationRevisionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2749, "before": "public int set(int index, long[] arr, int off, int len) {long max = 0;for (int i = off, end = off + len; i < end; ++i) {max |= arr[i];}ensureCapacity(max);return current.set(index, arr, off, len);}", "after": "public override int Set(int index, long[] arr, int off, int len){long max = 0;for (int i = off, end = off + len; i < end; ++i){max |= arr[i];}EnsureCapacity(max);return current.Set(index, arr, off, len);}" }, { "index": 2750, "before": "public MutableValue duplicate() {MutableValueDate v = new MutableValueDate();v.value = this.value;v.exists = this.exists;return v;}", "after": "public override MutableValue Duplicate(){MutableValueDate v = new MutableValueDate();v.Value = this.Value;v.Exists = this.Exists;return v;}" }, { "index": 2751, "before": "public DeleteUserResult deleteUser(DeleteUserRequest request) {request = beforeClientExecution(request);return executeDeleteUser(request);}", "after": "public virtual DeleteUserResponse DeleteUser(DeleteUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUserRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUserResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2752, "before": "public String getPath() {return path;}", "after": "public string getPath(){return path;}" }, { "index": 2753, "before": "public ListVerifiedEmailAddressesResult listVerifiedEmailAddresses() {return listVerifiedEmailAddresses(new ListVerifiedEmailAddressesRequest());}", "after": "public virtual ListVerifiedEmailAddressesResponse ListVerifiedEmailAddresses(){return ListVerifiedEmailAddresses(new ListVerifiedEmailAddressesRequest());}" }, { "index": 2754, "before": "public DescribeStackResourceResult describeStackResource(DescribeStackResourceRequest request) {request = beforeClientExecution(request);return executeDescribeStackResource(request);}", "after": "public virtual DescribeStackResourceResponse DescribeStackResource(DescribeStackResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStackResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStackResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2755, "before": "public MetricsTagPredicate(Tag tag) {this.tag = tag;}", "after": "public MetricsTagPredicate(Tag tag){this.tag = tag;}" }, { "index": 2756, "before": "public void remove() {if (last == null) {throw new IllegalStateException();}removeInternal(last);expectedModCount = modCount;last = null;}", "after": "public virtual void remove(){if (this.last == null){throw new System.InvalidOperationException();}this._enclosing.removeInternal(this.last);this.expectedModCount = this._enclosing.modCount;this.last = null;}" }, { "index": 2757, "before": "public void setExecutor(Executor executor) {this.executor = executor;}", "after": "public virtual void SetExecutor(Executor executor){this.executor = executor;}" }, { "index": 2758, "before": "public boolean hasDirectoryEntry() {EmbeddedObjectRefSubRecord subRecord = findObjectRecord();Integer streamId = subRecord.getStreamId();return streamId != null && streamId.intValue() != 0;}", "after": "public bool HasDirectoryEntry(){EmbeddedObjectRefSubRecord subRecord = FindObjectRecord();int? streamId = subRecord.StreamId;return streamId != null && streamId != 0;}" }, { "index": 2759, "before": "public K higherKey(K key) {Entry entry = findBounded(key, HIGHER);return entry != null ? entry.getKey() : null;}", "after": "public K higherKey(K key){java.util.MapClass.Entry entry = this.findBounded(key, java.util.TreeMap.Relation.HIGHER);return entry != null ? entry.getKey() : default(K);}" }, { "index": 2760, "before": "public void exitRule() {if ( matchedEOF ) {_ctx.stop = _input.LT(1); }else {_ctx.stop = _input.LT(-1); }if ( _parseListeners != null) triggerExitRuleEvent();setState(_ctx.invokingState);_ctx = (ParserRuleContext)_ctx.parent;}", "after": "public virtual void ExitRule(){_ctx.Stop = _input.LT(-1);if (_parseListeners != null){TriggerExitRuleEvent();}State = _ctx.invokingState;_ctx = (ParserRuleContext)_ctx.Parent;}" }, { "index": 2761, "before": "public DeleteTrafficPolicyInstanceResult deleteTrafficPolicyInstance(DeleteTrafficPolicyInstanceRequest request) {request = beforeClientExecution(request);return executeDeleteTrafficPolicyInstance(request);}", "after": "public virtual DeleteTrafficPolicyInstanceResponse DeleteTrafficPolicyInstance(DeleteTrafficPolicyInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTrafficPolicyInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTrafficPolicyInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2762, "before": "public boolean check(final int level) {int currentLevel;try {currentLevel = Integer.parseInt(System.getProperty(\"poi.log.level\", WARN + \"\"));} catch (SecurityException e) {currentLevel = POILogger.DEBUG;}return level >= currentLevel;}", "after": "public override bool Check(int level){int currentLevel;try{var temp = WARN.ToString(CultureInfo.InvariantCulture);currentLevel = int.Parse(temp, CultureInfo.InvariantCulture);}catch (Exception){currentLevel = POILogger.DEBUG;}if (level >= currentLevel){return true;}return false;}" }, { "index": 2763, "before": "public ShortBuffer put(short c) {if (position == limit) {throw new BufferOverflowException();}backingArray[offset + position++] = c;return this;}", "after": "public override java.nio.ShortBuffer put(short c){if (_position == _limit){throw new java.nio.BufferOverflowException();}backingArray[offset + _position++] = c;return this;}" }, { "index": 2764, "before": "public DeletePublicKeyResult deletePublicKey(DeletePublicKeyRequest request) {request = beforeClientExecution(request);return executeDeletePublicKey(request);}", "after": "public virtual DeletePublicKeyResponse DeletePublicKey(DeletePublicKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeletePublicKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeletePublicKeyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2765, "before": "public ObjectId idFor(int type, byte[] data) {return delegate().idFor(type, data);}", "after": "public override ObjectId IdFor(int type, byte[] data){return Delegate().IdFor(type, data);}" }, { "index": 2766, "before": "public DeleteDBProxyResult deleteDBProxy(DeleteDBProxyRequest request) {request = beforeClientExecution(request);return executeDeleteDBProxy(request);}", "after": "public virtual DeleteDBProxyResponse DeleteDBProxy(DeleteDBProxyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBProxyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBProxyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2767, "before": "public void add(int n) {if (count == entries.length)grow();entries[count++] = n;}", "after": "public virtual void Add(int n){if (count == entries.Length){Grow();}entries[count++] = n;}" }, { "index": 2768, "before": "public PortugueseStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public PortugueseStemFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 2769, "before": "public DisconnectParticipantResult disconnectParticipant(DisconnectParticipantRequest request) {request = beforeClientExecution(request);return executeDisconnectParticipant(request);}", "after": "public virtual DisconnectParticipantResponse DisconnectParticipant(DisconnectParticipantRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisconnectParticipantRequestMarshaller.Instance;options.ResponseUnmarshaller = DisconnectParticipantResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2770, "before": "public ObjectId getPeeledObjectId() {return null;}", "after": "public override ObjectId GetPeeledObjectId(){return null;}" }, { "index": 2771, "before": "public DeleteParameterGroupResult deleteParameterGroup(DeleteParameterGroupRequest request) {request = beforeClientExecution(request);return executeDeleteParameterGroup(request);}", "after": "public virtual DeleteParameterGroupResponse DeleteParameterGroup(DeleteParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2772, "before": "public TextRecord(RecordInputStream in) {field_1_horizontalAlignment = in.readByte();field_2_verticalAlignment = in.readByte();field_3_displayMode = in.readShort();field_4_rgbColor = in.readInt();field_5_x = in.readInt();field_6_y = in.readInt();field_7_width = in.readInt();field_8_height = in.readInt();field_9_options1 = in.readShort();field_10_indexOfColorValue = in.readShort();field_11_options2 = in.readShort();field_12_textRotation = in.readShort();}", "after": "public TextRecord(RecordInputStream in1){field_1_horizontalAlignment = (byte)in1.ReadByte();field_2_verticalAlignment = (byte)in1.ReadByte();field_3_DisplayMode = in1.ReadShort();field_4_rgbColor = in1.ReadInt();field_5_x = in1.ReadInt();field_6_y = in1.ReadInt();field_7_width = in1.ReadInt();field_8_height = in1.ReadInt();field_9_options1 = in1.ReadShort();field_10_IndexOfColorValue = in1.ReadShort();field_11_options2 = in1.ReadShort();field_12_textRotation = in1.ReadShort();}" }, { "index": 2773, "before": "public ReflogCommand setRef(String ref) {checkCallable();this.ref = ref;return this;}", "after": "public virtual NGit.Api.ReflogCommand SetRef(string @ref){CheckCallable();this.@ref = @ref;return this;}" }, { "index": 2774, "before": "@Override public boolean contains(Object object) {Object[] a = array;int s = size;if (object != null) {for (int i = 0; i < s; i++) {if (object.equals(a[i])) {return true;}}} else {for (int i = 0; i < s; i++) {if (a[i] == null) {return true;}}}return false;}", "after": "public override bool contains(object @object){if (@object != null){foreach (E element in a){if (@object.Equals(element)){return true;}}}else{foreach (E element in a){if ((object)element == null){return true;}}}return false;}" }, { "index": 2775, "before": "public CreateFpgaImageResult createFpgaImage(CreateFpgaImageRequest request) {request = beforeClientExecution(request);return executeCreateFpgaImage(request);}", "after": "public virtual CreateFpgaImageResponse CreateFpgaImage(CreateFpgaImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFpgaImageRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFpgaImageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2776, "before": "public DescribeAggregateIdFormatResult describeAggregateIdFormat(DescribeAggregateIdFormatRequest request) {request = beforeClientExecution(request);return executeDescribeAggregateIdFormat(request);}", "after": "public virtual DescribeAggregateIdFormatResponse DescribeAggregateIdFormat(DescribeAggregateIdFormatRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAggregateIdFormatRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAggregateIdFormatResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2777, "before": "public ListMultipartUploadsRequest(String vaultName) {setVaultName(vaultName);}", "after": "public ListMultipartUploadsRequest(string vaultName){_vaultName = vaultName;}" }, { "index": 2778, "before": "public DeleteRepoRequest() {super(\"cr\", \"2016-06-07\", \"DeleteRepo\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]\");setMethod(MethodType.DELETE);}", "after": "public DeleteRepoRequest(): base(\"cr\", \"2016-06-07\", \"DeleteRepo\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]\";Method = MethodType.DELETE;}" }, { "index": 2779, "before": "public static BOFRecord createSheetBOF() {return new BOFRecord(TYPE_WORKSHEET);}", "after": "public static BOFRecord CreateSheetBOF(){return new BOFRecord(BOFRecordType.Worksheet);}" }, { "index": 2780, "before": "public FloatBuffer put(float[] src, int srcOffset, int floatCount) {byteBuffer.limit(limit * SizeOf.FLOAT);byteBuffer.position(position * SizeOf.FLOAT);if (byteBuffer instanceof ReadWriteDirectByteBuffer) {((ReadWriteDirectByteBuffer) byteBuffer).put(src, srcOffset, floatCount);} else {((ReadWriteHeapByteBuffer) byteBuffer).put(src, srcOffset, floatCount);}this.position += floatCount;return this;}", "after": "public override java.nio.FloatBuffer put(float[] src, int srcOffset, int floatCount){byteBuffer.limit(_limit * libcore.io.SizeOf.FLOAT);byteBuffer.position(_position * libcore.io.SizeOf.FLOAT);if (byteBuffer is java.nio.ReadWriteDirectByteBuffer){((java.nio.ReadWriteDirectByteBuffer)byteBuffer).put(src, srcOffset, floatCount);}else{((java.nio.ReadWriteHeapByteBuffer)byteBuffer).put(src, srcOffset, floatCount);}this._position += floatCount;return this;}" }, { "index": 2781, "before": "public void execute(Lexer lexer) {lexer.popMode();}", "after": "public void Execute(Lexer lexer){lexer.PopMode();}" }, { "index": 2782, "before": "public DeleteImageRequest() {super(\"cr\", \"2016-06-07\", \"DeleteImage\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/tags/[Tag]\");setMethod(MethodType.DELETE);}", "after": "public DeleteImageRequest(): base(\"vod\", \"2017-03-21\", \"DeleteImage\"){if (this.GetType().GetProperty(\"ProductEndpointMap\") != null && this.GetType().GetProperty(\"ProductEndpointType\") != null){this.GetType().GetProperty(\"ProductEndpointMap\").SetValue(this, Endpoint.endpointMap, null);this.GetType().GetProperty(\"ProductEndpointType\").SetValue(this, Endpoint.endpointRegionalType, null);}}" }, { "index": 2783, "before": "public CreateImageBuilderResult createImageBuilder(CreateImageBuilderRequest request) {request = beforeClientExecution(request);return executeCreateImageBuilder(request);}", "after": "public virtual CreateImageBuilderResponse CreateImageBuilder(CreateImageBuilderRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateImageBuilderRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateImageBuilderResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2784, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getRow());out.writeShort(getColumn());out.writeShort(getXFIndex());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Row);out1.WriteShort(Column);out1.WriteShort(XFIndex);}" }, { "index": 2785, "before": "public UpdateSegmentResult updateSegment(UpdateSegmentRequest request) {request = beforeClientExecution(request);return executeUpdateSegment(request);}", "after": "public virtual UpdateSegmentResponse UpdateSegment(UpdateSegmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSegmentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSegmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2786, "before": "public DescribeSnapshotsResult describeSnapshots() {return describeSnapshots(new DescribeSnapshotsRequest());}", "after": "public virtual DescribeSnapshotsResponse DescribeSnapshots(){return DescribeSnapshots(new DescribeSnapshotsRequest());}" }, { "index": 2787, "before": "public AddNoteCommand setObjectId(RevObject id) {checkCallable();this.id = id;return this;}", "after": "public virtual NGit.Api.AddNoteCommand SetObjectId(RevObject id){CheckCallable();this.id = id;return this;}" }, { "index": 2788, "before": "public String toString() {return path;}", "after": "public override string ToString(){return path;}" }, { "index": 2789, "before": "public GetMetricStatisticsResult getMetricStatistics(GetMetricStatisticsRequest request) {request = beforeClientExecution(request);return executeGetMetricStatistics(request);}", "after": "public virtual GetMetricStatisticsResponse GetMetricStatistics(GetMetricStatisticsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMetricStatisticsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMetricStatisticsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2790, "before": "public DescribeAutoScalingInstancesResult describeAutoScalingInstances(DescribeAutoScalingInstancesRequest request) {request = beforeClientExecution(request);return executeDescribeAutoScalingInstances(request);}", "after": "public virtual DescribeAutoScalingInstancesResponse DescribeAutoScalingInstances(DescribeAutoScalingInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAutoScalingInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAutoScalingInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2791, "before": "public TokenFilter create(TokenStream input) {return new KStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new KStemFilter(input);}" }, { "index": 2792, "before": "public CreateEnvironmentRequest(String applicationName, String environmentName) {setApplicationName(applicationName);setEnvironmentName(environmentName);}", "after": "public CreateEnvironmentRequest(string applicationName, string environmentName){_applicationName = applicationName;_environmentName = environmentName;}" }, { "index": 2793, "before": "public static LongBuffer allocate(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}return new ReadWriteLongArrayBuffer(capacity);}", "after": "public static java.nio.LongBuffer allocate(int capacity_1){if (capacity_1 < 0){throw new System.ArgumentException();}return new java.nio.ReadWriteLongArrayBuffer(capacity_1);}" }, { "index": 2794, "before": "public GetIdentityMailFromDomainAttributesResult getIdentityMailFromDomainAttributes(GetIdentityMailFromDomainAttributesRequest request) {request = beforeClientExecution(request);return executeGetIdentityMailFromDomainAttributes(request);}", "after": "public virtual GetIdentityMailFromDomainAttributesResponse GetIdentityMailFromDomainAttributes(GetIdentityMailFromDomainAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdentityMailFromDomainAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdentityMailFromDomainAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2795, "before": "public boolean isForce() {return force;}", "after": "public virtual bool IsForce(){return force;}" }, { "index": 2796, "before": "public DescribeImageScanFindingsResult describeImageScanFindings(DescribeImageScanFindingsRequest request) {request = beforeClientExecution(request);return executeDescribeImageScanFindings(request);}", "after": "public virtual DescribeImageScanFindingsResponse DescribeImageScanFindings(DescribeImageScanFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeImageScanFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeImageScanFindingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2797, "before": "public SendContactMethodVerificationResult sendContactMethodVerification(SendContactMethodVerificationRequest request) {request = beforeClientExecution(request);return executeSendContactMethodVerification(request);}", "after": "public virtual SendContactMethodVerificationResponse SendContactMethodVerification(SendContactMethodVerificationRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendContactMethodVerificationRequestMarshaller.Instance;options.ResponseUnmarshaller = SendContactMethodVerificationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2798, "before": "public DeleteReceiptFilterResult deleteReceiptFilter(DeleteReceiptFilterRequest request) {request = beforeClientExecution(request);return executeDeleteReceiptFilter(request);}", "after": "public virtual DeleteReceiptFilterResponse DeleteReceiptFilter(DeleteReceiptFilterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteReceiptFilterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteReceiptFilterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2799, "before": "public void updateFormulaResult(ValueEval result, CellCacheEntry[] sensitiveInputCells, FormulaUsedBlankCellSet usedBlankAreas) {updateValue(result);setSensitiveInputCells(sensitiveInputCells);_usedBlankCellGroup = usedBlankAreas;}", "after": "public void UpdateFormulaResult(ValueEval result, CellCacheEntry[] sensitiveInputCells, FormulaUsedBlankCellSet usedBlankAreas){UpdateValue(result);SetSensitiveInputCells(sensitiveInputCells);_usedBlankCellGroup = usedBlankAreas;}" }, { "index": 2800, "before": "public String toString() {final StringBuilder r = new StringBuilder();r.append(\"(\"); for (int i = 0; i < subfilters.length; i++) {if (i > 0)r.append(\" OR \"); r.append(subfilters[i].toString());}r.append(\")\"); return r.toString();}", "after": "public override string ToString(){StringBuilder r = new StringBuilder();r.Append(\"(\");for (int i = 0; i < subfilters.Length; i++){if (i > 0){r.Append(\" AND \");}r.Append(subfilters[i].ToString());}r.Append(\")\");return r.ToString();}" }, { "index": 2801, "before": "public boolean equals( Object o ) {return o instanceof FrenchStemmer;}", "after": "public override bool Equals(object o){return o is FrenchStemmer;}" }, { "index": 2802, "before": "public MergedCellsTable() {_mergedRegions = new ArrayList<>();}", "after": "public MergedCellsTable(){_mergedRegions = new List();}" }, { "index": 2803, "before": "public PrecedencePredicateTransition(ATNState target, int precedence) {super(target);this.precedence = precedence;}", "after": "public PrecedencePredicateTransition(ATNState target, int precedence): base(target){this.precedence = precedence;}" }, { "index": 2804, "before": "public String toFormulaString() {throw new RuntimeException(\"Coding Error: Expected ExpPtg to be converted from Shared to Non-Shared Formula by ValueRecordsAggregate, but it wasn't\");}", "after": "public override String ToFormulaString(){throw new RecordFormatException(\"Coding Error: Expected ExpPtg to be Converted from Shared to Non-Shared Formula by ValueRecordsAggregate, but it wasn't\");}" }, { "index": 2805, "before": "public ParseTree getChild(int i) {return children!=null && i>=0 && i= 0 && i < children.Count ? children[i] : null;}" }, { "index": 2806, "before": "public ListIterator listIterator(int index) {return delegate().listIterator(index); }", "after": "public virtual java.util.ListIterator listIterator(int location){lock (mutex){return list.listIterator(location);}}" }, { "index": 2807, "before": "public StringBuffer getBuffer() {return buf;}", "after": "public virtual java.lang.StringBuffer getBuffer(){return buf;}" }, { "index": 2808, "before": "public BytesRefHash(ByteBlockPool pool, int capacity, BytesStartArray bytesStartArray) {hashSize = capacity;hashHalfSize = hashSize >> 1;hashMask = hashSize - 1;this.pool = pool;ids = new int[hashSize];Arrays.fill(ids, -1);this.bytesStartArray = bytesStartArray;bytesStart = bytesStartArray.init();bytesUsed = bytesStartArray.bytesUsed() == null? Counter.newCounter() : bytesStartArray.bytesUsed();bytesUsed.addAndGet(hashSize * Integer.BYTES);}", "after": "public BytesRefHash(ByteBlockPool pool, int capacity, BytesStartArray bytesStartArray){hashSize = capacity;hashHalfSize = hashSize >> 1;hashMask = hashSize - 1;this.pool = pool;ids = new int[hashSize];Arrays.Fill(ids, -1);this.bytesStartArray = bytesStartArray;bytesStart = bytesStartArray.Init();bytesUsed = bytesStartArray.BytesUsed() == null ? Counter.NewCounter() : bytesStartArray.BytesUsed();bytesUsed.AddAndGet(hashSize * RamUsageEstimator.NUM_BYTES_INT32);}" }, { "index": 2809, "before": "public GetIdentityDkimAttributesResult getIdentityDkimAttributes(GetIdentityDkimAttributesRequest request) {request = beforeClientExecution(request);return executeGetIdentityDkimAttributes(request);}", "after": "public virtual GetIdentityDkimAttributesResponse GetIdentityDkimAttributes(GetIdentityDkimAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdentityDkimAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdentityDkimAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2810, "before": "public DescribeSubnetsResult describeSubnets(DescribeSubnetsRequest request) {request = beforeClientExecution(request);return executeDescribeSubnets(request);}", "after": "public virtual DescribeSubnetsResponse DescribeSubnets(DescribeSubnetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSubnetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSubnetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2811, "before": "public final void serialize(LittleEndianOutput out) {if (getTextLength() > 0) {out.writeShort(getTextLength());out.writeByte(field_2_hasMultibyte ? 0x01 : 0x00);if (field_2_hasMultibyte) {StringUtil.putUnicodeLE(field_3_text, out);} else {StringUtil.putCompressedUnicode(field_3_text, out);}}}", "after": "public override void Serialize(ILittleEndianOutput out1){if (TextLength > 0){out1.WriteShort(TextLength);out1.WriteByte(field_2_hasMultibyte ? 0x01 : 0x00);if (field_2_hasMultibyte){StringUtil.PutUnicodeLE(field_3_text, out1);}else{StringUtil.PutCompressedUnicode(field_3_text, out1);}}}" }, { "index": 2812, "before": "public DeleteMessageRequest(String queueUrl, String receiptHandle) {setQueueUrl(queueUrl);setReceiptHandle(receiptHandle);}", "after": "public DeleteMessageRequest(string queueUrl, string receiptHandle){_queueUrl = queueUrl;_receiptHandle = receiptHandle;}" }, { "index": 2813, "before": "public int find(char[] key, int start) {int d;char p = root;int i = start;char c;while (p != 0) {if (sc[p] == 0xFFFF) {if (strcmp(key, i, kv.getArray(), lo[p]) == 0) {return eq[p];} else {return -1;}}c = key[i];d = c - sc[p];if (d == 0) {if (c == 0) {return eq[p];}i++;p = eq[p];} else if (d < 0) {p = lo[p];} else {p = hi[p];}}return -1;}", "after": "public virtual int Find(char[] key, int start){int d;char p = m_root;int i = start;char c;while (p != 0){if (m_sc[p] == 0xFFFF){if (StrCmp(key, i, m_kv.Array, m_lo[p]) == 0){return m_eq[p];}else{return -1;}}c = key[i];d = c - m_sc[p];if (d == 0){if (c == 0){return m_eq[p];}i++;p = m_eq[p];}else if (d < 0){p = m_lo[p];}else{p = m_hi[p];}}return -1;}" }, { "index": 2814, "before": "public DescribeIdFormatResult describeIdFormat(DescribeIdFormatRequest request) {request = beforeClientExecution(request);return executeDescribeIdFormat(request);}", "after": "public virtual DescribeIdFormatResponse DescribeIdFormat(DescribeIdFormatRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIdFormatRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIdFormatResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2815, "before": "public void setCharAt(int index, char ch) {if (index < 0 || index >= count) {throw indexAndLength(index);}if (shared) {value = value.clone();shared = false;}value[index] = ch;}", "after": "public virtual void setCharAt(int index, char ch){if (index < 0 || index >= count){throw indexAndLength(index);}if (shared){value = (char[])value.Clone();shared = false;}value[index] = ch;}" }, { "index": 2816, "before": "public FieldFragList createFieldFragList(FieldPhraseList fieldPhraseList,int fragCharSize) {FieldFragList ffl = new SimpleFieldFragList( fragCharSize );List wpil = new ArrayList<>();Iterator ite = fieldPhraseList.phraseList.iterator();WeightedPhraseInfo phraseInfo = null;while( true ){if( !ite.hasNext() ) break;phraseInfo = ite.next();if( phraseInfo == null ) break;wpil.add( phraseInfo );}if( wpil.size() > 0 )ffl.add( 0, Integer.MAX_VALUE, wpil );return ffl;}", "after": "public virtual FieldFragList CreateFieldFragList(FieldPhraseList fieldPhraseList,int fragCharSize){FieldFragList ffl = new SimpleFieldFragList(fragCharSize);List wpil = new List();using (IEnumerator ite = fieldPhraseList.PhraseList.GetEnumerator()){WeightedPhraseInfo phraseInfo = null;while (true){if (!ite.MoveNext()) break;phraseInfo = ite.Current;if (phraseInfo == null) break;wpil.Add(phraseInfo);}if (wpil.Count > 0)ffl.Add(0, int.MaxValue, wpil);return ffl;}}" }, { "index": 2817, "before": "public List getModifiedList() {return modifiedList;}", "after": "public virtual IList GetModifiedList(){return modifiedList;}" }, { "index": 2818, "before": "public synchronized int capacity() {return elementData.length;}", "after": "public virtual int capacity(){lock (this){return elementData.Length;}}" }, { "index": 2819, "before": "public GermanLightStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public GermanLightStemFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 2820, "before": "public void setAnchor(short col1, int row1, int x1, int y1, short col2, int row2, int x2, int y2) {checkRange(getDx1(), 0, 1023, \"dx1\");checkRange(getDx2(), 0, 1023, \"dx2\");checkRange(getDy1(), 0, 255, \"dy1\");checkRange(getDy2(), 0, 255, \"dy2\");checkRange(getCol1(), 0, MAX_COL, \"col1\");checkRange(getCol2(), 0, MAX_COL, \"col2\");checkRange(getRow1(), 0, MAX_ROW, \"row1\");checkRange(getRow2(), 0, MAX_ROW, \"row2\");setCol1(col1);setRow1(row1);setDx1(x1);setDy1(y1);setCol2(col2);setRow2(row2);setDx2(x2);setDy2(y2);}", "after": "public void SetAnchor(short col1, int row1, int x1, int y1, short col2, int row2, int x2, int y2){CheckRange(x1, 0, 1023, \"dx1\");CheckRange(x2, 0, 1023, \"dx2\");CheckRange(y1, 0, 255, \"dy1\");CheckRange(y2, 0, 255, \"dy2\");CheckRange(col1, 0, 255, \"col1\");CheckRange(col2, 0, 255, \"col2\");CheckRange(row1, 0, 255 * 256, \"row1\");CheckRange(row2, 0, 255 * 256, \"row2\");this.Col1 = col1;this.Row1 = row1;this.Dx1 = x1;this.Dy1 = y1;this.Col2 = col2;this.Row2 = row2;this.Dx2 = x2;this.Dy2 = y2;}" }, { "index": 2821, "before": "public static ErrorEval valueOf(int errorCode) {FormulaError error = FormulaError.forInt(errorCode);ErrorEval eval = evals.get(error);if (eval != null) {return eval;} else {throw new RuntimeException(\"Unhandled error type for code \" + errorCode);}}", "after": "public static ErrorEval ValueOf(int errorCode){FormulaError error = FormulaError.ForInt(errorCode);if (evals.ContainsKey(error))return evals[error];throw new RuntimeException(\"Unhandled error type for code \" + errorCode);}" }, { "index": 2822, "before": "public static long calculateChecksum(byte[] data) {Checksum sum = new CRC32();sum.update(data, 0, data.length);return sum.getValue();}", "after": "public static long CalculateChecksum(byte[] data){CRC32 sum = new CRC32();return (long)sum.ByteCRC(ref data);}" }, { "index": 2823, "before": "public RevCommit lookupCommit(AnyObjectId id) {RevCommit c = (RevCommit) objects.get(id);if (c == null) {c = createCommit(id);objects.add(c);}return c;}", "after": "public virtual RevCommit LookupCommit(AnyObjectId id){RevCommit c = (RevCommit)objects.Get(id);if (c == null){c = CreateCommit(id);objects.Add(c);}return c;}" }, { "index": 2824, "before": "public String toString() {QueryText text = this.values.get(0);return \"\";}", "after": "public override string ToString(){QueryText text = this.values[0];return \"\";}" }, { "index": 2825, "before": "public TokenStream create(TokenStream input) {StopFilter stopFilter = new StopFilter(input,stopWords);return stopFilter;}", "after": "public override TokenStream Create(TokenStream input){StopFilter stopFilter = new StopFilter(m_luceneMatchVersion, input, stopWords);#pragma warning disable 612, 618stopFilter.SetEnablePositionIncrements(enablePositionIncrements);#pragma warning restore 612, 618return stopFilter;}" }, { "index": 2826, "before": "public DeleteStreamProcessorResult deleteStreamProcessor(DeleteStreamProcessorRequest request) {request = beforeClientExecution(request);return executeDeleteStreamProcessor(request);}", "after": "public virtual DeleteStreamProcessorResponse DeleteStreamProcessor(DeleteStreamProcessorRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteStreamProcessorRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteStreamProcessorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2827, "before": "public RuleWithSetExceptions(String suffix, int min, String replacement,String[] exceptions) {super(suffix, min, replacement);for (int i = 0; i < exceptions.length; i++) {if (!exceptions[i].endsWith(suffix))throw new RuntimeException(\"useless exception '\" + exceptions[i] + \"' does not end with '\" + suffix + \"'\");}this.exceptions = new CharArraySet(Arrays.asList(exceptions), false);}", "after": "public RuleWithSetExceptions(string suffix, int min, string replacement, string[] exceptions) : base(suffix, min, replacement){for (int i = 0; i < exceptions.Length; i++){if (!exceptions[i].EndsWith(suffix, StringComparison.Ordinal)){throw new Exception(\"useless exception '\" + exceptions[i] + \"' does not end with '\" + suffix + \"'\");}}this.m_exceptions = new CharArraySet(#pragma warning disable 612, 618LuceneVersion.LUCENE_CURRENT,#pragma warning restore 612, 618exceptions, false);}" }, { "index": 2828, "before": "public CreateClientVpnRouteResult createClientVpnRoute(CreateClientVpnRouteRequest request) {request = beforeClientExecution(request);return executeCreateClientVpnRoute(request);}", "after": "public virtual CreateClientVpnRouteResponse CreateClientVpnRoute(CreateClientVpnRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateClientVpnRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateClientVpnRouteResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2829, "before": "public RangeTransition(ATNState target, int from, int to) {super(target);this.from = from;this.to = to;}", "after": "public RangeTransition(ATNState target, int from, int to): base(target){this.from = from;this.to = to;}" }, { "index": 2830, "before": "public TypeAsPayloadTokenFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public TypeAsPayloadTokenFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 2831, "before": "public void fromRaw(int[] ints, int p) {w1 = ints[p];w2 = ints[p + 1];w3 = ints[p + 2];w4 = ints[p + 3];w5 = ints[p + 4];}", "after": "public virtual void FromRaw(int[] ints, int p){w1 = ints[p];w2 = ints[p + 1];w3 = ints[p + 2];w4 = ints[p + 3];w5 = ints[p + 4];}" }, { "index": 2832, "before": "public ICUNormalizer2Filter(TokenStream input, Normalizer2 normalizer) {super(input);this.normalizer = normalizer;}", "after": "public ICUNormalizer2Filter(TokenStream input, Normalizer2 normalizer): base(input){this.normalizer = normalizer;this.termAtt = AddAttribute();}" }, { "index": 2833, "before": "public static TreeFilter create(TreeFilter a) {return new NotTreeFilter(a);}", "after": "public static TreeFilter Create(TreeFilter a){return new NGit.Treewalk.Filter.NotTreeFilter(a);}" }, { "index": 2834, "before": "public boolean isMalformed() {return this.type == TYPE_MALFORMED_INPUT;}", "after": "public virtual bool isMalformed(){return this.type == TYPE_MALFORMED_INPUT;}" }, { "index": 2835, "before": "public void enterRecursionRule(ParserRuleContext localctx, int state, int ruleIndex, int precedence) {Pair pair = new Pair(_ctx, localctx.invokingState);_parentContextStack.push(pair);super.enterRecursionRule(localctx, state, ruleIndex, precedence);}", "after": "public override void EnterRecursionRule(ParserRuleContext localctx, int state, int ruleIndex, int precedence){_parentContextStack.Push(Tuple.Create(RuleContext, localctx.invokingState));base.EnterRecursionRule(localctx, state, ruleIndex, precedence);}" }, { "index": 2836, "before": "public DescribeAddressesResult describeAddresses(DescribeAddressesRequest request) {request = beforeClientExecution(request);return executeDescribeAddresses(request);}", "after": "public virtual DescribeAddressesResponse DescribeAddresses(DescribeAddressesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAddressesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAddressesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2837, "before": "public int getEstimatedUniqueValues(){return getEstimatedNumberUniqueValuesAllowingForCollisions(bloomSize, filter.cardinality());}", "after": "public virtual int GetEstimatedUniqueValues(){return GetEstimatedNumberUniqueValuesAllowingForCollisions(_bloomSize, _filter.Cardinality());}" }, { "index": 2838, "before": "public DescribeTransformJobResult describeTransformJob(DescribeTransformJobRequest request) {request = beforeClientExecution(request);return executeDescribeTransformJob(request);}", "after": "public virtual DescribeTransformJobResponse DescribeTransformJob(DescribeTransformJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTransformJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTransformJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2839, "before": "public HeaderFooterRecord clone() {return copy();}", "after": "public override Object Clone(){return CloneViaReserialise();}" }, { "index": 2840, "before": "public void decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block0 = blocks[blocksOffset++];values[valuesOffset++] = block0 >>> 40;values[valuesOffset++] = (block0 >>> 16) & 16777215L;final long block1 = blocks[blocksOffset++];values[valuesOffset++] = ((block0 & 65535L) << 8) | (block1 >>> 56);values[valuesOffset++] = (block1 >>> 32) & 16777215L;values[valuesOffset++] = (block1 >>> 8) & 16777215L;final long block2 = blocks[blocksOffset++];values[valuesOffset++] = ((block1 & 255L) << 16) | (block2 >>> 48);values[valuesOffset++] = (block2 >>> 24) & 16777215L;values[valuesOffset++] = block2 & 16777215L;}}", "after": "public override void Decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long block0 = blocks[blocksOffset++];values[valuesOffset++] = (long)((ulong)block0 >> 40);values[valuesOffset++] = ((long)((ulong)block0 >> 16)) & 16777215L;long block1 = blocks[blocksOffset++];values[valuesOffset++] = ((block0 & 65535L) << 8) | ((long)((ulong)block1 >> 56));values[valuesOffset++] = ((long)((ulong)block1 >> 32)) & 16777215L;values[valuesOffset++] = ((long)((ulong)block1 >> 8)) & 16777215L;long block2 = blocks[blocksOffset++];values[valuesOffset++] = ((block1 & 255L) << 16) | ((long)((ulong)block2 >> 48));values[valuesOffset++] = ((long)((ulong)block2 >> 24)) & 16777215L;values[valuesOffset++] = block2 & 16777215L;}}" }, { "index": 2841, "before": "public FieldInfo fieldInfo(int fieldNumber) {if (fieldNumber < 0) {throw new IllegalArgumentException(\"Illegal field number: \" + fieldNumber);}if (fieldNumber >= byNumber.length) {return null;}return byNumber[fieldNumber];}", "after": "public virtual FieldInfo FieldInfo(int fieldNumber){if (fieldNumber < 0){throw new System.ArgumentException(\"Illegal field number: \" + fieldNumber);}Index.FieldInfo ret;byNumber.TryGetValue(fieldNumber, out ret);return ret;}" }, { "index": 2842, "before": "public DescribeIdentityPoolResult describeIdentityPool(DescribeIdentityPoolRequest request) {request = beforeClientExecution(request);return executeDescribeIdentityPool(request);}", "after": "public virtual DescribeIdentityPoolResponse DescribeIdentityPool(DescribeIdentityPoolRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIdentityPoolRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIdentityPoolResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2843, "before": "public static String getText(Node e) {StringBuilder sb = new StringBuilder();getTextBuffer(e, sb);return sb.toString();}", "after": "public static string GetText(XmlNode e){StringBuilder sb = new StringBuilder();GetTextBuffer(e, sb);return sb.ToString();}" }, { "index": 2844, "before": "public void delete(int key) {int i = binarySearch(mKeys, 0, mSize, key);if (i >= 0) {removeAt(i);}}", "after": "public virtual void delete(int key){int i = binarySearch(mKeys, 0, mSize, key);if (i >= 0){removeAt(i);}}" }, { "index": 2845, "before": "public GetCurrentMetricDataResult getCurrentMetricData(GetCurrentMetricDataRequest request) {request = beforeClientExecution(request);return executeGetCurrentMetricData(request);}", "after": "public virtual GetCurrentMetricDataResponse GetCurrentMetricData(GetCurrentMetricDataRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCurrentMetricDataRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCurrentMetricDataResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2846, "before": "public void append(String name, FileMode mode, AnyObjectId id) {append(encode(name), mode, id);}", "after": "public virtual void Append(string name, FileMode mode, AnyObjectId id){Append(Constants.Encode(name), mode, id);}" }, { "index": 2847, "before": "public final String replacement() {return replacementChars;}", "after": "public string replacement(){return replacementChars;}" }, { "index": 2848, "before": "public WindowProtectRecord(boolean protect) {this(0);setProtect(protect);}", "after": "public WindowProtectRecord(bool protect):this(0){Protect = (protect);}" }, { "index": 2849, "before": "public static boolean equals(long[] array1, long[] array2) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length != array2.length) {return false;}for (int i = 0; i < array1.length; i++) {if (array1[i] != array2[i]) {return false;}}return true;}", "after": "public static bool equals(long[] array1, long[] array2){if (array1 == array2){return true;}if (array1 == null || array2 == null || array1.Length != array2.Length){return false;}{for (int i = 0; i < array1.Length; i++){if (array1[i] != array2[i]){return false;}}}return true;}" }, { "index": 2850, "before": "public PredictionContext getParent(int index) {assert index == 0;return parent;}", "after": "public override PredictionContext GetParent(int index){System.Diagnostics.Debug.Assert(index == 0);return parent;}" }, { "index": 2851, "before": "public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {return \"*:*\";}", "after": "public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){return \"*:*\";}" }, { "index": 2852, "before": "public SeekStatus seekCeil(BytesRef term) throws IOException {throw new UnsupportedOperationException(getClass().getName()+\" does not support seeking\");}", "after": "public override SeekStatus SeekCeil(BytesRef term){throw new System.NotSupportedException(this.GetType().Name + \" does not support seeking\");}" }, { "index": 2853, "before": "public BindInstance2VpcRequest() {super(\"Ots\", \"2016-06-20\", \"BindInstance2Vpc\", \"ots\");setMethod(MethodType.POST);}", "after": "public BindInstance2VpcRequest(): base(\"Ots\", \"2016-06-20\", \"BindInstance2Vpc\", \"ots\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 2854, "before": "public UpdateTableResult updateTable(String tableName, ProvisionedThroughput provisionedThroughput) {return updateTable(new UpdateTableRequest().withTableName(tableName).withProvisionedThroughput(provisionedThroughput));}", "after": "public virtual UpdateTableResponse UpdateTable(string tableName, ProvisionedThroughput provisionedThroughput){var request = new UpdateTableRequest();request.TableName = tableName;request.ProvisionedThroughput = provisionedThroughput;return UpdateTable(request);}" }, { "index": 2855, "before": "public boolean get(int index) {return in.get(docMap.newToOld(index));}", "after": "public bool Get(int index){return @in.Get(docMap.NewToOld(index));}" }, { "index": 2856, "before": "public GetQueueAttributesResult getQueueAttributes(GetQueueAttributesRequest request) {request = beforeClientExecution(request);return executeGetQueueAttributes(request);}", "after": "public virtual GetQueueAttributesResponse GetQueueAttributes(GetQueueAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetQueueAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetQueueAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2857, "before": "public UpdateUserRoutingProfileResult updateUserRoutingProfile(UpdateUserRoutingProfileRequest request) {request = beforeClientExecution(request);return executeUpdateUserRoutingProfile(request);}", "after": "public virtual UpdateUserRoutingProfileResponse UpdateUserRoutingProfile(UpdateUserRoutingProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateUserRoutingProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateUserRoutingProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2858, "before": "public int getMidIx() {int ixDiff = _highIx - _lowIx;if(ixDiff < 2) {return -1;}return _lowIx + (ixDiff / 2);}", "after": "public int GetMidIx(){int ixDiff = _highIx - _lowIx;if (ixDiff < 2){return -1;}return _lowIx + (ixDiff / 2);}" }, { "index": 2859, "before": "public MergeResult getMergeResult() {return this.mergeResult;}", "after": "public virtual MergeCommandResult GetMergeResult(){return this.mergeResult;}" }, { "index": 2860, "before": "public void setAsActiveCell(){int row=_record.getRow();short col=_record.getColumn();_sheet.getSheet().setActiveCellRow(row);_sheet.getSheet().setActiveCellCol(col);}", "after": "public void SetAsActiveCell(){int row = _record.Row;int col = _record.Column;this._sheet.Sheet.SetActiveCell(row, col);}" }, { "index": 2861, "before": "public InviteMembersResult inviteMembers(InviteMembersRequest request) {request = beforeClientExecution(request);return executeInviteMembers(request);}", "after": "public virtual InviteMembersResponse InviteMembers(InviteMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = InviteMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = InviteMembersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2862, "before": "public FormatTrackingHSSFListener(HSSFListener childListener) {this(childListener, LocaleUtil.getUserLocale());}", "after": "public FormatTrackingHSSFListener(IHSSFListener childListener){this.childListener = childListener;}" }, { "index": 2863, "before": "public UpdateDistributionRequest(DistributionConfig distributionConfig, String id, String ifMatch) {setDistributionConfig(distributionConfig);setId(id);setIfMatch(ifMatch);}", "after": "public UpdateDistributionRequest(string id, string ifMatch, DistributionConfig distributionConfig){_id = id;_ifMatch = ifMatch;_distributionConfig = distributionConfig;}" }, { "index": 2864, "before": "public GetLogEventsRequest(String logGroupName, String logStreamName) {setLogGroupName(logGroupName);setLogStreamName(logStreamName);}", "after": "public GetLogEventsRequest(string logGroupName, string logStreamName){_logGroupName = logGroupName;_logStreamName = logStreamName;}" }, { "index": 2865, "before": "public String toString() {return \"FlushInfo [numDocs=\" + numDocs + \", estimatedSegmentSize=\"+ estimatedSegmentSize + \"]\";}", "after": "public override string ToString(){return \"FlushInfo [numDocs=\" + NumDocs + \", estimatedSegmentSize=\" + EstimatedSegmentSize + \"]\";}" }, { "index": 2866, "before": "public GrowableWriter resize(int newSize) {GrowableWriter next = new GrowableWriter(getBitsPerValue(), newSize, acceptableOverheadRatio);final int limit = Math.min(size(), newSize);PackedInts.copy(current, 0, next, 0, limit, PackedInts.DEFAULT_BUFFER_SIZE);return next;}", "after": "public virtual GrowableWriter Resize(int newSize){GrowableWriter next = new GrowableWriter(BitsPerValue, newSize, acceptableOverheadRatio);int limit = Math.Min(Count, newSize);PackedInt32s.Copy(current, 0, next, 0, limit, PackedInt32s.DEFAULT_BUFFER_SIZE);return next;}" }, { "index": 2867, "before": "public Analyzer(ReuseStrategy reuseStrategy) {this.reuseStrategy = reuseStrategy;}", "after": "public Analyzer(ReuseStrategy reuseStrategy){this.reuseStrategy = reuseStrategy;}" }, { "index": 2868, "before": "public void reset() {prevAccept.reset();startIndex = -1;line = 1;charPositionInLine = 0;mode = Lexer.DEFAULT_MODE;}", "after": "public void Reset(){index = -1;line = 0;charPos = -1;dfaState = null;}" }, { "index": 2869, "before": "public EmbeddedObjectRefSubRecord() {field_2_unknownFormulaData = new byte[] { 0x02, 0x6C, 0x6A, 0x16, 0x01, }; field_6_unknown = EMPTY_BYTE_ARRAY;field_4_ole_classname = null;}", "after": "public EmbeddedObjectRefSubRecord(){field_2_unknownFormulaData = new byte[] { 0x02, 0x6C, 0x6A, 0x16, 0x01, }; field_6_unknown = EMPTY_BYTE_ARRAY;field_4_ole_classname = null;field_4_unknownByte = null;}" }, { "index": 2870, "before": "public String toString() {return \"doc=\" + doc + \" score=\" + score + \" shardIndex=\" + shardIndex;}", "after": "public override string ToString(){return \"doc=\" + Doc + \" score=\" + Score + \" shardIndex=\" + ShardIndex;}" }, { "index": 2871, "before": "public static double kthLargest(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[v.length-index-1];}return r;}", "after": "public static double kthLargest(double[] v, int k){double r = double.NaN;k--; if (v != null && v.Length > k && k >= 0){Array.Sort(v);r = v[v.Length - k - 1];}return r;}" }, { "index": 2872, "before": "public int get(int forwardId, int backwardId) {int offset = (backwardId * forwardSize + forwardId) * 2;return buffer.getShort(offset);}", "after": "public int Get(int forwardId, int backwardId){return costs[backwardId][forwardId];}" }, { "index": 2873, "before": "public void sort() {Arrays.sort(entries, 0, count);}", "after": "public virtual void Sort(){Arrays.Sort(entries, 0, count);}" }, { "index": 2874, "before": "public BM25FQuery build() {int size = fieldAndWeights.size() * termsSet.size();if (size > IndexSearcher.getMaxClauseCount()) {throw new IndexSearcher.TooManyClauses();}BytesRef[] terms = termsSet.toArray(new BytesRef[0]);return new BM25FQuery(similarity, new TreeMap<>(fieldAndWeights), terms);}", "after": "public virtual StemmerOverrideMap Build(){ByteSequenceOutputs outputs = ByteSequenceOutputs.Singleton;Builder builder = new Builder(FST.INPUT_TYPE.BYTE4, outputs);int[] sort = hash.Sort(BytesRef.UTF8SortedAsUnicodeComparer);Int32sRef intsSpare = new Int32sRef();int size = hash.Count;for (int i = 0; i < size; i++){int id = sort[i];BytesRef bytesRef = hash.Get(id, spare);UnicodeUtil.UTF8toUTF32(bytesRef, intsSpare);builder.Add(intsSpare, new BytesRef(outputValues[id]));}return new StemmerOverrideMap(builder.Finish(), ignoreCase);}" }, { "index": 2875, "before": "public LexerCustomAction(int ruleIndex, int actionIndex) {this.ruleIndex = ruleIndex;this.actionIndex = actionIndex;}", "after": "public LexerCustomAction(int ruleIndex, int actionIndex){this.ruleIndex = ruleIndex;this.actionIndex = actionIndex;}" }, { "index": 2876, "before": "public DescribeDevicePolicyConfigurationResult describeDevicePolicyConfiguration(DescribeDevicePolicyConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeDevicePolicyConfiguration(request);}", "after": "public virtual DescribeDevicePolicyConfigurationResponse DescribeDevicePolicyConfiguration(DescribeDevicePolicyConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDevicePolicyConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDevicePolicyConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2877, "before": "public CreateLBCookieStickinessPolicyRequest(String loadBalancerName, String policyName) {setLoadBalancerName(loadBalancerName);setPolicyName(policyName);}", "after": "public CreateLBCookieStickinessPolicyRequest(string loadBalancerName, string policyName){_loadBalancerName = loadBalancerName;_policyName = policyName;}" }, { "index": 2878, "before": "public static short[] grow(short[] array) {return grow(array, 1 + array.length);}", "after": "public static short[] Grow(short[] array){return Grow(array, 1 + array.Length);}" }, { "index": 2879, "before": "public static AttrPtg createSpace(int type, int count) {int data = type & 0x00FF | (count << 8) & 0x00FFFF;return new AttrPtg(space.set(0), data, null, -1);}", "after": "public static AttrPtg CreateSpace(SpaceType type, int count){int data = ((int) type) & 0x00FF | (count << 8) & 0x00FFFF;return new AttrPtg(space.Set(0), data, null, -1);}" }, { "index": 2880, "before": "public boolean equals(Object o) {return (o instanceof FontRecord) && sameProperties((FontRecord) o);}", "after": "public override bool Equals(Object obj){if (this == obj)return true;return false;}" }, { "index": 2881, "before": "public void setDSTSavings(int milliseconds) {if (milliseconds > 0) {dstSavings = milliseconds;} else {throw new IllegalArgumentException();}}", "after": "public virtual void setDSTSavings(int milliseconds){throw new System.NotImplementedException();}" }, { "index": 2882, "before": "public DescribeAccountResult describeAccount(DescribeAccountRequest request) {request = beforeClientExecution(request);return executeDescribeAccount(request);}", "after": "public virtual DescribeAccountResponse DescribeAccount(DescribeAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAccountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2883, "before": "public int getCellsVal() {int size = 0;for (Row row : rows)size += row.getCellsVal();return size;}", "after": "public virtual int GetCellsVal(){int size = 0;foreach (Row row in rows)size += row.GetCellsVal();return size;}" }, { "index": 2884, "before": "public boolean equalsSameType(Object other) {assert exists || (false == value);MutableValueBool b = (MutableValueBool)other;return value == b.value && exists == b.exists;}", "after": "public override bool EqualsSameType(object other){MutableValueBool b = (MutableValueBool)other;return Value == b.Value && Exists == b.Exists;}" }, { "index": 2885, "before": "public K next() {Node n = next;advance();return n.key;}", "after": "public override K next(){return this.nextEntry().key;}" }, { "index": 2886, "before": "public DBCluster createDBCluster(CreateDBClusterRequest request) {request = beforeClientExecution(request);return executeCreateDBCluster(request);}", "after": "public virtual CreateDBClusterResponse CreateDBCluster(CreateDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2887, "before": "public boolean equals(Object o) {if (!(o instanceof FormatRun)) {return false;}FormatRun other = (FormatRun) o;return _character == other._character && _fontIndex == other._fontIndex;}", "after": "public override bool Equals(Object o){if (!(o is FormatRun)){return false;}FormatRun other = (FormatRun)o;return _character == other._character && _fontIndex == other._fontIndex;}" }, { "index": 2888, "before": "public static ValueEval getSingleValue(ValueEval arg, int srcCellRow, int srcCellCol)throws EvaluationException {final ValueEval result;if (arg instanceof RefEval) {result = chooseSingleElementFromRef((RefEval) arg);} else if (arg instanceof AreaEval) {result = chooseSingleElementFromArea((AreaEval) arg, srcCellRow, srcCellCol);} else {result = arg;}if (result instanceof ErrorEval) {throw new EvaluationException((ErrorEval) result);}return result;}", "after": "public static ValueEval GetSingleValue(ValueEval arg, int srcCellRow, int srcCellCol){ValueEval result;if (arg is RefEval){result = ChooseSingleElementFromRef((RefEval)arg);}else if (arg is AreaEval){result = ChooseSingleElementFromArea((AreaEval)arg, srcCellRow, srcCellCol);}else{result = arg;}if (result is ErrorEval){throw new EvaluationException((ErrorEval)result);}return result;}" }, { "index": 2889, "before": "public GermanStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public GermanStemFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 2890, "before": "public ClusterSubnetGroup modifyClusterSubnetGroup(ModifyClusterSubnetGroupRequest request) {request = beforeClientExecution(request);return executeModifyClusterSubnetGroup(request);}", "after": "public virtual ModifyClusterSubnetGroupResponse ModifyClusterSubnetGroup(ModifyClusterSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClusterSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClusterSubnetGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2891, "before": "public FacetLabel subpath(final int length) {if (length >= this.length || length < 0) {return this;} else {return new FacetLabel(this, length);}}", "after": "public virtual FacetLabel Subpath(int length){if (length >= this.Length || length < 0){return this;}else{return new FacetLabel(this, length);}}" }, { "index": 2892, "before": "public DataValidationConstraint createDecimalConstraint(int operatorType, String formula1, String formula2) {return DVConstraint.createNumericConstraint(ValidationType.DECIMAL, operatorType, formula1, formula2);}", "after": "public IDataValidationConstraint CreateDecimalConstraint(int operatorType, String formula1, String formula2){return DVConstraint.CreateNumericConstraint(ValidationType.DECIMAL, operatorType, formula1, formula2);}" }, { "index": 2893, "before": "public ByteBuffer put(byte b) {if (position == limit) {throw new BufferOverflowException();}backingArray[offset + position++] = b;return this;}", "after": "public override java.nio.ByteBuffer put(byte b){if (_position == _limit){throw new java.nio.BufferOverflowException();}backingArray[offset + _position++] = b;return this;}" }, { "index": 2894, "before": "public DescribeUserProfileResult describeUserProfile(DescribeUserProfileRequest request) {request = beforeClientExecution(request);return executeDescribeUserProfile(request);}", "after": "public virtual DescribeUserProfileResponse DescribeUserProfile(DescribeUserProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUserProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUserProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2895, "before": "public K firstKey() {Entry entry = endpoint(true);if (entry == null) {throw new NoSuchElementException();}return entry.getKey();}", "after": "public K firstKey(){java.util.MapClass.Entry entry = this.endpoint(true);if (entry == null){throw new java.util.NoSuchElementException();}return entry.getKey();}" }, { "index": 2896, "before": "public DescribeAutoScalingGroupsResult describeAutoScalingGroups(DescribeAutoScalingGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeAutoScalingGroups(request);}", "after": "public virtual DescribeAutoScalingGroupsResponse DescribeAutoScalingGroups(DescribeAutoScalingGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAutoScalingGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAutoScalingGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2897, "before": "public Class getListenerType() {return RefsChangedListener.class;}", "after": "public override Type GetListenerType(){return typeof(RefsChangedListener);}" }, { "index": 2898, "before": "public int getWordCost(int wordId) {return WORD_COST;}", "after": "public int GetWordCost(int wordId){return WORD_COST;}" }, { "index": 2899, "before": "public void serialize(LittleEndianOutput out) {out.writeByte(field_1_horizontalAlignment);out.writeByte(field_2_verticalAlignment);out.writeShort(field_3_displayMode);out.writeInt(field_4_rgbColor);out.writeInt(field_5_x);out.writeInt(field_6_y);out.writeInt(field_7_width);out.writeInt(field_8_height);out.writeShort(field_9_options1);out.writeShort(field_10_indexOfColorValue);out.writeShort(field_11_options2);out.writeShort(field_12_textRotation);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteByte(field_1_horizontalAlignment);out1.WriteByte(field_2_verticalAlignment);out1.WriteShort(field_3_DisplayMode);out1.WriteInt(field_4_rgbColor);out1.WriteInt(field_5_x);out1.WriteInt(field_6_y);out1.WriteInt(field_7_width);out1.WriteInt(field_8_height);out1.WriteShort(field_9_options1);out1.WriteShort(field_10_IndexOfColorValue);out1.WriteShort(field_11_options2);out1.WriteShort(field_12_textRotation);}" }, { "index": 2900, "before": "public LinkedDataRecord getDataCategoryLabels(){return dataCategoryLabels;}", "after": "public BRAIRecord GetDataCategoryLabels(){return dataCategoryLabels;}" }, { "index": 2901, "before": "public void setStringValue(String value) {collator.getRawCollationKey(value, key);bytes.bytes = key.bytes;bytes.offset = 0;bytes.length = key.size;}", "after": "public override void SetStringValue(string value){key = collator.GetRawCollationKey(value, key);bytes.Bytes = key.Bytes;bytes.Offset = 0;bytes.Length = key.Length;}" }, { "index": 2902, "before": "public String toString() {return \"FacetField(dim=\" + dim + \" path=\" + Arrays.toString(path) + \")\";}", "after": "public override string ToString(){return \"FacetField(dim=\" + Dim + \" path=[\" + Arrays.ToString(Path) + \"])\";}" }, { "index": 2903, "before": "public static long gcd(long a, long b) {a = Math.abs(a);b = Math.abs(b);if (a == 0) {return b;} else if (b == 0) {return a;}final int commonTrailingZeros = Long.numberOfTrailingZeros(a | b);a >>>= Long.numberOfTrailingZeros(a);while (true) {b >>>= Long.numberOfTrailingZeros(b);if (a == b) {break;} else if (a > b || a == Long.MIN_VALUE) { final long tmp = a;a = b;b = tmp;}if (a == 1) {break;}b -= a;}return a << commonTrailingZeros;}", "after": "public static long Gcd(long a, long b){a = a < 0 ? -a : a;b = b < 0 ? -b : b;if (a == 0){return b;}else if (b == 0){return a;}int commonTrailingZeros = (a | b).TrailingZeroCount();a = (long)((ulong)a >> a.TrailingZeroCount());while (true){b = (long)((ulong)b >> b.TrailingZeroCount());if (a == b){break;} else if (a > b || a == long.MinValue){long tmp = a;a = b;b = tmp;}if (a == 1){break;}b -= a;}return a << commonTrailingZeros;}" }, { "index": 2904, "before": "public BatchRefUpdate disableRefLog() {refLogMessage = null;refLogIncludeResult = false;return this;}", "after": "public virtual NGit.BatchRefUpdate DisableRefLog(){refLogMessage = null;refLogIncludeResult = false;return this;}" }, { "index": 2905, "before": "public static int compareTo(Ref o1, String o2) {return o1.getName().compareTo(o2);}", "after": "public static int CompareTo(Ref o1, string o2){return Sharpen.Runtime.CompareOrdinal(o1.GetName(), o2);}" }, { "index": 2906, "before": "public CreateLoadBalancerTlsCertificateResult createLoadBalancerTlsCertificate(CreateLoadBalancerTlsCertificateRequest request) {request = beforeClientExecution(request);return executeCreateLoadBalancerTlsCertificate(request);}", "after": "public virtual CreateLoadBalancerTlsCertificateResponse CreateLoadBalancerTlsCertificate(CreateLoadBalancerTlsCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLoadBalancerTlsCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLoadBalancerTlsCertificateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2907, "before": "public GetDocumentationPartsResult getDocumentationParts(GetDocumentationPartsRequest request) {request = beforeClientExecution(request);return executeGetDocumentationParts(request);}", "after": "public virtual GetDocumentationPartsResponse GetDocumentationParts(GetDocumentationPartsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDocumentationPartsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDocumentationPartsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2908, "before": "public Iterator iterator() {final Iterator i = active.iterator();return new Iterator() {private RevFlag current;@Override", "after": "public override Sharpen.Iterator Iterator(){Sharpen.Iterator i = active.Iterator();return new _Iterator_132(this, i);}" }, { "index": 2909, "before": "public boolean equals(Object o) {if (this == o) return true;if (!(o instanceof Sort)) return false;final Sort other = (Sort)o;return Arrays.equals(this.fields, other.fields);}", "after": "public override bool Equals(object o){if (this == o){return true;}if (!(o is Sort)){return false;}Sort other = (Sort)o;return Arrays.Equals(this.fields, other.fields);}" }, { "index": 2910, "before": "public boolean equals(final Object o){boolean rval = false;if ((o != null) && (o.getClass() == this.getClass())){if (this == o){rval = true;}else{POIFSDocumentPath path = ( POIFSDocumentPath ) o;if (path.components.length == this.components.length){rval = true;for (int j = 0; j < this.components.length; j++){if (!path.components[ j ].equals(this.components[ j ])){rval = false;break;}}}}}return rval;}", "after": "public override bool Equals(object o){bool flag = false;if ((o != null) && (o.GetType() == this.GetType())){if (this == o){flag = true;}else{POIFSDocumentPath path = (POIFSDocumentPath)o;if (path.components.Length == this.components.Length){flag = true;for (int i = 0; i < this.components.Length; i++){if (!path.components[i].Equals(this.components[i])){flag = false;break;}}}}}return flag;}" }, { "index": 2911, "before": "public SearchImageRequest() {super(\"ImageSearch\", \"2019-03-25\", \"SearchImage\", \"imagesearch\");setUriPattern(\"/v2/image/search\");setMethod(MethodType.POST);}", "after": "public SearchImageRequest(): base(\"ImageSearch\", \"2019-03-25\", \"SearchImage\", \"imagesearch\", \"openAPI\"){UriPattern = \"/v2/image/search\";Method = MethodType.POST;}" }, { "index": 2912, "before": "public RevFlagSet() {active = new ArrayList<>();}", "after": "public RevFlagSet(){active = new AList();}" }, { "index": 2913, "before": "public BatchDisassociateUserStackResult batchDisassociateUserStack(BatchDisassociateUserStackRequest request) {request = beforeClientExecution(request);return executeBatchDisassociateUserStack(request);}", "after": "public virtual BatchDisassociateUserStackResponse BatchDisassociateUserStack(BatchDisassociateUserStackRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDisassociateUserStackRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDisassociateUserStackResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2914, "before": "public FloatBuffer get(float[] dst) {return get(dst, 0, dst.length);}", "after": "public virtual java.nio.FloatBuffer get(float[] dst){return get(dst, 0, dst.Length);}" }, { "index": 2915, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[ftEnd]\\n\");buffer.append(\"[/ftEnd]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[ftEnd]\\n\");buffer.Append(\"[/ftEnd]\\n\");return buffer.ToString();}" }, { "index": 2916, "before": "public InputStreamDataInput(InputStream is) {this.is = is;}", "after": "public InputStreamDataInput(Stream @is){this._reader = new BinaryReader(@is);}" }, { "index": 2917, "before": "public static char[] grow(char[] array) {return grow(array, 1 + array.length);}", "after": "public static char[] Grow(char[] array){return Grow(array, 1 + array.Length);}" }, { "index": 2918, "before": "public void showMessage(String msg) {provider.get(uri, new CredentialItem.InformationalMessage(msg));}", "after": "public virtual void ShowMessage(string msg){provider.Get(uri, new CredentialItem.InformationalMessage(msg));}" }, { "index": 2919, "before": "public DeregisterTypeResult deregisterType(DeregisterTypeRequest request) {request = beforeClientExecution(request);return executeDeregisterType(request);}", "after": "public virtual DeregisterTypeResponse DeregisterType(DeregisterTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2920, "before": "public final void add(RevFlagSet set) {flags |= set.mask;}", "after": "public void Add(RevFlag flag){flags |= flag.mask;}" }, { "index": 2921, "before": "public IntList(final IntList list){this(list._array.length);System.arraycopy(list._array, 0, _array, 0, _array.length);_limit = list._limit;}", "after": "public IntList(IntList list): this(list._array.Length){Array.Copy(list._array, 0, _array, 0, _array.Length);_limit = list._limit;}" }, { "index": 2922, "before": "public int convertFromExternSheetIndex(int externSheetIndex) {return _iBook.getFirstSheetIndexFromExternSheetIndex(externSheetIndex);}", "after": "public int ConvertFromExternSheetIndex(int externSheetIndex){return _iBook.GetFirstSheetIndexFromExternSheetIndex(externSheetIndex);}" }, { "index": 2923, "before": "public ExternalSheet getExternalSheet(String firstSheetName, String lastSheetName, int externalWorkbookNumber) {throw new IllegalStateException(\"XSSF-style external references are not supported for HSSF\");}", "after": "public ExternalSheet GetExternalSheet(String firstSheetName, string lastSheetName, int externalWorkbookNumber){throw new InvalidOperationException(\"XSSF-style external references are not supported for HSSF\");}" }, { "index": 2924, "before": "public CellRangeAddress8Bit copy() {return new CellRangeAddress8Bit(getFirstRow(), getLastRow(), getFirstColumn(), getLastColumn());}", "after": "public CellRangeAddress8Bit Copy(){return new CellRangeAddress8Bit(FirstRow, LastRow, FirstColumn, LastColumn);}" }, { "index": 2925, "before": "public boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (obj instanceof Document == false)return false;Document other = (Document) obj;if (other.getBytes() == null ^ this.getBytes() == null)return false;if (other.getBytes() != null && other.getBytes().equals(this.getBytes()) == false)return false;if (other.getS3Object() == null ^ this.getS3Object() == null)return false;if (other.getS3Object() != null && other.getS3Object().equals(this.getS3Object()) == false)return false;return true;}", "after": "public override bool Equals(object obj){var otherDocument = obj as Document;if (otherDocument == null)return false;if (Keys.Count != otherDocument.Keys.Count)return false;foreach(var key in Keys){if (!otherDocument.ContainsKey(key))return false;var a = this[key];var b = otherDocument[key];if (!a.Equals(b))return false;}return true;}" }, { "index": 2926, "before": "public ListMembersResult listMembers(ListMembersRequest request) {request = beforeClientExecution(request);return executeListMembers(request);}", "after": "public virtual ListMembersResponse ListMembers(ListMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListMembersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2927, "before": "public String toString() {final StringBuilder s = new StringBuilder();for (Block q = head; q != null; q = q.next) {for (int i = q.headIndex; i < q.tailIndex; i++)describe(s, q.commits[i]);}return s.toString();}", "after": "public override string ToString(){StringBuilder s = new StringBuilder();for (BlockRevQueue.Block q = head; q != null; q = q.next){for (int i = q.headIndex; i < q.tailIndex; i++){Describe(s, q.commits[i]);}}return s.ToString();}" }, { "index": 2928, "before": "public void delete() {if (!deleted) {deleted = true;commitsToDelete.add(this);}}", "after": "public override void Delete(){if (!deleted){deleted = true;commitsToDelete.Add(this);}}" }, { "index": 2929, "before": "public final boolean isWritten() {return 1 < getOffset(); }", "after": "public virtual bool IsWritten(){return GetOffset() != 0;}" }, { "index": 2930, "before": "public static Cell translateUnicodeValues(Cell cell) {String s = cell.getRichStringCellValue().getString();boolean foundUnicode = false;String lowerCaseStr = s.toLowerCase(Locale.ROOT);for (UnicodeMapping entry : unicodeMappings) {String key = entry.entityName;if (lowerCaseStr.contains(key)) {s = s.replaceAll(key, entry.resolvedValue);foundUnicode = true;}}if (foundUnicode) {cell.setCellValue(cell.getRow().getSheet().getWorkbook().getCreationHelper().createRichTextString(s));}return cell;}", "after": "public static ICell TranslateUnicodeValues(ICell cell){String s = cell.RichStringCellValue.String;bool foundUnicode = false;String lowerCaseStr = s.ToLower();for (int i = 0; i < unicodeMappings.Length; i++){UnicodeMapping entry = unicodeMappings[i];String key = entry.entityName;if (lowerCaseStr.IndexOf(key, StringComparison.Ordinal) != -1){s = s.Replace(key, entry.resolvedValue);foundUnicode = true;}}if (foundUnicode){cell.SetCellValue(cell.Row.Sheet.Workbook.GetCreationHelper().CreateRichTextString(s));}return cell;}" }, { "index": 2931, "before": "public DeleteCampaignResult deleteCampaign(DeleteCampaignRequest request) {request = beforeClientExecution(request);return executeDeleteCampaign(request);}", "after": "public virtual DeleteCampaignResponse DeleteCampaign(DeleteCampaignRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCampaignRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCampaignResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2932, "before": "public String toFormulaString() {return formatReferenceAsString();}", "after": "public override String ToFormulaString(){return FormatReferenceAsString();}" }, { "index": 2933, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2) {TwoDEval reference = convertFirstArg(arg0);try {int columnIx = resolveIndexArg(arg2, srcRowIndex, srcColumnIndex);int rowIx = resolveIndexArg(arg1, srcRowIndex, srcColumnIndex);return getValueFromArea(reference, rowIx, columnIx);} catch (EvaluationException e) {return e.getErrorEval();}}", "after": "public ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2){TwoDEval reference = ConvertFirstArg(arg0);try{int columnIx = ResolveIndexArg(arg2, srcRowIndex, srcColumnIndex);int rowIx = ResolveIndexArg(arg1, srcRowIndex, srcColumnIndex);return GetValueFromArea(reference, rowIx, columnIx);}catch (EvaluationException e){return e.GetErrorEval();}}" }, { "index": 2934, "before": "public URISyntaxException(String input, String reason) {super(reason);if (input == null || reason == null) {throw new NullPointerException();}this.input = input;index = -1;}", "after": "public URISyntaxException(string input, string reason) : base(reason){if (input == null || reason == null){throw new System.ArgumentNullException();}this.input = input;index = -1;}" }, { "index": 2935, "before": "public int append(BytesRef bytes) {if (lastElement >= offsets.length) {int oldLen = offsets.length;offsets = ArrayUtil.grow(offsets, offsets.length + 1);bytesUsed.addAndGet((offsets.length - oldLen) * Integer.BYTES);}pool.append(bytes);offsets[lastElement++] = currentOffset;currentOffset += bytes.length;return lastElement-1;}", "after": "public int Append(BytesRef bytes){if (lastElement >= offsets.Length){int oldLen = offsets.Length;offsets = ArrayUtil.Grow(offsets, offsets.Length + 1);bytesUsed.AddAndGet((offsets.Length - oldLen) * RamUsageEstimator.NUM_BYTES_INT32);}pool.Append(bytes);offsets[lastElement++] = currentOffset;currentOffset += bytes.Length;return lastElement - 1;}" }, { "index": 2936, "before": "public EscherAggregate(boolean createDefaultTree) {if (createDefaultTree){buildBaseTree();}}", "after": "public EscherAggregate(bool createDefaultTree){if (createDefaultTree){BuildBaseTree();}}" }, { "index": 2937, "before": "public NumericDocValuesField(String name, Long value) {super(name, TYPE);fieldsData = value;}", "after": "public NumericDocValuesField(string name, long value): base(name, TYPE){FieldsData = new Int64(value);}" }, { "index": 2938, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_index);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_index);}" }, { "index": 2939, "before": "public AssociateDeviceWithNetworkProfileResult associateDeviceWithNetworkProfile(AssociateDeviceWithNetworkProfileRequest request) {request = beforeClientExecution(request);return executeAssociateDeviceWithNetworkProfile(request);}", "after": "public virtual AssociateDeviceWithNetworkProfileResponse AssociateDeviceWithNetworkProfile(AssociateDeviceWithNetworkProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateDeviceWithNetworkProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateDeviceWithNetworkProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2940, "before": "public void add(DirCacheEntry newEntry) {if (newEntry.getRawMode() == 0)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().fileModeNotSetForPath,newEntry.getPathString()));beforeAdd(newEntry);fastAdd(newEntry);}", "after": "public virtual void Add(DirCacheEntry newEntry){if (newEntry.RawMode == 0){throw new ArgumentException(MessageFormat.Format(JGitText.Get().fileModeNotSetForPath, newEntry.PathString));}BeforeAdd(newEntry);FastAdd(newEntry);}" }, { "index": 2941, "before": "public ValueEval getEvalForCell(int rowIndex, int columnIndex) {return _bookEvaluator.evaluateReference(getSheet(), _sheetIndex, rowIndex, columnIndex, _tracker);}", "after": "public ValueEval GetEvalForCell(int rowIndex, int columnIndex){return _bookEvaluator.EvaluateReference(this.Sheet, _sheetIndex, rowIndex, columnIndex, _tracker);}" }, { "index": 2942, "before": "public static RevFilter create(String pattern) {if (pattern.length() == 0)throw new IllegalArgumentException(JGitText.get().cannotMatchOnEmptyString);if (SubStringRevFilter.safe(pattern))return new SubStringSearch(pattern);return new PatternSearch(pattern);}", "after": "public static RevFilter Create(string pattern){if (pattern.Length == 0){throw new ArgumentException(JGitText.Get().cannotMatchOnEmptyString);}if (SubStringRevFilter.Safe(pattern)){return new MessageRevFilter.SubStringSearch(pattern);}return new MessageRevFilter.PatternSearch(pattern);}" }, { "index": 2943, "before": "public ObjectId getResultTreeId() {return sourceTrees[treeIndex];}", "after": "public override ObjectId GetResultTreeId(){return sourceTrees[treeIndex];}" }, { "index": 2944, "before": "public MoPenQueryCanvasRequest() {super(\"MoPen\", \"2018-02-11\", \"MoPenQueryCanvas\", \"mopen\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public MoPenQueryCanvasRequest(): base(\"MoPen\", \"2018-02-11\", \"MoPenQueryCanvas\", \"mopen\", \"openAPI\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 2945, "before": "public DescribeTrialResult describeTrial(DescribeTrialRequest request) {request = beforeClientExecution(request);return executeDescribeTrial(request);}", "after": "public virtual DescribeTrialResponse DescribeTrial(DescribeTrialRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTrialRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTrialResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2946, "before": "public DeleteCommentResult deleteComment(DeleteCommentRequest request) {request = beforeClientExecution(request);return executeDeleteComment(request);}", "after": "public virtual DeleteCommentResponse DeleteComment(DeleteCommentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCommentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCommentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2947, "before": "public DeleteCacheSecurityGroupRequest(String cacheSecurityGroupName) {setCacheSecurityGroupName(cacheSecurityGroupName);}", "after": "public DeleteCacheSecurityGroupRequest(string cacheSecurityGroupName){_cacheSecurityGroupName = cacheSecurityGroupName;}" }, { "index": 2948, "before": "public ParseTreePattern(ParseTreePatternMatcher matcher,String pattern, int patternRuleIndex, ParseTree patternTree){this.matcher = matcher;this.patternRuleIndex = patternRuleIndex;this.pattern = pattern;this.patternTree = patternTree;}", "after": "public ParseTreePattern(ParseTreePatternMatcher matcher, string pattern, int patternRuleIndex, IParseTree patternTree){this.matcher = matcher;this.patternRuleIndex = patternRuleIndex;this.pattern = pattern;this.patternTree = patternTree;}" }, { "index": 2949, "before": "public String toFormulaString(String[] operands) {StringBuilder buffer = new StringBuilder();buffer.append(operands[ 0 ]);buffer.append(PERCENT);return buffer.toString();}", "after": "public override String ToFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.Append(operands[0]);buffer.Append(PERCENT);return buffer.ToString();}" }, { "index": 2950, "before": "public GetVaultLockResult getVaultLock(GetVaultLockRequest request) {request = beforeClientExecution(request);return executeGetVaultLock(request);}", "after": "public virtual GetVaultLockResponse GetVaultLock(GetVaultLockRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVaultLockRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVaultLockResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2951, "before": "public DecreaseStreamRetentionPeriodResult decreaseStreamRetentionPeriod(DecreaseStreamRetentionPeriodRequest request) {request = beforeClientExecution(request);return executeDecreaseStreamRetentionPeriod(request);}", "after": "public virtual DecreaseStreamRetentionPeriodResponse DecreaseStreamRetentionPeriod(DecreaseStreamRetentionPeriodRequest request){var options = new InvokeOptions();options.RequestMarshaller = DecreaseStreamRetentionPeriodRequestMarshaller.Instance;options.ResponseUnmarshaller = DecreaseStreamRetentionPeriodResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2952, "before": "public void append(String name, RevTree tree) {append(name, TREE, tree);}", "after": "public virtual void Append(string name, RevTree tree){Append(name, FileMode.TREE, tree);}" }, { "index": 2953, "before": "public String getSessionToken() {return sessionToken;}", "after": "public string GetSessionToken(){return sessionToken;}" }, { "index": 2954, "before": "public ListIterator listIterator(int index) {Object[] snapshot = elements;if (index < 0 || index > snapshot.length) {throw new IndexOutOfBoundsException(\"index=\" + index + \", length=\" + snapshot.length);}CowIterator result = new CowIterator(snapshot, 0, snapshot.length);result.index = index;return result;}", "after": "public virtual java.util.ListIterator listIterator(int index){object[] snapshot = elements;if (index < 0 || index > snapshot.Length){throw new System.IndexOutOfRangeException(\"index=\" + index + \", length=\" + snapshot.Length);}java.util.concurrent.CopyOnWriteArrayList.CowIterator result = new java.util.concurrent.CopyOnWriteArrayList.CowIterator(snapshot, 0, snapshot.Length);result.index = index;return result;}" }, { "index": 2955, "before": "public synchronized Span[] getTerms(String sentence) {if (tokenizer == null) {Span[] span1 = new Span[1];span1[0] = new Span(0, sentence.length());return span1;}return tokenizer.tokenizePos(sentence);}", "after": "public virtual Span[] GetTerms(string sentence){lock (this){if (tokenizer == null){Span[] span1 = new Span[1];span1[0] = new Span(0, sentence.Length);return span1;}return tokenizer.tokenizePos(sentence);}}" }, { "index": 2956, "before": "public DeleteRelationalDatabaseSnapshotResult deleteRelationalDatabaseSnapshot(DeleteRelationalDatabaseSnapshotRequest request) {request = beforeClientExecution(request);return executeDeleteRelationalDatabaseSnapshot(request);}", "after": "public virtual DeleteRelationalDatabaseSnapshotResponse DeleteRelationalDatabaseSnapshot(DeleteRelationalDatabaseSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRelationalDatabaseSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRelationalDatabaseSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2957, "before": "public CheckDomainAvailabilityResult checkDomainAvailability(CheckDomainAvailabilityRequest request) {request = beforeClientExecution(request);return executeCheckDomainAvailability(request);}", "after": "public virtual CheckDomainAvailabilityResponse CheckDomainAvailability(CheckDomainAvailabilityRequest request){var options = new InvokeOptions();options.RequestMarshaller = CheckDomainAvailabilityRequestMarshaller.Instance;options.ResponseUnmarshaller = CheckDomainAvailabilityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2958, "before": "public DeleteVaultRequest(String vaultName) {setVaultName(vaultName);}", "after": "public DeleteVaultRequest(string vaultName){_vaultName = vaultName;}" }, { "index": 2959, "before": "public InputStream getInputStream() {return rawIn;}", "after": "public virtual InputStream GetInputStream(){return rawIn;}" }, { "index": 2960, "before": "public final byte[] getBytes(int sizeLimit) throws LargeObjectException,MissingObjectException, IOException {byte[] cached = getCachedBytes(sizeLimit);try {return cloneArray(cached);} catch (OutOfMemoryError tooBig) {throw new LargeObjectException.OutOfMemory(tooBig);}}", "after": "public byte[] GetBytes(int sizeLimit){byte[] cached = GetCachedBytes(sizeLimit);try{return CloneArray(cached);}catch (OutOfMemoryException tooBig){throw new LargeObjectException.OutOfMemory(tooBig);}}" }, { "index": 2961, "before": "public HSSFSimpleShape createSimpleShape(HSSFClientAnchor anchor) {HSSFSimpleShape shape = new HSSFSimpleShape(null, anchor);addShape(shape);onCreate(shape);return shape;}", "after": "public HSSFSimpleShape CreateSimpleShape(HSSFClientAnchor anchor){HSSFSimpleShape shape = new HSSFSimpleShape(null, anchor);AddShape(shape);OnCreate(shape);return shape;}" }, { "index": 2962, "before": "public synchronized V remove(Object key) {int hash = secondaryHash(key.hashCode());HashtableEntry[] tab = table;int index = hash & (tab.length - 1);for (HashtableEntry e = tab[index], prev = null;e != null; prev = e, e = e.next) {if (e.hash == hash && key.equals(e.key)) {if (prev == null) {tab[index] = e.next;} else {prev.next = e.next;}modCount++;size--;return e.value;}}return null;}", "after": "public override V remove(object key){lock (this){int hash = secondaryHash(key.GetHashCode());java.util.Hashtable.HashtableEntry[] tab = table;int index = hash & (tab.Length - 1);{java.util.Hashtable.HashtableEntry e = tab[index];java.util.Hashtable.HashtableEntry prev = null;for (; e != null; prev = e, e = e.next){if (e.hash == hash && key.Equals(e.key)){if (prev == null){tab[index] = e.next;}else{prev.next = e.next;}modCount++;_size--;return e.value;}}}return default(V);}}" }, { "index": 2963, "before": "public final ValueEval getValue(int sheetIndex, int row, int col) {return getRelativeValue(sheetIndex, row, col);}", "after": "public ValueEval GetValue(int sheetIndex, int row, int col){return GetRelativeValue(sheetIndex, row, col);}" }, { "index": 2964, "before": "public SetIdentityNotificationTopicResult setIdentityNotificationTopic(SetIdentityNotificationTopicRequest request) {request = beforeClientExecution(request);return executeSetIdentityNotificationTopic(request);}", "after": "public virtual SetIdentityNotificationTopicResponse SetIdentityNotificationTopic(SetIdentityNotificationTopicRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetIdentityNotificationTopicRequestMarshaller.Instance;options.ResponseUnmarshaller = SetIdentityNotificationTopicResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2965, "before": "public void serialize(LittleEndianOutput out) {out.write(_rawData);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.Write(_rawData);}" }, { "index": 2966, "before": "public BlockJoinWeight(Query joinQuery, Weight childWeight, BitSetProducer parentsFilter, ScoreMode scoreMode) {super(joinQuery, childWeight);this.parentsFilter = parentsFilter;this.scoreMode = scoreMode;}", "after": "public BlockJoinWeight(Query joinQuery, Weight childWeight, Filter parentsFilter, ScoreMode scoreMode): base(){this.joinQuery = joinQuery;this.childWeight = childWeight;this.parentsFilter = parentsFilter;this.scoreMode = scoreMode;}" }, { "index": 2967, "before": "public Builder() {this.field = null;this.termArrays = new ArrayList<>();this.positions = new ArrayList<>();this.slop = 0;}", "after": "public Builder(){data = new GrowableByteArrayDataOutput(128);bufferSize = 0;previousDoc = -1;indexInterval = 2;cardinality = 0;numBlocks = 0;}" }, { "index": 2968, "before": "public CreateGameSessionQueueResult createGameSessionQueue(CreateGameSessionQueueRequest request) {request = beforeClientExecution(request);return executeCreateGameSessionQueue(request);}", "after": "public virtual CreateGameSessionQueueResponse CreateGameSessionQueue(CreateGameSessionQueueRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateGameSessionQueueRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateGameSessionQueueResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2969, "before": "public DescribeMetricCollectionTypesResult describeMetricCollectionTypes() {return describeMetricCollectionTypes(new DescribeMetricCollectionTypesRequest());}", "after": "public virtual DescribeMetricCollectionTypesResponse DescribeMetricCollectionTypes(){return DescribeMetricCollectionTypes(new DescribeMetricCollectionTypesRequest());}" }, { "index": 2970, "before": "@Override public boolean contains(Object o) {if (o instanceof Entry) {Entry entry = (Entry) o;int count = count(entry.getElement());return (count == entry.getCount()) && (count > 0);}return false;}", "after": "public override bool contains(object o){if (!(o is java.util.MapClass.Entry)){return false;}java.util.MapClass.Entry e = (java.util.MapClass.Entry)o;return this._enclosing.containsMapping(e.getKey(), e.getValue());}" }, { "index": 2971, "before": "public synchronized int get(FacetLabel categoryPath) {Integer res = cache.get(categoryPath);if (res == null) {return -1;}return res.intValue();}", "after": "public virtual int Get(FacetLabel categoryPath){lock (this){int result;if (!cache.TryGetValue(categoryPath, out result)){return -1;}return result;}}" }, { "index": 2972, "before": "@Override public boolean containsKey(Object key) {if (key == null) {return entryForNullKey != null;}int hash = key.hashCode();hash ^= (hash >>> 20) ^ (hash >>> 12);hash ^= (hash >>> 7) ^ (hash >>> 4);HashMapEntry[] tab = table;for (HashMapEntry e = tab[hash & (tab.length - 1)];e != null; e = e.next) {K eKey = e.key;if (eKey == key || (e.hash == hash && key.equals(eKey))) {return true;}}return false;}", "after": "public override bool containsKey(object key){if (key == null){return entryForNullKey != null;}int hash = key.GetHashCode();hash ^= ((int)(((uint)hash) >> 20)) ^ ((int)(((uint)hash) >> 12));hash ^= ((int)(((uint)hash) >> 7)) ^ ((int)(((uint)hash) >> 4));java.util.HashMap.HashMapEntry[] tab = table;{for (java.util.HashMap.HashMapEntry e = tab[hash & (tab.Length - 1)]; e !=null; e = e.next){K eKey = e.key;if (Sharpen.Util.Equals(eKey, key) || (e.hash == hash && key.Equals(eKey))){return true;}}}return false;}" }, { "index": 2973, "before": "public boolean equals(Object obj) {if (obj instanceof Point) {Point that = (Point) obj;return this.x == that.x && this.y == that.y;}return false;}", "after": "public override bool Equals(object o){if (o is android.graphics.Point){android.graphics.Point p = (android.graphics.Point)o;return this.x == p.x && this.y == p.y;}return false;}" }, { "index": 2974, "before": "public void message(String component, String message) {assert false: \"message() should not be called when isEnabled returns false\";}", "after": "public override void Message(string component, string message){Debug.Assert(false, \"message() should not be called when isEnabled returns false\");}" }, { "index": 2975, "before": "public ListWorkerBlocksResult listWorkerBlocks(ListWorkerBlocksRequest request) {request = beforeClientExecution(request);return executeListWorkerBlocks(request);}", "after": "public virtual ListWorkerBlocksResponse ListWorkerBlocks(ListWorkerBlocksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListWorkerBlocksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListWorkerBlocksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2976, "before": "public ListProvisionedCapacityResult listProvisionedCapacity(ListProvisionedCapacityRequest request) {request = beforeClientExecution(request);return executeListProvisionedCapacity(request);}", "after": "public virtual ListProvisionedCapacityResponse ListProvisionedCapacity(ListProvisionedCapacityRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListProvisionedCapacityRequestMarshaller.Instance;options.ResponseUnmarshaller = ListProvisionedCapacityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2977, "before": "@Override public boolean contains(Object value) {return containsValue(value);}", "after": "public override bool contains(object o){return this._enclosing.containsValue(o);}" }, { "index": 2978, "before": "public void exitEveryRule(ParserRuleContext ctx) {if (ctx.children instanceof ArrayList) {((ArrayList)ctx.children).trimToSize();}}", "after": "public virtual void ExitEveryRule(ParserRuleContext ctx){if (ctx.children is List){((List)ctx.children).TrimExcess();}}" }, { "index": 2979, "before": "public int lookup(char[] text, int offset, int len) {if(!characterDefinition.isGroup(text[offset])) {return 1;}byte characterIdOfFirstCharacter = characterDefinition.getCharacterClass(text[offset]);int length = 1;for (int i = 1; i < len; i++) {if (characterIdOfFirstCharacter == characterDefinition.getCharacterClass(text[offset+i])){length++;} else {break;}}return length;}", "after": "public virtual int Lookup(char[] text, int offset, int len){if (!characterDefinition.IsGroup(text[offset])){return 1;}byte characterIdOfFirstCharacter = characterDefinition.GetCharacterClass(text[offset]);int length = 1;for (int i = 1; i < len; i++){if (characterIdOfFirstCharacter == characterDefinition.GetCharacterClass(text[offset + i])){length++;}else{break;}}return length;}" }, { "index": 2980, "before": "public GetJobOutputResult getJobOutput(GetJobOutputRequest request) {request = beforeClientExecution(request);return executeGetJobOutput(request);}", "after": "public virtual GetJobOutputResponse GetJobOutput(GetJobOutputRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetJobOutputRequestMarshaller.Instance;options.ResponseUnmarshaller = GetJobOutputResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2981, "before": "public void write(char b[], int off, int len) {reserve(len);unsafeWrite(b, off, len);}", "after": "public virtual void Write(char[] b, int off, int len){EnsureCapacity(len);UnsafeWrite(b, off, len);}" }, { "index": 2982, "before": "public String toString() {return \"weight(\" + TermQuery.this + \")\";}", "after": "public override string ToString(){return \"weight(\" + outerInstance + \")\";}" }, { "index": 2983, "before": "public int[] grow() {ParallelPostingsArray postingsArray = perField.postingsArray;final int oldSize = perField.postingsArray.size;postingsArray = perField.postingsArray = postingsArray.grow();perField.newPostingsArray();bytesUsed.addAndGet((postingsArray.bytesPerPosting() * (postingsArray.size - oldSize)));return postingsArray.textStarts;}", "after": "public override int[] Grow(){ParallelPostingsArray postingsArray = perField.postingsArray;int oldSize = perField.postingsArray.size;postingsArray = perField.postingsArray = postingsArray.Grow();bytesUsed.AddAndGet((postingsArray.BytesPerPosting() * (postingsArray.size - oldSize)));return postingsArray.textStarts;}" }, { "index": 2984, "before": "public String toString() {return \"'\"+text+\"'\";}", "after": "public override string ToString(){return ruleName + \":\" + bypassTokenType;}" }, { "index": 2985, "before": "public boolean isMatch() {if (heads.isEmpty())return false;final ListIterator headIterator = heads.listIterator(heads.size());while (headIterator.hasPrevious()) {final Head head = headIterator.previous();if (head == LastHead.INSTANCE) {return true;}}return false;}", "after": "public virtual bool IsMatch(){ListIterator headIterator = heads.ListIterator(heads.Count);while (headIterator.HasPrevious()){Head head = headIterator.Previous();if (head == LastHead.INSTANCE){return true;}}return false;}" }, { "index": 2986, "before": "public CRNRecord[] getCrns() {return _crns.clone();}", "after": "public CRNRecord[] GetCrns(){return (CRNRecord[])_crns.Clone();}" }, { "index": 2987, "before": "public String toString() {return \"slot:\" + slot + \" \" + super.toString();}", "after": "public override string ToString(){return \"slot:\" + Slot + \" \" + base.ToString();}" }, { "index": 2988, "before": "public int apply(char s[], int len) {if (len < min)return len;if (suffixes != null) {boolean found = false;for (int i = 0; i < suffixes.length; i++)if (endsWith(s, len, suffixes[i])) {found = true;break;}if (!found) return len;}for (int i = 0; i < rules.length; i++) {if (rules[i].matches(s, len))return rules[i].replace(s, len);}return len;}", "after": "public virtual int Apply(char[] s, int len){if (len < m_min){return len;}if (m_suffixes != null){bool found = false;for (int i = 0; i < m_suffixes.Length; i++){if (StemmerUtil.EndsWith(s, len, m_suffixes[i])){found = true;break;}}if (!found){return len;}}for (int i = 0; i < m_rules.Length; i++){if (m_rules[i].Matches(s, len)){return m_rules[i].Replace(s, len);}}return len;}" }, { "index": 2989, "before": "public ModifyInstanceAttributeRequest(String instanceId, InstanceAttributeName attribute) {setInstanceId(instanceId);setAttribute(attribute.toString());}", "after": "public ModifyInstanceAttributeRequest(string instanceId, InstanceAttributeName attribute){_instanceId = instanceId;_attribute = attribute;}" }, { "index": 2990, "before": "public ListEventTrackersResult listEventTrackers(ListEventTrackersRequest request) {request = beforeClientExecution(request);return executeListEventTrackers(request);}", "after": "public virtual ListEventTrackersResponse ListEventTrackers(ListEventTrackersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEventTrackersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEventTrackersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2991, "before": "public boolean isNewFragment() {boolean isNewFrag = offsetAtt.endOffset() >= (fragmentSize * currentNumFrags);if (isNewFrag) {currentNumFrags++;}return isNewFrag;}", "after": "public virtual bool IsNewFragment(){bool isNewFrag = offsetAtt.EndOffset >= (FragmentSize*currentNumFrags);if (isNewFrag){currentNumFrags++;}return isNewFrag;}" }, { "index": 2992, "before": "public BatchGetQueryExecutionResult batchGetQueryExecution(BatchGetQueryExecutionRequest request) {request = beforeClientExecution(request);return executeBatchGetQueryExecution(request);}", "after": "public virtual BatchGetQueryExecutionResponse BatchGetQueryExecution(BatchGetQueryExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetQueryExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetQueryExecutionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 2993, "before": "public static double cos(double a) {if (a < 0.0) {a = -a;}if (a > SIN_COS_MAX_VALUE_FOR_INT_MODULO) {return Math.cos(a);}int index = (int)(a * SIN_COS_INDEXER + 0.5);double delta = (a - index * SIN_COS_DELTA_HI) - index * SIN_COS_DELTA_LO;index &= (SIN_COS_TABS_SIZE-2); double indexCos = cosTab[index];double indexSin = sinTab[index];return indexCos + delta * (-indexSin + delta * (-indexCos * ONE_DIV_F2 + delta * (indexSin * ONE_DIV_F3 + delta * indexCos * ONE_DIV_F4)));}", "after": "public static double Cos(double a){if (a < 0.0){a = -a;}if (a > SIN_COS_MAX_VALUE_FOR_INT_MODULO){return Math.Cos(a);}int index = (int)(a * SIN_COS_INDEXER + 0.5);double delta = (a - index * SIN_COS_DELTA_HI) - index * SIN_COS_DELTA_LO;index &= (SIN_COS_TABS_SIZE - 2); double indexCos = cosTab[index];double indexSin = sinTab[index];return indexCos + delta * (-indexSin + delta * (-indexCos * ONE_DIV_F2 + delta * (indexSin * ONE_DIV_F3 + delta * indexCos * ONE_DIV_F4)));}" }, { "index": 2994, "before": "public ByteBuffer putLong(long value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putLong(long value){throw new System.NotImplementedException();}" }, { "index": 2995, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName());sb.append(\" [\");sb.append(\"sheetIx=\").append(getExternSheetIndex());sb.append(\" ! \");sb.append(formatReferenceAsString());sb.append(\"]\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetType().Name);sb.Append(\" [\");sb.Append(\"sheetIx=\").Append(ExternSheetIndex);sb.Append(\" ! \");sb.Append(FormatReferenceAsString());sb.Append(\"]\");return sb.ToString();}" }, { "index": 2996, "before": "public STSAssumeRoleSessionCredentialsProvider(AlibabaCloudCredentials longLivedCredentials,String roleArn, IClientProfile clientProfile) {this(new StaticCredentialsProvider(longLivedCredentials), roleArn, clientProfile);}", "after": "public STSAssumeRoleSessionCredentialsProvider(AlibabaCloudCredentials longLivedCredentials,string roleArn,IClientProfile clientProfile){AlibabaCloudCredentialsProvider longLivedCredentialsProvider =new StaticCredentialsProvider(longLivedCredentials);this.roleArn = roleArn;roleSessionName = GetNewRoleSessionName();stsClient = new DefaultAcsClient(clientProfile, longLivedCredentialsProvider);}" }, { "index": 2997, "before": "public SessionToken(String id, Revision revision) {this.id = id;this.version = revision.getVersion();this.sourceFiles = revision.getSourceFiles();}", "after": "public SessionToken(string id, IRevision revision){Id = id;Version = revision.Version;SourceFiles = revision.SourceFiles;}" }, { "index": 2998, "before": "public Collection call() throws GitAPIException {checkCallable();try (SubmoduleWalk generator = SubmoduleWalk.forIndex(repo)) {if (!paths.isEmpty())generator.setFilter(PathFilterGroup.createFromStrings(paths));StoredConfig config = repo.getConfig();List initialized = new ArrayList<>();while (generator.next()) {if (generator.getConfigUrl() != null)continue;String path = generator.getPath();String name = generator.getModuleName();String url = generator.getRemoteUrl();String update = generator.getModulesUpdate();if (url != null)config.setString(ConfigConstants.CONFIG_SUBMODULE_SECTION,name, ConfigConstants.CONFIG_KEY_URL, url);if (update != null)config.setString(ConfigConstants.CONFIG_SUBMODULE_SECTION,name, ConfigConstants.CONFIG_KEY_UPDATE, update);if (url != null || update != null)initialized.add(path);}if (!initialized.isEmpty())config.save();return initialized;} catch (IOException | ConfigInvalidException e) {throw new JGitInternalException(e.getMessage(), e);}}", "after": "public override ICollection Call(){CheckCallable();try{SubmoduleWalk generator = SubmoduleWalk.ForIndex(repo);if (!paths.IsEmpty()){generator.SetFilter(PathFilterGroup.CreateFromStrings(paths));}StoredConfig config = repo.GetConfig();IList initialized = new AList();while (generator.Next()){if (generator.GetConfigUrl() != null){continue;}string path = generator.GetPath();string url = generator.GetRemoteUrl();string update = generator.GetModulesUpdate();if (url != null){config.SetString(ConfigConstants.CONFIG_SUBMODULE_SECTION, path, ConfigConstants.CONFIG_KEY_URL, url);}if (update != null){config.SetString(ConfigConstants.CONFIG_SUBMODULE_SECTION, path, ConfigConstants.CONFIG_KEY_UPDATE, update);}if (url != null || update != null){initialized.AddItem(path);}}if (!initialized.IsEmpty()){config.Save();}return initialized;}catch (IOException e){throw new JGitInternalException(e.Message, e);}catch (ConfigInvalidException e){throw new JGitInternalException(e.Message, e);}}" }, { "index": 2999, "before": "public CreateVaultRequest(String accountId, String vaultName) {setAccountId(accountId);setVaultName(vaultName);}", "after": "public CreateVaultRequest(string accountId, string vaultName){_accountId = accountId;_vaultName = vaultName;}" }, { "index": 3000, "before": "public BooleanQueryNode(List clauses) {setLeaf(false);allocate();set(clauses);}", "after": "public BooleanQueryNode(IList clauses){IsLeaf = false;Allocate();Set(clauses);}" }, { "index": 3001, "before": "public DVALRecord() {field_cbo_id = 0xFFFFFFFF;field_5_dv_no = 0x00000000;}", "after": "public DVALRecord(){field_cbo_id = unchecked((int)0xFFFFFFFF);field_5_dv_no = 0x00000000;}" }, { "index": 3002, "before": "public ListConfigurationsResult listConfigurations(ListConfigurationsRequest request) {request = beforeClientExecution(request);return executeListConfigurations(request);}", "after": "public virtual ListConfigurationsResponse ListConfigurations(ListConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListConfigurationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3003, "before": "public String toFormulaString() {throw new RuntimeException(\"3D references need a workbook to determine formula text\");}", "after": "public override String ToFormulaString(){throw new Exception(\"3D references need a workbook to determine formula text\");}" }, { "index": 3004, "before": "public int LA(int i) { return LT(i).getType(); }", "after": "public virtual int LA(int i){return LT(i).Type;}" }, { "index": 3005, "before": "public void setCellValue(boolean value) {int row=_record.getRow();short col=_record.getColumn();short styleIndex=_record.getXFIndex();switch (_cellType) {default:setCellType(CellType.BOOLEAN, false, row, col, styleIndex);case BOOLEAN:(( BoolErrRecord ) _record).setValue(value);break;case FORMULA:((FormulaRecordAggregate)_record).setCachedBooleanResult(value);break;}}", "after": "public void SetCellValue(bool value){int row = _record.Row;int col = _record.Column;short styleIndex = _record.XFIndex;switch (cellType){case CellType.Boolean:((BoolErrRecord)_record).SetValue(value);break;case CellType.Formula:((FormulaRecordAggregate)_record).SetCachedBooleanResult(value);break;default:SetCellType(CellType.Boolean, false, row, col, styleIndex);((BoolErrRecord)_record).SetValue(value);break;}}" }, { "index": 3006, "before": "public UntagDeliveryStreamResult untagDeliveryStream(UntagDeliveryStreamRequest request) {request = beforeClientExecution(request);return executeUntagDeliveryStream(request);}", "after": "public virtual UntagDeliveryStreamResponse UntagDeliveryStream(UntagDeliveryStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = UntagDeliveryStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = UntagDeliveryStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3007, "before": "public CJKBigramFilterFactory(Map args) {super(args);int flags = 0;if (getBoolean(args, \"han\", true)) {flags |= CJKBigramFilter.HAN;}if (getBoolean(args, \"hiragana\", true)) {flags |= CJKBigramFilter.HIRAGANA;}if (getBoolean(args, \"katakana\", true)) {flags |= CJKBigramFilter.KATAKANA;}if (getBoolean(args, \"hangul\", true)) {flags |= CJKBigramFilter.HANGUL;}this.flags = flags;this.outputUnigrams = getBoolean(args, \"outputUnigrams\", false);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public CJKBigramFilterFactory(IDictionary args): base(args){CJKScript flags = 0;if (GetBoolean(args, \"han\", true)){flags |= CJKScript.HAN;}if (GetBoolean(args, \"hiragana\", true)){flags |= CJKScript.HIRAGANA;}if (GetBoolean(args, \"katakana\", true)){flags |= CJKScript.KATAKANA;}if (GetBoolean(args, \"hangul\", true)){flags |= CJKScript.HANGUL;}this.flags = flags;this.outputUnigrams = GetBoolean(args, \"outputUnigrams\", false);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 3008, "before": "public static int toChars(int[] src, int srcOff, int srcLen, char[] dest, int destOff) {if (srcLen < 0) {throw new IllegalArgumentException(\"srcLen must be >= 0\");}int written = 0;for (int i = 0; i < srcLen; ++i) {written += Character.toChars(src[srcOff + i], dest, destOff + written);}return written;}", "after": "public int ToChars(int[] src, int srcOff, int srcLen, char[] dest, int destOff){if (srcLen < 0){throw new ArgumentException(\"srcLen must be >= 0\");}int written = 0;for (int i = 0; i < srcLen; ++i){written += Character.ToChars(src[srcOff + i], dest, destOff + written);}return written;}" }, { "index": 3009, "before": "public StoredField(String name, long value) {super(name, TYPE);fieldsData = value;}", "after": "public StoredField(string name, float value): base(name, TYPE){FieldsData = new Single(value);}" }, { "index": 3010, "before": "public static CFRuleRecord create(HSSFSheet sheet, byte comparisonOperation,String formulaText1, String formulaText2) {Ptg[] formula1 = parseFormula(formulaText1, sheet);Ptg[] formula2 = parseFormula(formulaText2, sheet);return new CFRuleRecord(CONDITION_TYPE_CELL_VALUE_IS, comparisonOperation, formula1, formula2);}", "after": "public static CFRuleRecord Create(HSSFSheet sheet, byte comparisonOperation,String formulaText1, String formulaText2){Ptg[] formula1 = ParseFormula(formulaText1, sheet);Ptg[] formula2 = ParseFormula(formulaText2, sheet);return new CFRuleRecord(CONDITION_TYPE_CELL_VALUE_IS, (ComparisonOperator)comparisonOperation, formula1, formula2);}" }, { "index": 3011, "before": "public int newSlice(final int size) {if (byteUpto > BYTE_BLOCK_SIZE-size)nextBuffer();final int upto = byteUpto;byteUpto += size;buffer[byteUpto-1] = 16;return upto;}", "after": "public int NewSlice(int size){if (ByteUpto > BYTE_BLOCK_SIZE - size){NextBuffer();}int upto = ByteUpto;ByteUpto += size;buffer[ByteUpto - 1] = 16;return upto;}" }, { "index": 3012, "before": "public DescribeWorkspaceDirectoriesResult describeWorkspaceDirectories() {return describeWorkspaceDirectories(new DescribeWorkspaceDirectoriesRequest());}", "after": "public virtual DescribeWorkspaceDirectoriesResponse DescribeWorkspaceDirectories(){var request = new DescribeWorkspaceDirectoriesRequest();return DescribeWorkspaceDirectories(request);}" }, { "index": 3013, "before": "public String toString() {return getClass().getName() + \" [\" +_functionName +\"]\";}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(\" [\");sb.Append(_functionName);sb.Append(\"]\");return sb.ToString();}" }, { "index": 3014, "before": "public void writeBytes(int stream, byte[] b, int offset, int len) {final int end = offset + len;for(int i=offset;i(request, options);}" }, { "index": 3016, "before": "public DeleteMessageResult deleteMessage(String queueUrl, String receiptHandle) {return deleteMessage(new DeleteMessageRequest().withQueueUrl(queueUrl).withReceiptHandle(receiptHandle));}", "after": "public virtual DeleteMessageResponse DeleteMessage(string queueUrl, string receiptHandle){var request = new DeleteMessageRequest();request.QueueUrl = queueUrl;request.ReceiptHandle = receiptHandle;return DeleteMessage(request);}" }, { "index": 3017, "before": "public ModifyInstanceAttributeResult modifyInstanceAttribute(ModifyInstanceAttributeRequest request) {request = beforeClientExecution(request);return executeModifyInstanceAttribute(request);}", "after": "public virtual ModifyInstanceAttributeResponse ModifyInstanceAttribute(ModifyInstanceAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyInstanceAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyInstanceAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3018, "before": "public static float[] copyOfRange(float[] original, int start, int end) {if (start > end) {throw new IllegalArgumentException();}int originalLength = original.length;if (start < 0 || start > originalLength) {throw new ArrayIndexOutOfBoundsException();}int resultLength = end - start;int copyLength = Math.min(resultLength, originalLength - start);float[] result = new float[resultLength];System.arraycopy(original, start, result, 0, copyLength);return result;}", "after": "public static float[] copyOfRange(float[] original, int start, int end){if (start > end){throw new System.ArgumentException();}int originalLength = original.Length;if (start < 0 || start > originalLength){throw new System.IndexOutOfRangeException();}int resultLength = end - start;int copyLength = System.Math.Min(resultLength, originalLength - start);float[] result = new float[resultLength];System.Array.Copy(original, start, result, 0, copyLength);return result;}" }, { "index": 3019, "before": "public TokenFilter create(TokenStream input) {SnowballStemmer program;try {program = stemClass.getConstructor().newInstance();} catch (Exception e) {", "after": "public override TokenStream Create(TokenStream input){SnowballProgram program;try{program = (SnowballProgram)Activator.CreateInstance(stemClass);}catch (Exception e){" }, { "index": 3020, "before": "public GetPhotosByMd5sRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"GetPhotosByMd5s\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetPhotosByMd5sRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"GetPhotosByMd5s\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 3021, "before": "public StartOutboundVoiceContactResult startOutboundVoiceContact(StartOutboundVoiceContactRequest request) {request = beforeClientExecution(request);return executeStartOutboundVoiceContact(request);}", "after": "public virtual StartOutboundVoiceContactResponse StartOutboundVoiceContact(StartOutboundVoiceContactRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartOutboundVoiceContactRequestMarshaller.Instance;options.ResponseUnmarshaller = StartOutboundVoiceContactResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3022, "before": "public void serialize(LittleEndianOutput out) {out.writeInt(field_1_x);out.writeInt(field_2_y);out.writeInt(field_3_width);out.writeInt(field_4_height);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(field_1_x);out1.WriteInt(field_2_y);out1.WriteInt(field_3_width);out1.WriteInt(field_4_height);}" }, { "index": 3023, "before": "public String getEmailAddress() {return emailAddress;}", "after": "public virtual string GetEmailAddress(){return emailAddress;}" }, { "index": 3024, "before": "public ValueEval getRelativeValue(int sheetIndex, int relativeRowIndex, int relativeColumnIndex) {int rowIx = (relativeRowIndex + getFirstRow() ) ;int colIx = (relativeColumnIndex + getFirstColumn() ) ;return _evaluator.getEvalForCell(sheetIndex, rowIx, colIx);}", "after": "public override ValueEval GetRelativeValue(int sheetIndex, int relativeRowIndex, int relativeColumnIndex){int rowIx = (relativeRowIndex + FirstRow);int colIx = (relativeColumnIndex + FirstColumn);return _evaluator.GetEvalForCell(sheetIndex, rowIx, colIx);}" }, { "index": 3025, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append('[');for (byte[] b : table) {if (b == null)continue;if (sb.length() > 1)sb.append(\" , \"); sb.append('\"');sb.append(RawParseUtils.decode(b));sb.append('\"');sb.append('(');sb.append(chainlength(b));sb.append(')');}sb.append(']');return sb.toString();}", "after": "public override string ToString(){StringBuilder r = new StringBuilder();r.Append(\"(\");for (int i = 0; i < subfilters.Length; i++){if (i > 0){r.Append(\" AND \");}r.Append(subfilters[i].ToString());}r.Append(\")\");return r.ToString();}" }, { "index": 3026, "before": "public void stopNow() {super.stopNow();if (runningParallelTasks != null) {for(ParallelTask t : runningParallelTasks) {if (t != null) {t.task.stopNow();}}}}", "after": "public override void StopNow(){base.StopNow();if (runningParallelTasks != null){foreach (ParallelTask t in runningParallelTasks){if (t != null){t.Task.StopNow();}}}}" }, { "index": 3027, "before": "public UpdateLogPatternResult updateLogPattern(UpdateLogPatternRequest request) {request = beforeClientExecution(request);return executeUpdateLogPattern(request);}", "after": "public virtual UpdateLogPatternResponse UpdateLogPattern(UpdateLogPatternRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateLogPatternRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateLogPatternResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3028, "before": "public FileMode getMode() {return mode;}", "after": "public override FileMode GetMode(){return mode;}" }, { "index": 3029, "before": "public ValueEval getEvalForCell(int sheetIndex, int rowIndex, int columnIndex) {return getSheetEvaluator(sheetIndex).getEvalForCell(rowIndex, columnIndex);}", "after": "public ValueEval GetEvalForCell(int sheetIndex, int rowIndex, int columnIndex){return GetSheetEvaluator(sheetIndex).GetEvalForCell(rowIndex, columnIndex);}" }, { "index": 3030, "before": "public String toString() {final StringBuilder buffer = new StringBuilder();for (Class clazz = getClass(); clazz != null; clazz = clazz.getSuperclass()) {if (!clazz.isAnonymousClass()) {buffer.append(clazz.getSimpleName());break;}}buffer.append('(');final List subReaders = getSequentialSubReaders();assert subReaders != null;if (!subReaders.isEmpty()) {buffer.append(subReaders.get(0));for (int i = 1, c = subReaders.size(); i < c; ++i) {buffer.append(\" \").append(subReaders.get(i));}}buffer.append(')');return buffer.toString();}", "after": "public override string ToString(){StringBuilder buffer = new StringBuilder();for (Type clazz = this.GetType(); clazz != null; clazz = clazz.GetTypeInfo().BaseType){if (clazz.Name != null){buffer.Append(clazz.Name);break;}}buffer.Append('(');var subReaders = GetSequentialSubReaders();Debug.Assert(subReaders != null);if (subReaders.Count > 0){buffer.Append(subReaders[0]);for (int i = 1, c = subReaders.Count; i < c; ++i){buffer.Append(\" \").Append(subReaders[i]);}}buffer.Append(')');return buffer.ToString();}" }, { "index": 3031, "before": "public CreateTypedLinkFacetResult createTypedLinkFacet(CreateTypedLinkFacetRequest request) {request = beforeClientExecution(request);return executeCreateTypedLinkFacet(request);}", "after": "public virtual CreateTypedLinkFacetResponse CreateTypedLinkFacet(CreateTypedLinkFacetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTypedLinkFacetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTypedLinkFacetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3032, "before": "public PutResolverRulePolicyResult putResolverRulePolicy(PutResolverRulePolicyRequest request) {request = beforeClientExecution(request);return executePutResolverRulePolicy(request);}", "after": "public virtual PutResolverRulePolicyResponse PutResolverRulePolicy(PutResolverRulePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutResolverRulePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = PutResolverRulePolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3033, "before": "public ConfirmPublicVirtualInterfaceResult confirmPublicVirtualInterface(ConfirmPublicVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeConfirmPublicVirtualInterface(request);}", "after": "public virtual ConfirmPublicVirtualInterfaceResponse ConfirmPublicVirtualInterface(ConfirmPublicVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ConfirmPublicVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = ConfirmPublicVirtualInterfaceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3034, "before": "public FieldInfo add(FieldInfo fi) {return add(fi, -1);}", "after": "public FieldInfo Add(FieldInfo fi){return AddOrUpdateInternal(fi.Name, fi.Number, fi.IsIndexed, fi.HasVectors, fi.OmitsNorms, fi.HasPayloads, fi.IndexOptions, fi.DocValuesType, fi.NormType);}" }, { "index": 3035, "before": "public AssociateFleetResult associateFleet(AssociateFleetRequest request) {request = beforeClientExecution(request);return executeAssociateFleet(request);}", "after": "public virtual AssociateFleetResponse AssociateFleet(AssociateFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateFleetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3036, "before": "public void close() {ctx.close();}", "after": "public override void Close(){wc.Release();}" }, { "index": 3037, "before": "public InclusiveRange(long start, long end) {assert end >= start;this.start = start;this.end = end;}", "after": "public InclusiveRange(long start, long end){Debug.Assert(end >= start);this.Start = start;this.End = end;}" }, { "index": 3038, "before": "public UpdateProfilingGroupResult updateProfilingGroup(UpdateProfilingGroupRequest request) {request = beforeClientExecution(request);return executeUpdateProfilingGroup(request);}", "after": "public virtual UpdateProfilingGroupResponse UpdateProfilingGroup(UpdateProfilingGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateProfilingGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateProfilingGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3039, "before": "public void seekExact(long ord) throws IOException {throw new UnsupportedOperationException(getClass().getName()+\" does not support seeking\");}", "after": "public override void SeekExact(long ord){throw new System.NotSupportedException(this.GetType().Name + \" does not support seeking\");}" }, { "index": 3040, "before": "public DetectStackSetDriftResult detectStackSetDrift(DetectStackSetDriftRequest request) {request = beforeClientExecution(request);return executeDetectStackSetDrift(request);}", "after": "public virtual DetectStackSetDriftResponse DetectStackSetDrift(DetectStackSetDriftRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectStackSetDriftRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectStackSetDriftResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3041, "before": "public ListConfigurationProfilesResult listConfigurationProfiles(ListConfigurationProfilesRequest request) {request = beforeClientExecution(request);return executeListConfigurationProfiles(request);}", "after": "public virtual ListConfigurationProfilesResponse ListConfigurationProfiles(ListConfigurationProfilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListConfigurationProfilesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListConfigurationProfilesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3042, "before": "public int getFormat() {return FORMAT_OTHER;}", "after": "public virtual int GetFormat(){return FORMAT_OTHER;}" }, { "index": 3043, "before": "public K lastKey() {Entry entry = endpoint(false);if (entry == null) {throw new NoSuchElementException();}return entry.getKey();}", "after": "public K lastKey(){java.util.MapClass.Entry entry = this.endpoint(false);if (entry == null){throw new java.util.NoSuchElementException();}return entry.getKey();}" }, { "index": 3044, "before": "public final void writeChars(String str) throws IOException {write(str.getBytes(\"UTF-16BE\"));}", "after": "public virtual void writeChars(string str){throw new System.NotImplementedException();}" }, { "index": 3045, "before": "public UpdateFleetPortSettingsResult updateFleetPortSettings(UpdateFleetPortSettingsRequest request) {request = beforeClientExecution(request);return executeUpdateFleetPortSettings(request);}", "after": "public virtual UpdateFleetPortSettingsResponse UpdateFleetPortSettings(UpdateFleetPortSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFleetPortSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFleetPortSettingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3046, "before": "public RuleTransition(RuleStartState ruleStart,int ruleIndex,int precedence,ATNState followState){super(ruleStart);this.ruleIndex = ruleIndex;this.precedence = precedence;this.followState = followState;}", "after": "public RuleTransition(RuleStartState ruleStart, int ruleIndex, int precedence, ATNState followState): base(ruleStart){this.ruleIndex = ruleIndex;this.precedence = precedence;this.followState = followState;}" }, { "index": 3047, "before": "public GetConferenceProviderResult getConferenceProvider(GetConferenceProviderRequest request) {request = beforeClientExecution(request);return executeGetConferenceProvider(request);}", "after": "public virtual GetConferenceProviderResponse GetConferenceProvider(GetConferenceProviderRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetConferenceProviderRequestMarshaller.Instance;options.ResponseUnmarshaller = GetConferenceProviderResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3048, "before": "public void decode(byte[] blocks, int blocksOffset, long[] values,int valuesOffset, int iterations) {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, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = ReadInt64(blocks, blocksOffset);blocksOffset += 8;valuesOffset = Decode(block, values, valuesOffset);}}" }, { "index": 3049, "before": "public void serialize(LittleEndianOutput out) {out.write(_data);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.Write(field_1_data);}" }, { "index": 3050, "before": "public void upgrade() throws IOException {if (!DirectoryReader.indexExists(dir)) {throw new IndexNotFoundException(dir.toString());}if (!deletePriorCommits) {final Collection commits = DirectoryReader.listCommits(dir);if (commits.size() > 1) {throw new IllegalArgumentException(\"This tool was invoked to not delete prior commit points, but the following commits were found: \" + commits);}}iwc.setMergePolicy(new UpgradeIndexMergePolicy(iwc.getMergePolicy()));iwc.setIndexDeletionPolicy(new KeepOnlyLastCommitDeletionPolicy());try (final IndexWriter w = new IndexWriter(dir, iwc)) {InfoStream infoStream = iwc.getInfoStream();if (infoStream.isEnabled(LOG_PREFIX)) {infoStream.message(LOG_PREFIX, \"Upgrading all pre-\" + Version.LATEST + \" segments of index directory '\" + dir + \"' to version \" + Version.LATEST + \"...\");}w.forceMerge(1);if (infoStream.isEnabled(LOG_PREFIX)) {infoStream.message(LOG_PREFIX, \"All segments upgraded to version \" + Version.LATEST);infoStream.message(LOG_PREFIX, \"Enforcing commit to rewrite all index metadata...\");}w.setLiveCommitData(w.getLiveCommitData()); assert w.hasUncommittedChanges();w.commit();if (infoStream.isEnabled(LOG_PREFIX)) {infoStream.message(LOG_PREFIX, \"Committed upgraded metadata to index.\");}}}", "after": "public void Upgrade(){if (!DirectoryReader.IndexExists(dir)){throw new IndexNotFoundException(dir.ToString());}if (!deletePriorCommits){ICollection commits = DirectoryReader.ListCommits(dir);if (commits.Count > 1){throw new System.ArgumentException(\"this tool was invoked to not delete prior commit points, but the following commits were found: \" + commits);}}IndexWriterConfig c = (IndexWriterConfig)iwc.Clone();c.MergePolicy = new UpgradeIndexMergePolicy(c.MergePolicy);c.IndexDeletionPolicy = new KeepOnlyLastCommitDeletionPolicy();IndexWriter w = new IndexWriter(dir, c);try{InfoStream infoStream = c.InfoStream;if (infoStream.IsEnabled(\"IndexUpgrader\")){infoStream.Message(\"IndexUpgrader\", \"Upgrading all pre-\" + Constants.LUCENE_MAIN_VERSION + \" segments of index directory '\" + dir + \"' to version \" + Constants.LUCENE_MAIN_VERSION + \"...\");}w.ForceMerge(1);if (infoStream.IsEnabled(\"IndexUpgrader\")){infoStream.Message(\"IndexUpgrader\", \"All segments upgraded to version \" + Constants.LUCENE_MAIN_VERSION);}}finally{w.Dispose();}}" }, { "index": 3051, "before": "public byte[] getThumbnailAsWMF() throws HPSFException{if (!(getClipboardFormatTag() == CFTAG_WINDOWS))throw new HPSFException(\"Clipboard Format Tag of Thumbnail must \" +\"be CFTAG_WINDOWS.\");if (!(getClipboardFormat() == CF_METAFILEPICT)) {throw new HPSFException(\"Clipboard Format of Thumbnail must \" +\"be CF_METAFILEPICT.\");}byte[] thumbnail = getThumbnail();int wmfImageLength = thumbnail.length - OFFSET_WMFDATA;byte[] wmfImage = new byte[wmfImageLength];System.arraycopy(thumbnail,OFFSET_WMFDATA,wmfImage,0,wmfImageLength);return wmfImage;}", "after": "public byte[] GetThumbnailAsWMF(){if (!(ClipboardFormatTag == CFTAG_WINDOWS))throw new HPSFException(\"Clipboard Format Tag of Thumbnail must \" +\"be CFTAG_WINDOWS.\");if (!(GetClipboardFormat() == CF_METAFILEPICT))throw new HPSFException(\"Clipboard Format of Thumbnail must \" +\"be CF_METAFILEPICT.\");else{byte[] thumbnail = this.ThumbnailData;int wmfImageLength = thumbnail.Length - OFFSet_WMFDATA;byte[] wmfImage = new byte[wmfImageLength];System.Array.Copy(thumbnail,OFFSet_WMFDATA,wmfImage,0,wmfImageLength);return wmfImage;}}" }, { "index": 3052, "before": "public DescribeKeyPhrasesDetectionJobResult describeKeyPhrasesDetectionJob(DescribeKeyPhrasesDetectionJobRequest request) {request = beforeClientExecution(request);return executeDescribeKeyPhrasesDetectionJob(request);}", "after": "public virtual DescribeKeyPhrasesDetectionJobResponse DescribeKeyPhrasesDetectionJob(DescribeKeyPhrasesDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeKeyPhrasesDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeKeyPhrasesDetectionJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3053, "before": "public LabelAndValue(String label, Number value) {this.label = label;this.value = value;}", "after": "public LabelAndValue(string label, int value){this.Label = label;this.Value = value;this.TypeOfValue = typeof(int);}" }, { "index": 3054, "before": "public RebaseCommand setUpstreamName(String upstreamName) {if (upstreamCommit == null) {throw new IllegalStateException(\"setUpstreamName must be called after setUpstream.\"); }this.upstreamCommitName = upstreamName;return this;}", "after": "public virtual NGit.Api.RebaseCommand SetUpstreamName(string upstreamName){if (upstreamCommit == null){throw new InvalidOperationException(\"setUpstreamName must be called after setUpstream.\");}this.upstreamCommitName = upstreamName;return this;}" }, { "index": 3055, "before": "public SearchDashboardsResult searchDashboards(SearchDashboardsRequest request) {request = beforeClientExecution(request);return executeSearchDashboards(request);}", "after": "public virtual SearchDashboardsResponse SearchDashboards(SearchDashboardsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchDashboardsRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchDashboardsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3056, "before": "public ClusterSubnetGroup createClusterSubnetGroup(CreateClusterSubnetGroupRequest request) {request = beforeClientExecution(request);return executeCreateClusterSubnetGroup(request);}", "after": "public virtual CreateClusterSubnetGroupResponse CreateClusterSubnetGroup(CreateClusterSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateClusterSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateClusterSubnetGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3057, "before": "public static int endOfFooterLineKey(byte[] raw, int ptr) {try {for (;;) {final byte c = raw[ptr];if (footerLineKeyChars[c] == 0) {if (c == ':')return ptr;return -1;}ptr++;}} catch (ArrayIndexOutOfBoundsException e) {return -1;}}", "after": "public static int EndOfFooterLineKey(byte[] raw, int ptr){try{for (; ; ){byte c = raw[ptr];if (footerLineKeyChars[c] == 0){if (c == ':'){return ptr;}return -1;}ptr++;}}catch (IndexOutOfRangeException){return -1;}}" }, { "index": 3058, "before": "public final char[] GetSuffix(int len) {char[] value = new char[len];System.arraycopy(buffer, bufferPosition - len, value, 0, len);return value;}", "after": "public char[] GetSuffix(int len){char[] value = new char[len];System.Array.Copy(buffer, bufferPosition - len, value, 0, len);return value;}" }, { "index": 3059, "before": "public boolean containsValue(Object value) {if(value instanceof CustomProperty) {return props.containsValue(value);}for(CustomProperty cp : props.values()) {if(cp.getValue() == value) {return true;}}return false;}", "after": "public override bool ContainsValue(Object value){if (value is CustomProperty){return base.ContainsValue(value);}else{foreach (object cp in base.Values){if ((cp as CustomProperty).Value == value){return true;}}}return false;}" }, { "index": 3060, "before": "public RecordInputStream createDecryptingStream(InputStream original) {String userPassword = Biff8EncryptionKey.getCurrentUserPassword();if (userPassword == null) {userPassword = Decryptor.DEFAULT_PASSWORD;}EncryptionInfo info = _filePassRec.getEncryptionInfo();try {if (!info.getDecryptor().verifyPassword(userPassword)) {throw new EncryptedDocumentException((Decryptor.DEFAULT_PASSWORD.equals(userPassword) ? \"Default\" : \"Supplied\")+ \" password is invalid for salt/verifier/verifierHash\");}} catch (GeneralSecurityException e) {throw new EncryptedDocumentException(e);}return new RecordInputStream(original, info, _initialRecordsSize);}", "after": "public RecordInputStream CreateDecryptingStream(Stream original){FilePassRecord fpr = _filePassRec;String userPassword = Biff8EncryptionKey.CurrentUserPassword;Biff8EncryptionKey key;if (userPassword == null){key = Biff8EncryptionKey.Create(fpr.DocId);}else{key = Biff8EncryptionKey.Create(userPassword, fpr.DocId);}if (!key.Validate(fpr.SaltData, fpr.SaltHash)){throw new EncryptedDocumentException((userPassword == null ? \"Default\" : \"Supplied\")+ \" password is invalid for docId/saltData/saltHash\");}return new RecordInputStream(original, key, _InitialRecordsSize);}" }, { "index": 3061, "before": "public UpdateComponentConfigurationResult updateComponentConfiguration(UpdateComponentConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateComponentConfiguration(request);}", "after": "public virtual UpdateComponentConfigurationResponse UpdateComponentConfiguration(UpdateComponentConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateComponentConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateComponentConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3062, "before": "public String toString() {CellReference crA = new CellReference(getFirstRow(), getFirstColumn());CellReference crB = new CellReference(getLastRow(), getLastColumn());return getClass().getName() + \"[\" +_evaluator.getSheetNameRange() +'!' +crA.formatAsString() +':' +crB.formatAsString() +\"]\";}", "after": "public override String ToString(){CellReference crA = new CellReference(FirstRow, FirstColumn);CellReference crB = new CellReference(LastRow, LastColumn);StringBuilder sb = new StringBuilder();sb.Append(GetType().Name).Append(\"[\");sb.Append(_evaluator.SheetNameRange);sb.Append('!');sb.Append(crA.FormatAsString());sb.Append(':');sb.Append(crB.FormatAsString());sb.Append(\"]\");return sb.ToString();}" }, { "index": 3063, "before": "public SetDesiredCapacityResult setDesiredCapacity(SetDesiredCapacityRequest request) {request = beforeClientExecution(request);return executeSetDesiredCapacity(request);}", "after": "public virtual SetDesiredCapacityResponse SetDesiredCapacity(SetDesiredCapacityRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetDesiredCapacityRequestMarshaller.Instance;options.ResponseUnmarshaller = SetDesiredCapacityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3064, "before": "public long getTotalLLATNLookaheadOps() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.length; i++) {k += decisions[i].LL_ATNTransitions;}return k;}", "after": "public long getTotalLLATNLookaheadOps(){DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.Length; i++){k += decisions[i].LL_ATNTransitions;}return k;}" }, { "index": 3065, "before": "public ListQueuesResult listQueues(ListQueuesRequest request) {request = beforeClientExecution(request);return executeListQueues(request);}", "after": "public virtual ListQueuesResponse ListQueues(ListQueuesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListQueuesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListQueuesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3066, "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;final long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 12) | (byte1 << 4) | (byte2 >>> 4);final long byte3 = blocks[blocksOffset++] & 0xFF;final long byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 16) | (byte3 << 8) | byte4;}}", "after": "public override void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long byte0 = blocks[blocksOffset++] & 0xFF;long byte1 = blocks[blocksOffset++] & 0xFF;long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 12) | (byte1 << 4) | ((long)((ulong)byte2 >> 4));long byte3 = blocks[blocksOffset++] & 0xFF;long byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 16) | (byte3 << 8) | byte4;}}" }, { "index": 3067, "before": "public EnableVolumeIOResult enableVolumeIO(EnableVolumeIORequest request) {request = beforeClientExecution(request);return executeEnableVolumeIO(request);}", "after": "public virtual EnableVolumeIOResponse EnableVolumeIO(EnableVolumeIORequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableVolumeIORequestMarshaller.Instance;options.ResponseUnmarshaller = EnableVolumeIOResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3068, "before": "public long seek(BytesRef target) throws IOException {current = fstEnum.seekFloor(target);return current.output;}", "after": "public override long Seek(BytesRef target){current = fstEnum.SeekFloor(target);if (current.Output.HasValue){return current.Output.Value;}else{throw new NullReferenceException(\"_current.Output is null\"); }}" }, { "index": 3069, "before": "public GetStreamingDistributionConfigRequest(String id) {setId(id);}", "after": "public GetStreamingDistributionConfigRequest(string id){_id = id;}" }, { "index": 3070, "before": "public WordnetSynonymParser(boolean dedup, boolean expand, Analyzer analyzer) {super(dedup, analyzer);this.expand = expand;}", "after": "public WordnetSynonymParser(bool dedup, bool expand, Analyzer analyzer): base(dedup, analyzer){this.expand = expand;}" }, { "index": 3071, "before": "public DescribeProblemResult describeProblem(DescribeProblemRequest request) {request = beforeClientExecution(request);return executeDescribeProblem(request);}", "after": "public virtual DescribeProblemResponse DescribeProblem(DescribeProblemRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeProblemRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeProblemResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3072, "before": "public E floor(E e) {return backingMap.floorKey(e);}", "after": "public virtual E floor(E e){return backingMap.floorKey(e);}" }, { "index": 3073, "before": "public IrishLowerCaseFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public IrishLowerCaseFilterFactory(IDictionary args) : base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 3074, "before": "public EnableAvailabilityZonesForLoadBalancerRequest(String loadBalancerName, java.util.List availabilityZones) {setLoadBalancerName(loadBalancerName);setAvailabilityZones(availabilityZones);}", "after": "public EnableAvailabilityZonesForLoadBalancerRequest(string loadBalancerName, List availabilityZones){_loadBalancerName = loadBalancerName;_availabilityZones = availabilityZones;}" }, { "index": 3075, "before": "public DescribeLoadBalancerTargetGroupsResult describeLoadBalancerTargetGroups(DescribeLoadBalancerTargetGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeLoadBalancerTargetGroups(request);}", "after": "public virtual DescribeLoadBalancerTargetGroupsResponse DescribeLoadBalancerTargetGroups(DescribeLoadBalancerTargetGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoadBalancerTargetGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoadBalancerTargetGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3076, "before": "public Snapshot copySnapshot(CopySnapshotRequest request) {request = beforeClientExecution(request);return executeCopySnapshot(request);}", "after": "public virtual CopySnapshotResponse CopySnapshot(CopySnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopySnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CopySnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3077, "before": "public Map readForHideArrayItem(String response, String endpoint) {return readForHideItem(new StringCharacterIterator(response), endpoint, FIRST_POSITION);}", "after": "public Dictionary ReadForHideArrayItem(string response, string endpoint){return ReadForHideArrayItem(response.GetEnumerator(), endpoint);}" }, { "index": 3078, "before": "public LbsDropData(LittleEndianInput in) {_wStyle = in.readUShort();_cLine = in.readUShort();_dxMin = in.readUShort();_str = StringUtil.readUnicodeString(in);if(StringUtil.getEncodedSize(_str) % 2 != 0){_unused = in.readByte();}}", "after": "public LbsDropData(ILittleEndianInput in1){_wStyle = in1.ReadUShort();_cLine = in1.ReadUShort();_dxMin = in1.ReadUShort();_str = StringUtil.ReadUnicodeString(in1);if(StringUtil.GetEncodedSize(_str) % 2 != 0){_unused = (byte)in1.ReadByte();}}" }, { "index": 3079, "before": "public void decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block = blocks[blocksOffset++];for (int shift = 60; shift >= 0; shift -= 4) {values[valuesOffset++] = (block >>> shift) & 15;}}}", "after": "public override void Decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = blocks[blocksOffset++];for (int shift = 60; shift >= 0; shift -= 4){values[valuesOffset++] = ((long)((ulong)block >> shift)) & 15;}}}" }, { "index": 3080, "before": "public int doLogic() throws Exception {final String docID = doc.get(DocMaker.ID_FIELD);if (docID == null) {throw new IllegalStateException(\"document must define the docid field\");}final IndexWriter iw = getRunData().getIndexWriter();iw.updateDocument(new Term(DocMaker.ID_FIELD, docID), doc);return 1;}", "after": "public override int DoLogic(){string docID = doc.Get(DocMaker.ID_FIELD);if (docID == null){throw new InvalidOperationException(\"document must define the docid field\");}IndexWriter iw = RunData.IndexWriter;iw.UpdateDocument(new Term(DocMaker.ID_FIELD, docID), doc);return 1;}" }, { "index": 3081, "before": "public ListInstanceFleetsResult listInstanceFleets(ListInstanceFleetsRequest request) {request = beforeClientExecution(request);return executeListInstanceFleets(request);}", "after": "public virtual ListInstanceFleetsResponse ListInstanceFleets(ListInstanceFleetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListInstanceFleetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListInstanceFleetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3082, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex,ValueEval arg0, ValueEval arg1) {return func.evaluate(srcRowIndex, srcColumnIndex, arg0, arg1);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex,ValueEval arg0, ValueEval arg1){return func.Evaluate(srcRowIndex, srcColumnIndex, arg0, arg1);}" }, { "index": 3083, "before": "public DescribeDBParametersResult describeDBParameters(DescribeDBParametersRequest request) {request = beforeClientExecution(request);return executeDescribeDBParameters(request);}", "after": "public virtual DescribeDBParametersResponse DescribeDBParameters(DescribeDBParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBParametersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3084, "before": "public CreateFargateProfileResult createFargateProfile(CreateFargateProfileRequest request) {request = beforeClientExecution(request);return executeCreateFargateProfile(request);}", "after": "public virtual CreateFargateProfileResponse CreateFargateProfile(CreateFargateProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFargateProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFargateProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3085, "before": "public char previous() {if (offset == start) {return DONE;}return string.charAt(--offset);}", "after": "public char previous(){if (offset == start){return java.text.CharacterIteratorClass.DONE;}return @string[--offset];}" }, { "index": 3086, "before": "public List call() throws GitAPIException {checkCallable();List result = new ArrayList<>();if (tags.isEmpty())return result;try {setCallable(false);for (String tagName : tags) {if (tagName == null)continue;Ref currentRef = repo.findRef(tagName);if (currentRef == null)continue;String fullName = currentRef.getName();RefUpdate update = repo.updateRef(fullName);update.setForceUpdate(true);Result deleteResult = update.delete();boolean ok = true;switch (deleteResult) {case IO_FAILURE:case LOCK_FAILURE:case REJECTED:ok = false;break;default:break;}if (ok) {result.add(fullName);} elsethrow new JGitInternalException(MessageFormat.format(JGitText.get().deleteTagUnexpectedResult,deleteResult.name()));}return result;} catch (IOException ioe) {throw new JGitInternalException(ioe.getMessage(), ioe);}}", "after": "public override IList Call(){CheckCallable();IList result = new AList();if (tags.IsEmpty()){return result;}try{SetCallable(false);foreach (string tagName in tags){if (tagName == null){continue;}Ref currentRef = repo.GetRef(tagName);if (currentRef == null){continue;}string fullName = currentRef.GetName();RefUpdate update = repo.UpdateRef(fullName);update.SetForceUpdate(true);RefUpdate.Result deleteResult = update.Delete();bool ok = true;switch (deleteResult){case RefUpdate.Result.IO_FAILURE:case RefUpdate.Result.LOCK_FAILURE:case RefUpdate.Result.REJECTED:{ok = false;break;}default:{break;break;}}if (ok){result.AddItem(fullName);}else{throw new JGitInternalException(MessageFormat.Format(JGitText.Get().deleteTagUnexpectedResult, deleteResult.ToString()));}}return result;}catch (IOException ioe){throw new JGitInternalException(ioe.Message, ioe);}}" }, { "index": 3087, "before": "public static void fill(byte[] array, byte value) {for (int i = 0; i < array.length; i++) {array[i] = value;}}", "after": "public static void fill(byte[] array, byte value){{for (int i = 0; i < array.Length; i++){array[i] = value;}}}" }, { "index": 3088, "before": "public CreateSampleFindingsResult createSampleFindings(CreateSampleFindingsRequest request) {request = beforeClientExecution(request);return executeCreateSampleFindings(request);}", "after": "public virtual CreateSampleFindingsResponse CreateSampleFindings(CreateSampleFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSampleFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSampleFindingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3089, "before": "public Builder() {slop = 0;terms = new ArrayList<>();positions = new ArrayList<>();}", "after": "public Builder(): base(){lastDocID = -1;wordNum = -1;word = 0;}" }, { "index": 3090, "before": "public boolean run(char[] s, int offset, int length) {int p = 0;int l = offset + length;for (int i = offset, cp = 0; i < l; i += Character.charCount(cp)) {p = step(p, cp = Character.codePointAt(s, i, l));if (p == -1) return false;}return accept.get(p);}", "after": "public virtual bool Run(char[] s, int offset, int length){int p = m_initial;int l = offset + length;for (int i = offset, cp = 0; i < l; i += Character.CharCount(cp)){p = Step(p, cp = Character.CodePointAt(s, i, l));if (p == -1) return false;}return m_accept[p];}" }, { "index": 3091, "before": "public String toFormulaString() {return \"ERR#\";}", "after": "public override String ToFormulaString(){return \"ERR#\";}" }, { "index": 3092, "before": "public void close() {synchronized (lock) {if (out != null) {try {out.close();} catch (IOException e) {setError();}out = null;}}}", "after": "public override void close(){lock (@lock){if (@out != null){try{@out.close();}catch (System.IO.IOException){setError();}@out = null;}}}" }, { "index": 3093, "before": "public int fillFields( byte[] data, int offset,EscherRecordFactory recordFactory ){int bytesRemaining = readHeader( data, offset );short propertiesCount = readInstance( data, offset );int pos = offset + 8;EscherPropertyFactory f = new EscherPropertyFactory();properties.clear();properties.addAll( f.createProperties( data, pos, propertiesCount ) );return bytesRemaining + 8;}", "after": "public override int FillFields(byte[] data, int offset,IEscherRecordFactory recordFactory){int bytesRemaining = ReadHeader(data, offset);short propertiesCount = ReadInstance(data, offset);int pos = offset + 8;EscherPropertyFactory f = new EscherPropertyFactory();properties = f.CreateProperties(data, pos, propertiesCount);return bytesRemaining + 8;}" }, { "index": 3094, "before": "public EveryNOrDocFreqTermSelector(int docFreqThresh, int interval) {this.interval = interval;this.docFreqThresh = docFreqThresh;count = interval;}", "after": "public EveryNOrDocFreqTermSelector(int docFreqThresh, int interval){this.interval = interval;this.docFreqThresh = docFreqThresh;count = interval;}" }, { "index": 3095, "before": "public UpdateAvailabilityOptionsResult updateAvailabilityOptions(UpdateAvailabilityOptionsRequest request) {request = beforeClientExecution(request);return executeUpdateAvailabilityOptions(request);}", "after": "public virtual UpdateAvailabilityOptionsResponse UpdateAvailabilityOptions(UpdateAvailabilityOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAvailabilityOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAvailabilityOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3096, "before": "public AddInstanceFleetResult addInstanceFleet(AddInstanceFleetRequest request) {request = beforeClientExecution(request);return executeAddInstanceFleet(request);}", "after": "public virtual AddInstanceFleetResponse AddInstanceFleet(AddInstanceFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddInstanceFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = AddInstanceFleetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3097, "before": "public synchronized void setMax(int max) {super.setMax(max);if ((mKeyProgressIncrement == 0) || (getMax() / mKeyProgressIncrement > 20)) {setKeyProgressIncrement(Math.max(1, Math.round((float) getMax() / 20)));}}", "after": "public override void setMax(int max){lock (this){base.setMax(max);if ((mKeyProgressIncrement == 0) || (getMax() / mKeyProgressIncrement > 20)){setKeyProgressIncrement(System.Math.Max(1, Sharpen.Util.Round((float)getMax() / 20)));}}}" }, { "index": 3098, "before": "public LazyAreaEval getRow(int rowIndex) {if (rowIndex >= getHeight()) {throw new IllegalArgumentException(\"Invalid rowIndex \" + rowIndex+ \". Allowable range is (0..\" + getHeight() + \").\");}int absRowIx = getFirstRow() + rowIndex;return new LazyAreaEval(absRowIx, getFirstColumn(), absRowIx, getLastColumn(), _evaluator);}", "after": "public override TwoDEval GetRow(int rowIndex){if (rowIndex >= Height){throw new ArgumentException(\"Invalid rowIndex \" + rowIndex+ \". Allowable range is (0..\" + Height + \").\");}int absRowIx = FirstRow + rowIndex;return new LazyAreaEval(absRowIx, FirstColumn, absRowIx, LastColumn, _evaluator);}" }, { "index": 3099, "before": "public IntervalSet getExpectedTokens(int stateNumber, RuleContext context) {if (stateNumber < 0 || stateNumber >= states.size()) {throw new IllegalArgumentException(\"Invalid state number.\");}RuleContext ctx = context;ATNState s = states.get(stateNumber);IntervalSet following = nextTokens(s);if (!following.contains(Token.EPSILON)) {return following;}IntervalSet expected = new IntervalSet();expected.addAll(following);expected.remove(Token.EPSILON);while (ctx != null && ctx.invokingState >= 0 && following.contains(Token.EPSILON)) {ATNState invokingState = states.get(ctx.invokingState);RuleTransition rt = (RuleTransition)invokingState.transition(0);following = nextTokens(rt.followState);expected.addAll(following);expected.remove(Token.EPSILON);ctx = ctx.parent;}if (following.contains(Token.EPSILON)) {expected.add(Token.EOF);}return expected;}", "after": "public virtual IntervalSet GetExpectedTokens(int stateNumber, RuleContext context){if (stateNumber < 0 || stateNumber >= states.Count){throw new ArgumentException(\"Invalid state number.\");}RuleContext ctx = context;ATNState s = states[stateNumber];IntervalSet following = NextTokens(s);if (!following.Contains(TokenConstants.EPSILON)){return following;}IntervalSet expected = new IntervalSet();expected.AddAll(following);expected.Remove(TokenConstants.EPSILON);while (ctx != null && ctx.invokingState >= 0 && following.Contains(TokenConstants.EPSILON)){ATNState invokingState = states[ctx.invokingState];RuleTransition rt = (RuleTransition)invokingState.Transition(0);following = NextTokens(rt.followState);expected.AddAll(following);expected.Remove(TokenConstants.EPSILON);ctx = ctx.Parent;}if (following.Contains(TokenConstants.EPSILON)){expected.Add(TokenConstants.EOF);}return expected;}" }, { "index": 3100, "before": "public UntagResourceResult untagResource(UntagResourceRequest request) {request = beforeClientExecution(request);return executeUntagResource(request);}", "after": "public virtual UntagResourceResponse UntagResource(UntagResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3101, "before": "public String getInflectionForm(int wordId) {return null;}", "after": "public override string GetInflectionForm(int wordId){return null;}" }, { "index": 3102, "before": "public Ref3DPxg(int externalWorkbookNumber, SheetIdentifier sheetName, CellReference c) {super(c);this.externalWorkbookNumber = externalWorkbookNumber;this.firstSheetName = sheetName.getSheetIdentifier().getName();if (sheetName instanceof SheetRangeIdentifier) {this.lastSheetName = ((SheetRangeIdentifier)sheetName).getLastSheetIdentifier().getName();} else {this.lastSheetName = null;}}", "after": "public Ref3DPxg(int externalWorkbookNumber, SheetIdentifier sheetName, CellReference c): base(c){this.externalWorkbookNumber = externalWorkbookNumber;this.firstSheetName = sheetName.SheetId.Name;if (sheetName is SheetRangeIdentifier){this.lastSheetName = ((SheetRangeIdentifier)sheetName).LastSheetIdentifier.Name;}else{this.lastSheetName = null;}}" }, { "index": 3103, "before": "public ModifyJumpserverPasswordRequest() {super(\"HPC\", \"2016-06-03\", \"ModifyJumpserverPassword\", \"hpc\");setMethod(MethodType.POST);}", "after": "public ModifyJumpserverPasswordRequest(): base(\"HPC\", \"2016-06-03\", \"ModifyJumpserverPassword\"){Method = MethodType.POST;}" }, { "index": 3104, "before": "public SearchLocalGatewayRoutesResult searchLocalGatewayRoutes(SearchLocalGatewayRoutesRequest request) {request = beforeClientExecution(request);return executeSearchLocalGatewayRoutes(request);}", "after": "public virtual SearchLocalGatewayRoutesResponse SearchLocalGatewayRoutes(SearchLocalGatewayRoutesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchLocalGatewayRoutesRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchLocalGatewayRoutesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3105, "before": "public void write(byte[] buffer) throws IOException {write(buffer, 0, buffer.length);}", "after": "public virtual void write(byte[] buffer){throw new System.NotImplementedException();}" }, { "index": 3106, "before": "public ExtendedPivotTableViewFieldsRecord(RecordInputStream in) {_grbit1 = in.readInt();_grbit2 = in.readUByte();_citmShow = in.readUByte();_isxdiSort = in.readUShort();_isxdiShow = in.readUShort();switch (in.remaining()) {case 0:_reserved1 = 0;_reserved2 = 0;_subtotalName = null;return;case 10:break;default:throw new RecordFormatException(\"Unexpected remaining size (\" + in.remaining() + \")\");}int cchSubName = in.readUShort();_reserved1 = in.readInt();_reserved2 = in.readInt();if (cchSubName != STRING_NOT_PRESENT_LEN) {_subtotalName = in.readUnicodeLEString(cchSubName);}}", "after": "public ExtendedPivotTableViewFieldsRecord(RecordInputStream in1){grbit1 = in1.ReadInt();grbit2 = in1.ReadUByte();citmShow = in1.ReadUByte();isxdiSort = in1.ReadUShort();isxdiShow = in1.ReadUShort();switch (in1.Remaining) {case 0:reserved1 = 0;reserved2 = 0;subName = null;return;case 10:break;default:throw new RecordFormatException(\"Unexpected remaining size (\" + in1.Remaining + \")\");}int cchSubName = in1.ReadUShort();reserved1 = in1.ReadInt();reserved2 = in1.ReadInt();if (cchSubName != STRING_NOT_PRESENT_LEN){subName = in1.ReadUnicodeLEString(cchSubName);}}" }, { "index": 3107, "before": "public static double cosh(double d) {double ePowX = Math.pow(Math.E, d);double ePowNegX = Math.pow(Math.E, -d);return (ePowX + ePowNegX) / 2;}", "after": "public static double Cosh(double d){double ePowX = Math.Pow(Math.E, d);double ePowNegX = Math.Pow(Math.E, -d);d = (ePowX + ePowNegX) / 2;return d;}" }, { "index": 3108, "before": "public List getDFAStrings() {synchronized (_interp.decisionToDFA) {List s = new ArrayList();for (int d = 0; d < _interp.decisionToDFA.length; d++) {DFA dfa = _interp.decisionToDFA[d];s.add( dfa.toString(getVocabulary()) );}return s;}}", "after": "public virtual IList GetDFAStrings(){IList s = new List();for (int d = 0; d < Interpreter.atn.decisionToDFA.Length; d++){DFA dfa = Interpreter.atn.decisionToDFA[d];s.Add(dfa.ToString(Vocabulary));}return s;}" }, { "index": 3109, "before": "public LexerChannelAction(int channel) {this.channel = channel;}", "after": "public LexerChannelAction(int channel){this.channel = channel;}" }, { "index": 3110, "before": "public MappingCharFilter(NormalizeCharMap normMap, Reader in) {super(in);buffer.reset(in);map = normMap.map;cachedRootArcs = normMap.cachedRootArcs;if (map != null) {fstReader = map.getBytesReader();} else {fstReader = null;}}", "after": "public MappingCharFilter(NormalizeCharMap normMap, TextReader @in): base(@in){_input = GetBufferedReader(@in);_input.Mark(BufferedCharFilter.DEFAULT_CHAR_BUFFER_SIZE);buffer.Reset(_input);map = normMap.map;cachedRootArcs = normMap.cachedRootArcs;if (map != null){fstReader = map.GetBytesReader();}else{fstReader = null;}}" }, { "index": 3111, "before": "public String toString() {String newline = System.getProperty(\"line.separator\");StringBuilder sb = new StringBuilder();sb.append(sequence.toString());sb.append(newline);return sb.toString();}", "after": "public override string ToString(){string newline = Environment.NewLine;StringBuilder sb = new StringBuilder();sb.Append(sequence.ToString());sb.Append(newline);return sb.ToString();}" }, { "index": 3112, "before": "public void visitContainedRecords(RecordVisitor rv) {for (CFRecordsAggregate subAgg : _cfHeaders) {subAgg.visitContainedRecords(rv);}}", "after": "public override void VisitContainedRecords(RecordVisitor rv){for (int i = 0; i < _cfHeaders.Count; i++){CFRecordsAggregate subAgg = (CFRecordsAggregate)_cfHeaders[i];subAgg.VisitContainedRecords(rv);}}" }, { "index": 3113, "before": "public static boolean equals(short[] array1, short[] array2) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length != array2.length) {return false;}for (int i = 0; i < array1.length; i++) {if (array1[i] != array2[i]) {return false;}}return true;}", "after": "public static bool equals(short[] array1, short[] array2){if (array1 == array2){return true;}if (array1 == null || array2 == null || array1.Length != array2.Length){return false;}{for (int i = 0; i < array1.Length; i++){if (array1[i] != array2[i]){return false;}}}return true;}" }, { "index": 3114, "before": "public String getString(){return getString(field_2_bytes, codepage);}", "after": "public String GetString(){return GetString(field_2_bytes, codepage);}" }, { "index": 3115, "before": "public SimpleDate(Calendar cal) {year = cal.get(Calendar.YEAR);month = cal.get(Calendar.MONTH) + 1;day = cal.get(Calendar.DAY_OF_MONTH);tsMilliseconds = cal.getTimeInMillis();}", "after": "public SimpleDate(DateTime date){year = date.Year;month = date.Month;day = date.Day;ticks = date.Ticks;}" }, { "index": 3116, "before": "public TreeFilter clone() {throw new IllegalStateException(\"Do not clone this kind of filter: \" + getClass().getName());}", "after": "public override TreeFilter Clone(){throw new InvalidOperationException(\"Do not clone this kind of filter: \" + GetType().FullName);}" }, { "index": 3117, "before": "public String getText(Interval interval) {int start = interval.a;int stop = interval.b;if ( start<0 || stop<0 ) return \"\";fill();if ( stop>=tokens.size() ) stop = tokens.size()-1;StringBuilder buf = new StringBuilder();for (int i = start; i <= stop; i++) {Token t = tokens.get(i);if ( t.getType()==Token.EOF ) break;buf.append(t.getText());}return buf.toString();}", "after": "public virtual string GetText(Interval interval){int start = interval.a;int stop = interval.b;if (start < 0 || stop < 0){return string.Empty;}LazyInit();if (stop >= tokens.Count){stop = tokens.Count - 1;}StringBuilder buf = new StringBuilder();for (int i = start; i <= stop; i++){IToken t = tokens[i];if (t.Type == TokenConstants.EOF){break;}buf.Append(t.Text);}return buf.ToString();}" }, { "index": 3118, "before": "public CancelStepsResult cancelSteps(CancelStepsRequest request) {request = beforeClientExecution(request);return executeCancelSteps(request);}", "after": "public virtual CancelStepsResponse CancelSteps(CancelStepsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelStepsRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelStepsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3119, "before": "public long ramBytesUsed() {return 0;}", "after": "public override long RamBytesUsed(){return 0;}" }, { "index": 3120, "before": "public boolean contains(Object o) {return containsValue(o);}", "after": "public override bool contains(object o){return this._enclosing.containsValue(o);}" }, { "index": 3121, "before": "public synchronized int codePointBefore(int index) {return super.codePointBefore(index);}", "after": "public override int codePointBefore(int index){lock (this){return base.codePointBefore(index);}}" }, { "index": 3122, "before": "public DeleteApplicationRequest(String applicationName) {setApplicationName(applicationName);}", "after": "public DeleteApplicationRequest(string applicationName){_applicationName = applicationName;}" }, { "index": 3123, "before": "public LazyDocument(IndexReader reader, int docID) {this.reader = reader;this.docID = docID;}", "after": "public LazyDocument(IndexReader reader, int docID){this.reader = reader;this.docID = docID;}" }, { "index": 3124, "before": "public static int trimLeadingWhitespace(byte[] raw, int start, int end) {while (start < end && isWhitespace(raw[start]))start++;return start;}", "after": "public static int TrimLeadingWhitespace(byte[] raw, int start, int end){while (start < end && IsWhitespace(raw[start])){start++;}return start;}" }, { "index": 3125, "before": "public int[] getMap() {return map;}", "after": "public int[] GetMap(){return (int[])map.Clone(); }" }, { "index": 3126, "before": "public void set(E object) {iterator.set(object);}", "after": "public void set(E @object){iterator.set(@object);}" }, { "index": 3127, "before": "public ModifyCurrentDBClusterCapacityResult modifyCurrentDBClusterCapacity(ModifyCurrentDBClusterCapacityRequest request) {request = beforeClientExecution(request);return executeModifyCurrentDBClusterCapacity(request);}", "after": "public virtual ModifyCurrentDBClusterCapacityResponse ModifyCurrentDBClusterCapacity(ModifyCurrentDBClusterCapacityRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyCurrentDBClusterCapacityRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyCurrentDBClusterCapacityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3128, "before": "public CancelRepoBuildRequest() {super(\"cr\", \"2016-06-07\", \"CancelRepoBuild\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/build/[BuildId]/cancel\");setMethod(MethodType.POST);}", "after": "public CancelRepoBuildRequest(): base(\"cr\", \"2016-06-07\", \"CancelRepoBuild\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/build/[BuildId]/cancel\";Method = MethodType.POST;}" }, { "index": 3129, "before": "public LongBuffer get(long[] dst, int dstOffset, int longCount) {Arrays.checkOffsetAndCount(dst.length, dstOffset, longCount);if (longCount > remaining()) {throw new BufferUnderflowException();}for (int i = dstOffset; i < dstOffset + longCount; ++i) {dst[i] = get();}return this;}", "after": "public virtual java.nio.LongBuffer get(long[] dst, int dstOffset, int longCount){java.util.Arrays.checkOffsetAndCount(dst.Length, dstOffset, longCount);if (longCount > remaining()){throw new java.nio.BufferUnderflowException();}{for (int i = dstOffset; i < dstOffset + longCount; ++i){dst[i] = get();}}return this;}" }, { "index": 3130, "before": "public SpreadsheetVersion getSpreadsheetVersion(){return SpreadsheetVersion.EXCEL97;}", "after": "public SpreadsheetVersion GetSpreadsheetVersion(){return SpreadsheetVersion.EXCEL97;}" }, { "index": 3131, "before": "public boolean equals(Object obj) {if (obj instanceof Point) {Point rhs = (Point) obj;return this.x == rhs.x && this.y == rhs.y;}return false;}", "after": "public override bool Equals(object o){if (o is android.graphics.Point){android.graphics.Point p = (android.graphics.Point)o;return this.x == p.x && this.y == p.y;}return false;}" }, { "index": 3132, "before": "public int numNodes() {return numNodes(rootNode);}", "after": "public virtual int NumNodes(){return NumNodes(rootNode);}" }, { "index": 3133, "before": "public String toString() {return super.toString() + flags;}", "after": "public override string ToString(){return base.ToString() + flags;}" }, { "index": 3134, "before": "public EnglishPossessiveFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public EnglishPossessiveFilterFactory(IDictionary args) : base(args){AssureMatchVersion();if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 3135, "before": "public static double atanh(double d) {return Math.log((1 + d)/(1 - d)) / 2;}", "after": "public static double Atanh(double d){return Math.Log((1 + d) / (1 - d)) / 2;}" }, { "index": 3136, "before": "public WindowsIndexInput clone() {WindowsIndexInput clone = (WindowsIndexInput)super.clone();clone.isClone = true;return clone;}", "after": "public override WindowsIndexInput clone(){WindowsIndexInput clone = (WindowsIndexInput)base.clone();clone.isClone = true;return clone;}" }, { "index": 3137, "before": "public ParseException(Token currentTokenVal,int[][] expectedTokenSequencesVal,String[] tokenImageVal){super(initialise(currentTokenVal, expectedTokenSequencesVal, tokenImageVal));currentToken = currentTokenVal;expectedTokenSequences = expectedTokenSequencesVal;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": 3138, "before": "public long getTotalATNLookaheadOps() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.length; i++) {k += decisions[i].SLL_ATNTransitions;k += decisions[i].LL_ATNTransitions;}return k;}", "after": "public long getTotalATNLookaheadOps(){DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.Length; i++){k += decisions[i].SLL_ATNTransitions;k += decisions[i].LL_ATNTransitions;}return k;}" }, { "index": 3139, "before": "public synchronized StringBuffer reverse() {reverse0();return this;}", "after": "public java.lang.StringBuffer reverse(){lock (this){reverse0();return this;}}" }, { "index": 3140, "before": "public DescribeLoadBalancersRequest(java.util.List loadBalancerNames) {setLoadBalancerNames(loadBalancerNames);}", "after": "public DescribeLoadBalancersRequest(List loadBalancerNames){_loadBalancerNames = loadBalancerNames;}" }, { "index": 3141, "before": "public String toString() {return '~'+super.toString();}", "after": "public override string ToString(){return '~' + base.ToString();}" }, { "index": 3142, "before": "public static ISignatureComposer getComposer() {if (null == composer) {composer = new RoaSignatureComposer();}return composer;}", "after": "public static ISignatureComposer GetComposer(){if (null == composer){composer = new RoaSignatureComposer();}return composer;}" }, { "index": 3143, "before": "public boolean ready() throws IOException {synchronized (lock) {if (buf == null) {throw new IOException(\"Reader is closed\");}return (buf.length - pos > 0 || in.ready());}}", "after": "public override bool ready(){lock (@lock){if (buf == null){throw new System.IO.IOException(\"Reader is closed\");}return (buf.Length - pos > 0 || @in.ready());}}" }, { "index": 3144, "before": "public GetClientCertificatesResult getClientCertificates(GetClientCertificatesRequest request) {request = beforeClientExecution(request);return executeGetClientCertificates(request);}", "after": "public virtual GetClientCertificatesResponse GetClientCertificates(GetClientCertificatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetClientCertificatesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetClientCertificatesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3145, "before": "public static final int tagger(byte[] b, int ptr) {final int sz = b.length;if (ptr == 0)ptr += 48; while (ptr < sz) {if (b[ptr] == '\\n')return -1;final int m = match(b, ptr, tagger);if (m >= 0)return m;ptr = nextLF(b, ptr);}return -1;}", "after": "public static int Tagger(byte[] b, int ptr){int sz = b.Length;if (ptr == 0){ptr += 48;}while (ptr < sz){if (b[ptr] == '\\n'){return -1;}int m = Match(b, ptr, ObjectChecker.tagger);if (m >= 0){return m;}ptr = NextLF(b, ptr);}return -1;}" }, { "index": 3146, "before": "public GetInstanceStateResult getInstanceState(GetInstanceStateRequest request) {request = beforeClientExecution(request);return executeGetInstanceState(request);}", "after": "public virtual GetInstanceStateResponse GetInstanceState(GetInstanceStateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInstanceStateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInstanceStateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3147, "before": "public boolean isEmpty() {synchronized (mutex) {return delegate().isEmpty();}}", "after": "public virtual bool isEmpty(){lock (mutex){return c.isEmpty();}}" }, { "index": 3148, "before": "public long getCount() {return cnt;}", "after": "public virtual long GetCount(){return cnt;}" }, { "index": 3149, "before": "public DeleteConfigurationSetEventDestinationResult deleteConfigurationSetEventDestination(DeleteConfigurationSetEventDestinationRequest request) {request = beforeClientExecution(request);return executeDeleteConfigurationSetEventDestination(request);}", "after": "public virtual DeleteConfigurationSetEventDestinationResponse DeleteConfigurationSetEventDestination(DeleteConfigurationSetEventDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteConfigurationSetEventDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteConfigurationSetEventDestinationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3150, "before": "public DeleteNetworkInterfacePermissionResult deleteNetworkInterfacePermission(DeleteNetworkInterfacePermissionRequest request) {request = beforeClientExecution(request);return executeDeleteNetworkInterfacePermission(request);}", "after": "public virtual DeleteNetworkInterfacePermissionResponse DeleteNetworkInterfacePermission(DeleteNetworkInterfacePermissionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNetworkInterfacePermissionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNetworkInterfacePermissionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3151, "before": "public Tag(String key, String value) {this.key = key;this.value = value;}", "after": "public Tag(string key, string value){_key = key;_value = value;}" }, { "index": 3152, "before": "public CreateTrafficMirrorTargetResult createTrafficMirrorTarget(CreateTrafficMirrorTargetRequest request) {request = beforeClientExecution(request);return executeCreateTrafficMirrorTarget(request);}", "after": "public virtual CreateTrafficMirrorTargetResponse CreateTrafficMirrorTarget(CreateTrafficMirrorTargetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTrafficMirrorTargetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTrafficMirrorTargetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3153, "before": "public GetGroupPolicyRequest(String groupName, String policyName) {setGroupName(groupName);setPolicyName(policyName);}", "after": "public GetGroupPolicyRequest(string groupName, string policyName){_groupName = groupName;_policyName = policyName;}" }, { "index": 3154, "before": "public DeleteVoiceChannelResult deleteVoiceChannel(DeleteVoiceChannelRequest request) {request = beforeClientExecution(request);return executeDeleteVoiceChannel(request);}", "after": "public virtual DeleteVoiceChannelResponse DeleteVoiceChannel(DeleteVoiceChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVoiceChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVoiceChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3155, "before": "public DBClusterSnapshotAttributesResult modifyDBClusterSnapshotAttribute(ModifyDBClusterSnapshotAttributeRequest request) {request = beforeClientExecution(request);return executeModifyDBClusterSnapshotAttribute(request);}", "after": "public virtual ModifyDBClusterSnapshotAttributeResponse ModifyDBClusterSnapshotAttribute(ModifyDBClusterSnapshotAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBClusterSnapshotAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBClusterSnapshotAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3156, "before": "public RegisterAVSDeviceResult registerAVSDevice(RegisterAVSDeviceRequest request) {request = beforeClientExecution(request);return executeRegisterAVSDevice(request);}", "after": "public virtual RegisterAVSDeviceResponse RegisterAVSDevice(RegisterAVSDeviceRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterAVSDeviceRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterAVSDeviceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3157, "before": "public void setValue(char[] newValue) {clear();if (newValue != null) {value = new char[newValue.length];System.arraycopy(newValue, 0, value, 0, newValue.length);}}", "after": "public virtual void SetValue(char[] newValue){Clear();if (newValue != null){value = new char[newValue.Length];System.Array.Copy(newValue, 0, value, 0, newValue.Length);}}" }, { "index": 3158, "before": "public int compareSameType(Object other) {assert exists || 0.0D == value;MutableValueDouble b = (MutableValueDouble)other;int c = Double.compare(value, b.value);if (c != 0) return c;if (exists == b.exists) return 0;return exists ? 1 : -1;}", "after": "public override int CompareSameType(object other){MutableValueDouble b = (MutableValueDouble)other;int c = Value.CompareTo(b.Value);if (c != 0){return c;}if (!Exists){return -1;}if (!b.Exists){return 1;}return 0;}" }, { "index": 3159, "before": "public UpdateCodeRepositoryResult updateCodeRepository(UpdateCodeRepositoryRequest request) {request = beforeClientExecution(request);return executeUpdateCodeRepository(request);}", "after": "public virtual UpdateCodeRepositoryResponse UpdateCodeRepository(UpdateCodeRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateCodeRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateCodeRepositoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3160, "before": "public static FormulaError forString(String code) throws IllegalArgumentException {FormulaError err = smap.get(code);if(err == null) throw new IllegalArgumentException(\"Unknown error code: \" + code);return err;}", "after": "public static FormulaError ForString(String code){if (smap.ContainsKey(code))return smap[code];throw new ArgumentException(\"Unknown error code: \" + code);}" }, { "index": 3161, "before": "public UnmonitorInstancesResult unmonitorInstances(UnmonitorInstancesRequest request) {request = beforeClientExecution(request);return executeUnmonitorInstances(request);}", "after": "public virtual UnmonitorInstancesResponse UnmonitorInstances(UnmonitorInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UnmonitorInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = UnmonitorInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3162, "before": "public boolean isInteractive() {return false;}", "after": "public override bool IsInteractive(){return false;}" }, { "index": 3163, "before": "public void setColor(short byteIndex, byte red, byte green, byte blue){int i = byteIndex - FIRST_COLOR_INDEX;if (i < 0 || i >= STANDARD_PALETTE_SIZE){return;}while (_colors.size() <= i) {_colors.add(new PColor(0, 0, 0));}PColor custColor = new PColor(red, green, blue);_colors.set(i, custColor);}", "after": "public void SetColor(short byteIndex, byte red, byte green, byte blue){int i = byteIndex - FIRST_COLOR_INDEX;if (i < 0 || i >= STANDARD_PALETTE_SIZE){return;}while (field_2_colors.Count <= i){field_2_colors.Add(new PColor((byte)0, (byte)0, (byte)0));}PColor custColor = new PColor(red, green, blue);field_2_colors[i] = custColor;}" }, { "index": 3164, "before": "public boolean isUser() {return type == Type.USER;}", "after": "public virtual bool IsUser(){return type == JapaneseTokenizerType.USER;}" }, { "index": 3165, "before": "public DeleteMeetingResult deleteMeeting(DeleteMeetingRequest request) {request = beforeClientExecution(request);return executeDeleteMeeting(request);}", "after": "public virtual DeleteMeetingResponse DeleteMeeting(DeleteMeetingRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMeetingRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMeetingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3166, "before": "public void serializeTokens(LittleEndianOutput out) {out.write(_byteEncoding, 0, _encodedTokenLen);}", "after": "public void SerializeTokens(ILittleEndianOutput out1){out1.Write(_byteEncoding, 0, _encodedTokenLen);}" }, { "index": 3167, "before": "final public QueryNode Query(CharSequence field) throws ParseException {Vector clauses = null;QueryNode c, first=null;first = DisjQuery(field);label_1:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case NOT:case PLUS:case MINUS:case LPAREN:case QUOTED:case TERM:case REGEXPTERM:case RANGEIN_START:case RANGEEX_START:case NUMBER:;break;default:jj_la1[2] = jj_gen;break label_1;}c = DisjQuery(field);if (clauses == null) {clauses = new Vector();clauses.addElement(first);}clauses.addElement(c);}if (clauses != null) {{if (true) return new BooleanQueryNode(clauses);}} else {if (first instanceof ModifierQueryNode) {ModifierQueryNode m = (ModifierQueryNode) first;if (m.getModifier() == ModifierQueryNode.Modifier.MOD_NOT) {{if (true) return new BooleanQueryNode(Arrays. asList(m));}}}{if (true) return first;}}throw new Error(\"Missing return statement in function\");}", "after": "public IQueryNode Query(string field){List clauses = null;IQueryNode c, first = null;first = DisjQuery(field);while (true){switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.NOT:case RegexpToken.PLUS:case RegexpToken.MINUS:case RegexpToken.LPAREN:case RegexpToken.QUOTED:case RegexpToken.TERM:case RegexpToken.REGEXPTERM:case RegexpToken.RANGEIN_START:case RegexpToken.RANGEEX_START:case RegexpToken.NUMBER:;break;default:jj_la1[4] = jj_gen;goto label_1_break;}c = DisjQuery(field);if (clauses == null){clauses = new List();clauses.Add(first);}clauses.Add(c);}label_1_break:if (clauses != null){{ if (true) return new BooleanQueryNode(clauses); }}else{{ if (true) return first; }}throw new Exception(\"Missing return statement in function\");}" }, { "index": 3168, "before": "public DBInstance rebootDBInstance(RebootDBInstanceRequest request) {request = beforeClientExecution(request);return executeRebootDBInstance(request);}", "after": "public virtual RebootDBInstanceResponse RebootDBInstance(RebootDBInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebootDBInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = RebootDBInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3169, "before": "public SortedSet tailSet(E start) {return tailSet(start, true);}", "after": "public virtual java.util.SortedSet tailSet(E start){return tailSet(start, true);}" }, { "index": 3170, "before": "public static boolean equals(byte[] array1, byte[] array2, int length) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length < length || array2.length < length) {return false;}for (int i = 0; i < length; i++) {if (array1[i] != array2[i]) {return false;}}return true;}", "after": "public static bool equals(byte[] array1, byte[] array2, int length){if (array1 == array2){return true;}if (array1 == null || array2 == null || array1.Length < length || array2.Length (request, options);}" }, { "index": 3173, "before": "static final public boolean wasEscaped(CharSequence text, int index) {if (text instanceof UnescapedCharSequence)return ((UnescapedCharSequence)text).wasEscaped[index];else return false;}", "after": "public static bool WasEscaped(ICharSequence text, int index){if (text is UnescapedCharSequence)return ((UnescapedCharSequence)text).wasEscaped[index];else return false;}" }, { "index": 3174, "before": "public void setCmd(Character way, int cmd) {Cell c = at(way);if (c == null) {c = new Cell();c.cmd = cmd;cells.put(way, c);} else {c.cmd = cmd;}c.cnt = (cmd >= 0) ? 1 : 0;}", "after": "public void SetCmd(char way, int cmd){Cell c = At(way);if (c == null){c = new Cell();c.cmd = cmd;cells[way] = c;}else{c.cmd = cmd;}c.cnt = (cmd >= 0) ? 1 : 0;}" }, { "index": 3175, "before": "public ValueRangeRecord(RecordInputStream in) {field_1_minimumAxisValue = in.readDouble();field_2_maximumAxisValue = in.readDouble();field_3_majorIncrement = in.readDouble();field_4_minorIncrement = in.readDouble();field_5_categoryAxisCross = in.readDouble();field_6_options = in.readShort();}", "after": "public ValueRangeRecord(RecordInputStream in1){field_1_minimumAxisValue = in1.ReadDouble();field_2_maximumAxisValue = in1.ReadDouble();field_3_majorIncrement = in1.ReadDouble();field_4_minorIncrement = in1.ReadDouble();field_5_categoryAxisCross = in1.ReadDouble();field_6_options = in1.ReadShort();}" }, { "index": 3176, "before": "public void addFiles(Collection files) {checkFileNames(files);for (String f : files) {setFiles.add(namedForThisSegment(f));}}", "after": "public void AddFiles(ICollection files){CheckFileNames(files);setFiles.UnionWith(files);}" }, { "index": 3177, "before": "public CreateClientVpnEndpointResult createClientVpnEndpoint(CreateClientVpnEndpointRequest request) {request = beforeClientExecution(request);return executeCreateClientVpnEndpoint(request);}", "after": "public virtual CreateClientVpnEndpointResponse CreateClientVpnEndpoint(CreateClientVpnEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateClientVpnEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateClientVpnEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3178, "before": "public static IntBuffer allocate(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}return new ReadWriteIntArrayBuffer(capacity);}", "after": "public static java.nio.IntBuffer allocate(int capacity_1){if (capacity_1 < 0){throw new System.ArgumentException();}return new java.nio.ReadWriteIntArrayBuffer(capacity_1);}" }, { "index": 3179, "before": "public File getFile() {return attributes.getFile();}", "after": "public virtual FilePath GetFile(){return file;}" }, { "index": 3180, "before": "public static CFRecordsAggregate createCFAggregate(RecordStream rs) {Record rec = rs.getNext();if (rec.getSid() != CFHeaderRecord.sid &&rec.getSid() != CFHeader12Record.sid) {throw new IllegalStateException(\"next record sid was \" + rec.getSid()+ \" instead of \" + CFHeaderRecord.sid + \" or \" +CFHeader12Record.sid + \" as expected\");}CFHeaderBase header = (CFHeaderBase)rec;int nRules = header.getNumberOfConditionalFormats();CFRuleBase[] rules = new CFRuleBase[nRules];for (int i = 0; i < rules.length; i++) {rules[i] = (CFRuleBase) rs.getNext();}return new CFRecordsAggregate(header, rules);}", "after": "public static CFRecordsAggregate CreateCFAggregate(RecordStream rs){Record rec = rs.GetNext();if (rec.Sid != CFHeaderRecord.sid){throw new InvalidOperationException(\"next record sid was \" + rec.Sid+ \" instead of \" + CFHeaderRecord.sid + \" as expected\");}CFHeaderRecord header = (CFHeaderRecord)rec;int nRules = header.NumberOfConditionalFormats;CFRuleRecord[] rules = new CFRuleRecord[nRules];for (int i = 0; i < rules.Length; i++){rules[i] = (CFRuleRecord)rs.GetNext();}return new CFRecordsAggregate(header, rules);}" }, { "index": 3181, "before": "public void save() throws IOException {final byte[] out;final String text = toText();if (utf8Bom) {final ByteArrayOutputStream bos = new ByteArrayOutputStream();bos.write(0xEF);bos.write(0xBB);bos.write(0xBF);bos.write(text.getBytes(UTF_8));out = bos.toByteArray();} else {out = Constants.encode(text);}final LockFile lf = new LockFile(getFile());if (!lf.lock())throw new LockFailedException(getFile());try {lf.setNeedSnapshot(true);lf.write(out);if (!lf.commit())throw new IOException(MessageFormat.format(JGitText.get().cannotCommitWriteTo, getFile()));} finally {lf.unlock();}snapshot = lf.getCommitSnapshot();hash = hash(out);fireConfigChangedEvent();}", "after": "public override void Save(){byte[] @out;string text = ToText();if (utf8Bom){ByteArrayOutputStream bos = new ByteArrayOutputStream();bos.Write(unchecked((int)(0xEF)));bos.Write(unchecked((int)(0xBB)));bos.Write(unchecked((int)(0xBF)));bos.Write(Sharpen.Runtime.GetBytesForString(text, RawParseUtils.UTF8_CHARSET.Name()));@out = bos.ToByteArray();}else{@out = Constants.Encode(text);}LockFile lf = new LockFile(GetFile(), fs);if (!lf.Lock()){throw new LockFailedException(GetFile());}try{lf.SetNeedSnapshot(true);lf.Write(@out);if (!lf.Commit()){throw new IOException(MessageFormat.Format(JGitText.Get().cannotCommitWriteTo, GetFile()));}}finally{lf.Unlock();}snapshot = lf.GetCommitSnapshot();hash = Hash(@out);FireConfigChangedEvent();}" }, { "index": 3182, "before": "public DeleteTopicRequest(String topicArn) {setTopicArn(topicArn);}", "after": "public DeleteTopicRequest(string topicArn){_topicArn = topicArn;}" }, { "index": 3183, "before": "public static boolean contains(CellRangeAddress crA, CellRangeAddress crB){return le(crA.getFirstRow(), crB.getFirstRow()) &&ge(crA.getLastRow(), crB.getLastRow()) &&le(crA.getFirstColumn(), crB.getFirstColumn()) &&ge(crA.getLastColumn(), crB.getLastColumn());}", "after": "public static bool Contains(CellRangeAddress crA, CellRangeAddress crB){int firstRow = crB.FirstRow;int lastRow = crB.LastRow;int firstCol = crB.FirstColumn;int lastCol = crB.LastColumn;return le(crA.FirstRow, firstRow) && ge(crA.LastRow, lastRow)&& le(crA.FirstColumn, firstCol) && ge(crA.LastColumn, lastCol);}" }, { "index": 3184, "before": "@Override public void clear() {if (size != 0) {Arrays.fill(array, 0, size, null);size = 0;modCount++;}}", "after": "public override void clear(){if (_size != 0){java.util.Arrays.fill(array, 0, _size, null);_size = 0;modCount++;}}" }, { "index": 3185, "before": "public String toString(){return this.getClass().toString();}", "after": "public override String ToString(){return this.GetType().ToString();}" }, { "index": 3186, "before": "public CherryPickCommand include(Ref commit) {checkCallable();commits.add(commit);return this;}", "after": "public virtual NGit.Api.CherryPickCommand Include(Ref commit){CheckCallable();commits.AddItem(commit);return this;}" }, { "index": 3187, "before": "public String toString() {return \"NO_MERGES\"; }", "after": "public override string ToString(){return \"NO_MERGES\";}" }, { "index": 3188, "before": "public FileMode getOldMode(int nthParent) {return oldModes[nthParent];}", "after": "public virtual FileMode GetOldMode(int nthParent){return oldModes[nthParent];}" }, { "index": 3189, "before": "public void reset(Reader reader) {this.reader = reader;nextPos = 0;nextWrite = 0;count = 0;end = false;}", "after": "public void Reset(TextReader reader){this.reader = reader;nextPos = 0;nextWrite = 0;count = 0;end = false;}" }, { "index": 3190, "before": "public void serialize(LittleEndianOutput out) {String formatString = getFormatString();out.writeShort(getIndexCode());out.writeShort(formatString.length());out.writeByte(field_3_hasMultibyte ? 0x01 : 0x00);if ( field_3_hasMultibyte ) {StringUtil.putUnicodeLE( formatString, out);} else {StringUtil.putCompressedUnicode( formatString, out);}}", "after": "public override void Serialize(ILittleEndianOutput out1){String formatString = FormatString;out1.WriteShort(IndexCode);out1.WriteShort(formatString.Length);out1.WriteByte(field_3_hasMultibyte ? 0x01 : 0x00);if (field_3_hasMultibyte){StringUtil.PutUnicodeLE(formatString, out1);}else{StringUtil.PutCompressedUnicode(formatString, out1);}}" }, { "index": 3191, "before": "public DescribePendingMaintenanceActionsResult describePendingMaintenanceActions(DescribePendingMaintenanceActionsRequest request) {request = beforeClientExecution(request);return executeDescribePendingMaintenanceActions(request);}", "after": "public virtual DescribePendingMaintenanceActionsResponse DescribePendingMaintenanceActions(DescribePendingMaintenanceActionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePendingMaintenanceActionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePendingMaintenanceActionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3192, "before": "public DescribeServicesResult describeServices(DescribeServicesRequest request) {request = beforeClientExecution(request);return executeDescribeServices(request);}", "after": "public virtual DescribeServicesResponse DescribeServices(DescribeServicesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeServicesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeServicesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3193, "before": "public int getCachedResultType() {if (specialCachedValue == null) {return CellType.NUMERIC.getCode();}return specialCachedValue.getValueType();}", "after": "public CellType GetCachedResultType(){if (specialCachedValue == null){return CellType.Numeric;}return specialCachedValue.GetValueType();}" }, { "index": 3194, "before": "public boolean stem() {int v_1 = cursor;r_mark_regions();cursor = v_1;limit_backward = cursor;cursor = limit;int v_2 = limit - cursor;r_main_suffix();cursor = limit - v_2;int v_3 = limit - cursor;r_consonant_pair();cursor = limit - v_3;int v_4 = limit - cursor;r_other_suffix();cursor = limit - v_4;int v_5 = limit - cursor;r_undouble();cursor = limit - v_5;cursor = limit_backward;return true;}", "after": "public override bool Stem(){int v_1;int v_2;int v_3;int v_4;int v_5;v_1 = m_cursor;do{if (!r_mark_regions()){goto lab0;}} while (false);lab0:m_cursor = v_1;m_limit_backward = m_cursor; m_cursor = m_limit;v_2 = m_limit - m_cursor;do{if (!r_main_suffix()){goto lab1;}} while (false);lab1:m_cursor = m_limit - v_2;v_3 = m_limit - m_cursor;do{if (!r_consonant_pair()){goto lab2;}} while (false);lab2:m_cursor = m_limit - v_3;v_4 = m_limit - m_cursor;do{if (!r_other_suffix()){goto lab3;}} while (false);lab3:m_cursor = m_limit - v_4;v_5 = m_limit - m_cursor;do{if (!r_undouble()){goto lab4;}} while (false);lab4:m_cursor = m_limit - v_5;m_cursor = m_limit_backward; return true;}" }, { "index": 3195, "before": "public void setCachedResultErrorCode(int errorCode) {specialCachedValue = FormulaSpecialCachedValue.createCachedErrorCode(errorCode);}", "after": "public void SetCachedResultErrorCode(int errorCode){specialCachedValue = SpecialCachedValue.CreateCachedErrorCode(errorCode);}" }, { "index": 3196, "before": "public void setMinShingleSize(int minShingleSize) {if (minShingleSize < 2) {throw new IllegalArgumentException(\"Min shingle size must be >= 2\");}if (minShingleSize > maxShingleSize) {throw new IllegalArgumentException(\"Min shingle size must be <= max shingle size\");}this.minShingleSize = minShingleSize;gramSize = new CircularSequence();}", "after": "public void SetMinShingleSize(int minShingleSize){if (minShingleSize < 2){throw new System.ArgumentException(\"Min shingle size must be >= 2\");}if (minShingleSize > maxShingleSize){throw new System.ArgumentException(\"Min shingle size must be <= max shingle size\");}this.minShingleSize = minShingleSize;gramSize = new CircularSequence(this);}" }, { "index": 3197, "before": "public void write(int value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.write(value);}", "after": "public override void write(int value){throw new System.NotImplementedException();}" }, { "index": 3198, "before": "public int serializeSimplePart(byte[] data, int pos) {LittleEndian.putShort(data, pos, getId());LittleEndian.putInt(data, pos + 2, complexData.length);return 6;}", "after": "public override int SerializeSimplePart(byte[] data, int pos){LittleEndian.PutShort(data, pos, Id);LittleEndian.PutInt(data, pos + 2, _complexData.Length);return 6;}" }, { "index": 3199, "before": "public InputMismatchException(Parser recognizer) {super(recognizer, recognizer.getInputStream(), recognizer._ctx);this.setOffendingToken(recognizer.getCurrentToken());}", "after": "public InputMismatchException(Parser recognizer): base(recognizer, ((ITokenStream)recognizer.InputStream), recognizer.RuleContext){this.OffendingToken = recognizer.CurrentToken;}" }, { "index": 3200, "before": "public long ramBytesUsed() {long mem = RamUsageEstimator.shallowSizeOf(this) + RamUsageEstimator.sizeOf(offsets);if (offsets != ordinals) {mem += RamUsageEstimator.sizeOf(ordinals);}return mem;}", "after": "public virtual long RamBytesUsed(){#if !FEATURE_CONDITIONALWEAKTABLE_ENUMERATORlock (this)#endifreturn ordsCache.Sum(pair => pair.Value.RamBytesUsed());}" }, { "index": 3201, "before": "public Trec1MQReader(String name) {super();this.name = name;}", "after": "public Trec1MQReader(string name): base(){this.name = name;}" }, { "index": 3202, "before": "public String toString() {return \"MergeInfo [totalMaxDoc=\" + totalMaxDoc+ \", estimatedMergeBytes=\" + estimatedMergeBytes + \", isExternal=\"+ isExternal + \", mergeMaxNumSegments=\" + mergeMaxNumSegments + \"]\";}", "after": "public override string ToString(){return \"MergeInfo [totalDocCount=\" + TotalDocCount+ \", estimatedMergeBytes=\" + EstimatedMergeBytes + \", isExternal=\"+ IsExternal + \", mergeMaxNumSegments=\" + MergeMaxNumSegments + \"]\";}" }, { "index": 3203, "before": "public GetVaultNotificationsRequest(String vaultName) {setVaultName(vaultName);}", "after": "public GetVaultNotificationsRequest(string vaultName){_vaultName = vaultName;}" }, { "index": 3204, "before": "public DisassociatePhoneNumbersFromVoiceConnectorGroupResult disassociatePhoneNumbersFromVoiceConnectorGroup(DisassociatePhoneNumbersFromVoiceConnectorGroupRequest request) {request = beforeClientExecution(request);return executeDisassociatePhoneNumbersFromVoiceConnectorGroup(request);}", "after": "public virtual DisassociatePhoneNumbersFromVoiceConnectorGroupResponse DisassociatePhoneNumbersFromVoiceConnectorGroup(DisassociatePhoneNumbersFromVoiceConnectorGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociatePhoneNumbersFromVoiceConnectorGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociatePhoneNumbersFromVoiceConnectorGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3205, "before": "public int size() {return ConcurrentHashMap.this.size();}", "after": "public override int size(){return this._enclosing.size();}" }, { "index": 3206, "before": "public void addPattern(String pattern, String ivalue) {int k = ivalues.find(ivalue);if (k <= 0) {k = packValues(ivalue);ivalues.insert(ivalue, (char) k);}insert(pattern, (char) k);}", "after": "public virtual void AddPattern(string pattern, string ivalue){int k = ivalues.Find(ivalue);if (k <= 0){k = PackValues(ivalue);ivalues.Insert(ivalue, (char)k);}Insert(pattern, (char)k);}" }, { "index": 3207, "before": "public boolean isSheetHidden(int sheetnum) {return getBoundSheetRec(sheetnum).isHidden();}", "after": "public bool IsSheetHidden(int sheetnum){return GetBoundSheetRec(sheetnum).IsHidden;}" }, { "index": 3208, "before": "public AddUserToGroupRequest(String groupName, String userName) {setGroupName(groupName);setUserName(userName);}", "after": "public AddUserToGroupRequest(string groupName, string userName){_groupName = groupName;_userName = userName;}" }, { "index": 3209, "before": "public static double sumsq(double[] values) {double sumsq = 0;for (double value : values) {sumsq += value * value;}return sumsq;}", "after": "public static double Sumsq(double[] values){double sumsq = 0;for (int i = 0, iSize = values.Length; i < iSize; i++){sumsq += values[i] * values[i];}return sumsq;}" }, { "index": 3210, "before": "public DeleteHostedZoneRequest(String id) {setId(id);}", "after": "public DeleteHostedZoneRequest(string id){_id = id;}" }, { "index": 3211, "before": "public UserSViewEnd(RecordInputStream in) {_rawData = in.readRemainder();}", "after": "public UserSViewEnd(RecordInputStream in1){_rawData = in1.ReadRemainder();}" }, { "index": 3212, "before": "public BatchPutScheduledUpdateGroupActionResult batchPutScheduledUpdateGroupAction(BatchPutScheduledUpdateGroupActionRequest request) {request = beforeClientExecution(request);return executeBatchPutScheduledUpdateGroupAction(request);}", "after": "public virtual BatchPutScheduledUpdateGroupActionResponse BatchPutScheduledUpdateGroupAction(BatchPutScheduledUpdateGroupActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchPutScheduledUpdateGroupActionRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchPutScheduledUpdateGroupActionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3213, "before": "public static EvaluationException numberError() {return new EvaluationException(ErrorEval.NUM_ERROR);}", "after": "public static EvaluationException NumberError(){return new EvaluationException(ErrorEval.NUM_ERROR);}" }, { "index": 3214, "before": "public String displayName() {return this.displayName;}", "after": "public virtual ISubscriptionOperations Subscription { get; private set; }" }, { "index": 3215, "before": "public final boolean equals(Object o) {if (o instanceof AnyObjectId) {return equals((AnyObjectId) o);}return false;}", "after": "public sealed override bool Equals(object o){if (o is AnyObjectId){return Equals((AnyObjectId)o);}else{return false;}}" }, { "index": 3216, "before": "public DescribeSpotFleetRequestHistoryResult describeSpotFleetRequestHistory(DescribeSpotFleetRequestHistoryRequest request) {request = beforeClientExecution(request);return executeDescribeSpotFleetRequestHistory(request);}", "after": "public virtual DescribeSpotFleetRequestHistoryResponse DescribeSpotFleetRequestHistory(DescribeSpotFleetRequestHistoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSpotFleetRequestHistoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSpotFleetRequestHistoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3217, "before": "public InventoryPrefixPredicate(String prefix) {this.prefix = prefix;}", "after": "public InventoryPrefixPredicate(string prefix){this.prefix = prefix;}" }, { "index": 3218, "before": "public static synchronized MergeStrategy[] get() {final MergeStrategy[] r = new MergeStrategy[STRATEGIES.size()];STRATEGIES.values().toArray(r);return r;}", "after": "public static MergeStrategy[] Get(){lock (typeof(MergeStrategy)){MergeStrategy[] r = new MergeStrategy[STRATEGIES.Count];Sharpen.Collections.ToArray(STRATEGIES.Values, r);return r;}}" }, { "index": 3219, "before": "public DeleteVoiceConnectorTerminationCredentialsResult deleteVoiceConnectorTerminationCredentials(DeleteVoiceConnectorTerminationCredentialsRequest request) {request = beforeClientExecution(request);return executeDeleteVoiceConnectorTerminationCredentials(request);}", "after": "public virtual DeleteVoiceConnectorTerminationCredentialsResponse DeleteVoiceConnectorTerminationCredentials(DeleteVoiceConnectorTerminationCredentialsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVoiceConnectorTerminationCredentialsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVoiceConnectorTerminationCredentialsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3220, "before": "public int mark() {if (numMarkers == 0) {lastCharBufferStart = lastChar;}int mark = -numMarkers - 1;numMarkers++;return mark;}", "after": "public virtual int Mark(){if (numMarkers == 0){lastCharBufferStart = lastChar;}int mark = -numMarkers - 1;numMarkers++;return mark;}" }, { "index": 3221, "before": "public ScoreCachingWrappingScorer(Scorable scorer) {this.in = scorer;}", "after": "public ScoreCachingWrappingScorer(Scorer scorer): base(scorer.m_weight){this.scorer = scorer;}" }, { "index": 3222, "before": "public void skip(long count) throws IOException {assert count >= 0;if (ord + count > valueCount || ord + count < 0) {throw new EOFException();}final int skipBuffer = (int) Math.min(count, blockSize - off);off += skipBuffer;ord += skipBuffer;count -= skipBuffer;if (count == 0L) {return;}assert off == blockSize;while (count >= blockSize) {final int token = in.readByte() & 0xFF;final int bitsPerValue = token >>> BPV_SHIFT;if (bitsPerValue > 64) {throw new IOException(\"Corrupted\");}if ((token & MIN_VALUE_EQUALS_0) == 0) {readVLong(in);}final long blockBytes = PackedInts.Format.PACKED.byteCount(packedIntsVersion, blockSize, bitsPerValue);skipBytes(blockBytes);ord += blockSize;count -= blockSize;}if (count == 0L) {return;}assert count < blockSize;refill();ord += count;off += count;}", "after": "public void Skip(long count){Debug.Assert(count >= 0);if (ord + count > valueCount || ord + count < 0){throw new System.IO.EndOfStreamException();}int skipBuffer = (int)Math.Min(count, blockSize - off);off += skipBuffer;ord += skipBuffer;count -= skipBuffer;if (count == 0L){return;}Debug.Assert(off == blockSize);while (count >= blockSize){int token = @in.ReadByte() & 0xFF;int bitsPerValue = (int)((uint)token >> AbstractBlockPackedWriter.BPV_SHIFT);if (bitsPerValue > 64){throw new System.IO.IOException(\"Corrupted\");}if ((token & AbstractBlockPackedWriter.MIN_VALUE_EQUALS_0) == 0){ReadVInt64(@in);}long blockBytes = PackedInt32s.Format.PACKED.ByteCount(packedIntsVersion, blockSize, bitsPerValue);SkipBytes(blockBytes);ord += blockSize;count -= blockSize;}if (count == 0L){return;}Debug.Assert(count < blockSize);Refill();ord += count;off += (int)count;}" }, { "index": 3223, "before": "public GetDownloadUrlsRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"GetDownloadUrls\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetDownloadUrlsRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"GetDownloadUrls\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 3224, "before": "public ListSecurityProfilesResult listSecurityProfiles(ListSecurityProfilesRequest request) {request = beforeClientExecution(request);return executeListSecurityProfiles(request);}", "after": "public virtual ListSecurityProfilesResponse ListSecurityProfiles(ListSecurityProfilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSecurityProfilesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSecurityProfilesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3225, "before": "@Override public boolean contains(Object o) {return containsKey(o);}", "after": "public override bool contains(object o){return this._enclosing.containsKey(o);}" }, { "index": 3226, "before": "public TerminalNode getToken(int ttype, int i) {if ( children==null || i < 0 || i >= children.size() ) {return null;}int j = -1; for (ParseTree o : children) {if ( o instanceof TerminalNode ) {TerminalNode tnode = (TerminalNode)o;Token symbol = tnode.getSymbol();if ( symbol.getType()==ttype ) {j++;if ( j == i ) {return tnode;}}}}return null;}", "after": "public virtual ITerminalNode GetToken(int ttype, int i){if (children == null || i < 0 || i >= children.Count){return null;}int j = -1;foreach (IParseTree o in children){if (o is ITerminalNode){ITerminalNode tnode = (ITerminalNode)o;IToken symbol = tnode.Symbol;if (symbol.Type == ttype){j++;if (j == i){return tnode;}}}}return null;}" }, { "index": 3227, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(_offset);out.writeShort(_fontIndex);}", "after": "public void Serialize(ILittleEndianOutput out1){out1.WriteShort(m_offset);out1.WriteShort(m_fontIndex);}" }, { "index": 3228, "before": "public void incrementOpen() {useCnt.incrementAndGet();}", "after": "public virtual void IncrementOpen(){useCnt.IncrementAndGet();}" }, { "index": 3229, "before": "public OneMerge(List segments) {if (0 == segments.size()) {throw new RuntimeException(\"segments must include at least one segment\");}this.segments = new ArrayList<>(segments);int count = 0;for(SegmentCommitInfo info : segments) {count += info.info.maxDoc();}totalMaxDoc = count;mergeProgress = new OneMergeProgress();}", "after": "public OneMerge(IList segments){if (0 == segments.Count){throw new Exception(\"segments must include at least one segment\");}this.Segments = new List(segments);int count = 0;foreach (SegmentCommitInfo info in segments){count += info.Info.DocCount;}TotalDocCount = count;}" }, { "index": 3230, "before": "public final byte get() {if (position == limit) {throw new BufferUnderflowException();}return backingArray[offset + position++];}", "after": "public sealed override byte get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return backingArray[offset + _position++];}" }, { "index": 3231, "before": "public String toString() {StringBuilder sb = new StringBuilder(64);sb.append(getClass().getName());sb.append(\" [\");if (_isQuoted) {sb.append(\"'\").append(_name).append(\"'\");} else {sb.append(_name);}sb.append(\"]\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(this.GetType().Name);sb.Append(\" [\");if (_isQuoted){sb.Append(\"'\").Append(_name).Append(\"'\");}else{sb.Append(_name);}sb.Append(\"]\");return sb.ToString();}" }, { "index": 3232, "before": "public AssociateWebsiteCertificateAuthorityResult associateWebsiteCertificateAuthority(AssociateWebsiteCertificateAuthorityRequest request) {request = beforeClientExecution(request);return executeAssociateWebsiteCertificateAuthority(request);}", "after": "public virtual AssociateWebsiteCertificateAuthorityResponse AssociateWebsiteCertificateAuthority(AssociateWebsiteCertificateAuthorityRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateWebsiteCertificateAuthorityRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateWebsiteCertificateAuthorityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3233, "before": "public RevFilter clone() {return new PatternSearch(pattern());}", "after": "public override RevFilter Clone(){return new AuthorRevFilter.PatternSearch(Pattern());}" }, { "index": 3234, "before": "public PredictionContext getParent(int index) {return null;}", "after": "public override PredictionContext GetParent(int index){return null;}" }, { "index": 3235, "before": "public AttachVpnGatewayRequest(String vpnGatewayId, String vpcId) {setVpnGatewayId(vpnGatewayId);setVpcId(vpcId);}", "after": "public AttachVpnGatewayRequest(string vpnGatewayId, string vpcId){_vpnGatewayId = vpnGatewayId;_vpcId = vpcId;}" }, { "index": 3236, "before": "public void onUpdate(DocumentsWriterFlushControl control, ThreadState state) {onInsert(control, state);onDelete(control, state);}", "after": "public virtual void OnUpdate(DocumentsWriterFlushControl control, ThreadState state){OnInsert(control, state);OnDelete(control, state);}" }, { "index": 3237, "before": "public UpdateComponentResult updateComponent(UpdateComponentRequest request) {request = beforeClientExecution(request);return executeUpdateComponent(request);}", "after": "public virtual UpdateComponentResponse UpdateComponent(UpdateComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3238, "before": "public DeleteDashboardResult deleteDashboard(DeleteDashboardRequest request) {request = beforeClientExecution(request);return executeDeleteDashboard(request);}", "after": "public virtual DeleteDashboardResponse DeleteDashboard(DeleteDashboardRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDashboardRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDashboardResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3239, "before": "public byte[] getByteBlock() {if (freeBlocks == 0) {bytesUsed.addAndGet(blockSize);return new byte[blockSize];}final byte[] b = freeByteBlocks[--freeBlocks];freeByteBlocks[freeBlocks] = null;return b;}", "after": "public override byte[] GetByteBlock(){if (freeBlocks == 0){bytesUsed.AddAndGet(m_blockSize);return new byte[m_blockSize];}var b = freeByteBlocks[--freeBlocks];freeByteBlocks[freeBlocks] = null;return b;}" }, { "index": 3240, "before": "public DisableLoggingResult disableLogging(DisableLoggingRequest request) {request = beforeClientExecution(request);return executeDisableLogging(request);}", "after": "public virtual DisableLoggingResponse DisableLogging(DisableLoggingRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableLoggingRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableLoggingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3241, "before": "public TokenStream create(TokenStream input) {return new CJKWidthFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new CJKWidthFilter(input);}" }, { "index": 3242, "before": "public void reset(int startOffset, int endOffset) {bufferUpto = startOffset / INT_BLOCK_SIZE;bufferOffset = bufferUpto * INT_BLOCK_SIZE;this.end = endOffset;upto = startOffset;level = 1;buffer = pool.buffers[bufferUpto];upto = startOffset & INT_BLOCK_MASK;final int firstSize = IntBlockPool.LEVEL_SIZE_ARRAY[0];if (startOffset+firstSize >= endOffset) {limit = endOffset & INT_BLOCK_MASK;} else {limit = upto+firstSize-1;}}", "after": "public void Reset(int startOffset, int endOffset){bufferUpto = startOffset / INT32_BLOCK_SIZE;bufferOffset = bufferUpto * INT32_BLOCK_SIZE;this.end = endOffset;upto = startOffset;level = 1;buffer = pool.buffers[bufferUpto];upto = startOffset & INT32_BLOCK_MASK;int firstSize = Int32BlockPool.LEVEL_SIZE_ARRAY[0];if (startOffset + firstSize >= endOffset){limit = endOffset & INT32_BLOCK_MASK;}else{limit = upto + firstSize - 1;}}" }, { "index": 3243, "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) + docIDs.RamBytesUsed() + offsets.RamBytesUsed();}" }, { "index": 3244, "before": "public PutItemOutcome putItem(Item item) {return putItemDelegate.putItem(item);}", "after": "public void PutItem(Document doc){PutItem(doc, null);}" }, { "index": 3245, "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, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long byte0 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (long)((ulong)byte0 >> 2);long byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte0 & 3) << 4) | ((long)((ulong)byte1 >> 4));long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 15) << 2) | ((long)((ulong)byte2 >> 6));values[valuesOffset++] = byte2 & 63;}}" }, { "index": 3246, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[DELTA]\\n\");buffer.append(\" .maxchange = \").append(getMaxChange()).append(\"\\n\");buffer.append(\"[/DELTA]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[DELTA]\\n\");buffer.Append(\" .maxChange = \").Append(MaxChange).Append(\"\\n\");buffer.Append(\"[/DELTA]\\n\");return buffer.ToString();}" }, { "index": 3247, "before": "public StartFaceDetectionResult startFaceDetection(StartFaceDetectionRequest request) {request = beforeClientExecution(request);return executeStartFaceDetection(request);}", "after": "public virtual StartFaceDetectionResponse StartFaceDetection(StartFaceDetectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartFaceDetectionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartFaceDetectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3248, "before": "public DataValidation createValidation(DataValidationConstraint constraint, CellRangeAddressList cellRangeAddressList) {return new HSSFDataValidation(cellRangeAddressList, constraint);}", "after": "public IDataValidation CreateValidation(IDataValidationConstraint constraint, CellRangeAddressList cellRangeAddressList){return new HSSFDataValidation(cellRangeAddressList, constraint);}" }, { "index": 3249, "before": "public DocumentStoredFieldVisitor(Set fieldsToAdd) {this.fieldsToAdd = fieldsToAdd;}", "after": "public DocumentStoredFieldVisitor(ISet fieldsToAdd){this.fieldsToAdd = fieldsToAdd;}" }, { "index": 3250, "before": "public TokenStream create(TokenStream tokenStream) {return new HunspellStemFilter(tokenStream, dictionary, true, longestOnly);}", "after": "public override TokenStream Create(TokenStream tokenStream){return new HunspellStemFilter(tokenStream, dictionary, true, longestOnly);}" }, { "index": 3251, "before": "public Repository getRepository() {return repository;}", "after": "public virtual Repository GetRepository(){return repository;}" }, { "index": 3252, "before": "public DeleteMLModelResult deleteMLModel(DeleteMLModelRequest request) {request = beforeClientExecution(request);return executeDeleteMLModel(request);}", "after": "public virtual DeleteMLModelResponse DeleteMLModel(DeleteMLModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMLModelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMLModelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3253, "before": "public GetAccountLimitResult getAccountLimit(GetAccountLimitRequest request) {request = beforeClientExecution(request);return executeGetAccountLimit(request);}", "after": "public virtual GetAccountLimitResponse GetAccountLimit(GetAccountLimitRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAccountLimitRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAccountLimitResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3254, "before": "public final char[] GetSuffix(int len) {char[] value = new char[len];System.arraycopy(buffer, bufferPosition - len, value, 0, len);return value;}", "after": "public char[] GetSuffix(int len){char[] value_Renamed = new char[len];Array.Copy(buffer, bufferPosition - len, value_Renamed, 0, len);return value_Renamed;}" }, { "index": 3255, "before": "public ModifyClientVpnEndpointResult modifyClientVpnEndpoint(ModifyClientVpnEndpointRequest request) {request = beforeClientExecution(request);return executeModifyClientVpnEndpoint(request);}", "after": "public virtual ModifyClientVpnEndpointResponse ModifyClientVpnEndpoint(ModifyClientVpnEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClientVpnEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClientVpnEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3256, "before": "public final boolean containsRow(int row) {return _firstRow <= row && _lastRow >= row;}", "after": "public bool ContainsRow(int row){return (_firstRow <= row) && (_lastRow >= row);}" }, { "index": 3257, "before": "public int available() {return remainingBytes();}", "after": "public override int Available(){return delegate1.Available();}" }, { "index": 3258, "before": "public RequestEnvironmentInfoRequest(EnvironmentInfoType infoType) {setInfoType(infoType.toString());}", "after": "public RequestEnvironmentInfoRequest(EnvironmentInfoType infoType){_infoType = infoType;}" }, { "index": 3259, "before": "public void write(byte[] buf) throws IOException {write(buf, 0, buf.length);}", "after": "public override void Write(int b){try{BeginWrite();dst.Write(b);}catch (ThreadInterruptedException){throw WriteTimedOut();}finally{EndWrite();}}" }, { "index": 3260, "before": "public ResetDBClusterParameterGroupResult resetDBClusterParameterGroup(ResetDBClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeResetDBClusterParameterGroup(request);}", "after": "public virtual ResetDBClusterParameterGroupResponse ResetDBClusterParameterGroup(ResetDBClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetDBClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetDBClusterParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3261, "before": "public void unwriteProtectWorkbook() {this.workbook.unwriteProtectWorkbook();}", "after": "public void UnwriteProtectWorkbook(){this.workbook.UnwriteProtectWorkbook();}" }, { "index": 3262, "before": "public ANTLRInputStream(String input) {this.data = input.toCharArray();this.n = input.length();}", "after": "public AntlrInputStream(string input){this.data = input.ToCharArray();this.n = input.Length;}" }, { "index": 3263, "before": "public ByteBuffer putShort(short value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putShort(short value){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 3264, "before": "public ReplaceIamInstanceProfileAssociationResult replaceIamInstanceProfileAssociation(ReplaceIamInstanceProfileAssociationRequest request) {request = beforeClientExecution(request);return executeReplaceIamInstanceProfileAssociation(request);}", "after": "public virtual ReplaceIamInstanceProfileAssociationResponse ReplaceIamInstanceProfileAssociation(ReplaceIamInstanceProfileAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReplaceIamInstanceProfileAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = ReplaceIamInstanceProfileAssociationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3265, "before": "public void add(String name, Expression expression) {map.put(name, expression);}", "after": "public void Add(string name, Expression expression){map[name] = expression;}" }, { "index": 3266, "before": "public Ref3DPtg(CellReference c, int externIdx) {super(c);setExternSheetIndex(externIdx);}", "after": "public Ref3DPtg(CellReference cr, int externIdx):base(cr){ExternSheetIndex = externIdx;}" }, { "index": 3267, "before": "public int readUShort() {byte[] buf = new byte[LittleEndianConsts.SHORT_SIZE];try {checkEOF(read(buf), LittleEndianConsts.SHORT_SIZE);} catch (IOException e) {throw new RuntimeException(e);}return LittleEndian.getUShort(buf);}", "after": "public int ReadUShort(){int ch1;int ch2;try{ch1 = in1.ReadByte();ch2 = in1.ReadByte();}catch (IOException e){throw new RuntimeException(e);}CheckEOF(ch1 | ch2);return (ch2 << 8) + (ch1 << 0);}" }, { "index": 3268, "before": "public int stem(char s[], int len) {len = removeCase(s, len);len = removePossessives(s, len);if (len > 0) {len = normalize(s, len);}return len;}", "after": "public virtual int Stem(char[] s, int len){len = RemoveCase(s, len);len = RemovePossessives(s, len);if (len > 0){len = Normalize(s, len);}return len;}" }, { "index": 3269, "before": "public static int getNearestSetSize(int maxNumberOfBits){int result=usableBitSetSizes[0];for (int i = 0; i < usableBitSetSizes.length; i++) {if(usableBitSetSizes[i]<=maxNumberOfBits){result=usableBitSetSizes[i];}}return result;}", "after": "public static int GetNearestSetSize(int maxNumberOfBits){var result = _usableBitSetSizes[0];foreach (var t in _usableBitSetSizes.Where(t => t <= maxNumberOfBits)){result = t;}return result;}" }, { "index": 3270, "before": "public String toString() {return \"AbbreviatedObjectId[\" + name() + \"]\"; }", "after": "public override string ToString(){return \"AbbreviatedObjectId[\" + Name + \"]\";}" }, { "index": 3271, "before": "public ListFacesRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"ListFaces\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public ListFacesRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"ListFaces\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 3272, "before": "public BytesRef(int capacity) {this.bytes = new byte[capacity];}", "after": "public BytesRef(int capacity){this.bytes = new byte[capacity];}" }, { "index": 3273, "before": "public DescribeFargateProfileResult describeFargateProfile(DescribeFargateProfileRequest request) {request = beforeClientExecution(request);return executeDescribeFargateProfile(request);}", "after": "public virtual DescribeFargateProfileResponse DescribeFargateProfile(DescribeFargateProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFargateProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFargateProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3274, "before": "public GetOpenIdTokenForDeveloperIdentityResult getOpenIdTokenForDeveloperIdentity(GetOpenIdTokenForDeveloperIdentityRequest request) {request = beforeClientExecution(request);return executeGetOpenIdTokenForDeveloperIdentity(request);}", "after": "public virtual GetOpenIdTokenForDeveloperIdentityResponse GetOpenIdTokenForDeveloperIdentity(GetOpenIdTokenForDeveloperIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOpenIdTokenForDeveloperIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOpenIdTokenForDeveloperIdentityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3275, "before": "public int countBytesWritten() {return _countBytesWritten;}", "after": "public int CountBytesWritten(){return _countBytesWritten;}" }, { "index": 3276, "before": "public boolean containsAll(final IntList c){boolean rval = true;if (this != c){for (int j = 0; rval && (j < c._limit); j++){if (!contains(c._array[ j ])){rval = false;}}}return rval;}", "after": "public bool ContainsAll(IntList c){bool rval = true;if (this != c){for (int j = 0; rval && (j < c._limit); j++){if (!Contains(c._array[j])){rval = false;}}}return rval;}" }, { "index": 3277, "before": "public void setTreeFilter(TreeFilter newFilter) {assertNotStarted();treeFilter = newFilter != null ? newFilter : TreeFilter.ALL;}", "after": "public virtual void SetTreeFilter(TreeFilter newFilter){AssertNotStarted();treeFilter = newFilter != null ? newFilter : TreeFilter.ALL;}" }, { "index": 3278, "before": "public DBInstance promoteReadReplica(PromoteReadReplicaRequest request) {request = beforeClientExecution(request);return executePromoteReadReplica(request);}", "after": "public virtual PromoteReadReplicaResponse PromoteReadReplica(PromoteReadReplicaRequest request){var options = new InvokeOptions();options.RequestMarshaller = PromoteReadReplicaRequestMarshaller.Instance;options.ResponseUnmarshaller = PromoteReadReplicaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3279, "before": "public final short getShort() {int newPosition = position + SizeOf.SHORT;if (newPosition > limit) {throw new BufferUnderflowException();}short result = Memory.peekShort(backingArray, offset + position, order);position = newPosition;return result;}", "after": "public sealed override short getShort(){int newPosition = _position + libcore.io.SizeOf.SHORT;if (newPosition > _limit){throw new java.nio.BufferUnderflowException();}short result = libcore.io.Memory.peekShort(backingArray, offset + _position, _order);_position = newPosition;return result;}" }, { "index": 3280, "before": "public AttachClassicLinkVpcResult attachClassicLinkVpc(AttachClassicLinkVpcRequest request) {request = beforeClientExecution(request);return executeAttachClassicLinkVpc(request);}", "after": "public virtual AttachClassicLinkVpcResponse AttachClassicLinkVpc(AttachClassicLinkVpcRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachClassicLinkVpcRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachClassicLinkVpcResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3281, "before": "public static T[] grow(T[] array, int minSize) {assert minSize >= 0 : \"size must be positive (got \" + minSize + \"): likely integer overflow?\";if (array.length < minSize) {final int newLength = oversize(minSize, RamUsageEstimator.NUM_BYTES_OBJECT_REF);return growExact(array, newLength);} elsereturn array;}", "after": "public static int[] Grow(int[] array, int minSize){Debug.Assert(minSize >= 0, \"size must be positive (got \" + minSize + \"): likely integer overflow?\");if (array.Length < minSize){int[] newArray = new int[Oversize(minSize, RamUsageEstimator.NUM_BYTES_INT32)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}" }, { "index": 3282, "before": "public ByteArrayDataOutput() {reset(BytesRef.EMPTY_BYTES);}", "after": "public ByteArrayDataOutput(){Reset(BytesRef.EMPTY_BYTES);}" }, { "index": 3283, "before": "public void balance() {int i = 0, n = length;String[] k = new String[n];char[] v = new char[n];Iterator iter = new Iterator();while (iter.hasMoreElements()) {v[i] = iter.getValue();k[i++] = iter.nextElement();}init();insertBalanced(k, v, 0, n);}", "after": "public virtual void Balance(){int i = 0, n = m_length;string[] k = new string[n];char[] v = new char[n];Iterator iter = new Iterator(this);while (iter.MoveNext()){v[i] = iter.Value;k[i++] = iter.Current;}Init();InsertBalanced(k, v, 0, n);}" }, { "index": 3284, "before": "public MultiPhraseQueryNode() {setLeaf(false);allocate();}", "after": "public MultiPhraseQueryNode(){IsLeaf = false;Allocate();}" }, { "index": 3285, "before": "public PublishRequest(String topicArn, String message, String subject) {setTopicArn(topicArn);setMessage(message);setSubject(subject);}", "after": "public PublishRequest(string topicArn, string message, string subject){_topicArn = topicArn;_message = message;_subject = subject;}" }, { "index": 3286, "before": "public SendCommandResult sendCommand(SendCommandRequest request) {request = beforeClientExecution(request);return executeSendCommand(request);}", "after": "public virtual SendCommandResponse SendCommand(SendCommandRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendCommandRequestMarshaller.Instance;options.ResponseUnmarshaller = SendCommandResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3287, "before": "public ListDeploymentInstancesResult listDeploymentInstances(ListDeploymentInstancesRequest request) {request = beforeClientExecution(request);return executeListDeploymentInstances(request);}", "after": "public virtual ListDeploymentInstancesResponse ListDeploymentInstances(ListDeploymentInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeploymentInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeploymentInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3288, "before": "public Iterator iterator() {return delegate().iterator(); }", "after": "public virtual java.util.Iterator iterator(){lock (mutex){return c.iterator();}}" }, { "index": 3289, "before": "public ProvisionedThroughput(Long readCapacityUnits, Long writeCapacityUnits) {setReadCapacityUnits(readCapacityUnits);setWriteCapacityUnits(writeCapacityUnits);}", "after": "public ProvisionedThroughput(long readCapacityUnits, long writeCapacityUnits){_readCapacityUnits = readCapacityUnits;_writeCapacityUnits = writeCapacityUnits;}" }, { "index": 3290, "before": "public DescribeTagsResult describeTags() {return describeTags(new DescribeTagsRequest());}", "after": "public virtual DescribeTagsResponse DescribeTags(){return DescribeTags(new DescribeTagsRequest());}" }, { "index": 3291, "before": "public DeprovisionByoipCidrResult deprovisionByoipCidr(DeprovisionByoipCidrRequest request) {request = beforeClientExecution(request);return executeDeprovisionByoipCidr(request);}", "after": "public virtual DeprovisionByoipCidrResponse DeprovisionByoipCidr(DeprovisionByoipCidrRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeprovisionByoipCidrRequestMarshaller.Instance;options.ResponseUnmarshaller = DeprovisionByoipCidrResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3292, "before": "public boolean isDone(TreeWalk walker) {return pathRaw.length == walker.getPathLength();}", "after": "public virtual bool IsDone(TreeWalk walker){return pathRaw.Length == walker.GetPathLength();}" }, { "index": 3293, "before": "public String buildExtensionField(String extensionKey, String field) {StringBuilder builder = new StringBuilder(field);builder.append(this.extensionFieldDelimiter);builder.append(extensionKey);return escapeExtensionField(builder.toString());}", "after": "public virtual string BuildExtensionField(string extensionKey, string field){StringBuilder builder = new StringBuilder(field);builder.Append(this.extensionFieldDelimiter);builder.Append(extensionKey);return EscapeExtensionField(builder.ToString());}" }, { "index": 3294, "before": "public void reset(byte[] bytes, int offset, int len) {this.bytes = bytes;pos = offset;limit = offset + len;}", "after": "public virtual void Reset(byte[] bytes, int offset, int len){this.bytes = bytes;pos = offset;limit = offset + len;}" }, { "index": 3295, "before": "public boolean equals(Object obj) {if (!(obj instanceof Loc)) {return false;}Loc other = (Loc) obj;return _bookSheetColumn == other._bookSheetColumn && _rowIndex == other._rowIndex;}", "after": "public override bool Equals(Object obj){Loc other = (Loc)obj;return _bookSheetColumn == other._bookSheetColumn && _rowIndex == other._rowIndex;}" }, { "index": 3296, "before": "public DeleteDeploymentConfigResult deleteDeploymentConfig(DeleteDeploymentConfigRequest request) {request = beforeClientExecution(request);return executeDeleteDeploymentConfig(request);}", "after": "public virtual DeleteDeploymentConfigResponse DeleteDeploymentConfig(DeleteDeploymentConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDeploymentConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDeploymentConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3297, "before": "public StartQueryExecutionResult startQueryExecution(StartQueryExecutionRequest request) {request = beforeClientExecution(request);return executeStartQueryExecution(request);}", "after": "public virtual StartQueryExecutionResponse StartQueryExecution(StartQueryExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartQueryExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartQueryExecutionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3298, "before": "public GetRepoListRequest() {super(\"cr\", \"2016-06-07\", \"GetRepoList\", \"cr\");setUriPattern(\"/repos\");setMethod(MethodType.GET);}", "after": "public GetRepoListRequest(): base(\"cr\", \"2016-06-07\", \"GetRepoList\", \"cr\", \"openAPI\"){UriPattern = \"/repos\";Method = MethodType.GET;}" }, { "index": 3299, "before": "public CreateDistributionResult createDistribution(CreateDistributionRequest request) {request = beforeClientExecution(request);return executeCreateDistribution(request);}", "after": "public virtual CreateDistributionResponse CreateDistribution(CreateDistributionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDistributionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDistributionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3300, "before": "public LongField(final int offset)throws ArrayIndexOutOfBoundsException{if (offset < 0){throw new ArrayIndexOutOfBoundsException(\"Illegal offset: \"+ offset);}_offset = offset;}", "after": "public LongField(int offset){if (offset < 0){throw new IndexOutOfRangeException(\"Illegal offset: \" + offset);}_offset = offset;}" }, { "index": 3301, "before": "public String toString() {StringBuilder b = new StringBuilder();b.append(\" target=\").append(target());b.append(\" label=0x\").append(Integer.toHexString(label()));if (flag(BIT_FINAL_ARC)) {b.append(\" final\");}if (flag(BIT_LAST_ARC)) {b.append(\" last\");}if (flag(BIT_TARGET_NEXT)) {b.append(\" targetNext\");}if (flag(BIT_STOP_NODE)) {b.append(\" stop\");}if (flag(BIT_ARC_HAS_OUTPUT)) {b.append(\" output=\").append(output());}if (flag(BIT_ARC_HAS_FINAL_OUTPUT)) {b.append(\" nextFinalOutput=\").append(nextFinalOutput());}if (bytesPerArc() != 0) {b.append(\" arcArray(idx=\").append(arcIdx()).append(\" of \").append(numArcs()).append(\")\");}return b.toString();}", "after": "public override string ToString(){var b = new StringBuilder();b.Append(\"node=\" + Node);b.Append(\" target=\" + Target);b.Append(\" label=\" + Label);if (Flag(BIT_LAST_ARC)) b.Append(\" last\");if (Flag(BIT_FINAL_ARC)) b.Append(\" final\");if (Flag(BIT_TARGET_NEXT)) b.Append(\" targetNext\");if (Flag(BIT_ARC_HAS_OUTPUT)) b.Append(\" output=\" + Output);if (Flag(BIT_ARC_HAS_FINAL_OUTPUT)) b.Append(\" nextFinalOutput=\" + NextFinalOutput);if (BytesPerArc != 0) b.Append(\" arcArray(idx=\" + ArcIdx + \" of \" + NumArcs + \")\");return b.ToString();}" }, { "index": 3302, "before": "public final int getRefCount() {return refCount.get();}", "after": "public int GetRefCount() {return refCount;}" }, { "index": 3303, "before": "public int readInt() {byte[] buf = new byte[LittleEndianConsts.INT_SIZE];try {checkEOF(read(buf), buf.length);} catch (IOException e) {throw new RuntimeException(e);}return LittleEndian.getInt(buf);}", "after": "public int ReadInt(){int ch1;int ch2;int ch3;int ch4;try{ch1 = in1.ReadByte();ch2 = in1.ReadByte();ch3 = in1.ReadByte();ch4 = in1.ReadByte();}catch (IOException e){throw new RuntimeException(e);}CheckEOF(ch1 | ch2 | ch3 | ch4);return (ch4 << 24) + (ch3 << 16) + (ch2 << 8) + (ch1 << 0);}" }, { "index": 3304, "before": "public BatchCreateAttendeeResult batchCreateAttendee(BatchCreateAttendeeRequest request) {request = beforeClientExecution(request);return executeBatchCreateAttendee(request);}", "after": "public virtual BatchCreateAttendeeResponse BatchCreateAttendee(BatchCreateAttendeeRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchCreateAttendeeRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchCreateAttendeeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3305, "before": "public DetachInstancesFromLoadBalancerResult detachInstancesFromLoadBalancer(DetachInstancesFromLoadBalancerRequest request) {request = beforeClientExecution(request);return executeDetachInstancesFromLoadBalancer(request);}", "after": "public virtual DetachInstancesFromLoadBalancerResponse DetachInstancesFromLoadBalancer(DetachInstancesFromLoadBalancerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachInstancesFromLoadBalancerRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachInstancesFromLoadBalancerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3306, "before": "public int getSourceStart() {return outRegion.sourceStart;}", "after": "public virtual int GetSourceStart(){return currentSource.regionList.sourceStart;}" }, { "index": 3307, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[FORMAT]\\n\");buffer.append(\" .indexcode = \").append(HexDump.shortToHex(getIndexCode())).append(\"\\n\");buffer.append(\" .isUnicode = \").append(field_3_hasMultibyte ).append(\"\\n\");buffer.append(\" .formatstring = \").append(getFormatString()).append(\"\\n\");buffer.append(\"[/FORMAT]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[FORMAT]\\n\");buffer.Append(\" .indexcode = \").Append(HexDump.ShortToHex(IndexCode)).Append(\"\\n\");buffer.Append(\" .isUnicode = \").Append(field_3_hasMultibyte).Append(\"\\n\");buffer.Append(\" .formatstring = \").Append(FormatString).Append(\"\\n\");buffer.Append(\"[/FORMAT]\\n\");return buffer.ToString();}" }, { "index": 3308, "before": "public void remove() {if (lastReturned == null) {throw new IllegalStateException();}Impl.this.remove(lastReturned.getKey());lastReturned = null;}", "after": "public virtual void remove(){if (this.lastEntryReturned == null){throw new System.InvalidOperationException();}if (this._enclosing.modCount != this.expectedModCount){throw new java.util.ConcurrentModificationException();}this._enclosing.remove(this.lastEntryReturned.key);this.lastEntryReturned = null;this.expectedModCount = this._enclosing.modCount;}" }, { "index": 3309, "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": 3310, "before": "public String getPartOfSpeech(int wordId) {return getFeature(wordId, 1);}", "after": "public string GetPartOfSpeech(int wordId){return GetFeature(wordId, 1);}" }, { "index": 3311, "before": "public BatchWriteResult batchWrite(BatchWriteRequest request) {request = beforeClientExecution(request);return executeBatchWrite(request);}", "after": "public virtual BatchWriteResponse BatchWrite(BatchWriteRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchWriteRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchWriteResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3312, "before": "public ObjectId idFor(int type, byte[] data) {return delegate().idFor(type, data);}", "after": "public virtual ObjectId IdFor(int type, byte[] data){return IdFor(type, data, 0, data.Length);}" }, { "index": 3313, "before": "public ConfirmTransitVirtualInterfaceResult confirmTransitVirtualInterface(ConfirmTransitVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeConfirmTransitVirtualInterface(request);}", "after": "public virtual ConfirmTransitVirtualInterfaceResponse ConfirmTransitVirtualInterface(ConfirmTransitVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ConfirmTransitVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = ConfirmTransitVirtualInterfaceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3314, "before": "public GetFileUploadURLResult getFileUploadURL(GetFileUploadURLRequest request) {request = beforeClientExecution(request);return executeGetFileUploadURL(request);}", "after": "public virtual GetFileUploadURLResponse GetFileUploadURL(GetFileUploadURLRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFileUploadURLRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFileUploadURLResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3315, "before": "public TokenStream create(TokenStream input) {return new KeywordRepeatFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new KeywordRepeatFilter(input);}" }, { "index": 3316, "before": "public StartWorkspacesResult startWorkspaces(StartWorkspacesRequest request) {request = beforeClientExecution(request);return executeStartWorkspaces(request);}", "after": "public virtual StartWorkspacesResponse StartWorkspaces(StartWorkspacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartWorkspacesRequestMarshaller.Instance;options.ResponseUnmarshaller = StartWorkspacesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3317, "before": "public int getDeltaCacheLimit() {return deltaCacheLimit;}", "after": "public virtual int GetDeltaCacheLimit(){return deltaCacheLimit;}" }, { "index": 3318, "before": "public RebootJumpserverRequest() {super(\"HPC\", \"2016-06-03\", \"RebootJumpserver\", \"hpc\");setMethod(MethodType.POST);}", "after": "public RebootJumpserverRequest(): base(\"HPC\", \"2016-06-03\", \"RebootJumpserver\"){Method = MethodType.POST;}" }, { "index": 3319, "before": "public int getResultEnd() {Region r = outRegion;return r.resultStart + r.length;}", "after": "public virtual int GetResultEnd(){Region r = currentSource.regionList;return r.resultStart + r.length;}" }, { "index": 3320, "before": "public CreateLagResult createLag(CreateLagRequest request) {request = beforeClientExecution(request);return executeCreateLag(request);}", "after": "public virtual CreateLagResponse CreateLag(CreateLagRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLagRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLagResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3321, "before": "public ConflictState getConflictState() {return conflictState;}", "after": "public virtual MergeChunk.ConflictState GetConflictState(){return conflictState;}" }, { "index": 3322, "before": "public final void writeByte(int val) throws IOException {write(val & 0xFF);}", "after": "public virtual void writeByte(int val){throw new System.NotImplementedException();}" }, { "index": 3323, "before": "public UpdateRelationalDatabaseResult updateRelationalDatabase(UpdateRelationalDatabaseRequest request) {request = beforeClientExecution(request);return executeUpdateRelationalDatabase(request);}", "after": "public virtual UpdateRelationalDatabaseResponse UpdateRelationalDatabase(UpdateRelationalDatabaseRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRelationalDatabaseRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRelationalDatabaseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3324, "before": "public Entry lowerEntry(K key) {return immutableCopy(findBounded(key, LOWER));}", "after": "public java.util.MapClass.Entry lowerEntry(K key){return this._enclosing.immutableCopy(this.findBounded(key, java.util.TreeMap.Relation.LOWER));}" }, { "index": 3325, "before": "public ExternalNameRecord() {field_2_ixals = 0;}", "after": "public ExternalNameRecord(){field_2_ixals = 0;}" }, { "index": 3326, "before": "public int stem(char s[], int len) {len = stemPrefix(s, len);len = stemSuffix(s, len);return len;}", "after": "public virtual int Stem(char[] s, int len){len = StemPrefix(s, len);len = StemSuffix(s, len);return len;}" }, { "index": 3327, "before": "public final void remove(RevFlagSet set) {flags &= ~set.mask;}", "after": "public void Remove(RevFlag flag){flags &= ~flag.mask;}" }, { "index": 3328, "before": "public IllegalFormatFlagsException(String flags) {if (flags == null) {throw new NullPointerException();}this.flags = flags;}", "after": "public IllegalFormatFlagsException(string flags){if (flags == null){throw new System.ArgumentNullException();}this.flags = flags;}" }, { "index": 3329, "before": "public boolean shouldBeRecursive() {return false;}", "after": "public override bool ShouldBeRecursive(){return false;}" }, { "index": 3330, "before": "public CapitalizationFilter create(TokenStream input) {return new CapitalizationFilter(input, onlyFirstWord, keep,forceFirstLetter, okPrefix, minWordLength, maxWordCount, maxTokenLength);}", "after": "public override TokenStream Create(TokenStream input){return new CapitalizationFilter(input, onlyFirstWord, keep, forceFirstLetter, okPrefix, minWordLength, maxWordCount, maxTokenLength, culture);}" }, { "index": 3331, "before": "public GetAppliedSchemaVersionResult getAppliedSchemaVersion(GetAppliedSchemaVersionRequest request) {request = beforeClientExecution(request);return executeGetAppliedSchemaVersion(request);}", "after": "public virtual GetAppliedSchemaVersionResponse GetAppliedSchemaVersion(GetAppliedSchemaVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAppliedSchemaVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAppliedSchemaVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3332, "before": "public DescribeLabelingJobResult describeLabelingJob(DescribeLabelingJobRequest request) {request = beforeClientExecution(request);return executeDescribeLabelingJob(request);}", "after": "public virtual DescribeLabelingJobResponse DescribeLabelingJob(DescribeLabelingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLabelingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLabelingJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3333, "before": "public DeleteAttendeeResult deleteAttendee(DeleteAttendeeRequest request) {request = beforeClientExecution(request);return executeDeleteAttendee(request);}", "after": "public virtual DeleteAttendeeResponse DeleteAttendee(DeleteAttendeeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAttendeeRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAttendeeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3334, "before": "public final String toString(List ruleNames) {return toString(ruleNames, null);}", "after": "public string ToString(IList ruleNames){return ToString(ruleNames, null);}" }, { "index": 3335, "before": "public RejectAssignmentResult rejectAssignment(RejectAssignmentRequest request) {request = beforeClientExecution(request);return executeRejectAssignment(request);}", "after": "public virtual RejectAssignmentResponse RejectAssignment(RejectAssignmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectAssignmentRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectAssignmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3336, "before": "public CharVector(char[] a, int capacity) {if (capacity > 0) {blockSize = capacity;} else {blockSize = DEFAULT_BLOCK_SIZE;}array = a;n = a.length;}", "after": "public CharVector(char[] a, int capacity){if (capacity > 0){blockSize = capacity;}else{blockSize = DEFAULT_BLOCK_SIZE;}array = a;n = a.Length;}" }, { "index": 3337, "before": "public UnsubscribeFromEventResult unsubscribeFromEvent(UnsubscribeFromEventRequest request) {request = beforeClientExecution(request);return executeUnsubscribeFromEvent(request);}", "after": "public virtual UnsubscribeFromEventResponse UnsubscribeFromEvent(UnsubscribeFromEventRequest request){var options = new InvokeOptions();options.RequestMarshaller = UnsubscribeFromEventRequestMarshaller.Instance;options.ResponseUnmarshaller = UnsubscribeFromEventResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3338, "before": "public String getNextToken() {if( pos >= format.length() ) {return null;}int subStart = pos;final char curChar = format.charAt(pos);++pos;if( curChar == '\\'' ) {while( ( pos < format.length() ) && ( format.charAt(pos) != '\\'' ) ) {++pos;}if( pos < format.length() ) {++pos;}} else {while( ( pos < format.length() ) && ( format.charAt(pos) == curChar ) ) {++pos;}}return format.substring(subStart,pos);}", "after": "public string GetNextToken(){if (pos >= format.Length){return null;}int subStart = pos;char curChar = format[pos];++pos;if (curChar == '\\''){while ((pos < format.Length) && ((curChar = format[pos]) != '\\'')){++pos;}if (pos < format.Length){++pos;}}else{char activeChar = curChar;while ((pos < format.Length) && ((curChar = format[pos])) == activeChar){++pos;}}return format.Substring(subStart, pos - subStart);}" }, { "index": 3339, "before": "public Policy withId(String id) {setId(id);return this;}", "after": "public Policy WithId(string id){Id = id;return this;}" }, { "index": 3340, "before": "public void setStringValue(String value) {if (!(fieldsData instanceof String)) {throw new IllegalArgumentException(\"cannot change value type from \" + fieldsData.getClass().getSimpleName() + \" to String\");}if (value == null) {throw new IllegalArgumentException(\"value must not be null\");}fieldsData = value;}", "after": "public virtual void SetStringValue(string value){if (!(FieldsData is string)){throw new ArgumentException(\"cannot change value type from \" + FieldsData.GetType().Name + \" to string\");}FieldsData = value;}" }, { "index": 3341, "before": "public Area3DPtg(String arearef, int externIdx) {super(new AreaReference(arearef, SpreadsheetVersion.EXCEL97));setExternSheetIndex(externIdx);}", "after": "public Area3DPtg(String arearef, int externIdx):base(arearef){ExternSheetIndex=externIdx;}" }, { "index": 3342, "before": "public boolean empty() {return isEmpty();}", "after": "public virtual bool empty(){return isEmpty();}" }, { "index": 3343, "before": "public DeleteMemberResult deleteMember(DeleteMemberRequest request) {request = beforeClientExecution(request);return executeDeleteMember(request);}", "after": "public virtual DeleteMemberResponse DeleteMember(DeleteMemberRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMemberRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMemberResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3344, "before": "public DeleteRepositoryResult deleteRepository(DeleteRepositoryRequest request) {request = beforeClientExecution(request);return executeDeleteRepository(request);}", "after": "public virtual DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRepositoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3345, "before": "public GetChangeResult getChange(GetChangeRequest request) {request = beforeClientExecution(request);return executeGetChange(request);}", "after": "public virtual GetChangeResponse GetChange(GetChangeRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetChangeRequestMarshaller.Instance;options.ResponseUnmarshaller = GetChangeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3346, "before": "public PrefixCodedTerms finish() {return new PrefixCodedTerms(output.toBufferList(), size);}", "after": "public FieldInfos Finish(){return new FieldInfos(byName.Values.ToArray());}" }, { "index": 3347, "before": "@Override public synchronized void clear() {elements = EmptyArray.OBJECT;}", "after": "public virtual void clear(){lock (this){elements = libcore.util.EmptyArray.OBJECT;}}" }, { "index": 3348, "before": "public LongBuffer duplicate() {ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());LongToByteBufferAdapter buf = new LongToByteBufferAdapter(bb);buf.limit = limit;buf.position = position;buf.mark = mark;return buf;}", "after": "public override java.nio.LongBuffer duplicate(){java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());java.nio.LongToByteBufferAdapter buf = new java.nio.LongToByteBufferAdapter(bb);buf._limit = _limit;buf._position = _position;buf._mark = _mark;return buf;}" }, { "index": 3349, "before": "public StyleRecord() {field_1_xf_index = isBuiltinFlag.set(0);}", "after": "public StyleRecord(){field_1_xf_index = isBuiltinFlag.Set(field_1_xf_index);}" }, { "index": 3350, "before": "public boolean equals(Object o) {if (o instanceof AbbreviatedObjectId) {final AbbreviatedObjectId b = (AbbreviatedObjectId) o;return nibbles == b.nibbles && w1 == b.w1 && w2 == b.w2&& w3 == b.w3 && w4 == b.w4 && w5 == b.w5;}return false;}", "after": "public override bool Equals(object o){if (o is NGit.AbbreviatedObjectId){NGit.AbbreviatedObjectId b = (NGit.AbbreviatedObjectId)o;return nibbles == b.nibbles && w1 == b.w1 && w2 == b.w2 && w3 == b.w3 && w4 == b.w4 && w5 == b.w5;}return false;}" }, { "index": 3351, "before": "public void ReInit(QueryParserTokenManager tm) {token_source = tm;token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 10; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();}", "after": "public virtual void ReInit(QueryParserTokenManager tm){TokenSource = tm;Token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 10; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();}" }, { "index": 3352, "before": "public ExtendedFormatRecord getExFormatAt(int index) {int xfptr = records.getXfpos() - (numxfs - 1);xfptr += index;return ( ExtendedFormatRecord ) records.get(xfptr);}", "after": "public ExtendedFormatRecord GetExFormatAt(int index){int xfptr = records.Xfpos - (numxfs - 1);xfptr += index;ExtendedFormatRecord retval =(ExtendedFormatRecord)records[xfptr];return retval;}" }, { "index": 3353, "before": "public Resource(String resource) {this.resource = resource;}", "after": "public Resource(string resource){this.resource = resource;}" }, { "index": 3354, "before": "public NorwegianLightStemFilterFactory(Map args) {super(args);String variant = get(args, \"variant\");if (variant == null || \"nb\".equals(variant)) {flags = BOKMAAL;} else if (\"nn\".equals(variant)) {flags = NYNORSK;} else if (\"no\".equals(variant)) {flags = BOKMAAL | NYNORSK;} else {throw new IllegalArgumentException(\"invalid variant: \" + variant);}if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public NorwegianLightStemFilterFactory(IDictionary args): base(args){string variant = Get(args, \"variant\");if (variant == null || \"nb\".Equals(variant, StringComparison.Ordinal)){flags = NorwegianStandard.BOKMAAL;}else if (\"nn\".Equals(variant, StringComparison.Ordinal)){flags = NorwegianStandard.NYNORSK;}else if (\"no\".Equals(variant, StringComparison.Ordinal)){flags = NorwegianStandard.BOKMAAL | NorwegianStandard.NYNORSK;}else{throw new System.ArgumentException(\"invalid variant: \" + variant);}if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 3355, "before": "public UpdateTypedLinkFacetResult updateTypedLinkFacet(UpdateTypedLinkFacetRequest request) {request = beforeClientExecution(request);return executeUpdateTypedLinkFacet(request);}", "after": "public virtual UpdateTypedLinkFacetResponse UpdateTypedLinkFacet(UpdateTypedLinkFacetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTypedLinkFacetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTypedLinkFacetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3356, "before": "public E higher(E e) {return backingMap.higherKey(e);}", "after": "public virtual E higher(E e){return backingMap.higherKey(e);}" }, { "index": 3357, "before": "public ListReceiptFiltersResult listReceiptFilters(ListReceiptFiltersRequest request) {request = beforeClientExecution(request);return executeListReceiptFilters(request);}", "after": "public virtual ListReceiptFiltersResponse ListReceiptFilters(ListReceiptFiltersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListReceiptFiltersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListReceiptFiltersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3358, "before": "public int size() {synchronized (lock) {return count;}}", "after": "public virtual int size(){lock (@lock){return count;}}" }, { "index": 3359, "before": "public CreateVaultRequest(String vaultName) {setVaultName(vaultName);}", "after": "public CreateVaultRequest(string vaultName){_vaultName = vaultName;}" }, { "index": 3360, "before": "public PendingOutputs() {outputs = new CharsRefBuilder[1];endOffsets = new int[1];posLengths = new int[1];}", "after": "public PendingOutputs(){outputs = new CharsRef[1];endOffsets = new int[1];posLengths = new int[1];}" }, { "index": 3361, "before": "public static double getExcelDate(Date date, boolean use1904windowing) {Calendar calStart = LocaleUtil.getLocaleCalendar();calStart.setTime(date);int year = calStart.get(Calendar.YEAR);int dayOfYear = calStart.get(Calendar.DAY_OF_YEAR);int hour = calStart.get(Calendar.HOUR_OF_DAY);int minute = calStart.get(Calendar.MINUTE);int second = calStart.get(Calendar.SECOND);int milliSecond = calStart.get(Calendar.MILLISECOND);return internalGetExcelDate(year, dayOfYear, hour, minute, second, milliSecond, use1904windowing);}", "after": "public static double GetExcelDate(DateTime date, bool use1904windowing){if ((!use1904windowing && date.Year < 1900) || (use1904windowing && date.Year < 1904)) {return BAD_DATE;}DateTime startdate;if (use1904windowing){startdate = new DateTime(1904, 1, 1);}else{startdate = new DateTime(1900, 1, 1);}double value = (date - startdate).TotalDays + 1;if (!use1904windowing && value >= 60){value++;}else if (use1904windowing){value--;}return value;}" }, { "index": 3362, "before": "public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {int nIncomingArgs = args.length;if(nIncomingArgs < 1) {throw new RuntimeException(\"function name argument missing\");}ValueEval nameArg = args[0];String functionName;if (nameArg instanceof FunctionNameEval) {functionName = ((FunctionNameEval) nameArg).getFunctionName();} else {throw new RuntimeException(\"First argument should be a NameEval, but got (\"+ nameArg.getClass().getName() + \")\");}FreeRefFunction targetFunc = ec.findUserDefinedFunction(functionName);if (targetFunc == null) {throw new NotImplementedFunctionException(functionName);}int nOutGoingArgs = nIncomingArgs -1;ValueEval[] outGoingArgs = new ValueEval[nOutGoingArgs];System.arraycopy(args, 1, outGoingArgs, 0, nOutGoingArgs);return targetFunc.evaluate(outGoingArgs, ec);}", "after": "public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){int nIncomingArgs = args.Length;if (nIncomingArgs < 1){throw new Exception(\"function name argument missing\");}ValueEval nameArg = args[0];String functionName = string.Empty ;if (nameArg is FunctionNameEval){functionName = ((FunctionNameEval)nameArg).FunctionName;}else{throw new Exception(\"First argument should be a NameEval, but got (\"+ nameArg.GetType().Name + \")\");}FreeRefFunction targetFunc = ec.FindUserDefinedFunction(functionName);if (targetFunc == null){throw new NotImplementedFunctionException(functionName);}int nOutGoingArgs = nIncomingArgs - 1;ValueEval[] outGoingArgs = new ValueEval[nOutGoingArgs];Array.Copy(args, 1, outGoingArgs, 0, nOutGoingArgs);return targetFunc.Evaluate(outGoingArgs, ec);}" }, { "index": 3363, "before": "public int indexOf(Object object) {int pos = 0;Link link = voidLink.next;if (object != null) {while (link != voidLink) {if (object.equals(link.data)) {return pos;}link = link.next;pos++;}} else {while (link != voidLink) {if (link.data == null) {return pos;}link = link.next;pos++;}}return -1;}", "after": "public override int indexOf(object @object){int pos = 0;java.util.LinkedList.Link link = voidLink.next;if (@object != null){while (link != voidLink){if (@object.Equals(link.data)){return pos;}link = link.next;pos++;}}else{while (link != voidLink){if ((object)link.data == null){return pos;}link = link.next;pos++;}}return -1;}" }, { "index": 3364, "before": "public DescribeVpcClassicLinkResult describeVpcClassicLink(DescribeVpcClassicLinkRequest request) {request = beforeClientExecution(request);return executeDescribeVpcClassicLink(request);}", "after": "public virtual DescribeVpcClassicLinkResponse DescribeVpcClassicLink(DescribeVpcClassicLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcClassicLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcClassicLinkResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3365, "before": "public void sort(RevSort s, boolean use) {if (s == RevSort.TOPO && !use)throw new IllegalArgumentException(JGitText.get().topologicalSortRequired);super.sort(s, use);}", "after": "public override void Sort(RevSort s, bool use){if (s == RevSort.TOPO && !use){throw new ArgumentException(JGitText.Get().topologicalSortRequired);}base.Sort(s, use);}" }, { "index": 3366, "before": "public synchronized StringBuffer delete(int start, int end) {delete0(start, end);return this;}", "after": "public java.lang.StringBuffer delete(int start, int end){lock (this){delete0(start, end);return this;}}" }, { "index": 3367, "before": "public void write(int b) throws IOException {throw new UnsupportedOperationException();}", "after": "public override void Write(int b){throw new NGit.Errors.NotSupportedException();}" }, { "index": 3368, "before": "public boolean isModeDifferent(int rawMode) {int modeDiff = getEntryRawMode() ^ rawMode;if (modeDiff == 0)return false;if (getOptions().getSymLinks() == SymLinks.FALSE)if (FileMode.SYMLINK.equals(rawMode))return false;if (!state.options.isFileMode())modeDiff &= ~FileMode.EXECUTABLE_FILE.getBits();return modeDiff != 0;}", "after": "public virtual bool IsModeDifferent(int rawMode){int modeDiff = EntryRawMode ^ rawMode;if (modeDiff == 0){return false;}if (FileMode.SYMLINK.Equals(rawMode)){return false;}if (!state.options.IsFileMode()){modeDiff &= ~FileMode.EXECUTABLE_FILE.GetBits();}return modeDiff != 0;}" }, { "index": 3369, "before": "public DescribeReservedInstancesModificationsResult describeReservedInstancesModifications(DescribeReservedInstancesModificationsRequest request) {request = beforeClientExecution(request);return executeDescribeReservedInstancesModifications(request);}", "after": "public virtual DescribeReservedInstancesModificationsResponse DescribeReservedInstancesModifications(DescribeReservedInstancesModificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedInstancesModificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedInstancesModificationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3370, "before": "public EventSubscription addSourceIdentifierToSubscription(AddSourceIdentifierToSubscriptionRequest request) {request = beforeClientExecution(request);return executeAddSourceIdentifierToSubscription(request);}", "after": "public virtual AddSourceIdentifierToSubscriptionResponse AddSourceIdentifierToSubscription(AddSourceIdentifierToSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddSourceIdentifierToSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = AddSourceIdentifierToSubscriptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3371, "before": "@Override public boolean equals(Object o) {if (o == this) {return true;}synchronized (mutex) {return delegate().equals(o);}}", "after": "public override bool Equals(object @object){lock (mutex){return list.Equals(@object);}}" }, { "index": 3372, "before": "public PagedBytesDataOutput getDataOutput() {if (frozen) {throw new IllegalStateException(\"cannot get DataOutput after freeze()\");}return new PagedBytesDataOutput();}", "after": "public PagedBytesDataOutput GetDataOutput(){if (frozen){throw new InvalidOperationException(\"cannot get DataOutput after Freeze()\");}return new PagedBytesDataOutput(this);}" }, { "index": 3373, "before": "public static short[] copyOfRange(short[] original, int start, int end) {if (start > end) {throw new IllegalArgumentException();}int originalLength = original.length;if (start < 0 || start > originalLength) {throw new ArrayIndexOutOfBoundsException();}int resultLength = end - start;int copyLength = Math.min(resultLength, originalLength - start);short[] result = new short[resultLength];System.arraycopy(original, start, result, 0, copyLength);return result;}", "after": "public static short[] copyOfRange(short[] original, int start, int end){if (start > end){throw new System.ArgumentException();}int originalLength = original.Length;if (start < 0 || start > originalLength){throw new System.IndexOutOfRangeException();}int resultLength = end - start;int copyLength = System.Math.Min(resultLength, originalLength - start);short[] result = new short[resultLength];System.Array.Copy(original, start, result, 0, copyLength);return result;}" }, { "index": 3374, "before": "public boolean removeURI(URIish toRemove) {return uris.remove(toRemove);}", "after": "public virtual bool RemoveURI(URIish toRemove){return uris.Remove(toRemove);}" }, { "index": 3375, "before": "public DescribeGameServerResult describeGameServer(DescribeGameServerRequest request) {request = beforeClientExecution(request);return executeDescribeGameServer(request);}", "after": "public virtual DescribeGameServerResponse DescribeGameServer(DescribeGameServerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGameServerRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGameServerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3376, "before": "public boolean hasNext() {return pos < keys.length;}", "after": "public bool HasNext(){return this.next_Renamed != null;}" }, { "index": 3377, "before": "public IntervalSet subtract(IntSet a) {if (a == null || a.isNil()) {return new IntervalSet(this);}if (a instanceof IntervalSet) {return subtract(this, (IntervalSet)a);}IntervalSet other = new IntervalSet();other.addAll(a);return subtract(this, other);}", "after": "public virtual Antlr4.Runtime.Misc.IntervalSet Subtract(IIntSet a){if (a == null || a.IsNil){return new Antlr4.Runtime.Misc.IntervalSet(this);}if (a is Antlr4.Runtime.Misc.IntervalSet){return Subtract(this, (Antlr4.Runtime.Misc.IntervalSet)a);}Antlr4.Runtime.Misc.IntervalSet other = new Antlr4.Runtime.Misc.IntervalSet();other.AddAll(a);return Subtract(this, other);}" }, { "index": 3378, "before": "public String displayName() {return this.canonicalName;}", "after": "public virtual string displayName(){return this.canonicalName;}" }, { "index": 3379, "before": "public final ValueEval getValue(int row, int col) {return getRelativeValue(row, col);}", "after": "public ValueEval GetValue(int row, int col){return GetRelativeValue(row, col);}" }, { "index": 3380, "before": "public AttrPtg(LittleEndianInput in) {_options = in.readByte();_data = in.readShort();if (isOptimizedChoose()) {int[] jumpTable = new int[(int) _data];for (int i = 0; i < jumpTable.length; i++) {jumpTable[i] = in.readUShort();}_jumpTable = jumpTable;_chooseFuncOffset = in.readUShort();} else {_jumpTable = null;_chooseFuncOffset = -1;}}", "after": "public AttrPtg(ILittleEndianInput in1){field_1_options =(byte)in1.ReadByte();field_2_data = in1.ReadShort();if (IsOptimizedChoose){int nCases = field_2_data;int[] jumpTable = new int[nCases];for (int i = 0; i < jumpTable.Length; i++){jumpTable[i] = in1.ReadUShort();}_jumpTable = jumpTable;_chooseFuncOffset = in1.ReadUShort();}else{_jumpTable = null;_chooseFuncOffset = -1;}}" }, { "index": 3381, "before": "public DescribeTrafficMirrorFiltersResult describeTrafficMirrorFilters(DescribeTrafficMirrorFiltersRequest request) {request = beforeClientExecution(request);return executeDescribeTrafficMirrorFilters(request);}", "after": "public virtual DescribeTrafficMirrorFiltersResponse DescribeTrafficMirrorFilters(DescribeTrafficMirrorFiltersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTrafficMirrorFiltersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTrafficMirrorFiltersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3382, "before": "public final ShortBuffer put(short[] src) {return put(src, 0, src.length);}", "after": "public java.nio.ShortBuffer put(short[] src){return put(src, 0, src.Length);}" }, { "index": 3383, "before": "public DescribeReservedNodeOfferingsResult describeReservedNodeOfferings() {return describeReservedNodeOfferings(new DescribeReservedNodeOfferingsRequest());}", "after": "public virtual DescribeReservedNodeOfferingsResponse DescribeReservedNodeOfferings(){return DescribeReservedNodeOfferings(new DescribeReservedNodeOfferingsRequest());}" }, { "index": 3384, "before": "public CreateLogStreamRequest(String logGroupName, String logStreamName) {setLogGroupName(logGroupName);setLogStreamName(logStreamName);}", "after": "public CreateLogStreamRequest(string logGroupName, string logStreamName){_logGroupName = logGroupName;_logStreamName = logStreamName;}" }, { "index": 3385, "before": "public DetachStaticIpResult detachStaticIp(DetachStaticIpRequest request) {request = beforeClientExecution(request);return executeDetachStaticIp(request);}", "after": "public virtual DetachStaticIpResponse DetachStaticIp(DetachStaticIpRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachStaticIpRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachStaticIpResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3386, "before": "public static CharArraySet unmodifiableSet(CharArraySet set) {if (set == null)throw new NullPointerException(\"Given set is null\");if (set == EMPTY_SET)return EMPTY_SET;if (set.map instanceof CharArrayMap.UnmodifiableCharArrayMap)return set;return new CharArraySet(CharArrayMap.unmodifiableMap(set.map));}", "after": "public static CharArraySet UnmodifiableSet(CharArraySet set){if (set == null){throw new System.ArgumentNullException(\"Given set is null\");}if (set == EMPTY_SET){return EMPTY_SET;}if (set.map is CharArrayMap.UnmodifiableCharArrayMap){return set;}return new CharArraySet(CharArrayMap.UnmodifiableMap(set.map));}" }, { "index": 3387, "before": "public BatchDetectKeyPhrasesResult batchDetectKeyPhrases(BatchDetectKeyPhrasesRequest request) {request = beforeClientExecution(request);return executeBatchDetectKeyPhrases(request);}", "after": "public virtual BatchDetectKeyPhrasesResponse BatchDetectKeyPhrases(BatchDetectKeyPhrasesRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDetectKeyPhrasesRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDetectKeyPhrasesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3388, "before": "public final ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {if (args.length != 1) {return ErrorEval.VALUE_INVALID;}return evaluate(srcRowIndex, srcColumnIndex, args[0]);}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){if (args.Length != 1){return ErrorEval.VALUE_INVALID;}return Evaluate(srcRowIndex, srcColumnIndex, args[0]);}" }, { "index": 3389, "before": "public void removeWordCount() {remove1stProperty(PropertyIDMap.PID_WORDCOUNT);}", "after": "public void RemoveWordCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_WORDCOUNT);}" }, { "index": 3390, "before": "public boolean equals(Object o) {if (this == o) {return true;}else if ( !(o instanceof SingletonPredictionContext) ) {return false;}if ( this.hashCode() != o.hashCode() ) {return false; }SingletonPredictionContext s = (SingletonPredictionContext)o;return returnState == s.returnState &&(parent!=null && parent.equals(s.parent));}", "after": "public override bool Equals(object o){if (o == this){return true;}else{if (!(o is Antlr4.Runtime.Atn.SingletonPredictionContext)){return false;}}if (this.GetHashCode() != o.GetHashCode()){return false;}Antlr4.Runtime.Atn.SingletonPredictionContext other = (Antlr4.Runtime.Atn.SingletonPredictionContext)o;return returnState == other.returnState && parent.Equals(other.parent);}" }, { "index": 3391, "before": "public ResourceBundle resourceBundle() {return resourceBundle;}", "after": "public virtual Sharpen.ResourceBundle ResourceBundle(){return resourceBundle;}" }, { "index": 3392, "before": "public TokenStream create(TokenStream stream) {if (stopTags != null) {final TokenStream filter = new JapanesePartOfSpeechStopFilter(stream, stopTags);return filter;} else {return stream;}}", "after": "public override TokenStream Create(TokenStream stream){if (stopTags != null){#pragma warning disable 612, 618TokenStream filter = new JapanesePartOfSpeechStopFilter(m_luceneMatchVersion, enablePositionIncrements, stream, stopTags);#pragma warning restore 612, 618return filter;}else{return stream;}}" }, { "index": 3393, "before": "public final int[] getBreaks() {int count = getNumBreaks();if (count < 1) {return EMPTY_INT_ARRAY;}int[] result = new int[count];for (int i=0; i(request, options);}" }, { "index": 3395, "before": "@Override public V get(Object key) {return isInBounds(key) ? TreeMap.this.get(key) : null;}", "after": "public override V get(object key){return this.isInBounds(key) ? this._enclosing.get(key) : default(V);}" }, { "index": 3396, "before": "public void setAnchor(int dx1, int dy1, int dx2, int dy2) {setDx1(Math.min(dx1, dx2));setDy1(Math.min(dy1, dy2));setDx2(Math.max(dx1, dx2));setDy2(Math.max(dy1, dy2));}", "after": "public void SetAnchor(int dx1, int dy1, int dx2, int dy2){this.Dx1 = Math.Min(dx1, dx2);this.Dy1 = Math.Min(dy1, dy2);this.Dx2 = Math.Max(dx1, dx2);this.Dy2 = Math.Max(dy1, dy2);}" }, { "index": 3397, "before": "public int next() {if (current == end) {return DONE;} else {return last();}}", "after": "public override int Next(){if (current == end){return Done;}else{return Last();}}" }, { "index": 3398, "before": "public UpdateGcmChannelResult updateGcmChannel(UpdateGcmChannelRequest request) {request = beforeClientExecution(request);return executeUpdateGcmChannel(request);}", "after": "public virtual UpdateGcmChannelResponse UpdateGcmChannel(UpdateGcmChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGcmChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGcmChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3399, "before": "public void write(LittleEndianOutput out) {throw new IllegalStateException(\"XSSF-only Ptg, should not be serialised\");}", "after": "public override void Write(ILittleEndianOutput out1){throw new InvalidOperationException(\"XSSF-only Ptg, should not be serialised\");}" }, { "index": 3400, "before": "public PlacementGroup(String groupName) {setGroupName(groupName);}", "after": "public PlacementGroup(string groupName){_groupName = groupName;}" }, { "index": 3401, "before": "public SendCustomVerificationEmailResult sendCustomVerificationEmail(SendCustomVerificationEmailRequest request) {request = beforeClientExecution(request);return executeSendCustomVerificationEmail(request);}", "after": "public virtual SendCustomVerificationEmailResponse SendCustomVerificationEmail(SendCustomVerificationEmailRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendCustomVerificationEmailRequestMarshaller.Instance;options.ResponseUnmarshaller = SendCustomVerificationEmailResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3402, "before": "public CreateCollectionRequest() {super(\"cr\", \"2016-06-07\", \"CreateCollection\", \"cr\");setUriPattern(\"/collections\");setMethod(MethodType.PUT);}", "after": "public CreateCollectionRequest(): base(\"cr\", \"2016-06-07\", \"CreateCollection\", \"cr\", \"openAPI\"){UriPattern = \"/collections\";Method = MethodType.PUT;}" }, { "index": 3403, "before": "public synchronized boolean remove(Object o) {int index = indexOf(o);if (index == -1) {return false;}remove(index);return true;}", "after": "public virtual bool remove(object o){lock (this){int index = indexOf(o);if (index == -1){return false;}remove(index);return true;}}" }, { "index": 3404, "before": "public final boolean matches(char c) {return Character.isDigit(c);}", "after": "public bool Matches(char c){return char.IsDigit(c);}" }, { "index": 3405, "before": "public void serialize(LittleEndianOutput out) {out.writeByte(getWSBool2());out.writeByte(getWSBool1());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteByte(WSBool1);out1.WriteByte(WSBool2);}" }, { "index": 3406, "before": "public SubmitGenerateTaskRequest() {super(\"lubancloud\", \"2018-05-09\", \"SubmitGenerateTask\", \"luban\");setMethod(MethodType.POST);}", "after": "public SubmitGenerateTaskRequest(): base(\"lubancloud\", \"2018-05-09\", \"SubmitGenerateTask\", \"luban\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 3407, "before": "public E ceiling(E e) {return backingMap.ceilingKey(e);}", "after": "public virtual E ceiling(E e){return backingMap.ceilingKey(e);}" }, { "index": 3408, "before": "public BatchApplyUpdateActionResult batchApplyUpdateAction(BatchApplyUpdateActionRequest request) {request = beforeClientExecution(request);return executeBatchApplyUpdateAction(request);}", "after": "public virtual BatchApplyUpdateActionResponse BatchApplyUpdateAction(BatchApplyUpdateActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchApplyUpdateActionRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchApplyUpdateActionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3409, "before": "public Break(RecordInputStream in) {main = in.readUShort() - 1;subFrom = in.readUShort();subTo = in.readUShort();}", "after": "public Break(RecordInputStream in1){main = in1.ReadUShort() - 1;subFrom = in1.ReadUShort();subTo = in1.ReadUShort();}" }, { "index": 3410, "before": "public FileNameMatcher createMatcherForSuffix() {final List copyOfHeads = new ArrayList<>(heads.size());copyOfHeads.addAll(heads);return new FileNameMatcher(copyOfHeads);}", "after": "public virtual NGit.Fnmatch.FileNameMatcher CreateMatcherForSuffix(){IList copyOfHeads = new AList(heads.Count);Sharpen.Collections.AddAll(copyOfHeads, heads);return new NGit.Fnmatch.FileNameMatcher(copyOfHeads);}" }, { "index": 3411, "before": "public static boolean isEmptyOrNull(String stringValue) {return stringValue == null || stringValue.length() == 0;}", "after": "public static bool IsEmptyOrNull(string stringValue){return stringValue == null || stringValue.Length == 0;}" }, { "index": 3412, "before": "public static char[] grow(char[] array) {return grow(array, 1 + array.length);}", "after": "public static short[] Grow(short[] array){return Grow(array, 1 + array.Length);}" }, { "index": 3413, "before": "public ModifySubnetAttributeResult modifySubnetAttribute(ModifySubnetAttributeRequest request) {request = beforeClientExecution(request);return executeModifySubnetAttribute(request);}", "after": "public virtual ModifySubnetAttributeResponse ModifySubnetAttribute(ModifySubnetAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifySubnetAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifySubnetAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3414, "before": "public GetProxySessionResult getProxySession(GetProxySessionRequest request) {request = beforeClientExecution(request);return executeGetProxySession(request);}", "after": "public virtual GetProxySessionResponse GetProxySession(GetProxySessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetProxySessionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetProxySessionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3415, "before": "public String toString() {return \"TermStats{\" +\"decodedTermText='\" + decodedTermText + '\\'' +\", field='\" + field + '\\'' +\", docFreq=\" + docFreq +'}';}", "after": "public override string ToString(){return (\"TermStats: Term=\" + termtext.Utf8ToString() + \" DocFreq=\" + DocFreq + \" TotalTermFreq=\" + TotalTermFreq);}" }, { "index": 3416, "before": "public String getSignificantDecimalDigitsLastDigitRounded() {long wp = _wholePart + 5; StringBuilder sb = new StringBuilder(24);sb.append(wp);sb.setCharAt(sb.length()-1, '0');return sb.toString();}", "after": "public String GetSignificantDecimalDigitsLastDigitRounded(){long wp = _wholePart + 5; StringBuilder sb = new StringBuilder(24);sb.Append(wp);sb[sb.Length - 1]= '0';return sb.ToString();}" }, { "index": 3417, "before": "public boolean canReuse(IndexInput docIn, FieldInfo fieldInfo) {return docIn == startDocIn &&indexHasFreq == (fieldInfo.getIndexOptions().compareTo(IndexOptions.DOCS_AND_FREQS) >= 0) &&indexHasPos == (fieldInfo.getIndexOptions().compareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS) >= 0) &&indexHasPayloads == fieldInfo.hasPayloads();}", "after": "public bool CanReuse(IndexInput docIn, FieldInfo fieldInfo){return docIn == startDocIn &&indexHasFreq == (fieldInfo.IndexOptions.CompareTo(IndexOptions.DOCS_AND_FREQS) >= 0) &&indexHasPos == (fieldInfo.IndexOptions.CompareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS) >= 0) &&indexHasPayloads == fieldInfo.HasPayloads;}" }, { "index": 3418, "before": "public Sort(SortField field) {setSort(field);}", "after": "public Sort(SortField field){SetSort(field);}" }, { "index": 3419, "before": "public static byte[] encodeASCII(String s) {final byte[] r = new byte[s.length()];for (int k = r.length - 1; k >= 0; k--) {final char c = s.charAt(k);if (c > 127)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().notASCIIString, s));r[k] = (byte) c;}return r;}", "after": "public static byte[] EncodeASCII(string s){byte[] r = new byte[s.Length];for (int k = r.Length - 1; k >= 0; k--){char c = s[k];if (c > 127){throw new ArgumentException(MessageFormat.Format(JGitText.Get().notASCIIString, s));}r[k] = unchecked((byte)c);}return r;}" }, { "index": 3420, "before": "public PurgeQueueResult purgeQueue(PurgeQueueRequest request) {request = beforeClientExecution(request);return executePurgeQueue(request);}", "after": "public virtual PurgeQueueResponse PurgeQueue(PurgeQueueRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurgeQueueRequestMarshaller.Instance;options.ResponseUnmarshaller = PurgeQueueResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3421, "before": "public boolean sempred(RuleContext _localctx, int ruleIndex, int actionIndex) {return true;}", "after": "public virtual bool Sempred(RuleContext _localctx, int ruleIndex, int actionIndex){return true;}" }, { "index": 3422, "before": "public ListStreamsResult listStreams() {return listStreams(new ListStreamsRequest());}", "after": "public virtual ListStreamsResponse ListStreams(){return ListStreams(new ListStreamsRequest());}" }, { "index": 3423, "before": "public String getSurfaceFormString() {return new String(surfaceForm, offset, length);}", "after": "public virtual string GetSurfaceFormString(){return new string(surfaceForm, offset, length);}" }, { "index": 3424, "before": "public GetVaultNotificationsResult getVaultNotifications(GetVaultNotificationsRequest request) {request = beforeClientExecution(request);return executeGetVaultNotifications(request);}", "after": "public virtual GetVaultNotificationsResponse GetVaultNotifications(GetVaultNotificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVaultNotificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVaultNotificationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3425, "before": "public DeleteTypedLinkFacetResult deleteTypedLinkFacet(DeleteTypedLinkFacetRequest request) {request = beforeClientExecution(request);return executeDeleteTypedLinkFacet(request);}", "after": "public virtual DeleteTypedLinkFacetResponse DeleteTypedLinkFacet(DeleteTypedLinkFacetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTypedLinkFacetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTypedLinkFacetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3426, "before": "public int previousIndex() {return pos;}", "after": "public int previousIndex(){return this.pos;}" }, { "index": 3427, "before": "public long ramBytesUsed() {return super.ramBytesUsed()+ offsets.ramBytesUsed()+ lengths.ramBytesUsed()+ RamUsageEstimator.NUM_BYTES_OBJECT_HEADER+ 2 * Integer.BYTES+ 3 * RamUsageEstimator.NUM_BYTES_OBJECT_REF+ values.bytes().length;}", "after": "public long RamBytesUsed(){return RamUsageEstimator.AlignObjectSize(3 * RamUsageEstimator.NUM_BYTES_OBJECT_REF) + docIDs.RamBytesUsed() + offsets.RamBytesUsed();}" }, { "index": 3428, "before": "public PushCommand push() {return new PushCommand(repo);}", "after": "public virtual PushCommand Push(){return new PushCommand(repo);}" }, { "index": 3429, "before": "public SelectResult select(SelectRequest request) {request = beforeClientExecution(request);return executeSelect(request);}", "after": "public virtual SelectResponse Select(SelectRequest request){var options = new InvokeOptions();options.RequestMarshaller = SelectRequestMarshaller.Instance;options.ResponseUnmarshaller = SelectResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3430, "before": "public ByteArrayDataOutput(byte[] bytes) {reset(bytes);}", "after": "public ByteArrayDataOutput(byte[] bytes){Reset(bytes);}" }, { "index": 3431, "before": "public boolean renameTo(String newName) {return directory.renameTo(newName);}", "after": "public bool RenameTo(string newName){return directory.RenameTo(newName);}" }, { "index": 3432, "before": "public boolean canReuse(IndexInput docIn, FieldInfo fieldInfo) {return docIn == startDocIn &&indexHasOffsets == (fieldInfo.getIndexOptions().compareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS) >= 0) &&indexHasPayloads == fieldInfo.hasPayloads();}", "after": "public bool CanReuse(IndexInput docIn, FieldInfo fieldInfo){return docIn == startDocIn &&indexHasOffsets == (fieldInfo.IndexOptions.CompareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS) >= 0) &&indexHasPayloads == fieldInfo.HasPayloads;}" }, { "index": 3433, "before": "public boolean equals( Object o ) {return o instanceof DanishStemmer;}", "after": "public override bool Equals(object o){return o is DanishStemmer;}" }, { "index": 3434, "before": "public BooleanQuery build(QueryNode queryNode) throws QueryNodeException {BooleanQueryNode booleanNode = (BooleanQueryNode) queryNode;BooleanQuery.Builder bQuery = new BooleanQuery.Builder();List children = booleanNode.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, getModifierValue(child));} catch (TooManyClauses ex) {throw new QueryNodeException(new MessageImpl(QueryParserMessages.TOO_MANY_BOOLEAN_CLAUSES, IndexSearcher.getMaxClauseCount(), queryNode.toQueryString(new EscapeQuerySyntaxImpl())), ex);}}}}return bQuery.build();}", "after": "public virtual Query Build(IQueryNode queryNode){BooleanQueryNode booleanNode = (BooleanQueryNode)queryNode;BooleanQuery bQuery = new BooleanQuery();IList children = booleanNode.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, GetModifierValue(child));}catch (BooleanQuery.TooManyClausesException ex){throw new QueryNodeException(new Message(QueryParserMessages.TOO_MANY_BOOLEAN_CLAUSES, BooleanQuery.MaxClauseCount, queryNode.ToQueryString(new EscapeQuerySyntax())), ex);}}}}return bQuery;}" }, { "index": 3435, "before": "public String getName() {return name;}", "after": "public virtual string GetName(){return name;}" }, { "index": 3436, "before": "public List getTokens(int ttype) {if ( children==null ) {return Collections.emptyList();}List tokens = null;for (ParseTree o : children) {if ( o instanceof TerminalNode ) {TerminalNode tnode = (TerminalNode)o;Token symbol = tnode.getSymbol();if ( symbol.getType()==ttype ) {if ( tokens==null ) {tokens = new ArrayList();}tokens.add(tnode);}}}if ( tokens==null ) {return Collections.emptyList();}return tokens;}", "after": "public virtual ITerminalNode[] GetTokens(int ttype)#endif{if (children == null){return Collections.EmptyList();}List tokens = null;foreach (IParseTree o in children){if (o is ITerminalNode){ITerminalNode tnode = (ITerminalNode)o;IToken symbol = tnode.Symbol;if (symbol.Type == ttype){if (tokens == null){tokens = new List();}tokens.Add(tnode);}}}if (tokens == null){return Collections.EmptyList();}#if (NET45PLUS && !DOTNETCORE)return tokens;#elsereturn tokens.ToArray();#endif}" }, { "index": 3437, "before": "public UpdateApnsChannelResult updateApnsChannel(UpdateApnsChannelRequest request) {request = beforeClientExecution(request);return executeUpdateApnsChannel(request);}", "after": "public virtual UpdateApnsChannelResponse UpdateApnsChannel(UpdateApnsChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApnsChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApnsChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3438, "before": "public String getInput() {return input;}", "after": "public virtual string getInput(){return input;}" }, { "index": 3439, "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, getRecordSize() - HEADER_SIZE );int pos = offset + HEADER_SIZE;System.arraycopy( field_1_UID, 0, data, pos, 16 );data[pos + 16] = field_2_marker;byte[] pd = getPicturedata();System.arraycopy( pd, 0, data, pos + 17, pd.length );listener.afterRecordSerialize(offset + getRecordSize(), getRecordId(), getRecordSize(), this);return HEADER_SIZE + 16 + 1 + pd.length;}", "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, RecordSize - HEADER_SIZE);int pos = offset + HEADER_SIZE;Array.Copy(field_1_UID, 0, data, pos, 16);data[pos + 16] = field_2_marker;Array.Copy(field_pictureData, 0, data, pos + 17, field_pictureData.Length);listener.AfterRecordSerialize(offset + RecordSize, RecordId, RecordSize, this);return HEADER_SIZE + 16 + 1 + field_pictureData.Length;}" }, { "index": 3440, "before": "public DescribeFolderContentsResult describeFolderContents(DescribeFolderContentsRequest request) {request = beforeClientExecution(request);return executeDescribeFolderContents(request);}", "after": "public virtual DescribeFolderContentsResponse DescribeFolderContents(DescribeFolderContentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFolderContentsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFolderContentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3441, "before": "public CreateDBInstanceReadReplicaRequest(String dBInstanceIdentifier, String sourceDBInstanceIdentifier) {setDBInstanceIdentifier(dBInstanceIdentifier);setSourceDBInstanceIdentifier(sourceDBInstanceIdentifier);}", "after": "public CreateDBInstanceReadReplicaRequest(string dbInstanceIdentifier, string sourceDBInstanceIdentifier){_dbInstanceIdentifier = dbInstanceIdentifier;_sourceDBInstanceIdentifier = sourceDBInstanceIdentifier;}" }, { "index": 3442, "before": "public DVRecord clone() {return copy();}", "after": "public override Object Clone(){return CloneViaReserialise();}" }, { "index": 3443, "before": "public CreateDefaultSubnetResult createDefaultSubnet(CreateDefaultSubnetRequest request) {request = beforeClientExecution(request);return executeCreateDefaultSubnet(request);}", "after": "public virtual CreateDefaultSubnetResponse CreateDefaultSubnet(CreateDefaultSubnetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDefaultSubnetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDefaultSubnetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3444, "before": "public AbbreviatedObjectId getNewId() {return newId;}", "after": "public virtual AbbreviatedObjectId GetNewId(){return newId;}" }, { "index": 3445, "before": "public final V setValue(V value) {V oldValue = this.value;this.value = value;return oldValue;}", "after": "public virtual V setValue(V value){V oldValue = this.value;this.value = value;return oldValue;}" }, { "index": 3446, "before": "public int get(String name, int dflt) {int vals[] = (int[]) valByRound.get(name);if (vals != null) {return vals[roundNumber % vals.length];}String sval = props.getProperty(name, \"\" + dflt);if (sval.indexOf(\":\") < 0) {return Integer.parseInt(sval);}int k = sval.indexOf(\":\");String colName = sval.substring(0, k);sval = sval.substring(k + 1);colForValByRound.put(name, colName);vals = propToIntArray(sval);valByRound.put(name, vals);return vals[roundNumber % vals.length];}", "after": "public virtual string Get(string name, string dflt){string[] vals;object temp;if (valByRound.TryGetValue(name, out temp) && temp != null){vals = (string[])temp;return vals[roundNumber % vals.Length];}string sval;if (!props.TryGetValue(name, out sval)){sval = dflt;}if (sval == null){return null;}if (sval.IndexOf(':') < 0){return sval;}else if (sval.IndexOf(\":\\\\\", StringComparison.Ordinal) >= 0 || sval.IndexOf(\":/\", StringComparison.Ordinal) >= 0){return sval;}int k = sval.IndexOf(':');string colName = sval.Substring(0, k - 0);sval = sval.Substring(k + 1);colForValByRound[name] = colName;vals = PropToStringArray(sval);valByRound[name] = vals;return vals[roundNumber % vals.Length];}" }, { "index": 3447, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"extBook=\").append(_extBookIndex);buffer.append(\" firstSheet=\").append(_firstSheetIndex);buffer.append(\" lastSheet=\").append(_lastSheetIndex);return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"extBook=\").Append(_extBookIndex);buffer.Append(\" firstSheet=\").Append(_firstSheetIndex);buffer.Append(\" lastSheet=\").Append(_lastSheetIndex);return buffer.ToString();}" }, { "index": 3448, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeInt(field_1_reserved);out.writeShort(field_2_subex_len);}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteInt(field_1_reserved);out1.WriteShort(field_2_subex_len);}" }, { "index": 3449, "before": "public final Buffer rewind() {position = 0;mark = UNSET_MARK;return this;}", "after": "public java.nio.Buffer rewind(){_position = 0;_mark = UNSET_MARK;return this;}" }, { "index": 3450, "before": "public short getHideObj(){return field_1_hide_obj;}", "after": "public short GetHideObj(){return field_1_hide_obj;}" }, { "index": 3451, "before": "public PrintGridlinesRecord(RecordInputStream in) {field_1_print_gridlines = in.readShort();}", "after": "public PrintGridlinesRecord(RecordInputStream in1){field_1_print_gridlines = in1.ReadShort();}" }, { "index": 3452, "before": "public CreateEventTrackerResult createEventTracker(CreateEventTrackerRequest request) {request = beforeClientExecution(request);return executeCreateEventTracker(request);}", "after": "public virtual CreateEventTrackerResponse CreateEventTracker(CreateEventTrackerRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEventTrackerRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEventTrackerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3453, "before": "public boolean hasNext() {return index < to;}", "after": "public virtual bool hasNext(){return index < to;}" }, { "index": 3454, "before": "public void removeExFormatRecord(ExtendedFormatRecord rec) {records.remove(rec); numxfs--;}", "after": "public void RemoveExFormatRecord(ExtendedFormatRecord rec){records.Remove(rec); numxfs--;}" }, { "index": 3455, "before": "public synchronized void publish(Revision revision) throws IOException {ensureOpen();if (currentRevision != null) {int compare = revision.compareTo(currentRevision.revision);if (compare == 0) {revision.release();return;}if (compare < 0) {revision.release();throw new IllegalArgumentException(\"Cannot publish an older revision: rev=\" + revision + \" current=\"+ currentRevision);}}final RefCountedRevision oldRevision = currentRevision;currentRevision = new RefCountedRevision(revision);if (oldRevision != null) {oldRevision.decRef();}checkExpiredSessions();}", "after": "public virtual void Publish(IRevision revision){lock (padlock){EnsureOpen();if (currentRevision != null){int compare = revision.CompareTo(currentRevision.Revision);if (compare == 0){revision.Release();return;}if (compare < 0){revision.Release();throw new ArgumentException(string.Format(\"Cannot publish an older revision: rev={0} current={1}\", revision, currentRevision), \"revision\");}}RefCountedRevision oldRevision = currentRevision;currentRevision = new RefCountedRevision(revision);if (oldRevision != null)oldRevision.DecRef();CheckExpiredSessions();}}" }, { "index": 3456, "before": "public final boolean equals(AnyObjectId other) {return other != null ? isEqual(this, other) : false;}", "after": "public bool Equals(AnyObjectId other){return other != null ? Equals(this, other) : false;}" }, { "index": 3457, "before": "public DeleteBGPPeerResult deleteBGPPeer(DeleteBGPPeerRequest request) {request = beforeClientExecution(request);return executeDeleteBGPPeer(request);}", "after": "public virtual DeleteBGPPeerResponse DeleteBGPPeer(DeleteBGPPeerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteBGPPeerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteBGPPeerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3458, "before": "public String toString() {return \"I(n)\";}", "after": "public override string ToString(){return \"I(n)\";}" }, { "index": 3459, "before": "public DeleteVpcPeeringConnectionResult deleteVpcPeeringConnection(DeleteVpcPeeringConnectionRequest request) {request = beforeClientExecution(request);return executeDeleteVpcPeeringConnection(request);}", "after": "public virtual DeleteVpcPeeringConnectionResponse DeleteVpcPeeringConnection(DeleteVpcPeeringConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpcPeeringConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpcPeeringConnectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3460, "before": "public UpdateIdentityPoolResult updateIdentityPool(UpdateIdentityPoolRequest request) {request = beforeClientExecution(request);return executeUpdateIdentityPool(request);}", "after": "public virtual UpdateIdentityPoolResponse UpdateIdentityPool(UpdateIdentityPoolRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateIdentityPoolRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateIdentityPoolResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3461, "before": "public String signString(String stringToSign, AlibabaCloudCredentials credentials) {return signString(stringToSign, credentials.getAccessKeySecret());}", "after": "public override string SignString(string stringToSign, AlibabaCloudCredentials credentials){return SignString(stringToSign, credentials.GetAccessKeySecret());}" }, { "index": 3462, "before": "public GetDeviceResult getDevice(GetDeviceRequest request) {request = beforeClientExecution(request);return executeGetDevice(request);}", "after": "public virtual GetDeviceResponse GetDevice(GetDeviceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDeviceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDeviceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3463, "before": "public void writeInt(int v) {writeContinueIfRequired(4);_ulrOutput.writeInt(v);}", "after": "public void WriteInt(int v){_out.WriteInt(v);_size += 4;}" }, { "index": 3464, "before": "public boolean isSuccess() {return 200 <= this.status && this.status < 300;}", "after": "public bool isSuccess(){return 200 <= Status && 300 > Status;}" }, { "index": 3465, "before": "public static CredentialsProvider getDefault() {return defaultProvider;}", "after": "public static CredentialsProvider GetDefault(){return defaultProvider;}" }, { "index": 3466, "before": "public boolean equals(Object obj) {if (obj == this) {return true;}else if (!(obj instanceof LexerPushModeAction)) {return false;}return mode == ((LexerPushModeAction)obj).mode;}", "after": "public override bool Equals(object obj){if (obj == this){return true;}else{if (!(obj is Antlr4.Runtime.Atn.LexerPushModeAction)){return false;}}return mode == ((Antlr4.Runtime.Atn.LexerPushModeAction)obj).mode;}" }, { "index": 3467, "before": "public void dumpDFA() {synchronized (_interp.decisionToDFA) {boolean seenOne = false;for (int d = 0; d < _interp.decisionToDFA.length; d++) {DFA dfa = _interp.decisionToDFA[d];if ( !dfa.states.isEmpty() ) {if ( seenOne ) System.out.println();System.out.println(\"Decision \" + dfa.decision + \":\");System.out.print(dfa.toString(getVocabulary()));seenOne = true;}}}}", "after": "public virtual void DumpDFA(){bool seenOne = false;for (int d = 0; d < Interpreter.decisionToDFA.Length; d++){DFA dfa = Interpreter.decisionToDFA[d];if (dfa.states.Count>0){if (seenOne){Output.WriteLine();}Output.WriteLine(\"Decision \" + dfa.decision + \":\");Output.Write(dfa.ToString(Vocabulary));seenOne = true;}}}" }, { "index": 3468, "before": "public FloatBuffer put(int index, float c) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.FloatBuffer put(int index, float c){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 3469, "before": "public CancelClusterResult cancelCluster(CancelClusterRequest request) {request = beforeClientExecution(request);return executeCancelCluster(request);}", "after": "public virtual CancelClusterResponse CancelCluster(CancelClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3470, "before": "public DeleteSnapshotResult deleteSnapshot(DeleteSnapshotRequest request) {request = beforeClientExecution(request);return executeDeleteSnapshot(request);}", "after": "public virtual DeleteSnapshotResponse DeleteSnapshot(DeleteSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3471, "before": "public DeletePhoneNumberResult deletePhoneNumber(DeletePhoneNumberRequest request) {request = beforeClientExecution(request);return executeDeletePhoneNumber(request);}", "after": "public virtual DeletePhoneNumberResponse DeletePhoneNumber(DeletePhoneNumberRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeletePhoneNumberRequestMarshaller.Instance;options.ResponseUnmarshaller = DeletePhoneNumberResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3472, "before": "public boolean addPushURI(URIish toAdd) {if (pushURIs.contains(toAdd))return false;return pushURIs.add(toAdd);}", "after": "public virtual bool AddPushURI(URIish toAdd){if (pushURIs.Contains(toAdd)){return false;}return pushURIs.AddItem(toAdd);}" }, { "index": 3473, "before": "public BytesRef next() throws IOException {boolean success = false;try {scratch = reader.next();if (scratch == null) {reader.close();}success = true;return scratch;} finally {if (!success) {IOUtils.closeWhileHandlingException(reader);}}}", "after": "public virtual BytesRef Next(){if (scratch == null){return null;}bool success = false;try{byte[] next = reader.Read();if (next != null){scratch.Bytes = next;scratch.Length = next.Length;scratch.Offset = 0;}else{IOUtils.Dispose(reader);scratch = null;}success = true;return scratch;}finally{if (!success){IOUtils.DisposeWhileHandlingException(reader);}}}" }, { "index": 3474, "before": "public void removeCreateDateTime() {remove1stProperty(PropertyIDMap.PID_CREATE_DTM);}", "after": "public void RemoveCreateDateTime(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_Create_DTM);}" }, { "index": 3475, "before": "public CreateHealthCheckResult createHealthCheck(CreateHealthCheckRequest request) {request = beforeClientExecution(request);return executeCreateHealthCheck(request);}", "after": "public virtual CreateHealthCheckResponse CreateHealthCheck(CreateHealthCheckRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateHealthCheckRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateHealthCheckResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3476, "before": "public EnableVgwRoutePropagationResult enableVgwRoutePropagation(EnableVgwRoutePropagationRequest request) {request = beforeClientExecution(request);return executeEnableVgwRoutePropagation(request);}", "after": "public virtual EnableVgwRoutePropagationResponse EnableVgwRoutePropagation(EnableVgwRoutePropagationRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableVgwRoutePropagationRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableVgwRoutePropagationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3477, "before": "public void removeByteCount() {remove1stProperty(PropertyIDMap.PID_BYTECOUNT);}", "after": "public void RemoveByteCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_BYTECOUNT);}" }, { "index": 3478, "before": "public UpdateAutoScalingGroupResult updateAutoScalingGroup(UpdateAutoScalingGroupRequest request) {request = beforeClientExecution(request);return executeUpdateAutoScalingGroup(request);}", "after": "public virtual UpdateAutoScalingGroupResponse UpdateAutoScalingGroup(UpdateAutoScalingGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAutoScalingGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAutoScalingGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3479, "before": "public CreateNotebookInstanceResult createNotebookInstance(CreateNotebookInstanceRequest request) {request = beforeClientExecution(request);return executeCreateNotebookInstance(request);}", "after": "public virtual CreateNotebookInstanceResponse CreateNotebookInstance(CreateNotebookInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNotebookInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNotebookInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3480, "before": "public AllocateAddressResult allocateAddress() {return allocateAddress(new AllocateAddressRequest());}", "after": "public virtual AllocateAddressResponse AllocateAddress(){return AllocateAddress(new AllocateAddressRequest());}" }, { "index": 3481, "before": "public CreateMLModelResult createMLModel(CreateMLModelRequest request) {request = beforeClientExecution(request);return executeCreateMLModel(request);}", "after": "public virtual CreateMLModelResponse CreateMLModel(CreateMLModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateMLModelRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateMLModelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3482, "before": "public ContinueRecord(byte[] data) {_data = data.clone();}", "after": "public ContinueRecord(byte[] data){field_1_data = data;}" }, { "index": 3483, "before": "public Parser getParser() {return parser;}", "after": "public Parser getParser(){return parser;}" }, { "index": 3484, "before": "public DeleteSolutionResult deleteSolution(DeleteSolutionRequest request) {request = beforeClientExecution(request);return executeDeleteSolution(request);}", "after": "public virtual DeleteSolutionResponse DeleteSolution(DeleteSolutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSolutionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSolutionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3485, "before": "public boolean isDelete() {return ObjectId.zeroId().equals(newObjectId);}", "after": "public virtual bool IsDelete(){return ObjectId.ZeroId.Equals(newObjectId);}" }, { "index": 3486, "before": "public int getNextPos() {return nextPos;}", "after": "public int GetNextPos(){return nextPos;}" }, { "index": 3487, "before": "public DescribeSpotFleetInstancesResult describeSpotFleetInstances(DescribeSpotFleetInstancesRequest request) {request = beforeClientExecution(request);return executeDescribeSpotFleetInstances(request);}", "after": "public virtual DescribeSpotFleetInstancesResponse DescribeSpotFleetInstances(DescribeSpotFleetInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSpotFleetInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSpotFleetInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3488, "before": "public ResetPasswordResult resetPassword(ResetPasswordRequest request) {request = beforeClientExecution(request);return executeResetPassword(request);}", "after": "public virtual ResetPasswordResponse ResetPassword(ResetPasswordRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetPasswordRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetPasswordResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3489, "before": "public String toString() {return \"DrawingRecord[\"+recordData.length+\"]\";}", "after": "public override String ToString(){return \"DrawingRecord[\" + recordData.Length + \"]\";}" }, { "index": 3490, "before": "public Status call() throws GitAPIException, NoWorkTreeException {if (workingTreeIt == null)workingTreeIt = new FileTreeIterator(repo);try {IndexDiff diff = new IndexDiff(repo, Constants.HEAD, workingTreeIt);if (ignoreSubmoduleMode != null)diff.setIgnoreSubmoduleMode(ignoreSubmoduleMode);if (paths != null)diff.setFilter(PathFilterGroup.createFromStrings(paths));if (progressMonitor == null)diff.diff();elsediff.diff(progressMonitor, ProgressMonitor.UNKNOWN,ProgressMonitor.UNKNOWN, \"\"); return new Status(diff);} catch (IOException e) {throw new JGitInternalException(e.getMessage(), e);}}", "after": "public override Status Call(){if (workingTreeIt == null){workingTreeIt = new FileTreeIterator(repo);}try{IndexDiff diff = new IndexDiff(repo, Constants.HEAD, workingTreeIt);diff.Diff();return new Status(diff);}catch (IOException e){throw new JGitInternalException(e.Message, e);}}" }, { "index": 3491, "before": "public PathHierarchyTokenizerFactory(Map args) {super(args);delimiter = getChar(args, \"delimiter\", PathHierarchyTokenizer.DEFAULT_DELIMITER);replacement = getChar(args, \"replace\", delimiter);reverse = getBoolean(args, \"reverse\", false);skip = getInt(args, \"skip\", PathHierarchyTokenizer.DEFAULT_SKIP);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public PathHierarchyTokenizerFactory(IDictionary args): base(args){delimiter = GetChar(args, \"delimiter\", PathHierarchyTokenizer.DEFAULT_DELIMITER);replacement = GetChar(args, \"replace\", delimiter);reverse = GetBoolean(args, \"reverse\", false);skip = GetInt32(args, \"skip\", PathHierarchyTokenizer.DEFAULT_SKIP);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 3492, "before": "public String toString() {return super.toString() + \": \" + lockName;}", "after": "public override string ToString(){return base.ToString() + \": \" + lockName;}" }, { "index": 3493, "before": "public CreateFieldLevelEncryptionConfigResult createFieldLevelEncryptionConfig(CreateFieldLevelEncryptionConfigRequest request) {request = beforeClientExecution(request);return executeCreateFieldLevelEncryptionConfig(request);}", "after": "public virtual CreateFieldLevelEncryptionConfigResponse CreateFieldLevelEncryptionConfig(CreateFieldLevelEncryptionConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFieldLevelEncryptionConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFieldLevelEncryptionConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3494, "before": "public Reader reader() {return reader;}", "after": "public java.io.Reader reader(){return _reader;}" }, { "index": 3495, "before": "public DeleteHealthCheckResult deleteHealthCheck(DeleteHealthCheckRequest request) {request = beforeClientExecution(request);return executeDeleteHealthCheck(request);}", "after": "public virtual DeleteHealthCheckResponse DeleteHealthCheck(DeleteHealthCheckRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteHealthCheckRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteHealthCheckResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3496, "before": "public long get() {return count;}", "after": "public override long Get(){return count;}" }, { "index": 3497, "before": "public int setArrayData(byte[] data, int offset) {if (emptyComplexPart) {resizeComplexData(0);} else {short numElements = LittleEndian.getShort(data, offset);short sizeOfElements = LittleEndian.getShort(data, offset + 4);int cdLen = getComplexData().length;int arraySize = getActualSizeOfElements(sizeOfElements) * numElements;if (arraySize == cdLen) {resizeComplexData(arraySize + 6, 0);sizeIncludesHeaderSize = false;}setComplexData(data, offset);}return getComplexData().length;}", "after": "public int SetArrayData(byte[] data, int offset){if (emptyComplexPart){_complexData = new byte[0];}else{short numElements = LittleEndian.GetShort(data, offset);short numReserved = LittleEndian.GetShort(data, offset + 2);short sizeOfElements = LittleEndian.GetShort(data, offset + 4);int arraySize = GetActualSizeOfElements(sizeOfElements) * numElements;if (arraySize == _complexData.Length){_complexData = new byte[arraySize + 6];sizeIncludesHeaderSize = false;}Array.Copy(data, offset, _complexData, 0, _complexData.Length);}return _complexData.Length;}" }, { "index": 3498, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {TwoDEval reference = convertFirstArg(arg0);int columnIx = 0;try {int rowIx = resolveIndexArg(arg1, srcRowIndex, srcColumnIndex);if (!reference.isColumn()) {if (!reference.isRow()) {return ErrorEval.REF_INVALID;}columnIx = rowIx;rowIx = 0;}return getValueFromArea(reference, rowIx, columnIx);} catch (EvaluationException e) {return e.getErrorEval();}}", "after": "public ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){TwoDEval reference = ConvertFirstArg(arg0);int columnIx = 0;try{int rowIx = ResolveIndexArg(arg1, srcRowIndex, srcColumnIndex);if (!reference.IsColumn){if (!reference.IsRow){return ErrorEval.REF_INVALID;}columnIx = rowIx;rowIx = 0;}return GetValueFromArea(reference, rowIx, columnIx);}catch (EvaluationException e){return e.GetErrorEval();}}" }, { "index": 3499, "before": "public boolean seekExact(BytesRef term) throws IOException {throw new UnsupportedOperationException(getClass().getName()+\" does not support seeking\");}", "after": "public override bool SeekExact(BytesRef term){throw new System.NotSupportedException(this.GetType().Name + \" does not support seeking\");}" }, { "index": 3500, "before": "public GetSmsTemplateResult getSmsTemplate(GetSmsTemplateRequest request) {request = beforeClientExecution(request);return executeGetSmsTemplate(request);}", "after": "public virtual GetSmsTemplateResponse GetSmsTemplate(GetSmsTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSmsTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSmsTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3501, "before": "public String getFieldAsString() {if (this.field == null)return null;elsereturn this.field.toString();}", "after": "public virtual string GetFieldAsString(){if (this.m_field == null)return null;elsereturn this.m_field.ToString();}" }, { "index": 3502, "before": "@Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {return IoBridge.read(fd, buffer, byteOffset, byteCount);}", "after": "public override int read(byte[] buffer, int byteOffset, int byteCount){throw new System.NotImplementedException();}" }, { "index": 3503, "before": "public HSSFHyperlink createHyperlink(HyperlinkType type) {return new HSSFHyperlink(type);}", "after": "public NPOI.SS.UserModel.IHyperlink CreateHyperlink(HyperlinkType type){return new HSSFHyperlink(type);}" }, { "index": 3504, "before": "public UpdateGlobalSettingsResult updateGlobalSettings(UpdateGlobalSettingsRequest request) {request = beforeClientExecution(request);return executeUpdateGlobalSettings(request);}", "after": "public virtual UpdateGlobalSettingsResponse UpdateGlobalSettings(UpdateGlobalSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGlobalSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGlobalSettingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3505, "before": "public static String segmentFileName(String segmentName, String segmentSuffix, String ext) {if (ext.length() > 0 || segmentSuffix.length() > 0) {assert !ext.startsWith(\".\");StringBuilder sb = new StringBuilder(segmentName.length() + 2 + segmentSuffix.length() + ext.length());sb.append(segmentName);if (segmentSuffix.length() > 0) {sb.append('_').append(segmentSuffix);}if (ext.length() > 0) {sb.append('.').append(ext);}return sb.toString();} else {return segmentName;}}", "after": "public static string SegmentFileName(string segmentName, string segmentSuffix, string ext){if (ext.Length > 0 || segmentSuffix.Length > 0){Debug.Assert(!ext.StartsWith(\".\", StringComparison.Ordinal));StringBuilder sb = new StringBuilder(segmentName.Length + 2 + segmentSuffix.Length + ext.Length);sb.Append(segmentName);if (segmentSuffix.Length > 0){sb.Append('_').Append(segmentSuffix);}if (ext.Length > 0){sb.Append('.').Append(ext);}return sb.ToString();}else{return segmentName;}}" }, { "index": 3506, "before": "public static JGitText get() {return NLS.getBundleFor(JGitText.class);}", "after": "public static JGitText Get(){return NLS.GetBundleFor();}" }, { "index": 3507, "before": "public void insert(String key, char val) {int len = key.length() + 1; if (freenode + len > eq.length) {redimNodeArrays(eq.length + BLOCK_SIZE);}char strkey[] = new char[len--];key.getChars(0, len, strkey, 0);strkey[len] = 0;root = insert(root, strkey, 0, val);}", "after": "public virtual void Insert(string key, char val){int len = key.Length + 1; if (m_freenode + len > m_eq.Length){RedimNodeArrays(m_eq.Length + BLOCK_SIZE);}char[] strkey = new char[len--];key.CopyTo(0, strkey, 0, len - 0);strkey[len] = (char)0;m_root = Insert(m_root, strkey, 0, val);}" }, { "index": 3508, "before": "public NameRecord createBuiltInName(byte builtInName, int sheetNumber) {if (sheetNumber < 0 || sheetNumber+1 > Short.MAX_VALUE) {throw new IllegalArgumentException(\"Sheet number [\"+sheetNumber+\"]is not valid \");}NameRecord name = new NameRecord(builtInName, sheetNumber);if(linkTable.nameAlreadyExists(name)) {throw new RuntimeException(\"Builtin (\" + builtInName+ \") already exists for sheet (\" + sheetNumber + \")\");}addName(name);return name;}", "after": "public NameRecord CreateBuiltInName(byte builtInName, int index){if (index == -1 || index + 1 > short.MaxValue)throw new ArgumentException(\"Index is not valid [\" + index + \"]\");NameRecord name = new NameRecord(builtInName, (short)(index));AddName(name);return name;}" }, { "index": 3509, "before": "public static int compareArray(char[] larray, int lstartIndex, char[] rarray,int rstartIndex) {if (larray == null) {if (rarray == null || rstartIndex >= rarray.length)return 0;elsereturn -1;} else {if (rarray == null) {if (lstartIndex >= larray.length)return 0;elsereturn 1;}}int li = lstartIndex, ri = rstartIndex;while (li < larray.length && ri < rarray.length && larray[li] == rarray[ri]) {li++;ri++;}if (li == larray.length) {if (ri == rarray.length) {return 0;} else {return -1;}} else {if (ri == rarray.length) {return 1;} else {if (larray[li] > rarray[ri])return 1;elsereturn -1;}}}", "after": "public static int CompareArray(char[] larray, int lstartIndex, char[] rarray,int rstartIndex){if (larray == null){if (rarray == null || rstartIndex >= rarray.Length)return 0;elsereturn -1;}else{if (rarray == null){if (lstartIndex >= larray.Length)return 0;elsereturn 1;}}int li = lstartIndex, ri = rstartIndex;while (li < larray.Length && ri < rarray.Length && larray[li] == rarray[ri]){li++;ri++;}if (li == larray.Length){if (ri == rarray.Length){return 0;}else{return -1;}}else{if (ri == rarray.Length){return 1;}else{if (larray[li] > rarray[ri])return 1;elsereturn -1;}}}" }, { "index": 3510, "before": "public GetVoiceConnectorResult getVoiceConnector(GetVoiceConnectorRequest request) {request = beforeClientExecution(request);return executeGetVoiceConnector(request);}", "after": "public virtual GetVoiceConnectorResponse GetVoiceConnector(GetVoiceConnectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceConnectorRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceConnectorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3511, "before": "public void setValueAt(int relativeOffset, int value) {int oldValue = _values[relativeOffset];_values[relativeOffset] = value;if(value == POIFSConstants.UNUSED_BLOCK) {_has_free_sectors = true;return;}if(oldValue == POIFSConstants.UNUSED_BLOCK) {recomputeFree();}}", "after": "public void SetValueAt(int relativeOffset, int value){int oldValue = _values[relativeOffset];_values[relativeOffset] = value;if (value == POIFSConstants.UNUSED_BLOCK){_has_free_sectors = true;return;}if (oldValue == POIFSConstants.UNUSED_BLOCK){RecomputeFree();}}" }, { "index": 3512, "before": "public static boolean isBinary(byte[] raw) {return isBinary(raw, raw.length);}", "after": "public static bool IsBinary(byte[] raw){return IsBinary(raw, raw.Length);}" }, { "index": 3513, "before": "public void build(InputIterator iterator) throws IOException {if (iterator.hasPayloads()) {throw new IllegalArgumentException(\"this suggester doesn't support payloads\");}if (iterator.hasContexts()) {throw new IllegalArgumentException(\"this suggester doesn't support contexts\");}count = 0;trie = new JaspellTernarySearchTrie();trie.setMatchAlmostDiff(editDistance);BytesRef spare;final CharsRefBuilder charsSpare = new CharsRefBuilder();while ((spare = iterator.next()) != null) {final long weight = iterator.weight();if (spare.length == 0) {continue;}charsSpare.copyUTF8Bytes(spare);trie.put(charsSpare.toString(), Long.valueOf(weight));count++;}}", "after": "public override void Build(IInputIterator tfit){if (tfit.HasPayloads){throw new ArgumentException(\"this suggester doesn't support payloads\");}if (tfit.Comparer != null){tfit = new UnsortedInputIterator(tfit);}if (tfit.HasContexts){throw new System.ArgumentException(\"this suggester doesn't support contexts\");}count = 0;trie = new JaspellTernarySearchTrie { MatchAlmostDiff = editDistance };BytesRef spare;var charsSpare = new CharsRef();while ((spare = tfit.Next()) != null){long weight = tfit.Weight;if (spare.Length == 0){continue;}charsSpare.Grow(spare.Length);UnicodeUtil.UTF8toUTF16(spare.Bytes, spare.Offset, spare.Length, charsSpare);trie.Put(charsSpare.ToString(), weight);}}" }, { "index": 3514, "before": "public boolean isVerticalBorder(){return verticalBorder.isSet(field_1_options);}", "after": "public bool IsVerticalBorder(){return verticalBorder.IsSet(field_1_options);}" }, { "index": 3515, "before": "public CreateDBInstanceRequest(String dBInstanceIdentifier, Integer allocatedStorage, String dBInstanceClass, String engine, String masterUsername,String masterUserPassword) {setDBInstanceIdentifier(dBInstanceIdentifier);setAllocatedStorage(allocatedStorage);setDBInstanceClass(dBInstanceClass);setEngine(engine);setMasterUsername(masterUsername);setMasterUserPassword(masterUserPassword);}", "after": "public CreateDBInstanceRequest(string dbInstanceIdentifier, int allocatedStorage, string dbInstanceClass, string engine, string masterUsername, string masterUserPassword){_dbInstanceIdentifier = dbInstanceIdentifier;_allocatedStorage = allocatedStorage;_dbInstanceClass = dbInstanceClass;_engine = engine;_masterUsername = masterUsername;_masterUserPassword = masterUserPassword;}" }, { "index": 3516, "before": "public DescribeCapacityProvidersResult describeCapacityProviders(DescribeCapacityProvidersRequest request) {request = beforeClientExecution(request);return executeDescribeCapacityProviders(request);}", "after": "public virtual DescribeCapacityProvidersResponse DescribeCapacityProviders(DescribeCapacityProvidersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCapacityProvidersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCapacityProvidersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3517, "before": "public CreateQualificationTypeResult createQualificationType(CreateQualificationTypeRequest request) {request = beforeClientExecution(request);return executeCreateQualificationType(request);}", "after": "public virtual CreateQualificationTypeResponse CreateQualificationType(CreateQualificationTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateQualificationTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateQualificationTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3518, "before": "public void addLast(E object) {addLastImpl(object);}", "after": "public virtual void addLast(E @object){addLastImpl(@object);}" }, { "index": 3519, "before": "public Patch() {files = new ArrayList<>();errors = new ArrayList<>(0);}", "after": "public Patch(){files = new AList();errors = new AList(0);}" }, { "index": 3520, "before": "public GetSdkTypesResult getSdkTypes(GetSdkTypesRequest request) {request = beforeClientExecution(request);return executeGetSdkTypes(request);}", "after": "public virtual GetSdkTypesResponse GetSdkTypes(GetSdkTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSdkTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSdkTypesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3521, "before": "public String toFormulaString() {throw new RuntimeException(\"3D references need a workbook to determine formula text\");}", "after": "public override String ToFormulaString(){throw new NotImplementedException(\"3D references need a workbook to determine formula text\");}" }, { "index": 3522, "before": "public ListPhotoFacesRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"ListPhotoFaces\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public ListPhotoFacesRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"ListPhotoFaces\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 3523, "before": "public boolean isBatchMode() {return batchMode != null && batchMode.booleanValue();}", "after": "public virtual bool IsBatchMode(){return batchMode != null && batchMode.Value;}" }, { "index": 3524, "before": "@Override public boolean isEmpty() {return endpoint(true) == null;}", "after": "public override bool isEmpty(){return this.endpoint(true) == null;}" }, { "index": 3525, "before": "@Override public Set> entrySet() {BoundedEntrySet result = entrySet;return result != null ? result : (entrySet = new BoundedEntrySet());}", "after": "public override java.util.Set> entrySet(){java.util.TreeMap.BoundedMap.BoundedEntrySet result = this._entrySet;return result != null ? result : (this._entrySet = new java.util.TreeMap.BoundedMap.BoundedEntrySet(this));}" }, { "index": 3526, "before": "public static CFRuleRecord create(HSSFSheet sheet, String formulaText) {Ptg[] formula1 = parseFormula(formulaText, sheet);return new CFRuleRecord(CONDITION_TYPE_FORMULA, ComparisonOperator.NO_COMPARISON,formula1, null);}", "after": "public static CFRuleRecord Create(HSSFSheet sheet, String formulaText){Ptg[] formula1 = ParseFormula(formulaText, sheet);return new CFRuleRecord(CONDITION_TYPE_FORMULA, ComparisonOperator.NoComparison,formula1, null);}" }, { "index": 3527, "before": "public DeleteAlbumsRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"DeleteAlbums\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public DeleteAlbumsRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"DeleteAlbums\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 3528, "before": "public MissingFormatArgumentException(String s) {if (s == null) {throw new NullPointerException();}this.s = s;}", "after": "public MissingFormatArgumentException(string s){if (s == null){throw new System.ArgumentNullException();}this.s = s;}" }, { "index": 3529, "before": "public DeleteApplicationOutputResult deleteApplicationOutput(DeleteApplicationOutputRequest request) {request = beforeClientExecution(request);return executeDeleteApplicationOutput(request);}", "after": "public virtual DeleteApplicationOutputResponse DeleteApplicationOutput(DeleteApplicationOutputRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApplicationOutputRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApplicationOutputResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3530, "before": "public PredictionContextCache getSharedContextCache() {return sharedContextCache;}", "after": "public PredictionContextCache getSharedContextCache(){return sharedContextCache;}" }, { "index": 3531, "before": "public String toString() {StringBuilder sb = new StringBuilder(64);sb.append(getClass().getName()).append(\" [\");sb.append(getText());sb.append(\"]\");return sb.toString();}", "after": "public override String ToString() {StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(\" [\");sb.Append(Text);sb.Append(\"]\");return sb.ToString();}" }, { "index": 3532, "before": "public DecisionState getDecisionState(int decision) {if ( !decisionToState.isEmpty() ) {return decisionToState.get(decision);}return null;}", "after": "public virtual DecisionState GetDecisionState(int decision){if (decisionToState.Count != 0){return decisionToState[decision];}return null;}" }, { "index": 3533, "before": "public void removeSheet(int sheetIdx) {_externSheetRecord.removeSheet(sheetIdx);}", "after": "public void RemoveSheet(int sheetIdx){_externSheetRecord.RemoveSheet(sheetIdx);}" }, { "index": 3534, "before": "public HSSFRequest() {_records = new HashMap<>(50); }", "after": "public HSSFRequest(){records =new Hashtable(50); }" }, { "index": 3535, "before": "final public QueryNode TopLevelQuery(CharSequence field) throws ParseException {QueryNode q;q = Query(field);jj_consume_token(0);{if (true) return q;}throw new Error(\"Missing return statement in function\");}", "after": "public IQueryNode TopLevelQuery(string field){IQueryNode q;q = Query(field);Jj_consume_token(0);{ if (true) return q; }throw new Exception(\"Missing return statement in function\");}" }, { "index": 3536, "before": "public DescribeUpdateResult describeUpdate(DescribeUpdateRequest request) {request = beforeClientExecution(request);return executeDescribeUpdate(request);}", "after": "public virtual DescribeUpdateResponse DescribeUpdate(DescribeUpdateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUpdateRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUpdateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3537, "before": "public boolean getValue() {return value;}", "after": "public virtual bool GetValue(){return value;}" }, { "index": 3538, "before": "public final int getType() {return (flags >> TYPE_SHIFT) & 0x7;}", "after": "public virtual int GetType(){return (flags >> TYPE_SHIFT) & unchecked((int)(0x7));}" }, { "index": 3539, "before": "public DoubleBuffer put(double c) {if (position == limit) {throw new BufferOverflowException();}byteBuffer.putDouble(position++ * SizeOf.DOUBLE, c);return this;}", "after": "public override java.nio.DoubleBuffer put(double c){if (_position == _limit){throw new java.nio.BufferOverflowException();}byteBuffer.putDouble(_position++ * libcore.io.SizeOf.DOUBLE, c);return this;}" }, { "index": 3540, "before": "public void endEvaluate(CellCacheEntry cce) {int nFrames = _evaluationFrames.size();if (nFrames < 1) {throw new IllegalStateException(\"Call to endEvaluate without matching call to startEvaluate\");}nFrames--;CellEvaluationFrame frame = _evaluationFrames.get(nFrames);if (cce != frame.getCCE()) {throw new IllegalStateException(\"Wrong cell specified. \");}_evaluationFrames.remove(nFrames);_currentlyEvaluatingCells.remove(cce);}", "after": "public void EndEvaluate(CellCacheEntry cce){int nFrames = _evaluationFrames.Count;if (nFrames < 1){throw new InvalidOperationException(\"Call To endEvaluate without matching call To startEvaluate\");}nFrames--;CellEvaluationFrame frame = (CellEvaluationFrame)_evaluationFrames[nFrames];if (cce != frame.GetCCE()){throw new InvalidOperationException(\"Wrong cell specified. \");}_evaluationFrames.RemoveAt(nFrames);_currentlyEvaluatingCells.Remove(cce);}" }, { "index": 3541, "before": "public NumberPtg(double value) {field_1_value = value;}", "after": "public NumberPtg(double value){field_1_value = value;}" }, { "index": 3542, "before": "public GroupingSearch setGroupSort(Sort groupSort) {this.groupSort = groupSort;return this;}", "after": "public virtual GroupingSearch SetGroupSort(Sort groupSort){this.groupSort = groupSort;return this;}" }, { "index": 3543, "before": "public HSSFBorderFormatting createBorderFormatting() {return getBorderFormatting(true);}", "after": "public IBorderFormatting CreateBorderFormatting(){return GetBorderFormatting(true);}" }, { "index": 3544, "before": "public HSSFSimpleShape createShape(HSSFChildAnchor anchor) {HSSFSimpleShape shape = new HSSFSimpleShape(this, anchor);shape.setParent(this);shape.setAnchor(anchor);shapes.add(shape);onCreate(shape);EscherSpRecord sp = shape.getEscherContainer().getChildById(EscherSpRecord.RECORD_ID);if (shape.getAnchor().isHorizontallyFlipped()){sp.setFlags(sp.getFlags() | EscherSpRecord.FLAG_FLIPHORIZ);}if (shape.getAnchor().isVerticallyFlipped()){sp.setFlags(sp.getFlags() | EscherSpRecord.FLAG_FLIPVERT);}return shape;}", "after": "public HSSFSimpleShape CreateShape(HSSFChildAnchor anchor){HSSFSimpleShape shape = new HSSFSimpleShape(this, anchor);shape.Parent = this;shape.Anchor = anchor;shapes.Add(shape);OnCreate(shape);EscherSpRecord sp = (EscherSpRecord)shape.GetEscherContainer().GetChildById(EscherSpRecord.RECORD_ID);if (shape.Anchor.IsHorizontallyFlipped){sp.Flags = (sp.Flags | EscherSpRecord.FLAG_FLIPHORIZ);}if (shape.Anchor.IsVerticallyFlipped){sp.Flags = (sp.Flags | EscherSpRecord.FLAG_FLIPVERT);}return shape;}" }, { "index": 3545, "before": "public GetLifecyclePolicyResult getLifecyclePolicy(GetLifecyclePolicyRequest request) {request = beforeClientExecution(request);return executeGetLifecyclePolicy(request);}", "after": "public virtual GetLifecyclePolicyResponse GetLifecyclePolicy(GetLifecyclePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetLifecyclePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetLifecyclePolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3546, "before": "public Integer integerValue(String key) {String value = responseMap.get(key);if (null == value || 0 == value.length()) {return null;}return Integer.valueOf(value);}", "after": "public int? IntegerValue(string key){if (null != DictionaryUtil.Get(ResponseDictionary, key)){return int.Parse(DictionaryUtil.Get(ResponseDictionary, key));}return null;}" }, { "index": 3547, "before": "public int size() {return backingMap.size();}", "after": "public override int size(){return backingMap.size();}" }, { "index": 3548, "before": "public Map.Entry next() {if (!valueIterator.hasNext()) {findValueIteratorAndKey();}return Maps.immutableEntry(key, valueIterator.next());}", "after": "public override java.util.MapClass.Entry next(){return this.nextEntry();}" }, { "index": 3549, "before": "public boolean shouldBeRecursive() {return a.shouldBeRecursive();}", "after": "public override bool ShouldBeRecursive(){return a.ShouldBeRecursive();}" }, { "index": 3550, "before": "public GetRepoAuthorizationListRequest() {super(\"cr\", \"2016-06-07\", \"GetRepoAuthorizationList\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/authorizations\");setMethod(MethodType.GET);}", "after": "public GetRepoAuthorizationListRequest(): base(\"cr\", \"2016-06-07\", \"GetRepoAuthorizationList\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/authorizations\";Method = MethodType.GET;}" }, { "index": 3551, "before": "public int checkExternSheet(int sheetIndex) {return checkExternSheet(sheetIndex, sheetIndex);}", "after": "public int CheckExternSheet(int sheetIndex){return CheckExternSheet(sheetIndex, sheetIndex);}" }, { "index": 3552, "before": "public LexerATNConfig(LexerATNConfig c, ATNState state) {super(c, state, c.context, c.semanticContext);this.lexerActionExecutor = c.lexerActionExecutor;this.passedThroughNonGreedyDecision = checkNonGreedyDecision(c, state);}", "after": "public LexerATNConfig(LexerATNConfig c, ATNState state): base(c, state, c.context, c.semanticContext){this.lexerActionExecutor = c.lexerActionExecutor;this.passedThroughNonGreedyDecision = checkNonGreedyDecision(c, state);}" }, { "index": 3553, "before": "public QueryNodeProcessor set(int index, QueryNodeProcessor processor) {QueryNodeProcessor oldProcessor = this.processors.set(index, processor);if (oldProcessor != processor) {processor.setQueryConfigHandler(this.queryConfig);}return oldProcessor;}", "after": "public virtual IQueryNodeProcessor Set(int index, IQueryNodeProcessor processor){IQueryNodeProcessor oldProcessor = this.processors[index];this.processors[index] = processor;if (oldProcessor != processor){processor.SetQueryConfigHandler(this.queryConfig);}return oldProcessor;}" }, { "index": 3554, "before": "public String getRuleName(int index) {if ( parser!=null && index>=0 ) return parser.getRuleNames()[index];return \"\";}", "after": "public string GetRuleName(int index){if (parser != null && index >= 0) return parser.RuleNames[index];return \"\";}" }, { "index": 3555, "before": "public ByteBuffer compact() {System.arraycopy(backingArray, position + offset, backingArray, offset, remaining());position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}", "after": "public override java.nio.ByteBuffer compact(){System.Array.Copy(backingArray, _position + offset, backingArray, offset, remaining());_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}" }, { "index": 3556, "before": "public DirCache call() throws GitAPIException,NoFilepatternException {if (filepatterns.isEmpty())throw new NoFilepatternException(JGitText.get().atLeastOnePatternIsRequired);checkCallable();DirCache dc = null;List actuallyDeletedFiles = new ArrayList<>();try (TreeWalk tw = new TreeWalk(repo)) {dc = repo.lockDirCache();DirCacheBuilder builder = dc.builder();tw.reset(); tw.setRecursive(true);tw.setFilter(PathFilterGroup.createFromStrings(filepatterns));tw.addTree(new DirCacheBuildIterator(builder));while (tw.next()) {if (!cached) {final FileMode mode = tw.getFileMode(0);if (mode.getObjectType() == Constants.OBJ_BLOB) {String relativePath = tw.getPathString();final File path = new File(repo.getWorkTree(),relativePath);if (delete(path)) {actuallyDeletedFiles.add(relativePath);}}}}builder.commit();setCallable(false);} catch (IOException e) {throw new JGitInternalException(JGitText.get().exceptionCaughtDuringExecutionOfRmCommand, e);} finally {try {if (dc != null) {dc.unlock();}} finally {if (!actuallyDeletedFiles.isEmpty()) {repo.fireEvent(new WorkingTreeModifiedEvent(null,actuallyDeletedFiles));}}}return dc;}", "after": "public override DirCache Call(){if (filepatterns.IsEmpty()){throw new NoFilepatternException(JGitText.Get().atLeastOnePatternIsRequired);}CheckCallable();DirCache dc = null;try{dc = repo.LockDirCache();DirCacheBuilder builder = dc.Builder();TreeWalk tw = new TreeWalk(repo);tw.Reset();tw.Recursive = true;tw.Filter = PathFilterGroup.CreateFromStrings(filepatterns);tw.AddTree(new DirCacheBuildIterator(builder));while (tw.Next()){FilePath path = new FilePath(repo.WorkTree, tw.PathString);FileMode mode = tw.GetFileMode(0);if (mode.GetObjectType() == Constants.OBJ_BLOB){Delete(path);}}builder.Commit();SetCallable(false);}catch (IOException e){throw new JGitInternalException(JGitText.Get().exceptionCaughtDuringExecutionOfRmCommand, e);}finally{if (dc != null){dc.Unlock();}}return dc;}" }, { "index": 3557, "before": "public DeleteGatewayResponseResult deleteGatewayResponse(DeleteGatewayResponseRequest request) {request = beforeClientExecution(request);return executeDeleteGatewayResponse(request);}", "after": "public virtual DeleteGatewayResponseResponse DeleteGatewayResponse(DeleteGatewayResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGatewayResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGatewayResponseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3558, "before": "public TokenStream create(TokenStream input) {return new NorwegianLightStemFilter(input, flags);}", "after": "public override TokenStream Create(TokenStream input){return new NorwegianLightStemFilter(input, flags);}" }, { "index": 3559, "before": "public GetUserSourceRepoListRequest() {super(\"cr\", \"2016-06-07\", \"GetUserSourceRepoList\", \"cr\");setUriPattern(\"/users/sourceAccount/[SourceAccountId]/repos\");setMethod(MethodType.GET);}", "after": "public GetUserSourceRepoListRequest(): base(\"cr\", \"2016-06-07\", \"GetUserSourceRepoList\", \"cr\", \"openAPI\"){UriPattern = \"/users/sourceAccount/[SourceAccountId]/repos\";Method = MethodType.GET;}" }, { "index": 3560, "before": "public DescribeEventBusResult describeEventBus(DescribeEventBusRequest request) {request = beforeClientExecution(request);return executeDescribeEventBus(request);}", "after": "public virtual DescribeEventBusResponse DescribeEventBus(DescribeEventBusRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEventBusRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEventBusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3561, "before": "public DefaultAcsClient(IClientProfile profile, AlibabaCloudCredentialsProvider credentialsProvider) {this.clientProfile = profile;this.credentialsProvider = credentialsProvider;this.clientProfile.setCredentialsProvider(this.credentialsProvider);this.httpClient = HttpClientFactory.buildClient(this.clientProfile);this.endpointResolver = new DefaultEndpointResolver(this, profile);this.appendUserAgent(\"HTTPClient\", this.httpClient.getClass().getSimpleName());}", "after": "public DefaultAcsClient(IClientProfile profile, AlibabaCloudCredentialsProvider credentialsProvider) : this(){clientProfile = profile;this.credentialsProvider = credentialsProvider;clientProfile.SetCredentialsProvider(this.credentialsProvider);}" }, { "index": 3562, "before": "public String toString() {StringBuilder result = new StringBuilder(limit - position);for (int i = position; i < limit; i++) {result.append(get(i));}return result.toString();}", "after": "public override string ToString(){java.lang.StringBuilder result = new java.lang.StringBuilder(_limit - _position);{for (int i = _position; i < _limit; i++){result.append(get(i));}}return result.ToString();}" }, { "index": 3563, "before": "public final byte[] replacement() {return replacementBytes;}", "after": "public byte[] replacement(){return replacementBytes;}" }, { "index": 3564, "before": "public SeriesToChartGroupRecord clone() {return copy();}", "after": "public override Object Clone(){SeriesToChartGroupRecord rec = new SeriesToChartGroupRecord();rec.field_1_chartGroupIndex = field_1_chartGroupIndex;return rec;}" }, { "index": 3565, "before": "public AttributeValue(java.util.List sS) {setSS(sS);}", "after": "public AttributeValue(List ss){_ss = ss;}" }, { "index": 3566, "before": "public HSSFComment(EscherContainerRecord spContainer, ObjRecord objRecord, TextObjectRecord textObjectRecord, NoteRecord note) {super(spContainer, objRecord, textObjectRecord);_note = note;}", "after": "public HSSFComment(EscherContainerRecord spContainer, ObjRecord objRecord, TextObjectRecord textObjectRecord, NoteRecord _note): base(spContainer, objRecord, textObjectRecord){this._note = _note;}" }, { "index": 3567, "before": "public FilteredDocIdSetIterator(DocIdSetIterator innerIter) {if (innerIter == null) {throw new IllegalArgumentException(\"null iterator\");}_innerIter = innerIter;doc = -1;}", "after": "public FilteredDocIdSetIterator(DocIdSetIterator innerIter){if (innerIter == null){throw new System.ArgumentException(\"null iterator\");}m_innerIter = innerIter;doc = -1;}" }, { "index": 3568, "before": "public DeleteDBClusterParameterGroupResult deleteDBClusterParameterGroup(DeleteDBClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeDeleteDBClusterParameterGroup(request);}", "after": "public virtual DeleteDBClusterParameterGroupResponse DeleteDBClusterParameterGroup(DeleteDBClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBClusterParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3569, "before": "public LongsRef next(int count) throws IOException {assert nextValues.length >= 0;assert count > 0;assert nextValues.offset + nextValues.length <= nextValues.longs.length;nextValues.offset += nextValues.length;final int remaining = valueCount - position - 1;if (remaining <= 0) {throw new EOFException();}count = Math.min(remaining, count);if (nextValues.offset == nextValues.longs.length) {final long remainingBlocks = format.byteCount(packedIntsVersion, remaining, bitsPerValue);final int blocksToRead = (int) Math.min(remainingBlocks, nextBlocks.length);in.readBytes(nextBlocks, 0, blocksToRead);if (blocksToRead < nextBlocks.length) {Arrays.fill(nextBlocks, blocksToRead, nextBlocks.length, (byte) 0);}bulkOperation.decode(nextBlocks, 0, nextValues.longs, 0, iterations);nextValues.offset = 0;}nextValues.length = Math.min(nextValues.longs.length - nextValues.offset, count);position += nextValues.length;return nextValues;}", "after": "public override Int64sRef Next(int count){Debug.Assert(nextValues.Length >= 0);Debug.Assert(count > 0);Debug.Assert(nextValues.Offset + nextValues.Length <= nextValues.Int64s.Length);nextValues.Offset += nextValues.Length;int remaining = m_valueCount - position - 1;if (remaining <= 0){throw new System.IO.EndOfStreamException();}count = Math.Min(remaining, count);if (nextValues.Offset == nextValues.Int64s.Length){long remainingBlocks = format.ByteCount(packedIntsVersion, remaining, m_bitsPerValue);int blocksToRead = (int)Math.Min(remainingBlocks, nextBlocks.Length);m_in.ReadBytes(nextBlocks, 0, blocksToRead);if (blocksToRead < nextBlocks.Length){Arrays.Fill(nextBlocks, blocksToRead, nextBlocks.Length, (byte)0);}bulkOperation.Decode(nextBlocks, 0, nextValues.Int64s, 0, iterations);nextValues.Offset = 0;}nextValues.Length = Math.Min(nextValues.Int64s.Length - nextValues.Offset, count);position += nextValues.Length;return nextValues;}" }, { "index": 3570, "before": "public UpdateServiceAccessPoliciesResult updateServiceAccessPolicies(UpdateServiceAccessPoliciesRequest request) {request = beforeClientExecution(request);return executeUpdateServiceAccessPolicies(request);}", "after": "public virtual UpdateServiceAccessPoliciesResponse UpdateServiceAccessPolicies(UpdateServiceAccessPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateServiceAccessPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateServiceAccessPoliciesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3571, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(sid);out.writeShort(ENCODED_SIZE);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(sid);out1.WriteShort(ENCODED_SIZE);}" }, { "index": 3572, "before": "public GetApplicationSettingsResult getApplicationSettings(GetApplicationSettingsRequest request) {request = beforeClientExecution(request);return executeGetApplicationSettings(request);}", "after": "public virtual GetApplicationSettingsResponse GetApplicationSettings(GetApplicationSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApplicationSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApplicationSettingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3573, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getCodepage());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Codepage);}" }, { "index": 3574, "before": "public SharedFormulaRecord(RecordInputStream in) {super(in);field_5_reserved = in.readShort();int field_6_expression_len = in.readShort();int nAvailableBytes = in.available();field_7_parsed_expr = Formula.read(field_6_expression_len, in, nAvailableBytes);}", "after": "public SharedFormulaRecord(RecordInputStream in1): base(in1){field_5_reserved = in1.ReadShort();int field_6_expression_len = in1.ReadShort();int nAvailableBytes = in1.Available();field_7_parsed_expr = NPOI.SS.Formula.Formula.Read(field_6_expression_len, in1, nAvailableBytes);}" }, { "index": 3575, "before": "public void remove() {if (this.lastPosition == -1) {throw new IllegalStateException();}if (expectedModCount != modCount) {throw new ConcurrentModificationException();}try {AbstractList.this.remove(lastPosition);} catch (IndexOutOfBoundsException e) {throw new ConcurrentModificationException();}expectedModCount = modCount;if (pos == lastPosition) {pos--;}lastPosition = -1;}", "after": "public virtual void remove(){if (this.lastPosition == -1){throw new System.InvalidOperationException();}if (this.expectedModCount != this._enclosing.modCount){throw new java.util.ConcurrentModificationException();}try{this._enclosing.remove(this.lastPosition);}catch (System.IndexOutOfRangeException){throw new java.util.ConcurrentModificationException();}this.expectedModCount = this._enclosing.modCount;if (this.pos == this.lastPosition){this.pos--;}this.lastPosition = -1;}" }, { "index": 3576, "before": "public int getRef(Character way) {Cell c = at(way);return (c == null) ? -1 : c.ref;}", "after": "public int GetRef(char way){Cell c = At(way);return (c == null) ? -1 : c.@ref;}" }, { "index": 3577, "before": "public K ceilingKey(K key) {Entry entry = findBounded(key, CEILING);return entry != null ? entry.getKey() : null;}", "after": "public K ceilingKey(K key){java.util.MapClass.Entry entry = this.findBounded(key, java.util.TreeMap.Relation.CEILING);return entry != null ? entry.getKey() : default(K);}" }, { "index": 3578, "before": "public CreateApplicationRequest(String applicationName) {setApplicationName(applicationName);}", "after": "public CreateApplicationRequest(string applicationName){_applicationName = applicationName;}" }, { "index": 3579, "before": "public int pathCompare(byte[] buf, int pos, int end, int pathMode) {return pathCompare(buf, pos, end, pathMode, 0);}", "after": "public virtual int PathCompare(byte[] buf, int pos, int end, int mode){return PathCompare(buf, pos, end, mode, 0);}" }, { "index": 3580, "before": "public DescribeContainerInstancesResult describeContainerInstances(DescribeContainerInstancesRequest request) {request = beforeClientExecution(request);return executeDescribeContainerInstances(request);}", "after": "public virtual DescribeContainerInstancesResponse DescribeContainerInstances(DescribeContainerInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeContainerInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeContainerInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3581, "before": "public void serialize(LittleEndianOutput out) {for (short tabid : _tabids) {out.writeShort(tabid);}}", "after": "public override void Serialize(ILittleEndianOutput out1){short[] tabids = _tabids;for (int i = 0; i < tabids.Length; i++){out1.WriteShort(tabids[i]);}}" }, { "index": 3582, "before": "public ListIAMPolicyAssignmentsForUserResult listIAMPolicyAssignmentsForUser(ListIAMPolicyAssignmentsForUserRequest request) {request = beforeClientExecution(request);return executeListIAMPolicyAssignmentsForUser(request);}", "after": "public virtual ListIAMPolicyAssignmentsForUserResponse ListIAMPolicyAssignmentsForUser(ListIAMPolicyAssignmentsForUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIAMPolicyAssignmentsForUserRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIAMPolicyAssignmentsForUserResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3583, "before": "public boolean equals(Object obj) {if (obj instanceof Map.Entry) {final Object key = ((Map.Entry) obj).getKey();final Object val = ((Map.Entry) obj).getValue();if (key instanceof String && val instanceof Ref) {final Ref r = (Ref) val;if (r.getName().equals(ref.getName())) {final ObjectId a = r.getObjectId();final ObjectId b = ref.getObjectId();if (a != null && b != null&& AnyObjectId.isEqual(a, b)) {return true;}}}}return false;}", "after": "public override bool Equals(object obj){if (obj is DictionaryEntry){object key = ((DictionaryEntry)obj).Key;object val = ((DictionaryEntry)obj).Value;if (key is string && val is Ref){Ref r = (Ref)val;if (r.GetName().Equals(this.@ref.GetName())){ObjectId a = r.GetObjectId();ObjectId b = this.@ref.GetObjectId();if (a != null && b != null && AnyObjectId.Equals(a, b)){return true;}}}}return false;}" }, { "index": 3584, "before": "public RemoveFacetFromObjectResult removeFacetFromObject(RemoveFacetFromObjectRequest request) {request = beforeClientExecution(request);return executeRemoveFacetFromObject(request);}", "after": "public virtual RemoveFacetFromObjectResponse RemoveFacetFromObject(RemoveFacetFromObjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveFacetFromObjectRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveFacetFromObjectResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3585, "before": "public static boolean equals(char[] array1, char[] array2) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length != array2.length) {return false;}for (int i = 0; i < array1.length; i++) {if (array1[i] != array2[i]) {return false;}}return true;}", "after": "public static bool equals(char[] array1, char[] array2){if (array1 == array2){return true;}if (array1 == null || array2 == null || array1.Length != array2.Length){return false;}{for (int i = 0; i < array1.Length; i++){if (array1[i] != array2[i]){return false;}}}return true;}" }, { "index": 3586, "before": "public AssociateRouteTableResult associateRouteTable(AssociateRouteTableRequest request) {request = beforeClientExecution(request);return executeAssociateRouteTable(request);}", "after": "public virtual AssociateRouteTableResponse AssociateRouteTable(AssociateRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateRouteTableResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3587, "before": "public void createInformationProperties() {if (!initialized) {readProperties();}if (sInf == null) {sInf = PropertySetFactory.newSummaryInformation();}if (dsInf == null) {dsInf = newDocumentSummaryInformation();}}", "after": "public void CreateInformationProperties(){if (!initialized) ReadProperties();if (sInf == null){sInf = PropertySetFactory.CreateSummaryInformation();}if (dsInf == null){dsInf = PropertySetFactory.CreateDocumentSummaryInformation();}}" }, { "index": 3588, "before": "public DescribeCommentsResult describeComments(DescribeCommentsRequest request) {request = beforeClientExecution(request);return executeDescribeComments(request);}", "after": "public virtual DescribeCommentsResponse DescribeComments(DescribeCommentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCommentsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCommentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3589, "before": "public MoPenCreateDeviceRequest() {super(\"MoPen\", \"2018-02-11\", \"MoPenCreateDevice\", \"mopen\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public MoPenCreateDeviceRequest(): base(\"MoPen\", \"2018-02-11\", \"MoPenCreateDevice\", \"mopen\", \"openAPI\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 3590, "before": "public ApplySchemaResult applySchema(ApplySchemaRequest request) {request = beforeClientExecution(request);return executeApplySchema(request);}", "after": "public virtual ApplySchemaResponse ApplySchema(ApplySchemaRequest request){var options = new InvokeOptions();options.RequestMarshaller = ApplySchemaRequestMarshaller.Instance;options.ResponseUnmarshaller = ApplySchemaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3591, "before": "public MMSRecord(RecordInputStream in) {if (in.remaining()==0) {return;}field_1_addMenuCount = in.readByte();field_2_delMenuCount = in.readByte();}", "after": "public MMSRecord(RecordInputStream in1){if (in1.Remaining == 0){return;}field_1_AddMenuCount = (byte)in1.ReadByte();field_2_delMenuCount = (byte)in1.ReadByte();}" }, { "index": 3592, "before": "public UserInputQueryBuilder(QueryParser parser) {this.unSafeParser = parser;}", "after": "public UserInputQueryBuilder(QueryParser parser){this.unSafeParser = parser;}" }, { "index": 3593, "before": "public Object get(CharSequence key) {TSTNode node = getNode(key);if (node == null) {return null;}return node.data;}", "after": "public virtual object Get(string key){TSTNode node = GetNode(key);if (node == null){return null;}return node.data;}" }, { "index": 3594, "before": "public MergedGroup(T groupValue) {this.groupValue = groupValue;}", "after": "public MergedGroup(T groupValue){this.groupValue = groupValue;}" }, { "index": 3595, "before": "public StoredField(String name, int value) {super(name, TYPE);fieldsData = value;}", "after": "public StoredField(string name, int value): base(name, TYPE){FieldsData = new Int32(value);}" }, { "index": 3596, "before": "public RebaseCommand setProgressMonitor(ProgressMonitor monitor) {if (monitor == null) {monitor = NullProgressMonitor.INSTANCE;}this.monitor = monitor;return this;}", "after": "public virtual NGit.Api.RebaseCommand SetProgressMonitor(ProgressMonitor monitor){this.monitor = monitor;return this;}" }, { "index": 3597, "before": "public UnknownSubRecord clone() {return copy();}", "after": "public override Object Clone(){return this;}" }, { "index": 3598, "before": "public Query getQuery(Element e) throws ParserException {String fieldName = DOMUtils.getAttributeWithInheritanceOrFail(e, \"fieldName\");String text = DOMUtils.getNonBlankTextOrFail(e);BooleanQuery.Builder bq = new BooleanQuery.Builder();bq.setMinimumNumberShouldMatch(DOMUtils.getAttribute(e, \"minimumNumberShouldMatch\", 0));try (TokenStream ts = analyzer.tokenStream(fieldName, text)) {TermToBytesRefAttribute termAtt = ts.addAttribute(TermToBytesRefAttribute.class);Term term = null;ts.reset();while (ts.incrementToken()) {term = new Term(fieldName, BytesRef.deepCopyOf(termAtt.getBytesRef()));bq.add(new BooleanClause(new TermQuery(term), BooleanClause.Occur.SHOULD));}ts.end();}catch (IOException ioe) {throw new RuntimeException(\"Error constructing terms from index:\" + ioe);}Query q = bq.build();float boost = DOMUtils.getAttribute(e, \"boost\", 1.0f);return new BoostQuery(q, boost);}", "after": "public virtual Query GetQuery(XmlElement e){string fieldName = DOMUtils.GetAttributeWithInheritanceOrFail(e, \"fieldName\");string text = DOMUtils.GetNonBlankTextOrFail(e);BooleanQuery bq = new BooleanQuery(DOMUtils.GetAttribute(e, \"disableCoord\", false));bq.MinimumNumberShouldMatch = DOMUtils.GetAttribute(e, \"minimumNumberShouldMatch\", 0);TokenStream ts = null;try{ts = analyzer.GetTokenStream(fieldName, text);ITermToBytesRefAttribute termAtt = ts.AddAttribute();Term term = null;BytesRef bytes = termAtt.BytesRef;ts.Reset();while (ts.IncrementToken()){termAtt.FillBytesRef();term = new Term(fieldName, BytesRef.DeepCopyOf(bytes));bq.Add(new BooleanClause(new TermQuery(term), Occur.SHOULD));}ts.End();}catch (IOException ioe){throw new Exception(\"Error constructing terms from index:\" + ioe);}finally{IOUtils.DisposeWhileHandlingException(ts);}bq.Boost = DOMUtils.GetAttribute(e, \"boost\", 1.0f);return bq;}" }, { "index": 3599, "before": "public UpdateMailboxQuotaResult updateMailboxQuota(UpdateMailboxQuotaRequest request) {request = beforeClientExecution(request);return executeUpdateMailboxQuota(request);}", "after": "public virtual UpdateMailboxQuotaResponse UpdateMailboxQuota(UpdateMailboxQuotaRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateMailboxQuotaRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateMailboxQuotaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3600, "before": "public String toString(){StringBuilder buffer = new StringBuilder(40 * (path.length() + 1));for (int j = 0; j < path.length(); j++){buffer.append(path.getComponent(j)).append(\"/\");}buffer.append(name);return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder(40 * (path.Length + 1));for (int j = 0; j < path.Length; j++){buffer.Append(path.GetComponent(j)).Append(\"/\");}buffer.Append(name);return buffer.ToString();}" }, { "index": 3601, "before": "public void removeApplicationName() {remove1stProperty(PropertyIDMap.PID_APPNAME);}", "after": "public void RemoveApplicationName(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_APPNAME);}" }, { "index": 3602, "before": "public String toString(){StringBuilder sb = new StringBuilder();sb.append(getClass().getName());sb.append(\" [\");if (externalWorkbookNumber >= 0) {sb.append(\" [\");sb.append(\"workbook=\").append(getExternalWorkbookNumber());sb.append(\"] \");}sb.append(\"sheet=\").append(getSheetName());sb.append(\" ! \");sb.append(\"name=\");sb.append(nameName);sb.append(\"]\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetType().Name);sb.Append(\" [\");if (externalWorkbookNumber >= 0){sb.Append(\" [\");sb.Append(\"workbook=\").Append(ExternalWorkbookNumber);sb.Append(\"] \");}if (SheetName != null){sb.Append(\"sheet=\").Append(SheetName);}sb.Append(\" ! \");sb.Append(\"name=\");sb.Append(nameName);sb.Append(\"]\");return sb.ToString();}" }, { "index": 3603, "before": "public GetRecommenderConfigurationResult getRecommenderConfiguration(GetRecommenderConfigurationRequest request) {request = beforeClientExecution(request);return executeGetRecommenderConfiguration(request);}", "after": "public virtual GetRecommenderConfigurationResponse GetRecommenderConfiguration(GetRecommenderConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRecommenderConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRecommenderConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3604, "before": "public int previous() {if (text.getIndex() == text.getBeginIndex()) {return DONE;} else {if (0 == sentenceStarts.length) {text.setIndex(text.getBeginIndex());return DONE;}if (text.getIndex() == text.getEndIndex()) {text.setIndex(sentenceStarts[currentSentence]);} else {text.setIndex(sentenceStarts[--currentSentence]);}return current();}}", "after": "public override int Previous(){if (text.Index == text.BeginIndex){return Done;}else{if (0 == sentenceStarts.Length){text.SetIndex(text.BeginIndex);return Done;}if (text.Index == text.EndIndex){text.SetIndex(sentenceStarts[currentSentence]);}else{text.SetIndex(sentenceStarts[--currentSentence]);}return Current;}}" }, { "index": 3605, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[STARTOBJECT]\\n\");buffer.append(\" .rt =\").append(HexDump.shortToHex(rt)).append('\\n');buffer.append(\" .grbitFrt =\").append(HexDump.shortToHex(grbitFrt)).append('\\n');buffer.append(\" .iObjectKind =\").append(HexDump.shortToHex(iObjectKind)).append('\\n');buffer.append(\" .iObjectContext =\").append(HexDump.shortToHex(iObjectContext)).append('\\n');buffer.append(\" .iObjectInstance1=\").append(HexDump.shortToHex(iObjectInstance1)).append('\\n');buffer.append(\" .iObjectInstance2=\").append(HexDump.shortToHex(iObjectInstance2)).append('\\n');buffer.append(\"[/STARTOBJECT]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[STARTOBJECT]\\n\");buffer.Append(\" .rt =\").Append(HexDump.ShortToHex(rt)).Append('\\n');buffer.Append(\" .grbitFrt =\").Append(HexDump.ShortToHex(grbitFrt)).Append('\\n');buffer.Append(\" .iObjectKind =\").Append(HexDump.ShortToHex(iObjectKind)).Append('\\n');buffer.Append(\" .iObjectContext =\").Append(HexDump.ShortToHex(iObjectContext)).Append('\\n');buffer.Append(\" .iObjectInstance1=\").Append(HexDump.ShortToHex(iObjectInstance1)).Append('\\n');buffer.Append(\" .iObjectInstance2=\").Append(HexDump.ShortToHex(iObjectInstance2)).Append('\\n');buffer.Append(\"[/STARTOBJECT]\\n\");return buffer.ToString();}" }, { "index": 3606, "before": "public static double average(double[] values) {double ave = 0;double sum = 0;for (double value : values) {sum += value;}ave = sum / values.length;return ave;}", "after": "public static double Average(double[] values){double ave = 0;double sum = 0;for (int i = 0, iSize = values.Length; i < iSize; i++){sum += values[i];}ave = sum / values.Length;return ave;}" }, { "index": 3607, "before": "public GetCheckerIpRangesResult getCheckerIpRanges(GetCheckerIpRangesRequest request) {request = beforeClientExecution(request);return executeGetCheckerIpRanges(request);}", "after": "public virtual GetCheckerIpRangesResponse GetCheckerIpRanges(GetCheckerIpRangesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCheckerIpRangesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCheckerIpRangesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3608, "before": "public int getRegionLength() {return outRegion.length;}", "after": "public virtual int GetRegionLength(){return currentSource.regionList.length;}" }, { "index": 3609, "before": "@Override public Iterator> iterator() {final Iterator> backingIterator= countMap.entrySet().iterator();return new Iterator>() {", "after": "public override java.util.Iterator> iterator(){return new java.util.Hashtable.EntryIterator(this._enclosing);}" }, { "index": 3610, "before": "public WeightedSpanTerm(float weight, String term, boolean positionSensitive) {super(weight, term);this.positionSensitive = positionSensitive;}", "after": "public WeightedSpanTerm(float weight, string term, bool positionSensitive): base(weight, term){_positionSensitive = positionSensitive;}" }, { "index": 3611, "before": "public synchronized StringBuffer append(char[] chars) {append0(chars);return this;}", "after": "public java.lang.StringBuffer append(char[] chars){lock (this){append0(chars);return this;}}" }, { "index": 3612, "before": "public UploadServerCertificateRequest(String serverCertificateName, String certificateBody, String privateKey) {setServerCertificateName(serverCertificateName);setCertificateBody(certificateBody);setPrivateKey(privateKey);}", "after": "public UploadServerCertificateRequest(string serverCertificateName, string certificateBody, string privateKey){_serverCertificateName = serverCertificateName;_certificateBody = certificateBody;_privateKey = privateKey;}" }, { "index": 3613, "before": "public List getRuleInvocationStack(RuleContext p) {String[] ruleNames = getRuleNames();List stack = new ArrayList();while ( p!=null ) {int ruleIndex = p.getRuleIndex();if ( ruleIndex<0 ) stack.add(\"n/a\");else stack.add(ruleNames[ruleIndex]);p = p.parent;}return stack;}", "after": "public virtual IList GetRuleInvocationStack(RuleContext p){string[] ruleNames = RuleNames;IList stack = new List();while (p != null){int ruleIndex = p.RuleIndex;if (ruleIndex < 0){stack.Add(\"n/a\");}else{stack.Add(ruleNames[ruleIndex]);}p = p.Parent;}return stack;}" }, { "index": 3614, "before": "static public double ipmt(double r, int per, int nper, double pv, double fv) {return ipmt(r, per, nper, pv, fv, 0);}", "after": "static public double IPMT(double r, int per, int nper, double pv, double fv){return IPMT(r, per, nper, pv, fv, 0);}" }, { "index": 3615, "before": "public int countRanges() {return _list.size();}", "after": "public int CountRanges(){return _list.Count;}" }, { "index": 3616, "before": "public int compareTo(FormatRun r) {if (_character == r._character && _fontIndex == r._fontIndex) {return 0;}if (_character == r._character) {return _fontIndex - r._fontIndex;}return _character - r._character;}", "after": "public int CompareTo(FormatRun r){if (_character == r._character && _fontIndex == r._fontIndex){return 0;}if (_character == r._character){return _fontIndex - r._fontIndex;}return _character - r._character;}" }, { "index": 3617, "before": "public final void readFully(byte[] dst) throws IOException {readFully(dst, 0, dst.length);}", "after": "public virtual void readFully(byte[] dst){throw new System.NotImplementedException();}" }, { "index": 3618, "before": "public synchronized int size() {return size;}", "after": "public override int size(){lock (this){return _size;}}" }, { "index": 3619, "before": "public String group() {return group(0);}", "after": "public string group(){return group(0);}" }, { "index": 3620, "before": "public int getExternalSheetIndex(String workbookName, String firstSheetName, String lastSheetName) {return getOrCreateLinkTable().getExternalSheetIndex(workbookName, firstSheetName, lastSheetName);}", "after": "public int GetExternalSheetIndex(String workbookName, String firstSheetName, String lastSheetName){return OrCreateLinkTable.GetExternalSheetIndex(workbookName, firstSheetName, lastSheetName);}" }, { "index": 3621, "before": "public GetDeliverabilityTestReportResult getDeliverabilityTestReport(GetDeliverabilityTestReportRequest request) {request = beforeClientExecution(request);return executeGetDeliverabilityTestReport(request);}", "after": "public virtual GetDeliverabilityTestReportResponse GetDeliverabilityTestReport(GetDeliverabilityTestReportRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDeliverabilityTestReportRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDeliverabilityTestReportResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3622, "before": "public boolean isPeeled() {return getLeaf().isPeeled();}", "after": "public virtual bool IsPeeled(){return GetLeaf().IsPeeled();}" }, { "index": 3623, "before": "public RenameCallback getRenameCallback() {return renameCallback;}", "after": "public virtual RenameCallback GetRenameCallback(){return renameCallback;}" }, { "index": 3624, "before": "public String toString() {return \"EditList\" + super.toString(); }", "after": "public override string ToString(){return \"EditList[]\";}" }, { "index": 3625, "before": "public PutVoiceConnectorTerminationCredentialsResult putVoiceConnectorTerminationCredentials(PutVoiceConnectorTerminationCredentialsRequest request) {request = beforeClientExecution(request);return executePutVoiceConnectorTerminationCredentials(request);}", "after": "public virtual PutVoiceConnectorTerminationCredentialsResponse PutVoiceConnectorTerminationCredentials(PutVoiceConnectorTerminationCredentialsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutVoiceConnectorTerminationCredentialsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutVoiceConnectorTerminationCredentialsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3626, "before": "public CreateGroupResult createGroup(CreateGroupRequest request) {request = beforeClientExecution(request);return executeCreateGroup(request);}", "after": "public virtual CreateGroupResponse CreateGroup(CreateGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3627, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_units);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_units);}" }, { "index": 3628, "before": "public ObjectLoader open(AnyObjectId objectId, int typeHint)throws MissingObjectException, IncorrectObjectTypeException,IOException {final ObjectLoader ldr = db.openObject(this, objectId);if (ldr == null) {if (typeHint == OBJ_ANY)throw new MissingObjectException(objectId.copy(),JGitText.get().unknownObjectType2);throw new MissingObjectException(objectId.copy(), typeHint);}if (typeHint != OBJ_ANY && ldr.getType() != typeHint)throw new IncorrectObjectTypeException(objectId.copy(), typeHint);return ldr;}", "after": "public override ObjectLoader Open(AnyObjectId objectId, int typeHint){ObjectLoader ldr = db.OpenObject(this, objectId);if (ldr == null){if (typeHint == OBJ_ANY){throw new MissingObjectException(objectId.Copy(), \"unknown\");}throw new MissingObjectException(objectId.Copy(), typeHint);}if (typeHint != OBJ_ANY && ldr.GetType() != typeHint){throw new IncorrectObjectTypeException(objectId.Copy(), typeHint);}return ldr;}" }, { "index": 3629, "before": "public ParameterNameValue(String parameterName, String parameterValue) {setParameterName(parameterName);setParameterValue(parameterValue);}", "after": "public ParameterNameValue(string parameterName, string parameterValue){_parameterName = parameterName;_parameterValue = parameterValue;}" }, { "index": 3630, "before": "public AssociateIamInstanceProfileResult associateIamInstanceProfile(AssociateIamInstanceProfileRequest request) {request = beforeClientExecution(request);return executeAssociateIamInstanceProfile(request);}", "after": "public virtual AssociateIamInstanceProfileResponse AssociateIamInstanceProfile(AssociateIamInstanceProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateIamInstanceProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateIamInstanceProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3631, "before": "public CreateHostedZoneRequest(String name, String callerReference) {setName(name);setCallerReference(callerReference);}", "after": "public CreateHostedZoneRequest(string name, string callerReference){_name = name;_callerReference = callerReference;}" }, { "index": 3632, "before": "public String getPronunciation() {return dictionary.getPronunciation(wordId, surfaceForm, offset, length);}", "after": "public virtual string GetPronunciation(){return dictionary.GetPronunciation(wordId, surfaceForm, offset, length);}" }, { "index": 3633, "before": "public boolean knows(String key) {return (find(key) >= 0);}", "after": "public virtual bool Knows(string key){return (Find(key) >= 0);}" }, { "index": 3634, "before": "public ServerException(String errorCode, String errorMessage) {super(errorCode, errorMessage);this.setErrorType(ErrorType.Server);}", "after": "public ServerException(string errorCode, string errorMessage) : base(errorCode, errorMessage){ErrorType = ErrorType.Server;}" }, { "index": 3635, "before": "public String toString() {return \"3(\" + mu + \")\";}", "after": "public override string ToString(){return \"3(\" + mu + \")\";}" }, { "index": 3636, "before": "public CreateDiskResult createDisk(CreateDiskRequest request) {request = beforeClientExecution(request);return executeCreateDisk(request);}", "after": "public virtual CreateDiskResponse CreateDisk(CreateDiskRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDiskRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDiskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3637, "before": "public boolean add(char[] text) {return map.put(text, PLACEHOLDER) == null;}", "after": "public virtual bool Add(object o){return map.Put(o);}" }, { "index": 3638, "before": "public QueryLicensesRequest() {super(\"LinkFace\", \"2018-07-20\", \"QueryLicenses\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public QueryLicensesRequest(): base(\"LinkFace\", \"2018-07-20\", \"QueryLicenses\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 3639, "before": "public ExpectedAttributeValue(AttributeValue value) {setValue(value);}", "after": "public ExpectedAttributeValue(AttributeValue value){_value = value;}" }, { "index": 3640, "before": "public long getSize() {return getCachedBytes().length;}", "after": "public override long GetSize(){return GetCachedBytes().Length;}" }, { "index": 3641, "before": "public DescribeImageAttributeRequest(String imageId, ImageAttributeName attribute) {setImageId(imageId);setAttribute(attribute.toString());}", "after": "public DescribeImageAttributeRequest(string imageId, ImageAttributeName attribute){_imageId = imageId;_attribute = attribute;}" }, { "index": 3642, "before": "public HSSFAnchor() {createEscherAnchor();}", "after": "public HSSFAnchor(){CreateEscherAnchor();}" }, { "index": 3643, "before": "public V setValue(V object) {V result = value;value = object;return result;}", "after": "public virtual V setValue(V @object){V result = value;value = @object;return result;}" }, { "index": 3644, "before": "public void readFully(byte[] buffer, int off, int len) {checkPosition(len);read(buffer, off, len);}", "after": "public void ReadFully(byte[] buf, int off, int len){CheckPosition(len);System.Array.Copy(_buf, _ReadIndex, buf, off, len);_ReadIndex += len;}" }, { "index": 3645, "before": "public CancelDomainTransferToAnotherAwsAccountResult cancelDomainTransferToAnotherAwsAccount(CancelDomainTransferToAnotherAwsAccountRequest request) {request = beforeClientExecution(request);return executeCancelDomainTransferToAnotherAwsAccount(request);}", "after": "public virtual CancelDomainTransferToAnotherAwsAccountResponse CancelDomainTransferToAnotherAwsAccount(CancelDomainTransferToAnotherAwsAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelDomainTransferToAnotherAwsAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelDomainTransferToAnotherAwsAccountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3646, "before": "public RecognizeCelebritiesResult recognizeCelebrities(RecognizeCelebritiesRequest request) {request = beforeClientExecution(request);return executeRecognizeCelebrities(request);}", "after": "public virtual RecognizeCelebritiesResponse RecognizeCelebrities(RecognizeCelebritiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RecognizeCelebritiesRequestMarshaller.Instance;options.ResponseUnmarshaller = RecognizeCelebritiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3647, "before": "public SideBandOutputStream(int chan, int sz, OutputStream os) {if (chan <= 0 || chan > 255)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().channelMustBeInRange1_255,Integer.valueOf(chan)));if (sz <= HDR_SIZE)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().packetSizeMustBeAtLeast,Integer.valueOf(sz), Integer.valueOf(HDR_SIZE)));else if (MAX_BUF < sz)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().packetSizeMustBeAtMost, Integer.valueOf(sz),Integer.valueOf(MAX_BUF)));out = os;buffer = new byte[sz];buffer[4] = (byte) chan;cnt = HDR_SIZE;}", "after": "public SideBandOutputStream(int chan, int sz, OutputStream os){if (chan <= 0 || chan > 255){throw new ArgumentException(MessageFormat.Format(JGitText.Get().channelMustBeInRange0_255, Sharpen.Extensions.ValueOf(chan)));}if (sz <= HDR_SIZE){throw new ArgumentException(MessageFormat.Format(JGitText.Get().packetSizeMustBeAtLeast, Sharpen.Extensions.ValueOf(sz), Sharpen.Extensions.ValueOf(HDR_SIZE)));}else{if (MAX_BUF < sz){throw new ArgumentException(MessageFormat.Format(JGitText.Get().packetSizeMustBeAtMost, Sharpen.Extensions.ValueOf(sz), Sharpen.Extensions.ValueOf(MAX_BUF)));}}@out = os;buffer = new byte[sz];buffer[4] = unchecked((byte)chan);cnt = HDR_SIZE;}" }, { "index": 3648, "before": "public LexerATNConfig(ATNState state,int alt,PredictionContext context,LexerActionExecutor lexerActionExecutor){super(state, alt, context, SemanticContext.NONE);this.lexerActionExecutor = lexerActionExecutor;this.passedThroughNonGreedyDecision = false;}", "after": "public LexerATNConfig(ATNState state,int alt,PredictionContext context,LexerActionExecutor lexerActionExecutor): base(state, alt, context, SemanticContext.NONE){this.lexerActionExecutor = lexerActionExecutor;this.passedThroughNonGreedyDecision = false;}" }, { "index": 3649, "before": "public String format(List squashedCommits, Ref target) {StringBuilder sb = new StringBuilder();sb.append(\"Squashed commit of the following:\\n\"); for (RevCommit c : squashedCommits) {sb.append(\"\\ncommit \"); sb.append(c.getName());sb.append(\"\\n\"); sb.append(toString(c.getAuthorIdent()));sb.append(\"\\n\\t\"); sb.append(c.getShortMessage());sb.append(\"\\n\"); }return sb.toString();}", "after": "public virtual string Format(IList squashedCommits, Ref target){StringBuilder sb = new StringBuilder();sb.Append(\"Squashed commit of the following:\\n\");foreach (RevCommit c in squashedCommits){sb.Append(\"\\ncommit \");sb.Append(c.GetName());sb.Append(\"\\n\");sb.Append(ToString(c.GetAuthorIdent()));sb.Append(\"\\n\\t\");sb.Append(c.GetShortMessage());sb.Append(\"\\n\");}return sb.ToString();}" }, { "index": 3650, "before": "public int stem(char s[], int len) {if (len < 3 || s[len-1] != 's')return len;switch(s[len-2]) {case 'u':case 's': return len;case 'e':if (len > 3 && s[len-3] == 'i' && s[len-4] != 'a' && s[len-4] != 'e') {s[len - 3] = 'y';return len - 2;}if (s[len-3] == 'i' || s[len-3] == 'a' || s[len-3] == 'o' || s[len-3] == 'e')return len; default: return len - 1;}}", "after": "public virtual int Stem(char[] s, int len){if (len < 3 || s[len - 1] != 's'){return len;}switch (s[len - 2]){case 'u':case 's':return len;case 'e':if (len > 3 && s[len - 3] == 'i' && s[len - 4] != 'a' && s[len - 4] != 'e'){s[len - 3] = 'y';return len - 2;}if (s[len - 3] == 'i' || s[len - 3] == 'a' || s[len - 3] == 'o' || s[len - 3] == 'e'){return len; }break;}return len - 1;}" }, { "index": 3651, "before": "public TermsQueryBuilder(Analyzer analyzer) {this.analyzer = analyzer;}", "after": "public TermsQueryBuilder(Analyzer analyzer){this.analyzer = analyzer;}" }, { "index": 3652, "before": "public CreateDomainRequest(String domainName) {setDomainName(domainName);}", "after": "public CreateDomainRequest(string domainName){_domainName = domainName;}" }, { "index": 3653, "before": "public Trie optimize(Trie orig) {List cmds = orig.cmds;List rows = new ArrayList<>();List orows = orig.rows;int remap[] = new int[orows.size()];for (int j = orows.size() - 1; j >= 0; j--) {Row now = new Remap(orows.get(j), remap);boolean merged = false;for (int i = 0; i < rows.size(); i++) {Row q = merge(now, rows.get(i));if (q != null) {rows.set(i, q);merged = true;remap[j] = i;break;}}if (merged == false) {remap[j] = rows.size();rows.add(now);}}int root = remap[orig.root];Arrays.fill(remap, -1);rows = removeGaps(root, rows, new ArrayList(), remap);return new Trie(orig.forward, remap[root], cmds, rows);}", "after": "public override Trie Optimize(Trie orig){IList cmds = orig.cmds;IList rows = new List();IList orows = orig.rows;int[] remap = new int[orows.Count];for (int j = orows.Count - 1; j >= 0; j--){Row now = new Remap(orows[j], remap);bool merged = false;for (int i = 0; i < rows.Count; i++){Row q = Merge(now, rows[i]);if (q != null){rows[i] = q;merged = true;remap[j] = i;break;}}if (merged == false){remap[j] = rows.Count;rows.Add(now);}}int root = remap[orig.root];Arrays.Fill(remap, -1);rows = RemoveGaps(root, rows, new List(), remap);return new Trie(orig.forward, remap[root], cmds, rows);}" }, { "index": 3654, "before": "public final boolean isFirstCell(int rowIx, int colIx) {CellRangeAddress8Bit r = getRange();return r.getFirstRow() == rowIx && r.getFirstColumn() == colIx;}", "after": "public bool IsFirstCell(int rowIx, int colIx){CellRangeAddress8Bit r = Range;return r.FirstRow == rowIx && r.FirstColumn == colIx;}" }, { "index": 3655, "before": "public CompleteLayerUploadResult completeLayerUpload(CompleteLayerUploadRequest request) {request = beforeClientExecution(request);return executeCompleteLayerUpload(request);}", "after": "public virtual CompleteLayerUploadResponse CompleteLayerUpload(CompleteLayerUploadRequest request){var options = new InvokeOptions();options.RequestMarshaller = CompleteLayerUploadRequestMarshaller.Instance;options.ResponseUnmarshaller = CompleteLayerUploadResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3656, "before": "public StopHumanLoopResult stopHumanLoop(StopHumanLoopRequest request) {request = beforeClientExecution(request);return executeStopHumanLoop(request);}", "after": "public virtual StopHumanLoopResponse StopHumanLoop(StopHumanLoopRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopHumanLoopRequestMarshaller.Instance;options.ResponseUnmarshaller = StopHumanLoopResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3657, "before": "public RevCommit getSourceCommit() {return outCandidate.sourceCommit;}", "after": "public virtual RevCommit GetSourceCommit(){return currentSource.sourceCommit;}" }, { "index": 3658, "before": "public synchronized Object getPerfObject(String key) {return perfObjects.get(key);}", "after": "public virtual object GetPerfObject(string key){lock (this){object result;perfObjects.TryGetValue(key, out result);return result;}}" }, { "index": 3659, "before": "public TokenStream create(TokenStream input) {return new HindiStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new HindiStemFilter(input);}" }, { "index": 3660, "before": "public static BreakIterator getWordInstance() {return getWordInstance(Locale.getDefault());}", "after": "public static java.text.BreakIterator getWordInstance(){return getWordInstance(System.Globalization.CultureInfo.CurrentCulture);}" }, { "index": 3661, "before": "public UpdatePublicKeyResult updatePublicKey(UpdatePublicKeyRequest request) {request = beforeClientExecution(request);return executeUpdatePublicKey(request);}", "after": "public virtual UpdatePublicKeyResponse UpdatePublicKey(UpdatePublicKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePublicKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePublicKeyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3662, "before": "public boolean include(RevWalk walker, RevCommit c) {return c.getParentCount() < 2;}", "after": "public override bool Include(RevWalk walker, RevCommit c){return c.ParentCount < 2;}" }, { "index": 3663, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[COUNTRY]\\n\");buffer.append(\" .defaultcountry = \").append(Integer.toHexString(getDefaultCountry())).append(\"\\n\");buffer.append(\" .currentcountry = \").append(Integer.toHexString(getCurrentCountry())).append(\"\\n\");buffer.append(\"[/COUNTRY]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[COUNTRY]\\n\");buffer.Append(\" .defaultcountry = \").Append(StringUtil.ToHexString(DefaultCountry)).Append(\"\\n\");buffer.Append(\" .currentcountry = \").Append(StringUtil.ToHexString(CurrentCountry)).Append(\"\\n\");buffer.Append(\"[/COUNTRY]\\n\");return buffer.ToString();}" }, { "index": 3664, "before": "public DefaultColWidthRecord clone() {return copy();}", "after": "public override Object Clone(){DefaultColWidthRecord rec = new DefaultColWidthRecord();rec.field_1_col_width = field_1_col_width;return rec;}" }, { "index": 3665, "before": "public Matcher useAnchoringBounds(boolean value) {anchoringBounds = value;useAnchoringBoundsImpl(address, value);return this;}", "after": "public java.util.regex.Matcher useAnchoringBounds(bool value){anchoringBounds = value;useAnchoringBoundsImpl(address, value);return this;}" }, { "index": 3666, "before": "public PostingsEnum reset(int[] postings) {this.postings = postings;upto = -2;return this;}", "after": "public DocsEnum Reset(int[] postings){this.postings = postings;upto = -2;return this;}" }, { "index": 3667, "before": "public void SwitchTo(int lexState){if (lexState >= 2 || lexState < 0)throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);elsecurLexState = lexState;}", "after": "public void SwitchTo(int lexState){if (lexState >= 2 || lexState < 0)throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);elsecurLexState = lexState;}" }, { "index": 3668, "before": "public boolean add(final int value){if (_limit == _array.length){growArray(_limit * 2);}_array[ _limit++ ] = value;return true;}", "after": "public bool Add(int value){if (_limit == _array.Length){growArray(_limit * 2);}_array[_limit++] = value;return true;}" }, { "index": 3669, "before": "public final int computeIterations(int valueCount, int ramBudget) {final int iterations = ramBudget / (byteBlockCount() + 8 * byteValueCount());if (iterations == 0) {return 1;} else if ((iterations - 1) * byteValueCount() >= valueCount) {return (int) Math.ceil((double) valueCount / byteValueCount());} else {return iterations;}}", "after": "public int ComputeIterations(int valueCount, int ramBudget){int iterations = ramBudget / (ByteBlockCount + 8 * ByteValueCount);if (iterations == 0){return 1;}else if ((iterations - 1) * ByteValueCount >= valueCount){return (int)Math.Ceiling((double)valueCount / ByteValueCount);}else{return iterations;}}" }, { "index": 3670, "before": "public NameRecord getNameRecord(int nameIndex) {return getWorkbook().getNameRecord(nameIndex);}", "after": "public NameRecord GetNameRecord(int nameIndex){return Workbook.GetNameRecord(nameIndex);}" }, { "index": 3671, "before": "public DescribeJobResult describeJob(DescribeJobRequest request) {request = beforeClientExecution(request);return executeDescribeJob(request);}", "after": "public virtual DescribeJobResponse DescribeJob(DescribeJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3672, "before": "public EscherPropertyMetaData( String description, byte type ){this.description = description;this.type = type;}", "after": "public EscherPropertyMetaData(String description, byte type){this.description = description;this.type = type;}" }, { "index": 3673, "before": "public HSSFColor findSimilarColor(int red, int green, int blue) {HSSFColor result = null;int minColorDistance = Integer.MAX_VALUE;byte[] b = _palette.getColor(PaletteRecord.FIRST_COLOR_INDEX);for (short i = PaletteRecord.FIRST_COLOR_INDEX; b != null;b = _palette.getColor(++i)){int colorDistance = Math.abs(red - unsignedInt(b[0])) +Math.abs(green - unsignedInt(b[1])) +Math.abs(blue - unsignedInt(b[2]));if (colorDistance < minColorDistance){minColorDistance = colorDistance;result = getColor(i);}}return result;}", "after": "public HSSFColor FindSimilarColor(byte red, byte green, byte blue){HSSFColor result = null;int minColorDistance = int.MaxValue;byte[] b = palette.GetColor(PaletteRecord.FIRST_COLOR_INDEX);for (short i = (short)PaletteRecord.FIRST_COLOR_INDEX; b != null;b = palette.GetColor(++i)){int colorDistance = Math.Abs(red - b[0]) +Math.Abs(green - b[1]) + Math.Abs(blue - b[2]);if (colorDistance < minColorDistance){minColorDistance = colorDistance;result = GetColor(i);}}return result;}" }, { "index": 3674, "before": "public synchronized StringBuffer deleteCharAt(int location) {deleteCharAt0(location);return this;}", "after": "public java.lang.StringBuffer deleteCharAt(int location){lock (this){deleteCharAt0(location);return this;}}" }, { "index": 3675, "before": "public PathFilter clone() {return this;}", "after": "public override TreeFilter Clone(){return this;}" }, { "index": 3676, "before": "public String toString() {if (isEmpty()) {return \"[]\";}StringBuilder buffer = new StringBuilder(size() * 16);buffer.append('[');Iterator it = iterator();while (it.hasNext()) {Object next = it.next();if (next != this) {buffer.append(next);} else {buffer.append(\"(this Collection)\");}if (it.hasNext()) {buffer.append(\", \");}}buffer.append(']');return buffer.toString();}", "after": "public override string ToString(){if (isEmpty()){return \"[]\";}java.lang.StringBuilder buffer = new java.lang.StringBuilder(size() * 16);buffer.append('[');java.util.Iterator it = iterator();while (it.hasNext()){object next = it.next();if (next != this){buffer.append(next);}else{buffer.append(\"(this Collection)\");}if (it.hasNext()){buffer.append(\", \");}}buffer.append(']');return buffer.ToString();}" }, { "index": 3677, "before": "public synchronized void close() throws IOException {buffer = null;notifyAll();}", "after": "public override void close(){throw new System.NotImplementedException();}" }, { "index": 3678, "before": "public String toString() {return \"ShardIter(shard=\" + shardIndex + \")\";}", "after": "public override string ToString(){return \"ShardIter(shard=\" + shardIndex + \")\";}" }, { "index": 3679, "before": "public JobParameters(String format, String type, String archiveId, String description) {setFormat(format);setType(type);setArchiveId(archiveId);setDescription(description);}", "after": "public JobParameters(string format, string type, string archiveId, string description){_format = format;_type = type;_archiveId = archiveId;_description = description;}" }, { "index": 3680, "before": "public IntBuffer get(int[] dst) {return get(dst, 0, dst.length);}", "after": "public virtual java.nio.IntBuffer get(int[] dst){return get(dst, 0, dst.Length);}" }, { "index": 3681, "before": "public SupBookRecord(String url, String[] sheetNames) {field_1_number_of_sheets = (short) sheetNames.length;field_2_encoded_url = url;field_3_sheet_names = sheetNames;_isAddInFunctions = false;}", "after": "public SupBookRecord(String url, String[] sheetNames){field_1_number_of_sheets = (short)sheetNames.Length;field_2_encoded_url = url;field_3_sheet_names = sheetNames;_isAddInFunctions = false;}" }, { "index": 3682, "before": "public SeriesLabelsRecord(RecordInputStream in) {field_1_formatFlags = in.readShort();}", "after": "public SeriesLabelsRecord(RecordInputStream in1){field_1_formatFlags = in1.ReadShort();}" }, { "index": 3683, "before": "public DescribeAssessmentRunsResult describeAssessmentRuns(DescribeAssessmentRunsRequest request) {request = beforeClientExecution(request);return executeDescribeAssessmentRuns(request);}", "after": "public virtual DescribeAssessmentRunsResponse DescribeAssessmentRuns(DescribeAssessmentRunsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAssessmentRunsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAssessmentRunsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3684, "before": "public DescribeClassicLinkInstancesResult describeClassicLinkInstances(DescribeClassicLinkInstancesRequest request) {request = beforeClientExecution(request);return executeDescribeClassicLinkInstances(request);}", "after": "public virtual DescribeClassicLinkInstancesResponse DescribeClassicLinkInstances(DescribeClassicLinkInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClassicLinkInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClassicLinkInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3685, "before": "public byte[] getByteBlock() {return new byte[blockSize];}", "after": "public virtual byte[] GetByteBlock(){return new byte[m_blockSize];}" }, { "index": 3686, "before": "public SeriesIndexRecord clone() {return copy();}", "after": "public override Object Clone(){SeriesIndexRecord rec = new SeriesIndexRecord();rec.field_1_index = field_1_index;return rec;}" }, { "index": 3687, "before": "public RegisterToWorkMailResult registerToWorkMail(RegisterToWorkMailRequest request) {request = beforeClientExecution(request);return executeRegisterToWorkMail(request);}", "after": "public virtual RegisterToWorkMailResponse RegisterToWorkMail(RegisterToWorkMailRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterToWorkMailRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterToWorkMailResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3688, "before": "public DeleteCollectionRequest() {super(\"cr\", \"2016-06-07\", \"DeleteCollection\", \"cr\");setUriPattern(\"/collections/[CollectionId]\");setMethod(MethodType.DELETE);}", "after": "public DeleteCollectionRequest(): base(\"cr\", \"2016-06-07\", \"DeleteCollection\", \"cr\", \"openAPI\"){UriPattern = \"/collections/[CollectionId]\";Method = MethodType.DELETE;}" }, { "index": 3689, "before": "public Cluster 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": 3690, "before": "public static double tanh(double d) {double ePowX = Math.pow(Math.E, d);double ePowNegX = Math.pow(Math.E, -d);return (ePowX - ePowNegX) / (ePowX + ePowNegX);}", "after": "public static double Tanh(double d){double ePowX = Math.Pow(Math.E, d);double ePowNegX = Math.Pow(Math.E, -d);d = (ePowX - ePowNegX) / (ePowX + ePowNegX);return d;}" }, { "index": 3691, "before": "public CharsRef common(CharsRef output1, CharsRef output2) {assert output1 != null;assert output2 != null;int pos1 = output1.offset;int pos2 = output2.offset;int stopAt1 = pos1 + Math.min(output1.length, output2.length);while(pos1 < stopAt1) {if (output1.chars[pos1] != output2.chars[pos2]) {break;}pos1++;pos2++;}if (pos1 == output1.offset) {return NO_OUTPUT;} else if (pos1 == output1.offset + output1.length) {return output1;} else if (pos2 == output2.offset + output2.length) {return output2;} else {return new CharsRef(output1.chars, output1.offset, pos1-output1.offset);}}", "after": "public override CharsRef Common(CharsRef output1, CharsRef output2){Debug.Assert(output1 != null);Debug.Assert(output2 != null);int pos1 = output1.Offset;int pos2 = output2.Offset;int stopAt1 = pos1 + Math.Min(output1.Length, output2.Length);while (pos1 < stopAt1){if (output1.Chars[pos1] != output2.Chars[pos2]){break;}pos1++;pos2++;}if (pos1 == output1.Offset){return NO_OUTPUT;}else if (pos1 == output1.Offset + output1.Length){return output1;}else if (pos2 == output2.Offset + output2.Length){return output2;}else{return new CharsRef(output1.Chars, output1.Offset, pos1 - output1.Offset);}}" }, { "index": 3692, "before": "public GetExclusionsPreviewResult getExclusionsPreview(GetExclusionsPreviewRequest request) {request = beforeClientExecution(request);return executeGetExclusionsPreview(request);}", "after": "public virtual GetExclusionsPreviewResponse GetExclusionsPreview(GetExclusionsPreviewRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetExclusionsPreviewRequestMarshaller.Instance;options.ResponseUnmarshaller = GetExclusionsPreviewResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3693, "before": "public KeepWordFilterFactory(Map args) {super(args);wordFiles = get(args, \"words\");ignoreCase = getBoolean(args, \"ignoreCase\", false);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public KeepWordFilterFactory(IDictionary args): base(args){AssureMatchVersion();wordFiles = Get(args, \"words\");ignoreCase = GetBoolean(args, \"ignoreCase\", false);enablePositionIncrements = GetBoolean(args, \"enablePositionIncrements\", true);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 3694, "before": "public int uniformCmd(boolean eqSkip) {Iterator i = cells.values().iterator();int ret = -1;uniformCnt = 1;uniformSkip = 0;for (; i.hasNext();) {Cell c = i.next();if (c.ref >= 0) {return -1;}if (c.cmd >= 0) {if (ret < 0) {ret = c.cmd;uniformSkip = c.skip;} else if (ret == c.cmd) {if (eqSkip) {if (uniformSkip == c.skip) {uniformCnt++;} else {return -1;}} else {uniformCnt++;}} else {return -1;}}}return ret;}", "after": "public int UniformCmd(bool eqSkip){int ret = -1;uniformCnt = 1;uniformSkip = 0;foreach (Cell c in cells.Values){if (c.@ref >= 0){return -1;}if (c.cmd >= 0){if (ret < 0){ret = c.cmd;uniformSkip = c.skip;}else if (ret == c.cmd){if (eqSkip){if (uniformSkip == c.skip){uniformCnt++;}else{return -1;}}else{uniformCnt++;}}else{return -1;}}}return ret;}" }, { "index": 3695, "before": "public ListTypedLinkFacetNamesResult listTypedLinkFacetNames(ListTypedLinkFacetNamesRequest request) {request = beforeClientExecution(request);return executeListTypedLinkFacetNames(request);}", "after": "public virtual ListTypedLinkFacetNamesResponse ListTypedLinkFacetNames(ListTypedLinkFacetNamesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTypedLinkFacetNamesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTypedLinkFacetNamesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3696, "before": "public T remove(int index) {if (index == size - 1) {T[] blockRef = directory[toDirectoryIndex(index)];int blockIdx = toBlockIndex(index);T old = blockRef[blockIdx];blockRef[blockIdx] = null;size--;if (0 < tailBlkIdx)tailBlkIdx--;elseresetTailBlock();return old;} else if (index < 0 || size <= index) {throw new IndexOutOfBoundsException(String.valueOf(index));} else {T old = get(index);for (; index < size - 1; index++)set(index, get(index + 1));set(size - 1, null);size--;resetTailBlock();return old;}}", "after": "public override T Remove(int index){if (index == size - 1){T[] blockRef = directory[ToDirectoryIndex(index)];int blockIdx = ToBlockIndex(index);T old = blockRef[blockIdx];blockRef[blockIdx] = default(T);size--;if (0 < tailBlkIdx){tailBlkIdx--;}else{ResetTailBlock();}return old;}else{if (index < 0 || size <= index){throw new IndexOutOfRangeException(index.ToString());}else{T old = this[index];for (; index < size - 1; index++){Set(index, this[index + 1]);}Set(size - 1, default(T));size--;ResetTailBlock();return old;}}}" }, { "index": 3697, "before": "public boolean willSoonExpire() {long now = System.currentTimeMillis();return this.roleSessionDurationSeconds * (1 - expireFact) > (expiration - now) / 1000;}", "after": "public override bool WillSoonExpire(){return roleSessionDurationSeconds * (1 - expireFact) * 1000 * 1000 * 10 > RemainTicks();}" }, { "index": 3698, "before": "public GroupingSearch setSortWithinGroup(Sort sortWithinGroup) {this.sortWithinGroup = sortWithinGroup;return this;}", "after": "public virtual GroupingSearch SetSortWithinGroup(Sort sortWithinGroup){this.sortWithinGroup = sortWithinGroup;return this;}" }, { "index": 3699, "before": "public long ramBytesUsed() {return BASE_RAM_BYTES_USED +((postings!=null) ? RamUsageEstimator.sizeOf(postings) : 0) +((payloads!=null) ? RamUsageEstimator.sizeOf(payloads) : 0);}", "after": "public override long RamBytesUsed(){return ((postings != null) ? RamUsageEstimator.SizeOf(postings) : 0) +((payloads != null) ? RamUsageEstimator.SizeOf(payloads) : 0);}" }, { "index": 3700, "before": "public void seek(long pos) throws IOException {final long curFP = getFilePointer();final long skip = pos - curFP;if (skip < 0) {throw new IllegalStateException(getClass() + \" cannot seek backwards (pos=\" + pos + \" getFilePointer()=\" + curFP + \")\");}skipBytes(skip);}", "after": "public override void Seek(long pos){long skip = pos - GetFilePointer();if (skip < 0){throw new InvalidOperationException(this.GetType() + \" cannot seek backwards\");}SkipBytes(skip);}" }, { "index": 3701, "before": "public ExternalName getExternalName(int externSheetIndex, int externNameIndex) {return _iBook.getExternalName(externSheetIndex, externNameIndex);}", "after": "public ExternalName GetExternalName(int externSheetIndex, int externNameIndex){return _iBook.GetExternalName(externSheetIndex, externNameIndex);}" }, { "index": 3702, "before": "public StrDocValues(ValueSource vs) {this.vs = vs;}", "after": "public StrDocValues(ValueSource vs){this.m_vs = vs;}" }, { "index": 3703, "before": "public int getFunctionIndex(String name) {return name.hashCode();}", "after": "public int GetFunctionIndex(String name){return name.GetHashCode();}" }, { "index": 3704, "before": "public int hash2(char c) {int hash = 5381;hash = ((hash << 5) + hash) + c & 0x00FF;hash = ((hash << 5) + hash) + c >> 8;return hash;}", "after": "public virtual int Hash2(char c){int hash = 5381;hash = ((hash << 5) + hash) + c & 0x00FF;hash = ((hash << 5) + hash) + c >> 8;return hash;}" }, { "index": 3705, "before": "public void create(String id, String title, String time, String body) throws IOException {Path d = directory(count++, null);Files.createDirectories(d);Path f = d.resolve(id + \".txt\");StringBuilder contents = new StringBuilder();contents.append(time);contents.append(\"\\n\\n\");contents.append(title);contents.append(\"\\n\\n\");contents.append(body);contents.append(\"\\n\");try (Writer writer = Files.newBufferedWriter(f, StandardCharsets.UTF_8)) {writer.write(contents.toString());}}", "after": "public virtual void Create(string id, string title, string time, string body){DirectoryInfo d = Directory(count++, null);d.Create();FileInfo f = new FileInfo(System.IO.Path.Combine(d.FullName, id + \".txt\"));StringBuilder contents = new StringBuilder();contents.Append(time);contents.Append(\"\\n\\n\");contents.Append(title);contents.Append(\"\\n\\n\");contents.Append(body);contents.Append(\"\\n\");try{using (TextWriter writer = new StreamWriter(new FileStream(f.FullName, FileMode.Create, FileAccess.Write), Encoding.UTF8))writer.Write(contents.ToString());}catch (IOException ioe){throw new Exception(ioe.ToString(), ioe);}}" }, { "index": 3706, "before": "public CharArrayWriter append(CharSequence csq) {if (csq == null) {csq = \"null\";}append(csq, 0, csq.length());return this;}", "after": "public override java.io.Writer append(java.lang.CharSequence csq){if (csq == null){csq = java.lang.CharSequenceProxy.Wrap(\"null\");}append(csq, 0, csq.Length);return this;}" }, { "index": 3707, "before": "public PutAccountDedicatedIpWarmupAttributesResult putAccountDedicatedIpWarmupAttributes(PutAccountDedicatedIpWarmupAttributesRequest request) {request = beforeClientExecution(request);return executePutAccountDedicatedIpWarmupAttributes(request);}", "after": "public virtual PutAccountDedicatedIpWarmupAttributesResponse PutAccountDedicatedIpWarmupAttributes(PutAccountDedicatedIpWarmupAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAccountDedicatedIpWarmupAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAccountDedicatedIpWarmupAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3708, "before": "public static boolean equal(Object a, Object b) {return a == b || (a != null && a.equals(b));}", "after": "public static bool equal(object a, object b){return a == b || (a != null && a.Equals(b));}" }, { "index": 3709, "before": "public RevFlag getUnshallowFlag() {return UNSHALLOW;}", "after": "public RevFlag GetUnshallowFlag(){return UNSHALLOW;}" }, { "index": 3710, "before": "public DescribeSolutionVersionResult describeSolutionVersion(DescribeSolutionVersionRequest request) {request = beforeClientExecution(request);return executeDescribeSolutionVersion(request);}", "after": "public virtual DescribeSolutionVersionResponse DescribeSolutionVersion(DescribeSolutionVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSolutionVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSolutionVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3711, "before": "public byte[] getBuffer() {return file.buf;}", "after": "public virtual byte[] GetBuffer(){return file.buf;}" }, { "index": 3712, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[WRITEACCESS]\\n\");buffer.append(\" .name = \").append(field_1_username).append(\"\\n\");buffer.append(\"[/WRITEACCESS]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[WriteACCESS]\\n\");buffer.Append(\" .name = \").Append(field_1_username).Append(\"\\n\");buffer.Append(\"[/WriteACCESS]\\n\");return buffer.ToString();}" }, { "index": 3713, "before": "public ModifyFpgaImageAttributeResult modifyFpgaImageAttribute(ModifyFpgaImageAttributeRequest request) {request = beforeClientExecution(request);return executeModifyFpgaImageAttribute(request);}", "after": "public virtual ModifyFpgaImageAttributeResponse ModifyFpgaImageAttribute(ModifyFpgaImageAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyFpgaImageAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyFpgaImageAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3714, "before": "public SubmoduleUpdateCommand(Repository repo) {super(repo);paths = new ArrayList<>();}", "after": "protected internal SubmoduleUpdateCommand(Repository repo) : base(repo){paths = new AList();}" }, { "index": 3715, "before": "public boolean isKnown() {return type == Type.KNOWN;}", "after": "public virtual bool IsKnown(){return type == JapaneseTokenizerType.KNOWN;}" }, { "index": 3716, "before": "public long get(int index) {final int o = index / 10;final int b = index % 10;final int shift = b * 6;return (blocks[o] >>> shift) & 63L;}", "after": "public override long Get(int index){int o = index / 10;int b = index % 10;int shift = b * 6;return ((long)((ulong)blocks[o] >> shift)) & 63L;}" }, { "index": 3717, "before": "public void setValue(byte value) {setValue(FormulaError.forInt(value));}", "after": "public void SetValue(bool value){_value = value ? 1 : 0;_isError = false;}" }, { "index": 3718, "before": "public int getCodePoint() {return c;}", "after": "public virtual int getCodePoint(){return c;}" }, { "index": 3719, "before": "public GetDocumentationVersionsResult getDocumentationVersions(GetDocumentationVersionsRequest request) {request = beforeClientExecution(request);return executeGetDocumentationVersions(request);}", "after": "public virtual GetDocumentationVersionsResponse GetDocumentationVersions(GetDocumentationVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDocumentationVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDocumentationVersionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3720, "before": "public int indexOfKey(int key) {if (mGarbage) {gc();}return binarySearch(mKeys, 0, mSize, key);}", "after": "public virtual int indexOfKey(int key){if (mGarbage){gc();}return binarySearch(mKeys, 0, mSize, key);}" }, { "index": 3721, "before": "public void reportError(Parser recognizer,RecognitionException e){if (inErrorRecoveryMode(recognizer)) {return; }beginErrorCondition(recognizer);if ( e instanceof NoViableAltException ) {reportNoViableAlternative(recognizer, (NoViableAltException) e);}else if ( e instanceof InputMismatchException ) {reportInputMismatch(recognizer, (InputMismatchException)e);}else if ( e instanceof FailedPredicateException ) {reportFailedPredicate(recognizer, (FailedPredicateException)e);}else {System.err.println(\"unknown recognition error type: \"+e.getClass().getName());recognizer.notifyErrorListeners(e.getOffendingToken(), e.getMessage(), e);}}", "after": "public virtual void ReportError(Parser recognizer, RecognitionException e){if (InErrorRecoveryMode(recognizer)){return;}BeginErrorCondition(recognizer);if (e is NoViableAltException){ReportNoViableAlternative(recognizer, (NoViableAltException)e);}else{if (e is InputMismatchException){ReportInputMismatch(recognizer, (InputMismatchException)e);}else{if (e is FailedPredicateException){ReportFailedPredicate(recognizer, (FailedPredicateException)e);}else{#if !PORTABLESystem.Console.Error.WriteLine(\"unknown recognition error type: \" + e.GetType().FullName);#endifNotifyErrorListeners(recognizer, e.Message, e);}}}}" }, { "index": 3722, "before": "public ConstantStringFormat(String s) {str = s;}", "after": "public ConstantStringFormat(String s){str = s;}" }, { "index": 3723, "before": "public DoubleBuffer asReadOnlyBuffer() {return ReadOnlyDoubleArrayBuffer.copy(this, mark);}", "after": "public override java.nio.DoubleBuffer asReadOnlyBuffer(){return java.nio.ReadOnlyDoubleArrayBuffer.copy(this, _mark);}" }, { "index": 3724, "before": "public CacheCluster deleteCacheCluster(DeleteCacheClusterRequest request) {request = beforeClientExecution(request);return executeDeleteCacheCluster(request);}", "after": "public virtual DeleteCacheClusterResponse DeleteCacheCluster(DeleteCacheClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCacheClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCacheClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3725, "before": "public ModifyClusterSnapshotScheduleResult modifyClusterSnapshotSchedule(ModifyClusterSnapshotScheduleRequest request) {request = beforeClientExecution(request);return executeModifyClusterSnapshotSchedule(request);}", "after": "public virtual ModifyClusterSnapshotScheduleResponse ModifyClusterSnapshotSchedule(ModifyClusterSnapshotScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClusterSnapshotScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClusterSnapshotScheduleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3726, "before": "public InitCommand setBare(boolean bare) {validateDirs(directory, gitDir, bare);this.bare = bare;return this;}", "after": "public virtual InitCommand SetBare(bool bare){this.bare = bare;return this;}" }, { "index": 3727, "before": "public TermsEnumWithSlice(int index, ReaderSlice subSlice) {this.subSlice = subSlice;this.index = index;assert subSlice.length >= 0: \"length=\" + subSlice.length;}", "after": "public TermsEnumWithSlice(int index, ReaderSlice subSlice){this.SubSlice = subSlice;this.Index = index;Debug.Assert(subSlice.Length >= 0, \"length=\" + subSlice.Length);}" }, { "index": 3728, "before": "public UserSViewEnd(byte[] data) {_rawData = data;}", "after": "public UserSViewEnd(byte[] data){_rawData = data;}" }, { "index": 3729, "before": "public SetIdentityPoolRolesResult setIdentityPoolRoles(SetIdentityPoolRolesRequest request) {request = beforeClientExecution(request);return executeSetIdentityPoolRoles(request);}", "after": "public virtual SetIdentityPoolRolesResponse SetIdentityPoolRoles(SetIdentityPoolRolesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetIdentityPoolRolesRequestMarshaller.Instance;options.ResponseUnmarshaller = SetIdentityPoolRolesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3730, "before": "public Vector( short type ) {this._type = type;}", "after": "public Vector(short type){this._type = type;}" }, { "index": 3731, "before": "public GetEndpointResult getEndpoint(GetEndpointRequest request) {request = beforeClientExecution(request);return executeGetEndpoint(request);}", "after": "public virtual GetEndpointResponse GetEndpoint(GetEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3732, "before": "public Builder add(int docId) {if (docId <= lastDocId) {throw new IllegalArgumentException(\"Doc ids must be added in-order, got \" + docId + \" which is <= lastDocID=\" + lastDocId);}final int block = docId >>> 16;if (block != currentBlock) {flush();currentBlock = block;}if (currentBlockCardinality < MAX_ARRAY_LENGTH) {buffer[currentBlockCardinality] = (short) docId;} else {if (denseBuffer == null) {final int numBits = Math.min(1 << 16, maxDoc - (block << 16));denseBuffer = new FixedBitSet(numBits);for (short doc : buffer) {denseBuffer.set(doc & 0xFFFF);}}denseBuffer.set(docId & 0xFFFF);}lastDocId = docId;currentBlockCardinality += 1;return this;}", "after": "public Builder Add(int docID){if (docID <= lastDocID){throw new System.ArgumentException(\"Doc ids must be added in-order, got \" + docID + \" which is <= lastDocID=\" + lastDocID);}int wordNum = WordNum(docID);if (this.wordNum == -1){this.wordNum = wordNum;word = 1 << (docID & 0x07);}else if (wordNum == this.wordNum){word |= 1 << (docID & 0x07);}else{AddWord(this.wordNum, (byte)word);this.wordNum = wordNum;word = 1 << (docID & 0x07);}lastDocID = docID;return this;}" }, { "index": 3733, "before": "public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol) {return false;}", "after": "public override bool Matches(int symbol, int minVocabSymbol, int maxVocabSymbol){return false;}" }, { "index": 3734, "before": "public DescribeClustersResult describeClusters(DescribeClustersRequest request) {request = beforeClientExecution(request);return executeDescribeClusters(request);}", "after": "public virtual DescribeClustersResponse DescribeClusters(DescribeClustersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClustersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClustersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3735, "before": "public Trie reduce(Reduce by) {List h = new ArrayList<>();for (Trie trie : tries)h.add(trie.reduce(by));MultiTrie2 m = new MultiTrie2(forward);m.tries = h;return m;}", "after": "public override Trie Reduce(Reduce by){List h = new List();foreach (Trie trie in m_tries)h.Add(trie.Reduce(by));MultiTrie2 m = new MultiTrie2(forward);m.m_tries = h;return m;}" }, { "index": 3736, "before": "public CellRangeAddressBase getCategoryLabelsCellRange() {return getCellRange(dataCategoryLabels);}", "after": "public CellRangeAddressBase GetCategoryLabelsCellRange(){return GetCellRange(dataCategoryLabels);}" }, { "index": 3737, "before": "public String getPass() {return pass;}", "after": "public virtual string GetPass(){return pass;}" }, { "index": 3738, "before": "public synchronized Set> entrySet() {Set> es = entrySet;return (es != null) ? es : (entrySet = new EntrySet());}", "after": "public virtual java.util.Set> entrySet(){lock (this){java.util.Set> es = _entrySet;return (es != null) ? es : (_entrySet = new java.util.Hashtable.EntrySet(this));}}" }, { "index": 3739, "before": "public static String toFormulaString(HSSFWorkbook book, Ptg[] ptgs) {return FormulaRenderer.toFormulaString(HSSFEvaluationWorkbook.create(book), ptgs);}", "after": "public static String ToFormulaString(HSSFWorkbook book, Ptg[] ptgs){return FormulaRenderer.ToFormulaString(HSSFEvaluationWorkbook.Create(book), ptgs);}" }, { "index": 3740, "before": "public CharBuffer slice() {return new CharSequenceAdapter(sequence.subSequence(position, limit));}", "after": "public override java.nio.CharBuffer slice(){return new java.nio.CharSequenceAdapter(sequence.SubSequence(_position, _limit));}" }, { "index": 3741, "before": "public UpdateBusinessReportScheduleResult updateBusinessReportSchedule(UpdateBusinessReportScheduleRequest request) {request = beforeClientExecution(request);return executeUpdateBusinessReportSchedule(request);}", "after": "public virtual UpdateBusinessReportScheduleResponse UpdateBusinessReportSchedule(UpdateBusinessReportScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBusinessReportScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBusinessReportScheduleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3742, "before": "public void append(byte[] nameBuf, int namePos, int nameLen, FileMode mode,byte[] idBuf, int idPos) {if (fmtBuf(nameBuf, namePos, nameLen, mode)) {System.arraycopy(idBuf, idPos, buf, ptr, OBJECT_ID_LENGTH);ptr += OBJECT_ID_LENGTH;} else {try {fmtOverflowBuffer(nameBuf, namePos, nameLen, mode);overflowBuffer.write(idBuf, idPos, OBJECT_ID_LENGTH);} catch (IOException badBuffer) {throw new RuntimeException(badBuffer);}}}", "after": "public virtual void Append(byte[] nameBuf, int namePos, int nameLen, FileMode mode, byte[] idBuf, int idPos){if (FmtBuf(nameBuf, namePos, nameLen, mode)){System.Array.Copy(idBuf, idPos, buf, ptr, Constants.OBJECT_ID_LENGTH);ptr += Constants.OBJECT_ID_LENGTH;}else{try{FmtOverflowBuffer(nameBuf, namePos, nameLen, mode);overflowBuffer.Write(idBuf, idPos, Constants.OBJECT_ID_LENGTH);}catch (IOException badBuffer){throw new RuntimeException(badBuffer);}}}" }, { "index": 3743, "before": "public CreateSpotDatafeedSubscriptionResult createSpotDatafeedSubscription(CreateSpotDatafeedSubscriptionRequest request) {request = beforeClientExecution(request);return executeCreateSpotDatafeedSubscription(request);}", "after": "public virtual CreateSpotDatafeedSubscriptionResponse CreateSpotDatafeedSubscription(CreateSpotDatafeedSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSpotDatafeedSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSpotDatafeedSubscriptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3744, "before": "public final long length() {return count;}", "after": "public long Length(){return count;}" }, { "index": 3745, "before": "public CreateSkillGroupResult createSkillGroup(CreateSkillGroupRequest request) {request = beforeClientExecution(request);return executeCreateSkillGroup(request);}", "after": "public virtual CreateSkillGroupResponse CreateSkillGroup(CreateSkillGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSkillGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSkillGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3746, "before": "public int getRightId(int wordId) {return RIGHT_ID;}", "after": "public int GetRightId(int wordId){return RIGHT_ID;}" }, { "index": 3747, "before": "public void setRetainBody(boolean retain) {retainBody = retain;}", "after": "public virtual void SetRetainBody(bool retain){retainBody = retain;}" }, { "index": 3748, "before": "public final void reset() {len =0;}", "after": "public void Reset(){m_len = 0;}" }, { "index": 3749, "before": "public StringBuilder insert(int offset, boolean b) {insert0(offset, b ? \"true\" : \"false\");return this;}", "after": "public java.lang.StringBuilder insert(int offset, bool b){insert0(offset, b ? \"true\" : \"false\");return this;}" }, { "index": 3750, "before": "public static boolean isWhitespace(byte c) {return WHITESPACE[c & 0xff];}", "after": "public static bool IsWhitespace(byte c){return WHITESPACE[c & unchecked((int)(0xff))];}" }, { "index": 3751, "before": "public DescribeSessionsResult describeSessions(DescribeSessionsRequest request) {request = beforeClientExecution(request);return executeDescribeSessions(request);}", "after": "public virtual DescribeSessionsResponse DescribeSessions(DescribeSessionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSessionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSessionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3752, "before": "public DescribeLocalGatewayVirtualInterfaceGroupsResult describeLocalGatewayVirtualInterfaceGroups(DescribeLocalGatewayVirtualInterfaceGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeLocalGatewayVirtualInterfaceGroups(request);}", "after": "public virtual DescribeLocalGatewayVirtualInterfaceGroupsResponse DescribeLocalGatewayVirtualInterfaceGroups(DescribeLocalGatewayVirtualInterfaceGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLocalGatewayVirtualInterfaceGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLocalGatewayVirtualInterfaceGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3753, "before": "public static String pathToString(String dim, String[] path) {String[] fullPath = new String[1+path.length];fullPath[0] = dim;System.arraycopy(path, 0, fullPath, 1, path.length);return pathToString(fullPath, fullPath.length);}", "after": "public static string PathToString(string dim, string[] path){string[] fullPath = new string[1 + path.Length];fullPath[0] = dim;Array.Copy(path, 0, fullPath, 1, path.Length);return PathToString(fullPath, fullPath.Length);}" }, { "index": 3754, "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 >>> 6) & 3;values[valuesOffset++] = (block >>> 4) & 3;values[valuesOffset++] = (block >>> 2) & 3;values[valuesOffset++] = block & 3;}}", "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 >> 6)) & 3;values[valuesOffset++] = ((int)((uint)block >> 4)) & 3;values[valuesOffset++] = ((int)((uint)block >> 2)) & 3;values[valuesOffset++] = block & 3;}}" }, { "index": 3755, "before": "public SignalResourceResult signalResource(SignalResourceRequest request) {request = beforeClientExecution(request);return executeSignalResource(request);}", "after": "public virtual SignalResourceResponse SignalResource(SignalResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = SignalResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = SignalResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3756, "before": "public int getPasswordVerifier() {return passwordVerifier;}", "after": "public int GetPasswordVerifier(){return passwordVerifier;}" }, { "index": 3757, "before": "public void copy(MutableValue source) {MutableValueDouble s = (MutableValueDouble) source;value = s.value;exists = s.exists;}", "after": "public override void Copy(MutableValue source){MutableValueDouble s = (MutableValueDouble)source;Value = s.Value;Exists = s.Exists;}" }, { "index": 3758, "before": "public int read(byte[] buffer, int offset, int length) throws IOException {Arrays.checkOffsetAndCount(buffer.length, offset, length);for (int i = 0; i < length; i++) {int c;try {if ((c = read()) == -1) {return i == 0 ? -1 : i;}} catch (IOException e) {if (i != 0) {return i;}throw e;}buffer[offset + i] = (byte) c;}return length;}", "after": "public virtual int read(byte[] buffer, int offset, int length){java.util.Arrays.checkOffsetAndCount(buffer.Length, offset, length);{for (int i = 0; i < length; i++){int c;try{if ((c = read()) == -1){return i == 0 ? -1 : i;}}catch (System.IO.IOException e){if (i != 0){return i;}throw;}buffer[offset + i] = unchecked((byte)c);}}return length;}" }, { "index": 3759, "before": "public TreeFilter getPathFilter() {return pathFilter;}", "after": "public virtual TreeFilter GetPathFilter(){return pathFilter;}" }, { "index": 3760, "before": "public CalcCountRecord(RecordInputStream in) {field_1_iterations = in.readShort();}", "after": "public CalcCountRecord(RecordInputStream in1){field_1_iterations = in1.ReadShort();}" }, { "index": 3761, "before": "public DescribeVaultRequest(String vaultName) {setVaultName(vaultName);}", "after": "public DescribeVaultRequest(string vaultName){_vaultName = vaultName;}" }, { "index": 3762, "before": "public final double get() {if (position == limit) {throw new BufferUnderflowException();}return backingArray[offset + position++];}", "after": "public sealed override double get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return backingArray[offset + _position++];}" }, { "index": 3763, "before": "public final void write(char[] b) {write(b,0,b.length);}", "after": "public void Write(char[] b){Write(b, 0, b.Length);}" }, { "index": 3764, "before": "public DeleteTagsForDomainResult deleteTagsForDomain(DeleteTagsForDomainRequest request) {request = beforeClientExecution(request);return executeDeleteTagsForDomain(request);}", "after": "public virtual DeleteTagsForDomainResponse DeleteTagsForDomain(DeleteTagsForDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTagsForDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTagsForDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3765, "before": "public SetMeRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"SetMe\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public SetMeRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"SetMe\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 3766, "before": "public LongBuffer put(long c) {if (position == limit) {throw new BufferOverflowException();}byteBuffer.putLong(position++ * SizeOf.LONG, c);return this;}", "after": "public override java.nio.LongBuffer put(long c){if (_position == _limit){throw new java.nio.BufferOverflowException();}byteBuffer.putLong(_position++ * libcore.io.SizeOf.LONG, c);return this;}" }, { "index": 3767, "before": "public DisassociateFleetResult disassociateFleet(DisassociateFleetRequest request) {request = beforeClientExecution(request);return executeDisassociateFleet(request);}", "after": "public virtual DisassociateFleetResponse DisassociateFleet(DisassociateFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateFleetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3768, "before": "public String toString() {return getClass().getSimpleName() + \"(\" + in.toString() + \")\";}", "after": "public override string ToString(){return this.GetType().Name + \"(\" + m_input.ToString() + \")\";}" }, { "index": 3769, "before": "public static String fromLong(Long value) {return Long.toString(value);}", "after": "public static string FromLong(long value){return value.ToString(CultureInfo.InvariantCulture);}" }, { "index": 3770, "before": "public BytesRefArray(Counter bytesUsed) {this.pool = new ByteBlockPool(new ByteBlockPool.DirectTrackingAllocator(bytesUsed));pool.nextBuffer();bytesUsed.addAndGet(RamUsageEstimator.NUM_BYTES_ARRAY_HEADER * Integer.BYTES);this.bytesUsed = bytesUsed;}", "after": "public BytesRefArray(Counter bytesUsed){this.pool = new ByteBlockPool(new ByteBlockPool.DirectTrackingAllocator(bytesUsed));pool.NextBuffer();bytesUsed.AddAndGet(RamUsageEstimator.NUM_BYTES_ARRAY_HEADER + RamUsageEstimator.NUM_BYTES_INT32);this.bytesUsed = bytesUsed;}" }, { "index": 3771, "before": "public FloatBuffer put(float[] src, int srcOffset, int floatCount) {if (floatCount > remaining()) {throw new BufferOverflowException();}System.arraycopy(src, srcOffset, backingArray, offset + position, floatCount);position += floatCount;return this;}", "after": "public override java.nio.FloatBuffer put(float[] src, int srcOffset, int floatCount){if (floatCount > remaining()){throw new java.nio.BufferOverflowException();}System.Array.Copy(src, srcOffset, backingArray, offset + _position, floatCount);_position += floatCount;return this;}" }, { "index": 3772, "before": "public void skipBytes(final long numBytes) throws IOException {if (numBytes < 0) {throw new IllegalArgumentException(\"numBytes must be >= 0, got \" + numBytes);}if (skipBuffer == null) {skipBuffer = new byte[SKIP_BUFFER_SIZE];}assert skipBuffer.length == SKIP_BUFFER_SIZE;for (long skipped = 0; skipped < numBytes; ) {final int step = (int) Math.min(SKIP_BUFFER_SIZE, numBytes - skipped);readBytes(skipBuffer, 0, step, false);skipped += step;}}", "after": "public virtual void SkipBytes(long numBytes){if (numBytes < 0){throw new ArgumentException(\"numBytes must be >= 0, got \" + numBytes);}if (skipBuffer == null){skipBuffer = new byte[SKIP_BUFFER_SIZE];}Debug.Assert(skipBuffer.Length == SKIP_BUFFER_SIZE);for (long skipped = 0; skipped < numBytes; ){var step = (int)Math.Min(SKIP_BUFFER_SIZE, numBytes - skipped);ReadBytes(skipBuffer, 0, step, false);skipped += step;}}" }, { "index": 3773, "before": "public final char get() {if (position == limit) {throw new BufferUnderflowException();}return backingArray[offset + position++];}", "after": "public sealed override char get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return backingArray[offset + _position++];}" }, { "index": 3774, "before": "public String quote(String in) {if (in.matches(\"^~[A-Za-z0-9_-]+$\")) { return in + \"/\"; }.*$\")) { final int i = in.indexOf('/') + 1;if (i == in.length())return in;return in.substring(0, i) + super.quote(in.substring(i));}return super.quote(in);}", "after": "public override string Quote(string @in){if (@in.Matches(\"^~[A-Za-z0-9_-]+$\")){return @in + \"/\";}.*$\")){int i = @in.IndexOf('/') + 1;if (i == @in.Length){return @in;}return Sharpen.Runtime.Substring(@in, 0, i) + base.Quote(Sharpen.Runtime.Substring(@in, i));}return base.Quote(@in);}" }, { "index": 3775, "before": "@Override public E remove(int location) {synchronized (mutex) {return list.remove(location);}}", "after": "public virtual E remove(int location){lock (mutex){return list.remove(location);}}" }, { "index": 3776, "before": "public ExpPtg(LittleEndianInput in) {field_1_first_row = in.readShort();field_2_first_col = in.readShort();}", "after": "public ExpPtg(ILittleEndianInput in1){field_1_first_row = in1.ReadShort();field_2_first_col = in1.ReadShort();}" }, { "index": 3777, "before": "public TokenStream create(TokenStream input) {return new CJKBigramFilter(input, flags, outputUnigrams);}", "after": "public override TokenStream Create(TokenStream input){return new CJKBigramFilter(input, flags, outputUnigrams);}" }, { "index": 3778, "before": "public FuzzySet getSetForField(SegmentWriteState state,FieldInfo info) {return FuzzySet.createSetBasedOnQuality(state.segmentInfo.maxDoc(), 0.10f);}", "after": "public override FuzzySet GetSetForField(SegmentWriteState state, FieldInfo info){return FuzzySet.CreateSetBasedOnQuality(state.SegmentInfo.DocCount, 0.10f);}" }, { "index": 3779, "before": "public static int[] grow(int[] array) {return grow(array, 1 + array.length);}", "after": "public static short[] Grow(short[] array){return Grow(array, 1 + array.Length);}" }, { "index": 3780, "before": "public void setLength(int length) {if (length < 0) {throw new StringIndexOutOfBoundsException(\"length < 0: \" + length);}if (length > value.length) {enlargeBuffer(length);} else {if (shared) {char[] newData = new char[value.length];System.arraycopy(value, 0, newData, 0, count);value = newData;shared = false;} else {if (count < length) {Arrays.fill(value, count, length, (char) 0);}}}count = length;}", "after": "public virtual void setLength(int length_1){if (length_1 < 0){throw new java.lang.StringIndexOutOfBoundsException(\"length < 0: \" + length_1);}if (length_1 > value.Length){enlargeBuffer(length_1);}else{if (shared){char[] newData = new char[value.Length];System.Array.Copy(value, 0, newData, 0, count);value = newData;shared = false;}else{if (count < length_1){java.util.Arrays.fill(value, count, length_1, (char)0);}}}count = length_1;}" }, { "index": 3781, "before": "public void sync() {boolean interrupted = false;try {while (true) {MergeThread toSync = null;synchronized (this) {for (MergeThread t : mergeThreads) {if (t.isAlive() && t != Thread.currentThread()) {toSync = t;break;}}}if (toSync != null) {try {toSync.join();} catch (InterruptedException ie) {interrupted = true;}} else {break;}}} finally {if (interrupted) Thread.currentThread().interrupt();}}", "after": "public virtual void Sync(){bool interrupted = false;try{while (true){MergeThread toSync = null;lock (this){foreach (MergeThread t in m_mergeThreads){if (t != null && t.IsAlive){toSync = t;break;}}}if (toSync != null){try{toSync.Join();}#pragma warning disable 168catch (ThreadInterruptedException ie)#pragma warning restore 168{interrupted = true;}}else{break;}}}finally{if (interrupted){Thread.CurrentThread.Interrupt();}}}" }, { "index": 3782, "before": "public DescribeIdentityPoolUsageResult describeIdentityPoolUsage(DescribeIdentityPoolUsageRequest request) {request = beforeClientExecution(request);return executeDescribeIdentityPoolUsage(request);}", "after": "public virtual DescribeIdentityPoolUsageResponse DescribeIdentityPoolUsage(DescribeIdentityPoolUsageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIdentityPoolUsageRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIdentityPoolUsageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3783, "before": "public ClusterSecurityGroup createClusterSecurityGroup(CreateClusterSecurityGroupRequest request) {request = beforeClientExecution(request);return executeCreateClusterSecurityGroup(request);}", "after": "public virtual CreateClusterSecurityGroupResponse CreateClusterSecurityGroup(CreateClusterSecurityGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateClusterSecurityGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateClusterSecurityGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3784, "before": "public K nextElement() { return nextEntryNotFailFast().key; }", "after": "public K nextElement(){return this.nextEntryNotFailFast().key;}" }, { "index": 3785, "before": "public HSSFShapeGroup(EscherContainerRecord spgrContainer, ObjRecord objRecord) {super(spgrContainer, objRecord);EscherContainerRecord spContainer = spgrContainer.getChildContainers().get(0);_spgrRecord = (EscherSpgrRecord) spContainer.getChild(0);for (EscherRecord ch : spContainer.getChildRecords()) {switch (EscherRecordTypes.forTypeID(ch.getRecordId())) {case SPGR:break;case CLIENT_ANCHOR:anchor = new HSSFClientAnchor((EscherClientAnchorRecord) ch);break;case CHILD_ANCHOR:anchor = new HSSFChildAnchor((EscherChildAnchorRecord) ch);break;default:break;}}}", "after": "public HSSFShapeGroup(EscherContainerRecord spgrContainer, ObjRecord objRecord): base(spgrContainer, objRecord){EscherContainerRecord spContainer = spgrContainer.ChildContainers[0];_spgrRecord = (EscherSpgrRecord)spContainer.GetChild(0);foreach (EscherRecord ch in spContainer.ChildRecords){switch (ch.RecordId){case EscherSpgrRecord.RECORD_ID:break;case EscherClientAnchorRecord.RECORD_ID:anchor = new HSSFClientAnchor((EscherClientAnchorRecord)ch);break;case EscherChildAnchorRecord.RECORD_ID:anchor = new HSSFChildAnchor((EscherChildAnchorRecord)ch);break;}}}" }, { "index": 3786, "before": "public SoraniStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public SoraniStemFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 3787, "before": "public SetAlbumCoverRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"SetAlbumCover\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public SetAlbumCoverRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"SetAlbumCover\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 3788, "before": "public boolean equals(final Object o){boolean rval = false;if ((o != null) && (o.getClass() == this.getClass())){if (this == o){rval = true;}else{DocumentDescriptor descriptor = ( DocumentDescriptor ) o;rval = this.path.equals(descriptor.path)&& this.name.equals(descriptor.name);}}return rval;}", "after": "public override bool Equals(Object o){bool rval = false;if ((o != null) && (o.GetType()== this.GetType())){if (this == o){rval = true;}else{DocumentDescriptor descriptor = ( DocumentDescriptor ) o;rval = this.path.Equals(descriptor.path)&& this.name.Equals(descriptor.name);}}return rval;}" }, { "index": 3789, "before": "public void finish() {if (!sorted)resort();replace();}", "after": "public override void Finish(){if (!sorted){Resort();}Replace();}" }, { "index": 3790, "before": "public void map(K key, V value) {List elementsForKey = get(key);if ( elementsForKey==null ) {elementsForKey = new ArrayList();super.put(key, elementsForKey);}elementsForKey.add(value);}", "after": "public virtual void Map(K key, V value){IList elementsForKey;if (!TryGetValue(key, out elementsForKey)){elementsForKey = new ArrayList();this[key] = elementsForKey;}elementsForKey.Add(value);}" }, { "index": 3791, "before": "public DescribeImportSnapshotTasksResult describeImportSnapshotTasks(DescribeImportSnapshotTasksRequest request) {request = beforeClientExecution(request);return executeDescribeImportSnapshotTasks(request);}", "after": "public virtual DescribeImportSnapshotTasksResponse DescribeImportSnapshotTasks(DescribeImportSnapshotTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeImportSnapshotTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeImportSnapshotTasksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3792, "before": "public ListEventSourcesResult listEventSources(ListEventSourcesRequest request) {request = beforeClientExecution(request);return executeListEventSources(request);}", "after": "public virtual ListEventSourcesResponse ListEventSources(ListEventSourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEventSourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEventSourcesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3793, "before": "public static double getExcelDate(Calendar date, boolean use1904windowing) {int year = date.get(Calendar.YEAR);int dayOfYear = date.get(Calendar.DAY_OF_YEAR);int hour = date.get(Calendar.HOUR_OF_DAY);int minute = date.get(Calendar.MINUTE);int second = date.get(Calendar.SECOND);int milliSecond = date.get(Calendar.MILLISECOND);return internalGetExcelDate(year, dayOfYear, hour, minute, second, milliSecond, use1904windowing);}", "after": "public static double GetExcelDate(DateTime date, bool use1904windowing){if ((!use1904windowing && date.Year < 1900) || (use1904windowing && date.Year < 1904)) {return BAD_DATE;}DateTime startdate;if (use1904windowing){startdate = new DateTime(1904, 1, 1);}else{startdate = new DateTime(1900, 1, 1);}double value = (date - startdate).TotalDays + 1;if (!use1904windowing && value >= 60){value++;}else if (use1904windowing){value--;}return value;}" }, { "index": 3794, "before": "public TimeSpec(char type, int pos, int len, double factor) {this.type = type;this.pos = pos;this.len = len;this.factor = factor;modBy = 0;}", "after": "public TimeSpec(char type, int pos, int len, double factor){this.type = type;this.pos = pos;this.len = len;this.factor = factor;modBy = 0;}" }, { "index": 3795, "before": "public DeleteApiMappingResult deleteApiMapping(DeleteApiMappingRequest request) {request = beforeClientExecution(request);return executeDeleteApiMapping(request);}", "after": "public virtual DeleteApiMappingResponse DeleteApiMapping(DeleteApiMappingRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApiMappingRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApiMappingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3796, "before": "public static String typeString(int typeCode) {switch (typeCode) {case OBJ_COMMIT:return TYPE_COMMIT;case OBJ_TREE:return TYPE_TREE;case OBJ_BLOB:return TYPE_BLOB;case OBJ_TAG:return TYPE_TAG;default:throw new IllegalArgumentException(MessageFormat.format(JGitText.get().badObjectType, Integer.valueOf(typeCode)));}}", "after": "public static string TypeString(int typeCode){switch (typeCode){case OBJ_COMMIT:{return TYPE_COMMIT;}case OBJ_TREE:{return TYPE_TREE;}case OBJ_BLOB:{return TYPE_BLOB;}case OBJ_TAG:{return TYPE_TAG;}default:{throw new ArgumentException(MessageFormat.Format(JGitText.Get().badObjectType, Sharpen.Extensions.ValueOf(typeCode)));}}}" }, { "index": 3797, "before": "public long addAndGet(long delta) {return count.addAndGet(delta);}", "after": "public override long AddAndGet(long delta){return count.AddAndGet(delta);}" }, { "index": 3798, "before": "public String toString() {StringBuilder sb = new StringBuilder(super.toString());sb.append(\" fields=\");sb.append(Arrays.toString(fields));return sb.toString();}", "after": "public override string ToString(){StringBuilder sb = new StringBuilder(base.ToString());sb.Append(\" fields=\");sb.Append(Arrays.ToString(fields));return sb.ToString();}" }, { "index": 3799, "before": "public UpdateTemplateActiveVersionResult updateTemplateActiveVersion(UpdateTemplateActiveVersionRequest request) {request = beforeClientExecution(request);return executeUpdateTemplateActiveVersion(request);}", "after": "public virtual UpdateTemplateActiveVersionResponse UpdateTemplateActiveVersion(UpdateTemplateActiveVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTemplateActiveVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTemplateActiveVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3800, "before": "public int compareTo(FacetLabel other) {final int len = length < other.length ? length : other.length;for (int i = 0, j = 0; i < len; i++, j++) {int cmp = components[i].compareTo(other.components[j]);if (cmp < 0) {return -1; }if (cmp > 0) {return 1; }}return length - other.length;}", "after": "public virtual int CompareTo(FacetLabel other){int len = Length < other.Length ? Length : other.Length;for (int i = 0, j = 0; i < len; i++, j++){int cmp = Components[i].CompareToOrdinal(other.Components[j]);if (cmp < 0){return -1; }if (cmp > 0){return 1; }}return Length - other.Length;}" }, { "index": 3801, "before": "public int find(String key) {int len = key.length();char strkey[] = new char[len + 1];key.getChars(0, len, strkey, 0);strkey[len] = 0;return find(strkey, 0);}", "after": "public virtual int Find(string key){int len = key.Length;char[] strkey = new char[len + 1];key.CopyTo(0, strkey, 0, len - 0);strkey[len] = (char)0;return Find(strkey, 0);}" }, { "index": 3802, "before": "public final CharBuffer put(char[] src, int srcOffset, int charCount) {throw new ReadOnlyBufferException();}", "after": "public sealed override java.nio.CharBuffer put(char[] src, int srcOffset, int charCount){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 3803, "before": "public ListNodesResult listNodes(ListNodesRequest request) {request = beforeClientExecution(request);return executeListNodes(request);}", "after": "public virtual ListNodesResponse ListNodes(ListNodesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListNodesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListNodesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3804, "before": "public DeleteVoiceConnectorStreamingConfigurationResult deleteVoiceConnectorStreamingConfiguration(DeleteVoiceConnectorStreamingConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteVoiceConnectorStreamingConfiguration(request);}", "after": "public virtual DeleteVoiceConnectorStreamingConfigurationResponse DeleteVoiceConnectorStreamingConfiguration(DeleteVoiceConnectorStreamingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVoiceConnectorStreamingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVoiceConnectorStreamingConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3805, "before": "public TokenStream create(TokenStream input) {return new SoraniNormalizationFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new SoraniNormalizationFilter(input);}" }, { "index": 3806, "before": "public int following(int pos) {if (pos < start || pos > end) {throw new IllegalArgumentException(\"offset out of bounds\");} else if (pos == end) {current = end;return DONE;} else {return last();}}", "after": "public override int Following(int pos){if (pos < start || pos > end){throw new ArgumentException(\"offset out of bounds\");}else if (pos == end){current = end;return Done;}else{return Last();}}" }, { "index": 3807, "before": "public SshSessionFactory getSshSessionFactory() {return sch;}", "after": "public virtual SshSessionFactory GetSshSessionFactory(){return sch;}" }, { "index": 3808, "before": "@Override public boolean contains(Object o) {if (!(o instanceof Multiset.Entry)) {return false;}Multiset.Entry entry = (Multiset.Entry) o;Collection collection = map.get(entry.getElement());return (collection != null) &&(collection.size() == entry.getCount());}", "after": "public override bool contains(object o){if (!(o is java.util.MapClass.Entry)){return false;}java.util.MapClass.Entry e = (java.util.MapClass.Entry)o;return this._enclosing.containsMapping(e.getKey(), e.getValue());}" }, { "index": 3809, "before": "public TokenFilter create(TokenStream input) {CommonGramsFilter commonGrams = new CommonGramsFilter(input, commonWords);return commonGrams;}", "after": "public override TokenStream Create(TokenStream input){var commonGrams = new CommonGramsFilter(m_luceneMatchVersion, input, commonWords);return commonGrams;}" }, { "index": 3810, "before": "public DescribeWorkspaceImagesResult describeWorkspaceImages(DescribeWorkspaceImagesRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspaceImages(request);}", "after": "public virtual DescribeWorkspaceImagesResponse DescribeWorkspaceImages(DescribeWorkspaceImagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkspaceImagesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkspaceImagesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3811, "before": "public ValueEval getItem(int index) {if (index < 0 || index > _size) {throw new IllegalArgumentException(\"Specified index \" + index+ \" is outside range (0..\" + (_size - 1) + \")\");}return getItemInternal(index);}", "after": "public ValueEval GetItem(int index){if (index < 0 || index > _size){throw new ArgumentException(\"Specified index \" + index+ \" is outside range (0..\" + (_size - 1) + \")\");}return GetItemInternal(index);}" }, { "index": 3812, "before": "public ListEventBusesResult listEventBuses(ListEventBusesRequest request) {request = beforeClientExecution(request);return executeListEventBuses(request);}", "after": "public virtual ListEventBusesResponse ListEventBuses(ListEventBusesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEventBusesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEventBusesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3813, "before": "public QualityStats(double maxGoodPoints, long searchTime) {this.maxGoodPoints = maxGoodPoints;this.searchTime = searchTime;this.recallPoints = new ArrayList<>();pAt = new double[MAX_POINTS+1]; }", "after": "public QualityStats(double maxGoodPoints, long searchTime){this.maxGoodPoints = maxGoodPoints;this.searchTime = searchTime;this.recallPoints = new List();pAt = new double[MAX_POINTS + 1]; }" }, { "index": 3814, "before": "public GetInvalidationRequest(String distributionId, String id) {setDistributionId(distributionId);setId(id);}", "after": "public GetInvalidationRequest(string distributionId, string id){_distributionId = distributionId;_id = id;}" }, { "index": 3815, "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 int CompareTo(ScoreTerm other){if (this.Boost == other.Boost){return TermComp.Compare(other.Bytes, this.Bytes);}else{return this.Boost.CompareTo(other.Boost);}}" }, { "index": 3816, "before": "public RegenerateSecurityTokenResult regenerateSecurityToken(RegenerateSecurityTokenRequest request) {request = beforeClientExecution(request);return executeRegenerateSecurityToken(request);}", "after": "public virtual RegenerateSecurityTokenResponse RegenerateSecurityToken(RegenerateSecurityTokenRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegenerateSecurityTokenRequestMarshaller.Instance;options.ResponseUnmarshaller = RegenerateSecurityTokenResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3817, "before": "public DescribeRootFoldersResult describeRootFolders(DescribeRootFoldersRequest request) {request = beforeClientExecution(request);return executeDescribeRootFolders(request);}", "after": "public virtual DescribeRootFoldersResponse DescribeRootFolders(DescribeRootFoldersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRootFoldersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRootFoldersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3818, "before": "public DeactivateUserResult deactivateUser(DeactivateUserRequest request) {request = beforeClientExecution(request);return executeDeactivateUser(request);}", "after": "public virtual DeactivateUserResponse DeactivateUser(DeactivateUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeactivateUserRequestMarshaller.Instance;options.ResponseUnmarshaller = DeactivateUserResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3819, "before": "public boolean contains(int el) {int n = intervals.size();int l = 0;int r = n - 1;while (l <= r) {int m = (l + r) / 2;Interval I = intervals.get(m);int a = I.a;int b = I.b;if ( bel ) {r = m - 1;} else { return true;}}return false;}", "after": "public virtual bool Contains(int el){int n = intervals.Count;for (int i = 0; i < n; i++){Interval I = intervals[i];int a = I.a;int b = I.b;if (el < a){break;}if (el >= a && el <= b){return true;}}return false;}" }, { "index": 3820, "before": "public ListJobsResult listJobs(ListJobsRequest request) {request = beforeClientExecution(request);return executeListJobs(request);}", "after": "public virtual ListJobsResponse ListJobs(ListJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3821, "before": "public RussianLightStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public RussianLightStemFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 3822, "before": "public SearchSkillGroupsResult searchSkillGroups(SearchSkillGroupsRequest request) {request = beforeClientExecution(request);return executeSearchSkillGroups(request);}", "after": "public virtual SearchSkillGroupsResponse SearchSkillGroups(SearchSkillGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchSkillGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchSkillGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3823, "before": "public SortField getSortField(Bindings bindings, boolean reverse) {return getDoubleValuesSource(bindings).getSortField(reverse);}", "after": "public virtual SortField GetSortField(Bindings bindings, bool reverse){return GetValueSource(bindings).GetSortField(reverse);}" }, { "index": 3824, "before": "public ModifyHostsResult modifyHosts(ModifyHostsRequest request) {request = beforeClientExecution(request);return executeModifyHosts(request);}", "after": "public virtual ModifyHostsResponse ModifyHosts(ModifyHostsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyHostsRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyHostsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3825, "before": "public void setDate(String date) {this.date = date;}", "after": "public virtual void SetDate(string date){this.date = date;}" }, { "index": 3826, "before": "public ValueEval getAreaEval(int firstRowIndex, int firstColumnIndex,int lastRowIndex, int lastColumnIndex) {SheetRangeEvaluator sre = getRefEvaluatorForCurrentSheet();return new LazyAreaEval(firstRowIndex, firstColumnIndex, lastRowIndex, lastColumnIndex, sre);}", "after": "public ValueEval GetAreaEval(int firstRowIndex, int firstColumnIndex,int lastRowIndex, int lastColumnIndex){SheetRangeEvaluator sre = GetRefEvaluatorForCurrentSheet();return new LazyAreaEval(firstRowIndex, firstColumnIndex, lastRowIndex, lastColumnIndex, sre);}" }, { "index": 3827, "before": "public CreateContactMethodResult createContactMethod(CreateContactMethodRequest request) {request = beforeClientExecution(request);return executeCreateContactMethod(request);}", "after": "public virtual CreateContactMethodResponse CreateContactMethod(CreateContactMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateContactMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateContactMethodResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3828, "before": "public static final RevFilter before(Date ts) {return before(ts.getTime());}", "after": "public static RevFilter Before(DateTime ts){return Before(ts.GetTime());}" }, { "index": 3829, "before": "public String toString() { return toString(VocabularyImpl.EMPTY_VOCABULARY); }", "after": "public override String ToString() { return ToString(Vocabulary.EmptyVocabulary); }" }, { "index": 3830, "before": "public void updateFormulasAfterCellShift(FormulaShifter shifter, int externSheetIndex) {for (int i = 0; i < _cfHeaders.size(); i++) {CFRecordsAggregate subAgg = _cfHeaders.get(i);boolean shouldKeep = subAgg.updateFormulasAfterCellShift(shifter, externSheetIndex);if (!shouldKeep) {_cfHeaders.remove(i);i--;}}}", "after": "public void UpdateFormulasAfterCellShift(FormulaShifter shifter, int externSheetIndex){for (int i = 0; i < _cfHeaders.Count; i++){CFRecordsAggregate subAgg = (CFRecordsAggregate)_cfHeaders[i];bool shouldKeep = subAgg.UpdateFormulasAfterCellShift(shifter, externSheetIndex);if (!shouldKeep){_cfHeaders.RemoveAt(i);i--;}}}" }, { "index": 3831, "before": "public void insertCell(CellValueRecordInterface cvRec) {_valuesAgg.insertCell(cvRec);}", "after": "public void InsertCell(CellValueRecordInterface cvRec){_valuesAgg.InsertCell(cvRec);}" }, { "index": 3832, "before": "public ShingleFilter create(TokenStream input) {ShingleFilter r = new ShingleFilter(input, minShingleSize, maxShingleSize);r.setOutputUnigrams(outputUnigrams);r.setOutputUnigramsIfNoShingles(outputUnigramsIfNoShingles);r.setTokenSeparator(tokenSeparator);r.setFillerToken(fillerToken);return r;}", "after": "public override TokenStream Create(TokenStream input){ShingleFilter r = new ShingleFilter(input, minShingleSize, maxShingleSize);r.SetOutputUnigrams(outputUnigrams);r.SetOutputUnigramsIfNoShingles(outputUnigramsIfNoShingles);r.SetTokenSeparator(tokenSeparator);r.SetFillerToken(fillerToken);return r;}" }, { "index": 3833, "before": "public SlopQueryNode(QueryNode query, int value) {if (query == null) {throw new QueryNodeError(new MessageImpl(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED, \"query\", \"null\"));}this.value = value;setLeaf(false);allocate();add(query);}", "after": "public SlopQueryNode(IQueryNode query, int value){if (query == null){throw new QueryNodeError(new Message(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED, \"query\", \"null\"));}this.value = value;IsLeaf = false;Allocate();Add(query);}" }, { "index": 3834, "before": "public ReplaceRouteTableAssociationResult replaceRouteTableAssociation(ReplaceRouteTableAssociationRequest request) {request = beforeClientExecution(request);return executeReplaceRouteTableAssociation(request);}", "after": "public virtual ReplaceRouteTableAssociationResponse ReplaceRouteTableAssociation(ReplaceRouteTableAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReplaceRouteTableAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = ReplaceRouteTableAssociationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3835, "before": "public void setObjectIdFromRaw(byte[] bs, int p) {final int n = Constants.OBJECT_ID_LENGTH;System.arraycopy(bs, p, idBuffer(), idOffset(), n);}", "after": "public virtual void SetObjectIdFromRaw(byte[] bs, int p){int n = Constants.OBJECT_ID_LENGTH;System.Array.Copy(bs, p, IdBuffer, IdOffset, n);}" }, { "index": 3836, "before": "public ListTablesResult listTables(Integer limit) {return listTables(new ListTablesRequest().withLimit(limit));}", "after": "public virtual ListTablesResponse ListTables(int limit){var request = new ListTablesRequest();request.Limit = limit;return ListTables(request);}" }, { "index": 3837, "before": "public DeleteDeviceGroupRequest() {super(\"LinkFace\", \"2018-07-20\", \"DeleteDeviceGroup\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public DeleteDeviceGroupRequest(): base(\"LinkFace\", \"2018-07-20\", \"DeleteDeviceGroup\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 3838, "before": "public void addRecords(RecordStream rs) {while (true) {if (!readARecord(rs)) {break;}}}", "after": "public void AddRecords(RecordStream rs){while (true){if (!ReadARecord(rs)){break;}}}" }, { "index": 3839, "before": "public static Collection getSupportedFunctionNames() {Collection lst = new TreeSet<>();for (int i = 0; i < functions.length; i++) {Function func = functions[i];FunctionMetadata metaData = FunctionMetadataRegistry.getFunctionByIndex(i);if (func != null && !(func instanceof NotImplementedFunction)) {lst.add(metaData.getName());}}lst.add(\"INDIRECT\"); return Collections.unmodifiableCollection(lst);}", "after": "public static ReadOnlyCollection GetSupportedFunctionNames(){List lst = new List();for (int i = 0; i < functions.Length; i++){Function func = functions[i];FunctionMetadata metaData = FunctionMetadataRegistry.GetFunctionByIndex(i);if (func != null && !(func is NotImplementedFunction)){lst.Add(metaData.Name);}}lst.Add(\"INDIRECT\"); return lst.AsReadOnly(); }" }, { "index": 3840, "before": "public PendingTaskCount countPendingActivityTasks(CountPendingActivityTasksRequest request) {request = beforeClientExecution(request);return executeCountPendingActivityTasks(request);}", "after": "public virtual CountPendingActivityTasksResponse CountPendingActivityTasks(CountPendingActivityTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = CountPendingActivityTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = CountPendingActivityTasksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3841, "before": "public List process(String sentence) {SegGraph segGraph = createSegGraph(sentence);BiSegGraph biSegGraph = new BiSegGraph(segGraph);List shortPath = biSegGraph.getShortPath();return shortPath;}", "after": "public virtual IList Process(string sentence){SegGraph segGraph = CreateSegGraph(sentence);BiSegGraph biSegGraph = new BiSegGraph(segGraph);IList shortPath = biSegGraph.GetShortPath();return shortPath;}" }, { "index": 3842, "before": "public Area3DPtg(AreaReference arearef, int externIdx) {super(arearef);setExternSheetIndex(externIdx);}", "after": "public Area3DPtg(AreaReference arearef, int externIdx):base(arearef){ExternSheetIndex=(externIdx);}" }, { "index": 3843, "before": "public EnableRuleResult enableRule(EnableRuleRequest request) {request = beforeClientExecution(request);return executeEnableRule(request);}", "after": "public virtual EnableRuleResponse EnableRule(EnableRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3844, "before": "public static boolean equals(byte[] array1, byte[] array2) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length != array2.length) {return false;}for (int i = 0; i < array1.length; i++) {if (array1[i] != array2[i]) {return false;}}return true;}", "after": "public static bool equals(byte[] array1, byte[] array2){if (array1 == array2){return true;}if (array1 == null || array2 == null || array1.Length != array2.Length){return false;}{for (int i = 0; i < array1.Length; i++){if (array1[i] != array2[i]){return false;}}}return true;}" }, { "index": 3845, "before": "public boolean isExpectDataAfterPackFooter() {return expectDataAfterPackFooter;}", "after": "public virtual bool IsExpectDataAfterPackFooter(){return expectDataAfterPackFooter;}" }, { "index": 3846, "before": "public ListIncomingTypedLinksResult listIncomingTypedLinks(ListIncomingTypedLinksRequest request) {request = beforeClientExecution(request);return executeListIncomingTypedLinks(request);}", "after": "public virtual ListIncomingTypedLinksResponse ListIncomingTypedLinks(ListIncomingTypedLinksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIncomingTypedLinksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIncomingTypedLinksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3847, "before": "public void removeRevNumber() {remove1stProperty(PropertyIDMap.PID_REVNUMBER);}", "after": "public void RemoveRevNumber(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_REVNUMBER);}" }, { "index": 3848, "before": "public DeleteMonitoringScheduleResult deleteMonitoringSchedule(DeleteMonitoringScheduleRequest request) {request = beforeClientExecution(request);return executeDeleteMonitoringSchedule(request);}", "after": "public virtual DeleteMonitoringScheduleResponse DeleteMonitoringSchedule(DeleteMonitoringScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMonitoringScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMonitoringScheduleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3849, "before": "public synchronized boolean put(FacetLabel categoryPath, int ordinal) {boolean ret = cache.put(categoryPath, ordinal);if (ret) {cache.makeRoomLRU();}return ret;}", "after": "public virtual bool Put(FacetLabel categoryPath, int ordinal){lock (this){bool ret = cache.Put(categoryPath, ordinal);if (ret){cache.MakeRoomLRU();}return ret;}}" }, { "index": 3850, "before": "public void pushNewRecursionContext(ParserRuleContext localctx, int state, int ruleIndex) {ParserRuleContext previous = _ctx;previous.parent = localctx;previous.invokingState = state;previous.stop = _input.LT(-1);_ctx = localctx;_ctx.start = previous.start;if (_buildParseTrees) {_ctx.addChild(previous);}if ( _parseListeners != null ) {triggerEnterRuleEvent(); }}", "after": "public virtual void PushNewRecursionContext(ParserRuleContext localctx, int state, int ruleIndex){ParserRuleContext previous = _ctx;previous.Parent = localctx;previous.invokingState = state;previous.Stop = _input.LT(-1);_ctx = localctx;_ctx.Start = previous.Start;if (_buildParseTrees){_ctx.AddChild(previous);}if (_parseListeners != null){TriggerEnterRuleEvent();}}" }, { "index": 3851, "before": "public Writer() {output = new ByteArrayOutputStream();}", "after": "protected internal Writer(){@lock = this;}" }, { "index": 3852, "before": "public String getSignerType() {return null;}", "after": "public override string GetSignerType(){return null;}" }, { "index": 3853, "before": "public void add(Ptg token) {if (token == null) {throw new IllegalArgumentException(\"token must not be null\");}_ptgs[_offset] = token;_offset++;}", "after": "public void Add(Ptg token){if (token == null){throw new ArgumentException(\"token must not be null\");}_ptgs[_offset] = token;_offset++;}" }, { "index": 3854, "before": "public Repository build() throws IOException {FileRepository repo = new FileRepository(setup());if (isMustExist() && !repo.getObjectDatabase().exists())throw new RepositoryNotFoundException(getGitDir());return repo;}", "after": "public override FileRepository Build(){FileRepository repo = new FileRepository(Setup());if (IsMustExist() && !((ObjectDirectory)repo.ObjectDatabase).Exists()){throw new RepositoryNotFoundException(GetGitDir());}return repo;}" }, { "index": 3855, "before": "public List getWeightedFragInfoList( List src ) {Collections.sort( src, new ScoreComparator() );return src;}", "after": "public override IList GetWeightedFragInfoList(IList src){CollectionUtil.TimSort(src, new ScoreComparer());return src;}" }, { "index": 3856, "before": "public String toString() {return \"epsilon\";}", "after": "public override string ToString(){return \"epsilon\";}" }, { "index": 3857, "before": "public DescribeDBLogFilesResult describeDBLogFiles(DescribeDBLogFilesRequest request) {request = beforeClientExecution(request);return executeDescribeDBLogFiles(request);}", "after": "public virtual DescribeDBLogFilesResponse DescribeDBLogFiles(DescribeDBLogFilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBLogFilesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBLogFilesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3858, "before": "public NoteRecord(RecordInputStream in) {field_1_row = in.readUShort();field_2_col = in.readShort();field_3_flags = in.readShort();field_4_shapeid = in.readUShort();int length = in.readShort();field_5_hasMultibyte = in.readByte() != 0x00;if (field_5_hasMultibyte) {field_6_author = StringUtil.readUnicodeLE(in, length);} else {field_6_author = StringUtil.readCompressedUnicode(in, length);}if (in.available() == 1) {field_7_padding = Byte.valueOf(in.readByte());} else if (in.available() == 2 && length == 0) {field_7_padding = Byte.valueOf(in.readByte());in.readByte();}}", "after": "public NoteRecord(RecordInputStream in1){field_1_row = in1.ReadShort();field_2_col = in1.ReadUShort();field_3_flags = in1.ReadShort();field_4_shapeid = in1.ReadUShort();int length = in1.ReadShort();field_5_hasMultibyte = in1.ReadByte() != 0x00;if (field_5_hasMultibyte) {field_6_author = StringUtil.ReadUnicodeLE(in1, length);} else {field_6_author = StringUtil.ReadCompressedUnicode(in1, length);}if (in1.Available() == 1) {field_7_padding = (byte)in1.ReadByte();}else if (in1.Available() == 2 && length == 0){field_7_padding = (byte)in1.ReadByte();in1.ReadByte();}}" }, { "index": 3859, "before": "public CherryPickCommand setOurCommitName(String ourCommitName) {this.ourCommitName = ourCommitName;return this;}", "after": "public virtual NGit.Api.CherryPickCommand SetOurCommitName(string ourCommitName){this.ourCommitName = ourCommitName;return this;}" }, { "index": 3860, "before": "public GetCloudFormationStackRecordsResult getCloudFormationStackRecords(GetCloudFormationStackRecordsRequest request) {request = beforeClientExecution(request);return executeGetCloudFormationStackRecords(request);}", "after": "public virtual GetCloudFormationStackRecordsResponse GetCloudFormationStackRecords(GetCloudFormationStackRecordsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCloudFormationStackRecordsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCloudFormationStackRecordsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3861, "before": "public XPathTokenAnywhereElement(String tokenName, int tokenType) {super(tokenName);this.tokenType = tokenType;}", "after": "public XPathTokenAnywhereElement(string tokenName, int tokenType): base(tokenName){this.tokenType = tokenType;}" }, { "index": 3862, "before": "public boolean isExpired() {long now = System.currentTimeMillis();return now >= expiration - refreshIntervalInMillSeconds;}", "after": "public bool IsExpired(){return refreshIntervalInMillSeconds * 1000 * 10 >= RemainTicks();}" }, { "index": 3863, "before": "public ListDetectorsResult listDetectors(ListDetectorsRequest request) {request = beforeClientExecution(request);return executeListDetectors(request);}", "after": "public virtual ListDetectorsResponse ListDetectors(ListDetectorsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDetectorsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDetectorsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3864, "before": "public void add(int index, T element) {if (index == size) {add(element);} else if (index < 0 || size < index) {throw new IndexOutOfBoundsException(String.valueOf(index));} else {add(null); for (int oldIdx = size - 2; index <= oldIdx; oldIdx--)set(oldIdx + 1, get(oldIdx));set(index, element);}}", "after": "public override void Add(int index, T element){if (index == size){AddItem(element);}else{if (index < 0 || size < index){throw new IndexOutOfRangeException(index.ToString());}else{AddItem(default(T));for (int oldIdx = size - 2; index <= oldIdx; oldIdx--){Set(oldIdx + 1, this[oldIdx]);}Set(index, element);}}}" }, { "index": 3865, "before": "public static int intersect(CellRangeAddress crA, CellRangeAddress crB ){int firstRow = crB.getFirstRow();int lastRow = crB.getLastRow();int firstCol = crB.getFirstColumn();int lastCol = crB.getLastColumn();if (gt(crA.getFirstRow(), lastRow) || lt(crA.getLastRow(), firstRow) ||gt(crA.getFirstColumn(), lastCol) || lt(crA.getLastColumn(), firstCol)){return NO_INTERSECTION;}else if( contains(crA, crB) ){return INSIDE;}else if( contains(crB, crA)){return ENCLOSES;}else{return OVERLAP;}}", "after": "public static int Intersect(CellRangeAddress crA, CellRangeAddress crB){int firstRow = crB.FirstRow;int lastRow = crB.LastRow;int firstCol = crB.FirstColumn;int lastCol = crB.LastColumn;if(gt(crA.FirstRow, lastRow) ||lt(crA.LastRow, firstRow) ||gt(crA.FirstColumn, lastCol) ||lt(crA.LastColumn, firstCol)){return NO_INTERSECTION;}else if (Contains(crA, crB)){return INSIDE;}else if (Contains(crB, crA)){return ENCLOSES;}else{return OVERLAP;}}" }, { "index": 3866, "before": "public short getXFAt(int coffset) {return _xfs[coffset];}", "after": "public short GetXFAt(int coffset){return _xfs[coffset];}" }, { "index": 3867, "before": "public static final boolean isId(@Nullable String id) {if (id == null) {return false;}if (id.length() != Constants.OBJECT_ID_STRING_LENGTH)return false;try {for (int i = 0; i < Constants.OBJECT_ID_STRING_LENGTH; i++) {RawParseUtils.parseHexInt4((byte) id.charAt(i));}return true;} catch (ArrayIndexOutOfBoundsException e) {return false;}}", "after": "public static bool IsId(string id){if (id.Length != Constants.OBJECT_ID_STRING_LENGTH){return false;}try{for (int i = 0; i < Constants.OBJECT_ID_STRING_LENGTH; i++){RawParseUtils.ParseHexInt4(unchecked((byte)id[i]));}return true;}catch (IndexOutOfRangeException){return false;}}" }, { "index": 3868, "before": "@Override public boolean isEmpty() {return countMap.isEmpty();}", "after": "public override bool isEmpty(){return this._enclosing._size == 0;}" }, { "index": 3869, "before": "public ByteVector(byte[] a, int capacity) {if (capacity > 0) {blockSize = capacity;} else {blockSize = DEFAULT_BLOCK_SIZE;}array = a;n = 0;}", "after": "public ByteVector(byte[] a, int capacity){if (capacity > 0){blockSize = capacity;}else{blockSize = DEFAULT_BLOCK_SIZE;}array = a;n = 0;}" }, { "index": 3870, "before": "public void write(int oneByte) throws IOException {write(new byte[] { (byte) oneByte }, 0, 1);}", "after": "public override void write(int oneByte){throw new System.NotImplementedException();}" }, { "index": 3871, "before": "public SegmentCommitInfo info(int i) {return segments.get(i);}", "after": "public SegmentCommitInfo Info(int i) {return segments[i];}" }, { "index": 3872, "before": "public ListDistributionsByWebACLIdResult listDistributionsByWebACLId(ListDistributionsByWebACLIdRequest request) {request = beforeClientExecution(request);return executeListDistributionsByWebACLId(request);}", "after": "public virtual ListDistributionsByWebACLIdResponse ListDistributionsByWebACLId(ListDistributionsByWebACLIdRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDistributionsByWebACLIdRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDistributionsByWebACLIdResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3873, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(rt);out.writeShort(grbitFrt);out.writeShort(iObjectKind);out.writeShort(iObjectContext);out.writeShort(iObjectInstance1);out.writeShort(iObjectInstance2);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(rt);out1.WriteShort(grbitFrt);out1.WriteShort(iObjectKind);out1.WriteShort(iObjectContext);out1.WriteShort(iObjectInstance1);out1.WriteShort(iObjectInstance2);}" }, { "index": 3874, "before": "public CreateDeliveryStreamResult createDeliveryStream(CreateDeliveryStreamRequest request) {request = beforeClientExecution(request);return executeCreateDeliveryStream(request);}", "after": "public virtual CreateDeliveryStreamResponse CreateDeliveryStream(CreateDeliveryStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDeliveryStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDeliveryStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3875, "before": "public ResetDBParameterGroupResult resetDBParameterGroup(ResetDBParameterGroupRequest request) {request = beforeClientExecution(request);return executeResetDBParameterGroup(request);}", "after": "public virtual ResetDBParameterGroupResponse ResetDBParameterGroup(ResetDBParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetDBParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetDBParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3876, "before": "public DescribeDocumentClassificationJobResult describeDocumentClassificationJob(DescribeDocumentClassificationJobRequest request) {request = beforeClientExecution(request);return executeDescribeDocumentClassificationJob(request);}", "after": "public virtual DescribeDocumentClassificationJobResponse DescribeDocumentClassificationJob(DescribeDocumentClassificationJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDocumentClassificationJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDocumentClassificationJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3877, "before": "public DescribeSecurityGroupsResult describeSecurityGroups(DescribeSecurityGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeSecurityGroups(request);}", "after": "public virtual DescribeSecurityGroupsResponse DescribeSecurityGroups(DescribeSecurityGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSecurityGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSecurityGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3878, "before": "public UpdateTrafficPolicyInstanceResult updateTrafficPolicyInstance(UpdateTrafficPolicyInstanceRequest request) {request = beforeClientExecution(request);return executeUpdateTrafficPolicyInstance(request);}", "after": "public virtual UpdateTrafficPolicyInstanceResponse UpdateTrafficPolicyInstance(UpdateTrafficPolicyInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTrafficPolicyInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTrafficPolicyInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3879, "before": "public BinaryHunk getForwardBinaryHunk() {return forwardBinaryHunk;}", "after": "public virtual BinaryHunk GetForwardBinaryHunk(){return forwardBinaryHunk;}" }, { "index": 3880, "before": "public static ByteBuffer allocateDirect(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}return new ReadWriteDirectByteBuffer(capacity);}", "after": "public static java.nio.ByteBuffer allocateDirect(int capacity_1){if (capacity_1 < 0){throw new System.ArgumentException();}return new java.nio.ReadWriteHeapByteBuffer(capacity_1);}" }, { "index": 3881, "before": "public void drawString(String str, int x, int y){if (str == null || str.isEmpty())return;Font excelFont = font;if ( font.getName().equals( \"SansSerif\" ) ){excelFont = new Font( \"Arial\", font.getStyle(), (int) ( font.getSize() / verticalPixelsPerPoint ) );}else{excelFont = new Font( font.getName(), font.getStyle(), (int) ( font.getSize() / verticalPixelsPerPoint ));}FontDetails d = StaticFontMetrics.getFontDetails( excelFont );int width = d.getStringWidth( str ) * 8 + 12;int height = (int) ( ( font.getSize() / verticalPixelsPerPoint ) + 6 ) * 2;y -= ( font.getSize() / verticalPixelsPerPoint ) + 2 * verticalPixelsPerPoint; HSSFTextbox textbox = escherGroup.createTextbox( new HSSFChildAnchor( x, y, x + width, y + height ) );textbox.setNoFill( true );textbox.setLineStyle( HSSFShape.LINESTYLE_NONE );HSSFRichTextString s = new HSSFRichTextString( str );HSSFFont hssfFont = matchFont( excelFont );s.applyFont( hssfFont );textbox.setString( s );}", "after": "public void DrawString(String str, int x, int y){if (string.IsNullOrEmpty(str))return;using (Font excelFont = new Font(font.Name.Equals(\"SansSerif\") ? \"Arial\" : font.Name, (int)(font.Size / verticalPixelsPerPoint), font.Style)){FontDetails d = StaticFontMetrics.GetFontDetails(excelFont);int width = (int)((d.GetStringWidth(str) * 8) + 12);int height = (int)((font.Size / verticalPixelsPerPoint) + 6) * 2;y -= Convert.ToInt32((font.Size / verticalPixelsPerPoint) + 2 * verticalPixelsPerPoint); HSSFTextbox textbox = escherGroup.CreateTextbox(new HSSFChildAnchor(x, y, x + width, y + height));textbox.IsNoFill = (true);textbox.LineStyle = LineStyle.None;HSSFRichTextString s = new HSSFRichTextString(str);HSSFFont hssfFont = MatchFont(excelFont);s.ApplyFont(hssfFont);textbox.String = (s);}}" }, { "index": 3882, "before": "public Query makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf) {List luceneSubQueries = makeLuceneSubQueriesField(fieldName, qf);BooleanQuery.Builder bq = new BooleanQuery.Builder();bq.add( luceneSubQueries.get(0), BooleanClause.Occur.MUST);SrndBooleanQuery.addQueriesToBoolean(bq,luceneSubQueries.subList(1, luceneSubQueries.size()),BooleanClause.Occur.MUST_NOT);return bq.build();}", "after": "public override Search.Query MakeLuceneQueryFieldNoBoost(string fieldName, BasicQueryFactory qf){var luceneSubQueries = MakeLuceneSubQueriesField(fieldName, qf);BooleanQuery bq = new BooleanQuery();bq.Add(luceneSubQueries.FirstOrDefault(), Occur.MUST);SrndBooleanQuery.AddQueriesToBoolean(bq,luceneSubQueries.Skip(1).ToList(),Occur.MUST_NOT);return bq;}" }, { "index": 3883, "before": "public void reset(byte[] treeData) {attributesNode = null;raw = treeData;prevPtr = -1;currPtr = 0;if (eof())nextPtr = 0;elseparseEntry();}", "after": "public virtual void Reset(byte[] treeData){raw = treeData;prevPtr = -1;currPtr = 0;if (Eof){nextPtr = 0;}else{ParseEntry();}}" }, { "index": 3884, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_save_link_values);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_save_link_values);}" }, { "index": 3885, "before": "public static Boolean toBooleanOrNull(String stringValue) {if (stringValue == null)return null;if (equalsIgnoreCase(\"yes\", stringValue) || equalsIgnoreCase(\"true\", stringValue) || equalsIgnoreCase(\"1\", stringValue) || equalsIgnoreCase(\"on\", stringValue)) return Boolean.TRUE;else if (equalsIgnoreCase(\"no\", stringValue) || equalsIgnoreCase(\"false\", stringValue) || equalsIgnoreCase(\"0\", stringValue) || equalsIgnoreCase(\"off\", stringValue)) return Boolean.FALSE;elsereturn null;}", "after": "public static bool? ToBooleanOrNull(string stringValue){if (stringValue == null){return null;}if (EqualsIgnoreCase(\"yes\", stringValue) || EqualsIgnoreCase(\"true\", stringValue)|| EqualsIgnoreCase(\"1\", stringValue) || EqualsIgnoreCase(\"on\", stringValue)){return true;}else{if (EqualsIgnoreCase(\"no\", stringValue) || EqualsIgnoreCase(\"false\", stringValue)|| EqualsIgnoreCase(\"0\", stringValue) || EqualsIgnoreCase(\"off\", stringValue)){return false;}else{return null;}}}" }, { "index": 3886, "before": "public RevObject lookupOrNull(AnyObjectId id) {return objects.get(id);}", "after": "public virtual RevObject LookupOrNull(AnyObjectId id){return objects.Get(id);}" }, { "index": 3887, "before": "public void cloneStyleFrom(FontRecord source) {field_1_font_height = source.field_1_font_height;field_2_attributes = source.field_2_attributes;field_3_color_palette_index = source.field_3_color_palette_index;field_4_bold_weight = source.field_4_bold_weight;field_5_super_sub_script = source.field_5_super_sub_script;field_6_underline = source.field_6_underline;field_7_family = source.field_7_family;field_8_charset = source.field_8_charset;field_9_zero = source.field_9_zero;field_11_font_name = source.field_11_font_name;}", "after": "public void CloneStyleFrom(FontRecord source){field_1_font_height = source.field_1_font_height;field_2_attributes = source.field_2_attributes;field_3_color_palette_index = source.field_3_color_palette_index;field_4_bold_weight = source.field_4_bold_weight;field_5_base_sub_script = source.field_5_base_sub_script;field_6_underline = source.field_6_underline;field_7_family = source.field_7_family;field_8_charset = source.field_8_charset;field_9_zero = source.field_9_zero;field_11_font_name = source.field_11_font_name;}" }, { "index": 3888, "before": "public BrazilianStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public BrazilianStemFilterFactory(IDictionary args) : base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 3889, "before": "public static byte lookupCharacterClass(String characterClassName) {return (byte) CharacterClass.valueOf(characterClassName).ordinal();}", "after": "public static byte LookupCharacterClass(string characterClassName){return (byte)Enum.Parse(typeof(CharacterClass), characterClassName, true);}" }, { "index": 3890, "before": "public ArrayList(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}array = (capacity == 0 ? EmptyArray.OBJECT : new Object[capacity]);}", "after": "public ArrayList(int capacity){if (capacity < 0){throw new System.ArgumentException();}array = (capacity == 0 ? libcore.util.EmptyArray.OBJECT : new object[capacity]);}" }, { "index": 3891, "before": "public CreateHumanTaskUiResult createHumanTaskUi(CreateHumanTaskUiRequest request) {request = beforeClientExecution(request);return executeCreateHumanTaskUi(request);}", "after": "public virtual CreateHumanTaskUiResponse CreateHumanTaskUi(CreateHumanTaskUiRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateHumanTaskUiRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateHumanTaskUiResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3892, "before": "public GetSoftwareUpdatesResult getSoftwareUpdates(GetSoftwareUpdatesRequest request) {request = beforeClientExecution(request);return executeGetSoftwareUpdates(request);}", "after": "public virtual GetSoftwareUpdatesResponse GetSoftwareUpdates(GetSoftwareUpdatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSoftwareUpdatesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSoftwareUpdatesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3893, "before": "public NamePtg createPtg() {return new NamePtg(_index);}", "after": "public NamePtg CreatePtg(){return new NamePtg(_index);}" }, { "index": 3894, "before": "public ListFlowDefinitionsResult listFlowDefinitions(ListFlowDefinitionsRequest request) {request = beforeClientExecution(request);return executeListFlowDefinitions(request);}", "after": "public virtual ListFlowDefinitionsResponse ListFlowDefinitions(ListFlowDefinitionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFlowDefinitionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFlowDefinitionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3895, "before": "public LittleEndianOutput createDelayedOutput(int size) {checkPosition(size);LittleEndianOutput result = new LittleEndianByteArrayOutputStream(_buf, _writeIndex, size);_writeIndex += size;return result;}", "after": "public ILittleEndianOutput CreateDelayedOutput(int size){CheckPosition(size);ILittleEndianOutput result = new LittleEndianByteArrayOutputStream(_buf, _writeIndex, size);_writeIndex += size;return result;}" }, { "index": 3896, "before": "public long get(int index) {return current.get(index);}", "after": "public override long Get(int index){return current.Get(index);}" }, { "index": 3897, "before": "public StemmerOverrideFilterFactory(Map args) {super(args);dictionaryFiles = get(args, \"dictionary\");ignoreCase = getBoolean(args, \"ignoreCase\", false);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public StemmerOverrideFilterFactory(IDictionary args): base(args){dictionaryFiles = Get(args, \"dictionary\");ignoreCase = GetBoolean(args, \"ignoreCase\", false);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 3898, "before": "public long get(int index) {final int o = index / 12;final int b = index % 12;final int shift = b * 5;return (blocks[o] >>> shift) & 31L;}", "after": "public override long Get(int index){int o = index / 12;int b = index % 12;int shift = b * 5;return ((long)((ulong)blocks[o] >> shift)) & 31L;}" }, { "index": 3899, "before": "public DeleteDeploymentGroupResult deleteDeploymentGroup(DeleteDeploymentGroupRequest request) {request = beforeClientExecution(request);return executeDeleteDeploymentGroup(request);}", "after": "public virtual DeleteDeploymentGroupResponse DeleteDeploymentGroup(DeleteDeploymentGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDeploymentGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDeploymentGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3900, "before": "public void setNamespaceAware(boolean awareness) {features.put (XmlPullParser.FEATURE_PROCESS_NAMESPACES, awareness);}", "after": "public virtual void setNamespaceAware(bool awareness){features.put(org.xmlpull.v1.XmlPullParserClass.FEATURE_PROCESS_NAMESPACES, awareness);}" }, { "index": 3901, "before": "public static List getBuiltinFormats() {return Arrays.asList(_builtinFormats);}", "after": "public static List GetBuiltinFormats(){return builtinFormats;}" }, { "index": 3902, "before": "public Snapshot authorizeSnapshotAccess(AuthorizeSnapshotAccessRequest request) {request = beforeClientExecution(request);return executeAuthorizeSnapshotAccess(request);}", "after": "public virtual AuthorizeSnapshotAccessResponse AuthorizeSnapshotAccess(AuthorizeSnapshotAccessRequest request){var options = new InvokeOptions();options.RequestMarshaller = AuthorizeSnapshotAccessRequestMarshaller.Instance;options.ResponseUnmarshaller = AuthorizeSnapshotAccessResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3903, "before": "public void split() throws IOException {boolean success = false;DirectoryReader reader = DirectoryReader.open(input);try {createIndex(config1, dir1, reader, docsInFirstIndex, false);createIndex(config2, dir2, reader, docsInFirstIndex, true);success = true;} finally {if (success) {IOUtils.close(reader);} else {IOUtils.closeWhileHandlingException(reader);}}}", "after": "public virtual void Split(){bool success = false;DirectoryReader reader = DirectoryReader.Open(input);try{CreateIndex(config1, dir1, reader, docsInFirstIndex, false);CreateIndex(config2, dir2, reader, docsInFirstIndex, true);success = true;}finally{if (success){IOUtils.Dispose(reader);}else{IOUtils.DisposeWhileHandlingException(reader);}}}" }, { "index": 3904, "before": "@Override public boolean equals(Object object) {return mapEntry.equals(object);}", "after": "public override bool Equals(object @object){return mapEntry.Equals(@object);}" }, { "index": 3905, "before": "public synchronized E pop() {if (elementCount == 0) {throw new EmptyStackException();}final int index = --elementCount;final E obj = (E) elementData[index];elementData[index] = null;modCount++;return obj;}", "after": "public virtual E pop(){lock (this){if (elementCount == 0){throw new java.util.EmptyStackException();}int index = --elementCount;E obj = (E)elementData[index];elementData[index] = null;modCount++;return obj;}}" }, { "index": 3906, "before": "public ListHealthChecksResult listHealthChecks() {return listHealthChecks(new ListHealthChecksRequest());}", "after": "public virtual ListHealthChecksResponse ListHealthChecks(){return ListHealthChecks(new ListHealthChecksRequest());}" }, { "index": 3907, "before": "public boolean equals(Object obj) {if (!(obj instanceof File)) {return false;}return path.equals(((File) obj).getPath());}", "after": "public override bool Equals(object obj){if (!(obj is java.io.File)){return false;}return path.Equals(((java.io.File)obj).getPath());}" }, { "index": 3908, "before": "public ListPhotoStoresRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"ListPhotoStores\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public ListPhotoStoresRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"ListPhotoStores\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 3909, "before": "public PutAccessControlRuleResult putAccessControlRule(PutAccessControlRuleRequest request) {request = beforeClientExecution(request);return executePutAccessControlRule(request);}", "after": "public virtual PutAccessControlRuleResponse PutAccessControlRule(PutAccessControlRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAccessControlRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAccessControlRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3910, "before": "public StopTrainingEntityRecognizerResult stopTrainingEntityRecognizer(StopTrainingEntityRecognizerRequest request) {request = beforeClientExecution(request);return executeStopTrainingEntityRecognizer(request);}", "after": "public virtual StopTrainingEntityRecognizerResponse StopTrainingEntityRecognizer(StopTrainingEntityRecognizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopTrainingEntityRecognizerRequestMarshaller.Instance;options.ResponseUnmarshaller = StopTrainingEntityRecognizerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3911, "before": "public GetRevisionResult getRevision(GetRevisionRequest request) {request = beforeClientExecution(request);return executeGetRevision(request);}", "after": "public virtual GetRevisionResponse GetRevision(GetRevisionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRevisionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRevisionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3912, "before": "public HSSFPicture createPicture(HSSFChildAnchor anchor, int pictureIndex) {HSSFPicture shape = new HSSFPicture(this, anchor);shape.setParent(this);shape.setAnchor(anchor);shape.setPictureIndex(pictureIndex);shapes.add(shape);onCreate(shape);EscherSpRecord sp = shape.getEscherContainer().getChildById(EscherSpRecord.RECORD_ID);if (shape.getAnchor().isHorizontallyFlipped()){sp.setFlags(sp.getFlags() | EscherSpRecord.FLAG_FLIPHORIZ);}if (shape.getAnchor().isVerticallyFlipped()){sp.setFlags(sp.getFlags() | EscherSpRecord.FLAG_FLIPVERT);}return shape;}", "after": "public HSSFPicture CreatePicture(HSSFChildAnchor anchor, int pictureIndex){HSSFPicture shape = new HSSFPicture(this, anchor);shape.Parent = this;shape.Anchor = anchor;shape.PictureIndex=pictureIndex;shapes.Add(shape);OnCreate(shape);EscherSpRecord sp = (EscherSpRecord)shape.GetEscherContainer().GetChildById(EscherSpRecord.RECORD_ID);if (shape.Anchor.IsHorizontallyFlipped){sp.Flags = (sp.Flags | EscherSpRecord.FLAG_FLIPHORIZ);}if (shape.Anchor.IsVerticallyFlipped){sp.Flags = (sp.Flags | EscherSpRecord.FLAG_FLIPVERT);}return shape;}" }, { "index": 3913, "before": "public RecordSizingVisitor() {_totalSize = 0;}", "after": "public RecordSizingVisitor(){_totalSize = 0;}" }, { "index": 3914, "before": "public UpdateApplicationSettingsResult updateApplicationSettings(UpdateApplicationSettingsRequest request) {request = beforeClientExecution(request);return executeUpdateApplicationSettings(request);}", "after": "public virtual UpdateApplicationSettingsResponse UpdateApplicationSettings(UpdateApplicationSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApplicationSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApplicationSettingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3915, "before": "public LogCommand addPath(String path) {checkCallable();pathFilters.add(PathFilter.create(path));return this;}", "after": "public virtual NGit.Api.LogCommand AddPath(string path){CheckCallable();pathFilters.AddItem(PathFilter.Create(path));return this;}" }, { "index": 3916, "before": "public GetRelationalDatabaseLogStreamsResult getRelationalDatabaseLogStreams(GetRelationalDatabaseLogStreamsRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseLogStreams(request);}", "after": "public virtual GetRelationalDatabaseLogStreamsResponse GetRelationalDatabaseLogStreams(GetRelationalDatabaseLogStreamsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseLogStreamsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseLogStreamsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3917, "before": "public FloatBuffer compact() {if (byteBuffer.isReadOnly()) {throw new ReadOnlyBufferException();}byteBuffer.limit(limit * SizeOf.FLOAT);byteBuffer.position(position * SizeOf.FLOAT);byteBuffer.compact();byteBuffer.clear();position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}", "after": "public override java.nio.FloatBuffer compact(){if (byteBuffer.isReadOnly()){throw new java.nio.ReadOnlyBufferException();}byteBuffer.limit(_limit * libcore.io.SizeOf.FLOAT);byteBuffer.position(_position * libcore.io.SizeOf.FLOAT);byteBuffer.compact();byteBuffer.clear();_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}" }, { "index": 3918, "before": "public void serialize(LittleEndianOutput out) {out.writeInt(field_1_lineColor);out.writeShort(field_2_linePattern);out.writeShort(field_3_weight);out.writeShort(field_4_format);out.writeShort(field_5_colourPaletteIndex);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(field_1_lineColor);out1.WriteShort(field_2_linePattern);out1.WriteShort(field_3_weight);out1.WriteShort(field_4_format);out1.WriteShort(field_5_colourPaletteIndex);}" }, { "index": 3919, "before": "public DBInstanceAutomatedBackup deleteDBInstanceAutomatedBackup(DeleteDBInstanceAutomatedBackupRequest request) {request = beforeClientExecution(request);return executeDeleteDBInstanceAutomatedBackup(request);}", "after": "public virtual DeleteDBInstanceAutomatedBackupResponse DeleteDBInstanceAutomatedBackup(DeleteDBInstanceAutomatedBackupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBInstanceAutomatedBackupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBInstanceAutomatedBackupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3920, "before": "public MultiSimilarity(Similarity sims[]) {this.sims = sims;}", "after": "public MultiSimilarity(Similarity[] sims){this.m_sims = sims;}" }, { "index": 3921, "before": "public final Explanation explain(BasicStats stats, double tfn) {return Explanation.match((float) (scoreTimes1pTfn(stats) / (1 + tfn)),getClass().getSimpleName()+ \", computed as (F + 1) / (n * (tfn + 1)) from:\",Explanation.match((float) tfn, \"tfn, normalized term frequency\"),Explanation.match(stats.getTotalTermFreq(),\"F, total number of occurrences of term across all documents + 1\"),Explanation.match(stats.getDocFreq(),\"n, number of documents containing term + 1\"),Explanation.match((float) tfn, \"tfn, normalized term frequency\"));}", "after": "public override sealed Explanation Explain(BasicStats stats, float tfn){Explanation result = new Explanation();result.Description = this.GetType().Name + \", computed from: \";result.Value = Score(stats, tfn);result.AddDetail(new Explanation(tfn, \"tfn\"));result.AddDetail(new Explanation(stats.TotalTermFreq, \"totalTermFreq\"));result.AddDetail(new Explanation(stats.DocFreq, \"docFreq\"));return result;}" }, { "index": 3922, "before": "public GetNodeResult getNode(GetNodeRequest request) {request = beforeClientExecution(request);return executeGetNode(request);}", "after": "public virtual GetNodeResponse GetNode(GetNodeRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetNodeRequestMarshaller.Instance;options.ResponseUnmarshaller = GetNodeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3923, "before": "public CreateCapacityProviderResult createCapacityProvider(CreateCapacityProviderRequest request) {request = beforeClientExecution(request);return executeCreateCapacityProvider(request);}", "after": "public virtual CreateCapacityProviderResponse CreateCapacityProvider(CreateCapacityProviderRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCapacityProviderRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCapacityProviderResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3924, "before": "public String[] listAll() throws IOException {List files = new ArrayList<>();NoSuchFileException exc = null;try {for(String f : primaryDir.listAll()) {String ext = getExtension(f);if (primaryExtensions.contains(ext)) {files.add(f);}}} catch (NoSuchFileException e) {exc = e;}try {for(String f : secondaryDir.listAll()) {String ext = getExtension(f);if (primaryExtensions.contains(ext) == false) {files.add(f);}}} catch (NoSuchFileException e) {if (exc != null) {throw exc;}if (files.isEmpty()) {throw e;}}if (exc != null && files.isEmpty()) {throw exc;}String[] result = files.toArray(new String[files.size()]);Arrays.sort(result);return result;}", "after": "public override string[] ListAll(){ISet files = new JCG.HashSet();DirectoryNotFoundException exc = null;try{foreach (string f in primaryDir.ListAll()){files.Add(f);}}catch (DirectoryNotFoundException e){exc = e;}try{foreach (string f in secondaryDir.ListAll()){files.Add(f);}}catch (DirectoryNotFoundException ){if (exc != null){throw exc;}if (files.Count == 0){throw; }}if (exc != null && files.Count == 0){throw exc;}return files.ToArray();}" }, { "index": 3925, "before": "public int readUByte() {return readByte() & 0xFF;}", "after": "public int ReadUByte(){return _rc4.XorByte(_le.ReadUByte());}" }, { "index": 3926, "before": "public NumberEval(double value) {_value = value;}", "after": "public NumberEval(double value){this._value = value;}" }, { "index": 3927, "before": "@Override public Iterator iterator() {synchronized (mutex) {return c.iterator();}}", "after": "public virtual java.util.Iterator iterator(){lock (mutex){return c.iterator();}}" }, { "index": 3928, "before": "public String getInflectionType(int wordId) {return null;}", "after": "public override string GetInflectionType(int wordId){return null;}" }, { "index": 3929, "before": "public GetDeliverabilityDashboardOptionsResult getDeliverabilityDashboardOptions(GetDeliverabilityDashboardOptionsRequest request) {request = beforeClientExecution(request);return executeGetDeliverabilityDashboardOptions(request);}", "after": "public virtual GetDeliverabilityDashboardOptionsResponse GetDeliverabilityDashboardOptions(GetDeliverabilityDashboardOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDeliverabilityDashboardOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDeliverabilityDashboardOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3930, "before": "public static double getExcelDate(LocalDateTime date) {return getExcelDate(date, false);}", "after": "public static double GetExcelDate(DateTime date){return GetExcelDate(date, false);}" }, { "index": 3931, "before": "public String getBaseForm(int wordId, char surface[], int off, int len) {return null; }", "after": "public string GetBaseForm(int wordId, char[] surface, int off, int len){return null; }" }, { "index": 3932, "before": "public DescribeDhcpOptionsResult describeDhcpOptions() {return describeDhcpOptions(new DescribeDhcpOptionsRequest());}", "after": "public virtual DescribeDhcpOptionsResponse DescribeDhcpOptions(){return DescribeDhcpOptions(new DescribeDhcpOptionsRequest());}" }, { "index": 3933, "before": "public FormatRecord(int indexCode, String fs) {field_1_index_code = indexCode;field_4_formatstring = fs;field_3_hasMultibyte = StringUtil.hasMultibyte(fs);}", "after": "public FormatRecord(int indexCode, String fs){field_1_index_code = indexCode;field_4_formatstring = fs;field_3_hasMultibyte = StringUtil.HasMultibyte(fs);}" }, { "index": 3934, "before": "public String getPrintArea(int sheetIndex) {NameRecord name = workbook.getSpecificBuiltinRecord(NameRecord.BUILTIN_PRINT_AREA, sheetIndex+1);if (name == null) {return null;}return HSSFFormulaParser.toFormulaString(this, name.getNameDefinition());}", "after": "public String GetPrintArea(int sheetIndex){NameRecord name = workbook.GetSpecificBuiltinRecord(NameRecord.BUILTIN_PRINT_AREA, sheetIndex + 1);if (name == null) return null;return HSSFFormulaParser.ToFormulaString(this, name.NameDefinition);}" }, { "index": 3935, "before": "public CreateLoadBalancerResult createLoadBalancer(CreateLoadBalancerRequest request) {request = beforeClientExecution(request);return executeCreateLoadBalancer(request);}", "after": "public virtual CreateLoadBalancerResponse CreateLoadBalancer(CreateLoadBalancerRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLoadBalancerRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLoadBalancerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3936, "before": "public GetVoiceConnectorTerminationHealthResult getVoiceConnectorTerminationHealth(GetVoiceConnectorTerminationHealthRequest request) {request = beforeClientExecution(request);return executeGetVoiceConnectorTerminationHealth(request);}", "after": "public virtual GetVoiceConnectorTerminationHealthResponse GetVoiceConnectorTerminationHealth(GetVoiceConnectorTerminationHealthRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceConnectorTerminationHealthRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceConnectorTerminationHealthResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3937, "before": "public CRNCountRecord(RecordInputStream in) {field_1_number_crn_records = in.readShort();if(field_1_number_crn_records < 0) {field_1_number_crn_records = (short)-field_1_number_crn_records;}field_2_sheet_table_index = in.readShort();}", "after": "public CRNCountRecord(RecordInputStream in1){field_1_number_crn_records = in1.ReadShort();if (field_1_number_crn_records < 0){field_1_number_crn_records = (short)-field_1_number_crn_records;}field_2_sheet_table_index = in1.ReadShort();}" }, { "index": 3938, "before": "public BOFRecord(RecordInputStream in) {field_1_version = in.readShort();field_2_type = in.readShort();if (in.remaining() >= 2) {field_3_build = in.readShort();}if (in.remaining() >= 2) {field_4_year = in.readShort();}if (in.remaining() >= 4) {field_5_history = in.readInt();}if (in.remaining() >= 4) {field_6_rversion = in.readInt();}}", "after": "public BOFRecord(RecordInputStream in1){field_1_version = in1.ReadShort();field_2_type = in1.ReadShort();if (in1.Remaining >= 2){field_3_build = in1.ReadShort();}if (in1.Remaining >= 2){field_4_year = in1.ReadShort();}if (in1.Remaining >= 4){field_5_history = in1.ReadInt();}if (in1.Remaining >= 4){field_6_rversion = in1.ReadInt();}}" }, { "index": 3939, "before": "public AcsRequest buildRequest() {if (uriPattern != null) {CommonRoaRequest request = new CommonRoaRequest(product);request.setSysUriPattern(uriPattern);for (String pathParamKey : pathParameters.keySet()) {request.putPathParameter(pathParamKey, pathParameters.get(pathParamKey));}fillParams(request);return request;} else {CommonRpcRequest request = new CommonRpcRequest(product);fillParams(request);return request;}}", "after": "public AcsRequest BuildRequest(){if (UriPattern != null){var request = new CommonRoaRequest(Product);request.UriPattern = UriPattern;request.SetVersion(Version);foreach (var entry in PathParameters){request.AddPathParameters(entry.Key, entry.Value);}FillParams(request);return request;}else{var request = new CommonRpcRequest(Product);request.Version = Version;FillParams(request);return request;}}" }, { "index": 3940, "before": "public void undeleteAll() {for (FakeDeleteLeafIndexReader r : getSequentialSubReaders()) {r.undeleteAll();}}", "after": "public void UndeleteAll(){foreach (FakeDeleteAtomicIndexReader r in GetSequentialSubReaders()){r.UndeleteAll();}}" }, { "index": 3941, "before": "public final String GetImage() {return new String(buffer, tokenStart, bufferPosition - tokenStart);}", "after": "public string GetImage(){return new string(buffer, tokenStart, bufferPosition - tokenStart);}" }, { "index": 3942, "before": "public DescribeComponentResult describeComponent(DescribeComponentRequest request) {request = beforeClientExecution(request);return executeDescribeComponent(request);}", "after": "public virtual DescribeComponentResponse DescribeComponent(DescribeComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeComponentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3943, "before": "public RoaringDocIdSet build() {flush();return new RoaringDocIdSet(sets, cardinality);}", "after": "public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}" }, { "index": 3944, "before": "public TokenStream create(TokenStream input) {return new GermanNormalizationFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new GermanNormalizationFilter(input);}" }, { "index": 3945, "before": "public DrillSideways(IndexSearcher searcher, FacetsConfig config, TaxonomyReader taxoReader,SortedSetDocValuesReaderState state) {this(searcher, config, taxoReader, state, null);}", "after": "public DrillSideways(IndexSearcher searcher, FacetsConfig config, TaxonomyReader taxoReader, SortedSetDocValuesReaderState state){this.m_searcher = searcher;this.m_config = config;this.m_taxoReader = taxoReader;this.m_state = state;}" }, { "index": 3946, "before": "public DescribeAnalysisSchemesResult describeAnalysisSchemes(DescribeAnalysisSchemesRequest request) {request = beforeClientExecution(request);return executeDescribeAnalysisSchemes(request);}", "after": "public virtual DescribeAnalysisSchemesResponse DescribeAnalysisSchemes(DescribeAnalysisSchemesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAnalysisSchemesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAnalysisSchemesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3947, "before": "public PutTargetsResult putTargets(PutTargetsRequest request) {request = beforeClientExecution(request);return executePutTargets(request);}", "after": "public virtual PutTargetsResponse PutTargets(PutTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutTargetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3948, "before": "public RevokeIpRulesResult revokeIpRules(RevokeIpRulesRequest request) {request = beforeClientExecution(request);return executeRevokeIpRules(request);}", "after": "public virtual RevokeIpRulesResponse RevokeIpRules(RevokeIpRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeIpRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeIpRulesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3949, "before": "public RegisterGameServerResult registerGameServer(RegisterGameServerRequest request) {request = beforeClientExecution(request);return executeRegisterGameServer(request);}", "after": "public virtual RegisterGameServerResponse RegisterGameServer(RegisterGameServerRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterGameServerRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterGameServerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3950, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeByte(_options);out.writeShort(_data);int[] jt = _jumpTable;if (jt != null) {for (int i = 0; i < jt.length; i++) {out.writeShort(jt[i]);}out.writeShort(_chooseFuncOffset);}}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteByte(field_1_options);out1.WriteShort(field_2_data);int[] jt = _jumpTable;if (jt != null){for (int i = 0; i < jt.Length; i++){out1.WriteShort(jt[i]);}out1.WriteShort(_chooseFuncOffset);}}" }, { "index": 3951, "before": "public int getCellsPnt() {Iterator i = cells.keySet().iterator();int size = 0;for (; i.hasNext();) {Character c = i.next();Cell e = at(c);if (e.ref >= 0) {size++;}}return size;}", "after": "public int GetCellsPnt(){int size = 0;foreach (char c in cells.Keys){Cell e = At(c);if (e.@ref >= 0){size++;}}return size;}" }, { "index": 3952, "before": "public E removeFirst() {return removeFirstImpl();}", "after": "public virtual E removeFirst(){return removeFirstImpl();}" }, { "index": 3953, "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": 3954, "before": "public TokenStream create(TokenStream input) {return new TruncateTokenFilter(input, prefixLength);}", "after": "public override TokenStream Create(TokenStream input){return new TruncateTokenFilter(input, prefixLength);}" }, { "index": 3955, "before": "public String getErrorDisplay(int c) {String s = String.valueOf((char)c);switch ( c ) {case Token.EOF :s = \"\";break;case '\\n' :s = \"\\\\n\";break;case '\\t' :s = \"\\\\t\";break;case '\\r' :s = \"\\\\r\";break;}return s;}", "after": "public virtual string GetErrorDisplay(int c){string s;switch (c){case TokenConstants.EOF:{s = \"\";break;}case '\\n':{s = \"\\\\n\";break;}case '\\t':{s = \"\\\\t\";break;}case '\\r':{s = \"\\\\r\";break;}default:{s = Char.ConvertFromUtf32(c);break;}}return s;}" }, { "index": 3956, "before": "public CreateContactResult createContact(CreateContactRequest request) {request = beforeClientExecution(request);return executeCreateContact(request);}", "after": "public virtual CreateContactResponse CreateContact(CreateContactRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateContactRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateContactResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3957, "before": "public Transition[][] getSortedTransitions() {int numStates = getNumStates();Transition[][] transitions = new Transition[numStates][];for(int s=0;s(request, options);}" }, { "index": 3959, "before": "public ListSolutionVersionsResult listSolutionVersions(ListSolutionVersionsRequest request) {request = beforeClientExecution(request);return executeListSolutionVersions(request);}", "after": "public virtual ListSolutionVersionsResponse ListSolutionVersions(ListSolutionVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSolutionVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSolutionVersionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3960, "before": "public void finish(FieldInfos fis, int numDocs) throws IOException {if (numDocsWritten != numDocs) {throw new RuntimeException(\"mergeFields produced an invalid result: docCount is \" + numDocs+ \" but only saw \" + numDocsWritten + \" file=\" + out.toString() + \"; now aborting this merge to prevent index corruption\");}write(END);newLine();SimpleTextUtil.writeChecksum(out, scratch);}", "after": "public override void Finish(FieldInfos fis, int numDocs){if (_numDocsWritten != numDocs){throw new Exception(\"mergeFields produced an invalid result: docCount is \" + numDocs + \" but only saw \" +_numDocsWritten + \" file=\" + _output +\"; now aborting this merge to prevent index corruption\");}Write(END);NewLine();SimpleTextUtil.WriteChecksum(_output, _scratch);}" }, { "index": 3961, "before": "public SetVaultNotificationsRequest(String vaultName, VaultNotificationConfig vaultNotificationConfig) {setVaultName(vaultName);setVaultNotificationConfig(vaultNotificationConfig);}", "after": "public SetVaultNotificationsRequest(string vaultName, VaultNotificationConfig vaultNotificationConfig){_vaultName = vaultName;_vaultNotificationConfig = vaultNotificationConfig;}" }, { "index": 3962, "before": "public Trie reduce(Reduce by) {List h = new ArrayList<>();for (Trie trie : tries)h.add(trie.reduce(by));MultiTrie m = new MultiTrie(forward);m.tries = h;return m;}", "after": "public override Trie Reduce(Reduce by){List h = new List();foreach (Trie trie in m_tries)h.Add(trie.Reduce(by));MultiTrie m = new MultiTrie(forward);m.m_tries = h;return m;}" }, { "index": 3963, "before": "public void println() {synchronized (lock) {print(System.lineSeparator());if (autoFlush) {flush();}}}", "after": "public virtual void println(){lock (@lock){print(System.Environment.NewLine);if (autoFlush){flush();}}}" }, { "index": 3964, "before": "public final void writeChar(int val) throws IOException {writeShort(val);}", "after": "public virtual void writeChar(int val){throw new System.NotImplementedException();}" }, { "index": 3965, "before": "public String toFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.append(operands[ 0 ]);buffer.append(GREATERTHAN);buffer.append(operands[ 1 ]);return buffer.toString();}", "after": "public override String ToFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.Append(operands[0]);buffer.Append(GREATERTHAN);buffer.Append(operands[1]);return buffer.ToString();}" }, { "index": 3966, "before": "public UpdateDeploymentResult updateDeployment(UpdateDeploymentRequest request) {request = beforeClientExecution(request);return executeUpdateDeployment(request);}", "after": "public virtual UpdateDeploymentResponse UpdateDeployment(UpdateDeploymentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDeploymentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDeploymentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3967, "before": "public ListRoutingProfilesResult listRoutingProfiles(ListRoutingProfilesRequest request) {request = beforeClientExecution(request);return executeListRoutingProfiles(request);}", "after": "public virtual ListRoutingProfilesResponse ListRoutingProfiles(ListRoutingProfilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRoutingProfilesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRoutingProfilesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3968, "before": "public boolean isFormulaSame(SharedFormulaRecord other) {return field_7_parsed_expr.isSame(other.field_7_parsed_expr);}", "after": "public bool IsFormulaSame(SharedFormulaRecord other){return field_7_parsed_expr.IsSame(other.field_7_parsed_expr);}" }, { "index": 3969, "before": "public static byte getType(int ch) {switch (Character.getType(ch)) {case Character.UPPERCASE_LETTER: return UPPER;case Character.LOWERCASE_LETTER: return LOWER;case Character.TITLECASE_LETTER:case Character.MODIFIER_LETTER:case Character.OTHER_LETTER:case Character.NON_SPACING_MARK:case Character.ENCLOSING_MARK: case Character.COMBINING_SPACING_MARK:return ALPHA;case Character.DECIMAL_DIGIT_NUMBER:case Character.LETTER_NUMBER:case Character.OTHER_NUMBER:return DIGIT;case Character.SURROGATE: return ALPHA|DIGIT;default: return SUBWORD_DELIM;}}", "after": "public static byte GetType(int ch){switch (CharUnicodeInfo.GetUnicodeCategory((char)ch)){case UnicodeCategory.UppercaseLetter:return WordDelimiterFilter.UPPER;case UnicodeCategory.LowercaseLetter:return WordDelimiterFilter.LOWER;case UnicodeCategory.TitlecaseLetter:case UnicodeCategory.ModifierLetter:case UnicodeCategory.OtherLetter:case UnicodeCategory.NonSpacingMark:case UnicodeCategory.EnclosingMark: case UnicodeCategory.SpacingCombiningMark:return WordDelimiterFilter.ALPHA;case UnicodeCategory.DecimalDigitNumber:case UnicodeCategory.LetterNumber:case UnicodeCategory.OtherNumber:return WordDelimiterFilter.DIGIT;case UnicodeCategory.Surrogate:return WordDelimiterFilter.ALPHA | WordDelimiterFilter.DIGIT;default:return WordDelimiterFilter.SUBWORD_DELIM;}}" }, { "index": 3970, "before": "public CreateImageResult createImage(CreateImageRequest request) {request = beforeClientExecution(request);return executeCreateImage(request);}", "after": "public virtual CreateImageResponse CreateImage(CreateImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateImageRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateImageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3971, "before": "public void assume(RevCommit c) {if (c != null)assume.add(c);}", "after": "public virtual void Assume(RevCommit c){if (c != null){assume.AddItem(c);}}" }, { "index": 3972, "before": "public DeleteTagsResult deleteTags(DeleteTagsRequest request) {request = beforeClientExecution(request);return executeDeleteTags(request);}", "after": "public virtual DeleteTagsResponse DeleteTags(DeleteTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTagsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3973, "before": "public ListTemplateVersionsResult listTemplateVersions(ListTemplateVersionsRequest request) {request = beforeClientExecution(request);return executeListTemplateVersions(request);}", "after": "public virtual ListTemplateVersionsResponse ListTemplateVersions(ListTemplateVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTemplateVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTemplateVersionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3974, "before": "public String toString() {return \"(\" + x + \", \" + y + \")\"; }", "after": "public override string ToString(){return \"Point(\" + x + \", \" + y + \")\";}" }, { "index": 3975, "before": "public DisjunctionMaxQueryBuilder(QueryBuilder factory) {this.factory = factory;}", "after": "public DisjunctionMaxQueryBuilder(IQueryBuilder factory){this.factory = factory;}" }, { "index": 3976, "before": "public PutNotificationConfigurationResult putNotificationConfiguration(PutNotificationConfigurationRequest request) {request = beforeClientExecution(request);return executePutNotificationConfiguration(request);}", "after": "public virtual PutNotificationConfigurationResponse PutNotificationConfiguration(PutNotificationConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutNotificationConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutNotificationConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3977, "before": "public RecognizeFlowerRequest() {super(\"visionai-poc\", \"2020-04-08\", \"RecognizeFlower\");setMethod(MethodType.POST);}", "after": "public RecognizeFlowerRequest(): base(\"visionai-poc\", \"2020-04-08\", \"RecognizeFlower\"){Method = MethodType.POST;}" }, { "index": 3978, "before": "public IndexFormatTooOldException(String resourceDescription, int version, int minVersion, int maxVersion) {super(\"Format version is not supported (resource \" + resourceDescription + \"): \" +version + \" (needs to be between \" + minVersion + \" and \" + maxVersion +\"). This version of Lucene only supports indexes created with release 8.0 and later.\");this.resourceDescription = resourceDescription;this.version = version;this.minVersion = minVersion;this.maxVersion = maxVersion;this.reason = null;}", "after": "public IndexFormatTooOldException(string resourceDesc, int version, int minVersion, int maxVersion): base(\"Format version is not supported (resource: \" + resourceDesc + \"): \" + version + \" (needs to be between \" + minVersion + \" and \" + maxVersion + \"). this version of Lucene only supports indexes created with release 3.0 and later.\"){Debug.Assert(resourceDesc != null);}" }, { "index": 3979, "before": "public void add(int el) {if ( readonly ) throw new IllegalStateException(\"can't alter readonly IntervalSet\");add(el,el);}", "after": "public virtual void Add(int el){if (@readonly){throw new InvalidOperationException(\"can't alter readonly IntervalSet\");}Add(el, el);}" }, { "index": 3980, "before": "@Override public final int read(byte[] buffer) throws IOException {return super.read(buffer);}", "after": "public sealed override int read(byte[] buffer){throw new System.NotImplementedException();}" }, { "index": 3981, "before": "@Override public boolean remove(Object key) {if (!contains(key)) {return false;}removeFromBothMaps(key);return true;}", "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": 3982, "before": "public DescribeClusterSecurityGroupsResult describeClusterSecurityGroups(DescribeClusterSecurityGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeClusterSecurityGroups(request);}", "after": "public virtual DescribeClusterSecurityGroupsResponse DescribeClusterSecurityGroups(DescribeClusterSecurityGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterSecurityGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterSecurityGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3983, "before": "public TokenStream create(TokenStream input) {return new ScandinavianFoldingFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new ScandinavianFoldingFilter(input);}" }, { "index": 3984, "before": "public DeleteNotebookInstanceLifecycleConfigResult deleteNotebookInstanceLifecycleConfig(DeleteNotebookInstanceLifecycleConfigRequest request) {request = beforeClientExecution(request);return executeDeleteNotebookInstanceLifecycleConfig(request);}", "after": "public virtual DeleteNotebookInstanceLifecycleConfigResponse DeleteNotebookInstanceLifecycleConfig(DeleteNotebookInstanceLifecycleConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNotebookInstanceLifecycleConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNotebookInstanceLifecycleConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3985, "before": "public DescribeComponentConfigurationRecommendationResult describeComponentConfigurationRecommendation(DescribeComponentConfigurationRecommendationRequest request) {request = beforeClientExecution(request);return executeDescribeComponentConfigurationRecommendation(request);}", "after": "public virtual DescribeComponentConfigurationRecommendationResponse DescribeComponentConfigurationRecommendation(DescribeComponentConfigurationRecommendationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeComponentConfigurationRecommendationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeComponentConfigurationRecommendationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3986, "before": "public SimpleMergedSegmentWarmer(InfoStream infoStream) {this.infoStream = infoStream;}", "after": "public SimpleMergedSegmentWarmer(InfoStream infoStream){this.infoStream = infoStream;}" }, { "index": 3987, "before": "public int nextIndex() {return pos + 1;}", "after": "public int nextIndex(){return pos + 1;}" }, { "index": 3988, "before": "public ThaiTokenizerFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public ThaiTokenizerFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 3989, "before": "public int doLogic() throws Exception {if (name==null || value==null) {throw new Exception(getName()+\" - undefined name or value: name=\"+name+\" value=\"+value);}getRunData().getConfig().set(name,value);return 0;}", "after": "public override int DoLogic(){if (name == null || value == null){throw new Exception(GetName() + \" - undefined name or value: name=\" + name + \" value=\" + value);}RunData.Config.Set(name, value);return 0;}" }, { "index": 3990, "before": "public void setPrintArea(int sheetIndex, String reference){NameRecord name = workbook.getSpecificBuiltinRecord(NameRecord.BUILTIN_PRINT_AREA, sheetIndex+1);if (name == null) {name = workbook.createBuiltInName(NameRecord.BUILTIN_PRINT_AREA, sheetIndex+1);}String[] parts = COMMA_PATTERN.split(reference);StringBuilder sb = new StringBuilder(32);for (int i = 0; i < parts.length; i++) {if(i>0) {sb.append(\",\");}SheetNameFormatter.appendFormat(sb, getSheetName(sheetIndex));sb.append(\"!\");sb.append(parts[i]);}name.setNameDefinition(HSSFFormulaParser.parse(sb.toString(), this, FormulaType.NAMEDRANGE, sheetIndex));}", "after": "public void SetPrintArea(int sheetIndex, String reference){NameRecord name = workbook.GetSpecificBuiltinRecord(NameRecord.BUILTIN_PRINT_AREA, sheetIndex + 1);if (name == null)name = workbook.CreateBuiltInName(NameRecord.BUILTIN_PRINT_AREA, sheetIndex + 1);String[] parts = reference.Split(new char[]{','});StringBuilder sb = new StringBuilder(32);for (int i = 0; i < parts.Length; i++){if (i > 0){sb.Append(\",\");}SheetNameFormatter.AppendFormat(sb, GetSheetName(sheetIndex));sb.Append(\"!\");sb.Append(parts[i]);}name.NameDefinition =(HSSFFormulaParser.Parse(sb.ToString(), this, FormulaType.NamedRange, sheetIndex));}" }, { "index": 3991, "before": "public String getPartOfSpeech() {return dictionary.getPartOfSpeech(wordId);}", "after": "public virtual string GetPartOfSpeech(){return dictionary.GetPartOfSpeech(wordId);}" }, { "index": 3992, "before": "public synchronized static DefaultProfile getProfile(String regionId) {return new DefaultProfile(regionId);}", "after": "public static DefaultProfile GetProfile(string regionId){return new DefaultProfile(regionId);}" }, { "index": 3993, "before": "public TurkishLowerCaseFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public TurkishLowerCaseFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 3994, "before": "public static boolean equals(double[] array1, double[] array2) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length != array2.length) {return false;}for (int i = 0; i < array1.length; i++) {if (Double.doubleToLongBits(array1[i]) != Double.doubleToLongBits(array2[i])) {return false;}}return true;}", "after": "public static bool equals(double[] array1, double[] array2){if (array1 == array2){return true;}if (array1 == null || array2 == null || array1.Length != array2.Length){return false;}{for (int i = 0; i < array1.Length; i++){if (Sharpen.Util.DoubleToLongBits(array1[i]) != Sharpen.Util.DoubleToLongBits(array2[i])){return false;}}}return true;}" }, { "index": 3995, "before": "public ShortField(final int offset)throws ArrayIndexOutOfBoundsException{if (offset < 0){throw new ArrayIndexOutOfBoundsException(\"Illegal offset: \"+ offset);}_offset = offset;}", "after": "public ShortField(int offset){if (offset < 0){throw new IndexOutOfRangeException(\"Illegal offset: \"+ offset);}_offset = offset;}" }, { "index": 3996, "before": "public int getEffectivePort() {return getEffectivePort(scheme, port);}", "after": "public int getEffectivePort(){return getEffectivePort(scheme, port);}" }, { "index": 3997, "before": "public GetDiskSnapshotsResult getDiskSnapshots(GetDiskSnapshotsRequest request) {request = beforeClientExecution(request);return executeGetDiskSnapshots(request);}", "after": "public virtual GetDiskSnapshotsResponse GetDiskSnapshots(GetDiskSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDiskSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDiskSnapshotsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 3998, "before": "public ParseTreePatternMatcher(Lexer lexer, Parser parser) {this.lexer = lexer;this.parser = parser;}", "after": "public ParseTreePatternMatcher(Lexer lexer, Parser parser){this.lexer = lexer;this.parser = parser;}" }, { "index": 3999, "before": "public PassageScorer(float k1, float b, float pivot) {this.k1 = k1;this.b = b;this.pivot = pivot;}", "after": "public PassageScorer(float k1, float b, float pivot){this.k1 = k1;this.b = b;this.pivot = pivot;}" }, { "index": 4000, "before": "public CreateTicketRequest() {super(\"Ccs\", \"2017-10-01\", \"CreateTicket\", \"ccs\");setMethod(MethodType.POST);}", "after": "public CreateTicketRequest(): base(\"Ccs\", \"2017-10-01\", \"CreateTicket\", \"ccs\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 4001, "before": "public RejectTransitGatewayVpcAttachmentResult rejectTransitGatewayVpcAttachment(RejectTransitGatewayVpcAttachmentRequest request) {request = beforeClientExecution(request);return executeRejectTransitGatewayVpcAttachment(request);}", "after": "public virtual RejectTransitGatewayVpcAttachmentResponse RejectTransitGatewayVpcAttachment(RejectTransitGatewayVpcAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectTransitGatewayVpcAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectTransitGatewayVpcAttachmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4002, "before": "public DeleteApnsChannelResult deleteApnsChannel(DeleteApnsChannelRequest request) {request = beforeClientExecution(request);return executeDeleteApnsChannel(request);}", "after": "public virtual DeleteApnsChannelResponse DeleteApnsChannel(DeleteApnsChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApnsChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApnsChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4003, "before": "public Entry getEntry(final String name) throws FileNotFoundException {Entry rval = null;if (name != null) {rval = _byname.get(name);}if (rval == null) {if(_byname.containsKey(\"Workbook\")) {throw new IllegalArgumentException(\"The document is really a XLS file\");} else if(_byname.containsKey(\"PowerPoint Document\")) {throw new IllegalArgumentException(\"The document is really a PPT file\");} else if(_byname.containsKey(\"VisioDocument\")) {throw new IllegalArgumentException(\"The document is really a VSD file\");}throw new FileNotFoundException(\"no such entry: \\\"\" + name+ \"\\\", had: \" + _byname.keySet());}return rval;}", "after": "public Entry GetEntry(String name){Entry rval = null;if (name != null){try{rval = (Entry)_byname[name];}catch (KeyNotFoundException){throw new FileNotFoundException(\"no such entry: \\\"\" + name + \"\\\"\");}}if (rval == null){throw new FileNotFoundException(\"no such entry: \\\"\" + name + \"\\\"\");}return rval;}" }, { "index": 4004, "before": "public TokenStream create(TokenStream input) {return new FrenchMinimalStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new FrenchMinimalStemFilter(input);}" }, { "index": 4005, "before": "public int getDecimalExponent() {return _relativeDecimalExponent+EXPONENT_OFFSET;}", "after": "public int GetDecimalExponent(){return _relativeDecimalExponent + EXPONENT_OFFSET;}" }, { "index": 4006, "before": "public DescribeInstanceCreditSpecificationsResult describeInstanceCreditSpecifications(DescribeInstanceCreditSpecificationsRequest request) {request = beforeClientExecution(request);return executeDescribeInstanceCreditSpecifications(request);}", "after": "public virtual DescribeInstanceCreditSpecificationsResponse DescribeInstanceCreditSpecifications(DescribeInstanceCreditSpecificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInstanceCreditSpecificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInstanceCreditSpecificationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4007, "before": "public GetSendQuotaResult getSendQuota() {return getSendQuota(new GetSendQuotaRequest());}", "after": "public virtual GetSendQuotaResponse GetSendQuota(){return GetSendQuota(new GetSendQuotaRequest());}" }, { "index": 4008, "before": "public String toString() {return \"TERM: \" + brToString(termBytes);}", "after": "public override string ToString(){return Term.Utf8ToString();}" }, { "index": 4009, "before": "public ListFacetNamesResult listFacetNames(ListFacetNamesRequest request) {request = beforeClientExecution(request);return executeListFacetNames(request);}", "after": "public virtual ListFacetNamesResponse ListFacetNames(ListFacetNamesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFacetNamesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFacetNamesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4010, "before": "public PlainValueCellCacheEntry(ValueEval value) {updateValue(value);}", "after": "public PlainValueCellCacheEntry(ValueEval value){UpdateValue(value);}" }, { "index": 4011, "before": "public PutEmailIdentityFeedbackAttributesResult putEmailIdentityFeedbackAttributes(PutEmailIdentityFeedbackAttributesRequest request) {request = beforeClientExecution(request);return executePutEmailIdentityFeedbackAttributes(request);}", "after": "public virtual PutEmailIdentityFeedbackAttributesResponse PutEmailIdentityFeedbackAttributes(PutEmailIdentityFeedbackAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutEmailIdentityFeedbackAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutEmailIdentityFeedbackAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4012, "before": "public AbortMultipartUploadRequest(String vaultName, String uploadId) {setVaultName(vaultName);setUploadId(uploadId);}", "after": "public AbortMultipartUploadRequest(string vaultName, string uploadId){_vaultName = vaultName;_uploadId = uploadId;}" }, { "index": 4013, "before": "public ResetDBParameterGroupRequest(String dBParameterGroupName) {setDBParameterGroupName(dBParameterGroupName);}", "after": "public ResetDBParameterGroupRequest(string dbParameterGroupName){_dbParameterGroupName = dbParameterGroupName;}" }, { "index": 4014, "before": "public HSSFClientAnchor createAnchor(int dx1, int dy1, int dx2, int dy2, int col1, int row1, int col2, int row2) {return new HSSFClientAnchor(dx1, dy1, dx2, dy2, (short) col1, row1, (short) col2, row2);}", "after": "public IClientAnchor CreateAnchor(int dx1, int dy1, int dx2, int dy2, int col1, int row1, int col2, int row2){return new HSSFClientAnchor(dx1, dy1, dx2, dy2, (short)col1, row1, (short)col2, row2);}" }, { "index": 4015, "before": "public void updateCacheResult(ValueEval result) {int nFrames = _evaluationFrames.size();if (nFrames < 1) {throw new IllegalStateException(\"Call to endEvaluate without matching call to startEvaluate\");}CellEvaluationFrame frame = _evaluationFrames.get(nFrames-1);if (result == ErrorEval.CIRCULAR_REF_ERROR && nFrames > 1) {return;}frame.updateFormulaResult(result);}", "after": "public void UpdateCacheResult(ValueEval result){int nFrames = _evaluationFrames.Count;if (nFrames < 1){throw new InvalidOperationException(\"Call To endEvaluate without matching call To startEvaluate\");}CellEvaluationFrame frame = (CellEvaluationFrame)_evaluationFrames[nFrames - 1];frame.UpdateFormulaResult(result);}" }, { "index": 4016, "before": "public Enumeration keys() {return new Iterator();}", "after": "public virtual IEnumerator Keys(){return new Iterator(this);}" }, { "index": 4017, "before": "public void fromRaw(int[] ints) {fromRaw(ints, 0);}", "after": "public virtual void FromRaw(byte[] bs){FromRaw(bs, 0);}" }, { "index": 4018, "before": "public int[] init() {final int[] ord = super.init();start = new int[ArrayUtil.oversize(ord.length, Integer.BYTES)];end = new int[ArrayUtil.oversize(ord.length, Integer.BYTES)];freq = new int[ArrayUtil.oversize(ord.length, Integer.BYTES)];assert start.length >= ord.length;assert end.length >= ord.length;assert freq.length >= ord.length;return ord;}", "after": "public override int[] Init(){int[] ord = base.Init();start = new int[ArrayUtil.Oversize(ord.Length, RamUsageEstimator.NUM_BYTES_INT32)];end = new int[ArrayUtil.Oversize(ord.Length, RamUsageEstimator.NUM_BYTES_INT32)];freq = new int[ArrayUtil.Oversize(ord.Length, RamUsageEstimator.NUM_BYTES_INT32)];Debug.Assert(start.Length >= ord.Length);Debug.Assert(end.Length >= ord.Length);Debug.Assert(freq.Length >= ord.Length);return ord;}" }, { "index": 4019, "before": "public boolean addFetchRefSpec(RefSpec s) {if (fetch.contains(s))return false;return fetch.add(s);}", "after": "public virtual bool AddFetchRefSpec(RefSpec s){if (fetch.Contains(s)){return false;}return fetch.AddItem(s);}" }, { "index": 4020, "before": "public char setIndex(int location) {if (location < start || location > end) {throw new IllegalArgumentException();}offset = location;if (offset == end) {return DONE;}return string.charAt(offset);}", "after": "public char setIndex(int location){if (location < start || location > end){throw new System.ArgumentException();}offset = location;if (offset == end){return java.text.CharacterIteratorClass.DONE;}return @string[offset];}" }, { "index": 4021, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[ITERATION]\\n\");buffer.append(\" .flags = \").append(HexDump.shortToHex(_flags)).append(\"\\n\");buffer.append(\"[/ITERATION]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[ITERATION]\\n\");buffer.Append(\" .flags = \").Append(HexDump.ShortToHex(_flags)).Append(\"\\n\");buffer.Append(\"[/ITERATION]\\n\");return buffer.ToString();}" }, { "index": 4022, "before": "public LogByteSizeMergePolicy() {minMergeSize = (long) (DEFAULT_MIN_MERGE_MB*1024*1024);maxMergeSize = (long) (DEFAULT_MAX_MERGE_MB*1024*1024);maxMergeSizeForForcedMerge = (long) (DEFAULT_MAX_MERGE_MB_FOR_FORCED_MERGE*1024*1024);}", "after": "public LogByteSizeMergePolicy(){m_minMergeSize = (long)(DEFAULT_MIN_MERGE_MB * 1024 * 1024);m_maxMergeSize = (long)(DEFAULT_MAX_MERGE_MB * 1024 * 1024);m_maxMergeSizeForForcedMerge = long.MaxValue;}" }, { "index": 4023, "before": "public DescribeNetworkInterfacePermissionsResult describeNetworkInterfacePermissions(DescribeNetworkInterfacePermissionsRequest request) {request = beforeClientExecution(request);return executeDescribeNetworkInterfacePermissions(request);}", "after": "public virtual DescribeNetworkInterfacePermissionsResponse DescribeNetworkInterfacePermissions(DescribeNetworkInterfacePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNetworkInterfacePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNetworkInterfacePermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4024, "before": "public String toString() {return \"\";}", "after": "public override string ToString(){return \"\";}" }, { "index": 4025, "before": "public DeleteImageBuilderResult deleteImageBuilder(DeleteImageBuilderRequest request) {request = beforeClientExecution(request);return executeDeleteImageBuilder(request);}", "after": "public virtual DeleteImageBuilderResponse DeleteImageBuilder(DeleteImageBuilderRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteImageBuilderRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteImageBuilderResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4026, "before": "public boolean requiresCommitBody() {return requiresCommitBody;}", "after": "public override bool RequiresCommitBody(){return requiresCommitBody;}" }, { "index": 4027, "before": "public void removeDocparts() {remove1stProperty(PropertyIDMap.PID_DOCPARTS);}", "after": "public void RemoveDocparts(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_DOCPARTS);}" }, { "index": 4028, "before": "public DescribeConfigurationSetResult describeConfigurationSet(DescribeConfigurationSetRequest request) {request = beforeClientExecution(request);return executeDescribeConfigurationSet(request);}", "after": "public virtual DescribeConfigurationSetResponse DescribeConfigurationSet(DescribeConfigurationSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeConfigurationSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeConfigurationSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4029, "before": "public static BufferSize megabytes(long mb) {return new BufferSize(mb * MB);}", "after": "public static BufferSize Megabytes(long mb){return new BufferSize(mb * MB);}" }, { "index": 4030, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeInt(field_1_reserved);}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteInt(field_1_reserved);}" }, { "index": 4031, "before": "public ListLabelingJobsForWorkteamResult listLabelingJobsForWorkteam(ListLabelingJobsForWorkteamRequest request) {request = beforeClientExecution(request);return executeListLabelingJobsForWorkteam(request);}", "after": "public virtual ListLabelingJobsForWorkteamResponse ListLabelingJobsForWorkteam(ListLabelingJobsForWorkteamRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListLabelingJobsForWorkteamRequestMarshaller.Instance;options.ResponseUnmarshaller = ListLabelingJobsForWorkteamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4032, "before": "public GetKeyPairResult getKeyPair(GetKeyPairRequest request) {request = beforeClientExecution(request);return executeGetKeyPair(request);}", "after": "public virtual GetKeyPairResponse GetKeyPair(GetKeyPairRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetKeyPairRequestMarshaller.Instance;options.ResponseUnmarshaller = GetKeyPairResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4033, "before": "@Override public boolean isEmpty() {Slice slice = this.slice;return slice.from == slice.to;}", "after": "public virtual bool isEmpty(){return elements.Length == 0;}" }, { "index": 4034, "before": "public EveryNTermSelector(int interval) {this.interval = interval;count = interval;}", "after": "public EveryNTermSelector(int interval){this.interval = interval;count = interval;}" }, { "index": 4035, "before": "public void ReInit(CharStream stream) {token_source.ReInit(stream);token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 25; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();}", "after": "public void ReInit(ICharStream stream){TokenSource.ReInit(stream);Token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 28; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();}" }, { "index": 4036, "before": "public DirectTrackingAllocator(int blockSize, Counter bytesUsed) {super(blockSize);this.bytesUsed = bytesUsed;}", "after": "public DirectTrackingAllocator(int blockSize, Counter bytesUsed): base(blockSize){this.bytesUsed = bytesUsed;}" }, { "index": 4037, "before": "public static ShortBuffer allocate(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}return new ReadWriteShortArrayBuffer(capacity);}", "after": "public static java.nio.ShortBuffer allocate(int capacity_1){if (capacity_1 < 0){throw new System.ArgumentException();}return new java.nio.ReadWriteShortArrayBuffer(capacity_1);}" }, { "index": 4038, "before": "public DescribeDatasetImportJobResult describeDatasetImportJob(DescribeDatasetImportJobRequest request) {request = beforeClientExecution(request);return executeDescribeDatasetImportJob(request);}", "after": "public virtual DescribeDatasetImportJobResponse DescribeDatasetImportJob(DescribeDatasetImportJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDatasetImportJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDatasetImportJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4039, "before": "public DescribeClusterSnapshotsResult describeClusterSnapshots() {return describeClusterSnapshots(new DescribeClusterSnapshotsRequest());}", "after": "public virtual DescribeClusterSnapshotsResponse DescribeClusterSnapshots(){return DescribeClusterSnapshots(new DescribeClusterSnapshotsRequest());}" }, { "index": 4040, "before": "public PushbackReader(Reader in, int size) {super(in);if (size <= 0) {throw new IllegalArgumentException(\"size <= 0\");}buf = new char[size];pos = size;}", "after": "public PushbackReader(java.io.Reader @in, int size) : base(@in){if (size <= 0){throw new System.ArgumentException(\"size <= 0\");}buf = new char[size];pos = size;}" }, { "index": 4041, "before": "public final char getChar(int index) {checkIndex(index, SizeOf.CHAR);return (char) Memory.peekShort(backingArray, offset + index, order);}", "after": "public sealed override char getChar(int index){checkIndex(index, libcore.io.SizeOf.CHAR);return (char)libcore.io.Memory.peekShort(backingArray, offset + index, _order);}" }, { "index": 4042, "before": "public SingleCellValueArray(ValueEval value) {super(1);_value = value;}", "after": "public SingleCellValueArray(ValueEval value): base(1){_value = value;}" }, { "index": 4043, "before": "public List getCherryPickedRefs() {return cherryPickedRefs;}", "after": "public virtual IList GetCherryPickedRefs(){return cherryPickedRefs;}" }, { "index": 4044, "before": "public Destination(java.util.List toAddresses) {setToAddresses(toAddresses);}", "after": "public Destination(List toAddresses){_toAddresses = toAddresses;}" }, { "index": 4045, "before": "public String getHostname() {return Host.this.getHostName();}", "after": "public virtual string GetHostName(){return hostName;}" }, { "index": 4046, "before": "public void setSize(int taxonomySize) {map = new int[taxonomySize];}", "after": "public void SetSize(int taxonomySize){map = new int[taxonomySize];}" }, { "index": 4047, "before": "public void writeShort(int v) {int b1 = (v >>> 8) & 0xFF;int b0 = (v) & 0xFF;try {out.write(b0);out.write(b1);} catch (IOException e) {throw new RuntimeException(e);}}", "after": "public void WriteShort(int v){int b1 = (v >> 8) & 0xFF;int b0 = (v >> 0) & 0xFF;try{out1.WriteByte((byte)b0);out1.WriteByte((byte)b1);}catch (IOException e){throw new RuntimeException(e);}}" }, { "index": 4048, "before": "public PathQueryNode(List pathElements) {this.values = pathElements;if (pathElements.size() <= 1) {throw new RuntimeException(\"PathQuerynode requires more 2 or more path elements.\");}}", "after": "public PathQueryNode(IList pathElements){this.values = pathElements;if (pathElements.Count <= 1){throw new Exception(\"PathQuerynode requires more 2 or more path elements.\");}}" }, { "index": 4049, "before": "public int getMaxDeltaDepth() {return maxDeltaDepth;}", "after": "public virtual int GetMaxDeltaDepth(){return maxDeltaDepth;}" }, { "index": 4050, "before": "public DomainInfos listDomains(ListDomainsRequest request) {request = beforeClientExecution(request);return executeListDomains(request);}", "after": "public virtual ListDomainsResponse ListDomains(ListDomainsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDomainsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDomainsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4051, "before": "public float weight(int contentLength, int totalTermFreq) {float numDocs = 1 + contentLength / pivot;return (k1 + 1) * (float) Math.log(1 + (numDocs + 0.5D) / (totalTermFreq + 0.5D));}", "after": "public virtual float Weight(int contentLength, int totalTermFreq){float numDocs = 1 + contentLength / pivot;return (k1 + 1) * (float)Math.Log(1 + (numDocs + 0.5D) / (totalTermFreq + 0.5D));}" }, { "index": 4052, "before": "public PutIdentityPolicyResult putIdentityPolicy(PutIdentityPolicyRequest request) {request = beforeClientExecution(request);return executePutIdentityPolicy(request);}", "after": "public virtual PutIdentityPolicyResponse PutIdentityPolicy(PutIdentityPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutIdentityPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = PutIdentityPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4053, "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": 4054, "before": "public static File[] listRoots() {return new File[] { new File(\"/\") };}", "after": "public static java.io.File[] listRoots(){return new java.io.File[] { new java.io.File(\"/\") };}" }, { "index": 4055, "before": "public CharBuffer slice() {return new ReadOnlyCharArrayBuffer(remaining(), backingArray, offset + position);}", "after": "public override java.nio.CharBuffer slice(){return new java.nio.ReadOnlyCharArrayBuffer(remaining(), backingArray, offset + _position);}" }, { "index": 4056, "before": "public JapaneseKatakanaStemFilter(TokenStream input, int minimumLength) {super(input);this.minimumKatakanaLength = minimumLength;}", "after": "public JapaneseKatakanaStemFilter(TokenStream input, int minimumLength): base(input){this.minimumKatakanaLength = minimumLength;this.termAttr = AddAttribute();this.keywordAttr = AddAttribute();}" }, { "index": 4057, "before": "public String toString() {return brToString(termBytes);}", "after": "public override string ToString(){return Term.Utf8ToString();}" }, { "index": 4058, "before": "public void unsafeWrite(char b[], int off, int len) {System.arraycopy(b, off, buf, this.len, len);this.len += len;}", "after": "public virtual void UnsafeWrite(char[] b, int off, int len){System.Array.Copy(b, off, m_buf, this.m_len, len);this.m_len += len;}" }, { "index": 4059, "before": "public ExternalNameRecord(RecordInputStream in) {field_1_option_flag = in.readShort();field_2_ixals = in.readShort();field_3_not_used = in.readShort();int numChars = in.readUByte();field_4_name = StringUtil.readUnicodeString(in, numChars);if(!isOLELink() && !isStdDocumentNameIdentifier()){if(isAutomaticLink()){if(in.available() > 0) {int nColumns = in.readUByte() + 1;int nRows = in.readShort() + 1;int totalCount = nRows * nColumns;_ddeValues = ConstantValueParser.parse(in, totalCount);_nColumns = nColumns;_nRows = nRows;}} else {int formulaLen = in.readUShort();field_5_name_definition = Formula.read(formulaLen, in);}}}", "after": "public ExternalNameRecord(RecordInputStream in1){field_1_option_flag = in1.ReadShort();field_2_ixals = in1.ReadShort();field_3_not_used = in1.ReadShort();int numChars = in1.ReadUByte();field_4_name = StringUtil.ReadUnicodeString(in1, numChars);if (!IsOLELink && !IsStdDocumentNameIdentifier){if (IsAutomaticLink){if (in1.Available() > 0){int nColumns = in1.ReadUByte() + 1;int nRows = in1.ReadShort() + 1;int totalCount = nRows * nColumns;_ddeValues = ConstantValueParser.Parse(in1, totalCount);_nColumns = nColumns;_nRows = nRows;}}else{int formulaLen = in1.ReadUShort();field_5_name_definition = Formula.Read(formulaLen, in1);}}}" }, { "index": 4060, "before": "public PorterStemFilter create(TokenStream input) {return new PorterStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new PorterStemFilter(input);}" }, { "index": 4061, "before": "public LoginProfile(String userName, java.util.Date createDate) {setUserName(userName);setCreateDate(createDate);}", "after": "public LoginProfile(string userName, DateTime createDate){_userName = userName;_createDate = createDate;}" }, { "index": 4062, "before": "public void setUnknownFormulaData(byte[] formularData) {field_2_unknownFormulaData = formularData;}", "after": "public void SetUnknownFormulaData(byte[] formularData){field_2_unknownFormulaData = formularData;}" }, { "index": 4063, "before": "public Reader create(Reader input) {return normMap == null ? input : new MappingCharFilter(normMap,input);}", "after": "public override TextReader Create(TextReader input){return m_normMap == null ? input : new MappingCharFilter(m_normMap, input);}" }, { "index": 4064, "before": "public Iterator> iterator() {return new EntryIterator();}", "after": "public override java.util.Iterator> iterator(){return new java.util.Hashtable.EntryIterator(this._enclosing);}" }, { "index": 4065, "before": "public final Buffer clear() {position = 0;mark = UNSET_MARK;limit = capacity;return this;}", "after": "public java.nio.Buffer clear(){_position = 0;_mark = UNSET_MARK;_limit = _capacity;return this;}" }, { "index": 4066, "before": "public int getNameIx(int definedNameIndex) {return _externalNameRecords[definedNameIndex].getIx();}", "after": "public int GetNameIx(int definedNameIndex){return _externalNameRecords[definedNameIndex].Ix;}" }, { "index": 4067, "before": "public DeleteReceiptRuleResult deleteReceiptRule(DeleteReceiptRuleRequest request) {request = beforeClientExecution(request);return executeDeleteReceiptRule(request);}", "after": "public virtual DeleteReceiptRuleResponse DeleteReceiptRule(DeleteReceiptRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteReceiptRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteReceiptRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4068, "before": "public boolean equals(Object obj) {if (this == obj) return true;if (!super.equals(obj)) return false;if (getClass() != obj.getClass()) return false;SortedSetSortField other = (SortedSetSortField) obj;if (selector != other.selector) return false;return true;}", "after": "public override bool Equals(object obj){if (this == obj) return true;if (!base.Equals(obj)) return false;if (GetType() != obj.GetType()) return false;SortedSetSortField other = (SortedSetSortField)obj;if (selector != other.selector) return false;return true;}" }, { "index": 4069, "before": "public JobFlowDetail(String jobFlowId, String name, JobFlowExecutionStatusDetail executionStatusDetail, JobFlowInstancesDetail instances) {setJobFlowId(jobFlowId);setName(name);setExecutionStatusDetail(executionStatusDetail);setInstances(instances);}", "after": "public JobFlowDetail(string jobFlowId, string name, JobFlowExecutionStatusDetail executionStatusDetail, JobFlowInstancesDetail instances){_jobFlowId = jobFlowId;_name = name;_executionStatusDetail = executionStatusDetail;_instances = instances;}" }, { "index": 4070, "before": "public PutVoiceConnectorOriginationResult putVoiceConnectorOrigination(PutVoiceConnectorOriginationRequest request) {request = beforeClientExecution(request);return executePutVoiceConnectorOrigination(request);}", "after": "public virtual PutVoiceConnectorOriginationResponse PutVoiceConnectorOrigination(PutVoiceConnectorOriginationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutVoiceConnectorOriginationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutVoiceConnectorOriginationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4071, "before": "public DBInstance startDBInstance(StartDBInstanceRequest request) {request = beforeClientExecution(request);return executeStartDBInstance(request);}", "after": "public virtual StartDBInstanceResponse StartDBInstance(StartDBInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDBInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDBInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4072, "before": "public DeleteChangeSetResult deleteChangeSet(DeleteChangeSetRequest request) {request = beforeClientExecution(request);return executeDeleteChangeSet(request);}", "after": "public virtual DeleteChangeSetResponse DeleteChangeSet(DeleteChangeSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteChangeSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteChangeSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4073, "before": "public int nextIndex() {return pos + 1;}", "after": "public int nextIndex(){return this.pos + 1;}" }, { "index": 4074, "before": "public DescribeGameSessionDetailsResult describeGameSessionDetails(DescribeGameSessionDetailsRequest request) {request = beforeClientExecution(request);return executeDescribeGameSessionDetails(request);}", "after": "public virtual DescribeGameSessionDetailsResponse DescribeGameSessionDetails(DescribeGameSessionDetailsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGameSessionDetailsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGameSessionDetailsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4075, "before": "public ListDatasetImportJobsResult listDatasetImportJobs(ListDatasetImportJobsRequest request) {request = beforeClientExecution(request);return executeListDatasetImportJobs(request);}", "after": "public virtual ListDatasetImportJobsResponse ListDatasetImportJobs(ListDatasetImportJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDatasetImportJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDatasetImportJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4076, "before": "public String toString() {return new StringBuilder().append(\"(\").append(x).append(\",\").append(y).append(\")\").toString();}", "after": "public override string ToString(){return \"Point(\" + x + \", \" + y + \")\";}" }, { "index": 4077, "before": "public CharBlockArray append(char c) {if (this.current.length == this.blockSize) {addBlock();}this.current.chars[this.current.length++] = c;this.length++;return this;}", "after": "public virtual CharBlockArray Append(char c){if (this.current.length == this.blockSize){AddBlock();}this.current.chars[this.current.length++] = c;this.length++;return this;}" }, { "index": 4078, "before": "public SimpleBoolFunction(ValueSource source) {this.source = source;}", "after": "public SimpleBoolFunction(ValueSource source){this.m_source = source;}" }, { "index": 4079, "before": "public String toStringUnquoted() {return getPrefix();}", "after": "public override string ToStringUnquoted(){return Prefix;}" }, { "index": 4080, "before": "public static Transport open(URIish uri) throws NotSupportedException, TransportException {for (WeakReference ref : protocols) {TransportProtocol proto = ref.get();if (proto == null) {protocols.remove(ref);continue;}if (proto.canHandle(uri, null, null))return proto.open(uri);}throw new NotSupportedException(MessageFormat.format(JGitText.get().URINotSupported, uri));}", "after": "public static NGit.Transport.Transport Open(URIish uri){foreach (JavaWeakReference @ref in protocols){TransportProtocol proto = @ref.Get();if (proto == null){protocols.Remove(@ref);continue;}if (proto.CanHandle(uri, null, null)){return proto.Open(uri);}}throw new NGit.Errors.NotSupportedException(MessageFormat.Format(JGitText.Get().URINotSupported, uri));}" }, { "index": 4081, "before": "public void mark(int readAheadLimit) throws IOException {throw new IOException(\"mark/reset not supported\");}", "after": "public override void mark(int readAheadLimit){throw new System.IO.IOException(\"mark/reset not supported\");}" }, { "index": 4082, "before": "public DeleteClusterSecurityGroupResult deleteClusterSecurityGroup(DeleteClusterSecurityGroupRequest request) {request = beforeClientExecution(request);return executeDeleteClusterSecurityGroup(request);}", "after": "public virtual DeleteClusterSecurityGroupResponse DeleteClusterSecurityGroup(DeleteClusterSecurityGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteClusterSecurityGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteClusterSecurityGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4083, "before": "public GlobalReplicationGroup rebalanceSlotsInGlobalReplicationGroup(RebalanceSlotsInGlobalReplicationGroupRequest request) {request = beforeClientExecution(request);return executeRebalanceSlotsInGlobalReplicationGroup(request);}", "after": "public virtual RebalanceSlotsInGlobalReplicationGroupResponse RebalanceSlotsInGlobalReplicationGroup(RebalanceSlotsInGlobalReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebalanceSlotsInGlobalReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = RebalanceSlotsInGlobalReplicationGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4084, "before": "public DeleteLocalGatewayRouteResult deleteLocalGatewayRoute(DeleteLocalGatewayRouteRequest request) {request = beforeClientExecution(request);return executeDeleteLocalGatewayRoute(request);}", "after": "public virtual DeleteLocalGatewayRouteResponse DeleteLocalGatewayRoute(DeleteLocalGatewayRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLocalGatewayRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLocalGatewayRouteResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4085, "before": "public DBCluster restoreDBClusterFromSnapshot(RestoreDBClusterFromSnapshotRequest request) {request = beforeClientExecution(request);return executeRestoreDBClusterFromSnapshot(request);}", "after": "public virtual RestoreDBClusterFromSnapshotResponse RestoreDBClusterFromSnapshot(RestoreDBClusterFromSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = RestoreDBClusterFromSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = RestoreDBClusterFromSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4086, "before": "public String getReading(int wordId, char surface[], int off, int len) {return null;}", "after": "public override string GetReading(int wordId, char[] surface, int off, int len){return null;}" }, { "index": 4087, "before": "public CreateDBSnapshotRequest(String dBSnapshotIdentifier, String dBInstanceIdentifier) {setDBSnapshotIdentifier(dBSnapshotIdentifier);setDBInstanceIdentifier(dBInstanceIdentifier);}", "after": "public CreateDBSnapshotRequest(string dbSnapshotIdentifier, string dbInstanceIdentifier){_dbSnapshotIdentifier = dbSnapshotIdentifier;_dbInstanceIdentifier = dbInstanceIdentifier;}" }, { "index": 4088, "before": "public RemoveRoleFromDBInstanceResult removeRoleFromDBInstance(RemoveRoleFromDBInstanceRequest request) {request = beforeClientExecution(request);return executeRemoveRoleFromDBInstance(request);}", "after": "public virtual RemoveRoleFromDBInstanceResponse RemoveRoleFromDBInstance(RemoveRoleFromDBInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveRoleFromDBInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveRoleFromDBInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4089, "before": "public Token nextToken() {if (i >= tokens.size()) {if (eofToken == null) {int start = -1;if (tokens.size() > 0) {int previousStop = tokens.get(tokens.size() - 1).getStopIndex();if (previousStop != -1) {start = previousStop + 1;}}int stop = Math.max(-1, start - 1);eofToken = _factory.create(new Pair(this, getInputStream()), Token.EOF, \"EOF\", Token.DEFAULT_CHANNEL, start, stop, getLine(), getCharPositionInLine());}return eofToken;}Token t = tokens.get(i);if (i == tokens.size() - 1 && t.getType() == Token.EOF) {eofToken = t;}i++;return t;}", "after": "public virtual IToken NextToken(){if (i >= tokens.Count){if (eofToken == null){int start = -1;if (tokens.Count > 0){int previousStop = tokens[tokens.Count - 1].StopIndex;if (previousStop != -1){start = previousStop + 1;}}int stop = Math.Max(-1, start - 1);eofToken = _factory.Create(Tuple.Create((ITokenSource)this, InputStream), TokenConstants.EOF, \"EOF\", TokenConstants.DefaultChannel, start, stop, Line, Column);}return eofToken;}IToken t = tokens[i];if (i == tokens.Count - 1 && t.Type == TokenConstants.EOF){eofToken = t;}i++;return t;}" }, { "index": 4090, "before": "public QueryMaker getQueryMaker() {return null; }", "after": "public override IQueryMaker GetQueryMaker(){return null; }" }, { "index": 4091, "before": "public GC(FileRepository repo) {this.repo = repo;this.pconfig = new PackConfig(repo);this.pm = NullProgressMonitor.INSTANCE;}", "after": "public GC(FileRepository repo){this.repo = repo;this.pm = NullProgressMonitor.INSTANCE;}" }, { "index": 4092, "before": "public synchronized void setLength(int length) {super.setLength(length);}", "after": "public override void setLength(int length_1){lock (this){base.setLength(length_1);}}" }, { "index": 4093, "before": "public CancelImportTaskResult cancelImportTask(CancelImportTaskRequest request) {request = beforeClientExecution(request);return executeCancelImportTask(request);}", "after": "public virtual CancelImportTaskResponse CancelImportTask(CancelImportTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelImportTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelImportTaskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4094, "before": "public int first() {return (current = start);}", "after": "public override int First(){return (current = start);}" }, { "index": 4095, "before": "public DeleteDiskResult deleteDisk(DeleteDiskRequest request) {request = beforeClientExecution(request);return executeDeleteDisk(request);}", "after": "public virtual DeleteDiskResponse DeleteDisk(DeleteDiskRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDiskRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDiskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4096, "before": "public DeleteVpcEndpointConnectionNotificationsResult deleteVpcEndpointConnectionNotifications(DeleteVpcEndpointConnectionNotificationsRequest request) {request = beforeClientExecution(request);return executeDeleteVpcEndpointConnectionNotifications(request);}", "after": "public virtual DeleteVpcEndpointConnectionNotificationsResponse DeleteVpcEndpointConnectionNotifications(DeleteVpcEndpointConnectionNotificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpcEndpointConnectionNotificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpcEndpointConnectionNotificationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4097, "before": "public final boolean equals(Object o) {if (o instanceof AnyObjectId) {return equals((AnyObjectId) o);}return false;}", "after": "public bool Equals(AnyObjectId other){return other != null ? Equals(this, other) : false;}" }, { "index": 4098, "before": "public DescribeConfigurationSettingsRequest(String applicationName) {setApplicationName(applicationName);}", "after": "public DescribeConfigurationSettingsRequest(string applicationName){_applicationName = applicationName;}" }, { "index": 4099, "before": "public ET next() {if (expectedModCount == list.modCount) {LinkedList.Link next = link.next;if (next != list.voidLink) {lastLink = link = next;pos++;return link.data;}throw new NoSuchElementException();}throw new ConcurrentModificationException();}", "after": "public ET next(){if (expectedModCount == list.modCount){java.util.LinkedList.Link next_1 = link.next;if (next_1 != list.voidLink){lastLink = link = next_1;pos++;return link.data;}throw new java.util.NoSuchElementException();}throw new java.util.ConcurrentModificationException();}" }, { "index": 4100, "before": "public CreateConfigurationResult createConfiguration(CreateConfigurationRequest request) {request = beforeClientExecution(request);return executeCreateConfiguration(request);}", "after": "public virtual CreateConfigurationResponse CreateConfiguration(CreateConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4101, "before": "public ResetClusterParameterGroupResult resetClusterParameterGroup(ResetClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeResetClusterParameterGroup(request);}", "after": "public virtual ResetClusterParameterGroupResponse ResetClusterParameterGroup(ResetClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetClusterParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4102, "before": "public void mark(int readlimit) {in.mark(readlimit);}", "after": "public override void Mark(int readlimit){@in.Mark(readlimit);}" }, { "index": 4103, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[PASSWORD]\\n\");buffer.append(\" .password = \").append(HexDump.shortToHex(field_1_password)).append(\"\\n\");buffer.append(\"[/PASSWORD]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[PASSWORD]\\n\");buffer.Append(\" .password = \").Append(StringUtil.ToHexString(Password)).Append(\"\\n\");buffer.Append(\"[/PASSWORD]\\n\");return buffer.ToString();}" }, { "index": 4104, "before": "public SendTemplatedEmailResult sendTemplatedEmail(SendTemplatedEmailRequest request) {request = beforeClientExecution(request);return executeSendTemplatedEmail(request);}", "after": "public virtual SendTemplatedEmailResponse SendTemplatedEmail(SendTemplatedEmailRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendTemplatedEmailRequestMarshaller.Instance;options.ResponseUnmarshaller = SendTemplatedEmailResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4105, "before": "public boolean equals(Object obj) {if ( !(obj instanceof Predicate) ) return false;if ( this == obj ) return true;Predicate p = (Predicate)obj;return this.ruleIndex == p.ruleIndex &&this.predIndex == p.predIndex &&this.isCtxDependent == p.isCtxDependent;}", "after": "public override bool Equals(object obj){if (!(obj is SemanticContext.Predicate)){return false;}if (this == obj){return true;}SemanticContext.Predicate p = (SemanticContext.Predicate)obj;return this.ruleIndex == p.ruleIndex && this.predIndex == p.predIndex && this.isCtxDependent == p.isCtxDependent;}" }, { "index": 4106, "before": "public void writeBoolean(boolean value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeBoolean(value);}", "after": "public virtual void writeBoolean(bool value){throw new System.NotImplementedException();}" }, { "index": 4107, "before": "public boolean checkPosition(int position) {Iterator positionSpanIt = positionSpans.iterator();while (positionSpanIt.hasNext()) {PositionSpan posSpan = positionSpanIt.next();if (((position >= posSpan.start) && (position <= posSpan.end))) {return true;}}return false;}", "after": "public virtual bool CheckPosition(int position){foreach (var positionSpan in _positionSpans){if ((position >= positionSpan.Start) && (position <= positionSpan.End)){return true;}}return false;}" }, { "index": 4108, "before": "public static int log(long x, int base) {if (base <= 1) {throw new IllegalArgumentException(\"base must be > 1\");}int ret = 0;while (x >= base) {x /= base;ret++;}return ret;}", "after": "public static int Log(long x, int @base){if (@base <= 1){throw new System.ArgumentException(\"base must be > 1\");}int ret = 0;while (x >= @base){x /= @base;ret++;}return ret;}" }, { "index": 4109, "before": "public final LongBuffer get(long[] dst, int dstOffset, int longCount) {if (longCount > remaining()) {throw new BufferUnderflowException();}System.arraycopy(backingArray, offset + position, dst, dstOffset, longCount);position += longCount;return this;}", "after": "public sealed override java.nio.LongBuffer get(long[] dst, int dstOffset, int longCount){if (longCount > remaining()){throw new java.nio.BufferUnderflowException();}System.Array.Copy(backingArray, offset + _position, dst, dstOffset, longCount);_position += longCount;return this;}" }, { "index": 4110, "before": "public boolean equals(Object obj) {return obj == this;}", "after": "public override bool Equals(object obj){return obj == this;}" }, { "index": 4111, "before": "public void exportRepository(String name, Repository db) {exports.put(nameWithDotGit(name), db);}", "after": "public virtual void ExportRepository(string name, Repository db){exports.Put(NameWithDotGit(name), db);}" }, { "index": 4112, "before": "public void println(long l) {println(String.valueOf(l));}", "after": "public virtual void println(long l){println(l.ToString());}" }, { "index": 4113, "before": "public HSSFFormulaEvaluator createFormulaEvaluator(){return new HSSFFormulaEvaluator(workbook);}", "after": "public NPOI.SS.UserModel.IFormulaEvaluator CreateFormulaEvaluator(){return new HSSFFormulaEvaluator(workbook);}" }, { "index": 4114, "before": "public boolean equals(Object obj) {if ( obj==null || !(obj instanceof IntervalSet) ) {return false;}IntervalSet other = (IntervalSet)obj;return this.intervals.equals(other.intervals);}", "after": "public override bool Equals(object obj){if (obj == null || !(obj is Antlr4.Runtime.Misc.IntervalSet)){return false;}Antlr4.Runtime.Misc.IntervalSet other = (Antlr4.Runtime.Misc.IntervalSet)obj;return this.intervals.SequenceEqual(other.intervals);}" }, { "index": 4115, "before": "public FileMode getIndexFileMode(DirCacheIterator indexIter) {final FileMode wtMode = getEntryFileMode();if (indexIter == null) {return wtMode;}final FileMode iMode = indexIter.getEntryFileMode();if (getOptions().isFileMode() && iMode != FileMode.GITLINK && iMode != FileMode.TREE) {return wtMode;}if (!getOptions().isFileMode()) {if (FileMode.REGULAR_FILE == wtMode&& FileMode.EXECUTABLE_FILE == iMode) {return iMode;}if (FileMode.EXECUTABLE_FILE == wtMode&& FileMode.REGULAR_FILE == iMode) {return iMode;}}if (FileMode.GITLINK == iMode&& FileMode.TREE == wtMode && !getOptions().isDirNoGitLinks()) {return iMode;}if (FileMode.TREE == iMode&& FileMode.GITLINK == wtMode) {return iMode;}return wtMode;}", "after": "public virtual FileMode GetIndexFileMode(DirCacheIterator indexIter){FileMode wtMode = EntryFileMode;if (indexIter == null){return wtMode;}if (GetOptions().IsFileMode()){return wtMode;}FileMode iMode = indexIter.EntryFileMode;if (FileMode.REGULAR_FILE == wtMode && FileMode.EXECUTABLE_FILE == iMode){return iMode;}if (FileMode.EXECUTABLE_FILE == wtMode && FileMode.REGULAR_FILE == iMode){return iMode;}return wtMode;}" }, { "index": 4116, "before": "public CreateScheduledActionResult createScheduledAction(CreateScheduledActionRequest request) {request = beforeClientExecution(request);return executeCreateScheduledAction(request);}", "after": "public virtual CreateScheduledActionResponse CreateScheduledAction(CreateScheduledActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateScheduledActionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateScheduledActionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4117, "before": "public PackConfig getConfig() {return config;}", "after": "public virtual PackConfig GetConfig(){return this._enclosing.config;}" }, { "index": 4118, "before": "public CharBuffer put(char c) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.CharBuffer put(char c){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 4119, "before": "public DeleteDistributionRequest(String id, String ifMatch) {setId(id);setIfMatch(ifMatch);}", "after": "public DeleteDistributionRequest(string id, string ifMatch){_id = id;_ifMatch = ifMatch;}" }, { "index": 4120, "before": "public static long pop_andnot(long[] arr1, long[] arr2, int wordOffset, int numWords) {long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i) {popCount += Long.bitCount(arr1[i] & ~arr2[i]);}return popCount;}", "after": "public static long Pop_AndNot(long[] arr1, long[] arr2, int wordOffset, int numWords){long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i){popCount += (arr1[i] & ~arr2[i]).PopCount();}return popCount;}" }, { "index": 4121, "before": "public boolean include(TreeWalk walker) {return true;}", "after": "public override bool Include(TreeWalk walker){return true;}" }, { "index": 4122, "before": "public DescribeReservedDBInstancesOfferingsResult describeReservedDBInstancesOfferings() {return describeReservedDBInstancesOfferings(new DescribeReservedDBInstancesOfferingsRequest());}", "after": "public virtual DescribeReservedDBInstancesOfferingsResponse DescribeReservedDBInstancesOfferings(){return DescribeReservedDBInstancesOfferings(new DescribeReservedDBInstancesOfferingsRequest());}" }, { "index": 4123, "before": "public ByteVector(byte[] a) {blockSize = DEFAULT_BLOCK_SIZE;array = a;n = 0;}", "after": "public ByteVector(int capacity){if (capacity > 0){blockSize = capacity;}else{blockSize = DEFAULT_BLOCK_SIZE;}array = new byte[blockSize];n = 0;}" }, { "index": 4124, "before": "public Appendable append(CharSequence csq) {return append(csq, 0, csq.length());}", "after": "public virtual OpenStringBuilder Append(ICharSequence csq){return Append(csq, 0, csq.Length);}" }, { "index": 4125, "before": "public String getLookaheadName(TokenStream input) {return getTokenName(input.LA(1));}", "after": "public string GetLookaheadName(ITokenStream input){return GetTokenName(input.LA(1));}" }, { "index": 4126, "before": "public static final ObjectId fromRaw(byte[] bs) {return fromRaw(bs, 0);}", "after": "public static NGit.ObjectId FromRaw(byte[] bs){return FromRaw(bs, 0);}" }, { "index": 4127, "before": "public GutsRecord(RecordInputStream in) {field_1_left_row_gutter = in.readShort();field_2_top_col_gutter = in.readShort();field_3_row_level_max = in.readShort();field_4_col_level_max = in.readShort();}", "after": "public GutsRecord(RecordInputStream in1){field_1_left_row_gutter = in1.ReadShort();field_2_top_col_gutter = in1.ReadShort();field_3_row_level_max = in1.ReadShort();field_4_col_level_max = in1.ReadShort();}" }, { "index": 4128, "before": "public GermanMinimalStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public GermanMinimalStemFilterFactory(IDictionary args) : base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 4129, "before": "public DescribeActiveReceiptRuleSetResult describeActiveReceiptRuleSet(DescribeActiveReceiptRuleSetRequest request) {request = beforeClientExecution(request);return executeDescribeActiveReceiptRuleSet(request);}", "after": "public virtual DescribeActiveReceiptRuleSetResponse DescribeActiveReceiptRuleSet(DescribeActiveReceiptRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeActiveReceiptRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeActiveReceiptRuleSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4130, "before": "public GetGeoLocationResult getGeoLocation(GetGeoLocationRequest request) {request = beforeClientExecution(request);return executeGetGeoLocation(request);}", "after": "public virtual GetGeoLocationResponse GetGeoLocation(GetGeoLocationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetGeoLocationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetGeoLocationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4131, "before": "public KStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public KStemFilterFactory(IDictionary args) : base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 4132, "before": "public PublishRequest(String topicArn, String message) {setTopicArn(topicArn);setMessage(message);}", "after": "public PublishRequest(string topicArn, string message){_topicArn = topicArn;_message = message;}" }, { "index": 4133, "before": "public void replace(int start, int limit, String text) {final int charsLen = text.length();final int newLength = shiftForReplace(start, limit, charsLen);text.getChars(0, charsLen, buffer, start);token.setLength(length = newLength);}", "after": "public void Replace(int start, int length, string text) {int charsLen = text.Length;int newLength = ShiftForReplace(start, length + start, charsLen); text.CopyTo(0, buffer, start, charsLen);token.Length = (this.length = newLength);}" }, { "index": 4134, "before": "public DescribeInternetGatewaysResult describeInternetGateways() {return describeInternetGateways(new DescribeInternetGatewaysRequest());}", "after": "public virtual DescribeInternetGatewaysResponse DescribeInternetGateways(){return DescribeInternetGateways(new DescribeInternetGatewaysRequest());}" }, { "index": 4135, "before": "public ListQualificationTypesResult listQualificationTypes(ListQualificationTypesRequest request) {request = beforeClientExecution(request);return executeListQualificationTypes(request);}", "after": "public virtual ListQualificationTypesResponse ListQualificationTypes(ListQualificationTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListQualificationTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListQualificationTypesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4136, "before": "public DetachInstancesResult detachInstances(DetachInstancesRequest request) {request = beforeClientExecution(request);return executeDetachInstances(request);}", "after": "public virtual DetachInstancesResponse DetachInstances(DetachInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4137, "before": "public boolean include(TreeWalk walker) {final int n = walker.getTreeCount();if (n == 1) return true;final int m = walker.getRawMode(baseTree);for (int i = 1; i < n; i++)if (walker.getRawMode(i) != m || !walker.idEqual(i, baseTree))return true;return false;}", "after": "public override bool Include(TreeWalk walker){int n = walker.TreeCount;if (n == 1){return true;}int m = walker.GetRawMode(0);for (int i = 1; i < n; i++){if (walker.GetRawMode(i) != m || !walker.IdEqual(i, 0)){return true;}}return false;}" }, { "index": 4138, "before": "public List getMatchingDocs() {List matchingDocs = super.getMatchingDocs();if (totalHits == NOT_CALCULATED) {totalHits = 0;for (MatchingDocs md : matchingDocs) {totalHits += md.totalHits;}}if (totalHits <= sampleSize) {return matchingDocs;}if (sampledDocs == null) {samplingRate = (1.0 * sampleSize) / totalHits;sampledDocs = createSampledDocs(matchingDocs);}return sampledDocs;}", "after": "public override IList GetMatchingDocs(){IList matchingDocs = base.GetMatchingDocs();if (totalHits == NOT_CALCULATED){totalHits = 0;foreach (MatchingDocs md in matchingDocs){totalHits += md.TotalHits;}}if (totalHits <= sampleSize){return matchingDocs;}if (sampledDocs == null){samplingRate = (1.0 * sampleSize) / totalHits;sampledDocs = CreateSampledDocs(matchingDocs);}return sampledDocs;}" }, { "index": 4139, "before": "public CreateDataSourceFromS3Result createDataSourceFromS3(CreateDataSourceFromS3Request request) {request = beforeClientExecution(request);return executeCreateDataSourceFromS3(request);}", "after": "public virtual CreateDataSourceFromS3Response CreateDataSourceFromS3(CreateDataSourceFromS3Request request){var options = new InvokeOptions();options.RequestMarshaller = CreateDataSourceFromS3RequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDataSourceFromS3ResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4140, "before": "public UpdateFleetMetadataResult updateFleetMetadata(UpdateFleetMetadataRequest request) {request = beforeClientExecution(request);return executeUpdateFleetMetadata(request);}", "after": "public virtual UpdateFleetMetadataResponse UpdateFleetMetadata(UpdateFleetMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFleetMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFleetMetadataResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4141, "before": "public ObjectId getNewObjectId() {return newValue;}", "after": "public virtual ObjectId GetNewObjectId(){return newValue;}" }, { "index": 4142, "before": "public long ramBytesUsed() {long sizeInBytes = ((termBytesReader!=null)? termBytesReader.ramBytesUsed() : 0);for(FieldIndexData entry : fields.values()) {sizeInBytes += entry.ramBytesUsed();}return sizeInBytes;}", "after": "public override long RamBytesUsed(){long sizeInBytes = 0;foreach (FieldIndexData entry in fields.Values){sizeInBytes += entry.RamBytesUsed();}return sizeInBytes;}" }, { "index": 4143, "before": "public StringBuilder append(char c) {append0(c);return this;}", "after": "public java.lang.StringBuilder append(char c){append0(c);return this;}" }, { "index": 4144, "before": "public void unread(int oneChar) throws IOException {synchronized (lock) {checkNotClosed();if (pos == 0) {throw new IOException(\"Pushback buffer full\");}buf[--pos] = (char) oneChar;}}", "after": "public virtual void unread(int oneChar){lock (@lock){checkNotClosed();if (pos == 0){throw new System.IO.IOException(\"Pushback buffer full\");}buf[--pos] = (char)oneChar;}}" }, { "index": 4145, "before": "public QueryFaceRequest() {super(\"LinkFace\", \"2018-07-20\", \"QueryFace\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public QueryFaceRequest(): base(\"LinkFace\", \"2018-07-20\", \"QueryFace\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 4146, "before": "public ProductDomain(String product, String domain) {this.productName = product;this.domainName = domain;}", "after": "public ProductDomain(string product, string domain){ProductName = product;DomainName = domain;}" }, { "index": 4147, "before": "public void disableRefLog() {refLogMessage = null;refLogIncludeResult = false;}", "after": "public virtual void DisableRefLog(){refLogMessage = null;refLogIncludeResult = false;}" }, { "index": 4148, "before": "public static TaxonomyWriterCache defaultTaxonomyWriterCache() {return new UTF8TaxonomyWriterCache();}", "after": "public static ITaxonomyWriterCache DefaultTaxonomyWriterCache(){return new Cl2oTaxonomyWriterCache(1024, 0.15f, 3);}" }, { "index": 4149, "before": "public PushCommand setDryRun(boolean dryRun) {checkCallable();this.dryRun = dryRun;return this;}", "after": "public virtual NGit.Api.PushCommand SetDryRun(bool dryRun){CheckCallable();this.dryRun = dryRun;return this;}" }, { "index": 4150, "before": "public ProcessBuilder runInShell(String cmd, String[] args) {List argv = new ArrayList<>(3 + args.length);argv.add(\"cmd.exe\"); argv.add(\"/c\"); argv.add(cmd);argv.addAll(Arrays.asList(args));ProcessBuilder proc = new ProcessBuilder();proc.command(argv);return proc;}", "after": "public override ProcessStartInfo RunInShell(string cmd, string[] args){IList argv = new AList(3 + args.Length);argv.AddItem(\"cmd.exe\");argv.AddItem(\"/c\");argv.AddItem(cmd);Sharpen.Collections.AddAll(argv, Arrays.AsList(args));ProcessStartInfo proc = new ProcessStartInfo();proc.SetCommand(argv);return proc;}" }, { "index": 4151, "before": "public NameCommentRecord(final RecordInputStream ris) {field_1_record_type = ris.readShort();field_2_frt_cell_ref_flag = ris.readShort();field_3_reserved = ris.readLong();final int field_4_name_length = ris.readShort();final int field_5_comment_length = ris.readShort();if (ris.readByte() == 0) {field_6_name_text = StringUtil.readCompressedUnicode(ris, field_4_name_length);} else {field_6_name_text = StringUtil.readUnicodeLE(ris, field_4_name_length);}if (ris.readByte() == 0) {field_7_comment_text = StringUtil.readCompressedUnicode(ris, field_5_comment_length);} else {field_7_comment_text = StringUtil.readUnicodeLE(ris, field_5_comment_length);}}", "after": "public NameCommentRecord(RecordInputStream ris){ILittleEndianInput in1 = ris;field_1_record_type = in1.ReadShort();field_2_frt_cell_ref_flag = in1.ReadShort();field_3_reserved = in1.ReadLong();int field_4_name_length = in1.ReadShort();int field_5_comment_length = in1.ReadShort();in1.ReadByte(); field_6_name_text = StringUtil.ReadCompressedUnicode(in1, field_4_name_length);in1.ReadByte(); field_7_comment_text = StringUtil.ReadCompressedUnicode(in1, field_5_comment_length);}" }, { "index": 4152, "before": "public void onPull(float deltaDistance) {final long now = AnimationUtils.currentAnimationTimeMillis();if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration) {return;}if (mState != STATE_PULL) {mGlowScaleY = PULL_GLOW_BEGIN;}mState = STATE_PULL;mStartTime = now;mDuration = PULL_TIME;mPullDistance += deltaDistance;float distance = Math.abs(mPullDistance);mEdgeAlpha = mEdgeAlphaStart = Math.max(PULL_EDGE_BEGIN, Math.min(distance, MAX_ALPHA));mEdgeScaleY = mEdgeScaleYStart = Math.max(HELD_EDGE_SCALE_Y, Math.min(distance * PULL_DISTANCE_EDGE_FACTOR, 1.f));mGlowAlpha = mGlowAlphaStart = Math.min(MAX_ALPHA,mGlowAlpha +(Math.abs(deltaDistance) * PULL_DISTANCE_ALPHA_GLOW_FACTOR));float glowChange = Math.abs(deltaDistance);if (deltaDistance > 0 && mPullDistance < 0) {glowChange = -glowChange;}if (mPullDistance == 0) {mGlowScaleY = 0;}mGlowScaleY = mGlowScaleYStart = Math.min(MAX_GLOW_HEIGHT, Math.max(0, mGlowScaleY + glowChange * PULL_DISTANCE_GLOW_FACTOR));mEdgeAlphaFinish = mEdgeAlpha;mEdgeScaleYFinish = mEdgeScaleY;mGlowAlphaFinish = mGlowAlpha;mGlowScaleYFinish = mGlowScaleY;}", "after": "public virtual void onPull(float deltaDistance){long now = android.view.animation.AnimationUtils.currentAnimationTimeMillis();if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration){return;}if (mState != STATE_PULL){mGlowScaleY = PULL_GLOW_BEGIN;}mState = STATE_PULL;mStartTime = now;mDuration = PULL_TIME;mPullDistance += deltaDistance;float distance = System.Math.Abs(mPullDistance);mEdgeAlpha = mEdgeAlphaStart = System.Math.Max(PULL_EDGE_BEGIN, System.Math.Min(distance, MAX_ALPHA));mEdgeScaleY = mEdgeScaleYStart = System.Math.Max(HELD_EDGE_SCALE_Y, System.Math.Min(distance * PULL_DISTANCE_EDGE_FACTOR, 1.0f));mGlowAlpha = mGlowAlphaStart = System.Math.Min(MAX_ALPHA, mGlowAlpha + (System.Math.Abs(deltaDistance) * PULL_DISTANCE_ALPHA_GLOW_FACTOR));float glowChange = System.Math.Abs(deltaDistance);if (deltaDistance > 0 && mPullDistance < 0){glowChange = -glowChange;}if (mPullDistance == 0){mGlowScaleY = 0;}mGlowScaleY = mGlowScaleYStart = System.Math.Min(MAX_GLOW_HEIGHT, System.Math.Max(0, mGlowScaleY + glowChange * PULL_DISTANCE_GLOW_FACTOR));mEdgeAlphaFinish = mEdgeAlpha;mEdgeScaleYFinish = mEdgeScaleY;mGlowAlphaFinish = mGlowAlpha;mGlowScaleYFinish = mGlowScaleY;}" }, { "index": 4153, "before": "public URIish setPath(String n) {final URIish r = new URIish(this);r.path = n;r.rawPath = n;return r;}", "after": "public virtual NGit.Transport.URIish SetPath(string n){NGit.Transport.URIish r = new NGit.Transport.URIish(this);r.path = n;r.rawPath = n;return r;}" }, { "index": 4154, "before": "public UpdateTemplateResult updateTemplate(UpdateTemplateRequest request) {request = beforeClientExecution(request);return executeUpdateTemplate(request);}", "after": "public virtual UpdateTemplateResponse UpdateTemplate(UpdateTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4155, "before": "public void encode(long[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block = encode(values, valuesOffset);valuesOffset += valueCount;blocksOffset = writeLong(block, blocks, blocksOffset);}}", "after": "public override void Encode(long[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = Encode(values, valuesOffset);valuesOffset += valueCount;blocksOffset = WriteInt64(block, blocks, blocksOffset);}}" }, { "index": 4156, "before": "public ListDomainDeliverabilityCampaignsResult listDomainDeliverabilityCampaigns(ListDomainDeliverabilityCampaignsRequest request) {request = beforeClientExecution(request);return executeListDomainDeliverabilityCampaigns(request);}", "after": "public virtual ListDomainDeliverabilityCampaignsResponse ListDomainDeliverabilityCampaigns(ListDomainDeliverabilityCampaignsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDomainDeliverabilityCampaignsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDomainDeliverabilityCampaignsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4157, "before": "public void setReuseObjects(boolean reuseObjects) {this.reuseObjects = reuseObjects;}", "after": "public virtual void SetReuseObjects(bool reuseObjects){this.reuseObjects = reuseObjects;}" }, { "index": 4158, "before": "public DiffFormatter(OutputStream out) {this.out = out;}", "after": "public DiffFormatter(OutputStream @out){this.@out = @out;}" }, { "index": 4159, "before": "public ExpectedAttributeValue(Boolean exists) {setExists(exists);}", "after": "public ExpectedAttributeValue(bool exists){_exists = exists;}" }, { "index": 4160, "before": "public FieldsProducer fieldsProducer(SegmentReadState state) throws IOException {PostingsReaderBase postingsReader = new Lucene84PostingsReader(state);boolean success = false;try {FieldsProducer ret = new FSTTermsReader(state, postingsReader);success = true;return ret;} finally {if (!success) {IOUtils.closeWhileHandlingException(postingsReader);}}}", "after": "public override FieldsProducer FieldsProducer(SegmentReadState state){PostingsReaderBase postingsReader = new Lucene41PostingsReader(state.Directory, state.FieldInfos,state.SegmentInfo, state.Context, state.SegmentSuffix);bool success = false;try{FieldsProducer ret = new FSTTermsReader(state, postingsReader);success = true;return ret;}finally{if (!success){IOUtils.DisposeWhileHandlingException(postingsReader);}}}" }, { "index": 4161, "before": "public ListSubscribedWorkteamsResult listSubscribedWorkteams(ListSubscribedWorkteamsRequest request) {request = beforeClientExecution(request);return executeListSubscribedWorkteams(request);}", "after": "public virtual ListSubscribedWorkteamsResponse ListSubscribedWorkteams(ListSubscribedWorkteamsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSubscribedWorkteamsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSubscribedWorkteamsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4162, "before": "public BatchDeleteAttributesRequest(String domainName, java.util.List items) {setDomainName(domainName);setItems(items);}", "after": "public BatchDeleteAttributesRequest(string domainName, List items){_domainName = domainName;_items = items;}" }, { "index": 4163, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeByte(_value ? 1 : 0);}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteByte(field_1_value ? 1 : 0);}" }, { "index": 4164, "before": "public NavigableMap descendingMap() {return new BoundedMap(!ascending, from, fromBound, to, toBound);}", "after": "public java.util.NavigableMap descendingMap(){return new java.util.TreeMap.BoundedMap(this._enclosing, !this.ascending, this.from, this.fromBound, this.to, this.toBound);}" }, { "index": 4165, "before": "public ByteBuffer putLong(long value) {int newPosition = position + SizeOf.LONG;if (newPosition > limit) {throw new BufferOverflowException();}Memory.pokeLong(backingArray, offset + position, value, order);position = newPosition;return this;}", "after": "public override java.nio.ByteBuffer putLong(long value){int newPosition = _position + libcore.io.SizeOf.LONG;if (newPosition > _limit){throw new java.nio.BufferOverflowException();}libcore.io.Memory.pokeLong(backingArray, offset + _position, value, _order);_position = newPosition;return this;}" }, { "index": 4166, "before": "public CFRecordsAggregate get(int index) {checkIndex(index);return _cfHeaders.get(index);}", "after": "public CFRecordsAggregate Get(int index){CheckIndex(index);return (CFRecordsAggregate)_cfHeaders[index];}" }, { "index": 4167, "before": "public long get(int index) {final int o = index / 9;final int b = index % 9;final int shift = b * 7;return (blocks[o] >>> shift) & 127L;}", "after": "public override long Get(int index){int o = index / 9;int b = index % 9;int shift = b * 7;return ((long)((ulong)blocks[o] >> shift)) & 127L;}" }, { "index": 4168, "before": "public GetSegmentsResult getSegments(GetSegmentsRequest request) {request = beforeClientExecution(request);return executeGetSegments(request);}", "after": "public virtual GetSegmentsResponse GetSegments(GetSegmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSegmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSegmentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4169, "before": "public DeleteVpcEndpointsResult deleteVpcEndpoints(DeleteVpcEndpointsRequest request) {request = beforeClientExecution(request);return executeDeleteVpcEndpoints(request);}", "after": "public virtual DeleteVpcEndpointsResponse DeleteVpcEndpoints(DeleteVpcEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpcEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpcEndpointsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4170, "before": "public String toString() {switch (getCellTypeEnum()) {case BLANK:return \"\";case BOOLEAN:return getBooleanCellValue()?\"TRUE\":\"FALSE\";case ERROR:return ErrorEval.getText((( BoolErrRecord ) _record).getErrorValue());case FORMULA:return getCellFormula();case NUMERIC:if (DateUtil.isCellDateFormatted(this)) {SimpleDateFormat sdf = new SimpleDateFormat(\"dd-MMM-yyyy\", LocaleUtil.getUserLocale());sdf.setTimeZone(LocaleUtil.getUserTimeZone());return sdf.format(getDateCellValue());}return String.valueOf(getNumericCellValue());case STRING:return getStringCellValue();default:return \"Unknown Cell Type: \" + getCellType();}}", "after": "public override String ToString(){switch (CellType){case CellType.Blank:return \"\";case CellType.Boolean:return BooleanCellValue ? \"TRUE\" : \"FALSE\";case CellType.Error:return NPOI.SS.Formula.Eval.ErrorEval.GetText(((BoolErrRecord)_record).ErrorValue);case CellType.Formula:return CellFormula;case CellType.Numeric:string format = this.CellStyle.GetDataFormatString();DataFormatter formatter = new DataFormatter();return formatter.FormatCellValue(this);case CellType.String:return StringCellValue;default:return \"Unknown Cell Type: \" + CellType;}}" }, { "index": 4171, "before": "public List getHunks() {if (hunks == null)return Collections.emptyList();return hunks;}", "after": "public virtual IList GetHunks(){if (hunks == null){return Sharpen.Collections.EmptyList();}return hunks;}" }, { "index": 4172, "before": "public ObjectId toObjectId() {ensureId();return idBuffer.toObjectId();}", "after": "public virtual ObjectId ToObjectId(){EnsureId();return idBuffer.ToObjectId();}" }, { "index": 4173, "before": "public ListQueuesRequest(String queueNamePrefix) {setQueueNamePrefix(queueNamePrefix);}", "after": "public ListQueuesRequest(string queueNamePrefix){_queueNamePrefix = queueNamePrefix;}" }, { "index": 4174, "before": "public AcceptTransitGatewayPeeringAttachmentResult acceptTransitGatewayPeeringAttachment(AcceptTransitGatewayPeeringAttachmentRequest request) {request = beforeClientExecution(request);return executeAcceptTransitGatewayPeeringAttachment(request);}", "after": "public virtual AcceptTransitGatewayPeeringAttachmentResponse AcceptTransitGatewayPeeringAttachment(AcceptTransitGatewayPeeringAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptTransitGatewayPeeringAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptTransitGatewayPeeringAttachmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4175, "before": "public String toString() {final int n = length();final StringBuilder b = new StringBuilder(n);for (int i = 0; i < n; i++)b.append(charAt(i));return b.toString();}", "after": "public override string ToString(){int n = Length;StringBuilder b = new StringBuilder(n);for (int i = 0; i < n; i++){b.Append(CharAt (i));}return b.ToString();}" }, { "index": 4176, "before": "public String toString(String field) {StringBuilder buffer = new StringBuilder();buffer.append(\"(\");for (int i = 0 ; i < disjuncts.length; i++) {Query subquery = disjuncts[i];if (subquery instanceof BooleanQuery) { buffer.append(\"(\");buffer.append(subquery.toString(field));buffer.append(\")\");}else buffer.append(subquery.toString(field));if (i != disjuncts.length-1) buffer.append(\" | \");}buffer.append(\")\");if (tieBreakerMultiplier != 0.0f) {buffer.append(\"~\");buffer.append(tieBreakerMultiplier);}return buffer.toString();}", "after": "public override string ToString(string field){StringBuilder buffer = new StringBuilder();buffer.Append(\"(\");int numDisjunctions = disjuncts.Count;for (int i = 0; i < numDisjunctions; i++){Query subquery = disjuncts[i];if (subquery is BooleanQuery) {buffer.Append(\"(\");buffer.Append(subquery.ToString(field));buffer.Append(\")\");}else{buffer.Append(subquery.ToString(field));}if (i != numDisjunctions - 1){buffer.Append(\" | \");}}buffer.Append(\")\");if (tieBreakerMultiplier != 0.0f){buffer.Append(\"~\");buffer.Append(tieBreakerMultiplier);}if (Boost != 1.0){buffer.Append(\"^\");buffer.Append(Boost);}return buffer.ToString();}" }, { "index": 4177, "before": "@Override public boolean isEmpty() {return c.isEmpty();}", "after": "public virtual bool isEmpty(){return c.isEmpty();}" }, { "index": 4178, "before": "public String getContentDisposition() {return contentDisposition;}", "after": "public string ServiceEndpoint { get; internal set; }" }, { "index": 4179, "before": "public DescribeHsmClientCertificatesResult describeHsmClientCertificates() {return describeHsmClientCertificates(new DescribeHsmClientCertificatesRequest());}", "after": "public virtual DescribeHsmClientCertificatesResponse DescribeHsmClientCertificates(){return DescribeHsmClientCertificates(new DescribeHsmClientCertificatesRequest());}" }, { "index": 4180, "before": "public static int[] grow(int[] array, int minSize) {assert minSize >= 0: \"size must be positive (got \" + minSize + \"): likely integer overflow?\";if (array.length < minSize) {return growExact(array, oversize(minSize, Integer.BYTES));} elsereturn array;}", "after": "public static short[] Grow(short[] array, int minSize){Debug.Assert(minSize >= 0, \"size must be positive (got \" + minSize + \"): likely integer overflow?\");if (array.Length < minSize){short[] newArray = new short[Oversize(minSize, RamUsageEstimator.NUM_BYTES_INT16)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}" }, { "index": 4181, "before": "public String highlightTerm(String originalText, TokenGroup tokenGroup) {if (tokenGroup.getTotalScore() <= 0) {return originalText;}StringBuilder returnBuffer = new StringBuilder(preTag.length() + originalText.length() + postTag.length());returnBuffer.append(preTag);returnBuffer.append(originalText);returnBuffer.append(postTag);return returnBuffer.toString();}", "after": "public virtual string HighlightTerm(string originalText, TokenGroup tokenGroup){if (tokenGroup.TotalScore <= 0){return originalText;}StringBuilder returnBuffer = new StringBuilder(preTag.Length + originalText.Length + postTag.Length);returnBuffer.Append(preTag);returnBuffer.Append(originalText);returnBuffer.Append(postTag);return returnBuffer.ToString();}" }, { "index": 4182, "before": "public LimitTokenCountFilter(TokenStream in, int maxTokenCount, boolean consumeAllTokens) {super(in);if (maxTokenCount < 1) {throw new IllegalArgumentException(\"maxTokenCount must be greater than zero\");}this.maxTokenCount = maxTokenCount;this.consumeAllTokens = consumeAllTokens;}", "after": "public LimitTokenCountFilter(TokenStream @in, int maxTokenCount, bool consumeAllTokens): base(@in){if (maxTokenCount < 1){throw new System.ArgumentOutOfRangeException(\"maxTokenCount must be greater than zero\");}this.maxTokenCount = maxTokenCount;this.consumeAllTokens = consumeAllTokens;}" }, { "index": 4183, "before": "public void encode(int[] values, int valuesOffset, byte[] blocks,int blocksOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block = encode(values, valuesOffset);valuesOffset += valueCount;blocksOffset = writeLong(block, blocks, blocksOffset);}}", "after": "public override void Encode(int[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = Encode(values, valuesOffset);valuesOffset += valueCount;blocksOffset = WriteInt64(block, blocks, blocksOffset);}}" }, { "index": 4184, "before": "public TokenFilter create(TokenStream input) {return new ClassicFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new ClassicFilter(input);}" }, { "index": 4185, "before": "public boolean isAllowThin() {return allowThin;}", "after": "public virtual bool IsAllowThin(){return allowThin;}" }, { "index": 4186, "before": "public boolean contains(Object o) {if (!(o instanceof Entry))return false;Entry e = (Entry) o;return containsMapping(e.getKey(), e.getValue());}", "after": "public override bool contains(object o){if (!(o is java.util.MapClass.Entry)){return false;}java.util.MapClass.Entry e = (java.util.MapClass.Entry)o;return this._enclosing.containsMapping(e.getKey(), e.getValue());}" }, { "index": 4187, "before": "public void add(long v) throws IOException {assert PackedInts.unsignedBitsRequired(v) <= bitsPerValue;assert !finished;if (valueCount != -1 && written >= valueCount) {throw new EOFException(\"Writing past end of stream\");}nextValues[off++] = v;if (off == nextValues.length) {flush();}++written;}", "after": "public override void Add(long v){Debug.Assert(m_bitsPerValue == 64 || (v >= 0 && v <= PackedInt32s.MaxValue(m_bitsPerValue)), m_bitsPerValue.ToString());Debug.Assert(!finished);if (m_valueCount != -1 && written >= m_valueCount){throw new System.IO.EndOfStreamException(\"Writing past end of stream\");}nextValues[off++] = v;if (off == nextValues.Length){Flush();}++written;}" }, { "index": 4188, "before": "public GetOnlineServiceResultRequest() {super(\"industry-brain\", \"2018-07-12\", \"GetOnlineServiceResult\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public GetOnlineServiceResultRequest(): base(\"industry-brain\", \"2018-07-12\", \"GetOnlineServiceResult\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 4189, "before": "public void setBigFileThreshold(int bigFileThreshold) {this.bigFileThreshold = bigFileThreshold;}", "after": "public virtual void SetBigFileThreshold(int bigFileThreshold){this.bigFileThreshold = bigFileThreshold;}" }, { "index": 4190, "before": "public boolean isEmpty() {return size == 0;}", "after": "public override bool isEmpty(){return this._enclosing._size == 0;}" }, { "index": 4191, "before": "public int compareTo(ScoreTerm other) {if (term.bytesEquals(other.term))return 0; if (this.boost == other.boost)return other.term.compareTo(this.term);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": 4192, "before": "public int codePointCount(int start, int end) {if (start < 0 || end > count || start > end) {throw startEndAndLength(start, end);}return Character.codePointCount(value, start, end - start);}", "after": "public virtual int codePointCount(int start, int end){if (start < 0 || end > count || start > end){throw startEndAndLength(start, end);}return Sharpen.CharHelper.CodePointCount(value, start, end - start);}" }, { "index": 4193, "before": "public String[] getCommitNames() {return commitNames;}", "after": "public virtual string[] GetCommitNames(){return commitNames;}" }, { "index": 4194, "before": "public boolean isEmpty() {if (sizeIsValid)return 0 == size;return !iterator().hasNext();}", "after": "public override bool IsEmpty(){return EntrySet().IsEmpty();}" }, { "index": 4195, "before": "public boolean isBorder(){return border.isSet(field_1_options);}", "after": "public bool IsBorder(){return border.IsSet(field_1_options);}" }, { "index": 4196, "before": "public DeleteLaunchTemplateVersionsResult deleteLaunchTemplateVersions(DeleteLaunchTemplateVersionsRequest request) {request = beforeClientExecution(request);return executeDeleteLaunchTemplateVersions(request);}", "after": "public virtual DeleteLaunchTemplateVersionsResponse DeleteLaunchTemplateVersions(DeleteLaunchTemplateVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLaunchTemplateVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLaunchTemplateVersionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4197, "before": "public DescribeDeviceResult describeDevice(DescribeDeviceRequest request) {request = beforeClientExecution(request);return executeDescribeDevice(request);}", "after": "public virtual DescribeDeviceResponse DescribeDevice(DescribeDeviceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDeviceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDeviceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4198, "before": "public static Class lookupClass(String name) {return loader.lookupClass(name);}", "after": "public static Type LookupClass(string name){return loader.LookupClass(name);}" }, { "index": 4199, "before": "public CreateParameterGroupResult createParameterGroup(CreateParameterGroupRequest request) {request = beforeClientExecution(request);return executeCreateParameterGroup(request);}", "after": "public virtual CreateParameterGroupResponse CreateParameterGroup(CreateParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4200, "before": "public FieldsQuery(SrndQuery q, String fieldName, char fieldOp) {this.q = q;fieldNames = new ArrayList<>();fieldNames.add(fieldName);this.fieldOp = fieldOp;}", "after": "public FieldsQuery(SrndQuery q, string fieldName, char fieldOp){this.q = q;var fieldNameList = new List();fieldNameList.Add(fieldName);this.fieldNames = fieldNameList;this.fieldOp = fieldOp;}" }, { "index": 4201, "before": "public DescribeReservedCacheNodesOfferingsResult describeReservedCacheNodesOfferings(DescribeReservedCacheNodesOfferingsRequest request) {request = beforeClientExecution(request);return executeDescribeReservedCacheNodesOfferings(request);}", "after": "public virtual DescribeReservedCacheNodesOfferingsResponse DescribeReservedCacheNodesOfferings(DescribeReservedCacheNodesOfferingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedCacheNodesOfferingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedCacheNodesOfferingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4202, "before": "public String toString() {final StringBuilder s = new StringBuilder();s.append(Constants.typeString(getType()));s.append(' ');s.append(name());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(' ');AppendCoreFlags(s);return s.ToString();}" }, { "index": 4203, "before": "public UpdateTableReplicaAutoScalingResult updateTableReplicaAutoScaling(UpdateTableReplicaAutoScalingRequest request) {request = beforeClientExecution(request);return executeUpdateTableReplicaAutoScaling(request);}", "after": "public virtual UpdateTableReplicaAutoScalingResponse UpdateTableReplicaAutoScaling(UpdateTableReplicaAutoScalingRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTableReplicaAutoScalingRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTableReplicaAutoScalingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4204, "before": "public ValidateConfigurationResult validateConfiguration(ValidateConfigurationRequest request) {request = beforeClientExecution(request);return executeValidateConfiguration(request);}", "after": "public virtual ValidateConfigurationResponse ValidateConfiguration(ValidateConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ValidateConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = ValidateConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4205, "before": "public ModifyReservedInstancesResult modifyReservedInstances(ModifyReservedInstancesRequest request) {request = beforeClientExecution(request);return executeModifyReservedInstances(request);}", "after": "public virtual ModifyReservedInstancesResponse ModifyReservedInstances(ModifyReservedInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyReservedInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyReservedInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4206, "before": "public void ReInit(CharStream stream, int lexState){ReInit(stream);SwitchTo(lexState);}", "after": "public virtual void ReInit(ICharStream stream, int lexState){ReInit(stream);SwitchTo(lexState);}" }, { "index": 4207, "before": "public DeleteIdentityResult deleteIdentity(DeleteIdentityRequest request) {request = beforeClientExecution(request);return executeDeleteIdentity(request);}", "after": "public virtual DeleteIdentityResponse DeleteIdentity(DeleteIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIdentityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4208, "before": "public PackConfig(Config cfg) {fromConfig(cfg);}", "after": "public PackConfig(Config cfg){FromConfig(cfg);}" }, { "index": 4209, "before": "public StringBuilder append(float f) {RealToString.getInstance().appendFloat(this, f);return this;}", "after": "public java.lang.StringBuilder append(char c){append0(c);return this;}" }, { "index": 4210, "before": "public DeleteBrokerResult deleteBroker(DeleteBrokerRequest request) {request = beforeClientExecution(request);return executeDeleteBroker(request);}", "after": "public virtual DeleteBrokerResponse DeleteBroker(DeleteBrokerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteBrokerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteBrokerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4211, "before": "public static String stripTags(StringBuilder buf, int start) {return stripTags(buf.substring(start),0);}", "after": "public static string StripTags(StringBuilder buf, int start){return StripTags(buf.ToString(start, buf.Length - start), 0);}" }, { "index": 4212, "before": "public Explanation idfExplain(CollectionStatistics collectionStats, TermStatistics termStats[]) {double idf = 0d; List subs = new ArrayList<>();for (final TermStatistics stat : termStats ) {Explanation idfExplain = idfExplain(collectionStats, stat);subs.add(idfExplain);idf += idfExplain.getValue().floatValue();}return Explanation.match((float) idf, \"idf(), sum of:\", subs);}", "after": "public virtual Explanation IdfExplain(CollectionStatistics collectionStats, TermStatistics termStats){long df = termStats.DocFreq;long max = collectionStats.MaxDoc;float idf = Idf(df, max);return new Explanation(idf, \"idf(docFreq=\" + df + \", maxDocs=\" + max + \")\");}" }, { "index": 4213, "before": "public CalcCountRecord clone() {return copy();}", "after": "public override Object Clone(){CalcCountRecord rec = new CalcCountRecord();rec.field_1_iterations = field_1_iterations;return rec;}" }, { "index": 4214, "before": "public boolean matches(ParseTree tree, String pattern, int patternRuleIndex) {ParseTreePattern p = compile(pattern, patternRuleIndex);return matches(tree, p);}", "after": "public virtual bool Matches(IParseTree tree, string pattern, int patternRuleIndex){ParseTreePattern p = Compile(pattern, patternRuleIndex);return Matches(tree, p);}" }, { "index": 4215, "before": "public int addConditionalFormatting(CellRangeAddress[] regions,HSSFConditionalFormattingRule rule1) {return addConditionalFormatting(regions, rule1 == null ?null : new HSSFConditionalFormattingRule[] { rule1 });}", "after": "public int AddConditionalFormatting(CellRangeAddress[] regions,HSSFConditionalFormattingRule rule1){return AddConditionalFormatting(regions,rule1 == null ? null : new HSSFConditionalFormattingRule[]{rule1});}" }, { "index": 4216, "before": "public long hash1(char carray[]) {final long p = 1099511628211L;long hash = 0xcbf29ce484222325L;for (int i = 0; i < carray.length; i++) {char d = carray[i];hash = (hash ^ (d & 0x00FF)) * p;hash = (hash ^ (d >> 8)) * p;}return hash;}", "after": "public virtual long Hash1(char[] carray){long p = 1099511628211L;long hash = unchecked((long)0xcbf29ce484222325L);for (int i = 0; i < carray.Length; i++){char d = carray[i];hash = (hash ^ (d & 0x00FF)) * p;hash = (hash ^ (d >> 8)) * p;}return hash;}" }, { "index": 4217, "before": "public PutAnomalyDetectorResult putAnomalyDetector(PutAnomalyDetectorRequest request) {request = beforeClientExecution(request);return executePutAnomalyDetector(request);}", "after": "public virtual PutAnomalyDetectorResponse PutAnomalyDetector(PutAnomalyDetectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAnomalyDetectorRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAnomalyDetectorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4218, "before": "public AssociateTransitGatewayRouteTableResult associateTransitGatewayRouteTable(AssociateTransitGatewayRouteTableRequest request) {request = beforeClientExecution(request);return executeAssociateTransitGatewayRouteTable(request);}", "after": "public virtual AssociateTransitGatewayRouteTableResponse AssociateTransitGatewayRouteTable(AssociateTransitGatewayRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateTransitGatewayRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateTransitGatewayRouteTableResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4219, "before": "public List getIPv4Association(String publicIp) {return EC2MetadataUtils.getItems(EC2_METADATA_ROOT + path+ \"ipv4-associations/\" + publicIp);}", "after": "public IEnumerable GetIpV4Association(string publicIp){return EC2Metadata.GetItems(string.Format(CultureInfo.InvariantCulture, \"{0}ipv4-associations/{1}\", _path, publicIp));}" }, { "index": 4220, "before": "public void reset() {count = 0;assert forwardCount == 0: \"pos=\" + pos + \" forwardCount=\" + forwardCount;}", "after": "public void Reset(){arriving = null;leaving = null;}" }, { "index": 4221, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_recalc);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_recalc);}" }, { "index": 4222, "before": "public final void addConsumingCell(FormulaCellCacheEntry cellLoc) {_consumingCells.add(cellLoc);}", "after": "public void AddConsumingCell(FormulaCellCacheEntry cellLoc){_consumingCells.Add(cellLoc);}" }, { "index": 4223, "before": "public DeleteUserRequest(String userName) {setUserName(userName);}", "after": "public DeleteUserRequest(string userName){_userName = userName;}" }, { "index": 4224, "before": "public SingleValueVector(ValueEval value) {_value = value;}", "after": "public SingleValueVector(ValueEval value){_value = value;}" }, { "index": 4225, "before": "public DeleteMethodResult deleteMethod(DeleteMethodRequest request) {request = beforeClientExecution(request);return executeDeleteMethod(request);}", "after": "public virtual DeleteMethodResponse DeleteMethod(DeleteMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMethodResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4226, "before": "public static CompareResult valueOf(int simpleCompareResult) {if(simpleCompareResult < 0) {return LESS_THAN;}if(simpleCompareResult > 0) {return GREATER_THAN;}return EQUAL;}", "after": "public static CompareResult ValueOf(int simpleCompareResult){if (simpleCompareResult < 0){return LessThan;}if (simpleCompareResult > 0){return GreaterThan;}return Equal;}" }, { "index": 4227, "before": "public CreatePresetResult createPreset(CreatePresetRequest request) {request = beforeClientExecution(request);return executeCreatePreset(request);}", "after": "public virtual CreatePresetResponse CreatePreset(CreatePresetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePresetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePresetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4228, "before": "public S3Origin(String domainName) {setDomainName(domainName);}", "after": "public S3Origin(string domainName){_domainName = domainName;}" }, { "index": 4229, "before": "public HTMLStripCharFilter create(Reader input) {HTMLStripCharFilter charFilter;if (null == escapedTags) {charFilter = new HTMLStripCharFilter(input);} else {charFilter = new HTMLStripCharFilter(input, escapedTags);}return charFilter;}", "after": "public override TextReader Create(TextReader input){HTMLStripCharFilter charFilter;if (null == escapedTags){charFilter = new HTMLStripCharFilter(input);}else{charFilter = new HTMLStripCharFilter(input, escapedTags);}return charFilter;}" }, { "index": 4230, "before": "public void setCurrent(char text[], int length) {current = text;cursor = 0;limit = length;limit_backward = 0;bra = cursor;ket = limit;}", "after": "public virtual void SetCurrent(char[] text, int length){m_current = text;m_cursor = 0;m_limit = length;m_limit_backward = 0;m_bra = m_cursor;m_ket = m_limit;}" }, { "index": 4231, "before": "public DisableTransitGatewayRouteTablePropagationResult disableTransitGatewayRouteTablePropagation(DisableTransitGatewayRouteTablePropagationRequest request) {request = beforeClientExecution(request);return executeDisableTransitGatewayRouteTablePropagation(request);}", "after": "public virtual DisableTransitGatewayRouteTablePropagationResponse DisableTransitGatewayRouteTablePropagation(DisableTransitGatewayRouteTablePropagationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableTransitGatewayRouteTablePropagationRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableTransitGatewayRouteTablePropagationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4232, "before": "public UpdateTagsForDomainResult updateTagsForDomain(UpdateTagsForDomainRequest request) {request = beforeClientExecution(request);return executeUpdateTagsForDomain(request);}", "after": "public virtual UpdateTagsForDomainResponse UpdateTagsForDomain(UpdateTagsForDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTagsForDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTagsForDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4233, "before": "public ObjectId getPeeledObjectId() {return peeledObjectId;}", "after": "public override ObjectId GetPeeledObjectId(){return peeledObjectId;}" }, { "index": 4234, "before": "public LexerActionExecutor(LexerAction[] lexerActions) {this.lexerActions = lexerActions;int hash = MurmurHash.initialize();for (LexerAction lexerAction : lexerActions) {hash = MurmurHash.update(hash, lexerAction);}this.hashCode = MurmurHash.finish(hash, lexerActions.length);}", "after": "public LexerActionExecutor(ILexerAction[] lexerActions){this.lexerActions = lexerActions;int hash = MurmurHash.Initialize();foreach (ILexerAction lexerAction in lexerActions){hash = MurmurHash.Update(hash, lexerAction);}this.hashCode = MurmurHash.Finish(hash, lexerActions.Length);}" }, { "index": 4235, "before": "public SetAlarmStateResult setAlarmState(SetAlarmStateRequest request) {request = beforeClientExecution(request);return executeSetAlarmState(request);}", "after": "public virtual SetAlarmStateResponse SetAlarmState(SetAlarmStateRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetAlarmStateRequestMarshaller.Instance;options.ResponseUnmarshaller = SetAlarmStateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4236, "before": "public final File getFile() {return configFile;}", "after": "public FilePath GetFile(){return configFile;}" }, { "index": 4237, "before": "public DescribeUsersResult describeUsers(DescribeUsersRequest request) {request = beforeClientExecution(request);return executeDescribeUsers(request);}", "after": "public virtual DescribeUsersResponse DescribeUsers(DescribeUsersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUsersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUsersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4238, "before": "public PagedMutable(long size, int pageSize, int bitsPerValue, float acceptableOverheadRatio) {this(size, pageSize, PackedInts.fastestFormatAndBits(pageSize, bitsPerValue, acceptableOverheadRatio));fillPages();}", "after": "public PagedMutable(long size, int pageSize, int bitsPerValue, float acceptableOverheadRatio): this(size, pageSize, PackedInt32s.FastestFormatAndBits(pageSize, bitsPerValue, acceptableOverheadRatio)){FillPages();}" }, { "index": 4239, "before": "public CFHeaderRecord() {createEmpty();}", "after": "public CFHeaderRecord(){field_4_cell_ranges = new CellRangeAddressList();}" }, { "index": 4240, "before": "public GetDataSourceResult getDataSource(GetDataSourceRequest request) {request = beforeClientExecution(request);return executeGetDataSource(request);}", "after": "public virtual GetDataSourceResponse GetDataSource(GetDataSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDataSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDataSourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4241, "before": "public void serialize(LittleEndianOutput out) {out.writeDouble(field_1_margin);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteDouble(field_1_margin);}" }, { "index": 4242, "before": "public DeleteProfilingGroupResult deleteProfilingGroup(DeleteProfilingGroupRequest request) {request = beforeClientExecution(request);return executeDeleteProfilingGroup(request);}", "after": "public virtual DeleteProfilingGroupResponse DeleteProfilingGroup(DeleteProfilingGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteProfilingGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteProfilingGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4243, "before": "public IntBuffer compact() {System.arraycopy(backingArray, position + offset, backingArray, offset, remaining());position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}", "after": "public override java.nio.IntBuffer compact(){System.Array.Copy(backingArray, _position + offset, backingArray, offset, remaining());_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}" }, { "index": 4244, "before": "public void setup(int id, int progress, boolean fromUser) {mId = id;mProgress = progress;mFromUser = fromUser;}", "after": "public virtual void setup(int id, int progress, bool fromUser){this.mId = id;this.mProgress = progress;this.mFromUser = fromUser;}" }, { "index": 4245, "before": "public static FuncVarPtg create(LittleEndianInput in) {return create(in.readByte(), in.readUShort());}", "after": "public static FuncVarPtg Create(ILittleEndianInput in1){return Create(in1.ReadByte(), in1.ReadShort());}" }, { "index": 4246, "before": "public CreateAttendeeResult createAttendee(CreateAttendeeRequest request) {request = beforeClientExecution(request);return executeCreateAttendee(request);}", "after": "public virtual CreateAttendeeResponse CreateAttendee(CreateAttendeeRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAttendeeRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAttendeeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4247, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(\"[EXTERNALNAME]\\n\");sb.append(\" .options = \").append(field_1_option_flag).append(\"\\n\");sb.append(\" .ix = \").append(field_2_ixals).append(\"\\n\");sb.append(\" .name = \").append(field_4_name).append(\"\\n\");if(field_5_name_definition != null) {Ptg[] ptgs = field_5_name_definition.getTokens();for (Ptg ptg : ptgs) {sb.append(\" .namedef = \").append(ptg).append(ptg.getRVAType()).append(\"\\n\");}}sb.append(\"[/EXTERNALNAME]\\n\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(\"[EXTERNALNAME]\\n\");sb.Append(\" .options = \").Append(field_1_option_flag).Append(\"\\n\");sb.Append(\" .ix = \").Append(field_2_ixals).Append(\"\\n\");sb.Append(\" .name = \").Append(field_4_name).Append(\"\\n\");if (field_5_name_definition != null){Ptg[] ptgs = field_5_name_definition.Tokens;for (int i = 0; i < ptgs.Length; i++){Ptg ptg = ptgs[i];sb.Append(ptg.ToString()).Append(ptg.RVAType).Append(\"\\n\");}}sb.Append(\"[/EXTERNALNAME]\\n\");return sb.ToString();}" }, { "index": 4248, "before": "public DescribeDBClusterParameterGroupsResult describeDBClusterParameterGroups(DescribeDBClusterParameterGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeDBClusterParameterGroups(request);}", "after": "public virtual DescribeDBClusterParameterGroupsResponse DescribeDBClusterParameterGroups(DescribeDBClusterParameterGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBClusterParameterGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBClusterParameterGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4249, "before": "public PropertyTable(HeaderBlock headerBlock){_header_block = headerBlock;_bigBigBlockSize = headerBlock.getBigBlockSize();addProperty(new RootProperty());}", "after": "public PropertyTable(HeaderBlock headerBlock) : base(headerBlock){_bigBigBlockSize = headerBlock.BigBlockSize;_blocks = null;}" }, { "index": 4250, "before": "public int getIndexOfName(String name) {for (int i = 0; i < _externalNameRecords.length; i++) {if (_externalNameRecords[i].getText().equalsIgnoreCase(name)) {return i;}}return -1;}", "after": "public int GetIndexOfName(String name){for (int i = 0; i < _externalNameRecords.Length; i++){if (_externalNameRecords[i].Text.Equals(name, StringComparison.OrdinalIgnoreCase)){return i;}}return -1;}" }, { "index": 4251, "before": "public AbortVaultLockResult abortVaultLock(AbortVaultLockRequest request) {request = beforeClientExecution(request);return executeAbortVaultLock(request);}", "after": "public virtual AbortVaultLockResponse AbortVaultLock(AbortVaultLockRequest request){var options = new InvokeOptions();options.RequestMarshaller = AbortVaultLockRequestMarshaller.Instance;options.ResponseUnmarshaller = AbortVaultLockResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4252, "before": "public CreateBatchPredictionResult createBatchPrediction(CreateBatchPredictionRequest request) {request = beforeClientExecution(request);return executeCreateBatchPrediction(request);}", "after": "public virtual CreateBatchPredictionResponse CreateBatchPrediction(CreateBatchPredictionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateBatchPredictionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateBatchPredictionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4253, "before": "public ListHostedZonesByNameResult listHostedZonesByName(ListHostedZonesByNameRequest request) {request = beforeClientExecution(request);return executeListHostedZonesByName(request);}", "after": "public virtual ListHostedZonesByNameResponse ListHostedZonesByName(ListHostedZonesByNameRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListHostedZonesByNameRequestMarshaller.Instance;options.ResponseUnmarshaller = ListHostedZonesByNameResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4254, "before": "public final PersonIdent getAuthorIdent() {final byte[] raw = buffer;final int nameB = RawParseUtils.author(raw, 0);if (nameB < 0)return null;return RawParseUtils.parsePersonIdent(raw, nameB);}", "after": "public PersonIdent GetAuthorIdent(){byte[] raw = buffer;int nameB = RawParseUtils.Author(raw, 0);if (nameB < 0){return null;}return RawParseUtils.ParsePersonIdent(raw, nameB);}" }, { "index": 4255, "before": "public RecordLifecycleActionHeartbeatResult recordLifecycleActionHeartbeat(RecordLifecycleActionHeartbeatRequest request) {request = beforeClientExecution(request);return executeRecordLifecycleActionHeartbeat(request);}", "after": "public virtual RecordLifecycleActionHeartbeatResponse RecordLifecycleActionHeartbeat(RecordLifecycleActionHeartbeatRequest request){var options = new InvokeOptions();options.RequestMarshaller = RecordLifecycleActionHeartbeatRequestMarshaller.Instance;options.ResponseUnmarshaller = RecordLifecycleActionHeartbeatResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4256, "before": "public void flush() {if (logger!=null) {logger.flush();}}", "after": "public virtual void Flush(){if (logger != null){logger.Flush();}}" }, { "index": 4257, "before": "public GetLoadBalancerTlsCertificatesResult getLoadBalancerTlsCertificates(GetLoadBalancerTlsCertificatesRequest request) {request = beforeClientExecution(request);return executeGetLoadBalancerTlsCertificates(request);}", "after": "public virtual GetLoadBalancerTlsCertificatesResponse GetLoadBalancerTlsCertificates(GetLoadBalancerTlsCertificatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetLoadBalancerTlsCertificatesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetLoadBalancerTlsCertificatesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4258, "before": "public ExtSSTRecord createExtSSTRecord(int sstOffset) {if (bucketAbsoluteOffsets == null || bucketRelativeOffsets == null) {throw new IllegalStateException(\"SST record has not yet been serialized.\");}ExtSSTRecord extSST = new ExtSSTRecord();extSST.setNumStringsPerBucket((short)8);int[] absoluteOffsets = bucketAbsoluteOffsets.clone();int[] relativeOffsets = bucketRelativeOffsets.clone();for ( int i = 0; i < absoluteOffsets.length; i++ ) {absoluteOffsets[i] += sstOffset;}extSST.setBucketOffsets(absoluteOffsets, relativeOffsets);return extSST;}", "after": "public ExtSSTRecord CreateExtSSTRecord(int sstOffset){if (bucketAbsoluteOffsets == null || bucketAbsoluteOffsets == null)throw new InvalidOperationException(\"SST record has not yet been Serialized.\");ExtSSTRecord extSST = new ExtSSTRecord();extSST.NumStringsPerBucket=((short)8);int[] absoluteOffsets = (int[])bucketAbsoluteOffsets.Clone();int[] relativeOffsets = (int[])bucketRelativeOffsets.Clone();for (int i = 0; i < absoluteOffsets.Length; i++)absoluteOffsets[i] += sstOffset;extSST.SetBucketOffsets(absoluteOffsets, relativeOffsets);return extSST;}" }, { "index": 4259, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);}" }, { "index": 4260, "before": "public ListMultipartUploadsResult listMultipartUploads(ListMultipartUploadsRequest request) {request = beforeClientExecution(request);return executeListMultipartUploads(request);}", "after": "public virtual ListMultipartUploadsResponse ListMultipartUploads(ListMultipartUploadsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListMultipartUploadsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListMultipartUploadsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4261, "before": "public BytesRef add(BytesRef prefix, BytesRef output) {assert prefix != null;assert output != null;if (prefix == NO_OUTPUT) {return output;} else if (output == NO_OUTPUT) {return prefix;} else {assert prefix.length > 0;assert output.length > 0;BytesRef result = new BytesRef(prefix.length + output.length);System.arraycopy(prefix.bytes, prefix.offset, result.bytes, 0, prefix.length);System.arraycopy(output.bytes, output.offset, result.bytes, prefix.length, output.length);result.length = prefix.length + output.length;return result;}}", "after": "public override BytesRef Add(BytesRef prefix, BytesRef output){Debug.Assert(prefix != null);Debug.Assert(output != null);if (prefix == NO_OUTPUT){return output;}else if (output == NO_OUTPUT){return prefix;}else{Debug.Assert(prefix.Length > 0);Debug.Assert(output.Length > 0);BytesRef result = new BytesRef(prefix.Length + output.Length);Array.Copy(prefix.Bytes, prefix.Offset, result.Bytes, 0, prefix.Length);Array.Copy(output.Bytes, output.Offset, result.Bytes, prefix.Length, output.Length);result.Length = prefix.Length + output.Length;return result;}}" }, { "index": 4262, "before": "public void setParams(String params) {super.setParams(params);doWait = Boolean.valueOf(params).booleanValue();}", "after": "public override void SetParams(string @params){base.SetParams(@params);doWait = bool.Parse(@params);}" }, { "index": 4263, "before": "public RunBackgroundTask(PerfTask task, boolean letChildReport) {this.task = task;this.letChildReport = letChildReport;}", "after": "public RunBackgroundTask(PerfTask task, bool letChildReport){this.task = task;this.letChildReport = letChildReport;}" }, { "index": 4264, "before": "public GridsetRecord clone() {return copy();}", "after": "public override Object Clone(){GridsetRecord rec = new GridsetRecord();rec.field_1_gridset_flag = field_1_gridset_flag;return rec;}" }, { "index": 4265, "before": "public BoundSheetRecord(String sheetname) {field_2_option_flags = 0;setSheetname(sheetname);}", "after": "public BoundSheetRecord(String sheetname){field_2_option_flags = 0;this.Sheetname=sheetname;}" }, { "index": 4266, "before": "public MFADevice(String userName, String serialNumber, java.util.Date enableDate) {setUserName(userName);setSerialNumber(serialNumber);setEnableDate(enableDate);}", "after": "public MFADevice(string userName, string serialNumber, DateTime enableDate){_userName = userName;_serialNumber = serialNumber;_enableDate = enableDate;}" }, { "index": 4267, "before": "public DescribeStreamSummaryResult describeStreamSummary(DescribeStreamSummaryRequest request) {request = beforeClientExecution(request);return executeDescribeStreamSummary(request);}", "after": "public virtual DescribeStreamSummaryResponse DescribeStreamSummary(DescribeStreamSummaryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStreamSummaryRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStreamSummaryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4268, "before": "public ListClusterJobsResult listClusterJobs(ListClusterJobsRequest request) {request = beforeClientExecution(request);return executeListClusterJobs(request);}", "after": "public virtual ListClusterJobsResponse ListClusterJobs(ListClusterJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListClusterJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListClusterJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4269, "before": "public int compareTo(String version) {long gen = Long.parseLong(version, RADIX);long commitGen = commit.getGeneration();return commitGen < gen ? -1 : (commitGen > gen ? 1 : 0);}", "after": "public virtual int CompareTo(string version){long gen = long.Parse(version, NumberStyles.HexNumber);long commitGen = commit.Generation;return commitGen < gen ? -1 : (commitGen > gen ? 1 : 0);}" }, { "index": 4270, "before": "public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChildren() == null || getChildren().size() == 0)return \"\";StringBuilder sb = new StringBuilder();String filler = \"\";for (QueryNode child : getChildren()) {sb.append(filler).append(child.toQueryString(escapeSyntaxParser));filler = \",\";}return \"[MTP[\" + sb.toString() + \"]]\";}", "after": "public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){var children = GetChildren();if (children == null || children.Count == 0)return \"\";StringBuilder sb = new StringBuilder();string filler = \"\";foreach (IQueryNode child in children){sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));filler = \",\";}return \"[MTP[\" + sb.ToString() + \"]]\";}" }, { "index": 4271, "before": "public final float readFloat() throws IOException {return Float.intBitsToFloat(readInt());}", "after": "public virtual float readFloat(){throw new System.NotImplementedException();}" }, { "index": 4272, "before": "public boolean isSubTotal(int rowIndex, int columnIndex){boolean subtotal = false;EvaluationCell cell = getSheet().getCell(rowIndex, columnIndex);if(cell != null && cell.getCellType() == CellType.FORMULA){EvaluationWorkbook wb = _bookEvaluator.getWorkbook();for(Ptg ptg : wb.getFormulaTokens(cell)){if(ptg instanceof FuncVarPtg){FuncVarPtg f = (FuncVarPtg)ptg;if(\"SUBTOTAL\".equals(f.getName())) {subtotal = true;break;}}}}return subtotal;}", "after": "public bool IsSubTotal(int rowIndex, int columnIndex){bool subtotal = false;IEvaluationCell cell = Sheet.GetCell(rowIndex, columnIndex);if (cell != null && cell.CellType == CellType.Formula){IEvaluationWorkbook wb = _bookEvaluator.Workbook;foreach (Ptg ptg in wb.GetFormulaTokens(cell)){if (ptg is FuncVarPtg){FuncVarPtg f = (FuncVarPtg)ptg;if (\"SUBTOTAL\".Equals(f.Name)){subtotal = true;break;}}}}return subtotal;}" }, { "index": 4273, "before": "public CreateMonitoringScheduleResult createMonitoringSchedule(CreateMonitoringScheduleRequest request) {request = beforeClientExecution(request);return executeCreateMonitoringSchedule(request);}", "after": "public virtual CreateMonitoringScheduleResponse CreateMonitoringSchedule(CreateMonitoringScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateMonitoringScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateMonitoringScheduleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4274, "before": "public TokenStream create(TokenStream input) {return new CzechStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new CzechStemFilter(input);}" }, { "index": 4275, "before": "public GetSpeechSynthesisTaskResult getSpeechSynthesisTask(GetSpeechSynthesisTaskRequest request) {request = beforeClientExecution(request);return executeGetSpeechSynthesisTask(request);}", "after": "public virtual GetSpeechSynthesisTaskResponse GetSpeechSynthesisTask(GetSpeechSynthesisTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSpeechSynthesisTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSpeechSynthesisTaskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4276, "before": "public FuzzySet downsize(FieldInfo fieldInfo, FuzzySet initialSet) {float targetMaxSaturation = 0.1f;return initialSet.downsize(targetMaxSaturation);}", "after": "public virtual FuzzySet Downsize(FieldInfo fieldInfo, FuzzySet initialSet){const float targetMaxSaturation = 0.1f;return initialSet.Downsize(targetMaxSaturation);}" }, { "index": 4277, "before": "public MonitorInstancesResult monitorInstances(MonitorInstancesRequest request) {request = beforeClientExecution(request);return executeMonitorInstances(request);}", "after": "public virtual MonitorInstancesResponse MonitorInstances(MonitorInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = MonitorInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = MonitorInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4278, "before": "public ListDocumentClassifiersResult listDocumentClassifiers(ListDocumentClassifiersRequest request) {request = beforeClientExecution(request);return executeListDocumentClassifiers(request);}", "after": "public virtual ListDocumentClassifiersResponse ListDocumentClassifiers(ListDocumentClassifiersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDocumentClassifiersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDocumentClassifiersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4279, "before": "public String toString() {StringBuilder buffer = new StringBuilder();for (int i = 0; i < fields.length; i++) {buffer.append(fields[i].toString());if ((i+1) < fields.length)buffer.append(',');}return buffer.toString();}", "after": "public override string ToString(){StringBuilder buffer = new StringBuilder();for (int i = 0; i < fields.Length; i++){buffer.Append(fields[i].ToString());if ((i + 1) < fields.Length){buffer.Append(',');}}return buffer.ToString();}" }, { "index": 4280, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_axisType);out.writeInt(field_2_reserved1);out.writeInt(field_3_reserved2);out.writeInt(field_4_reserved3);out.writeInt(field_5_reserved4);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_axisType);out1.WriteInt(field_2_reserved1);out1.WriteInt(field_3_reserved2);out1.WriteInt(field_4_reserved3);out1.WriteInt(field_5_reserved4);}" }, { "index": 4281, "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;final long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 12) | (byte1 << 4) | (byte2 >>> 4);final long byte3 = blocks[blocksOffset++] & 0xFF;final long byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 16) | (byte3 << 8) | byte4;}}", "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;int byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 12) | (byte1 << 4) | ((int)((uint)byte2 >> 4));int byte3 = blocks[blocksOffset++] & 0xFF;int byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 16) | (byte3 << 8) | byte4;}}" }, { "index": 4282, "before": "public StashDropCommand setStashRef(int stashRef) {if (stashRef < 0)throw new IllegalArgumentException();stashRefEntry = stashRef;return this;}", "after": "public virtual NGit.Api.StashDropCommand SetStashRef(int stashRef){if (stashRef < 0){throw new ArgumentException();}stashRefEntry = stashRef;return this;}" }, { "index": 4283, "before": "public CreateHITWithHITTypeResult createHITWithHITType(CreateHITWithHITTypeRequest request) {request = beforeClientExecution(request);return executeCreateHITWithHITType(request);}", "after": "public virtual CreateHITWithHITTypeResponse CreateHITWithHITType(CreateHITWithHITTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateHITWithHITTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateHITWithHITTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4284, "before": "public void setPlaceholder(int index, Ptg token) {if (_ptgs[index] != null) {throw new IllegalStateException(\"Invalid placeholder index (\" + index + \")\");}_ptgs[index] = token;}", "after": "public void SetPlaceholder(int index, Ptg token){if (_ptgs[index] != null){throw new InvalidOperationException(\"Invalid placeholder index (\" + index + \")\");}_ptgs[index] = token;}" }, { "index": 4285, "before": "public Area3DPtg(LittleEndianInput in) {field_1_index_extern_sheet = in.readShort();readCoordinates(in);}", "after": "public Area3DPtg(ILittleEndianInput in1){field_1_index_extern_sheet = in1.ReadShort();ReadCoordinates(in1);}" }, { "index": 4286, "before": "public UpdateNotebookInstanceResult updateNotebookInstance(UpdateNotebookInstanceRequest request) {request = beforeClientExecution(request);return executeUpdateNotebookInstance(request);}", "after": "public virtual UpdateNotebookInstanceResponse UpdateNotebookInstance(UpdateNotebookInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateNotebookInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateNotebookInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4287, "before": "public org.apache.poi.hssf.record.Record findFirstRecordBySid(short sid) {for (org.apache.poi.hssf.record.Record record : records.getRecords() ) {if (record.getSid() == sid) {return record;}}return null;}", "after": "public Record FindFirstRecordBySid(short sid){for (IEnumerator iterator = records.GetEnumerator(); iterator.MoveNext(); ){Record record = (Record)iterator.Current;if (record.Sid == sid){return record;}}return null;}" }, { "index": 4288, "before": "public void fromString(byte[] buf, int offset) {fromHexString(buf, offset);}", "after": "public virtual void FromString(byte[] buf, int offset){FromHexString(buf, offset);}" }, { "index": 4289, "before": "public AttachInstancesResult attachInstances(AttachInstancesRequest request) {request = beforeClientExecution(request);return executeAttachInstances(request);}", "after": "public virtual AttachInstancesResponse AttachInstances(AttachInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4290, "before": "public NotifyWorkersResult notifyWorkers(NotifyWorkersRequest request) {request = beforeClientExecution(request);return executeNotifyWorkers(request);}", "after": "public virtual NotifyWorkersResponse NotifyWorkers(NotifyWorkersRequest request){var options = new InvokeOptions();options.RequestMarshaller = NotifyWorkersRequestMarshaller.Instance;options.ResponseUnmarshaller = NotifyWorkersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4291, "before": "public CommitCommand commit() {return new CommitCommand(repo);}", "after": "public virtual CommitCommand Commit(){return new CommitCommand(repo);}" }, { "index": 4292, "before": "public BufferedIndexInput clone() {BufferedIndexInput clone = (BufferedIndexInput)super.clone();clone.buffer = null;clone.bufferLength = 0;clone.bufferPosition = 0;clone.bufferStart = getFilePointer();return clone;}", "after": "public override object Clone(){BufferedIndexInput clone = (BufferedIndexInput)base.Clone();clone.m_buffer = null;clone.bufferLength = 0;clone.bufferPosition = 0;clone.bufferStart = GetFilePointer();return clone;}" }, { "index": 4293, "before": "public boolean hasEntry( String name ){return name != null && _byname.containsKey( name );}", "after": "public bool HasEntry(String name){return name != null && _byname.ContainsKey(name);}" }, { "index": 4294, "before": "public MorfologikFilterFactory(Map args) {super(args);final String DICTIONARY_RESOURCE_ATTRIBUTE = \"dictionary-resource\";String dictionaryResource = get(args, DICTIONARY_RESOURCE_ATTRIBUTE);if (dictionaryResource != null && !dictionaryResource.isEmpty()) {throw new IllegalArgumentException(\"The \" + DICTIONARY_RESOURCE_ATTRIBUTE + \" attribute is no \"+ \"longer supported. Use the '\" + DICTIONARY_ATTRIBUTE + \"' attribute instead (see LUCENE-6833).\");}resourceName = get(args, DICTIONARY_ATTRIBUTE);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public MorfologikFilterFactory(IDictionary args): base(args){string DICTIONARY_RESOURCE_ATTRIBUTE = \"dictionary-resource\";string dictionaryResource = Get(args, DICTIONARY_RESOURCE_ATTRIBUTE);if (!string.IsNullOrEmpty(dictionaryResource)){throw new ArgumentException(\"The \" + DICTIONARY_RESOURCE_ATTRIBUTE + \" attribute is no \"+ \"longer supported. Use the '\" + DICTIONARY_ATTRIBUTE + \"' attribute instead (see LUCENE-6833).\");}resourceName = Get(args, DICTIONARY_ATTRIBUTE);if (args.Count != 0){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 4295, "before": "public static DVConstraint createNumericConstraint(int validationType, int comparisonOperator,String expr1, String expr2) {switch (validationType) {case ValidationType.ANY:if (expr1 != null || expr2 != null) {throw new IllegalArgumentException(\"expr1 and expr2 must be null for validation type 'any'\");}break;case ValidationType.DECIMAL:case ValidationType.INTEGER:case ValidationType.TEXT_LENGTH:if (expr1 == null) {throw new IllegalArgumentException(\"expr1 must be supplied\");}OperatorType.validateSecondArg(comparisonOperator, expr2);break;default:throw new IllegalArgumentException(\"Validation Type (\"+ validationType + \") not supported with this method\");}String formula1 = getFormulaFromTextExpression(expr1);Double value1 = formula1 == null ? convertNumber(expr1) : null;String formula2 = getFormulaFromTextExpression(expr2);Double value2 = formula2 == null ? convertNumber(expr2) : null;return new DVConstraint(validationType, comparisonOperator, formula1, formula2, value1, value2, null);}", "after": "public static DVConstraint CreateNumericConstraint(int validationType, int comparisonOperator,String expr1, String expr2){switch (validationType){case ValidationType.ANY:if (expr1 != null || expr2 != null){throw new ArgumentException(\"expr1 and expr2 must be null for validation type 'any'\");}break;case ValidationType.DECIMAL:case ValidationType.INTEGER:case ValidationType.TEXT_LENGTH:if (expr1 == null){throw new ArgumentException(\"expr1 must be supplied\");}OperatorType.ValidateSecondArg(comparisonOperator, expr2);break;default:throw new ArgumentException(\"Validation Type (\"+ validationType + \") not supported with this method\");}String formula1 = GetFormulaFromTextExpression(expr1);Double value1 = formula1 == null ? ConvertNumber(expr1) : double.NaN;String formula2 = GetFormulaFromTextExpression(expr2);Double value2 = formula2 == null ? ConvertNumber(expr2) : double.NaN;return new DVConstraint(validationType, comparisonOperator, formula1, formula2, value1, value2, null);}" }, { "index": 4296, "before": "public UpdateUsageResult updateUsage(UpdateUsageRequest request) {request = beforeClientExecution(request);return executeUpdateUsage(request);}", "after": "public virtual UpdateUsageResponse UpdateUsage(UpdateUsageRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateUsageRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateUsageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4297, "before": "public UpdateEvaluationResult updateEvaluation(UpdateEvaluationRequest request) {request = beforeClientExecution(request);return executeUpdateEvaluation(request);}", "after": "public virtual UpdateEvaluationResponse UpdateEvaluation(UpdateEvaluationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateEvaluationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateEvaluationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4298, "before": "public ProtectRecord(boolean isProtected) {this(0);setProtect(isProtected);}", "after": "public ProtectRecord(bool isProtected): this(0){this.Protect = (isProtected);}" }, { "index": 4299, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(recordType);out.writeShort(grbitFrt);associatedRange.serialize(out);}", "after": "public void Serialize(ILittleEndianOutput out1){out1.WriteShort(recordType);out1.WriteShort(grbitFrt);out1.Write(reserved);}" }, { "index": 4300, "before": "public GetDocumentPathResult getDocumentPath(GetDocumentPathRequest request) {request = beforeClientExecution(request);return executeGetDocumentPath(request);}", "after": "public virtual GetDocumentPathResponse GetDocumentPath(GetDocumentPathRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDocumentPathRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDocumentPathResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4301, "before": "public CreateTransitGatewayVpcAttachmentResult createTransitGatewayVpcAttachment(CreateTransitGatewayVpcAttachmentRequest request) {request = beforeClientExecution(request);return executeCreateTransitGatewayVpcAttachment(request);}", "after": "public virtual CreateTransitGatewayVpcAttachmentResponse CreateTransitGatewayVpcAttachment(CreateTransitGatewayVpcAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitGatewayVpcAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitGatewayVpcAttachmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4302, "before": "public boolean isLarge() {return true;}", "after": "public override bool IsLarge(){return true;}" }, { "index": 4303, "before": "public DisassociateSubnetCidrBlockResult disassociateSubnetCidrBlock(DisassociateSubnetCidrBlockRequest request) {request = beforeClientExecution(request);return executeDisassociateSubnetCidrBlock(request);}", "after": "public virtual DisassociateSubnetCidrBlockResponse DisassociateSubnetCidrBlock(DisassociateSubnetCidrBlockRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateSubnetCidrBlockRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateSubnetCidrBlockResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4304, "before": "public static byte[] encode(String str) {final ByteBuffer bb = UTF_8.encode(str);final int len = bb.limit();if (bb.hasArray() && bb.arrayOffset() == 0) {final byte[] arr = bb.array();if (arr.length == len)return arr;}final byte[] arr = new byte[len];bb.get(arr);return arr;}", "after": "public static byte[] Encode(string str){ByteBuffer bb = NGit.Constants.CHARSET.Encode(str);int len = bb.Limit();if (bb.HasArray() && bb.ArrayOffset() == 0){byte[] arr = ((byte[])bb.Array());if (arr.Length == len){return arr;}}byte[] arr_1 = new byte[len];bb.Get(arr_1);return arr_1;}" }, { "index": 4305, "before": "public DescribePlacementGroupsResult describePlacementGroups() {return describePlacementGroups(new DescribePlacementGroupsRequest());}", "after": "public virtual DescribePlacementGroupsResponse DescribePlacementGroups(){return DescribePlacementGroups(new DescribePlacementGroupsRequest());}" }, { "index": 4306, "before": "public UpdateTrialResult updateTrial(UpdateTrialRequest request) {request = beforeClientExecution(request);return executeUpdateTrial(request);}", "after": "public virtual UpdateTrialResponse UpdateTrial(UpdateTrialRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTrialRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTrialResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4307, "before": "public DeleteTransitGatewayPeeringAttachmentResult deleteTransitGatewayPeeringAttachment(DeleteTransitGatewayPeeringAttachmentRequest request) {request = beforeClientExecution(request);return executeDeleteTransitGatewayPeeringAttachment(request);}", "after": "public virtual DeleteTransitGatewayPeeringAttachmentResponse DeleteTransitGatewayPeeringAttachment(DeleteTransitGatewayPeeringAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTransitGatewayPeeringAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTransitGatewayPeeringAttachmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4308, "before": "public boolean isLarge() {try {getCachedBytes();return false;} catch (LargeObjectException tooBig) {return true;}}", "after": "public virtual bool IsLarge(){try{GetCachedBytes();return false;}catch (LargeObjectException){return true;}}" }, { "index": 4309, "before": "public synchronized Collection values() {Collection vs = values;return (vs != null) ? vs : (values = new Values());}", "after": "public virtual java.util.Collection values(){lock (this){java.util.Collection vs = _values;return (vs != null) ? vs : (_values = new java.util.Hashtable.Values(this));}}" }, { "index": 4310, "before": "public EscherComplexProperty(short propertyNumber, boolean isBlipId, byte[] complexData) {this(propertyNumber, isBlipId, complexData == null ? 0 : complexData.length);setComplexData(complexData);}", "after": "public EscherComplexProperty(short propertyNumber, bool isBlipId, byte[] complexData): base(propertyNumber, true, isBlipId){this._complexData = complexData;}" }, { "index": 4311, "before": "public DeleteMatchmakingRuleSetResult deleteMatchmakingRuleSet(DeleteMatchmakingRuleSetRequest request) {request = beforeClientExecution(request);return executeDeleteMatchmakingRuleSet(request);}", "after": "public virtual DeleteMatchmakingRuleSetResponse DeleteMatchmakingRuleSet(DeleteMatchmakingRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMatchmakingRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMatchmakingRuleSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4312, "before": "public UnassignIpv6AddressesResult unassignIpv6Addresses(UnassignIpv6AddressesRequest request) {request = beforeClientExecution(request);return executeUnassignIpv6Addresses(request);}", "after": "public virtual UnassignIpv6AddressesResponse UnassignIpv6Addresses(UnassignIpv6AddressesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UnassignIpv6AddressesRequestMarshaller.Instance;options.ResponseUnmarshaller = UnassignIpv6AddressesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4313, "before": "public boolean equals(Object _other) {if ((_other instanceof FacetResult) == false) {return false;}FacetResult other = (FacetResult) _other;return value.equals(other.value) &&childCount == other.childCount &&Arrays.equals(labelValues, other.labelValues);}", "after": "public override bool Equals(object other){if ((other is FacetResult) == false){return false;}FacetResult other2 = (FacetResult)other;return Value.Equals(other2.Value) && ChildCount == other2.ChildCount && Arrays.Equals(LabelValues, other2.LabelValues);}" }, { "index": 4314, "before": "public ConfirmSubscriptionRequest(String topicArn, String token) {setTopicArn(topicArn);setToken(token);}", "after": "public ConfirmSubscriptionRequest(string topicArn, string token){_topicArn = topicArn;_token = token;}" }, { "index": 4315, "before": "public Ref put(String keyName, Ref value) {String name = toRefName(keyName);if (!name.equals(value.getName()))throw new IllegalArgumentException();if (!resolved.isEmpty()) {for (Ref ref : resolved)loose = loose.put(ref);resolved = RefList.emptyList();}int idx = loose.find(name);if (0 <= idx) {Ref prior = loose.get(name);loose = loose.set(idx, value);return prior;}Ref prior = get(keyName);loose = loose.add(idx, value);sizeIsValid = false;return prior;}", "after": "public override Ref Put(string keyName, Ref value){string name = ToRefName(keyName);if (!name.Equals(value.GetName())){throw new ArgumentException();}if (!resolved.IsEmpty()){foreach (Ref @ref in resolved){loose = loose.Put(@ref);}resolved = RefList.EmptyList();}int idx = loose.Find(name);if (0 <= idx){Ref prior = loose.Get(name);loose = loose.Set(idx, value);return prior;}else{Ref prior = Get(keyName);loose = loose.Add(idx, value);sizeIsValid = false;return prior;}}" }, { "index": 4316, "before": "public void respondActivityTaskCanceled(RespondActivityTaskCanceledRequest request) {request = beforeClientExecution(request);executeRespondActivityTaskCanceled(request);}", "after": "public virtual RespondActivityTaskCanceledResponse RespondActivityTaskCanceled(RespondActivityTaskCanceledRequest request){var options = new InvokeOptions();options.RequestMarshaller = RespondActivityTaskCanceledRequestMarshaller.Instance;options.ResponseUnmarshaller = RespondActivityTaskCanceledResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4317, "before": "public DocumentInputStream createDocumentInputStream(final Entry document)throws IOException{if (!document.isDocumentEntry()) {throw new IOException(\"Entry '\" + document.getName()+ \"' is not a DocumentEntry\");}DocumentEntry entry = (DocumentEntry)document;return new DocumentInputStream(entry);}", "after": "public DocumentInputStream CreateDocumentInputStream(Entry document){if (!document.IsDocumentEntry){throw new IOException(\"Entry '\" + document.Name+ \"' is not a DocumentEntry\");}DocumentEntry entry = (DocumentEntry)document;return new DocumentInputStream(entry);}" }, { "index": 4318, "before": "public DescribeInstanceStatusResult describeInstanceStatus() {return describeInstanceStatus(new DescribeInstanceStatusRequest());}", "after": "public virtual DescribeInstanceStatusResponse DescribeInstanceStatus(){return DescribeInstanceStatus(new DescribeInstanceStatusRequest());}" }, { "index": 4319, "before": "public boolean requiresCommitBody() {return true;}", "after": "public virtual bool RequiresCommitBody(){return true;}" }, { "index": 4320, "before": "public BinaryHunk getReverseBinaryHunk() {return reverseBinaryHunk;}", "after": "public virtual BinaryHunk GetReverseBinaryHunk(){return reverseBinaryHunk;}" }, { "index": 4321, "before": "public static synchronized CoderResult malformedForLength(int length)throws IllegalArgumentException {if (length > 0) {Integer key = Integer.valueOf(length);synchronized (_malformedErrors) {CoderResult r = _malformedErrors.get(key);if (r == null) {r = new CoderResult(TYPE_MALFORMED_INPUT, length);_malformedErrors.put(key, r);}return r;}}throw new IllegalArgumentException(\"Length must be greater than 0; was \" + length);}", "after": "public static java.nio.charset.CoderResult malformedForLength(int length_1){lock (typeof(CoderResult)){if (length_1 > 0){int key = Sharpen.Util.IntValueOf(length_1);lock (_malformedErrors){java.nio.charset.CoderResult r = _malformedErrors.get(key);if (r == null){r = new java.nio.charset.CoderResult(TYPE_MALFORMED_INPUT, length_1);_malformedErrors.put(key, r);}return r;}}throw new System.ArgumentException(\"Length must be greater than 0; was \" + length_1);}}" }, { "index": 4322, "before": "public ByteBuffer get(byte[] dst, int dstOffset, int byteCount) {Arrays.checkOffsetAndCount(dst.length, dstOffset, byteCount);if (byteCount > remaining()) {throw new BufferUnderflowException();}for (int i = dstOffset; i < dstOffset + byteCount; ++i) {dst[i] = get();}return this;}", "after": "public virtual java.nio.ByteBuffer get(byte[] dst, int dstOffset, int byteCount){java.util.Arrays.checkOffsetAndCount(dst.Length, dstOffset, byteCount);if (byteCount > remaining()){throw new java.nio.BufferUnderflowException();}{for (int i = dstOffset; i < dstOffset + byteCount; ++i){dst[i] = get();}}return this;}" }, { "index": 4323, "before": "public final ObjectId getObjectId(int nthPosition) {if (nthPosition >= 0)return getObjectId((long) nthPosition);final int u31 = nthPosition >>> 1;final int one = nthPosition & 1;return getObjectId(((long) u31) << 1 | one);}", "after": "public ObjectId GetObjectId(int nthPosition){if (nthPosition >= 0){return GetObjectId((long)nthPosition);}int u31 = (int)(((uint)nthPosition) >> 1);int one = nthPosition & 1;return GetObjectId(((long)u31) << 1 | one);}" }, { "index": 4324, "before": "public UpdateRoomMembershipResult updateRoomMembership(UpdateRoomMembershipRequest request) {request = beforeClientExecution(request);return executeUpdateRoomMembership(request);}", "after": "public virtual UpdateRoomMembershipResponse UpdateRoomMembership(UpdateRoomMembershipRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRoomMembershipRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRoomMembershipResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4325, "before": "public void formatValue(StringBuffer toAppendTo, Object value) {double elapsed = ((Number) value).doubleValue();if (elapsed < 0) {toAppendTo.append('-');elapsed = -elapsed;}Object[] parts = new Long[specs.size()];for (int i = 0; i < specs.size(); i++) {parts[i] = specs.get(i).valueFor(elapsed);}try (Formatter formatter = new Formatter(toAppendTo, Locale.ROOT)) {formatter.format(printfFmt, parts);}}", "after": "public override void FormatValue(StringBuilder toAppendTo, Object value){double elapsed = ((double)value);if (elapsed < 0){toAppendTo.Append('-');elapsed = -elapsed;}long[] parts = new long[specs.Count];for (int i = 0; i < specs.Count; i++){parts[i] = specs[(i)].ValueFor(elapsed);}string[] fmtPart = printfFmt.Split(\":. []\".ToCharArray());string split = string.Empty;int pos = 0;int index = 0;Regex regFmt = new Regex(\"D\\\\d+\");foreach (string fmt in fmtPart){pos += fmt.Length;if (pos < printfFmt.Length){split = printfFmt[pos].ToString();pos++;}elsesplit = string.Empty;if (regFmt.IsMatch(fmt)){toAppendTo.Append(parts[index].ToString(fmt)).Append(split);index++;}else{toAppendTo.Append(fmt).Append(split);}}}" }, { "index": 4326, "before": "public void writeDouble(double v) {writeContinueIfRequired(8);_ulrOutput.writeDouble(v);}", "after": "public void WriteDouble(double v){WriteContinueIfRequired(8);_ulrOutput.WriteDouble(v);}" }, { "index": 4327, "before": "public CancelExportTaskResult cancelExportTask(CancelExportTaskRequest request) {request = beforeClientExecution(request);return executeCancelExportTask(request);}", "after": "public virtual CancelExportTaskResponse CancelExportTask(CancelExportTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelExportTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelExportTaskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4328, "before": "public String toString() {if (length == 0) {return \"FacetLabel: []\";}String[] parts = new String[length];System.arraycopy(components, 0, parts, 0, length);return \"FacetLabel: \" + Arrays.toString(parts);}", "after": "public override string ToString(){if (Length == 0){return \"FacetLabel: []\";}string[] parts = new string[Length];Array.Copy(Components, 0, parts, 0, Length);return \"FacetLabel: \" + Arrays.ToString(parts);}" }, { "index": 4329, "before": "public DescribeEventTrackerResult describeEventTracker(DescribeEventTrackerRequest request) {request = beforeClientExecution(request);return executeDescribeEventTracker(request);}", "after": "public virtual DescribeEventTrackerResponse DescribeEventTracker(DescribeEventTrackerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEventTrackerRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEventTrackerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4330, "before": "public UpdateJourneyResult updateJourney(UpdateJourneyRequest request) {request = beforeClientExecution(request);return executeUpdateJourney(request);}", "after": "public virtual UpdateJourneyResponse UpdateJourney(UpdateJourneyRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateJourneyRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateJourneyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4331, "before": "public RemoveTagsFromVaultResult removeTagsFromVault(RemoveTagsFromVaultRequest request) {request = beforeClientExecution(request);return executeRemoveTagsFromVault(request);}", "after": "public virtual RemoveTagsFromVaultResponse RemoveTagsFromVault(RemoveTagsFromVaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveTagsFromVaultRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveTagsFromVaultResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4332, "before": "public RevertCommand include(Ref commit) {checkCallable();commits.add(commit);return this;}", "after": "public virtual NGit.Api.RevertCommand Include(Ref commit){CheckCallable();commits.AddItem(commit);return this;}" }, { "index": 4333, "before": "public DeleteFargateProfileResult deleteFargateProfile(DeleteFargateProfileRequest request) {request = beforeClientExecution(request);return executeDeleteFargateProfile(request);}", "after": "public virtual DeleteFargateProfileResponse DeleteFargateProfile(DeleteFargateProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFargateProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFargateProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4334, "before": "public boolean evaluate(int cmpResult) {switch (_code) {case NONE:case EQ:return cmpResult == 0;case NE: return cmpResult != 0;case LT: return cmpResult < 0;case LE: return cmpResult <= 0;case GT: return cmpResult > 0;case GE: return cmpResult >= 0;}throw new RuntimeException(\"Cannot call boolean evaluate on non-equality operator '\"+ _representation + \"'\");}", "after": "public bool Evaluate(int cmpResult){switch (_code){case NONE:case EQ:return cmpResult == 0;case NE: return cmpResult != 0;case LT: return cmpResult < 0;case LE: return cmpResult <= 0;case GT: return cmpResult > 0;case GE: return cmpResult >= 0;}throw new Exception(\"Cannot call bool Evaluate on non-equality operator '\"+ _representation + \"'\");}" }, { "index": 4335, "before": "public SeriesRecord getSeries() {return series;}", "after": "public SeriesRecord GetSeries(){return series;}" }, { "index": 4336, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[UNCALCED]\\n\");buffer.append(\" _reserved: \").append(_reserved).append('\\n');buffer.append(\"[/UNCALCED]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[UNCALCED]\\n\");buffer.Append(\"[/UNCALCED]\\n\");return buffer.ToString();}" }, { "index": 4337, "before": "public ListBotsResult listBots(ListBotsRequest request) {request = beforeClientExecution(request);return executeListBots(request);}", "after": "public virtual ListBotsResponse ListBots(ListBotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListBotsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListBotsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4338, "before": "public int getPort() {return port;}", "after": "public int getPort(){return port;}" }, { "index": 4339, "before": "public void writeLong(long value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeLong(value);}", "after": "public virtual void writeLong(long value){throw new System.NotImplementedException();}" }, { "index": 4340, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {I_MatchPredicate mp = createCriteriaPredicate(arg1, srcRowIndex, srcColumnIndex);if(mp == null) {return NumberEval.ZERO;}double result = countMatchingCellsInArea(arg0, mp);return new NumberEval(result);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){IMatchPredicate mp = CreateCriteriaPredicate(arg1, srcRowIndex, srcColumnIndex);if (mp == null){return NumberEval.ZERO;}double result = CountMatchingCellsInArea(arg0, mp);return new NumberEval(result);}" }, { "index": 4341, "before": "public boolean requiresCommitBody() {return true;}", "after": "public override bool RequiresCommitBody(){return true;}" }, { "index": 4342, "before": "public DeleteVpcResult deleteVpc(DeleteVpcRequest request) {request = beforeClientExecution(request);return executeDeleteVpc(request);}", "after": "public virtual DeleteVpcResponse DeleteVpc(DeleteVpcRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpcRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpcResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4343, "before": "public VoteOnProposalResult voteOnProposal(VoteOnProposalRequest request) {request = beforeClientExecution(request);return executeVoteOnProposal(request);}", "after": "public virtual VoteOnProposalResponse VoteOnProposal(VoteOnProposalRequest request){var options = new InvokeOptions();options.RequestMarshaller = VoteOnProposalRequestMarshaller.Instance;options.ResponseUnmarshaller = VoteOnProposalResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4344, "before": "public void grow() {costs = ArrayUtil.grow(costs, 1+count);lastRightID = ArrayUtil.grow(lastRightID, 1+count);backPos = ArrayUtil.grow(backPos, 1+count);backIndex = ArrayUtil.grow(backIndex, 1+count);backID = ArrayUtil.grow(backID, 1+count);final Type[] newBackType = new Type[backID.length];System.arraycopy(backType, 0, newBackType, 0, backType.length);backType = newBackType;}", "after": "public void Grow(){costs = ArrayUtil.Grow(costs, 1 + count);lastRightID = ArrayUtil.Grow(lastRightID, 1 + count);backPos = ArrayUtil.Grow(backPos, 1 + count);backIndex = ArrayUtil.Grow(backIndex, 1 + count);backID = ArrayUtil.Grow(backID, 1 + count);JapaneseTokenizerType[] newBackType = new JapaneseTokenizerType[backID.Length];System.Array.Copy(backType, 0, newBackType, 0, backType.Length);backType = newBackType;}" }, { "index": 4345, "before": "public String toString() {return \"MERGE_BASE\"; }", "after": "public override string ToString(){return \"MERGE_BASE\";}" }, { "index": 4346, "before": "public float readFloat() throws IOException {return primitiveTypes.readFloat();}", "after": "public virtual float readFloat(){throw new System.NotImplementedException();}" }, { "index": 4347, "before": "public String substring(int start) {if (start >= 0 && start <= count) {if (start == count) {return \"\";}return new String(value, start, count - start);}throw indexAndLength(start);}", "after": "public virtual string substring(int start){if (start >= 0 && start <= count){if (start == count){return string.Empty;}return new string(value, start, count - start);}throw indexAndLength(start);}" }, { "index": 4348, "before": "public DBCellRecord(RecordInputStream in) {field_1_row_offset = in.readUShort();int size = in.remaining();field_2_cell_offsets = new short[ size / 2 ];for (int i=0;i buffer.length() || start < 1 ) return start;int offset, count = maxScan;for( offset = start; offset > 0 && count > 0; count-- ){if( boundaryChars.contains( buffer.charAt( offset - 1 ) ) ) return offset;offset--;}if (offset == 0) {return 0;}return start;}", "after": "public virtual int FindStartOffset(StringBuilder buffer, int start){if (start > buffer.Length || start < 1) return start;int offset, count = m_maxScan;for (offset = start; offset > 0 && count > 0; count--){if (m_boundaryChars.Contains(buffer[offset - 1])) return offset;offset--;}if (offset == 0){return 0;}return start;}" }, { "index": 4351, "before": "public BufferedTokenStream(TokenSource tokenSource) {if (tokenSource == null) {throw new NullPointerException(\"tokenSource cannot be null\");}this.tokenSource = tokenSource;}", "after": "public BufferedTokenStream(ITokenSource tokenSource){if (tokenSource == null){throw new ArgumentNullException(\"tokenSource cannot be null\");}this._tokenSource = tokenSource;}" }, { "index": 4352, "before": "public final boolean isDirect() {return false;}", "after": "public sealed override bool isDirect(){return false;}" }, { "index": 4353, "before": "public TokenMgrError(String message, int reason) {super(message);errorCode = reason;}", "after": "public TokenMgrError(string message, int reason): base(message){errorCode = reason;}" }, { "index": 4354, "before": "public int getCells() {int size = 0;for (Row row : rows)size += row.getCells();return size;}", "after": "public virtual int GetCells(){int size = 0;foreach (Row row in rows)size += row.GetCells();return size;}" }, { "index": 4355, "before": "public int findStartOfRowOutlineGroup(int row) {RowRecord rowRecord = this.getRow( row );int level = rowRecord.getOutlineLevel();int currentRow = row;while (currentRow >= 0 && this.getRow( currentRow ) != null) {rowRecord = this.getRow( currentRow );if (rowRecord.getOutlineLevel() < level) {return currentRow + 1;}currentRow--;}return currentRow + 1;}", "after": "public int FindStartOfRowOutlineGroup(int row){RowRecord rowRecord = this.GetRow(row);int level = rowRecord.OutlineLevel;int currentRow = row;while (this.GetRow(currentRow) != null){rowRecord = this.GetRow(currentRow);if (rowRecord.OutlineLevel < level)return currentRow + 1;currentRow--;}return currentRow + 1;}" }, { "index": 4356, "before": "public DirCacheBuildIterator(DirCacheBuilder dcb) {super(dcb.getDirCache());builder = dcb;}", "after": "public DirCacheBuildIterator(DirCacheBuilder dcb) : base(dcb.GetDirCache()){builder = dcb;}" }, { "index": 4357, "before": "public DeleteGraphResult deleteGraph(DeleteGraphRequest request) {request = beforeClientExecution(request);return executeDeleteGraph(request);}", "after": "public virtual DeleteGraphResponse DeleteGraph(DeleteGraphRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGraphRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGraphResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4358, "before": "public String toString() {return \"id=\" + id + \" version=\" + version + \" files=\" + sourceFiles;}", "after": "public override string ToString(){return string.Format(\"id={0} version={1} files={2}\", Id, Version, SourceFiles);}" }, { "index": 4359, "before": "public static Calendar parseDate(String strVal) throws EvaluationException {String[] parts = Pattern.compile(\"/\").split(strVal);if (parts.length != 3) {throw new EvaluationException(ErrorEval.VALUE_INVALID);}String part2 = parts[2];int spacePos = part2.indexOf(' ');if (spacePos > 0) {part2 = part2.substring(0, spacePos);}int f0;int f1;int f2;try {f0 = Integer.parseInt(parts[0]);f1 = Integer.parseInt(parts[1]);f2 = Integer.parseInt(part2);} catch (NumberFormatException e) {throw new EvaluationException(ErrorEval.VALUE_INVALID);}if (f0 < 0 || f1 < 0 || f2 < 0 || (f0 > 12 && f1 > 12 && f2 > 12)) {throw new EvaluationException(ErrorEval.VALUE_INVALID);}if (f0 >= 1900 && f0 < 9999) {return makeDate(f0, f1, f2);}throw new RuntimeException(\"Unable to determine date format for text '\" + strVal + \"'\");}", "after": "public static DateTime ParseDate(String strVal){String[] parts = strVal.Split(\"-/\".ToCharArray());if (parts.Length != 3){throw new EvaluationException(ErrorEval.VALUE_INVALID);}String part2 = parts[2];int spacePos = part2.IndexOf(' ');if (spacePos > 0){part2 = part2.Substring(0, spacePos);}int f0;int f1;int f2;try{f0 = int.Parse(parts[0]);f1 = int.Parse(parts[1]);f2 = int.Parse(part2);}catch (FormatException){throw new EvaluationException(ErrorEval.VALUE_INVALID);}if (f0 < 0 || f1 < 0 || f2 < 0 || (f0 > 12 && f1 > 12 && f2 > 12)){throw new EvaluationException(ErrorEval.VALUE_INVALID);}if (f0 >= 1900 && f0 < 9999){return MakeDate(f0, f1, f2);}#if !HIDE_UNREACHABLE_CODEif (false){return MakeDate(f2, f0, f1);}#endifthrow new RuntimeException(\"Unable to determine date format for text '\" + strVal + \"'\");}" }, { "index": 4360, "before": "public void removeMMClipCount() {remove1stProperty(PropertyIDMap.PID_MMCLIPCOUNT);}", "after": "public void RemoveMMClipCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_MMCLIPCOUNT);}" }, { "index": 4361, "before": "public void setDeltaCacheSize(long size) {deltaCacheSize = size;}", "after": "public virtual void SetDeltaCacheSize(long size){deltaCacheSize = size;}" }, { "index": 4362, "before": "public UpdateKnowledgeRequest() {super(\"Chatbot\", \"2017-10-11\", \"UpdateKnowledge\", \"beebot\");setMethod(MethodType.POST);}", "after": "public UpdateKnowledgeRequest(): base(\"Chatbot\", \"2017-10-11\", \"UpdateKnowledge\", \"beebot\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 4363, "before": "public void readBytes(byte[] b, int offset, int len) {for(int i=0;i(request, options);}" }, { "index": 4370, "before": "public OldStringRecord(RecordInputStream in) {sid = in.getSid();if (in.getSid() == biff2_sid) {field_1_string_len = (short)in.readUByte();} else {field_1_string_len = in.readShort();}field_2_bytes = IOUtils.safelyAllocate(field_1_string_len, MAX_RECORD_LENGTH);in.read(field_2_bytes, 0, field_1_string_len);}", "after": "public OldStringRecord(RecordInputStream in1){sid = in1.Sid;if (in1.Sid == biff2_sid){field_1_string_len = (short)in1.ReadUByte();}else{field_1_string_len = in1.ReadShort();}field_2_bytes = new byte[field_1_string_len];in1.Read(field_2_bytes, 0, field_1_string_len);}" }, { "index": 4371, "before": "public long ramBytesUsed() {return TERMS_BASE_RAM_BYTES_USED + (fst!=null ? fst.ramBytesUsed() : 0)+ RamUsageEstimator.sizeOf(scratch.bytes()) + RamUsageEstimator.sizeOf(scratchUTF16.chars());}", "after": "public virtual long RamBytesUsed(){return (_fst != null) ? _fst.GetSizeInBytes() : 0;}" }, { "index": 4372, "before": "public void fillRect(int x, int y, int width, int height){HSSFSimpleShape shape = escherGroup.createShape(new HSSFChildAnchor( x, y, x + width, y + height ) );shape.setShapeType(HSSFSimpleShape.OBJECT_TYPE_RECTANGLE);shape.setLineStyle(HSSFShape.LINESTYLE_NONE);shape.setFillColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());shape.setLineStyleColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());}", "after": "public void FillRect(int x, int y, int width, int height){HSSFSimpleShape shape = escherGroup.CreateShape(new HSSFChildAnchor(x, y, x + width, y + height));shape.ShapeType = (HSSFSimpleShape.OBJECT_TYPE_RECTANGLE);shape.LineStyle = LineStyle.None;shape.SetFillColor(foreground.R, foreground.G, foreground.B);shape.SetLineStyleColor(foreground.R, foreground.G, foreground.B);}" }, { "index": 4373, "before": "public void add(OneMerge merge) {merges.add(merge);}", "after": "public virtual void Add(OneMerge merge){Merges.Add(merge);}" }, { "index": 4374, "before": "public long computeNorm(FieldInvertState state) {return sims[0].computeNorm(state);}", "after": "public override long ComputeNorm(FieldInvertState state){return m_sims[0].ComputeNorm(state);}" }, { "index": 4375, "before": "public PolicyAttribute(String attributeName, String attributeValue) {setAttributeName(attributeName);setAttributeValue(attributeValue);}", "after": "public PolicyAttribute(string attributeName, string attributeValue){_attributeName = attributeName;_attributeValue = attributeValue;}" }, { "index": 4376, "before": "public String getAccessKeyId() {return publicKeyId;}", "after": "public string GetAccessKeyId(){return publicKeyId;}" }, { "index": 4377, "before": "public ListJourneysResult listJourneys(ListJourneysRequest request) {request = beforeClientExecution(request);return executeListJourneys(request);}", "after": "public virtual ListJourneysResponse ListJourneys(ListJourneysRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListJourneysRequestMarshaller.Instance;options.ResponseUnmarshaller = ListJourneysResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4378, "before": "public FormulaCellCacheEntry getOrCreateFormulaCellEntry(EvaluationCell cell) {FormulaCellCacheEntry result = _formulaCellCache.get(cell);if (result == null) {result = new FormulaCellCacheEntry();_formulaCellCache.put(cell, result);}return result;}", "after": "public FormulaCellCacheEntry GetOrCreateFormulaCellEntry(IEvaluationCell cell){FormulaCellCacheEntry result = _formulaCellCache.Get(cell);if (result == null){result = new FormulaCellCacheEntry();_formulaCellCache.Put(cell, result);}return result;}" }, { "index": 4379, "before": "public StartHumanLoopResult startHumanLoop(StartHumanLoopRequest request) {request = beforeClientExecution(request);return executeStartHumanLoop(request);}", "after": "public virtual StartHumanLoopResponse StartHumanLoop(StartHumanLoopRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartHumanLoopRequestMarshaller.Instance;options.ResponseUnmarshaller = StartHumanLoopResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4380, "before": "public List getRefSpecs() {return refSpecs;}", "after": "public virtual IList GetRefSpecs(){return refSpecs;}" }, { "index": 4381, "before": "public void build(InputIterator iterator) throws IOException {if (iterator.hasPayloads()) {throw new IllegalArgumentException(\"this suggester doesn't support payloads\");}if (iterator.hasContexts()) {throw new IllegalArgumentException(\"this suggester doesn't support contexts\");}count = 0;BytesRef scratch = new BytesRef();InputIterator iter = new WFSTInputIterator(tempDir, tempFileNamePrefix, iterator);IntsRefBuilder scratchInts = new IntsRefBuilder();BytesRefBuilder previous = null;PositiveIntOutputs outputs = PositiveIntOutputs.getSingleton();FSTCompiler fstCompiler = new FSTCompiler<>(FST.INPUT_TYPE.BYTE1, outputs);while ((scratch = iter.next()) != null) {long cost = iter.weight();if (previous == null) {previous = new BytesRefBuilder();} else if (scratch.equals(previous.get())) {continue; }Util.toIntsRef(scratch, scratchInts);fstCompiler.add(scratchInts.get(), cost);previous.copyBytes(scratch);count++;}fst = fstCompiler.compile();}", "after": "public override void Build(IInputIterator iterator){if (iterator.HasPayloads){throw new ArgumentException(\"this suggester doesn't support payloads\");}if (iterator.HasContexts){throw new ArgumentException(\"this suggester doesn't support contexts\");}count = 0;var scratch = new BytesRef();IInputIterator iter = new WFSTInputIterator(this, iterator);var scratchInts = new Int32sRef();BytesRef previous = null;var outputs = PositiveInt32Outputs.Singleton;var builder = new Builder(FST.INPUT_TYPE.BYTE1, outputs);while ((scratch = iter.Next()) != null){long cost = iter.Weight;if (previous == null){previous = new BytesRef();}else if (scratch.Equals(previous)){continue; }Lucene.Net.Util.Fst.Util.ToInt32sRef(scratch, scratchInts);builder.Add(scratchInts, cost);previous.CopyBytes(scratch);count++;}fst = builder.Finish();}" }, { "index": 4382, "before": "public Comparator comparator() {if (ascending) {return TreeMap.this.comparator();} else {return Collections.reverseOrder(comparator);}}", "after": "public java.util.Comparator comparator(){if (this.ascending){return this._enclosing.comparator();}else{return java.util.Collections.reverseOrder(this._enclosing._comparator);}}" }, { "index": 4383, "before": "public PrintHeadersRecord(RecordInputStream in) {field_1_print_headers = in.readShort();}", "after": "public PrintHeadersRecord(RecordInputStream in1){field_1_print_headers = in1.ReadShort();}" }, { "index": 4384, "before": "public DeleteBranchCommand branchDelete() {return new DeleteBranchCommand(repo);}", "after": "public virtual DeleteBranchCommand BranchDelete(){return new DeleteBranchCommand(repo);}" }, { "index": 4385, "before": "public DetectLabelsResult detectLabels(DetectLabelsRequest request) {request = beforeClientExecution(request);return executeDetectLabels(request);}", "after": "public virtual DetectLabelsResponse DetectLabels(DetectLabelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectLabelsRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectLabelsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4386, "before": "public FnGroupCountRecord(RecordInputStream in){field_1_count = in.readShort();}", "after": "public FnGroupCountRecord(RecordInputStream in1){field_1_count = in1.ReadShort();}" }, { "index": 4387, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {double result;try {double d0 = singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = singleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);double multi = Math.pow(10d,d1);if(d0 < 0) result = -Math.floor(-d0 * multi) / multi;else result = Math.floor(d0 * multi) / multi;checkValue(result);}catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){double result;try{double d0 = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);result = Evaluate(d0, d1);NumericFunction.CheckValue(result);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}" }, { "index": 4388, "before": "public DoubleBuffer put(double[] src, int srcOffset, int doubleCount) {if (doubleCount > remaining()) {throw new BufferOverflowException();}System.arraycopy(src, srcOffset, backingArray, offset + position, doubleCount);position += doubleCount;return this;}", "after": "public override java.nio.DoubleBuffer put(double[] src, int srcOffset, int doubleCount){if (doubleCount > remaining()){throw new java.nio.BufferOverflowException();}System.Array.Copy(src, srcOffset, backingArray, offset + _position, doubleCount);_position += doubleCount;return this;}" }, { "index": 4389, "before": "public CharSequence toQueryString(EscapeQuerySyntax escaper) {if (isDefaultField(this.field)) {return getTermEscaped(escaper) + \"~\" + this.similarity;} else {return this.field + \":\" + getTermEscaped(escaper) + \"~\" + this.similarity;}}", "after": "public override string ToQueryString(IEscapeQuerySyntax escaper){if (IsDefaultField(this.m_field)){return GetTermEscaped(escaper) + \"~\" + this.similarity;}else{return this.m_field + \":\" + GetTermEscaped(escaper) + \"~\" + this.similarity;}}" }, { "index": 4390, "before": "public AbstractBlockPackedWriter(DataOutput out, int blockSize) {checkBlockSize(blockSize, MIN_BLOCK_SIZE, MAX_BLOCK_SIZE);reset(out);values = new long[blockSize];}", "after": "public AbstractBlockPackedWriter(DataOutput @out, int blockSize){PackedInt32s.CheckBlockSize(blockSize, MIN_BLOCK_SIZE, MAX_BLOCK_SIZE);Reset(@out);m_values = new long[blockSize];}" }, { "index": 4391, "before": "public String getMessage() {return message;}", "after": "public virtual string GetMessage(){return message;}" }, { "index": 4392, "before": "public ListAttendeesResult listAttendees(ListAttendeesRequest request) {request = beforeClientExecution(request);return executeListAttendees(request);}", "after": "public virtual ListAttendeesResponse ListAttendees(ListAttendeesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAttendeesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAttendeesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4393, "before": "public void reset() {upto = count = 0;posIncr = 1;}", "after": "public virtual void Reset(){upto = count = 0;posIncr = 1;}" }, { "index": 4394, "before": "public FeatHdrRecord clone() {return copy();}", "after": "public override Object Clone(){return CloneViaReserialise();}" }, { "index": 4395, "before": "public synchronized void addElement(E object) {if (elementCount == elementData.length) {growByOne();}elementData[elementCount++] = object;modCount++;}", "after": "public virtual void addElement(E @object){lock (this){if (elementCount == elementData.Length){growByOne();}elementData[elementCount++] = @object;modCount++;}}" }, { "index": 4396, "before": "public long fileLength(String name) throws IOException {ensureOpen();if (pendingDeletes.contains(name)) {throw new NoSuchFileException(\"file \\\"\" + name + \"\\\" is pending delete\");}return Files.size(directory.resolve(name));}", "after": "public override long FileLength(string name){EnsureOpen();FileInfo file = new FileInfo(Path.Combine(m_directory.FullName, name));long len = file.Length;if (len == 0 && !file.Exists){throw new FileNotFoundException(name);}else{return len;}}" }, { "index": 4397, "before": "public PutExternalModelResult putExternalModel(PutExternalModelRequest request) {request = beforeClientExecution(request);return executePutExternalModel(request);}", "after": "public virtual PutExternalModelResponse PutExternalModel(PutExternalModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutExternalModelRequestMarshaller.Instance;options.ResponseUnmarshaller = PutExternalModelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4398, "before": "public PutConferencePreferenceResult putConferencePreference(PutConferencePreferenceRequest request) {request = beforeClientExecution(request);return executePutConferencePreference(request);}", "after": "public virtual PutConferencePreferenceResponse PutConferencePreference(PutConferencePreferenceRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutConferencePreferenceRequestMarshaller.Instance;options.ResponseUnmarshaller = PutConferencePreferenceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4399, "before": "public int size() {return size;}", "after": "public override int size(){return _size;}" }, { "index": 4400, "before": "public CreateApiMappingResult createApiMapping(CreateApiMappingRequest request) {request = beforeClientExecution(request);return executeCreateApiMapping(request);}", "after": "public virtual CreateApiMappingResponse CreateApiMapping(CreateApiMappingRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateApiMappingRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateApiMappingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4401, "before": "public CharBlockArray append(CharSequence chars, int start, int length) {int end = start + length;for (int i = start; i < end; i++) {append(chars.charAt(i));}return this;}", "after": "public virtual CharBlockArray Append(ICharSequence chars, int start, int length){int end = start + length;for (int i = start; i < end; i++){Append(chars[i]);}return this;}" }, { "index": 4402, "before": "public UpdateAdmChannelResult updateAdmChannel(UpdateAdmChannelRequest request) {request = beforeClientExecution(request);return executeUpdateAdmChannel(request);}", "after": "public virtual UpdateAdmChannelResponse UpdateAdmChannel(UpdateAdmChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAdmChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAdmChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4403, "before": "public DirCacheIterator(DirCache dc) {cache = dc;tree = dc.getCacheTree(true);treeStart = 0;treeEnd = tree.getEntrySpan();subtreeId = new byte[Constants.OBJECT_ID_LENGTH];if (!eof())parseEntry();}", "after": "public DirCacheIterator(DirCache dc){cache = dc;tree = dc.GetCacheTree(true);treeStart = 0;treeEnd = tree.GetEntrySpan();subtreeId = new byte[Constants.OBJECT_ID_LENGTH];if (!Eof){ParseEntry();}}" }, { "index": 4404, "before": "public void setBytesRef(BytesRef term, int textStart) {final byte[] bytes = term.bytes = buffers[textStart >> BYTE_BLOCK_SHIFT];int pos = textStart & BYTE_BLOCK_MASK;if ((bytes[pos] & 0x80) == 0) {term.length = bytes[pos];term.offset = pos+1;} else {term.length = (bytes[pos]&0x7f) + ((bytes[pos+1]&0xff)<<7);term.offset = pos+2;}assert term.length >= 0;}", "after": "public void SetBytesRef(BytesRef term, int textStart){var bytes = term.Bytes = buffers[textStart >> BYTE_BLOCK_SHIFT];var pos = textStart & BYTE_BLOCK_MASK;if ((bytes[pos] & 0x80) == 0){term.Length = bytes[pos];term.Offset = pos + 1;}else{term.Length = (bytes[pos] & 0x7f) + ((bytes[pos + 1] & 0xff) << 7);term.Offset = pos + 2;}Debug.Assert(term.Length >= 0);}" }, { "index": 4405, "before": "public Restrictions(GeoRestriction geoRestriction) {setGeoRestriction(geoRestriction);}", "after": "public Restrictions(GeoRestriction geoRestriction){_geoRestriction = geoRestriction;}" }, { "index": 4406, "before": "public DisableRuleResult disableRule(DisableRuleRequest request) {request = beforeClientExecution(request);return executeDisableRule(request);}", "after": "public virtual DisableRuleResponse DisableRule(DisableRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4407, "before": "public GetSuppressedDestinationResult getSuppressedDestination(GetSuppressedDestinationRequest request) {request = beforeClientExecution(request);return executeGetSuppressedDestination(request);}", "after": "public virtual GetSuppressedDestinationResponse GetSuppressedDestination(GetSuppressedDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSuppressedDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSuppressedDestinationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4408, "before": "public ListDomainsResult listDomains(ListDomainsRequest request) {request = beforeClientExecution(request);return executeListDomains(request);}", "after": "public virtual ListDomainsResponse ListDomains(ListDomainsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDomainsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDomainsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4409, "before": "public StartLifecyclePolicyPreviewResult startLifecyclePolicyPreview(StartLifecyclePolicyPreviewRequest request) {request = beforeClientExecution(request);return executeStartLifecyclePolicyPreview(request);}", "after": "public virtual StartLifecyclePolicyPreviewResponse StartLifecyclePolicyPreview(StartLifecyclePolicyPreviewRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartLifecyclePolicyPreviewRequestMarshaller.Instance;options.ResponseUnmarshaller = StartLifecyclePolicyPreviewResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4410, "before": "public CreateDiskFromSnapshotResult createDiskFromSnapshot(CreateDiskFromSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateDiskFromSnapshot(request);}", "after": "public virtual CreateDiskFromSnapshotResponse CreateDiskFromSnapshot(CreateDiskFromSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDiskFromSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDiskFromSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4411, "before": "public SubmoduleSyncCommand submoduleSync() {return new SubmoduleSyncCommand(repo);}", "after": "public virtual SubmoduleSyncCommand SubmoduleSync(){return new SubmoduleSyncCommand(repo);}" }, { "index": 4412, "before": "public DeleteConfigurationSetTrackingOptionsResult deleteConfigurationSetTrackingOptions(DeleteConfigurationSetTrackingOptionsRequest request) {request = beforeClientExecution(request);return executeDeleteConfigurationSetTrackingOptions(request);}", "after": "public virtual DeleteConfigurationSetTrackingOptionsResponse DeleteConfigurationSetTrackingOptions(DeleteConfigurationSetTrackingOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteConfigurationSetTrackingOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteConfigurationSetTrackingOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4413, "before": "public V setValue(V value) {if (!allowModify)throw new UnsupportedOperationException();V old = values[lastPos];values[lastPos] = value;return old;}", "after": "public virtual TValue SetValue(TValue value){if (!allowModify){throw new NotSupportedException();}TValue old = outerInstance.values[lastPos].Value;outerInstance.values[lastPos].Value = value;return old;}" }, { "index": 4414, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[FtPioGrbit ]\\n\");buffer.append(\" size = \").append(length).append(\"\\n\");buffer.append(\" flags = \").append(HexDump.toHex(flags)).append(\"\\n\");buffer.append(\"[/FtPioGrbit ]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[FtPioGrbit ]\\n\");buffer.Append(\" size = \").Append(length).Append(\"\\n\");buffer.Append(\" flags = \").Append(HexDump.ToHex(flags)).Append(\"\\n\");buffer.Append(\"[/FtPioGrbit ]\\n\");return buffer.ToString();}" }, { "index": 4415, "before": "static public double ipmt(double r, int per, int nper, double pv, double fv, int type) {double ipmt = fv(r, per - 1, pmt(r, nper, pv, fv, type), pv, type) * r;if (type==1) ipmt /= (1 + r);return ipmt;}", "after": "static public double IPMT(double r, int per, int nper, double pv, double fv, int type){double ipmt = FV(r, per - 1, PMT(r, nper, pv, fv, type), pv, type) * r;if (type == 1) ipmt /= (1 + r);return ipmt;}" }, { "index": 4416, "before": "public FileDictionary(InputStream dictFile, String fieldDelimiter) {in = new BufferedReader(IOUtils.getDecodingReader(dictFile, StandardCharsets.UTF_8));this.fieldDelimiter = fieldDelimiter;}", "after": "public FileDictionary(Stream dictFile, string fieldDelimiter){@in = IOUtils.GetDecodingReader(dictFile, Encoding.UTF8);this.fieldDelimiter = fieldDelimiter;}" }, { "index": 4417, "before": "public DocumentSummaryInformation(final PropertySet ps)throws UnexpectedPropertySetTypeException {super(ps);if (!isDocumentSummaryInformation()) {throw new UnexpectedPropertySetTypeException(\"Not a \" + getClass().getName());}}", "after": "public DocumentSummaryInformation(PropertySet ps): base(ps){if (!IsDocumentSummaryInformation)throw new UnexpectedPropertySetTypeException(\"Not a \" + GetType().Name);}" }, { "index": 4418, "before": "public EscherBSERecord getBSERecord(int pictureIndex) {return escherBSERecords.get(pictureIndex-1);}", "after": "public EscherBSERecord GetBSERecord(int pictureIndex){return (EscherBSERecord)escherBSERecords[pictureIndex - 1];}" }, { "index": 4419, "before": "public CreateDetectorVersionResult createDetectorVersion(CreateDetectorVersionRequest request) {request = beforeClientExecution(request);return executeCreateDetectorVersion(request);}", "after": "public virtual CreateDetectorVersionResponse CreateDetectorVersion(CreateDetectorVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDetectorVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDetectorVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4420, "before": "public static DVConstraint createExplicitListConstraint(String[] explicitListValues) {return new DVConstraint(null, explicitListValues);}", "after": "public static DVConstraint CreateExplicitListConstraint(String[] explicitListValues){return new DVConstraint(null, explicitListValues);}" }, { "index": 4421, "before": "public ListGroupsResult listGroups(ListGroupsRequest request) {request = beforeClientExecution(request);return executeListGroups(request);}", "after": "public virtual ListGroupsResponse ListGroups(ListGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4422, "before": "public DeleteScriptResult deleteScript(DeleteScriptRequest request) {request = beforeClientExecution(request);return executeDeleteScript(request);}", "after": "public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteScriptRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteScriptResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4423, "before": "public DescribeSpotDatafeedSubscriptionResult describeSpotDatafeedSubscription(DescribeSpotDatafeedSubscriptionRequest request) {request = beforeClientExecution(request);return executeDescribeSpotDatafeedSubscription(request);}", "after": "public virtual DescribeSpotDatafeedSubscriptionResponse DescribeSpotDatafeedSubscription(DescribeSpotDatafeedSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSpotDatafeedSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSpotDatafeedSubscriptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4424, "before": "public CharArrayReader(char[] buf) {this.buf = buf;this.count = buf.length;}", "after": "public CharArrayReader(char[] buf){this.buf = buf;this.count = buf.Length;}" }, { "index": 4425, "before": "public CharSequence subSequence(int start, int end) {return substring(start, end);}", "after": "public virtual java.lang.CharSequence SubSequence(int start, int end){return java.lang.CharSequenceProxy.Wrap(substring(start, end));}" }, { "index": 4426, "before": "public Builder(boolean dedup) {this.dedup = dedup;}", "after": "public Builder(bool ignoreCase){this.ignoreCase = ignoreCase;}" }, { "index": 4427, "before": "public synchronized void setPerfObject(String key, Object obj) {perfObjects.put(key, obj);}", "after": "public virtual void SetPerfObject(string key, object obj){lock (this){perfObjects[key] = obj;}}" }, { "index": 4428, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[DIMENSIONS]\\n\");buffer.append(\" .firstrow = \").append(Integer.toHexString(getFirstRow())).append(\"\\n\");buffer.append(\" .lastrow = \").append(Integer.toHexString(getLastRow())).append(\"\\n\");buffer.append(\" .firstcol = \").append(Integer.toHexString(getFirstCol())).append(\"\\n\");buffer.append(\" .lastcol = \").append(Integer.toHexString(getLastCol())).append(\"\\n\");buffer.append(\" .zero = \").append(Integer.toHexString(field_5_zero)).append(\"\\n\");buffer.append(\"[/DIMENSIONS]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[DIMENSIONS]\\n\");buffer.Append(\" .firstrow = \").Append(StringUtil.ToHexString(FirstRow)).Append(\"\\n\");buffer.Append(\" .lastrow = \").Append(StringUtil.ToHexString(LastRow)).Append(\"\\n\");buffer.Append(\" .firstcol = \").Append(StringUtil.ToHexString(FirstCol)).Append(\"\\n\");buffer.Append(\" .lastcol = \").Append(StringUtil.ToHexString(LastCol)).Append(\"\\n\");buffer.Append(\" .zero = \").Append(StringUtil.ToHexString(field_5_zero)).Append(\"\\n\");buffer.Append(\"[/DIMENSIONS]\\n\");return buffer.ToString();}" }, { "index": 4429, "before": "public ExitStandbyResult exitStandby(ExitStandbyRequest request) {request = beforeClientExecution(request);return executeExitStandby(request);}", "after": "public virtual ExitStandbyResponse ExitStandby(ExitStandbyRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExitStandbyRequestMarshaller.Instance;options.ResponseUnmarshaller = ExitStandbyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4430, "before": "public String toString() {return \"MultiDocsAndPositionsEnum(\" + Arrays.toString(getSubs()) + \")\";}", "after": "public override string ToString(){return \"MultiDocsEnum(\" + Arrays.ToString(Subs) + \")\";}" }, { "index": 4431, "before": "public MergeException(Throwable exc, Directory dir) {super(exc);this.dir = dir;}", "after": "public MergeException(Exception exc, Directory dir): base(exc.ToString(), exc){this.dir = dir;}" }, { "index": 4432, "before": "public int read(CharBuffer target) throws IOException {int remaining = remaining();if (target == this) {if (remaining == 0) {return -1;}throw new IllegalArgumentException();}if (remaining == 0) {return limit > 0 && target.remaining() == 0 ? 0 : -1;}remaining = Math.min(target.remaining(), remaining);if (remaining > 0) {char[] chars = new char[remaining];get(chars);target.put(chars);}return remaining;}", "after": "public virtual int read(java.nio.CharBuffer target){int remaining_1 = remaining();if (target == this){if (remaining_1 == 0){return -1;}throw new System.ArgumentException();}if (remaining_1 == 0){return _limit > 0 && target.remaining() == 0 ? 0 : -1;}remaining_1 = System.Math.Min(target.remaining(), remaining_1);if (remaining_1 > 0){char[] chars = new char[remaining_1];get(chars);target.put(chars);}return remaining_1;}" }, { "index": 4433, "before": "public final float getFloat() {return Float.intBitsToFloat(getInt());}", "after": "public sealed override float getFloat(){return Sharpen.Util.IntBitsToFloat(getInt());}" }, { "index": 4434, "before": "public UpdateApplicationRequest(String applicationName) {setApplicationName(applicationName);}", "after": "public UpdateApplicationRequest(string applicationName){_applicationName = applicationName;}" }, { "index": 4435, "before": "public void initReader(ByteSliceReader reader, int termID, int stream) {assert stream < streamCount;int intStart = postingsArray.intStarts[termID];final int[] ints = intPool.buffers[intStart >> IntBlockPool.INT_BLOCK_SHIFT];final int upto = intStart & IntBlockPool.INT_BLOCK_MASK;reader.init(bytePool,postingsArray.byteStarts[termID]+stream*ByteBlockPool.FIRST_LEVEL_SIZE,ints[upto+stream]);}", "after": "public void InitReader(ByteSliceReader reader, int termID, int stream){Debug.Assert(stream < streamCount);int intStart = postingsArray.intStarts[termID];int[] ints = intPool.Buffers[intStart >> Int32BlockPool.INT32_BLOCK_SHIFT];int upto = intStart & Int32BlockPool.INT32_BLOCK_MASK;reader.Init(bytePool, postingsArray.byteStarts[termID] + stream * ByteBlockPool.FIRST_LEVEL_SIZE, ints[upto + stream]);}" }, { "index": 4436, "before": "public T next() {if (size <= index)throw new NoSuchElementException();T res = block[blkIdx];if (++blkIdx == BLOCK_SIZE) {if (++dirIdx < directory.length)block = directory[dirIdx];elseblock = null;blkIdx = 0;}index++;return res;}", "after": "public override T Next(){if (this._enclosing.size <= this.index){throw new NoSuchElementException();}T res = this.block[this.blkIdx];if (++this.blkIdx == BlockList.BLOCK_SIZE){if (++this.dirIdx < this._enclosing.directory.Length){this.block = this._enclosing.directory[this.dirIdx];}else{this.block = null;}this.blkIdx = 0;}this.index++;return res;}" }, { "index": 4437, "before": "public DescribeOptionGroupOptionsResult describeOptionGroupOptions(DescribeOptionGroupOptionsRequest request) {request = beforeClientExecution(request);return executeDescribeOptionGroupOptions(request);}", "after": "public virtual DescribeOptionGroupOptionsResponse DescribeOptionGroupOptions(DescribeOptionGroupOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeOptionGroupOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeOptionGroupOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4438, "before": "public int alloc(int size) {int index = n;int len = array.length;if (n + size >= len) {byte[] aux = new byte[len + blockSize];System.arraycopy(array, 0, aux, 0, len);array = aux;}n += size;return index;}", "after": "public virtual int Alloc(int size){int index = n;int len = array.Length;if (n + size >= len){byte[] aux = new byte[len + blockSize];System.Array.Copy(array, 0, aux, 0, len);array = aux;}n += size;return index;}" }, { "index": 4439, "before": "public String getText() {StringBuilder text = new StringBuilder();for ( TermInfo ti: termsInfos ) {text.append( ti.getText() );}return text.toString();}", "after": "public virtual string GetText(){StringBuilder text = new StringBuilder();foreach (TermInfo ti in termsInfos){text.Append(ti.Text);}return text.ToString();}" }, { "index": 4440, "before": "public ReplaceableItem(String name) {setName(name);}", "after": "public ReplaceableItem(string name){_name = name;}" }, { "index": 4441, "before": "public NamePtg(LittleEndianInput in) {field_1_label_index = in.readUShort();field_2_zero = in.readShort();}", "after": "public NamePtg(ILittleEndianInput in1){field_1_label_index = in1.ReadShort();field_2_zero = in1.ReadShort();}" }, { "index": 4442, "before": "public int indexOf(Object object) {if (object != null) {for (int i = 0; i < a.length; i++) {if (object.equals(a[i])) {return i;}}} else {for (int i = 0; i < a.length; i++) {if (a[i] == null) {return i;}}}return -1;}", "after": "public override int indexOf(object @object){if (@object != null){{for (int i = 0; i < a.Length; i++){if (@object.Equals(a[i])){return i;}}}}else{{for (int i = 0; i < a.Length; i++){if ((object)a[i] == null){return i;}}}}return -1;}" }, { "index": 4443, "before": "public ListContactFlowsResult listContactFlows(ListContactFlowsRequest request) {request = beforeClientExecution(request);return executeListContactFlows(request);}", "after": "public virtual ListContactFlowsResponse ListContactFlows(ListContactFlowsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListContactFlowsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListContactFlowsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4444, "before": "public int doLogic() throws IOException {String analyzerName = null;try {if (current >= analyzerNames.size()) {current = 0;}analyzerName = analyzerNames.get(current++);Analyzer analyzer = null;if (null == analyzerName || 0 == analyzerName.length()) {analyzerName = \"org.apache.lucene.analysis.standard.StandardAnalyzer\";}AnalyzerFactory factory = getRunData().getAnalyzerFactories().get(analyzerName);if (null != factory) {analyzer = factory.create();} else {if (analyzerName.contains(\".\")) {if (analyzerName.startsWith(\"standard.\")) {analyzerName = \"org.apache.lucene.analysis.\" + analyzerName;}analyzer = createAnalyzer(analyzerName);} else { try {String coreClassName = \"org.apache.lucene.analysis.core.\" + analyzerName;analyzer = createAnalyzer(coreClassName);analyzerName = coreClassName;} catch (ClassNotFoundException e) {analyzerName = \"org.apache.lucene.analysis.\" + analyzerName;analyzer = createAnalyzer(analyzerName);}}}getRunData().setAnalyzer(analyzer);} catch (Exception e) {throw new RuntimeException(\"Error creating Analyzer: \" + analyzerName, e);}return 1;}", "after": "public override int DoLogic(){string analyzerName = null;try{if (current >= analyzerNames.Count){current = 0;}analyzerName = analyzerNames[current++];Analyzer analyzer = null;if (null == analyzerName || 0 == analyzerName.Length){analyzerName = typeof(Lucene.Net.Analysis.Standard.StandardAnalyzer).AssemblyQualifiedName;}AnalyzerFactory factory;if (RunData.AnalyzerFactories.TryGetValue(analyzerName, out factory) && null != factory){analyzer = factory.Create();}else{if (analyzerName.Contains(\".\")){if (analyzerName.StartsWith(\"Standard.\", StringComparison.Ordinal)){analyzerName = \"Lucene.Net.Analysis.\" + analyzerName;}analyzer = CreateAnalyzer(analyzerName);}else{ try{string coreClassName = \"Lucene.Net.Analysis.Core.\" + analyzerName;analyzer = CreateAnalyzer(coreClassName);analyzerName = coreClassName;}catch (TypeLoadException ){analyzerName = \"Lucene.Net.Analysis.\" + analyzerName;analyzer = CreateAnalyzer(analyzerName);}}}RunData.Analyzer = analyzer;}catch (Exception e){throw new Exception(\"Error creating Analyzer: \" + analyzerName, e);}return 1;}" }, { "index": 4445, "before": "public int serializeSimplePart( byte[] data, int offset ){LittleEndian.putShort(data, offset, getId());LittleEndian.putInt(data, offset + 2, propertyValue);return 6;}", "after": "public override int SerializeSimplePart(byte[] data, int offset){LittleEndian.PutShort(data, offset, Id);LittleEndian.PutInt(data, offset + 2, propertyValue);return 6;}" }, { "index": 4446, "before": "public static short[] copyOf(short[] original, int newLength) {if (newLength < 0) {throw new NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}", "after": "public static short[] copyOf(short[] original, int newLength){if (newLength < 0){throw new java.lang.NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}" }, { "index": 4447, "before": "@Override public Iterator iterator() {return new ValueIterator();}", "after": "public override java.util.Iterator iterator(){return new java.util.Hashtable.ValueIterator(this._enclosing);}" }, { "index": 4448, "before": "public boolean equals(Object obj) {if (this == obj) {return true;}if (!super.equals(obj)) {return false;}PrefixQuery other = (PrefixQuery) obj;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;}PrefixQuery other = (PrefixQuery)obj;if (_prefix == null){if (other._prefix != null){return false;}}else if (!_prefix.Equals(other._prefix)){return false;}return true;}" }, { "index": 4449, "before": "public boolean isSheetVeryHidden(int sheetnum) {return getBoundSheetRec(sheetnum).isVeryHidden();}", "after": "public bool IsSheetVeryHidden(int sheetnum){return GetBoundSheetRec(sheetnum).IsVeryHidden;}" }, { "index": 4450, "before": "public UpdateAccessKeyRequest(String accessKeyId, StatusType status) {setAccessKeyId(accessKeyId);setStatus(status.toString());}", "after": "public UpdateAccessKeyRequest(string accessKeyId, StatusType status){_accessKeyId = accessKeyId;_status = status;}" }, { "index": 4451, "before": "public static int countMatchingCellsInArea(ThreeDEval areaEval, I_MatchPredicate criteriaPredicate) {int result = 0;final int firstSheetIndex = areaEval.getFirstSheetIndex();final int lastSheetIndex = areaEval.getLastSheetIndex();for (int sIx = firstSheetIndex; sIx <= lastSheetIndex; sIx++) {int height = areaEval.getHeight();int width = areaEval.getWidth();for (int rrIx=0; rrIx specs) {checkCallable();this.refSpecs.clear();this.refSpecs.addAll(specs);return this;}", "after": "public virtual NGit.Api.PushCommand SetRefSpecs(params RefSpec[] specs){CheckCallable();this.refSpecs.Clear();Sharpen.Collections.AddAll(refSpecs, specs);return this;}" }, { "index": 4453, "before": "public EscherComplexProperty(short id, int complexSize) {super((short)(id | IS_COMPLEX));complexData = IOUtils.safelyAllocate(complexSize, MAX_RECORD_LENGTH);}", "after": "public EscherComplexProperty(short id, byte[] complexData): base(id){this._complexData = complexData;}" }, { "index": 4454, "before": "public CreateNodeResult createNode(CreateNodeRequest request) {request = beforeClientExecution(request);return executeCreateNode(request);}", "after": "public virtual CreateNodeResponse CreateNode(CreateNodeRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNodeRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNodeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4455, "before": "public Note call() throws GitAPIException {checkCallable();NoteMap map = NoteMap.newEmptyMap();RevCommit notesCommit = null;try (RevWalk walk = new RevWalk(repo)) {Ref ref = repo.exactRef(notesRef);if (ref != null) {notesCommit = walk.parseCommit(ref.getObjectId());map = NoteMap.read(walk.getObjectReader(), notesCommit);}return map.getNote(id);} catch (IOException e) {throw new JGitInternalException(e.getMessage(), e);}}", "after": "public override Note Call(){CheckCallable();RevWalk walk = new RevWalk(repo);NoteMap map = NoteMap.NewEmptyMap();RevCommit notesCommit = null;try{Ref @ref = repo.GetRef(notesRef);if (@ref != null){notesCommit = walk.ParseCommit(@ref.GetObjectId());map = NoteMap.Read(walk.GetObjectReader(), notesCommit);}return map.GetNote(id);}catch (IOException e){throw new JGitInternalException(e.Message, e);}finally{walk.Release();}}" }, { "index": 4456, "before": "public void ReInit(CharStream stream){jjmatchedPos = jjnewStateCnt = 0;curLexState = defaultLexState;input_stream = stream;ReInitRounds();}", "after": "public virtual void ReInit(ICharStream stream){jjmatchedPos = jjnewStateCnt = 0;curLexState = defaultLexState;m_input_stream = stream;ReInitRounds();}" }, { "index": 4457, "before": "public boolean add(char[] text) {return map.put(text, PLACEHOLDER) == null;}", "after": "public virtual bool Add(ICharSequence text){return map.Put(text);}" }, { "index": 4458, "before": "public void setDeltaBaseCacheLimit(int newLimit) {deltaBaseCacheLimit = newLimit;}", "after": "public virtual void SetDeltaBaseCacheLimit(int newLimit){deltaBaseCacheLimit = newLimit;}" }, { "index": 4459, "before": "public ServerException(String errCode, String errMsg, String requestId) {this(errCode, errMsg);this.setRequestId(requestId);}", "after": "public ServerException(string errorCode, string errorMessage, string requestId) :base(errorCode, errorMessage, requestId){RequestId = requestId;}" }, { "index": 4460, "before": "final public SrndQuery NQuery() throws ParseException {SrndQuery q;ArrayList queries;Token dt;q = WQuery();label_5:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case N:;break;default:jj_la1[3] = jj_gen;break label_5;}dt = jj_consume_token(N);queries = new ArrayList();queries.add(q); q = WQuery();queries.add(q);q = getDistanceQuery(queries, true , dt, false );}{if (true) return q;}throw new Error(\"Missing return statement in function\");}", "after": "public SrndQuery NQuery(){SrndQuery q;IList queries;Token dt;q = WQuery();while (true){switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.N:;break;default:jj_la1[3] = jj_gen;goto label_5;}dt = Jj_consume_token(RegexpToken.N);queries = new List();queries.Add(q); q = WQuery();queries.Add(q);q = GetDistanceQuery(queries, true , dt, false );}label_5:{ if (true) return q; }throw new Exception(\"Missing return statement in function\");}" }, { "index": 4461, "before": "public MoreLikeThisQuery(String likeText, String[] moreLikeFields, Analyzer analyzer, String fieldName) {this.likeText = Objects.requireNonNull(likeText);this.moreLikeFields = Objects.requireNonNull(moreLikeFields);this.analyzer = Objects.requireNonNull(analyzer);this.fieldName = Objects.requireNonNull(fieldName);}", "after": "public MoreLikeThisQuery(string likeText, string[] moreLikeFields, Analyzer analyzer, string fieldName){this.LikeText = likeText;this.MoreLikeFields = moreLikeFields;this.Analyzer = analyzer;this.fieldName = fieldName;}" }, { "index": 4462, "before": "public DescribeImageAttributeResult describeImageAttribute(DescribeImageAttributeRequest request) {request = beforeClientExecution(request);return executeDescribeImageAttribute(request);}", "after": "public virtual DescribeImageAttributeResponse DescribeImageAttribute(DescribeImageAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeImageAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeImageAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4463, "before": "public void println(Object o) {println(String.valueOf(o));}", "after": "public virtual void println(object o){println(Sharpen.StringHelper.GetValueOf(o));}" }, { "index": 4464, "before": "public DeregisterFromWorkMailResult deregisterFromWorkMail(DeregisterFromWorkMailRequest request) {request = beforeClientExecution(request);return executeDeregisterFromWorkMail(request);}", "after": "public virtual DeregisterFromWorkMailResponse DeregisterFromWorkMail(DeregisterFromWorkMailRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterFromWorkMailRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterFromWorkMailResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4465, "before": "public PutClusterCapacityProvidersResult putClusterCapacityProviders(PutClusterCapacityProvidersRequest request) {request = beforeClientExecution(request);return executePutClusterCapacityProviders(request);}", "after": "public virtual PutClusterCapacityProvidersResponse PutClusterCapacityProviders(PutClusterCapacityProvidersRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutClusterCapacityProvidersRequestMarshaller.Instance;options.ResponseUnmarshaller = PutClusterCapacityProvidersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4466, "before": "public ChangeMessageVisibilityBatchRequestEntry(String id, String receiptHandle) {setId(id);setReceiptHandle(receiptHandle);}", "after": "public ChangeMessageVisibilityBatchRequestEntry(string id, string receiptHandle){_id = id;_receiptHandle = receiptHandle;}" }, { "index": 4467, "before": "public StringBuffer append(float f) {RealToString.getInstance().appendFloat(this, f);return this;}", "after": "public java.lang.StringBuffer append(bool b){return append(b ? \"true\" : \"false\");}" }, { "index": 4468, "before": "@Override public int compare(T o1, T o2) {return cmp.compare(o2, o1);}", "after": "public int compare(T o1, T o2){return cmp.compare(o2, o1);}" }, { "index": 4469, "before": "public GetAttributesRequest(String domainName, String itemName) {setDomainName(domainName);setItemName(itemName);}", "after": "public GetAttributesRequest(string domainName, string itemName){_domainName = domainName;_itemName = itemName;}" }, { "index": 4470, "before": "public String toString() {return getClass().getName() +\" [\" +_firstMovedIndex +_lastMovedIndex +_amountToMove +\"]\";}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetType().Name);sb.Append(\" [\");sb.Append(_firstMovedIndex);sb.Append(_lastMovedIndex);sb.Append(_amountToMove);return sb.ToString();}" }, { "index": 4471, "before": "public final ValueEval evaluate(ValueEval[] args, int srcCellRow, int srcCellCol) {double result;try {result = eval(args, srcCellRow, srcCellCol);checkValue(result);} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcCellRow, int srcCellCol){double result;try{result = Eval(args, srcCellRow, srcCellCol);CheckValue(result);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}" }, { "index": 4472, "before": "public DescribeFpgaImagesResult describeFpgaImages(DescribeFpgaImagesRequest request) {request = beforeClientExecution(request);return executeDescribeFpgaImages(request);}", "after": "public virtual DescribeFpgaImagesResponse DescribeFpgaImages(DescribeFpgaImagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFpgaImagesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFpgaImagesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4473, "before": "public ObjectDirectoryInserter newInserter() {return new ObjectDirectoryInserter(this, config);}", "after": "public override ObjectInserter NewInserter(){return new ObjectDirectoryInserter(this, config);}" }, { "index": 4474, "before": "public LongBuffer put(int index, long c) {checkIndex(index);byteBuffer.putLong(index * SizeOf.LONG, c);return this;}", "after": "public override java.nio.LongBuffer put(int index, long c){checkIndex(index);byteBuffer.putLong(index * libcore.io.SizeOf.LONG, c);return this;}" }, { "index": 4475, "before": "public boolean isRetainBody() {return retainBody;}", "after": "public virtual bool IsRetainBody(){return retainBody;}" }, { "index": 4476, "before": "public AddApplicationVpcConfigurationResult addApplicationVpcConfiguration(AddApplicationVpcConfigurationRequest request) {request = beforeClientExecution(request);return executeAddApplicationVpcConfiguration(request);}", "after": "public virtual AddApplicationVpcConfigurationResponse AddApplicationVpcConfiguration(AddApplicationVpcConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddApplicationVpcConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = AddApplicationVpcConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4477, "before": "public Entry next() { return nextEntry(); }", "after": "public override java.util.MapClass.Entry next(){return this.nextEntry();}" }, { "index": 4478, "before": "public SpreadsheetVersion getSpreadsheetVersion(){return SpreadsheetVersion.EXCEL97;}", "after": "public SpreadsheetVersion GetSpreadsheetVersion(){return SpreadsheetVersion.EXCEL2007;}" }, { "index": 4479, "before": "public String[] promptKeyboardInteractive(String destination, String name,String instruction, String[] prompt, boolean[] echo) {CredentialItem.StringType[] v = new CredentialItem.StringType[prompt.length];for (int i = 0; i < prompt.length; i++)v[i] = new CredentialItem.StringType(prompt[i], !echo[i]);List items = new ArrayList<>();if (instruction != null && instruction.length() > 0)items.add(new CredentialItem.InformationalMessage(instruction));items.addAll(Arrays.asList(v));if (!provider.get(uri, items))return null; String[] result = new String[v.length];for (int i = 0; i < v.length; i++)result[i] = v[i].getValue();return result;}", "after": "public virtual string[] PromptKeyboardInteractive(string destination, string name, string instruction, string[] prompt, bool[] echo){CredentialItem.StringType[] v = new CredentialItem.StringType[prompt.Length];for (int i = 0; i < prompt.Length; i++){v[i] = new CredentialItem.StringType(prompt[i], !echo[i]);}IList items = new AList();if (instruction != null && instruction.Length > 0){items.AddItem(new CredentialItem.InformationalMessage(instruction));}Sharpen.Collections.AddAll(items, Arrays.AsList(v));if (!provider.Get(uri, items)){return null;}string[] result = new string[v.Length];for (int i_1 = 0; i_1 < v.Length; i_1++){result[i_1] = v[i_1].GetValue();}return result;}" }, { "index": 4480, "before": "public static synchronized MergeStrategy get(String name) {return STRATEGIES.get(name);}", "after": "public static MergeStrategy Get(string name){lock (typeof(MergeStrategy)){return STRATEGIES.Get(name);}}" }, { "index": 4481, "before": "public AssociateConnectionWithLagResult associateConnectionWithLag(AssociateConnectionWithLagRequest request) {request = beforeClientExecution(request);return executeAssociateConnectionWithLag(request);}", "after": "public virtual AssociateConnectionWithLagResponse AssociateConnectionWithLag(AssociateConnectionWithLagRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateConnectionWithLagRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateConnectionWithLagResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4482, "before": "public short getShortValue(final short holder){return ( short ) getValue(holder);}", "after": "public short GetShortValue(short holder){return (short)this.GetValue(holder);}" }, { "index": 4483, "before": "public static BreakIterator getSentenceInstance() {return getSentenceInstance(Locale.getDefault());}", "after": "public static java.text.BreakIterator getSentenceInstance(){return getSentenceInstance(System.Globalization.CultureInfo.CurrentCulture);}" }, { "index": 4484, "before": "public MissingObjectException(ObjectId id, String type) {super(MessageFormat.format(JGitText.get().missingObject, type, id.name()));missing = id.copy();}", "after": "public MissingObjectException(ObjectId id, string type) : base(MessageFormat.Format(JGitText.Get().missingObject, type, id.Name)){missing = id.Copy();}" }, { "index": 4485, "before": "public PipedReader(PipedWriter out, int pipeSize) throws IOException {this(pipeSize);connect(out);}", "after": "public PipedReader(java.io.PipedWriter @out, int pipeSize) : this(pipeSize){throw new System.NotImplementedException();}" }, { "index": 4486, "before": "public ImportKeyPairRequest(String keyName, String publicKeyMaterial) {setKeyName(keyName);setPublicKeyMaterial(publicKeyMaterial);}", "after": "public ImportKeyPairRequest(string keyName, string publicKeyMaterial){_keyName = keyName;_publicKeyMaterial = publicKeyMaterial;}" }, { "index": 4487, "before": "public DeleteFaceRequest() {super(\"LinkFace\", \"2018-07-20\", \"DeleteFace\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public DeleteFaceRequest(): base(\"LinkFace\", \"2018-07-20\", \"DeleteFace\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 4488, "before": "public CreateReceiptRuleSetResult createReceiptRuleSet(CreateReceiptRuleSetRequest request) {request = beforeClientExecution(request);return executeCreateReceiptRuleSet(request);}", "after": "public virtual CreateReceiptRuleSetResponse CreateReceiptRuleSet(CreateReceiptRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateReceiptRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateReceiptRuleSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4489, "before": "public RemovePermissionRequest(String queueUrl, String label) {setQueueUrl(queueUrl);setLabel(label);}", "after": "public RemovePermissionRequest(string queueUrl, string label){_queueUrl = queueUrl;_label = label;}" }, { "index": 4490, "before": "public String toString() {return \"DFR \" + basicModel.toString() + afterEffect.toString()+ normalization.toString();}", "after": "public override string ToString(){return \"DFR \" + m_basicModel.ToString() + m_afterEffect.ToString() + m_normalization.ToString();}" }, { "index": 4491, "before": "public void setResult(RefUpdate.Result r) {switch (r) {case NOT_ATTEMPTED:setResult(Result.NOT_ATTEMPTED);break;case LOCK_FAILURE:case IO_FAILURE:setResult(Result.LOCK_FAILURE);break;case NO_CHANGE:case NEW:case FORCED:case FAST_FORWARD:setResult(Result.OK);break;case REJECTED:setResult(Result.REJECTED_NONFASTFORWARD);break;case REJECTED_CURRENT_BRANCH:setResult(Result.REJECTED_CURRENT_BRANCH);break;case REJECTED_MISSING_OBJECT:setResult(Result.REJECTED_MISSING_OBJECT);break;case REJECTED_OTHER_REASON:setResult(Result.REJECTED_OTHER_REASON);break;default:setResult(Result.REJECTED_OTHER_REASON, r.name());break;}}", "after": "public virtual void SetResult(RefUpdate.Result r){switch (r){case RefUpdate.Result.NOT_ATTEMPTED:{SetResult(ReceiveCommand.Result.NOT_ATTEMPTED);break;}case RefUpdate.Result.LOCK_FAILURE:case RefUpdate.Result.IO_FAILURE:{SetResult(ReceiveCommand.Result.LOCK_FAILURE);break;}case RefUpdate.Result.NO_CHANGE:case RefUpdate.Result.NEW:case RefUpdate.Result.FORCED:case RefUpdate.Result.FAST_FORWARD:{SetResult(ReceiveCommand.Result.OK);break;}case RefUpdate.Result.REJECTED:{SetResult(ReceiveCommand.Result.REJECTED_NONFASTFORWARD);break;}case RefUpdate.Result.REJECTED_CURRENT_BRANCH:{SetResult(ReceiveCommand.Result.REJECTED_CURRENT_BRANCH);break;}default:{SetResult(ReceiveCommand.Result.REJECTED_OTHER_REASON, r.ToString());break;break;}}}" }, { "index": 4492, "before": "public DeleteMatchmakingConfigurationResult deleteMatchmakingConfiguration(DeleteMatchmakingConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteMatchmakingConfiguration(request);}", "after": "public virtual DeleteMatchmakingConfigurationResponse DeleteMatchmakingConfiguration(DeleteMatchmakingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMatchmakingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMatchmakingConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4493, "before": "public double resolveDistErr(SpatialContext ctx, double defaultDistErrPct) {if (distErr != null)return distErr;double distErrPct = (this.distErrPct != null ? this.distErrPct : defaultDistErrPct);return calcDistanceFromErrPct(shape, distErrPct, ctx);}", "after": "public virtual double ResolveDistErr(SpatialContext ctx, double defaultDistErrPct){if (DistErr != null)return DistErr.Value;double distErrPct = (this.distErrPct ?? defaultDistErrPct);return CalcDistanceFromErrPct(Shape, distErrPct, ctx);}" }, { "index": 4494, "before": "public final CharsetEncoder replaceWith(byte[] replacement) {if (replacement == null) {throw new IllegalArgumentException(\"replacement == null\");}if (replacement.length == 0) {throw new IllegalArgumentException(\"replacement.length == 0\");}if (replacement.length > maxBytesPerChar()) {throw new IllegalArgumentException(\"replacement length > maxBytesPerChar: \" +replacement.length + \" > \" + maxBytesPerChar());}if (!isLegalReplacement(replacement)) {throw new IllegalArgumentException(\"bad replacement: \" + Arrays.toString(replacement));}this.replacementBytes = replacement;implReplaceWith(replacementBytes);return this;}", "after": "public java.nio.charset.CharsetEncoder replaceWith(byte[] replacement_1){if (replacement_1 == null){throw new System.ArgumentException(\"replacement == null\");}if (replacement_1.Length == 0){throw new System.ArgumentException(\"replacement.length == 0\");}if (replacement_1.Length > maxBytesPerChar()){throw new System.ArgumentException(\"replacement length > maxBytesPerChar: \" + replacement_1.Length + \" > \" + maxBytesPerChar());}if (!isLegalReplacement(replacement_1)){throw new System.ArgumentException(\"bad replacement: \" + java.util.Arrays.toString(replacement_1));}this.replacementBytes = replacement_1;implReplaceWith(replacementBytes);return this;}" }, { "index": 4495, "before": "public CreateApplicationSnapshotResult createApplicationSnapshot(CreateApplicationSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateApplicationSnapshot(request);}", "after": "public virtual CreateApplicationSnapshotResponse CreateApplicationSnapshot(CreateApplicationSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateApplicationSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateApplicationSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4496, "before": "public ValueEval evaluate(int srcCellRow, int srcCellCol, ValueEval arg0) {double d;try {ValueEval ve = OperandResolver.getSingleValue(arg0, srcCellRow, srcCellCol);if(ve instanceof StringEval) {return ve;}d = OperandResolver.coerceValueToDouble(ve);} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(+d);}", "after": "public override ValueEval Evaluate(int srcCellRow, int srcCellCol, ValueEval arg0){double d;try{ValueEval ve = OperandResolver.GetSingleValue(arg0, srcCellRow, srcCellCol);if (ve is BlankEval){return NumberEval.ZERO;}if (ve is StringEval){return ve;}d = OperandResolver.CoerceValueToDouble(ve);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(+d);}" }, { "index": 4497, "before": "public MoPenBindIsvRequest() {super(\"MoPen\", \"2018-02-11\", \"MoPenBindIsv\", \"mopen\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public MoPenBindIsvRequest(): base(\"MoPen\", \"2018-02-11\", \"MoPenBindIsv\", \"mopen\", \"openAPI\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 4498, "before": "public AssociateIpGroupsResult associateIpGroups(AssociateIpGroupsRequest request) {request = beforeClientExecution(request);return executeAssociateIpGroups(request);}", "after": "public virtual AssociateIpGroupsResponse AssociateIpGroups(AssociateIpGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateIpGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateIpGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4499, "before": "public TestEventPatternResult testEventPattern(TestEventPatternRequest request) {request = beforeClientExecution(request);return executeTestEventPattern(request);}", "after": "public virtual TestEventPatternResponse TestEventPattern(TestEventPatternRequest request){var options = new InvokeOptions();options.RequestMarshaller = TestEventPatternRequestMarshaller.Instance;options.ResponseUnmarshaller = TestEventPatternResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4500, "before": "public LockFailedException(File file, String message) {super(message);this.file = file;}", "after": "public LockFailedException(FilePath file, string message) : base(message){this.file = file;}" }, { "index": 4501, "before": "public DeleteSkillGroupResult deleteSkillGroup(DeleteSkillGroupRequest request) {request = beforeClientExecution(request);return executeDeleteSkillGroup(request);}", "after": "public virtual DeleteSkillGroupResponse DeleteSkillGroup(DeleteSkillGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSkillGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSkillGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4502, "before": "public SortedDocValuesField(String name, BytesRef bytes) {super(name, TYPE);fieldsData = bytes;}", "after": "public SortedDocValuesField(string name, BytesRef bytes): base(name, TYPE){FieldsData = bytes;}" }, { "index": 4503, "before": "public CreateNetworkResult createNetwork(CreateNetworkRequest request) {request = beforeClientExecution(request);return executeCreateNetwork(request);}", "after": "public virtual CreateNetworkResponse CreateNetwork(CreateNetworkRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNetworkRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNetworkResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4504, "before": "public DeleteGroupRequest(String groupName) {setGroupName(groupName);}", "after": "public DeleteGroupRequest(string groupName){_groupName = groupName;}" }, { "index": 4505, "before": "public DescribeCacheEngineVersionsResult describeCacheEngineVersions(DescribeCacheEngineVersionsRequest request) {request = beforeClientExecution(request);return executeDescribeCacheEngineVersions(request);}", "after": "public virtual DescribeCacheEngineVersionsResponse DescribeCacheEngineVersions(DescribeCacheEngineVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCacheEngineVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCacheEngineVersionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4506, "before": "public int compareSameType(Object other) {assert exists || (false == value);MutableValueBool b = (MutableValueBool)other;if (value != b.value) return value ? 1 : -1;if (exists == b.exists) return 0;return exists ? 1 : -1;}", "after": "public override int CompareSameType(object other){MutableValueBool b = (MutableValueBool)other;if (Value != b.Value){return Value ? 1 : 0;}if (Exists == b.Exists){return 0;}return Exists ? 1 : -1;}" }, { "index": 4507, "before": "public LineParser(String[] header) {this.header = header;}", "after": "public LineParser(string[] header){this.m_header = header;}" }, { "index": 4508, "before": "public DBInstance restoreDBInstanceFromDBSnapshot(RestoreDBInstanceFromDBSnapshotRequest request) {request = beforeClientExecution(request);return executeRestoreDBInstanceFromDBSnapshot(request);}", "after": "public virtual RestoreDBInstanceFromDBSnapshotResponse RestoreDBInstanceFromDBSnapshot(RestoreDBInstanceFromDBSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = RestoreDBInstanceFromDBSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = RestoreDBInstanceFromDBSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4509, "before": "public void push(E e) {addFirstImpl(e);}", "after": "public virtual void push(E e){addFirstImpl(e);}" }, { "index": 4510, "before": "public synchronized void reset() throws IOException {if (buf == null) {throw new IOException(\"Stream is closed\");}if (-1 == markpos) {throw new IOException(\"Mark has been invalidated.\");}pos = markpos;}", "after": "public override void reset(){lock (this){if (buf == null){throw new System.IO.IOException(\"Stream is closed\");}if (-1 == markpos){throw new System.IO.IOException(\"Mark has been invalidated.\");}pos = markpos;}}" }, { "index": 4511, "before": "public UpdateUsagePlanResult updateUsagePlan(UpdateUsagePlanRequest request) {request = beforeClientExecution(request);return executeUpdateUsagePlan(request);}", "after": "public virtual UpdateUsagePlanResponse UpdateUsagePlan(UpdateUsagePlanRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateUsagePlanRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateUsagePlanResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4512, "before": "public boolean equals(Object obj) {if (this == obj) {return true;}if (obj == null) {return false;}if (getClass() != obj.getClass()) {return false;}TermInfo other = (TermInfo) obj;return position == other.position;}", "after": "public override bool Equals(object obj){if (this == obj){return true;}if (obj == null){return false;}if (GetType() != obj.GetType()){return false;}TermInfo other = (TermInfo)obj;if (position != other.position){return false;}return true;}" }, { "index": 4513, "before": "public StringPtg(String value) {if (value.length() > 255) {throw new IllegalArgumentException(\"String literals in formulas can't be bigger than 255 characters ASCII\");}_is16bitUnicode = StringUtil.hasMultibyte(value);field_3_string = value;}", "after": "public StringPtg(String value){if (value.Length > 255){throw new ArgumentException(\"String literals in formulas can't be bigger than 255 Chars ASCII\");}_is16bitUnicode = StringUtil.HasMultibyte(value);field_3_string = value;field_1_Length = value.Length; }" }, { "index": 4514, "before": "public ChangeType getChangeType() {return changeType;}", "after": "public virtual DiffEntry.ChangeType GetChangeType(){return changeType;}" }, { "index": 4515, "before": "public String asFormulaString() {StringBuilder sb = new StringBuilder(32);asFormulaString(sb);return sb.toString();}", "after": "public String AsFormulaString(){StringBuilder sb = new StringBuilder(32);AsFormulaString(sb);return sb.ToString();}" }, { "index": 4516, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(sid);out.writeShort(getDataSize());out.writeShort(field_1_objectType);out.writeShort(field_2_objectId);out.writeShort(field_3_option);out.writeInt(field_4_reserved1);out.writeInt(field_5_reserved2);out.writeInt(field_6_reserved3);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(sid);out1.WriteShort(DataSize);out1.WriteShort(field_1_objectType);out1.WriteShort(field_2_objectId);out1.WriteShort(field_3_option);out1.WriteInt(field_4_reserved1);out1.WriteInt(field_5_reserved2);out1.WriteInt(field_6_reserved3);}" }, { "index": 4517, "before": "public DescribeAppResult describeApp(DescribeAppRequest request) {request = beforeClientExecution(request);return executeDescribeApp(request);}", "after": "public virtual DescribeAppResponse DescribeApp(DescribeAppRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAppRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAppResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4518, "before": "public Map getToBeCheckedOut() {return toBeCheckedOut;}", "after": "public virtual IDictionary GetToBeCheckedOut(){return toBeCheckedOut;}" }, { "index": 4519, "before": "public CreatePublicVirtualInterfaceResult createPublicVirtualInterface(CreatePublicVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeCreatePublicVirtualInterface(request);}", "after": "public virtual CreatePublicVirtualInterfaceResponse CreatePublicVirtualInterface(CreatePublicVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePublicVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePublicVirtualInterfaceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4520, "before": "public CreateQueueResult createQueue(String queueName) {return createQueue(new CreateQueueRequest().withQueueName(queueName));}", "after": "public virtual CreateQueueResponse CreateQueue(string queueName){var request = new CreateQueueRequest();request.QueueName = queueName;return CreateQueue(request);}" }, { "index": 4521, "before": "public ParseException generateParseException() {jj_expentries.clear();boolean[] la1tokens = new boolean[33];if (jj_kind >= 0) {la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 25; i++) {if (jj_la1[i] == jj_gen) {for (int j = 0; j < 32; j++) {if ((jj_la1_0[i] & (1<= 0){la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 10; i++){if (jj_la1[i] == jj_gen){for (int j = 0; j < 32; j++){if ((jj_la1_0[i] & (1 << j)) != 0){la1tokens[j] = true;}}}}for (int i = 0; i < 24; i++){if (la1tokens[i]){jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.Add(jj_expentry);}}jj_endpos = 0;Jj_rescan_token();Jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.Count][];for (int i = 0; i < jj_expentries.Count; i++){exptokseq[i] = jj_expentries[i];}return new ParseException(Token, exptokseq, QueryParserConstants.TokenImage);}" }, { "index": 4522, "before": "public CreateFieldLevelEncryptionProfileResult createFieldLevelEncryptionProfile(CreateFieldLevelEncryptionProfileRequest request) {request = beforeClientExecution(request);return executeCreateFieldLevelEncryptionProfile(request);}", "after": "public virtual CreateFieldLevelEncryptionProfileResponse CreateFieldLevelEncryptionProfile(CreateFieldLevelEncryptionProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFieldLevelEncryptionProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFieldLevelEncryptionProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4523, "before": "public static int getSmileyResource(int which) {return sIconIds[which];}", "after": "public static int getSmileyResource(int which){return sIconIds[which];}" }, { "index": 4524, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[SCL]\\n\");buffer.append(\" .numerator = \").append(\"0x\").append(HexDump.toHex( getNumerator ())).append(\" (\").append( getNumerator() ).append(\" )\");buffer.append(System.getProperty(\"line.separator\"));buffer.append(\" .denominator = \").append(\"0x\").append(HexDump.toHex( getDenominator ())).append(\" (\").append( getDenominator() ).append(\" )\");buffer.append(System.getProperty(\"line.separator\"));buffer.append(\"[/SCL]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[SCL]\\n\");buffer.Append(\" .numerator = \").Append(\"0x\").Append(HexDump.ToHex(Numerator)).Append(\" (\").Append(Numerator).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\" .denominator = \").Append(\"0x\").Append(HexDump.ToHex(Denominator)).Append(\" (\").Append(Denominator).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\"[/SCL]\\n\");return buffer.ToString();}" }, { "index": 4525, "before": "public final void setBufferSize(int newSize) {assert buffer == null || bufferSize == buffer.length: \"buffer=\" + buffer + \" bufferSize=\" + bufferSize + \" buffer.length=\" + (buffer != null ? buffer.length : 0);if (newSize != bufferSize) {checkBufferSize(newSize);bufferSize = newSize;if (buffer != null) {byte[] newBuffer = new byte[newSize];final int leftInBuffer = bufferLength-bufferPosition;final int numToCopy;if (leftInBuffer > newSize)numToCopy = newSize;elsenumToCopy = leftInBuffer;System.arraycopy(buffer, bufferPosition, newBuffer, 0, numToCopy);bufferStart += bufferPosition;bufferPosition = 0;bufferLength = numToCopy;newBuffer(newBuffer);}}}", "after": "public void SetBufferSize(int newSize){Debug.Assert(m_buffer == null || bufferSize == m_buffer.Length, \"buffer=\" + m_buffer + \" bufferSize=\" + bufferSize + \" buffer.length=\" + (m_buffer != null ? m_buffer.Length : 0));if (newSize != bufferSize){CheckBufferSize(newSize);bufferSize = newSize;if (m_buffer != null){byte[] newBuffer = new byte[newSize];int leftInBuffer = bufferLength - bufferPosition;int numToCopy;if (leftInBuffer > newSize){numToCopy = newSize;}else{numToCopy = leftInBuffer;}Array.Copy(m_buffer, bufferPosition, newBuffer, 0, numToCopy);bufferStart += bufferPosition;bufferPosition = 0;bufferLength = numToCopy;NewBuffer(newBuffer);}}}" }, { "index": 4526, "before": "public DisassociateSigninDelegateGroupsFromAccountResult disassociateSigninDelegateGroupsFromAccount(DisassociateSigninDelegateGroupsFromAccountRequest request) {request = beforeClientExecution(request);return executeDisassociateSigninDelegateGroupsFromAccount(request);}", "after": "public virtual DisassociateSigninDelegateGroupsFromAccountResponse DisassociateSigninDelegateGroupsFromAccount(DisassociateSigninDelegateGroupsFromAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateSigninDelegateGroupsFromAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateSigninDelegateGroupsFromAccountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4527, "before": "public TokenStream create(TokenStream input) {return new IndicNormalizationFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new IndicNormalizationFilter(input);}" }, { "index": 4528, "before": "public TickRecord(RecordInputStream in) {field_1_majorTickType = in.readByte();field_2_minorTickType = in.readByte();field_3_labelPosition = in.readByte();field_4_background = in.readByte();field_5_labelColorRgb = in.readInt();field_6_zero1 = in.readInt();field_7_zero2 = in.readInt();field_8_zero3 = in.readInt();field_9_zero4 = in.readInt();field_10_options = in.readShort();field_11_tickColor = in.readShort();field_12_zero5 = in.readShort();}", "after": "public TickRecord(RecordInputStream in1){field_1_majorTickType = (byte)in1.ReadByte();field_2_minorTickType = (byte)in1.ReadByte();field_3_labelPosition = (byte)in1.ReadByte();field_4_background = (byte)in1.ReadByte();field_5_labelColorRgb = (byte)in1.ReadInt();field_6_zero1 = in1.ReadInt();field_7_zero2 = in1.ReadInt();field_8_zero3 = in1.ReadInt();field_9_zero4 = in1.ReadInt();field_10_options = in1.ReadShort();field_11_tickColor = in1.ReadShort();field_12_zero5 = in1.ReadShort();}" }, { "index": 4529, "before": "public long getPackedGitLimit() {return packedGitLimit;}", "after": "public virtual long GetPackedGitLimit(){return packedGitLimit;}" }, { "index": 4530, "before": "public DisassociateContactFromAddressBookResult disassociateContactFromAddressBook(DisassociateContactFromAddressBookRequest request) {request = beforeClientExecution(request);return executeDisassociateContactFromAddressBook(request);}", "after": "public virtual DisassociateContactFromAddressBookResponse DisassociateContactFromAddressBook(DisassociateContactFromAddressBookRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateContactFromAddressBookRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateContactFromAddressBookResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4531, "before": "public void writeShort(int v) {checkPosition(2);int i = _writeIndex;_buf[i++] = (byte)((v >>> 0) & 0xFF);_buf[i++] = (byte)((v >>> 8) & 0xFF);_writeIndex = i;}", "after": "public void WriteShort(int v){CheckPosition(2);int i = _writeIndex;_buf[i++] = (byte)((v >> 0) & 0xFF);_buf[i++] = (byte)((v >> 8) & 0xFF);_writeIndex = i;}" }, { "index": 4532, "before": "public int read(char[] c, int off, int len) {if (pos < size) {len = Math.min(len, size-pos);s.getChars(pos, pos+len, c, off);pos += len;return len;} else {s = null;return -1;}}", "after": "public override int Read(char[] c, int off, int len){if (pos < size){len = Math.Min(len, size - pos);s.CopyTo(pos, c, off, pos + len - pos);pos += len;return len;}else{s = null;return -1;}}" }, { "index": 4533, "before": "public AssociateSkillWithUsersResult associateSkillWithUsers(AssociateSkillWithUsersRequest request) {request = beforeClientExecution(request);return executeAssociateSkillWithUsers(request);}", "after": "public virtual AssociateSkillWithUsersResponse AssociateSkillWithUsers(AssociateSkillWithUsersRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateSkillWithUsersRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateSkillWithUsersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4534, "before": "public boolean doPrune(double ageSec, IndexSearcher searcher) {return ageSec > maxAgeSec;}", "after": "public bool DoPrune(double ageSec, IndexSearcher searcher){return ageSec > maxAgeSec;}" }, { "index": 4535, "before": "public DescribeObservationResult describeObservation(DescribeObservationRequest request) {request = beforeClientExecution(request);return executeDescribeObservation(request);}", "after": "public virtual DescribeObservationResponse DescribeObservation(DescribeObservationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeObservationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeObservationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4536, "before": "public DeletePresetResult deletePreset(DeletePresetRequest request) {request = beforeClientExecution(request);return executeDeletePreset(request);}", "after": "public virtual DeletePresetResponse DeletePreset(DeletePresetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeletePresetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeletePresetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4537, "before": "public long ramBytesUsed() {long size = 0;for (Map.Entry entry : formats.entrySet()) {size += (entry.getKey().length() * Character.BYTES) + entry.getValue().ramBytesUsed();}return size;}", "after": "public override long RamBytesUsed(){long size = 0;foreach (KeyValuePair entry in formats){size += (entry.Key.Length * RamUsageEstimator.NUM_BYTES_CHAR)+ entry.Value.RamBytesUsed();}return size;}" }, { "index": 4538, "before": "public UserSViewBegin clone() {return copy();}", "after": "public override Object Clone(){return CloneViaReserialise();}" }, { "index": 4539, "before": "public char[] toCharArray() {synchronized (lock) {char[] result = new char[count];System.arraycopy(buf, 0, result, 0, count);return result;}}", "after": "public virtual char[] toCharArray(){lock (@lock){char[] result = new char[count];System.Array.Copy(buf, 0, result, 0, count);return result;}}" }, { "index": 4540, "before": "public RebuildWorkspacesResult rebuildWorkspaces(RebuildWorkspacesRequest request) {request = beforeClientExecution(request);return executeRebuildWorkspaces(request);}", "after": "public virtual RebuildWorkspacesResponse RebuildWorkspaces(RebuildWorkspacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebuildWorkspacesRequestMarshaller.Instance;options.ResponseUnmarshaller = RebuildWorkspacesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4541, "before": "public GetLexiconResult getLexicon(GetLexiconRequest request) {request = beforeClientExecution(request);return executeGetLexicon(request);}", "after": "public virtual GetLexiconResponse GetLexicon(GetLexiconRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetLexiconRequestMarshaller.Instance;options.ResponseUnmarshaller = GetLexiconResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4542, "before": "public UpdateDeploymentStrategyResult updateDeploymentStrategy(UpdateDeploymentStrategyRequest request) {request = beforeClientExecution(request);return executeUpdateDeploymentStrategy(request);}", "after": "public virtual UpdateDeploymentStrategyResponse UpdateDeploymentStrategy(UpdateDeploymentStrategyRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDeploymentStrategyRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDeploymentStrategyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4543, "before": "public GetAlgorithmListRequest() {super(\"industry-brain\", \"2018-07-12\", \"GetAlgorithmList\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetAlgorithmListRequest(): base(\"industry-brain\", \"2018-07-12\", \"GetAlgorithmList\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 4544, "before": "public boolean isForceUpdate() {return forceUpdate;}", "after": "public virtual bool IsForceUpdate(){return forceUpdate;}" }, { "index": 4545, "before": "public ListGameServersResult listGameServers(ListGameServersRequest request) {request = beforeClientExecution(request);return executeListGameServers(request);}", "after": "public virtual ListGameServersResponse ListGameServers(ListGameServersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGameServersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGameServersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4546, "before": "public boolean delete(){boolean rval = false;if ((!isRoot()) && isDeleteOK()){rval = _parent.deleteEntry(this);}return rval;}", "after": "public bool Delete(){bool rval = false;if ((!IsRoot) && IsDeleteOK){rval = _parent.DeleteEntry(this);}return rval;}" }, { "index": 4547, "before": "public TableRecord(RecordInputStream in) {super(in);field_5_flags = in.readByte();field_6_res = in.readByte();field_7_rowInputRow = in.readShort();field_8_colInputRow = in.readShort();field_9_rowInputCol = in.readShort();field_10_colInputCol = in.readShort();}", "after": "public TableRecord(RecordInputStream in1): base(in1){field_5_flags = in1.ReadByte();field_6_res = in1.ReadByte();field_7_rowInputRow = in1.ReadShort();field_8_colInputRow = in1.ReadShort();field_9_rowInputCol = in1.ReadShort();field_10_colInputCol = in1.ReadShort();}" }, { "index": 4548, "before": "public AllocateHostsResult allocateHosts(AllocateHostsRequest request) {request = beforeClientExecution(request);return executeAllocateHosts(request);}", "after": "public virtual AllocateHostsResponse AllocateHosts(AllocateHostsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AllocateHostsRequestMarshaller.Instance;options.ResponseUnmarshaller = AllocateHostsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4549, "before": "public void writeContinue() {_ulrOutput.terminate();_totalPreviousRecordsSize += _ulrOutput.getTotalSize();_ulrOutput = new UnknownLengthRecordOutput(_out, ContinueRecord.sid);}", "after": "public void WriteContinue(){_ulrOutput.Terminate();_totalPreviousRecordsSize += _ulrOutput.TotalSize;_ulrOutput = new UnknownLengthRecordOutput(_out, ContinueRecord.sid);}" }, { "index": 4550, "before": "public void unread(byte[] buffer, int offset, int length) throws IOException {if (length > pos) {throw new IOException(\"Pushback buffer full\");}Arrays.checkOffsetAndCount(buffer.length, offset, length);if (buf == null) {throw streamClosed();}System.arraycopy(buffer, offset, buf, pos - length, length);pos = pos - length;}", "after": "public virtual void unread(byte[] buffer, int offset, int length){if (length > pos){throw new System.IO.IOException(\"Pushback buffer full\");}java.util.Arrays.checkOffsetAndCount(buffer.Length, offset, length);if (buf == null){throw streamClosed();}System.Array.Copy(buffer, offset, buf, pos - length, length);pos = pos - length;}" }, { "index": 4551, "before": "public boolean containsCell(BookSheetKey key, int rowIndex, int columnIndex) {BlankCellSheetGroup bcsg = _sheetGroupsByBookSheet.get(key);if (bcsg == null) {return false;}return bcsg.containsCell(rowIndex, columnIndex);}", "after": "public bool ContainsCell(BookSheetKey key, int rowIndex, int columnIndex){BlankCellSheetGroup bcsg = (BlankCellSheetGroup)_sheetGroupsByBookSheet[key];if (bcsg == null){return false;}return bcsg.ContainsCell(rowIndex, columnIndex);}" }, { "index": 4552, "before": "public DescribeTextTranslationJobResult describeTextTranslationJob(DescribeTextTranslationJobRequest request) {request = beforeClientExecution(request);return executeDescribeTextTranslationJob(request);}", "after": "public virtual DescribeTextTranslationJobResponse DescribeTextTranslationJob(DescribeTextTranslationJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTextTranslationJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTextTranslationJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4553, "before": "public int serialize( int offset, byte[] data, EscherSerializationListener listener ){listener.beforeRecordSerialize( offset, getRecordId(), this );if (remainingData == null) {remainingData = new byte[0];}LittleEndian.putShort( data, offset, getOptions() );LittleEndian.putShort( data, offset + 2, getRecordId() );int remainingBytes = remainingData.length + (shortRecord ? 8 : 18);LittleEndian.putInt( data, offset + 4, remainingBytes );LittleEndian.putShort( data, offset + 8, field_1_flag );LittleEndian.putShort( data, offset + 10, field_2_col1 );LittleEndian.putShort( data, offset + 12, field_3_dx1 );LittleEndian.putShort( data, offset + 14, field_4_row1 );if(!shortRecord) {LittleEndian.putShort( data, offset + 16, field_5_dy1 );LittleEndian.putShort( data, offset + 18, field_6_col2 );LittleEndian.putShort( data, offset + 20, field_7_dx2 );LittleEndian.putShort( data, offset + 22, field_8_row2 );LittleEndian.putShort( data, offset + 24, field_9_dy2 );}System.arraycopy( remainingData, 0, data, offset + (shortRecord ? 16 : 26), remainingData.length );int pos = offset + 8 + (shortRecord ? 8 : 18) + remainingData.length;listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );return pos - offset;}", "after": "public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);if (remainingData == null) remainingData = new byte[0];LittleEndian.PutShort(data, offset, Options);LittleEndian.PutShort(data, offset + 2, RecordId);int remainingBytes = remainingData.Length + (shortRecord ? 8 : 18);LittleEndian.PutInt(data, offset + 4, remainingBytes);LittleEndian.PutShort(data, offset + 8, field_1_flag);LittleEndian.PutShort(data, offset + 10, field_2_col1);LittleEndian.PutShort(data, offset + 12, field_3_dx1);LittleEndian.PutShort(data, offset + 14, field_4_row1);if (!shortRecord){LittleEndian.PutShort(data, offset + 16, field_5_dy1);LittleEndian.PutShort(data, offset + 18, field_6_col2);LittleEndian.PutShort(data, offset + 20, field_7_dx2);LittleEndian.PutShort(data, offset + 22, field_8_row2);LittleEndian.PutShort(data, offset + 24, field_9_dy2);}Array.Copy(remainingData, 0, data, offset + (shortRecord ? 16 : 26), remainingData.Length);int pos = offset + 8 + (shortRecord ? 8 : 18) + remainingData.Length;listener.AfterRecordSerialize(pos, RecordId, pos - offset, this);return pos - offset;}" }, { "index": 4554, "before": "public final void serialize(LittleEndianOutput out) {int nBreaks = _breaks.size();out.writeShort(nBreaks);for (Break aBreak : _breaks) {aBreak.serialize(out);}}", "after": "public override void Serialize(ILittleEndianOutput out1){int nBreaks = _breaks.Count;out1.WriteShort(nBreaks);for (int i = 0; i < nBreaks; i++){_breaks[i].Serialize(out1);}}" }, { "index": 4555, "before": "public float baselineTf(float freq) {if (0.0f == freq) return 0.0f;return (freq <= tf_min)? tf_base: (float)Math.sqrt(freq + (tf_base * tf_base) - tf_min);}", "after": "public virtual float BaselineTf(float freq){if (0.0f == freq){return 0.0f;}return (freq <= tf_min) ? tf_base : (float)Math.Sqrt(freq + (tf_base * tf_base) - tf_min);}" }, { "index": 4556, "before": "public StringBuilder delete(int start, int end) {delete0(start, end);return this;}", "after": "public java.lang.StringBuilder delete(int start, int end){delete0(start, end);return this;}" }, { "index": 4557, "before": "public boolean isError() {return this.type == TYPE_MALFORMED_INPUT|| this.type == TYPE_UNMAPPABLE_CHAR;}", "after": "public virtual bool isError(){return this.type == TYPE_MALFORMED_INPUT || this.type == TYPE_UNMAPPABLE_CHAR;}" }, { "index": 4558, "before": "public int getLastSheetIndexFromExternSheetIndex(int externSheetNumber){return linkTable.getLastInternalSheetIndexForExtIndex(externSheetNumber);}", "after": "public int GetLastSheetIndexFromExternSheetIndex(int externSheetNumber){return linkTable.GetLastInternalSheetIndexForExtIndex(externSheetNumber);}" }, { "index": 4559, "before": "public PlainTextDictionary(InputStream dictFile) {in = new BufferedReader(IOUtils.getDecodingReader(dictFile, StandardCharsets.UTF_8));}", "after": "public PlainTextDictionary(Stream dictFile){@in = IOUtils.GetDecodingReader(dictFile, Encoding.UTF8);}" }, { "index": 4560, "before": "public LittleEndianByteArrayOutputStream(byte[] buf, int startOffset, int maxWriteLen) { if (startOffset < 0 || startOffset > buf.length) {throw new IllegalArgumentException(\"Specified startOffset (\" + startOffset+ \") is out of allowable range (0..\" + buf.length + \")\");}_buf = buf;_writeIndex = startOffset;_endIndex = startOffset + maxWriteLen;if (_endIndex < startOffset || _endIndex > buf.length) {throw new IllegalArgumentException(\"calculated end index (\" + _endIndex+ \") is out of allowable range (\" + _writeIndex + \"..\" + buf.length + \")\");}}", "after": "public LittleEndianByteArrayOutputStream(byte[] buf, int startOffset, int maxWriteLen){if (startOffset < 0 || startOffset > buf.Length){throw new ArgumentException(\"Specified startOffset (\" + startOffset+ \") is out of allowable range (0..\" + buf.Length + \")\");}_buf = buf;_writeIndex = startOffset;_endIndex = startOffset + maxWriteLen;if (_endIndex < startOffset || _endIndex > buf.Length){throw new ArgumentException(\"calculated end index (\" + _endIndex+ \") is out of allowable range (\" + _writeIndex + \"..\" + buf.Length + \")\");}}" }, { "index": 4561, "before": "public void addRecords(MergeCellsRecord[] mcrs) {for (int i = 0; i < mcrs.length; i++) {addMergeCellsRecord(mcrs[i]);}}", "after": "public void AddRecords(MergeCellsRecord[] mcrs){for (int i = 0; i < mcrs.Length; i++){AddMergeCellsRecord(mcrs[i]);}}" }, { "index": 4562, "before": "public DescribeInternetGatewaysResult describeInternetGateways(DescribeInternetGatewaysRequest request) {request = beforeClientExecution(request);return executeDescribeInternetGateways(request);}", "after": "public virtual DescribeInternetGatewaysResponse DescribeInternetGateways(DescribeInternetGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInternetGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInternetGatewaysResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4563, "before": "public void removeLastSaveDateTime() {remove1stProperty(PropertyIDMap.PID_LASTSAVE_DTM);}", "after": "public void RemoveLastSaveDateTime(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_LASTSAVE_DTM);}" }, { "index": 4564, "before": "public boolean hitEnd() {return hitEndImpl(address);}", "after": "public bool hitEnd(){return hitEndImpl(address);}" }, { "index": 4565, "before": "public ListSkillsResult listSkills(ListSkillsRequest request) {request = beforeClientExecution(request);return executeListSkills(request);}", "after": "public virtual ListSkillsResponse ListSkills(ListSkillsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSkillsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSkillsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4566, "before": "public String toString() {return \"popMode\";}", "after": "public override string ToString(){return \"popMode\";}" }, { "index": 4567, "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;final long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 16) | (byte1 << 8) | byte2;}}", "after": "public override void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long byte0 = blocks[blocksOffset++] & 0xFF;long byte1 = blocks[blocksOffset++] & 0xFF;long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 16) | (byte1 << 8) | byte2;}}" }, { "index": 4568, "before": "public GetCloudFrontOriginAccessIdentityResult getCloudFrontOriginAccessIdentity(GetCloudFrontOriginAccessIdentityRequest request) {request = beforeClientExecution(request);return executeGetCloudFrontOriginAccessIdentity(request);}", "after": "public virtual GetCloudFrontOriginAccessIdentityResponse GetCloudFrontOriginAccessIdentity(GetCloudFrontOriginAccessIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCloudFrontOriginAccessIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCloudFrontOriginAccessIdentityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4569, "before": "public boolean include(RevWalk walker, RevCommit c) {return false;}", "after": "public override bool Include(RevWalk walker, RevCommit c){return false;}" }, { "index": 4570, "before": "public DocumentStoredFieldVisitor() {this.fieldsToAdd = null;}", "after": "public DocumentStoredFieldVisitor(){this.fieldsToAdd = null;}" }, { "index": 4571, "before": "public int addConditionalFormatting(CellRangeAddress[] regions, HSSFConditionalFormattingRule[] cfRules) {if (regions == null) {throw new IllegalArgumentException(\"regions must not be null\");}for(CellRangeAddress range : regions) range.validate(SpreadsheetVersion.EXCEL97);if (cfRules == null) {throw new IllegalArgumentException(\"cfRules must not be null\");}if (cfRules.length == 0) {throw new IllegalArgumentException(\"cfRules must not be empty\");}if (cfRules.length > 3) {throw new IllegalArgumentException(\"Number of rules must not exceed 3\");}CFRuleBase[] rules = new CFRuleBase[cfRules.length];for (int i = 0; i != cfRules.length; i++) {rules[i] = cfRules[i].getCfRuleRecord();}CFRecordsAggregate cfra = new CFRecordsAggregate(regions, rules);return _conditionalFormattingTable.add(cfra);}", "after": "public int AddConditionalFormatting(CellRangeAddress[] regions, IConditionalFormattingRule[] cfRules){if (regions == null){throw new ArgumentException(\"regions must not be null\");}if (cfRules == null){throw new ArgumentException(\"cfRules must not be null\");}if (cfRules.Length == 0){throw new ArgumentException(\"cfRules must not be empty\");}if (cfRules.Length > 3){throw new ArgumentException(\"Number of rules must not exceed 3\");}CFRuleRecord[] rules = new CFRuleRecord[cfRules.Length];for (int i = 0; i != cfRules.Length; i++){rules[i] = ((HSSFConditionalFormattingRule)cfRules[i]).CfRuleRecord;}CFRecordsAggregate cfra = new CFRecordsAggregate(regions, rules);return _conditionalFormattingTable.Add(cfra);}" }, { "index": 4572, "before": "public FloatBuffer get(float[] dst, int dstOffset, int floatCount) {Arrays.checkOffsetAndCount(dst.length, dstOffset, floatCount);if (floatCount > remaining()) {throw new BufferUnderflowException();}for (int i = dstOffset; i < dstOffset + floatCount; ++i) {dst[i] = get();}return this;}", "after": "public virtual java.nio.FloatBuffer get(float[] dst, int dstOffset, int floatCount){java.util.Arrays.checkOffsetAndCount(dst.Length, dstOffset, floatCount);if (floatCount > remaining()){throw new java.nio.BufferUnderflowException();}{for (int i = dstOffset; i < dstOffset + floatCount; ++i){dst[i] = get();}}return this;}" }, { "index": 4573, "before": "public void rewind() {pos = 0;}", "after": "public void Rewind(){pos = 0;}" }, { "index": 4574, "before": "public boolean include(TreeWalk walker) {final int cmp = walker.isPathPrefix(raw, raw.length);if (cmp > 0)throw StopWalkException.INSTANCE;return cmp == 0;}", "after": "public override bool Include(TreeWalk walker){int cmp = walker.IsPathPrefix(raw, raw.Length);if (cmp > 0){throw StopWalkException.INSTANCE;}return cmp == 0;}" }, { "index": 4575, "before": "public TagDeliveryStreamResult tagDeliveryStream(TagDeliveryStreamRequest request) {request = beforeClientExecution(request);return executeTagDeliveryStream(request);}", "after": "public virtual TagDeliveryStreamResponse TagDeliveryStream(TagDeliveryStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = TagDeliveryStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = TagDeliveryStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4576, "before": "public NormalisedDecimal normaliseBaseTen() {return NormalisedDecimal.create(_significand, _binaryExponent);}", "after": "public NormalisedDecimal NormaliseBaseTen(){return NormalisedDecimal.Create(_significand, _binaryExponent);}" }, { "index": 4577, "before": "public NavigableSet descendingKeySet() {return new BoundedMap(!ascending, from, fromBound, to, toBound).navigableKeySet();}", "after": "public java.util.NavigableSet descendingKeySet(){return new java.util.TreeMap.BoundedMap(this._enclosing, !this.ascending, this.from, this.fromBound, this.to, this.toBound).navigableKeySet();}" }, { "index": 4578, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(_row);out.writeShort(_firstCol);int nItems = _xfs.length;for (short xf : _xfs) {out.writeShort(xf);}out.writeShort(_lastCol);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(_row);out1.WriteShort(_first_col);int nItems = _xfs.Length;for (int i = 0; i < nItems; i++){out1.WriteShort(_xfs[i]);}out1.WriteShort(_last_col);}" }, { "index": 4579, "before": "public byte[] toByteArray() {byte[] result = new byte[LONG_SIZE];LittleEndian.putLong( result, 0, fileTime);return result;}", "after": "public byte[] ToByteArray(){byte[] result = new byte[SIZE];LittleEndian.PutInt(result, 0 * LittleEndian.INT_SIZE, _dwLowDateTime);LittleEndian.PutInt(result, 1 * LittleEndian.INT_SIZE, _dwHighDateTime);return result;}" }, { "index": 4580, "before": "public DiffCommand diff() {return new DiffCommand(repo);}", "after": "public virtual DiffCommand Diff(){return new DiffCommand(repo);}" }, { "index": 4581, "before": "public ModifySnapshotAttributeResult modifySnapshotAttribute(ModifySnapshotAttributeRequest request) {request = beforeClientExecution(request);return executeModifySnapshotAttribute(request);}", "after": "public virtual ModifySnapshotAttributeResponse ModifySnapshotAttribute(ModifySnapshotAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifySnapshotAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifySnapshotAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4582, "before": "public CreateSubnetResult createSubnet(CreateSubnetRequest request) {request = beforeClientExecution(request);return executeCreateSubnet(request);}", "after": "public virtual CreateSubnetResponse CreateSubnet(CreateSubnetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSubnetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSubnetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4583, "before": "@Override public List subList(int start, int end) {return new UnmodifiableRandomAccessList(list.subList(start, end));}", "after": "public override java.util.List subList(int start, int end){return new java.util.Collections.UnmodifiableRandomAccessList(list.subList(start, end));}" }, { "index": 4584, "before": "public long getClipboardFormat() throws HPSFException{if (!(getClipboardFormatTag() == CFTAG_WINDOWS))throw new HPSFException(\"Clipboard Format Tag of Thumbnail must \" +\"be CFTAG_WINDOWS.\");return LittleEndian.getInt(getThumbnail(), OFFSET_CF);}", "after": "public long GetClipboardFormat(){if (!(ClipboardFormatTag == CFTAG_WINDOWS))throw new HPSFException(\"Clipboard Format Tag of Thumbnail must \" +\"be CFTAG_WINDOWS.\");return LittleEndian.GetInt(this.ThumbnailData, OFFSet_CF);}" }, { "index": 4585, "before": "public HSSFDataValidation(CellRangeAddressList regions, DataValidationConstraint constraint) {_regions = regions;_constraint = (DVConstraint)constraint;}", "after": "public HSSFDataValidation(CellRangeAddressList regions, IDataValidationConstraint constraint){_regions = regions;_constraint = (DVConstraint)constraint;}" }, { "index": 4586, "before": "public DiffCommand setProgressMonitor(ProgressMonitor monitor) {if (monitor == null) {monitor = NullProgressMonitor.INSTANCE;}this.monitor = monitor;return this;}", "after": "public virtual NGit.Api.DiffCommand SetProgressMonitor(ProgressMonitor monitor){this.monitor = monitor;return this;}" }, { "index": 4587, "before": "public DeleteSegmentResult deleteSegment(DeleteSegmentRequest request) {request = beforeClientExecution(request);return executeDeleteSegment(request);}", "after": "public virtual DeleteSegmentResponse DeleteSegment(DeleteSegmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSegmentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSegmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4588, "before": "public AcceptVpcPeeringConnectionResult acceptVpcPeeringConnection(AcceptVpcPeeringConnectionRequest request) {request = beforeClientExecution(request);return executeAcceptVpcPeeringConnection(request);}", "after": "public virtual AcceptVpcPeeringConnectionResponse AcceptVpcPeeringConnection(AcceptVpcPeeringConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptVpcPeeringConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptVpcPeeringConnectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4589, "before": "public final FloatBuffer put(float[] src) {return put(src, 0, src.length);}", "after": "public java.nio.FloatBuffer put(float[] src){return put(src, 0, src.Length);}" }, { "index": 4590, "before": "public PortugueseLightStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public PortugueseLightStemFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 4591, "before": "public RefPtg(int row, int column, boolean isRowRelative, boolean isColumnRelative) {super(row, column, isRowRelative, isColumnRelative);}", "after": "public RefPtg(int row, int column, bool isRowRelative, bool isColumnRelative):base(row, column, isRowRelative, isColumnRelative){Row = row;Column = column;IsRowRelative = isRowRelative;IsColRelative = isColumnRelative;}" }, { "index": 4592, "before": "public ExportJournalToS3Result exportJournalToS3(ExportJournalToS3Request request) {request = beforeClientExecution(request);return executeExportJournalToS3(request);}", "after": "public virtual ExportJournalToS3Response ExportJournalToS3(ExportJournalToS3Request request){var options = new InvokeOptions();options.RequestMarshaller = ExportJournalToS3RequestMarshaller.Instance;options.ResponseUnmarshaller = ExportJournalToS3ResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4593, "before": "public AssociatePhoneNumbersWithVoiceConnectorGroupResult associatePhoneNumbersWithVoiceConnectorGroup(AssociatePhoneNumbersWithVoiceConnectorGroupRequest request) {request = beforeClientExecution(request);return executeAssociatePhoneNumbersWithVoiceConnectorGroup(request);}", "after": "public virtual AssociatePhoneNumbersWithVoiceConnectorGroupResponse AssociatePhoneNumbersWithVoiceConnectorGroup(AssociatePhoneNumbersWithVoiceConnectorGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociatePhoneNumbersWithVoiceConnectorGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociatePhoneNumbersWithVoiceConnectorGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4594, "before": "public RecursivePrefixTreeStrategy(SpatialPrefixTree grid, String fieldName) {super(grid, fieldName);prefixGridScanLevel = grid.getMaxLevels() - 4;}", "after": "public RecursivePrefixTreeStrategy(SpatialPrefixTree grid, string fieldName): base(grid, fieldName, true) {prefixGridScanLevel = grid.MaxLevels - 4;}" }, { "index": 4595, "before": "public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int j = 0; j < iterations; ++j) {values[valuesOffset++] = ((blocks[blocksOffset++] & 0xFFL) << 8) | (blocks[blocksOffset++] & 0xFFL);}}", "after": "public override void Decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations){for (int j = 0; j < iterations; ++j){values[valuesOffset++] = ((blocks[blocksOffset++] & 0xFF) << 8) | (blocks[blocksOffset++] & 0xFF);}}" }, { "index": 4596, "before": "public GetAlbumsByNamesRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"GetAlbumsByNames\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetAlbumsByNamesRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"GetAlbumsByNames\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 4597, "before": "public SendRawEmailRequest(RawMessage rawMessage) {setRawMessage(rawMessage);}", "after": "public SendRawEmailRequest(RawMessage rawMessage){_rawMessage = rawMessage;}" }, { "index": 4598, "before": "public boolean equals(Object other) {return sameClassAs(other) &&equalsTo(getClass().cast(other));}", "after": "public override bool Equals(object o){if (!(o is NGramPhraseQuery)){return false;}NGramPhraseQuery other = (NGramPhraseQuery)o;if (this.n != other.n){return false;}return base.Equals(other);}" }, { "index": 4599, "before": "public Rule(String suffix, int min, String replacement) {this.suffix = suffix.toCharArray();this.replacement = replacement.toCharArray();this.min = min;}", "after": "public Rule(string suffix, int min, string replacement){this.m_suffix = suffix.ToCharArray();this.m_replacement = replacement.ToCharArray();this.m_min = min;}" }, { "index": 4600, "before": "public ListDataSetsResult listDataSets(ListDataSetsRequest request) {request = beforeClientExecution(request);return executeListDataSets(request);}", "after": "public virtual ListDataSetsResponse ListDataSets(ListDataSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDataSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDataSetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4601, "before": "public int lastIndexOf(E object, int to) {Object[] snapshot = elements;return lastIndexOf(object, snapshot, 0, to);}", "after": "public virtual int lastIndexOf(E @object, int to){object[] snapshot = elements;return lastIndexOf(@object, snapshot, 0, to);}" }, { "index": 4602, "before": "public DBCluster stopDBCluster(StopDBClusterRequest request) {request = beforeClientExecution(request);return executeStopDBCluster(request);}", "after": "public virtual StopDBClusterResponse StopDBCluster(StopDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = StopDBClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4603, "before": "public ListRuleNamesByTargetResult listRuleNamesByTarget(ListRuleNamesByTargetRequest request) {request = beforeClientExecution(request);return executeListRuleNamesByTarget(request);}", "after": "public virtual ListRuleNamesByTargetResponse ListRuleNamesByTarget(ListRuleNamesByTargetRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRuleNamesByTargetRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRuleNamesByTargetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4604, "before": "public void readFully(byte[] buf, int off, int len){_in.readFully(buf, off, len);}", "after": "public void ReadFully(byte[] buf, int off, int len){_in.ReadFully(buf, off, len);}" }, { "index": 4605, "before": "public SSTRecord(RecordInputStream in) {field_1_num_strings = in.readInt();field_2_num_unique_strings = in.readInt();field_3_strings = new IntMapper<>();deserializer = new SSTDeserializer(field_3_strings);if(field_1_num_strings == 0) {field_2_num_unique_strings = 0;return;}deserializer.manufactureStrings( field_2_num_unique_strings, in );}", "after": "public SSTRecord(RecordInputStream in1){field_1_num_strings = in1.ReadInt();field_2_num_unique_strings = in1.ReadInt();field_3_strings = new IntMapper();deserializer = new SSTDeserializer(field_3_strings);deserializer.ManufactureStrings(field_2_num_unique_strings, in1);}" }, { "index": 4606, "before": "public DeleteBatchPredictionResult deleteBatchPrediction(DeleteBatchPredictionRequest request) {request = beforeClientExecution(request);return executeDeleteBatchPrediction(request);}", "after": "public virtual DeleteBatchPredictionResponse DeleteBatchPrediction(DeleteBatchPredictionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteBatchPredictionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteBatchPredictionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4607, "before": "public SetReceiptRulePositionResult setReceiptRulePosition(SetReceiptRulePositionRequest request) {request = beforeClientExecution(request);return executeSetReceiptRulePosition(request);}", "after": "public virtual SetReceiptRulePositionResponse SetReceiptRulePosition(SetReceiptRulePositionRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetReceiptRulePositionRequestMarshaller.Instance;options.ResponseUnmarshaller = SetReceiptRulePositionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4608, "before": "public Ref3DPtg(String cellref, int externIdx ) {this(new CellReference(cellref), externIdx);}", "after": "public Ref3DPtg(String cellref, int externIdx){CellReference c = new CellReference(cellref);Row=c.Row;Column=c.Col;IsColRelative=!c.IsColAbsolute;IsRowRelative=!c.IsRowAbsolute;ExternSheetIndex=externIdx;}" }, { "index": 4609, "before": "public DisableAvailabilityZonesForLoadBalancerRequest(String loadBalancerName, java.util.List availabilityZones) {setLoadBalancerName(loadBalancerName);setAvailabilityZones(availabilityZones);}", "after": "public DisableAvailabilityZonesForLoadBalancerRequest(string loadBalancerName, List availabilityZones){_loadBalancerName = loadBalancerName;_availabilityZones = availabilityZones;}" }, { "index": 4610, "before": "public Set> entrySet() {Set> es = entrySet;return (es != null) ? es : (entrySet = new EntrySet());}", "after": "public override java.util.Set> entrySet(){java.util.Set> es = _entrySet;return (es != null) ? es : (_entrySet = new java.util.HashMap.EntrySet(this));}" }, { "index": 4611, "before": "public char[] get(int posStart, int length) {assert length > 0;assert inBounds(posStart): \"posStart=\" + posStart + \" length=\" + length;final int startIndex = getIndex(posStart);final int endIndex = getIndex(posStart + length);final char[] result = new char[length];if (endIndex >= startIndex && length < buffer.length) {System.arraycopy(buffer, startIndex, result, 0, endIndex-startIndex);} else {final int part1 = buffer.length-startIndex;System.arraycopy(buffer, startIndex, result, 0, part1);System.arraycopy(buffer, 0, result, buffer.length-startIndex, length-part1);}return result;}", "after": "public char[] Get(int posStart, int length){Debug.Assert(length > 0);Debug.Assert(InBounds(posStart), \"posStart=\" + posStart + \" length=\" + length);int startIndex = GetIndex(posStart);int endIndex = GetIndex(posStart + length);var result = new char[length];if (endIndex >= startIndex && length < buffer.Length){Array.Copy(buffer, startIndex, result, 0, endIndex - startIndex);}else{int part1 = buffer.Length - startIndex;Array.Copy(buffer, startIndex, result, 0, part1);Array.Copy(buffer, 0, result, buffer.Length - startIndex, length - part1);}return result;}" }, { "index": 4612, "before": "public IndexInput openInput(String name, IOContext context) throws IOException {ensureOpen();if (context.context != Context.MERGE || context.mergeInfo.estimatedMergeBytes < minBytesDirect || fileLength(name) < minBytesDirect) {return delegate.openInput(name, context);} else {return new NativeUnixIndexInput(getDirectory().resolve(name), mergeBufferSize);}}", "after": "public IndexInput openInput(string name, IOContext context) throws IOException{ensureOpen();if (context.context != Context.MERGE || context.mergeInfo.estimatedMergeBytes < minBytesDirect || fileLength(name) < minBytesDirect){return @delegate.openInput(name, context);}else{return new NativeUnixIndexInput(new File(Directory, name), mergeBufferSize);}}" }, { "index": 4613, "before": "public EscherArrayProperty(short id, byte[] complexData) {this(id, safeSize(complexData == null ? 0 : complexData.length));setComplexData(complexData);}", "after": "public EscherArrayProperty(short id, byte[] complexData): base(id, CheckComplexData(complexData)){emptyComplexPart = complexData.Length == 0;}" }, { "index": 4614, "before": "public NamePtg(int nameIndex) {field_1_label_index = 1 + nameIndex; }", "after": "public NamePtg(int nameIndex){field_1_label_index = 1 + nameIndex; }" }, { "index": 4615, "before": "public DescribeHumanLoopResult describeHumanLoop(DescribeHumanLoopRequest request) {request = beforeClientExecution(request);return executeDescribeHumanLoop(request);}", "after": "public virtual DescribeHumanLoopResponse DescribeHumanLoop(DescribeHumanLoopRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeHumanLoopRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeHumanLoopResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4616, "before": "public PutDedicatedIpInPoolResult putDedicatedIpInPool(PutDedicatedIpInPoolRequest request) {request = beforeClientExecution(request);return executePutDedicatedIpInPool(request);}", "after": "public virtual PutDedicatedIpInPoolResponse PutDedicatedIpInPool(PutDedicatedIpInPoolRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutDedicatedIpInPoolRequestMarshaller.Instance;options.ResponseUnmarshaller = PutDedicatedIpInPoolResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4617, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName()).append(\" [XCT\");sb.append(\" nCRNs=\").append(field_1_number_crn_records);sb.append(\" sheetIx=\").append(field_2_sheet_table_index);sb.append(\"]\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetType().Name).Append(\" [XCT\");sb.Append(\" nCRNs=\").Append(field_1_number_crn_records);sb.Append(\" sheetIx=\").Append(field_2_sheet_table_index);sb.Append(\"]\");return sb.ToString();}" }, { "index": 4618, "before": "public ObjectId idFor(int objectType, long length, InputStream in)throws IOException {SHA1 md = SHA1.newInstance();md.update(Constants.encodedTypeString(objectType));md.update((byte) ' ');md.update(Constants.encodeASCII(length));md.update((byte) 0);byte[] buf = buffer();while (length > 0) {int n = in.read(buf, 0, (int) Math.min(length, buf.length));if (n < 0)throw new EOFException(JGitText.get().unexpectedEndOfInput);md.update(buf, 0, n);length -= n;}return md.toObjectId();}", "after": "public virtual ObjectId IdFor(int objectType, long length, InputStream @in){MessageDigest md = Digest();md.Update(Constants.EncodedTypeString(objectType));md.Update(unchecked((byte)' '));md.Update(Constants.EncodeASCII(length));md.Update(unchecked((byte)0));byte[] buf = Buffer();while (length > 0){int n = @in.Read(buf, 0, (int)Math.Min(length, buf.Length));if (n < 0){throw new EOFException(\"Unexpected end of input\");}md.Update(buf, 0, n);length -= n;}return ObjectId.FromRaw(md.Digest());}" }, { "index": 4619, "before": "public List makeLuceneSubQueriesField(String fn, BasicQueryFactory qf) {List luceneSubQueries = new ArrayList<>();Iterator sqi = getSubQueriesIterator();while (sqi.hasNext()) {luceneSubQueries.add( (sqi.next()).makeLuceneQueryField(fn, qf));}return luceneSubQueries;}", "after": "public virtual IList MakeLuceneSubQueriesField(string fn, BasicQueryFactory qf){List luceneSubQueries = new List();IEnumerator sqi = GetSubQueriesEnumerator();while (sqi.MoveNext()){luceneSubQueries.Add((sqi.Current).MakeLuceneQueryField(fn, qf));}return luceneSubQueries;}" }, { "index": 4620, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[SHARED FEATURE]\\n\");buffer.append(\"[/SHARED FEATURE]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[SHARED FEATURE]\\n\");buffer.Append(\"[/SHARED FEATURE]\\n\");return buffer.ToString();}" }, { "index": 4621, "before": "public QueryNode process(QueryNode queryTree) throws QueryNodeException {Operator op = getQueryConfigHandler().get(ConfigurationKeys.DEFAULT_OPERATOR);if (op == null) {throw new IllegalArgumentException(\"StandardQueryConfigHandler.ConfigurationKeys.DEFAULT_OPERATOR should be set on the QueryConfigHandler\");}this.usingAnd = StandardQueryConfigHandler.Operator.AND == op;return processIteration(queryTree);}", "after": "public virtual IQueryNode Process(IQueryNode queryTree){Operator? op = GetQueryConfigHandler().Get(ConfigurationKeys.DEFAULT_OPERATOR);if (op == null){throw new ArgumentException(\"StandardQueryConfigHandler.ConfigurationKeys.DEFAULT_OPERATOR should be set on the QueryConfigHandler\");}this.usingAnd = Operator.AND == op;return ProcessIteration(queryTree);}" }, { "index": 4622, "before": "public DBCluster startDBCluster(StartDBClusterRequest request) {request = beforeClientExecution(request);return executeStartDBCluster(request);}", "after": "public virtual StartDBClusterResponse StartDBCluster(StartDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDBClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4623, "before": "public Ptg[] getParsedExpression() {return Formula.getTokens(field_5_name_definition);}", "after": "public Ptg[] GetParsedExpression(){return Formula.GetTokens(field_5_name_definition);}" }, { "index": 4624, "before": "public final long getFilePointer() { return bufferStart + bufferPosition; }", "after": "public override sealed long GetFilePointer(){return bufferStart + bufferPosition;}" }, { "index": 4625, "before": "public ListDevicesResult listDevices(ListDevicesRequest request) {request = beforeClientExecution(request);return executeListDevices(request);}", "after": "public virtual ListDevicesResponse ListDevices(ListDevicesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDevicesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDevicesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4626, "before": "public ApplyTokenRequest() {super(\"OnsMqtt\", \"2019-12-11\", \"ApplyToken\", \"onsmqtt\");setMethod(MethodType.POST);}", "after": "public ApplyTokenRequest(): base(\"OnsMqtt\", \"2019-12-11\", \"ApplyToken\", \"onsmqtt\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 4627, "before": "public EnableVpcClassicLinkDnsSupportResult enableVpcClassicLinkDnsSupport(EnableVpcClassicLinkDnsSupportRequest request) {request = beforeClientExecution(request);return executeEnableVpcClassicLinkDnsSupport(request);}", "after": "public virtual EnableVpcClassicLinkDnsSupportResponse EnableVpcClassicLinkDnsSupport(EnableVpcClassicLinkDnsSupportRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableVpcClassicLinkDnsSupportRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableVpcClassicLinkDnsSupportResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4628, "before": "public Cluster modifyClusterDbRevision(ModifyClusterDbRevisionRequest request) {request = beforeClientExecution(request);return executeModifyClusterDbRevision(request);}", "after": "public virtual ModifyClusterDbRevisionResponse ModifyClusterDbRevision(ModifyClusterDbRevisionRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClusterDbRevisionRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClusterDbRevisionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4629, "before": "public final LongBuffer put(long[] src) {return put(src, 0, src.length);}", "after": "public java.nio.LongBuffer put(long[] src){return put(src, 0, src.Length);}" }, { "index": 4630, "before": "public Object clone() {try {return super.clone();} catch (CloneNotSupportedException e) {throw new AssertionError();}}", "after": "public virtual object clone(){throw new System.NotImplementedException();}" }, { "index": 4631, "before": "public LinkFaceRequest() {super(\"LinkFace\", \"2018-07-20\", \"LinkFace\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public LinkFaceRequest(): base(\"LinkFace\", \"2018-07-20\", \"LinkFace\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 4632, "before": "public RemoveAttributesResult removeAttributes(RemoveAttributesRequest request) {request = beforeClientExecution(request);return executeRemoveAttributes(request);}", "after": "public virtual RemoveAttributesResponse RemoveAttributes(RemoveAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4633, "before": "public boolean remove(Object o) {return ConcurrentHashMap.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": 4634, "before": "public String toFormulaString(String[] operands) {return \"(\" + operands[0] + \")\";}", "after": "public String ToFormulaString(String[] operands){return \"(\" + operands[0] + \")\";}" }, { "index": 4635, "before": "public boolean equals(Object obj) {if (this == obj) return true;if (obj == null) return false;if (getClass() != obj.getClass()) return false;PostingsAndFreq other = (PostingsAndFreq) obj;if (position != other.position) return false;if (terms == null) return other.terms == null;return Arrays.equals(terms, other.terms);}", "after": "public override bool Equals(object obj){if (this == obj){return true;}if (obj == null){return false;}if (this.GetType() != obj.GetType()){return false;}PostingsAndFreq other = (PostingsAndFreq)obj;if (docFreq != other.docFreq){return false;}if (position != other.position){return false;}if (terms == null){return other.terms == null;}return Arrays.Equals(terms, other.terms);}" }, { "index": 4636, "before": "public ModifyMountTargetSecurityGroupsResult modifyMountTargetSecurityGroups(ModifyMountTargetSecurityGroupsRequest request) {request = beforeClientExecution(request);return executeModifyMountTargetSecurityGroups(request);}", "after": "public virtual ModifyMountTargetSecurityGroupsResponse ModifyMountTargetSecurityGroups(ModifyMountTargetSecurityGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyMountTargetSecurityGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyMountTargetSecurityGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4637, "before": "public ListBatchInferenceJobsResult listBatchInferenceJobs(ListBatchInferenceJobsRequest request) {request = beforeClientExecution(request);return executeListBatchInferenceJobs(request);}", "after": "public virtual ListBatchInferenceJobsResponse ListBatchInferenceJobs(ListBatchInferenceJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListBatchInferenceJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListBatchInferenceJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4638, "before": "public long get(int i) {if (count <= i)throw new ArrayIndexOutOfBoundsException(i);return entries[i];}", "after": "public virtual long Get(int i){if (count <= i){throw Sharpen.Extensions.CreateIndexOutOfRangeException(i);}return entries[i];}" }, { "index": 4639, "before": "public LimitTokenPositionFilterFactory(Map args) {super(args);maxTokenPosition = requireInt(args, MAX_TOKEN_POSITION_KEY);consumeAllTokens = getBoolean(args, CONSUME_ALL_TOKENS_KEY, false);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public LimitTokenPositionFilterFactory(IDictionary args): base(args){maxTokenPosition = RequireInt32(args, MAX_TOKEN_POSITION_KEY);consumeAllTokens = GetBoolean(args, CONSUME_ALL_TOKENS_KEY, false);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 4640, "before": "public SaveRecalcRecord(RecordInputStream in) {field_1_recalc = in.readShort();}", "after": "public SaveRecalcRecord(RecordInputStream in1){field_1_recalc = in1.ReadShort();}" }, { "index": 4641, "before": "public DeleteSecurityGroupResult deleteSecurityGroup(DeleteSecurityGroupRequest request) {request = beforeClientExecution(request);return executeDeleteSecurityGroup(request);}", "after": "public virtual DeleteSecurityGroupResponse DeleteSecurityGroup(DeleteSecurityGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSecurityGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSecurityGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4642, "before": "public IntervalSet getExpectedTokens() {return getATN().getExpectedTokens(getState(), getContext());}", "after": "public virtual IntervalSet GetExpectedTokens(){return Atn.GetExpectedTokens(State, Context);}" }, { "index": 4643, "before": "public void print(long l) {print(String.valueOf(l));}", "after": "public virtual void print(long l){print(l.ToString());}" }, { "index": 4644, "before": "public ResetPersonalPINResult resetPersonalPIN(ResetPersonalPINRequest request) {request = beforeClientExecution(request);return executeResetPersonalPIN(request);}", "after": "public virtual ResetPersonalPINResponse ResetPersonalPIN(ResetPersonalPINRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetPersonalPINRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetPersonalPINResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4645, "before": "public StartSmartHomeApplianceDiscoveryResult startSmartHomeApplianceDiscovery(StartSmartHomeApplianceDiscoveryRequest request) {request = beforeClientExecution(request);return executeStartSmartHomeApplianceDiscovery(request);}", "after": "public virtual StartSmartHomeApplianceDiscoveryResponse StartSmartHomeApplianceDiscovery(StartSmartHomeApplianceDiscoveryRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartSmartHomeApplianceDiscoveryRequestMarshaller.Instance;options.ResponseUnmarshaller = StartSmartHomeApplianceDiscoveryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4646, "before": "public Query parse(String queryText) {if (\"*\".equals(queryText.trim())) {return new MatchAllDocsQuery();}char data[] = queryText.toCharArray();char buffer[] = new char[data.length];State state = new State(data, buffer, 0, data.length);parseSubQuery(state);if (state.top == null) {return new MatchNoDocsQuery(\"empty string passed to query parser\");} else {return state.top;}}", "after": "public Query Parse(string queryText){char[] data = queryText.ToCharArray();char[] buffer = new char[data.Length];State state = new State(data, buffer, 0, data.Length);ParseSubQuery(state);return state.Top;}" }, { "index": 4647, "before": "public FuzzySet downsize(float targetMaxSaturation){int numBitsSet = filter.cardinality();FixedBitSet rightSizedBitSet = filter;int rightSizedBitSetSize = bloomSize;for (int i = 0; i < usableBitSetSizes.length; i++) {int candidateBitsetSize = usableBitSetSizes[i];float candidateSaturation = (float) numBitsSet/ (float) candidateBitsetSize;if (candidateSaturation <= targetMaxSaturation) {rightSizedBitSetSize = candidateBitsetSize;break;}}if (rightSizedBitSetSize < bloomSize) {rightSizedBitSet = new FixedBitSet(rightSizedBitSetSize + 1);int bitIndex = 0;do {bitIndex = filter.nextSetBit(bitIndex);if (bitIndex != DocIdSetIterator.NO_MORE_DOCS) {int downSizedBitIndex = bitIndex & rightSizedBitSetSize;rightSizedBitSet.set(downSizedBitIndex);bitIndex++;}} while ( (bitIndex >= 0)&&(bitIndex<=bloomSize));} else {return null;}return new FuzzySet(rightSizedBitSet,rightSizedBitSetSize, hashFunction);}", "after": "public virtual FuzzySet Downsize(float targetMaxSaturation){var numBitsSet = _filter.Cardinality();FixedBitSet rightSizedBitSet;var rightSizedBitSetSize = _bloomSize;foreach (var candidateBitsetSize in from candidateBitsetSize in _usableBitSetSizeslet candidateSaturation = numBitsSet /(float) candidateBitsetSizewhere candidateSaturation <= targetMaxSaturationselect candidateBitsetSize){rightSizedBitSetSize = candidateBitsetSize;break;}if (rightSizedBitSetSize < _bloomSize){rightSizedBitSet = new FixedBitSet(rightSizedBitSetSize + 1);var bitIndex = 0;do{bitIndex = _filter.NextSetBit(bitIndex);if (bitIndex < 0) continue;var downSizedBitIndex = bitIndex & rightSizedBitSetSize;rightSizedBitSet.Set(downSizedBitIndex);bitIndex++;} while ((bitIndex >= 0) && (bitIndex <= _bloomSize));}else{return null;}return new FuzzySet(rightSizedBitSet, rightSizedBitSetSize, _hashFunction);}" }, { "index": 4648, "before": "public void set(int val) {this.val = val;returned = false;}", "after": "public virtual void Set(int val){this.val = val;returned = false;}" }, { "index": 4649, "before": "public Set getRequiredFields() {return Collections.unmodifiableSet(EnumSet.of(URIishField.PATH));}", "after": "public virtual ICollection GetRequiredFields(){return Sharpen.Collections.UnmodifiableSet(EnumSet.Of(TransportProtocol.URIishField.PATH));}" }, { "index": 4650, "before": "public Config(Config defaultConfig) {baseConfig = defaultConfig;state = new AtomicReference<>(newState());}", "after": "public Config(NGit.Config defaultConfig){baseConfig = defaultConfig;state = new AtomicReference(NewState());}" }, { "index": 4651, "before": "public PutAccountSuppressionAttributesResult putAccountSuppressionAttributes(PutAccountSuppressionAttributesRequest request) {request = beforeClientExecution(request);return executePutAccountSuppressionAttributes(request);}", "after": "public virtual PutAccountSuppressionAttributesResponse PutAccountSuppressionAttributes(PutAccountSuppressionAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAccountSuppressionAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAccountSuppressionAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4652, "before": "public BufferedIndexInput(String resourceDesc, int bufferSize) {super(resourceDesc);checkBufferSize(bufferSize);this.bufferSize = bufferSize;}", "after": "public BufferedIndexInput(string resourceDesc, int bufferSize): base(resourceDesc){CheckBufferSize(bufferSize);this.bufferSize = bufferSize;}" }, { "index": 4653, "before": "public DescribeDocumentClassifierResult describeDocumentClassifier(DescribeDocumentClassifierRequest request) {request = beforeClientExecution(request);return executeDescribeDocumentClassifier(request);}", "after": "public virtual DescribeDocumentClassifierResponse DescribeDocumentClassifier(DescribeDocumentClassifierRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDocumentClassifierRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDocumentClassifierResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4654, "before": "public static Function getBasicFunction(int functionIndex) {switch (functionIndex) {case FunctionID.INDIRECT:case FunctionID.EXTERNAL_FUNC:return null;}Function result = functions[functionIndex];if (result == null) {throw new NotImplementedException(\"FuncIx=\" + functionIndex);}return result;}", "after": "public static Function GetBasicFunction(int functionIndex){switch (functionIndex){case FunctionID.INDIRECT:case FunctionID.EXTERNAL_FUNC:return null;}Function result = functions[functionIndex];if (result == null){throw new NotImplementedException(\"FuncIx=\" + functionIndex);}return result;}" }, { "index": 4655, "before": "public DeleteFacetResult deleteFacet(DeleteFacetRequest request) {request = beforeClientExecution(request);return executeDeleteFacet(request);}", "after": "public virtual DeleteFacetResponse DeleteFacet(DeleteFacetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFacetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFacetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4656, "before": "public NameXPtg getNameXPtg(String name, int sheetRefIndex, UDFFinder udf) {LinkTable lnk = getOrCreateLinkTable();NameXPtg xptg = lnk.getNameXPtg(name, sheetRefIndex);if(xptg == null && udf.findFunction(name) != null) {xptg = lnk.addNameXPtg(name);}return xptg;}", "after": "public NameXPtg GetNameXPtg(String name, int sheetRefIndex, UDFFinder udf){LinkTable lnk = OrCreateLinkTable;NameXPtg xptg = lnk.GetNameXPtg(name, sheetRefIndex);if (xptg == null && udf.FindFunction(name) != null){xptg = lnk.AddNameXPtg(name);}return xptg;}" }, { "index": 4657, "before": "public int getIndex() {return index;}", "after": "public virtual int getIndex(){return index;}" }, { "index": 4658, "before": "public final String toFormulaString() {return formatReferenceAsString();}", "after": "public override String ToFormulaString(){return FormatReferenceAsString();}" }, { "index": 4659, "before": "public AllocateTransitVirtualInterfaceResult allocateTransitVirtualInterface(AllocateTransitVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeAllocateTransitVirtualInterface(request);}", "after": "public virtual AllocateTransitVirtualInterfaceResponse AllocateTransitVirtualInterface(AllocateTransitVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AllocateTransitVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = AllocateTransitVirtualInterfaceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4660, "before": "public PushbackInputStream(InputStream in) {super(in);buf = (in == null) ? null : new byte[1];pos = 1;}", "after": "public PushbackInputStream(java.io.InputStream @in) : base(@in){buf = (@in == null) ? null : new byte[1];pos = 1;}" }, { "index": 4661, "before": "public int compareTo(PostingsAndFreq other) {if (position != other.position) {return position - other.position;}if (nTerms != other.nTerms) {return nTerms - other.nTerms;}if (nTerms == 0) {return 0;}for (int i=0; i(request, options);}" }, { "index": 4665, "before": "public DoubleConstValueSource(double constant) {this.constant = constant;this.fv = (float)constant;this.lv = (long)constant;}", "after": "public DoubleConstValueSource(double constant){this.constant = constant;this.fv = (float)constant;this.lv = (long)constant;}" }, { "index": 4666, "before": "public void yypushback(int number) {if ( number > yylength() )zzScanError(ZZ_PUSHBACK_2BIG);zzMarkedPos -= number;}", "after": "public void YyPushBack(int number){if (number > YyLength){ZzScanError(ZZ_PUSHBACK_2BIG);}zzMarkedPos -= number;}" }, { "index": 4667, "before": "public int getReturnState(int index) {return returnStates[index];}", "after": "public override int GetReturnState(int index){return returnStates[index];}" }, { "index": 4668, "before": "final public SrndQuery WQuery() throws ParseException {SrndQuery q;ArrayList queries;Token wt;q = PrimaryQuery();label_6:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case W:;break;default:jj_la1[4] = jj_gen;break label_6;}wt = jj_consume_token(W);queries = new ArrayList();queries.add(q); q = PrimaryQuery();queries.add(q);q = getDistanceQuery(queries, true , wt, true );}{if (true) return q;}throw new Error(\"Missing return statement in function\");}", "after": "public SrndQuery WQuery(){SrndQuery q;IList queries;Token wt;q = PrimaryQuery();while (true){switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.W:;break;default:jj_la1[4] = jj_gen;goto label_6;}wt = Jj_consume_token(RegexpToken.W);queries = new List();queries.Add(q); q = PrimaryQuery();queries.Add(q);q = GetDistanceQuery(queries, true , wt, true );}label_6:{ if (true) return q; }throw new Exception(\"Missing return statement in function\");}" }, { "index": 4669, "before": "public ListHITsResult listHITs(ListHITsRequest request) {request = beforeClientExecution(request);return executeListHITs(request);}", "after": "public virtual ListHITsResponse ListHITs(ListHITsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListHITsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListHITsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4670, "before": "public Set getSubsections(String section) {return getState().getSubsections(section);}", "after": "public virtual ICollection GetSubsections(string section){return GetState().GetSubsections(section);}" }, { "index": 4671, "before": "public AttachDiskResult attachDisk(AttachDiskRequest request) {request = beforeClientExecution(request);return executeAttachDisk(request);}", "after": "public virtual AttachDiskResponse AttachDisk(AttachDiskRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachDiskRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachDiskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4672, "before": "public DescribePoliciesResult describePolicies(DescribePoliciesRequest request) {request = beforeClientExecution(request);return executeDescribePolicies(request);}", "after": "public virtual DescribePoliciesResponse DescribePolicies(DescribePoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePoliciesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4673, "before": "public boolean isEmpty(){return _limit == 0;}", "after": "public bool IsEmpty(){return _limit == 0;}" }, { "index": 4674, "before": "public HSSFCombobox(HSSFShape parent, HSSFAnchor anchor) {super(parent, anchor);super.setShapeType(OBJECT_TYPE_COMBO_BOX);CommonObjectDataSubRecord cod = (CommonObjectDataSubRecord) getObjRecord().getSubRecords().get(0);cod.setObjectType(CommonObjectDataSubRecord.OBJECT_TYPE_COMBO_BOX);}", "after": "public HSSFCombobox(HSSFShape parent, HSSFAnchor anchor): base(parent, anchor){base.ShapeType = (OBJECT_TYPE_COMBO_BOX);CommonObjectDataSubRecord cod = (CommonObjectDataSubRecord)GetObjRecord().SubRecords[0];cod.ObjectType = CommonObjectType.ComboBox;}" }, { "index": 4675, "before": "public void setCalcMode(short calcmode){field_1_calcmode = calcmode;}", "after": "public void SetCalcMode(short calcmode){field_1_calcmode = calcmode;}" }, { "index": 4676, "before": "public void resize(double scale) {resize(scale,scale);}", "after": "public void Resize(double scale){Resize(scale, scale);}" }, { "index": 4677, "before": "public AssociateAddressResult associateAddress(AssociateAddressRequest request) {request = beforeClientExecution(request);return executeAssociateAddress(request);}", "after": "public virtual AssociateAddressResponse AssociateAddress(AssociateAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateAddressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4678, "before": "public ConfirmConnectionResult confirmConnection(ConfirmConnectionRequest request) {request = beforeClientExecution(request);return executeConfirmConnection(request);}", "after": "public virtual ConfirmConnectionResponse ConfirmConnection(ConfirmConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = ConfirmConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = ConfirmConnectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4679, "before": "public UseSelFSRecord(boolean b) {this(0);_options = useNaturalLanguageFormulasFlag.setBoolean(_options, b);}", "after": "public UseSelFSRecord(bool b): this(0){_options = useNaturalLanguageFormulasFlag.SetBoolean(_options, b);}" }, { "index": 4680, "before": "public void start(String originalText, TokenStream stream) {offsetAtt = stream.addAttribute(OffsetAttribute.class);currentNumFrags = 1;}", "after": "public virtual void Start(string originalText, TokenStream stream){offsetAtt = stream.AddAttribute();currentNumFrags = 1;}" }, { "index": 4681, "before": "public FieldFragList createFieldFragList( FieldPhraseList fieldPhraseList, int fragCharSize ){return createFieldFragList( fieldPhraseList, new SimpleFieldFragList( fragCharSize ), fragCharSize );}", "after": "public override FieldFragList CreateFieldFragList(FieldPhraseList fieldPhraseList, int fragCharSize){return CreateFieldFragList(fieldPhraseList, new SimpleFieldFragList(fragCharSize), fragCharSize);}" }, { "index": 4682, "before": "public StopImageBuilderResult stopImageBuilder(StopImageBuilderRequest request) {request = beforeClientExecution(request);return executeStopImageBuilder(request);}", "after": "public virtual StopImageBuilderResponse StopImageBuilder(StopImageBuilderRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopImageBuilderRequestMarshaller.Instance;options.ResponseUnmarshaller = StopImageBuilderResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4683, "before": "public final int readUnsignedShort() throws IOException {return ((int) readShort()) & 0xffff;}", "after": "public virtual int readUnsignedShort(){throw new System.NotImplementedException();}" }, { "index": 4684, "before": "public static long pop_xor(long[] arr1, long[] arr2, int wordOffset, int numWords) {long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i) {popCount += Long.bitCount(arr1[i] ^ arr2[i]);}return popCount;}", "after": "public static long Pop_Xor(long[] arr1, long[] arr2, int wordOffset, int numWords){long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i){popCount += (arr1[i] ^ arr2[i]).PopCount();}return popCount;}" }, { "index": 4685, "before": "public GetDocumentResult getDocument(GetDocumentRequest request) {request = beforeClientExecution(request);return executeGetDocument(request);}", "after": "public virtual GetDocumentResponse GetDocument(GetDocumentRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDocumentRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDocumentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4686, "before": "public AutocompletePagedResponse(SimpleResponse autocompleteResponse) {super(autocompleteResponse.getRequest(),autocompleteResponse.getStatusCode(),autocompleteResponse.getHeaders(),autocompleteResponse.getValue().getResults(),null,null);}", "after": "public partial interface IOperations{Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));}" }, { "index": 4687, "before": "public PutPermissionResult putPermission(PutPermissionRequest request) {request = beforeClientExecution(request);return executePutPermission(request);}", "after": "public virtual PutPermissionResponse PutPermission(PutPermissionRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutPermissionRequestMarshaller.Instance;options.ResponseUnmarshaller = PutPermissionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4688, "before": "public void serialize(LittleEndianOutput out) {out.writeInt(0);out.writeInt(getFirstRow());out.writeInt(getLastRowAdd1());out.writeInt(field_4_zero);for (int k = 0; k < getNumDbcells(); k++) {out.writeInt(getDbcellAt(k));}}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(0);out1.WriteInt(FirstRow);out1.WriteInt(LastRowAdd1);out1.WriteInt(field_4_zero);for (int k = 0; k < NumDbcells; k++){out1.WriteInt(GetDbcellAt(k));}}" }, { "index": 4689, "before": "public HSSFFormulaEvaluator(HSSFWorkbook workbook) {this(workbook, null);}", "after": "public HSSFFormulaEvaluator(IWorkbook workbook): this(workbook, null){this.workbook = workbook;}" }, { "index": 4690, "before": "public int hash2(char carray[]) {int hash = 5381;for (int i = 0; i < carray.length; i++) {char d = carray[i];hash = ((hash << 5) + hash) + d & 0x00FF;hash = ((hash << 5) + hash) + d >> 8;}return hash;}", "after": "public virtual int Hash2(char c){int hash = 5381;hash = ((hash << 5) + hash) + c & 0x00FF;hash = ((hash << 5) + hash) + c >> 8;return hash;}" }, { "index": 4691, "before": "public void fillRoundRect(int x, int y, int width, int height,int arcWidth, int arcHeight){if (logger.check( POILogger.WARN ))logger.log(POILogger.WARN,\"fillRoundRect not supported\");}", "after": "public void FillRoundRect(int x, int y, int width, int height,int arcWidth, int arcHeight){if (Logger.Check(POILogger.WARN))Logger.Log(POILogger.WARN, \"FillRoundRect not supported\");}" }, { "index": 4692, "before": "public static SimpleFraction buildFractionExactDenominator(double val, int exactDenom){int num = (int)Math.round(val*exactDenom);return new SimpleFraction(num,exactDenom);}", "after": "public static SimpleFraction BuildFractionExactDenominator(double val, int exactDenom){int num = (int)Math.Round(val * (double)exactDenom, MidpointRounding.AwayFromZero);return new SimpleFraction(num, exactDenom);}" }, { "index": 4693, "before": "public DescribeInsightRulesResult describeInsightRules(DescribeInsightRulesRequest request) {request = beforeClientExecution(request);return executeDescribeInsightRules(request);}", "after": "public virtual DescribeInsightRulesResponse DescribeInsightRules(DescribeInsightRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInsightRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInsightRulesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4694, "before": "public ListMFADevicesRequest(String userName) {setUserName(userName);}", "after": "public ListMFADevicesRequest(string userName){_userName = userName;}" }, { "index": 4695, "before": "public void removeRow(RowRecord row) {int rowIndex = row.getRowNumber();_valuesAgg.removeAllCellsValuesForRow(rowIndex);Integer key = Integer.valueOf(rowIndex);RowRecord rr = _rowRecords.remove(key);if (rr == null) {throw new RuntimeException(\"Invalid row index (\" + key.intValue() + \")\");}if (row != rr) {_rowRecords.put(key, rr);throw new RuntimeException(\"Attempt to remove row that does not belong to this sheet\");}_rowRecordValues = null;}", "after": "public void RemoveRow(RowRecord row){int rowIndex = row.RowNumber;_valuesAgg.RemoveAllCellsValuesForRow(rowIndex);int key = rowIndex;RowRecord rr = (RowRecord)_rowRecords[key];_rowRecords.Remove(key);if (rr == null){throw new Exception(\"Invalid row index (\" + key + \")\");}if (row != rr){_rowRecords[key] = rr;throw new Exception(\"Attempt to remove row that does not belong to this sheet\");}_rowRecordValues = null;}" }, { "index": 4696, "before": "public DeleteRepositoryPolicyResult deleteRepositoryPolicy(DeleteRepositoryPolicyRequest request) {request = beforeClientExecution(request);return executeDeleteRepositoryPolicy(request);}", "after": "public virtual DeleteRepositoryPolicyResponse DeleteRepositoryPolicy(DeleteRepositoryPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRepositoryPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRepositoryPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4697, "before": "public BackupRecord(RecordInputStream in) {field_1_backup = in.readShort();}", "after": "public BackupRecord(RecordInputStream in1){field_1_backup = in1.ReadShort();}" }, { "index": 4698, "before": "public DiffCommand setNewTree(AbstractTreeIterator newTree) {this.newTree = newTree;return this;}", "after": "public virtual NGit.Api.DiffCommand SetNewTree(AbstractTreeIterator newTree){this.newTree = newTree;return this;}" }, { "index": 4699, "before": "public void decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block = blocks[blocksOffset++];for (int shift = 63; shift >= 0; shift -= 1) {values[valuesOffset++] = (block >>> shift) & 1;}}}", "after": "public override void Decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = blocks[blocksOffset++];for (int shift = 63; shift >= 0; shift -= 1){values[valuesOffset++] = ((long)((ulong)block >> shift)) & 1;}}}" }, { "index": 4700, "before": "public void execute(Lexer lexer) {action.execute(lexer);}", "after": "public void Execute(Lexer lexer){action.Execute(lexer);}" }, { "index": 4701, "before": "public DeleteModelPackageResult deleteModelPackage(DeleteModelPackageRequest request) {request = beforeClientExecution(request);return executeDeleteModelPackage(request);}", "after": "public virtual DeleteModelPackageResponse DeleteModelPackage(DeleteModelPackageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteModelPackageRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteModelPackageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4702, "before": "public Object getValue() {return value;}", "after": "public virtual string getValue(){return mValue;}" }, { "index": 4703, "before": "public void applyFont( short fontIndex ) {applyFont(0, _string.getCharCount(), fontIndex);}", "after": "public void ApplyFont(short fontIndex){ApplyFont(0, _string.CharCount, fontIndex);}" }, { "index": 4704, "before": "public SliceWriter(IntBlockPool pool) {this.pool = pool;}", "after": "public SliceWriter(Int32BlockPool pool){this.pool = pool;}" }, { "index": 4705, "before": "public DisableVgwRoutePropagationResult disableVgwRoutePropagation(DisableVgwRoutePropagationRequest request) {request = beforeClientExecution(request);return executeDisableVgwRoutePropagation(request);}", "after": "public virtual DisableVgwRoutePropagationResponse DisableVgwRoutePropagation(DisableVgwRoutePropagationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableVgwRoutePropagationRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableVgwRoutePropagationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4706, "before": "public String toString() {return getClass().getName() + \" [\" +_name.getNameText() +\"]\";}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(\" [\");sb.Append(_name.NameText);sb.Append(\"]\");return sb.ToString();}" }, { "index": 4707, "before": "public AttachObjectResult attachObject(AttachObjectRequest request) {request = beforeClientExecution(request);return executeAttachObject(request);}", "after": "public virtual AttachObjectResponse AttachObject(AttachObjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachObjectRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachObjectResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4708, "before": "public DBClusterParameterGroup copyDBClusterParameterGroup(CopyDBClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeCopyDBClusterParameterGroup(request);}", "after": "public virtual CopyDBClusterParameterGroupResponse CopyDBClusterParameterGroup(CopyDBClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopyDBClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CopyDBClusterParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4709, "before": "public GetRoutesResult getRoutes(GetRoutesRequest request) {request = beforeClientExecution(request);return executeGetRoutes(request);}", "after": "public virtual GetRoutesResponse GetRoutes(GetRoutesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRoutesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRoutesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4710, "before": "public Entry next() {if (hasNext()) {Entry r = next;next = peek();return r;}throw new NoSuchElementException();}", "after": "public override KeyValuePair Next(){if (this.HasNext()){Ent r = this.next;this.next = this.Peek();return r;}throw new NoSuchElementException();}" }, { "index": 4711, "before": "public boolean containsKey(Object key) {return ((key instanceof Long && dictionary.containsKey(key)) || dictionary.containsValue(key));}", "after": "public override bool ContainsKey(Object key){if (key is long){return base.ContainsKey((long)key);}if (key is String){return base.ContainsKey((long)dictionaryNameToID[(key)]);}return false;}" }, { "index": 4712, "before": "public UpdateNamespaceRequest() {super(\"cr\", \"2016-06-07\", \"UpdateNamespace\", \"cr\");setUriPattern(\"/namespace/[Namespace]\");setMethod(MethodType.POST);}", "after": "public UpdateNamespaceRequest(): base(\"cr\", \"2016-06-07\", \"UpdateNamespace\", \"cr\", \"openAPI\"){UriPattern = \"/namespace/[Namespace]\";Method = MethodType.POST;}" }, { "index": 4713, "before": "public ListNotebookInstancesResult listNotebookInstances(ListNotebookInstancesRequest request) {request = beforeClientExecution(request);return executeListNotebookInstances(request);}", "after": "public virtual ListNotebookInstancesResponse ListNotebookInstances(ListNotebookInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListNotebookInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListNotebookInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4714, "before": "public RoaringDocIdSet build() {flush();return new RoaringDocIdSet(sets, cardinality);}", "after": "public override WAH8DocIdSet Build(){if (this.wordNum != -1){AddWord(wordNum, (byte)word);}return base.Build();}" }, { "index": 4715, "before": "public DescribeGroupsResult describeGroups(DescribeGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeGroups(request);}", "after": "public virtual DescribeGroupsResponse DescribeGroups(DescribeGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4716, "before": "public GetShippingLabelResult getShippingLabel(GetShippingLabelRequest request) {request = beforeClientExecution(request);return executeGetShippingLabel(request);}", "after": "public virtual GetShippingLabelResponse GetShippingLabel(GetShippingLabelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetShippingLabelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetShippingLabelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4717, "before": "public MonitorInstancesRequest(java.util.List instanceIds) {setInstanceIds(instanceIds);}", "after": "public MonitorInstancesRequest(List instanceIds){_instanceIds = instanceIds;}" }, { "index": 4718, "before": "public AtomTransition(ATNState target, int label) {super(target);this.label = label;}", "after": "public AtomTransition(ATNState target, int token): base(target){this.token = token;}" }, { "index": 4719, "before": "public MulRKRecord(RecordInputStream in) {field_1_row = in.readUShort();field_2_first_col = in.readShort();field_3_rks = RkRec.parseRKs(in);field_4_last_col = in.readShort();}", "after": "public MulRKRecord(RecordInputStream in1){field_1_row = in1.ReadUShort();field_2_first_col = in1.ReadShort();field_3_rks = RkRec.ParseRKs(in1);field_4_last_col = in1.ReadShort();}" }, { "index": 4720, "before": "public State complete() {if (this.stateRegistry == null) throw new IllegalStateException();if (root.hasChildren()) replaceOrRegister(root);stateRegistry = null;return root;}", "after": "public State Complete(){if (this.stateRegistry == null){throw new InvalidOperationException();}if (root.HasChildren){ReplaceOrRegister(root);}stateRegistry = null;return root;}" }, { "index": 4721, "before": "public DescribeWorkspaceDirectoriesResult describeWorkspaceDirectories(DescribeWorkspaceDirectoriesRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspaceDirectories(request);}", "after": "public virtual DescribeWorkspaceDirectoriesResponse DescribeWorkspaceDirectories(DescribeWorkspaceDirectoriesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkspaceDirectoriesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkspaceDirectoriesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4722, "before": "@Override public E remove(int index) {synchronized (CopyOnWriteArrayList.this) {slice.checkElementIndex(index);slice.checkConcurrentModification(elements);E removed = CopyOnWriteArrayList.this.remove(slice.from + index);slice = new Slice(elements, slice.from, slice.to - 1);return removed;}}", "after": "public virtual E remove(int index){lock (this){E removed = (E)elements[index];removeRange(index, index + 1);return removed;}}" }, { "index": 4723, "before": "public StreamTokenizer(InputStream is) {this();if (is == null) {throw new NullPointerException();}inStream = is;}", "after": "public StreamTokenizer(java.io.InputStream @is){throw new System.NotImplementedException();}" }, { "index": 4724, "before": "public ModifyVpcPeeringConnectionOptionsResult modifyVpcPeeringConnectionOptions(ModifyVpcPeeringConnectionOptionsRequest request) {request = beforeClientExecution(request);return executeModifyVpcPeeringConnectionOptions(request);}", "after": "public virtual ModifyVpcPeeringConnectionOptionsResponse ModifyVpcPeeringConnectionOptions(ModifyVpcPeeringConnectionOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpcPeeringConnectionOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpcPeeringConnectionOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4725, "before": "public GetAppResult getApp(GetAppRequest request) {request = beforeClientExecution(request);return executeGetApp(request);}", "after": "public virtual GetAppResponse GetApp(GetAppRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAppRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAppResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4726, "before": "public void start(int totalTasks) {if (!isMainThread())throw new IllegalStateException();pm.start(totalTasks);}", "after": "public override void Start(int totalTasks){if (!IsMainThread()){throw new InvalidOperationException();}pm.Start(totalTasks);}" }, { "index": 4727, "before": "public ModifyFleetResult modifyFleet(ModifyFleetRequest request) {request = beforeClientExecution(request);return executeModifyFleet(request);}", "after": "public virtual ModifyFleetResponse ModifyFleet(ModifyFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyFleetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4728, "before": "public UpdateFolderResult updateFolder(UpdateFolderRequest request) {request = beforeClientExecution(request);return executeUpdateFolder(request);}", "after": "public virtual UpdateFolderResponse UpdateFolder(UpdateFolderRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFolderRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFolderResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4729, "before": "public CreateAppResult createApp(CreateAppRequest request) {request = beforeClientExecution(request);return executeCreateApp(request);}", "after": "public virtual CreateAppResponse CreateApp(CreateAppRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAppRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAppResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4730, "before": "public static DVConstraint createDateConstraint(int comparisonOperator, String expr1, String expr2, String dateFormat) {if (expr1 == null) {throw new IllegalArgumentException(\"expr1 must be supplied\");}OperatorType.validateSecondArg(comparisonOperator, expr2);SimpleDateFormat df = null;if (dateFormat != null) {df = new SimpleDateFormat(dateFormat, LocaleUtil.getUserLocale());df.setTimeZone(LocaleUtil.getUserTimeZone());}String formula1 = getFormulaFromTextExpression(expr1);Double value1 = formula1 == null ? convertDate(expr1, df) : null;String formula2 = getFormulaFromTextExpression(expr2);Double value2 = formula2 == null ? convertDate(expr2, df) : null;return new DVConstraint(ValidationType.DATE, comparisonOperator, formula1, formula2, value1, value2, null);}", "after": "public static DVConstraint CreateDateConstraint(int comparisonOperator, String expr1, String expr2, String dateFormat){if (expr1 == null){throw new ArgumentException(\"expr1 must be supplied\");}OperatorType.ValidateSecondArg(comparisonOperator, expr2);SimpleDateFormat df = dateFormat == null ? null : new SimpleDateFormat(dateFormat);String formula1 = GetFormulaFromTextExpression(expr1);Double value1 = formula1 == null ? ConvertDate(expr1, df) : Double.NaN;String formula2 = GetFormulaFromTextExpression(expr2);Double value2 = formula2 == null ? ConvertDate(expr2, df) : Double.NaN;return new DVConstraint(ValidationType.DATE, comparisonOperator, formula1, formula2, value1, value2, null);}" }, { "index": 4731, "before": "public final String toString() {return getClass().getName() + \" [\" + lookupName(_functionIndex) + \" nArgs=\" + _numberOfArgs + \"]\";}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(\" [\");sb.Append(LookupName(_functionIndex));sb.Append(\" nArgs=\").Append(_numberOfArgs);sb.Append(\"]\");return sb.ToString();}" }, { "index": 4732, "before": "public ModifyDefaultCreditSpecificationResult modifyDefaultCreditSpecification(ModifyDefaultCreditSpecificationRequest request) {request = beforeClientExecution(request);return executeModifyDefaultCreditSpecification(request);}", "after": "public virtual ModifyDefaultCreditSpecificationResponse ModifyDefaultCreditSpecification(ModifyDefaultCreditSpecificationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDefaultCreditSpecificationRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDefaultCreditSpecificationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4733, "before": "public Iterator iterator() {try {return root.iterator(new MutableObjectId(), reader);} catch (IOException e) {throw new RuntimeException(e);}}", "after": "public override Sharpen.Iterator Iterator(){try{return root.Iterator(new MutableObjectId(), reader);}catch (IOException e){throw new RuntimeException(e);}}" }, { "index": 4734, "before": "public ObjectId idFor(TreeFormatter formatter) {return delegate().idFor(formatter);}", "after": "public virtual ObjectId IdFor(TreeFormatter formatter){return formatter.ComputeId(this);}" }, { "index": 4735, "before": "public ClientException(String errCode, String errMsg, String requestId) {this(errCode, errMsg);this.requestId = requestId;this.setErrorType(ErrorType.Client);}", "after": "public ClientException(string errCode, string errMsg, string requestId) : base(string.Format(\"{0}" }, { "index": 4736, "before": "public int getInputLength() {return this.inputLength;}", "after": "public virtual int getInputLength(){return this.inputLength;}" }, { "index": 4737, "before": "public void onInvalidated() {Log.d(TAG, mSrc + \": invalidated\");}", "after": "public override void onInvalidated(){this._enclosing.refreshExpGroupMetadataList(true, true);this._enclosing.notifyDataSetInvalidated();}" }, { "index": 4738, "before": "public TerminalNode addChild(Token matchedToken) {TerminalNodeImpl t = new TerminalNodeImpl(matchedToken);addAnyChild(t);t.setParent(this);return t;}", "after": "public virtual ITerminalNode AddChild(IToken matchedToken){TerminalNodeImpl t = new TerminalNodeImpl(matchedToken);AddChild(t);t.Parent = this;return t;}" }, { "index": 4739, "before": "public boolean isUnknown() {return type == Type.UNKNOWN;}", "after": "public virtual bool IsUnknown(){return type == JapaneseTokenizerType.UNKNOWN;}" }, { "index": 4740, "before": "public boolean promptPassword(String msg) {CredentialItem.Password p = new CredentialItem.Password(msg);if (provider.get(uri, p)) {password = new String(p.getValue());return true;}password = null;return false;}", "after": "public virtual bool PromptPassword(string msg){CredentialItem.Password p = new CredentialItem.Password(msg);if (provider.Get(uri, p)){password = new string(p.GetValue());return true;}else{password = null;return false;}}" }, { "index": 4741, "before": "public CreateTransitGatewayResult createTransitGateway(CreateTransitGatewayRequest request) {request = beforeClientExecution(request);return executeCreateTransitGateway(request);}", "after": "public virtual CreateTransitGatewayResponse CreateTransitGateway(CreateTransitGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4742, "before": "public CreateCampaignResult createCampaign(CreateCampaignRequest request) {request = beforeClientExecution(request);return executeCreateCampaign(request);}", "after": "public virtual CreateCampaignResponse CreateCampaign(CreateCampaignRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCampaignRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCampaignResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4743, "before": "public ClientException(String errCode, String errMsg) {super(errCode + \" : \" + errMsg);this.errCode = errCode;this.errMsg = errMsg;this.setErrorType(ErrorType.Client);}", "after": "public ClientException(string errCode, string errMsg) : base(errCode + \" : \" + errMsg){ErrorCode = errCode;ErrorMessage = errMsg;ErrorType = ErrorType.Client;}" }, { "index": 4744, "before": "public void removeConditionalFormatting(int index) {_conditionalFormattingTable.remove(index);}", "after": "public void RemoveConditionalFormatting(int index){_conditionalFormattingTable.Remove(index);}" }, { "index": 4745, "before": "public static void fill(float[] array, float value) {for (int i = 0; i < array.length; i++) {array[i] = value;}}", "after": "public static void fill(float[] array, float value){{for (int i = 0; i < array.Length; i++){array[i] = value;}}}" }, { "index": 4746, "before": "public TokenStream create(TokenStream input) {return dictionary == null ? input : new StemmerOverrideFilter(input, dictionary);}", "after": "public override TokenStream Create(TokenStream input){return dictionary == null ? input : new StemmerOverrideFilter(input, dictionary);}" }, { "index": 4747, "before": "public ListS3ResourcesResult listS3Resources(ListS3ResourcesRequest request) {request = beforeClientExecution(request);return executeListS3Resources(request);}", "after": "public virtual ListS3ResourcesResponse ListS3Resources(ListS3ResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListS3ResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListS3ResourcesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4748, "before": "public String toString() {return new StringBuilder(\"'\").appendCodePoint(from).append(\"'..'\").appendCodePoint(to).append(\"'\").toString();}", "after": "public override string ToString(){return \"'\" + (char)from + \"'..'\" + (char)to + \"'\";}" }, { "index": 4749, "before": "public DoubleBuffer compact() {System.arraycopy(backingArray, position + offset, backingArray, offset, remaining());position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}", "after": "public override java.nio.DoubleBuffer compact(){System.Array.Copy(backingArray, _position + offset, backingArray, offset, remaining());_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}" }, { "index": 4750, "before": "public CreatePresignedNotebookInstanceUrlResult createPresignedNotebookInstanceUrl(CreatePresignedNotebookInstanceUrlRequest request) {request = beforeClientExecution(request);return executeCreatePresignedNotebookInstanceUrl(request);}", "after": "public virtual CreatePresignedNotebookInstanceUrlResponse CreatePresignedNotebookInstanceUrl(CreatePresignedNotebookInstanceUrlRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePresignedNotebookInstanceUrlRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePresignedNotebookInstanceUrlResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4751, "before": "public IterationRecord(RecordInputStream in) {_flags = in.readShort();}", "after": "public IterationRecord(RecordInputStream in1){_flags = in1.ReadShort();}" }, { "index": 4752, "before": "public CreateUserInfoRequest() {super(\"cr\", \"2016-06-07\", \"CreateUserInfo\", \"cr\");setUriPattern(\"/users\");setMethod(MethodType.PUT);}", "after": "public CreateUserInfoRequest(): base(\"cr\", \"2016-06-07\", \"CreateUserInfo\", \"cr\", \"openAPI\"){UriPattern = \"/users\";Method = MethodType.PUT;}" }, { "index": 4753, "before": "public void notifyUpdatedBlankCell(BookSheetKey bsk, int rowIndex, int columnIndex, IEvaluationListener evaluationListener) {if (_usedBlankCellGroup != null) {if (_usedBlankCellGroup.containsCell(bsk, rowIndex, columnIndex)) {clearFormulaEntry();recurseClearCachedFormulaResults(evaluationListener);}}}", "after": "public void NotifyUpdatedBlankCell(BookSheetKey bsk, int rowIndex, int columnIndex, IEvaluationListener evaluationListener){if (_usedBlankCellGroup != null){if (_usedBlankCellGroup.ContainsCell(bsk, rowIndex, columnIndex)){ClearFormulaEntry();RecurseClearCachedFormulaResults(evaluationListener);}}}" }, { "index": 4754, "before": "public IntervalSet addAll(IntSet set) {if ( set==null ) {return this;}if (set instanceof IntervalSet) {IntervalSet other = (IntervalSet)set;int n = other.intervals.size();for (int i = 0; i < n; i++) {Interval I = other.intervals.get(i);this.add(I.a,I.b);}}else {for (int value : set.toList()) {add(value);}}return this;}", "after": "public virtual Antlr4.Runtime.Misc.IntervalSet AddAll(IIntSet set){if (set == null){return this;}if (set is Antlr4.Runtime.Misc.IntervalSet){Antlr4.Runtime.Misc.IntervalSet other = (Antlr4.Runtime.Misc.IntervalSet)set;int n = other.intervals.Count;for (int i = 0; i < n; i++){Interval I = other.intervals[i];this.Add(I.a, I.b);}}else{foreach (int value in set.ToList()){Add(value);}}return this;}" }, { "index": 4755, "before": "public OpenStringBuilder(char[] arr, int len) {set(arr, len);}", "after": "public OpenStringBuilder(char[] arr, int len){Set(arr, len);}" }, { "index": 4756, "before": "public boolean isRefLogIncludingResult() {return refLogIncludeResult;}", "after": "public virtual bool IsRefLogIncludingResult(){return refLogIncludeResult;}" }, { "index": 4757, "before": "public HeaderFooterRecord(byte[] data) {_rawData = data;}", "after": "public HeaderFooterRecord(byte[] data){_rawData = data;}" }, { "index": 4758, "before": "public byte[] getPath(){return Arrays.copyOf(path, path.length);}", "after": "public byte[] GetPath(){return Arrays.CopyOf(path, path.Length);}" }, { "index": 4759, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[REFMODE]\\n\");buffer.append(\" .mode = \").append(Integer.toHexString(getMode())).append(\"\\n\");buffer.append(\"[/REFMODE]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[REFMODE]\\n\");buffer.Append(\" .mode = \").Append(StringUtil.ToHexString(Mode)).Append(\"\\n\");buffer.Append(\"[/REFMODE]\\n\");return buffer.ToString();}" }, { "index": 4760, "before": "public HSSFChildAnchor() {_escherChildAnchor = new EscherChildAnchorRecord();}", "after": "public HSSFChildAnchor(){_escherChildAnchor = new EscherChildAnchorRecord();}" }, { "index": 4761, "before": "public final boolean isRegistered() {return !canonicalName.startsWith(\"x-\") && !canonicalName.startsWith(\"X-\");}", "after": "public bool isRegistered(){return !canonicalName.StartsWith(\"x-\") && !canonicalName.StartsWith(\"X-\");}" }, { "index": 4762, "before": "@Override public boolean remove(Object o) {if (containsKey(o)) {unfiltered.remove(o);return true;}return false;}", "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": 4763, "before": "public static Token newToken(int ofKind, String image){switch(ofKind){default : return new Token(ofKind, image);}}", "after": "public static Token NewToken(int ofKind, string image){switch (ofKind){default: return new Token(ofKind, image);}}" }, { "index": 4764, "before": "public float overheadPerValue(int bitsPerValue) {assert isSupported(bitsPerValue);final int valuesPerBlock = 64 / bitsPerValue;final int overhead = 64 % bitsPerValue;return (float) overhead / valuesPerBlock;}", "after": "public virtual float OverheadPerValue(int bitsPerValue){Debug.Assert(IsSupported(bitsPerValue));return 0f;}" }, { "index": 4765, "before": "public void clear() {backingMap.clear();}", "after": "public override void clear(){backingMap.clear();}" }, { "index": 4766, "before": "public CompoundException(Collection why) {super(format(why));causeList = Collections.unmodifiableList(new ArrayList<>(why));}", "after": "public CompoundException(ICollection why) : base(Format(why)){causeList = Sharpen.Collections.UnmodifiableList(new AList(why));}" }, { "index": 4767, "before": "public DeleteEnvironmentConfigurationRequest(String applicationName, String environmentName) {setApplicationName(applicationName);setEnvironmentName(environmentName);}", "after": "public DeleteEnvironmentConfigurationRequest(string applicationName, string environmentName){_applicationName = applicationName;_environmentName = environmentName;}" }, { "index": 4768, "before": "public ModifyImageAttributeRequest(String imageId, String attribute) {setImageId(imageId);setAttribute(attribute);}", "after": "public ModifyImageAttributeRequest(string imageId, string attribute){_imageId = imageId;_attribute = attribute;}" }, { "index": 4769, "before": "public LastCellOfRowDummyRecord(int row, int lastColumnNumber) {this.row = row;this.lastColumnNumber = lastColumnNumber;}", "after": "public LastCellOfRowDummyRecord(int row, int lastColumnNumber){this.row = row;this.lastColumnNumber = lastColumnNumber;}" }, { "index": 4770, "before": "public String toString() {return path.toString();}", "after": "public override string ToString(){return path.ToString();}" }, { "index": 4771, "before": "public String toFormulaString(String[] operands) {StringBuilder buffer = new StringBuilder();buffer.append(ADD);buffer.append(operands[ 0]);return buffer.toString();}", "after": "public override String ToFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.Append(Add);buffer.Append(operands[0]);return buffer.ToString();}" }, { "index": 4772, "before": "public void abort() {try {reset();} finally {if (nextTermsHash != null) {nextTermsHash.abort();}}}", "after": "public override void Abort(){Reset();try{consumer.Abort();}finally{if (nextTermsHash != null){nextTermsHash.Abort();}}}" }, { "index": 4773, "before": "public CreateUsagePlanKeyResult createUsagePlanKey(CreateUsagePlanKeyRequest request) {request = beforeClientExecution(request);return executeCreateUsagePlanKey(request);}", "after": "public virtual CreateUsagePlanKeyResponse CreateUsagePlanKey(CreateUsagePlanKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateUsagePlanKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateUsagePlanKeyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4774, "before": "public boolean isOutOfBounds(int lowValidIx, int highValidIx) {if(_offset < lowValidIx) {return true;}if(getLastIndex() > highValidIx) {return true;}return false;}", "after": "public bool IsOutOfBounds(int lowValidIx, int highValidIx){if (_offset < lowValidIx){return true;}if (LastIndex > highValidIx){return true;}return false;}" }, { "index": 4775, "before": "public CherryPickStatus getStatus() {return status;}", "after": "public virtual CherryPickResult.CherryPickStatus GetStatus(){return status;}" }, { "index": 4776, "before": "public static String getRomanization(String s) {StringBuilder out = new StringBuilder();try {getRomanization(out, s);} catch (IOException bogus) {throw new RuntimeException(bogus);}return out.toString();}", "after": "public static string GetRomanization(string s){StringBuilder result = new StringBuilder();try{GetRomanization(result, s);}catch (IOException bogus){throw new Exception(bogus.ToString(), bogus);}return result.ToString();}" }, { "index": 4777, "before": "public GetDistributionRequest(String id) {setId(id);}", "after": "public GetDistributionRequest(string id){_id = id;}" }, { "index": 4778, "before": "public String signString(String stringToSign, String accessKeySecret) {return null;}", "after": "public override string SignString(string stringToSign, string accessKeySecret){return \"\";}" }, { "index": 4779, "before": "public Repository open(C req, String name)throws RepositoryNotFoundException, ServiceNotEnabledException {if (isUnreasonableName(name))throw new RepositoryNotFoundException(name);Repository db = exports.get(nameWithDotGit(name));if (db != null) {db.incrementOpen();return db;}for (File base : exportBase) {File dir = FileKey.resolve(new File(base, name), FS.DETECTED);if (dir == null)continue;try {FileKey key = FileKey.exact(dir, FS.DETECTED);db = RepositoryCache.open(key, true);} catch (IOException e) {throw new RepositoryNotFoundException(name, e);}try {if (isExportOk(req, name, db)) {return db;}throw new ServiceNotEnabledException();} catch (RuntimeException | IOException e) {db.close();throw new RepositoryNotFoundException(name, e);} catch (ServiceNotEnabledException e) {db.close();throw e;}}if (exportBase.size() == 1) {File dir = new File(exportBase.iterator().next(), name);throw new RepositoryNotFoundException(name,new RepositoryNotFoundException(dir));}throw new RepositoryNotFoundException(name);}", "after": "public override Repository Open(C req, string name){if (IsUnreasonableName(name)){throw new RepositoryNotFoundException(name);}Repository db = exports.Get(NameWithDotGit(name));if (db != null){db.IncrementOpen();return db;}foreach (FilePath @base in exportBase){FilePath dir = RepositoryCache.FileKey.Resolve(new FilePath(@base, name), FS.DETECTED);if (dir == null){continue;}try{RepositoryCache.FileKey key = RepositoryCache.FileKey.Exact(dir, FS.DETECTED);db = RepositoryCache.Open(key, true);}catch (IOException e){throw new RepositoryNotFoundException(name, e);}try{if (IsExportOk(req, name, db)){return db;}else{throw new ServiceNotEnabledException();}}catch (RuntimeException e){db.Close();throw new RepositoryNotFoundException(name, e);}catch (IOException e){db.Close();throw new RepositoryNotFoundException(name, e);}catch (ServiceNotEnabledException e){db.Close();throw;}}if (exportBase.Count == 1){FilePath dir = new FilePath(exportBase.Iterator().Next(), name);throw new RepositoryNotFoundException(name, new RepositoryNotFoundException(dir));}throw new RepositoryNotFoundException(name);}" }, { "index": 4780, "before": "public synchronized boolean addIfAbsent(E object) {if (contains(object)) {return false;}add(object);return true;}", "after": "public virtual bool addIfAbsent(E @object){lock (this){if (contains(@object)){return false;}add(@object);return true;}}" }, { "index": 4781, "before": "public EnableTransitGatewayRouteTablePropagationResult enableTransitGatewayRouteTablePropagation(EnableTransitGatewayRouteTablePropagationRequest request) {request = beforeClientExecution(request);return executeEnableTransitGatewayRouteTablePropagation(request);}", "after": "public virtual EnableTransitGatewayRouteTablePropagationResponse EnableTransitGatewayRouteTablePropagation(EnableTransitGatewayRouteTablePropagationRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableTransitGatewayRouteTablePropagationRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableTransitGatewayRouteTablePropagationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4782, "before": "public PatternKeywordMarkerFilter(TokenStream in, Pattern pattern) {super(in);this.matcher = pattern.matcher(\"\");}", "after": "public PatternKeywordMarkerFilter(TokenStream @in, Regex pattern): base(@in){termAtt = AddAttribute();this.matcher = pattern.Match(\"\");this.pattern = pattern;}" }, { "index": 4783, "before": "public AddInstanceGroupsRequest(java.util.List instanceGroups, String jobFlowId) {setInstanceGroups(instanceGroups);setJobFlowId(jobFlowId);}", "after": "public AddInstanceGroupsRequest(string jobFlowId, List instanceGroups){_jobFlowId = jobFlowId;_instanceGroups = instanceGroups;}" }, { "index": 4784, "before": "public FSTTermsReader(SegmentReadState state, PostingsReaderBase postingsReader) throws IOException {final String termsFileName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, FSTTermsWriter.TERMS_EXTENSION);this.postingsReader = postingsReader;final IndexInput in = state.directory.openInput(termsFileName, state.context);boolean success = false;try {CodecUtil.checkIndexHeader(in, FSTTermsWriter.TERMS_CODEC_NAME,FSTTermsWriter.TERMS_VERSION_START,FSTTermsWriter.TERMS_VERSION_CURRENT,state.segmentInfo.getId(), state.segmentSuffix);CodecUtil.checksumEntireFile(in);this.postingsReader.init(in, state);seekDir(in);final FieldInfos fieldInfos = state.fieldInfos;final int numFields = in.readVInt();for (int i = 0; i < numFields; i++) {int fieldNumber = in.readVInt();FieldInfo fieldInfo = fieldInfos.fieldInfo(fieldNumber);long numTerms = in.readVLong();long sumTotalTermFreq = in.readVLong();long sumDocFreq = fieldInfo.getIndexOptions() == IndexOptions.DOCS ? sumTotalTermFreq : in.readVLong();int docCount = in.readVInt();TermsReader current = new TermsReader(fieldInfo, in, numTerms, sumTotalTermFreq, sumDocFreq, docCount);TermsReader previous = fields.put(fieldInfo.name, current);checkFieldSummary(state.segmentInfo, in, current, previous);}success = true;} finally {if (success) {IOUtils.close(in);} else {IOUtils.closeWhileHandlingException(in);}}}", "after": "public FSTTermsReader(SegmentReadState state, PostingsReaderBase postingsReader){string termsFileName = IndexFileNames.SegmentFileName(state.SegmentInfo.Name, state.SegmentSuffix, FSTTermsWriter.TERMS_EXTENSION);this.postingsReader = postingsReader;IndexInput @in = state.Directory.OpenInput(termsFileName, state.Context);bool success = false;try{version = ReadHeader(@in);if (version >= FSTTermsWriter.TERMS_VERSION_CHECKSUM){CodecUtil.ChecksumEntireFile(@in);}this.postingsReader.Init(@in);SeekDir(@in);FieldInfos fieldInfos = state.FieldInfos;int numFields = @in.ReadVInt32();for (int i = 0; i < numFields; i++){int fieldNumber = @in.ReadVInt32();FieldInfo fieldInfo = fieldInfos.FieldInfo(fieldNumber);long numTerms = @in.ReadVInt64();long sumTotalTermFreq = fieldInfo.IndexOptions == IndexOptions.DOCS_ONLY ? -1 : @in.ReadVInt64();long sumDocFreq = @in.ReadVInt64();int docCount = @in.ReadVInt32();int longsSize = @in.ReadVInt32();TermsReader current = new TermsReader(this, fieldInfo, @in, numTerms, sumTotalTermFreq, sumDocFreq, docCount, longsSize);TermsReader previous;fields.TryGetValue(fieldInfo.Name, out previous);fields[fieldInfo.Name] = current;CheckFieldSummary(state.SegmentInfo, @in, current, previous);}success = true;}finally{if (success){IOUtils.Dispose(@in);}else{IOUtils.DisposeWhileHandlingException(@in);}}}" }, { "index": 4785, "before": "public DescribeVpcEndpointsResult describeVpcEndpoints(DescribeVpcEndpointsRequest request) {request = beforeClientExecution(request);return executeDescribeVpcEndpoints(request);}", "after": "public virtual DescribeVpcEndpointsResponse DescribeVpcEndpoints(DescribeVpcEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcEndpointsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4786, "before": "public void setNewPrefix(String prefix) {newPrefix = prefix;}", "after": "public virtual void SetNewPrefix(string prefix){newPrefix = prefix;}" }, { "index": 4787, "before": "public GetHostedZoneRequest(String id) {setId(id);}", "after": "public GetHostedZoneRequest(string id){_id = id;}" }, { "index": 4788, "before": "public List getUpdatedFiles() {return updatedFiles;}", "after": "public virtual IList GetUpdatedFiles(){return updatedFiles;}" }, { "index": 4789, "before": "public DeleteDhcpOptionsRequest(String dhcpOptionsId) {setDhcpOptionsId(dhcpOptionsId);}", "after": "public DeleteDhcpOptionsRequest(string dhcpOptionsId){_dhcpOptionsId = dhcpOptionsId;}" }, { "index": 4790, "before": "public QueryPhraseMap getTermMap( String term ){return subMap.get( term );}", "after": "public virtual QueryPhraseMap GetTermMap(string term){QueryPhraseMap result;subMap.TryGetValue(term, out result);return result;}" }, { "index": 4791, "before": "public PutConfigurationSetDeliveryOptionsResult putConfigurationSetDeliveryOptions(PutConfigurationSetDeliveryOptionsRequest request) {request = beforeClientExecution(request);return executePutConfigurationSetDeliveryOptions(request);}", "after": "public virtual PutConfigurationSetDeliveryOptionsResponse PutConfigurationSetDeliveryOptions(PutConfigurationSetDeliveryOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutConfigurationSetDeliveryOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutConfigurationSetDeliveryOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4792, "before": "public ChartRecord(RecordInputStream in) {field_1_x = in.readInt();field_2_y = in.readInt();field_3_width = in.readInt();field_4_height = in.readInt();}", "after": "public ChartRecord(RecordInputStream in1){field_1_x = in1.ReadInt();field_2_y = in1.ReadInt();field_3_width = in1.ReadInt();field_4_height = in1.ReadInt();}" }, { "index": 4793, "before": "public ListTaskDefinitionsResult listTaskDefinitions(ListTaskDefinitionsRequest request) {request = beforeClientExecution(request);return executeListTaskDefinitions(request);}", "after": "public virtual ListTaskDefinitionsResponse ListTaskDefinitions(ListTaskDefinitionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTaskDefinitionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTaskDefinitionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4794, "before": "public String getRawPath() {return rawPath;}", "after": "public virtual string GetRawPath(){return rawPath;}" }, { "index": 4795, "before": "public IndexRecord(RecordInputStream in) {int field_1_zero = in.readInt();if (field_1_zero != 0) {throw new RecordFormatException(\"Expected zero for field 1 but got \" + field_1_zero);}field_2_first_row = in.readInt();field_3_last_row_add1 = in.readInt();field_4_zero = in.readInt();int nCells = in.remaining() / 4;field_5_dbcells = new IntList(nCells);for(int i=0; i enumType() {return enumType;}", "after": "public virtual System.Type enumType(){return _enumType;}" }, { "index": 4797, "before": "public boolean isSupportedType(final int variantType) {for (int st : SUPPORTED_TYPES) {if (variantType == st) {return true;}}return false;}", "after": "public bool IsSupportedType(int variantType){for (int i = 0; i < SUPPORTED_TYPES.Length; i++)if (variantType == SUPPORTED_TYPES[i])return true;return false;}" }, { "index": 4798, "before": "public PersonIdent getSourceCommitter(int idx) {return sourceCommitters[idx];}", "after": "public virtual PersonIdent GetSourceCommitter(int idx){return sourceCommitters[idx];}" }, { "index": 4799, "before": "public RemoveTagsRequest(String resourceId, java.util.List tagKeys) {setResourceId(resourceId);setTagKeys(tagKeys);}", "after": "public RemoveTagsRequest(string resourceId, List tagKeys){_resourceId = resourceId;_tagKeys = tagKeys;}" }, { "index": 4800, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[ENDBLOCK]\\n\");buffer.append(\" .rt =\").append(HexDump.shortToHex(rt)).append('\\n');buffer.append(\" .grbitFrt =\").append(HexDump.shortToHex(grbitFrt)).append('\\n');buffer.append(\" .iObjectKind=\").append(HexDump.shortToHex(iObjectKind)).append('\\n');buffer.append(\" .unused =\").append(HexDump.toHex(unused)).append('\\n');buffer.append(\"[/ENDBLOCK]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[ENDBLOCK]\\n\");buffer.Append(\" .rt =\").Append(HexDump.ShortToHex(rt)).Append('\\n');buffer.Append(\" .grbitFrt =\").Append(HexDump.ShortToHex(grbitFrt)).Append('\\n');buffer.Append(\" .iObjectKind=\").Append(HexDump.ShortToHex(iObjectKind)).Append('\\n');buffer.Append(\" .unused =\").Append(HexDump.ToHex(unused)).Append('\\n');buffer.Append(\"[/ENDBLOCK]\\n\");return buffer.ToString();}" }, { "index": 4801, "before": "public int stem(char text[], int length, boolean stemDerivational) {flags = 0;numSyllables = 0;for (int i = 0; i < length; i++)if (isVowel(text[i]))numSyllables++;if (numSyllables > 2) length = removeParticle(text, length);if (numSyllables > 2) length = removePossessivePronoun(text, length);if (stemDerivational)length = stemDerivational(text, length);return length;}", "after": "public virtual int Stem(char[] text, int length, bool stemDerivational){flags = 0;numSyllables = 0;for (int i = 0; i < length; i++){if (IsVowel(text[i])){numSyllables++;}}if (numSyllables > 2){length = RemoveParticle(text, length);}if (numSyllables > 2){length = RemovePossessivePronoun(text, length);}if (stemDerivational){length = StemDerivational(text, length);}return length;}" }, { "index": 4802, "before": "public final long computeNorm(FieldInvertState state) {final int numTerms;if (state.getIndexOptions() == IndexOptions.DOCS && state.getIndexCreatedVersionMajor() >= 8) {numTerms = state.getUniqueTermCount();} else if (discountOverlaps) {numTerms = state.getLength() - state.getNumOverlap();} else {numTerms = state.getLength();}return SmallFloat.intToByte4(numTerms);}", "after": "public override long ComputeNorm(FieldInvertState state){float numTerms;if (discountOverlaps){numTerms = state.Length - state.NumOverlap;}else{numTerms = state.Length;}return EncodeNormValue(state.Boost, numTerms);}" }, { "index": 4803, "before": "public OpenNLPChunkerFilter create(TokenStream in) {try {NLPChunkerOp chunkerOp = null;if (chunkerModelFile != null) {chunkerOp = OpenNLPOpsFactory.getChunker(chunkerModelFile);}return new OpenNLPChunkerFilter(in, chunkerOp);} catch (IOException e) {throw new IllegalArgumentException(e);}}", "after": "public override TokenStream Create(TokenStream input){try{NLPChunkerOp chunkerOp = null;if (chunkerModelFile != null){chunkerOp = OpenNLPOpsFactory.GetChunker(chunkerModelFile);}return new OpenNLPChunkerFilter(input, chunkerOp);}catch (IOException e){throw new ArgumentException(e.ToString(), e);}}" }, { "index": 4804, "before": "public List getSortedObjectList(Comparator cmp) {Arrays.sort(entries, 0, entryCount, cmp);List list = Arrays.asList(entries);if (entryCount < entries.length)list = list.subList(0, entryCount);return list;}", "after": "public virtual IList GetSortedObjectList(IComparer cmp){Arrays.Sort(entries, 0, entryCount, cmp);IList list = Arrays.AsList(entries);if (entryCount < entries.Length){list = list.SubList(0, entryCount);}return list;}" }, { "index": 4805, "before": "public String getSecurityToken() {AlibabaCloudCredentials credentials = getCredentials();if (credentials instanceof BasicSessionCredentials) {return ((BasicSessionCredentials) credentials).getSessionToken();} else {return null;}}", "after": "public string GetSecurityToken(){var credentials = GetCredentials();var sessionCredentials = credentials as BasicSessionCredentials;return sessionCredentials != null ? sessionCredentials.GetSessionToken() : null;}" }, { "index": 4806, "before": "public StopAutoMLJobResult stopAutoMLJob(StopAutoMLJobRequest request) {request = beforeClientExecution(request);return executeStopAutoMLJob(request);}", "after": "public virtual StopAutoMLJobResponse StopAutoMLJob(StopAutoMLJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopAutoMLJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopAutoMLJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4807, "before": "public int findStartOffset(StringBuilder buffer, int start) {if( start > buffer.length() || start < 1 ) return start;bi.setText(buffer.substring(0, start));bi.last();return bi.previous();}", "after": "public virtual int FindStartOffset(StringBuilder buffer, int start){if (start > buffer.Length || start < 1) return start;bi.SetText(buffer.ToString(0, start - 0));bi.Last();return bi.Previous();}" }, { "index": 4808, "before": "public StartImageBuilderResult startImageBuilder(StartImageBuilderRequest request) {request = beforeClientExecution(request);return executeStartImageBuilder(request);}", "after": "public virtual StartImageBuilderResponse StartImageBuilder(StartImageBuilderRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartImageBuilderRequestMarshaller.Instance;options.ResponseUnmarshaller = StartImageBuilderResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4809, "before": "public double readDouble() {long valueLongBits = readLong();double result = Double.longBitsToDouble(valueLongBits);if (Double.isNaN(result)) {throw new RuntimeException(\"Did not expect to read NaN\");}return result;}", "after": "public double ReadDouble(){long valueLongBits = ReadLong();double result = BitConverter.Int64BitsToDouble(valueLongBits);if (Double.IsNaN(result)){throw new Exception(\"Did not expect to read NaN\"); }return result;}" }, { "index": 4810, "before": "public double readDouble(){return _in.readDouble();}", "after": "public double ReadDouble(){return _in.ReadDouble();}" }, { "index": 4811, "before": "public int compareTo(Cell other) {return Double.compare(distanceSquared, other.distanceSquared);}", "after": "public virtual int CompareTo(Cell o){return string.CompareOrdinal(TokenString, o.TokenString);}" }, { "index": 4812, "before": "public GetCampaignDateRangeKpiResult getCampaignDateRangeKpi(GetCampaignDateRangeKpiRequest request) {request = beforeClientExecution(request);return executeGetCampaignDateRangeKpi(request);}", "after": "public virtual GetCampaignDateRangeKpiResponse GetCampaignDateRangeKpi(GetCampaignDateRangeKpiRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCampaignDateRangeKpiRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCampaignDateRangeKpiResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4813, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName()).append(\" [CRN\");sb.append(\" rowIx=\").append(field_3_row_index);sb.append(\" firstColIx=\").append(field_2_first_column_index);sb.append(\" lastColIx=\").append(field_1_last_column_index);sb.append(\"]\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetType().Name).Append(\" [CRN\");sb.Append(\" rowIx=\").Append(field_3_row_index);sb.Append(\" firstColIx=\").Append(field_2_first_column_index);sb.Append(\" lastColIx=\").Append(field_1_last_column_index);sb.Append(\"]\");return sb.ToString();}" }, { "index": 4814, "before": "public void add(double value) {ensureCapacity(_count + 1);_array[_count] = value;_count++;}", "after": "public void Add(double value){EnsureCapacity(_Count + 1);_array[_Count] = value;_Count++;}" }, { "index": 4815, "before": "public String getSheetName(int sheetIndex) {return getSheetEvaluator(sheetIndex).getSheetName();}", "after": "public String GetSheetName(int sheetIndex){return GetSheetEvaluator(sheetIndex).SheetName;}" }, { "index": 4816, "before": "public TransferDomainToAnotherAwsAccountResult transferDomainToAnotherAwsAccount(TransferDomainToAnotherAwsAccountRequest request) {request = beforeClientExecution(request);return executeTransferDomainToAnotherAwsAccount(request);}", "after": "public virtual TransferDomainToAnotherAwsAccountResponse TransferDomainToAnotherAwsAccount(TransferDomainToAnotherAwsAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = TransferDomainToAnotherAwsAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = TransferDomainToAnotherAwsAccountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4817, "before": "public final boolean weakCompareAndSet(V expect, V update) {return unsafe.compareAndSwapObject(this, valueOffset, expect, update);}", "after": "public bool weakCompareAndSet(V expect, V update){return compareAndSet(expect, update);}" }, { "index": 4818, "before": "public void setResult(ReceiveCommand.Result status, String msg) {result = decode(status);super.setResult(status, msg);}", "after": "public override void SetResult(ReceiveCommand.Result status, string msg){this._enclosing.result = this.Decode(status);base.SetResult(status, msg);}" }, { "index": 4819, "before": "public String toString() {return \"skip\";}", "after": "public override string ToString(){return \"skip\";}" }, { "index": 4820, "before": "public List getModifiedFiles() {return modifiedFiles;}", "after": "public virtual IList GetModifiedFiles(){return modifiedFiles;}" }, { "index": 4821, "before": "public final void serialize(LittleEndianOutput out) {out.writeShort(getRow());out.writeShort(getColumn());out.writeShort(getXFIndex());serializeValue(out);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Row);out1.WriteShort(Column);out1.WriteShort(XFIndex);SerializeValue(out1);}" }, { "index": 4822, "before": "public String toString() {return \"NotIgnored(\" + index + \")\";}", "after": "public override string ToString(){return \"NotIgnored(\" + index + \")\";}" }, { "index": 4823, "before": "public DescribeDBClusterParametersResult describeDBClusterParameters(DescribeDBClusterParametersRequest request) {request = beforeClientExecution(request);return executeDescribeDBClusterParameters(request);}", "after": "public virtual DescribeDBClusterParametersResponse DescribeDBClusterParameters(DescribeDBClusterParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBClusterParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBClusterParametersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4824, "before": "public CellRangeAddress copy() {return new CellRangeAddress(getFirstRow(), getLastRow(), getFirstColumn(), getLastColumn());}", "after": "public CellRangeAddress Copy(){return new CellRangeAddress(FirstRow, LastRow, FirstColumn, LastColumn);}" }, { "index": 4825, "before": "public final boolean hasAny(RevFlagSet set) {return (flags & set.mask) != 0;}", "after": "public bool HasAny(RevFlagSet set){return (flags & set.mask) != 0;}" }, { "index": 4826, "before": "public GetPolicyResult getPolicy(GetPolicyRequest request) {request = beforeClientExecution(request);return executeGetPolicy(request);}", "after": "public virtual GetPolicyResponse GetPolicy(GetPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4827, "before": "public BookSheetKey(int bookIndex, int sheetIndex) {_bookIndex = bookIndex;_sheetIndex = sheetIndex;}", "after": "public BookSheetKey(int bookIndex, int sheetIndex){_bookIndex = bookIndex;_sheetIndex = sheetIndex;}" }, { "index": 4828, "before": "public void setRate(int rate, boolean perMin) {this.rate = rate;this.perMin = perMin;setSequenceName();}", "after": "public virtual void SetRate(int rate, bool perMin){this.rate = rate;this.perMin = perMin;SetSequenceName();}" }, { "index": 4829, "before": "public DescribeVpcEndpointConnectionsResult describeVpcEndpointConnections(DescribeVpcEndpointConnectionsRequest request) {request = beforeClientExecution(request);return executeDescribeVpcEndpointConnections(request);}", "after": "public virtual DescribeVpcEndpointConnectionsResponse DescribeVpcEndpointConnections(DescribeVpcEndpointConnectionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcEndpointConnectionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcEndpointConnectionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4830, "before": "public GetHostedZoneResult getHostedZone(GetHostedZoneRequest request) {request = beforeClientExecution(request);return executeGetHostedZone(request);}", "after": "public virtual GetHostedZoneResponse GetHostedZone(GetHostedZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHostedZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHostedZoneResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4831, "before": "public ChangeBatch(java.util.List changes) {setChanges(changes);}", "after": "public ChangeBatch(List changes){_changes = changes;}" }, { "index": 4832, "before": "public String[] getExternalBookAndSheetName(int extRefIndex) {int ebIx = _externSheetRecord.getExtbookIndexFromRefIndex(extRefIndex);SupBookRecord ebr = _externalBookBlocks[ebIx].getExternalBookRecord();if (!ebr.isExternalReferences()) {return null;}int shIx1 = _externSheetRecord.getFirstSheetIndexFromRefIndex(extRefIndex);int shIx2 = _externSheetRecord.getLastSheetIndexFromRefIndex(extRefIndex);String firstSheetName = null;String lastSheetName = null;if (shIx1 >= 0) {firstSheetName = ebr.getSheetNames()[shIx1];}if (shIx2 >= 0) {lastSheetName = ebr.getSheetNames()[shIx2];}if (shIx1 == shIx2) {return new String[]{ebr.getURL(),firstSheetName};} else {return new String[]{ebr.getURL(),firstSheetName,lastSheetName};}}", "after": "public String[] GetExternalBookAndSheetName(int extRefIndex){int ebIx = _externSheetRecord.GetExtbookIndexFromRefIndex(extRefIndex);SupBookRecord ebr = _externalBookBlocks[ebIx].GetExternalBookRecord();if (!ebr.IsExternalReferences){return null;}int shIx1 = _externSheetRecord.GetFirstSheetIndexFromRefIndex(extRefIndex);int shIx2 = _externSheetRecord.GetLastSheetIndexFromRefIndex(extRefIndex);String firstSheetName = null;String lastSheetName = null;if (shIx1 >= 0){firstSheetName = ebr.SheetNames[shIx1];}if (shIx2 >= 0){lastSheetName = ebr.SheetNames[shIx2];}if (shIx1 == shIx2){return new String[] {ebr.URL,firstSheetName};}else{return new String[] {ebr.URL,firstSheetName,lastSheetName};}}" }, { "index": 4833, "before": "public ChartEndBlockRecord(RecordInputStream in) {rt = in.readShort();grbitFrt = in.readShort();iObjectKind = in.readShort();if(in.available() == 0) {unused = new byte[0];} else {unused = new byte[6];in.readFully(unused);}}", "after": "public ChartEndBlockRecord(RecordInputStream in1){rt = in1.ReadShort();grbitFrt = in1.ReadShort();iObjectKind = in1.ReadShort();if(in1.Available() == 0) {unused = new byte[0];} else {unused = new byte[6];in1.ReadFully(unused);}}" }, { "index": 4834, "before": "public CreateQueueResult createQueue(CreateQueueRequest request) {request = beforeClientExecution(request);return executeCreateQueue(request);}", "after": "public virtual CreateQueueResponse CreateQueue(CreateQueueRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateQueueRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateQueueResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4835, "before": "public void setMaxDocCharsToAnalyze(int maxDocCharsToAnalyze) {this.maxCharsToAnalyze = maxDocCharsToAnalyze;}", "after": "public virtual void SetMaxDocCharsToAnalyze(int maxDocCharsToAnalyze){this.maxCharsToAnalyze = maxDocCharsToAnalyze;}" }, { "index": 4836, "before": "public CreateCodeRepositoryResult createCodeRepository(CreateCodeRepositoryRequest request) {request = beforeClientExecution(request);return executeCreateCodeRepository(request);}", "after": "public virtual CreateCodeRepositoryResponse CreateCodeRepository(CreateCodeRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCodeRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCodeRepositoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4837, "before": "public static String getLastCommitSegmentsFileName(String[] files) {return IndexFileNames.fileNameFromGeneration(IndexFileNames.SEGMENTS,\"\",getLastCommitGeneration(files));}", "after": "public static string GetLastCommitSegmentsFileName(string[] files){return IndexFileNames.FileNameFromGeneration(IndexFileNames.SEGMENTS, \"\", GetLastCommitGeneration(files));}" }, { "index": 4838, "before": "public final CharBuffer put(char[] src) {return put(src, 0, src.length);}", "after": "public java.nio.CharBuffer put(char[] src){return put(src, 0, src.Length);}" }, { "index": 4839, "before": "public Certificate modifyCertificates(ModifyCertificatesRequest request) {request = beforeClientExecution(request);return executeModifyCertificates(request);}", "after": "public virtual ModifyCertificatesResponse ModifyCertificates(ModifyCertificatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyCertificatesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyCertificatesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4840, "before": "public void updateCell(String sheetName, int rowIndex, int columnIndex, ValueEval value) {ForkedEvaluationCell cell = _sewb.getOrCreateUpdatableCell(sheetName, rowIndex, columnIndex);cell.setValue(value);_evaluator.notifyUpdateCell(cell);}", "after": "public void UpdateCell(String sheetName, int rowIndex, int columnIndex, ValueEval value){ForkedEvaluationCell cell = _sewb.GetOrCreateUpdatableCell(sheetName, rowIndex, columnIndex);cell.SetValue(value);_evaluator.NotifyUpdateCell(cell);}" }, { "index": 4841, "before": "public DisassociateMemberAccountResult disassociateMemberAccount(DisassociateMemberAccountRequest request) {request = beforeClientExecution(request);return executeDisassociateMemberAccount(request);}", "after": "public virtual DisassociateMemberAccountResponse DisassociateMemberAccount(DisassociateMemberAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateMemberAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateMemberAccountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4842, "before": "public boolean run(byte[] s, int offset, int length) {int p = 0;int l = offset + length;for (int i = offset; i < l; i++) {p = step(p, s[i] & 0xFF);if (p == -1) return false;}return accept.get(p);}", "after": "public virtual bool Run(byte[] s, int offset, int length){var p = m_initial;var l = offset + length;for (int i = offset; i < l; i++){p = Step(p, ((sbyte)s[i]) & 0xFF);if (p == -1){return false;}}return m_accept[p];}" }, { "index": 4843, "before": "public DeleteTrafficPolicyResult deleteTrafficPolicy(DeleteTrafficPolicyRequest request) {request = beforeClientExecution(request);return executeDeleteTrafficPolicy(request);}", "after": "public virtual DeleteTrafficPolicyResponse DeleteTrafficPolicy(DeleteTrafficPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTrafficPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTrafficPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4844, "before": "public static PackIndex read(InputStream fd) throws IOException,CorruptObjectException {final byte[] hdr = new byte[8];IO.readFully(fd, hdr, 0, hdr.length);if (isTOC(hdr)) {final int v = NB.decodeInt32(hdr, 4);switch (v) {case 2:return new PackIndexV2(fd);default:throw new UnsupportedPackIndexVersionException(v);}}return new PackIndexV1(fd, hdr);}", "after": "public static PackIndex Read(InputStream fd){byte[] hdr = new byte[8];IOUtil.ReadFully(fd, hdr, 0, hdr.Length);if (IsTOC(hdr)){int v = NB.DecodeInt32(hdr, 4);switch (v){case 2:{return new PackIndexV2(fd);}default:{throw new IOException(MessageFormat.Format(JGitText.Get().unsupportedPackIndexVersion, Sharpen.Extensions.ValueOf(v)));}}}return new PackIndexV1(fd, hdr);}" }, { "index": 4845, "before": "public double[] toArray() {if (_count < 1) {return EMPTY_DOUBLE_ARRAY;}double[] result = new double[_count];System.arraycopy(_array, 0, result, 0, _count);return result;}", "after": "public double[] ToArray(){if (_Count < 1){return EMPTY_DOUBLE_ARRAY;}double[] result = new double[_Count];Array.Copy(_array, 0, result, 0, _Count);return result;}" }, { "index": 4846, "before": "public GetHostReservationPurchasePreviewResult getHostReservationPurchasePreview(GetHostReservationPurchasePreviewRequest request) {request = beforeClientExecution(request);return executeGetHostReservationPurchasePreview(request);}", "after": "public virtual GetHostReservationPurchasePreviewResponse GetHostReservationPurchasePreview(GetHostReservationPurchasePreviewRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHostReservationPurchasePreviewRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHostReservationPurchasePreviewResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4847, "before": "public CustomAvailabilityZone createCustomAvailabilityZone(CreateCustomAvailabilityZoneRequest request) {request = beforeClientExecution(request);return executeCreateCustomAvailabilityZone(request);}", "after": "public virtual CreateCustomAvailabilityZoneResponse CreateCustomAvailabilityZone(CreateCustomAvailabilityZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCustomAvailabilityZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCustomAvailabilityZoneResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4848, "before": "public EvaluationTracker(EvaluationCache cache) {_cache = cache;_evaluationFrames = new ArrayList<>();_currentlyEvaluatingCells = new HashSet<>();}", "after": "public EvaluationTracker(EvaluationCache cache){_cache = cache;_evaluationFrames = new ArrayList();_currentlyEvaluatingCells = new ArrayList();}" }, { "index": 4849, "before": "public String toString() {return format(false, false);}", "after": "public override string ToString(){return Format(false, false);}" }, { "index": 4850, "before": "public AcceptQualificationRequestResult acceptQualificationRequest(AcceptQualificationRequestRequest request) {request = beforeClientExecution(request);return executeAcceptQualificationRequest(request);}", "after": "public virtual AcceptQualificationRequestResponse AcceptQualificationRequest(AcceptQualificationRequestRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptQualificationRequestRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptQualificationRequestResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4851, "before": "public boolean markSupported() {return false;}", "after": "public override bool markSupported(){return false;}" }, { "index": 4852, "before": "public StringBuffer appendTail(StringBuffer buffer) {if (appendPos < regionEnd) {buffer.append(input.substring(appendPos, regionEnd));}return buffer;}", "after": "public java.lang.StringBuffer appendTail(java.lang.StringBuffer buffer){if (appendPos < _regionEnd){buffer.append(Sharpen.StringHelper.Substring(input, appendPos, _regionEnd));}return buffer;}" }, { "index": 4853, "before": "public String getSignificantDecimalDigits() {return Long.toString(_wholePart);}", "after": "public String GetSignificantDecimalDigits(){return _wholePart.ToString(CultureInfo.InvariantCulture);}" }, { "index": 4854, "before": "public void setVerticalBorder(boolean value){field_1_options = verticalBorder.setShortBoolean(field_1_options, value);}", "after": "public void SetVerticalBorder(bool value){field_1_options = verticalBorder.SetShortBoolean(field_1_options, value);}" }, { "index": 4855, "before": "public CRNRecord(RecordInputStream in) {field_1_last_column_index = in.readUByte();field_2_first_column_index = in.readUByte();field_3_row_index = in.readShort();int nValues = field_1_last_column_index - field_2_first_column_index + 1;field_4_constant_values = ConstantValueParser.parse(in, nValues);}", "after": "public CRNRecord(RecordInputStream in1){field_1_last_column_index = in1.ReadByte() & 0x00FF;field_2_first_column_index = in1.ReadByte() & 0x00FF;field_3_row_index = in1.ReadShort();int nValues = field_1_last_column_index - field_2_first_column_index + 1;field_4_constant_values = ConstantValueParser.Parse(in1, nValues);}" }, { "index": 4856, "before": "public DBSecurityGroup revokeDBSecurityGroupIngress(RevokeDBSecurityGroupIngressRequest request) {request = beforeClientExecution(request);return executeRevokeDBSecurityGroupIngress(request);}", "after": "public virtual RevokeDBSecurityGroupIngressResponse RevokeDBSecurityGroupIngress(RevokeDBSecurityGroupIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeDBSecurityGroupIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeDBSecurityGroupIngressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4857, "before": "public CharBlockArray append(char[] chars, int start, int length) {int offset = start;int remain = length;while (remain > 0) {if (this.current.length == this.blockSize) {addBlock();}int toCopy = remain;int remainingInBlock = this.blockSize - this.current.length;if (remainingInBlock < toCopy) {toCopy = remainingInBlock;}System.arraycopy(chars, offset, this.current.chars, this.current.length, toCopy);offset += toCopy;remain -= toCopy;this.current.length += toCopy;}this.length += length;return this;}", "after": "public virtual CharBlockArray Append(char[] chars, int start, int length){int offset = start;int remain = length;while (remain > 0){if (this.current.length == this.blockSize){AddBlock();}int toCopy = remain;int remainingInBlock = this.blockSize - this.current.length;if (remainingInBlock < toCopy){toCopy = remainingInBlock;}Array.Copy(chars, offset, this.current.chars, this.current.length, toCopy);offset += toCopy;remain -= toCopy;this.current.length += toCopy;}this.length += length;return this;}" }, { "index": 4858, "before": "public String toString() {return toString(null, true);}", "after": "public override String ToString(){return ToString(null, true);}" }, { "index": 4859, "before": "public int doLogic() throws Exception {try {Locale locale = getRunData().getLocale();if (locale == null) throw new RuntimeException(\"Locale must be set with the NewLocale task!\");Analyzer analyzer = createAnalyzer(locale, impl);getRunData().setAnalyzer(analyzer);System.out.println(\"Changed Analyzer to: \"+ analyzer.getClass().getName() + \"(\" + locale + \")\");} catch (Exception e) {throw new RuntimeException(\"Error creating Analyzer: impl=\" + impl, e);}return 1;}", "after": "public override int DoLogic(){try{CultureInfo locale = RunData.Locale;if (locale == null) throw new Exception(\"Locale must be set with the NewLocale task!\");Analyzer analyzer = CreateAnalyzer(locale, impl);RunData.Analyzer = analyzer;Console.WriteLine(\"Changed Analyzer to: \"+ analyzer.GetType().Name + \"(\" + locale + \")\");}catch (Exception e){throw new Exception(\"Error creating Analyzer: impl=\" + impl, e);}return 1;}" }, { "index": 4860, "before": "public final short get() {if (position == limit) {throw new BufferUnderflowException();}return backingArray[offset + position++];}", "after": "public sealed override short get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return backingArray[offset + _position++];}" }, { "index": 4861, "before": "public static String toHex(final short[] value){StringBuilder retVal = new StringBuilder();retVal.append('[');for(int x = 0; x < value.length; x++){if (x>0) {retVal.append(\", \");}retVal.append(toHex(value[x]));}retVal.append(']');return retVal.toString();}", "after": "public static string ToHex(short[] value){StringBuilder buffer = new StringBuilder();buffer.Append('[');for (int i = 0; i < value.Length; i++){if (i > 0){buffer.Append(\", \");}buffer.Append(ToHex(value[i]));}buffer.Append(']');return buffer.ToString();}" }, { "index": 4862, "before": "public ListIPSetsResult listIPSets(ListIPSetsRequest request) {request = beforeClientExecution(request);return executeListIPSets(request);}", "after": "public virtual ListIPSetsResponse ListIPSets(ListIPSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIPSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIPSetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4863, "before": "public int getLevelForDistance(double dist) {if (dist == 0){return maxLevels;}int level = S2Projections.MAX_WIDTH.getMinLevel(dist * DistanceUtils.DEGREES_TO_RADIANS);int roundLevel = level % arity != 0 ? 1 : 0;level = level/arity + roundLevel;return Math.min(maxLevels, level + 1);}", "after": "public override int GetLevelForDistance(double dist){if (dist == 0){return m_maxLevels;}for (int i = 0; i < m_maxLevels - 1; i++){if (dist > levelW[i] && dist > levelH[i]){return i + 1;}}return m_maxLevels;}" }, { "index": 4864, "before": "public IndexableField[] getFields(String name) {List result = new ArrayList<>();for (IndexableField field : fields) {if (field.name().equals(name)) {result.add(field);}}return result.toArray(new IndexableField[result.size()]);}", "after": "public IIndexableField[] GetFields(string name){var result = new List();foreach (IIndexableField field in fields){if (field.Name.Equals(name, StringComparison.Ordinal)){result.Add(field);}}return result.ToArray();}" }, { "index": 4865, "before": "public GetTrafficPolicyResult getTrafficPolicy(GetTrafficPolicyRequest request) {request = beforeClientExecution(request);return executeGetTrafficPolicy(request);}", "after": "public virtual GetTrafficPolicyResponse GetTrafficPolicy(GetTrafficPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTrafficPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTrafficPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4866, "before": "public String name() {ensureId();return idBuffer.name();}", "after": "public virtual string Name(){EnsureId();return idBuffer.Name;}" }, { "index": 4867, "before": "public DeleteExperimentResult deleteExperiment(DeleteExperimentRequest request) {request = beforeClientExecution(request);return executeDeleteExperiment(request);}", "after": "public virtual DeleteExperimentResponse DeleteExperiment(DeleteExperimentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteExperimentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteExperimentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4868, "before": "public static byte[] grow(byte[] array) {return grow(array, 1 + array.length);}", "after": "public static int[] Grow(int[] array){return Grow(array, 1 + array.Length);}" }, { "index": 4869, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getReadOnly());out.writeShort(getPassword());out.writeShort(field_3_username_value.length());if(field_3_username_value.length() > 0) {out.writeByte(field_3_username_unicode_options);StringUtil.putCompressedUnicode(getUsername(), out);}}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(ReadOnly);out1.WriteShort(Password);out1.WriteShort(field_3_username_value.Length);if (field_3_username_value.Length > 0){out1.WriteByte(field_3_username_unicode_options);StringUtil.PutCompressedUnicode(Username, out1);}}" }, { "index": 4870, "before": "public BulgarianStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public BulgarianStemFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 4871, "before": "public GetMirrorListRequest() {super(\"cr\", \"2016-06-07\", \"GetMirrorList\", \"cr\");setUriPattern(\"/mirrors\");setMethod(MethodType.GET);}", "after": "public GetMirrorListRequest(): base(\"cr\", \"2016-06-07\", \"GetMirrorList\", \"cr\", \"openAPI\"){UriPattern = \"/mirrors\";Method = MethodType.GET;}" }, { "index": 4872, "before": "public DescribeDomainEndpointOptionsResult describeDomainEndpointOptions(DescribeDomainEndpointOptionsRequest request) {request = beforeClientExecution(request);return executeDescribeDomainEndpointOptions(request);}", "after": "public virtual DescribeDomainEndpointOptionsResponse DescribeDomainEndpointOptions(DescribeDomainEndpointOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDomainEndpointOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDomainEndpointOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4873, "before": "public CommonToken(Pair source, int type, int channel, int start, int stop) {this.source = source;this.type = type;this.channel = channel;this.start = start;this.stop = stop;if (source.a != null) {this.line = source.a.getLine();this.charPositionInLine = source.a.getCharPositionInLine();}}", "after": "public CommonToken(Tuple source, int type, int channel, int start, int stop){this.source = source;this._type = type;this._channel = channel;this.start = start;this.stop = stop;if (source.Item1 != null){this._line = source.Item1.Line;this.charPositionInLine = source.Item1.Column;}}" }, { "index": 4874, "before": "public boolean get(URIish uri, CredentialItem... items)throws UnsupportedCredentialItem {for (CredentialItem i : items) {if (i instanceof CredentialItem.Username) {((CredentialItem.Username) i).setValue(username);continue;}if (i instanceof CredentialItem.Password) {((CredentialItem.Password) i).setValue(password);continue;}if (i instanceof CredentialItem.StringType) {if (i.getPromptText().equals(\"Password: \")) { ((CredentialItem.StringType) i).setValue(new String(password));continue;}}throw new UnsupportedCredentialItem(uri, i.getClass().getName()+ \":\" + i.getPromptText()); }return true;}", "after": "public override bool Get(URIish uri, params CredentialItem[] items){foreach (CredentialItem i in items){if (i is CredentialItem.Username){((CredentialItem.Username)i).SetValue(username);continue;}if (i is CredentialItem.Password){((CredentialItem.Password)i).SetValue(password);continue;}if (i is CredentialItem.StringType){if (i.GetPromptText().Equals(\"Password: \")){((CredentialItem.StringType)i).SetValue(new string(password));continue;}}throw new UnsupportedCredentialItem(uri, i.GetType().FullName + \":\" + i.GetPromptText());}return true;}" }, { "index": 4875, "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 double Get(string name, double dflt){double[] vals;object temp;if (valByRound.TryGetValue(name, out temp) && temp != null){vals = (double[])temp;return vals[roundNumber % vals.Length];}string sval;if (!props.TryGetValue(name, out sval)){sval = dflt.ToString(CultureInfo.InvariantCulture);}if (sval.IndexOf(':') < 0){return double.Parse(sval, CultureInfo.InvariantCulture);}int k = sval.IndexOf(':');string colName = sval.Substring(0, k - 0);sval = sval.Substring(k + 1);colForValByRound[name] = colName;vals = PropToDoubleArray(sval);valByRound[name] = vals;return vals[roundNumber % vals.Length];}" }, { "index": 4876, "before": "public UpdateDocumentationVersionResult updateDocumentationVersion(UpdateDocumentationVersionRequest request) {request = beforeClientExecution(request);return executeUpdateDocumentationVersion(request);}", "after": "public virtual UpdateDocumentationVersionResponse UpdateDocumentationVersion(UpdateDocumentationVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDocumentationVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDocumentationVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4877, "before": "public DeleteApplicationInputProcessingConfigurationResult deleteApplicationInputProcessingConfiguration(DeleteApplicationInputProcessingConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteApplicationInputProcessingConfiguration(request);}", "after": "public virtual DeleteApplicationInputProcessingConfigurationResponse DeleteApplicationInputProcessingConfiguration(DeleteApplicationInputProcessingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApplicationInputProcessingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApplicationInputProcessingConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4878, "before": "public PurchaseScheduledInstancesResult purchaseScheduledInstances(PurchaseScheduledInstancesRequest request) {request = beforeClientExecution(request);return executePurchaseScheduledInstances(request);}", "after": "public virtual PurchaseScheduledInstancesResponse PurchaseScheduledInstances(PurchaseScheduledInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurchaseScheduledInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = PurchaseScheduledInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4879, "before": "public String getHost() {return host;}", "after": "public virtual string GetHost(){return host;}" }, { "index": 4880, "before": "public DeleteNetworkProfileResult deleteNetworkProfile(DeleteNetworkProfileRequest request) {request = beforeClientExecution(request);return executeDeleteNetworkProfile(request);}", "after": "public virtual DeleteNetworkProfileResponse DeleteNetworkProfile(DeleteNetworkProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNetworkProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNetworkProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4881, "before": "public ListSchemasResult listSchemas(ListSchemasRequest request) {request = beforeClientExecution(request);return executeListSchemas(request);}", "after": "public virtual ListSchemasResponse ListSchemas(ListSchemasRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSchemasRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSchemasResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4882, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(field_1_first_row);out.writeShort(field_2_first_col);}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(field_1_first_row);out1.WriteShort(field_2_first_col);}" }, { "index": 4883, "before": "public ByteSliceWriter(ByteBlockPool pool) {this.pool = pool;}", "after": "public ByteSliceWriter(ByteBlockPool pool){this.pool = pool;}" }, { "index": 4884, "before": "public void replace(int start, int limit, char[] text, int charsStart,int charsLen) {final int newLength = shiftForReplace(start, limit, charsLen);System.arraycopy(text, charsStart, buffer, start, charsLen);token.setLength(length = newLength);}", "after": "public void Replace(int start, int length, char[] text, int charsStart,int charsLen){int newLength = ShiftForReplace(start, length + start, charsLen); System.Array.Copy(text, charsStart, buffer, start, charsLen);token.Length = (this.length = newLength);}" }, { "index": 4885, "before": "public synchronized void getChars(int start, int end, char[] buffer, int idx) {super.getChars(start, end, buffer, idx);}", "after": "public override void getChars(int start, int end, char[] buffer, int idx){lock (this){base.getChars(start, end, buffer, idx);}}" }, { "index": 4886, "before": "public RestoreAddressToClassicResult restoreAddressToClassic(RestoreAddressToClassicRequest request) {request = beforeClientExecution(request);return executeRestoreAddressToClassic(request);}", "after": "public virtual RestoreAddressToClassicResponse RestoreAddressToClassic(RestoreAddressToClassicRequest request){var options = new InvokeOptions();options.RequestMarshaller = RestoreAddressToClassicRequestMarshaller.Instance;options.ResponseUnmarshaller = RestoreAddressToClassicResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4887, "before": "public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int j = 0; j < iterations; ++j) {values[valuesOffset++] = ((blocks[blocksOffset++] & 0xFFL) << 8) | (blocks[blocksOffset++] & 0xFFL);}}", "after": "public override void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int j = 0; j < iterations; ++j){values[valuesOffset++] = ((blocks[blocksOffset++] & 0xFFL) << 8) | (blocks[blocksOffset++] & 0xFFL);}}" }, { "index": 4888, "before": "public CreateNamespaceRequest() {super(\"cr\", \"2016-06-07\", \"CreateNamespace\", \"cr\");setUriPattern(\"/namespace\");setMethod(MethodType.PUT);}", "after": "public CreateNamespaceRequest(): base(\"cr\", \"2016-06-07\", \"CreateNamespace\", \"cr\", \"openAPI\"){UriPattern = \"/namespace\";Method = MethodType.PUT;}" }, { "index": 4889, "before": "public ShortBuffer compact() {System.arraycopy(backingArray, position + offset, backingArray, offset, remaining());position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}", "after": "public override java.nio.ShortBuffer compact(){System.Array.Copy(backingArray, _position + offset, backingArray, offset, remaining());_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}" }, { "index": 4890, "before": "public GetEventsConfigurationResult getEventsConfiguration(GetEventsConfigurationRequest request) {request = beforeClientExecution(request);return executeGetEventsConfiguration(request);}", "after": "public virtual GetEventsConfigurationResponse GetEventsConfiguration(GetEventsConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEventsConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEventsConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4891, "before": "public String toString() {return \"docFreq=\" + docFreq + \" totalTermFreq=\" + totalTermFreq + \" termBlockOrd=\" + termBlockOrd + \" blockFP=\" + blockFilePointer;}", "after": "public override string ToString(){return \"docFreq=\" + DocFreq + \" totalTermFreq=\" + TotalTermFreq + \" termBlockOrd=\" + TermBlockOrd + \" blockFP=\" + BlockFilePointer;}" }, { "index": 4892, "before": "public EstimateTemplateCostResult estimateTemplateCost(EstimateTemplateCostRequest request) {request = beforeClientExecution(request);return executeEstimateTemplateCost(request);}", "after": "public virtual EstimateTemplateCostResponse EstimateTemplateCost(EstimateTemplateCostRequest request){var options = new InvokeOptions();options.RequestMarshaller = EstimateTemplateCostRequestMarshaller.Instance;options.ResponseUnmarshaller = EstimateTemplateCostResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4893, "before": "public TreeFilter clone() {return new Binary(a.clone(), b.clone());}", "after": "public override TreeFilter Clone(){return new OrTreeFilter.Binary(a.Clone(), b.Clone());}" }, { "index": 4894, "before": "public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {switch (args.length) {case 1:return evaluate(srcRowIndex, srcColumnIndex, args[0]);case 0:return new NumberEval(srcColumnIndex+1);}return ErrorEval.VALUE_INVALID;}", "after": "public ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){int rnum;if (arg0 is AreaEval){rnum = ((AreaEval)arg0).FirstColumn;}else if (arg0 is RefEval){rnum = ((RefEval)arg0).Column;}else{return ErrorEval.VALUE_INVALID;}return new NumberEval(rnum + 1);}" }, { "index": 4895, "before": "public ByteOrder order() {return ByteOrder.nativeOrder();}", "after": "public override java.nio.ByteOrder order(){return java.nio.ByteOrder.nativeOrder();}" }, { "index": 4896, "before": "public void insert(char[] key, int start, char val) {int len = strlen(key) + 1;if (freenode + len > eq.length) {redimNodeArrays(eq.length + BLOCK_SIZE);}root = insert(root, key, start, val);}", "after": "public virtual void Insert(char[] key, int start, char val){int len = StrLen(key) + 1;if (m_freenode + len > m_eq.Length){RedimNodeArrays(m_eq.Length + BLOCK_SIZE);}m_root = Insert(m_root, key, start, val);}" }, { "index": 4897, "before": "public final DFAState getPrecedenceStartState(int precedence) {if (!isPrecedenceDfa()) {throw new IllegalStateException(\"Only precedence DFAs may contain a precedence start state.\");}if (precedence < 0 || precedence >= s0.edges.length) {return null;}return s0.edges[precedence];}", "after": "public DFAState GetPrecedenceStartState(int precedence){if (!IsPrecedenceDfa){throw new Exception(\"Only precedence DFAs may contain a precedence start state.\");}if (precedence < 0 || precedence >= s0.edges.Length){return null;}return s0.edges[precedence];}" }, { "index": 4898, "before": "public SetActiveReceiptRuleSetResult setActiveReceiptRuleSet(SetActiveReceiptRuleSetRequest request) {request = beforeClientExecution(request);return executeSetActiveReceiptRuleSet(request);}", "after": "public virtual SetActiveReceiptRuleSetResponse SetActiveReceiptRuleSet(SetActiveReceiptRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetActiveReceiptRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = SetActiveReceiptRuleSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4899, "before": "public CreateLaunchTemplateResult createLaunchTemplate(CreateLaunchTemplateRequest request) {request = beforeClientExecution(request);return executeCreateLaunchTemplate(request);}", "after": "public virtual CreateLaunchTemplateResponse CreateLaunchTemplate(CreateLaunchTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLaunchTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLaunchTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4900, "before": "public ListTrafficPolicyVersionsResult listTrafficPolicyVersions(ListTrafficPolicyVersionsRequest request) {request = beforeClientExecution(request);return executeListTrafficPolicyVersions(request);}", "after": "public virtual ListTrafficPolicyVersionsResponse ListTrafficPolicyVersions(ListTrafficPolicyVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTrafficPolicyVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTrafficPolicyVersionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4901, "before": "public Locale effectiveLocale() {return effectiveLocale;}", "after": "public virtual CultureInfo EffectiveLocale(){return effectiveLocale;}" }, { "index": 4902, "before": "public void encode(long[] values, int valuesOffset, long[] blocks,int blocksOffset, int iterations) {for (int i = 0; i < iterations; ++i) {blocks[blocksOffset++] = encode(values, valuesOffset);valuesOffset += valueCount;}}", "after": "public override void Encode(long[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations){for (int i = 0; i < iterations; ++i){blocks[blocksOffset++] = Encode(values, valuesOffset);valuesOffset += valueCount;}}" }, { "index": 4903, "before": "public static String revisionVersion(IndexCommit commit) {return Long.toString(commit.getGeneration(), RADIX);}", "after": "public static string RevisionVersion(IndexCommit commit){return commit.Generation.ToString(\"X\");}" }, { "index": 4904, "before": "public ListServicesResult listServices(ListServicesRequest request) {request = beforeClientExecution(request);return executeListServices(request);}", "after": "public virtual ListServicesResponse ListServices(ListServicesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListServicesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListServicesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4905, "before": "public BatchModifyClusterSnapshotsResult batchModifyClusterSnapshots(BatchModifyClusterSnapshotsRequest request) {request = beforeClientExecution(request);return executeBatchModifyClusterSnapshots(request);}", "after": "public virtual BatchModifyClusterSnapshotsResponse BatchModifyClusterSnapshots(BatchModifyClusterSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchModifyClusterSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchModifyClusterSnapshotsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4906, "before": "public DeleteBackupResult deleteBackup(DeleteBackupRequest request) {request = beforeClientExecution(request);return executeDeleteBackup(request);}", "after": "public virtual DeleteBackupResponse DeleteBackup(DeleteBackupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteBackupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteBackupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4907, "before": "public DescribeDBParameterGroupsResult describeDBParameterGroups() {return describeDBParameterGroups(new DescribeDBParameterGroupsRequest());}", "after": "public virtual DescribeDBParameterGroupsResponse DescribeDBParameterGroups(){return DescribeDBParameterGroups(new DescribeDBParameterGroupsRequest());}" }, { "index": 4908, "before": "public void reset(boolean zeroFillBuffers, boolean reuseFirst) {if (bufferUpto != -1) {if (zeroFillBuffers) {for(int i=0;i 0 || !reuseFirst) {final int offset = reuseFirst ? 1 : 0;allocator.recycleIntBlocks(buffers, offset, 1+bufferUpto);Arrays.fill(buffers, offset, bufferUpto+1, null);}if (reuseFirst) {bufferUpto = 0;intUpto = 0;intOffset = 0;buffer = buffers[0];} else {bufferUpto = -1;intUpto = INT_BLOCK_SIZE;intOffset = -INT_BLOCK_SIZE;buffer = null;}}}", "after": "public void Reset(bool zeroFillBuffers, bool reuseFirst){if (bufferUpto != -1){if (zeroFillBuffers){for (int i = 0; i < bufferUpto; i++){Arrays.Fill(buffers[i], 0);}Arrays.Fill(buffers[bufferUpto], 0, Int32Upto, 0);}if (bufferUpto > 0 || !reuseFirst){int offset = reuseFirst ? 1 : 0;allocator.RecycleInt32Blocks(buffers, offset, 1 + bufferUpto);Arrays.Fill(buffers, offset, bufferUpto + 1, null);}if (reuseFirst){bufferUpto = 0;Int32Upto = 0;Int32Offset = 0;buffer = buffers[0];}else{bufferUpto = -1;Int32Upto = INT32_BLOCK_SIZE;Int32Offset = -INT32_BLOCK_SIZE;buffer = null;}}}" }, { "index": 4909, "before": "public SaveRecalcRecord clone() {return copy();}", "after": "public override Object Clone(){SaveRecalcRecord rec = new SaveRecalcRecord();rec.field_1_recalc = field_1_recalc;return rec;}" }, { "index": 4910, "before": "public static void main(String[] args) {exec(args);}", "after": "public static void Main(string[] args){Exec(args);}" }, { "index": 4911, "before": "public DeregisterImageResult deregisterImage(DeregisterImageRequest request) {request = beforeClientExecution(request);return executeDeregisterImage(request);}", "after": "public virtual DeregisterImageResponse DeregisterImage(DeregisterImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterImageRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterImageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4912, "before": "public DBSnapshot modifyDBSnapshot(ModifyDBSnapshotRequest request) {request = beforeClientExecution(request);return executeModifyDBSnapshot(request);}", "after": "public virtual ModifyDBSnapshotResponse ModifyDBSnapshot(ModifyDBSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4913, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[BOUNDSHEET]\\n\");buffer.append(\" .bof = \").append(HexDump.intToHex(getPositionOfBof())).append(\"\\n\");buffer.append(\" .options = \").append(HexDump.shortToHex(field_2_option_flags)).append(\"\\n\");buffer.append(\" .unicodeflag= \").append(HexDump.byteToHex(field_4_isMultibyteUnicode)).append(\"\\n\");buffer.append(\" .sheetname = \").append(field_5_sheetname).append(\"\\n\");buffer.append(\"[/BOUNDSHEET]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[BOUNDSHEET]\\n\");buffer.Append(\" .bof = \").Append(HexDump.IntToHex(PositionOfBof)).Append(\"\\n\");buffer.Append(\" .options = \").Append(HexDump.ShortToHex(field_2_option_flags)).Append(\"\\n\");buffer.Append(\" .unicodeflag= \").Append(HexDump.ByteToHex(field_4_isMultibyteUnicode)).Append(\"\\n\");buffer.Append(\" .sheetname = \").Append(field_5_sheetname).Append(\"\\n\");buffer.Append(\"[/BOUNDSHEET]\\n\");return buffer.ToString();}" }, { "index": 4914, "before": "public void setParams(String params) {this.params = params; fieldsToLoad = new HashSet<>();for (StringTokenizer tokenizer = new StringTokenizer(params, \",\"); tokenizer.hasMoreTokens();) {String s = tokenizer.nextToken();fieldsToLoad.add(s);}}", "after": "public override void SetParams(string @params){this.m_params = @params; m_fieldsToLoad = new JCG.HashSet();for (StringTokenizer tokenizer = new StringTokenizer(@params, \",\"); tokenizer.MoveNext();){string s = tokenizer.Current;m_fieldsToLoad.Add(s);}}" }, { "index": 4915, "before": "public GetNamedQueryResult getNamedQuery(GetNamedQueryRequest request) {request = beforeClientExecution(request);return executeGetNamedQuery(request);}", "after": "public virtual GetNamedQueryResponse GetNamedQuery(GetNamedQueryRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetNamedQueryRequestMarshaller.Instance;options.ResponseUnmarshaller = GetNamedQueryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4916, "before": "public GermanStemFilter create(TokenStream in) {return new GermanStemFilter(in);}", "after": "public override TokenStream Create(TokenStream @in){return new GermanStemFilter(@in);}" }, { "index": 4917, "before": "public ExtendedFormatRecord createCellXF() {ExtendedFormatRecord xf = createExtendedFormat();records.add(records.getXfpos()+1, xf);records.setXfpos( records.getXfpos() + 1 );numxfs++;return xf;}", "after": "public ExtendedFormatRecord CreateCellXF(){ExtendedFormatRecord xf = CreateExtendedFormat();records.Add(records.Xfpos + 1, xf);records.Xfpos=records.Xfpos + 1;numxfs++;return xf;}" }, { "index": 4918, "before": "public Cluster modifyClusterMaintenance(ModifyClusterMaintenanceRequest request) {request = beforeClientExecution(request);return executeModifyClusterMaintenance(request);}", "after": "public virtual ModifyClusterMaintenanceResponse ModifyClusterMaintenance(ModifyClusterMaintenanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClusterMaintenanceRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClusterMaintenanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4919, "before": "public DeleteDBSecurityGroupResult deleteDBSecurityGroup(DeleteDBSecurityGroupRequest request) {request = beforeClientExecution(request);return executeDeleteDBSecurityGroup(request);}", "after": "public virtual DeleteDBSecurityGroupResponse DeleteDBSecurityGroup(DeleteDBSecurityGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBSecurityGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBSecurityGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4920, "before": "public static FormulaError forInt(int type) throws IllegalArgumentException {FormulaError err = imap.get(type);if(err == null) err = bmap.get((byte)type);if(err == null) throw new IllegalArgumentException(\"Unknown error type: \" + type);return err;}", "after": "public static FormulaError ForInt(byte type){if (bmap.ContainsKey(type))return bmap[type];throw new ArgumentException(\"Unknown error type: \" + type);}" }, { "index": 4921, "before": "public void finish(StringBuffer toAppendTo) {if (hStart >= 0 && !showAmPm) {for (int i = 0; i < hLen; i++) {toAppendTo.setCharAt(hStart + i, 'H');}}}", "after": "public void Finish(StringBuilder toAppendTo){if (hStart >= 0 && !_formatter.ShowAmPm){for (int i = 0; i < hLen; i++){toAppendTo[hStart + i] = 'H';}}}" }, { "index": 4922, "before": "public SendRawEmailResult sendRawEmail(SendRawEmailRequest request) {request = beforeClientExecution(request);return executeSendRawEmail(request);}", "after": "public virtual SendRawEmailResponse SendRawEmail(SendRawEmailRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendRawEmailRequestMarshaller.Instance;options.ResponseUnmarshaller = SendRawEmailResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4923, "before": "public void clear() {if ( readonly ) throw new IllegalStateException(\"can't alter readonly IntervalSet\");intervals.clear();}", "after": "public virtual void Clear(){if (@readonly){throw new InvalidOperationException(\"can't alter readonly IntervalSet\");}intervals.Clear();}" }, { "index": 4924, "before": "public int previous() {if (current == start) {return DONE;} else {return first();}}", "after": "public override int Previous(){if (current == start){return Done;}else{return First();}}" }, { "index": 4925, "before": "public DeleteDocumentClassifierResult deleteDocumentClassifier(DeleteDocumentClassifierRequest request) {request = beforeClientExecution(request);return executeDeleteDocumentClassifier(request);}", "after": "public virtual DeleteDocumentClassifierResponse DeleteDocumentClassifier(DeleteDocumentClassifierRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDocumentClassifierRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDocumentClassifierResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4926, "before": "public DeleteDeviceAllGroupRequest() {super(\"LinkFace\", \"2018-07-20\", \"DeleteDeviceAllGroup\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public DeleteDeviceAllGroupRequest(): base(\"LinkFace\", \"2018-07-20\", \"DeleteDeviceAllGroup\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 4927, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName());sb.append(\" [\");sb.append(\"sheetIx=\").append(getExternSheetIndex());sb.append(\" ! \");sb.append(formatReferenceAsString());sb.append(\"]\");return sb.toString();}", "after": "public override String ToString(){CellReference cr = new CellReference(Row, Column, !IsRowRelative, !IsColRelative);StringBuilder sb = new StringBuilder();sb.Append(GetType().Name);sb.Append(\" [\");sb.Append(\"sheetIx=\").Append(ExternSheetIndex);sb.Append(\" ! \");sb.Append(cr.FormatAsString());sb.Append(\"]\");return sb.ToString();}" }, { "index": 4928, "before": "public CreateBGPPeerResult createBGPPeer(CreateBGPPeerRequest request) {request = beforeClientExecution(request);return executeCreateBGPPeer(request);}", "after": "public virtual CreateBGPPeerResponse CreateBGPPeer(CreateBGPPeerRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateBGPPeerRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateBGPPeerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4929, "before": "public String toASCIIString() {StringBuilder result = new StringBuilder();ASCII_ONLY.appendEncoded(result, toString());return result.toString();}", "after": "public string toASCIIString(){java.lang.StringBuilder result = new java.lang.StringBuilder();ASCII_ONLY.appendEncoded(result, ToString());return result.ToString();}" }, { "index": 4930, "before": "public CharSequence subSequence(int start, int end) {int remaining = end - start;StringBuilder sb = new StringBuilder(remaining);int blockIdx = blockIndex(start);int indexInBlock = indexInBlock(start);while (remaining > 0) {Block b = blocks.get(blockIdx++);int numToAppend = Math.min(remaining, b.length - indexInBlock);sb.append(b.chars, indexInBlock, numToAppend);remaining -= numToAppend;indexInBlock = 0; }return sb.toString();}", "after": "public virtual ICharSequence Subsequence(int startIndex, int length){int remaining = length;StringBuilder sb = new StringBuilder(remaining);int blockIdx = BlockIndex(startIndex);int indexInBlock = IndexInBlock(startIndex);while (remaining > 0){Block b = blocks[blockIdx++];int numToAppend = Math.Min(remaining, b.length - indexInBlock);sb.Append(b.chars, indexInBlock, numToAppend);remaining -= numToAppend;indexInBlock = 0; }return new StringBuilderCharSequence(sb);}" }, { "index": 4931, "before": "public long get(int index) {final int o = index >>> 3;final int b = index & 7;final int shift = b << 3;return (blocks[o] >>> shift) & 255L;}", "after": "public override long Get(int index){int o = (int)((uint)index >> 3);int b = index & 7;int shift = b << 3;return ((long)((ulong)blocks[o] >> shift)) & 255L;}" }, { "index": 4932, "before": "public static Collection getNotSupportedFunctionNames() {Collection lst = new TreeSet<>();for (int i = 0; i < functions.length; i++) {Function func = functions[i];if (func != null && (func instanceof NotImplementedFunction)) {FunctionMetadata metaData = FunctionMetadataRegistry.getFunctionByIndex(i);lst.add(metaData.getName());}}lst.remove(\"INDIRECT\"); return Collections.unmodifiableCollection(lst);}", "after": "public static ReadOnlyCollection GetNotSupportedFunctionNames(){List lst = new List();for (int i = 0; i < functions.Length; i++){Function func = functions[i];if (func != null && (func is NotImplementedFunction)){FunctionMetadata metaData = FunctionMetadataRegistry.GetFunctionByIndex(i);lst.Add(metaData.Name);}}lst.Remove(\"INDIRECT\"); return lst.AsReadOnly(); }" }, { "index": 4933, "before": "public ItalianLightStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public ItalianLightStemFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 4934, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeByte(getNumberOfOperands());out.writeShort(getFunctionIndex());}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteByte(_numberOfArgs);out1.WriteShort(_functionIndex);}" }, { "index": 4935, "before": "public String getTokenErrorDisplay(Token t) {if ( t==null ) return \"\";String s = t.getText();if ( s==null ) {if ( t.getType()==Token.EOF ) {s = \"\";}else {s = \"<\"+t.getType()+\">\";}}s = s.replace(\"\\n\",\"\\\\n\");s = s.replace(\"\\r\",\"\\\\r\");s = s.replace(\"\\t\",\"\\\\t\");return \"'\"+s+\"'\";}", "after": "public virtual string GetTokenErrorDisplay(IToken t){if (t == null){return \"\";}string s = t.Text;if (s == null){if (t.Type == TokenConstants.EOF){s = \"\";}else{s = \"<\" + t.Type + \">\";}}s = s.Replace(\"\\n\", \"\\\\n\");s = s.Replace(\"\\r\", \"\\\\r\");s = s.Replace(\"\\t\", \"\\\\t\");return \"'\" + s + \"'\";}" }, { "index": 4936, "before": "public NumericPayloadTokenFilter create(TokenStream input) {return new NumericPayloadTokenFilter(input,payload,typeMatch);}", "after": "public override TokenStream Create(TokenStream input){return new NumericPayloadTokenFilter(input, payload, typeMatch);}" }, { "index": 4937, "before": "public void incrementDrawingsSaved(){dgg.setDrawingsSaved(dgg.getDrawingsSaved()+1);}", "after": "public void IncrementDrawingsSaved(){dgg.DrawingsSaved = dgg.DrawingsSaved + 1;}" }, { "index": 4938, "before": "public UploadSigningCertificateRequest(String certificateBody) {setCertificateBody(certificateBody);}", "after": "public UploadSigningCertificateRequest(string certificateBody){_certificateBody = certificateBody;}" }, { "index": 4939, "before": "public DeleteJourneyResult deleteJourney(DeleteJourneyRequest request) {request = beforeClientExecution(request);return executeDeleteJourney(request);}", "after": "public virtual DeleteJourneyResponse DeleteJourney(DeleteJourneyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteJourneyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteJourneyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4940, "before": "public void reset() {ptr = mark;}", "after": "public override void Reset(){ptr = mark;}" }, { "index": 4941, "before": "public DescribeInstanceHealthRequest(String loadBalancerName) {setLoadBalancerName(loadBalancerName);}", "after": "public DescribeInstanceHealthRequest(string loadBalancerName){_loadBalancerName = loadBalancerName;}" }, { "index": 4942, "before": "public static Automaton toAutomaton(Term wildcardquery) {List automata = new ArrayList<>();String wildcardText = wildcardquery.text();for (int i = 0; i < wildcardText.length();) {final int c = wildcardText.codePointAt(i);int length = Character.charCount(c);switch(c) {case WILDCARD_STRING:automata.add(Automata.makeAnyString());break;case WILDCARD_CHAR:automata.add(Automata.makeAnyChar());break;case WILDCARD_ESCAPE:if (i + length < wildcardText.length()) {final int nextChar = wildcardText.codePointAt(i + length);length += Character.charCount(nextChar);automata.add(Automata.makeChar(nextChar));break;} default:automata.add(Automata.makeChar(c));}i += length;}return Operations.concatenate(automata);}", "after": "public static Automaton ToAutomaton(Term wildcardquery){IList automata = new List();string wildcardText = wildcardquery.Text();for (int i = 0; i < wildcardText.Length; ){int c = Character.CodePointAt(wildcardText, i);int length = Character.CharCount(c);switch (c){case WILDCARD_STRING:automata.Add(BasicAutomata.MakeAnyString());break;case WILDCARD_CHAR:automata.Add(BasicAutomata.MakeAnyChar());break;case WILDCARD_ESCAPE:if (i + length < wildcardText.Length){int nextChar = Character.CodePointAt(wildcardText, i + length);length += Character.CharCount(nextChar);automata.Add(BasicAutomata.MakeChar(nextChar));break;} goto default;default:automata.Add(BasicAutomata.MakeChar(c));break;}i += length;}return BasicOperations.Concatenate(automata);}" }, { "index": 4943, "before": "public boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (obj instanceof ExtendedFormatRecord) {final ExtendedFormatRecord other = (ExtendedFormatRecord) obj;if (field_1_font_index != other.field_1_font_index)return false;if (field_2_format_index != other.field_2_format_index)return false;if (field_3_cell_options != other.field_3_cell_options)return false;if (field_4_alignment_options != other.field_4_alignment_options)return false;if (field_5_indention_options != other.field_5_indention_options)return false;if (field_6_border_options != other.field_6_border_options)return false;if (field_7_palette_options != other.field_7_palette_options)return false;if (field_8_adtl_palette_options != other.field_8_adtl_palette_options)return false;if (field_9_fill_palette_options != other.field_9_fill_palette_options)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 ExtendedFormatRecord){ExtendedFormatRecord other = (ExtendedFormatRecord)obj;if (field_1_font_index != other.field_1_font_index)return false;if (field_2_format_index != other.field_2_format_index)return false;if (field_3_cell_options != other.field_3_cell_options)return false;if (field_4_alignment_options != other.field_4_alignment_options)return false;if (field_5_indention_options != other.field_5_indention_options)return false;if (field_6_border_options != other.field_6_border_options)return false;if (field_7_palette_options != other.field_7_palette_options)return false;if (field_8_adtl_palette_options != other.field_8_adtl_palette_options)return false;if (field_9_fill_palette_options != other.field_9_fill_palette_options)return false;return true;}return false;}" }, { "index": 4944, "before": "public short[] getTriplet(){return new short[]{(short) (_red & 0xff),(short) (_green & 0xff),(short) (_blue & 0xff)};}", "after": "public override byte[] GetTriplet(){return new byte[]{(byte)(red & 0xff),(byte)(green & 0xff),(byte)(blue & 0xff)};}" }, { "index": 4945, "before": "public BlameCommand setFollowFileRenames(boolean follow) {followFileRenames = Boolean.valueOf(follow);return this;}", "after": "public virtual NGit.Api.BlameCommand SetFollowFileRenames(bool follow){followFileRenames = Sharpen.Extensions.ValueOf(follow);return this;}" }, { "index": 4946, "before": "public StringMatcher(String value, CmpOp operator) {super(operator);_value = value;switch(operator.getCode()) {case CmpOp.NONE:case CmpOp.EQ:case CmpOp.NE:_pattern = getWildCardPattern(value);break;default:_pattern = null;}}", "after": "public StringMatcher(String value, CmpOp optr):base(optr){_value = value;_operator = optr;switch (optr.Code){case CmpOp.NONE:case CmpOp.EQ:case CmpOp.NE:_pattern = GetWildCardPattern(value);break;default:_pattern = null;break;}}" }, { "index": 4947, "before": "public DefaultColWidthRecord() {field_1_col_width = DEFAULT_COLUMN_WIDTH;}", "after": "public DefaultColWidthRecord(){field_1_col_width = DEFAULT_COLUMN_WIDTH;}" }, { "index": 4948, "before": "public GetIndustryInfoListRequest() {super(\"industry-brain\", \"2018-07-12\", \"GetIndustryInfoList\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetIndustryInfoListRequest(): base(\"industry-brain\", \"2018-07-12\", \"GetIndustryInfoList\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 4949, "before": "public AssociateTrialComponentResult associateTrialComponent(AssociateTrialComponentRequest request) {request = beforeClientExecution(request);return executeAssociateTrialComponent(request);}", "after": "public virtual AssociateTrialComponentResponse AssociateTrialComponent(AssociateTrialComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateTrialComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateTrialComponentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4950, "before": "public FileIdCluster addCluster(int dgId, int numShapedUsed) {return addCluster(dgId, numShapedUsed, true);}", "after": "public void AddCluster(int dgId, int numShapedUsed){AddCluster(dgId, numShapedUsed, true);}" }, { "index": 4951, "before": "public GetFieldLevelEncryptionResult getFieldLevelEncryption(GetFieldLevelEncryptionRequest request) {request = beforeClientExecution(request);return executeGetFieldLevelEncryption(request);}", "after": "public virtual GetFieldLevelEncryptionResponse GetFieldLevelEncryption(GetFieldLevelEncryptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFieldLevelEncryptionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFieldLevelEncryptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4952, "before": "public CharBuffer get(char[] dst, int dstOffset, int charCount) {Arrays.checkOffsetAndCount(dst.length, dstOffset, charCount);if (charCount > remaining()) {throw new BufferUnderflowException();}for (int i = dstOffset; i < dstOffset + charCount; ++i) {dst[i] = get();}return this;}", "after": "public virtual java.nio.CharBuffer get(char[] dst, int dstOffset, int charCount){java.util.Arrays.checkOffsetAndCount(dst.Length, dstOffset, charCount);if (charCount > remaining()){throw new java.nio.BufferUnderflowException();}{for (int i = dstOffset; i < dstOffset + charCount; ++i){dst[i] = get();}}return this;}" }, { "index": 4953, "before": "public UpdateServiceResult updateService(UpdateServiceRequest request) {request = beforeClientExecution(request);return executeUpdateService(request);}", "after": "public virtual UpdateServiceResponse UpdateService(UpdateServiceRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateServiceRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateServiceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4954, "before": "public FlushStageCacheResult flushStageCache(FlushStageCacheRequest request) {request = beforeClientExecution(request);return executeFlushStageCache(request);}", "after": "public virtual FlushStageCacheResponse FlushStageCache(FlushStageCacheRequest request){var options = new InvokeOptions();options.RequestMarshaller = FlushStageCacheRequestMarshaller.Instance;options.ResponseUnmarshaller = FlushStageCacheResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4955, "before": "public ModifyInstanceMetadataOptionsResult modifyInstanceMetadataOptions(ModifyInstanceMetadataOptionsRequest request) {request = beforeClientExecution(request);return executeModifyInstanceMetadataOptions(request);}", "after": "public virtual ModifyInstanceMetadataOptionsResponse ModifyInstanceMetadataOptions(ModifyInstanceMetadataOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyInstanceMetadataOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyInstanceMetadataOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4956, "before": "public DefaultRowHeightRecord(RecordInputStream in) {field_1_option_flags = in.readShort();field_2_row_height = in.readShort();}", "after": "public DefaultRowHeightRecord(RecordInputStream in1){field_1_option_flags = in1.ReadShort();field_2_row_height = in1.ReadShort();}" }, { "index": 4957, "before": "public ListModelPackagesResult listModelPackages(ListModelPackagesRequest request) {request = beforeClientExecution(request);return executeListModelPackages(request);}", "after": "public virtual ListModelPackagesResponse ListModelPackages(ListModelPackagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListModelPackagesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListModelPackagesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4958, "before": "public StopFleetActionsResult stopFleetActions(StopFleetActionsRequest request) {request = beforeClientExecution(request);return executeStopFleetActions(request);}", "after": "public virtual StopFleetActionsResponse StopFleetActions(StopFleetActionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopFleetActionsRequestMarshaller.Instance;options.ResponseUnmarshaller = StopFleetActionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4959, "before": "public boolean matches(ValueEval x) {double testValue;if(x instanceof StringEval) {switch (getCode()) {case CmpOp.EQ:case CmpOp.NONE:break;case CmpOp.NE:return true;default:return false;}StringEval se = (StringEval)x;Double val = OperandResolver.parseDouble(se.getStringValue());if(val == null) {return false;}return _value == val.doubleValue();} else if((x instanceof NumberEval)) {NumberEval ne = (NumberEval) x;testValue = ne.getNumberValue();} else if((x instanceof BlankEval)) {switch (getCode()) {case CmpOp.NE:return true;default:return false;}} else {return false;}return evaluate(Double.compare(testValue, _value));}", "after": "public override bool Matches(ValueEval x){double testValue;if (x is StringEval){switch (Code){case CmpOp.EQ:case CmpOp.NONE:break;case CmpOp.NE:return true;default:return false;}StringEval se = (StringEval)x;Double val = OperandResolver.ParseDouble(se.StringValue);if (double.IsNaN(val)){return false;}return _value == val;}else if ((x is NumberEval)){NumberEval ne = (NumberEval)x;testValue = ne.NumberValue;}else if ((x is BlankEval)){switch (Code){case CmpOp.NE:return true;default:return false;}}else{return false;}return Evaluate(testValue.CompareTo(_value));}" }, { "index": 4960, "before": "public boolean include(RevWalk walker, RevCommit c) {throw new UnsupportedOperationException(JGitText.get().cannotBeCombined);}", "after": "public override bool Include(RevWalk walker, RevCommit c){throw new NotSupportedException(JGitText.Get().cannotBeCombined);}" }, { "index": 4961, "before": "public LongList(int capacity) {entries = new long[capacity];}", "after": "public LongList(int capacity){entries = new long[capacity];}" }, { "index": 4962, "before": "public static String readAsciiLine(InputStream in) throws IOException {StringBuilder result = new StringBuilder(80);while (true) {int c = in.read();if (c == -1) {throw new EOFException();} else if (c == '\\n') {break;}result.append((char) c);}int length = result.length();if (length > 0 && result.charAt(length - 1) == '\\r') {result.setLength(length - 1);}return result.toString();}", "after": "public static string readAsciiLine(java.io.InputStream @in){java.lang.StringBuilder result = new java.lang.StringBuilder(80);while (true){int c = @in.read();if (c == -1){throw new java.io.EOFException();}else{if (c == '\\n'){break;}}result.append((char)c);}int length = result.Length;if (length > 0 && result[length - 1] == '\\r'){result.setLength(length - 1);}return result.ToString();}" }, { "index": 4963, "before": "public DeleteRouteRequestParameterResult deleteRouteRequestParameter(DeleteRouteRequestParameterRequest request) {request = beforeClientExecution(request);return executeDeleteRouteRequestParameter(request);}", "after": "public virtual DeleteRouteRequestParameterResponse DeleteRouteRequestParameter(DeleteRouteRequestParameterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRouteRequestParameterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRouteRequestParameterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4964, "before": "public int getRowCountForBlock(int block) {int startIndex = block * DBCellRecord.BLOCK_SIZE;int endIndex = startIndex + DBCellRecord.BLOCK_SIZE - 1;if (endIndex >= _rowRecords.size())endIndex = _rowRecords.size()-1;return endIndex-startIndex+1;}", "after": "public int GetRowCountForBlock(int block){int startIndex = block * DBCellRecord.BLOCK_SIZE;int endIndex = startIndex + DBCellRecord.BLOCK_SIZE - 1;if (endIndex >= _rowRecords.Count)endIndex = _rowRecords.Count - 1;return endIndex - startIndex + 1;}" }, { "index": 4965, "before": "public boolean add(CharSequence text) {return map.put(text, PLACEHOLDER) == null;}", "after": "public virtual bool Add(ICharSequence text){return map.Put(text);}" }, { "index": 4966, "before": "public FSTCompletion(FST automaton, boolean higherWeightsFirst, boolean exactFirst) {this.automaton = automaton;if (automaton != null) {this.rootArcs = cacheRootArcs(automaton);} else {this.rootArcs = new Arc[0];}this.higherWeightsFirst = higherWeightsFirst;this.exactFirst = exactFirst;}", "after": "public FSTCompletion(FST automaton, bool higherWeightsFirst, bool exactFirst){this.automaton = automaton;if (automaton != null){this.rootArcs = CacheRootArcs(automaton);}else{this.rootArcs = new FST.Arc[0];}this.higherWeightsFirst = higherWeightsFirst;this.exactFirst = exactFirst;}" }, { "index": 4967, "before": "public Explanation idfExplain(CollectionStatistics collectionStats, TermStatistics termStats[]) {double idf = 0d; List details = new ArrayList<>();for (final TermStatistics stat : termStats ) {Explanation idfExplain = idfExplain(collectionStats, stat);details.add(idfExplain);idf += idfExplain.getValue().floatValue();}return Explanation.match((float) idf, \"idf, sum of:\", details);}", "after": "public virtual Explanation IdfExplain(CollectionStatistics collectionStats, TermStatistics termStats){long df = termStats.DocFreq;long max = collectionStats.MaxDoc;float idf = Idf(df, max);return new Explanation(idf, \"idf(docFreq=\" + df + \", maxDocs=\" + max + \")\");}" }, { "index": 4968, "before": "public CreateEndpointResult createEndpoint(CreateEndpointRequest request) {request = beforeClientExecution(request);return executeCreateEndpoint(request);}", "after": "public virtual CreateEndpointResponse CreateEndpoint(CreateEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4969, "before": "public int serialize(int offset, byte[] data){LittleEndian.putShort( data, 0 + offset, getSid() );LittleEndian.putShort( data, 2 + offset, (short) ( getRecordSize() - 4 ) );byte[] rawData = getRawData();if ( escherRecords.size() == 0 && rawData != null ){LittleEndian.putShort(data, 0 + offset, getSid());LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));System.arraycopy( rawData, 0, data, 4 + offset, rawData.length);return rawData.length + 4;}LittleEndian.putShort(data, 0 + offset, getSid());LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));int pos = offset + 4;for (EscherRecord r : escherRecords) {pos += r.serialize( pos, data, new NullEscherSerializationListener() );}return getRecordSize();}", "after": "public override int Serialize(int offset, byte[] data){LittleEndian.PutShort(data, 0 + offset, Sid);LittleEndian.PutShort(data, 2 + offset, (short)(RecordSize - 4));byte[] rawData = RawData;if (escherRecords.Count == 0 && rawData != null){LittleEndian.PutShort(data, 0 + offset, Sid);LittleEndian.PutShort(data, 2 + offset, (short)(RecordSize - 4));Array.Copy(rawData, 0, data, 4 + offset, rawData.Length);return rawData.Length + 4;}LittleEndian.PutShort(data, 0 + offset, Sid);LittleEndian.PutShort(data, 2 + offset, (short)(RecordSize - 4));int pos = offset + 4;foreach (EscherRecord r in escherRecords){pos += r.Serialize(pos, data, new NullEscherSerializationListener());}return RecordSize;}" }, { "index": 4970, "before": "public boolean isBelowMaxRep() {int sc = _significand.bitLength() - C_64;return _significand.compareTo(BI_MAX_BASE.shiftLeft(sc)) < 0;}", "after": "public bool IsBelowMaxRep(){int sc = _significand.BitLength() - C_64;return _significand.CompareTo(BI_MAX_BASE.ShiftLeft(sc)) < 0;}" }, { "index": 4971, "before": "public FieldIndexEnum getFieldEnum(FieldInfo fieldInfo) {final FieldIndexData fieldData = fields.get(fieldInfo.name);if (fieldData.fst == null) {return null;} else {return new IndexEnum(fieldData.fst);}}", "after": "public override FieldIndexEnum GetFieldEnum(FieldInfo fieldInfo){FieldIndexData fieldData;if (!fields.TryGetValue(fieldInfo, out fieldData) || fieldData == null || fieldData.fst == null){return null;}else{return new IndexEnum(fieldData.fst);}}" }, { "index": 4972, "before": "public AssociationsFacetsExample() {config = new FacetsConfig();config.setMultiValued(\"tags\", true);config.setIndexFieldName(\"tags\", \"$tags\");config.setMultiValued(\"genre\", true);config.setIndexFieldName(\"genre\", \"$genre\");}", "after": "public AssociationsFacetsExample(){config = new FacetsConfig();config.SetMultiValued(\"tags\", true);config.SetIndexFieldName(\"tags\", \"$tags\");config.SetMultiValued(\"genre\", true);config.SetIndexFieldName(\"genre\", \"$genre\");}" }, { "index": 4973, "before": "public void fill(int fromIndex, int toIndex, long val) {ensureCapacity(val);current.fill(fromIndex, toIndex, val);}", "after": "public override void Fill(int fromIndex, int toIndex, long val){EnsureCapacity(val);current.Fill(fromIndex, toIndex, val);}" }, { "index": 4974, "before": "public ListDeploymentConfigsResult listDeploymentConfigs(ListDeploymentConfigsRequest request) {request = beforeClientExecution(request);return executeListDeploymentConfigs(request);}", "after": "public virtual ListDeploymentConfigsResponse ListDeploymentConfigs(ListDeploymentConfigsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeploymentConfigsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeploymentConfigsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4975, "before": "public ListUserPoliciesRequest(String userName) {setUserName(userName);}", "after": "public ListUserPoliciesRequest(string userName){_userName = userName;}" }, { "index": 4976, "before": "public TokenStream create(TokenStream input) {return new FinnishLightStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new FinnishLightStemFilter(input);}" }, { "index": 4977, "before": "public CharSequence getLastOnPath(CharSequence key) {StringBuilder result = new StringBuilder(tries.size() * 2);for (int i = 0; i < tries.size(); i++) {CharSequence r = tries.get(i).getLastOnPath(key);if (r == null || (r.length() == 1 && r.charAt(0) == EOM)) {return result;}result.append(r);}return result;}", "after": "public override string GetLastOnPath(string key){StringBuilder result = new StringBuilder(m_tries.Count * 2);for (int i = 0; i < m_tries.Count; i++){string r = m_tries[i].GetLastOnPath(key);if (r == null || (r.Length == 1 && r[0] == EOM)){return result.ToString();}result.Append(r);}return result.ToString();}" }, { "index": 4978, "before": "public int getExternalSheetIndex(String workbookName, String firstSheetName, String lastSheetName) {int externalBookIndex = getExternalWorkbookIndex(workbookName);if (externalBookIndex == -1) {throw new RuntimeException(\"No external workbook with name '\" + workbookName + \"'\");}SupBookRecord ebrTarget = _externalBookBlocks[externalBookIndex].getExternalBookRecord();int firstSheetIndex = getSheetIndex(ebrTarget.getSheetNames(), firstSheetName);int lastSheetIndex = getSheetIndex(ebrTarget.getSheetNames(), lastSheetName);int result = _externSheetRecord.getRefIxForSheet(externalBookIndex, firstSheetIndex, lastSheetIndex);if (result < 0) {result = _externSheetRecord.addRef(externalBookIndex, firstSheetIndex, lastSheetIndex);}return result;}", "after": "public int GetExternalSheetIndex(String workbookName, String firstSheetName, String lastSheetName){int externalBookIndex = GetExternalWorkbookIndex(workbookName);if (externalBookIndex == -1){throw new RuntimeException(\"No external workbook with name '\" + workbookName + \"'\");}SupBookRecord ebrTarget = _externalBookBlocks[externalBookIndex].GetExternalBookRecord();int firstSheetIndex = GetSheetIndex(ebrTarget.SheetNames, firstSheetName);int lastSheetIndex = GetSheetIndex(ebrTarget.SheetNames, lastSheetName);int result = _externSheetRecord.GetRefIxForSheet(externalBookIndex, firstSheetIndex, lastSheetIndex);if (result < 0){result = _externSheetRecord.AddRef(externalBookIndex, firstSheetIndex, lastSheetIndex);}return result;}" }, { "index": 4979, "before": "public String findSheetLastNameFromExternSheet(int externSheetIndex){int indexToSheet = linkTable.getLastInternalSheetIndexForExtIndex(externSheetIndex);return findSheetNameFromIndex(indexToSheet);}", "after": "public String FindSheetLastNameFromExternSheet(int externSheetIndex){int indexToSheet = linkTable.GetLastInternalSheetIndexForExtIndex(externSheetIndex);return FindSheetNameFromIndex(indexToSheet);}" }, { "index": 4980, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(rt);out.writeShort(grbitFrt);out.writeShort(iObjectKind);out.write(reserved);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(rt);out1.WriteShort(grbitFrt);out1.WriteShort(iObjectKind);out1.Write(reserved);}" }, { "index": 4981, "before": "public final ValueEval getValue() {return _value;}", "after": "public ValueEval GetValue(){return _value;}" }, { "index": 4982, "before": "public ImportImageResult importImage(ImportImageRequest request) {request = beforeClientExecution(request);return executeImportImage(request);}", "after": "public virtual ImportImageResponse ImportImage(ImportImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportImageRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportImageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4983, "before": "public PruneByAge(double maxAgeSec) {if (maxAgeSec < 0) {throw new IllegalArgumentException(\"maxAgeSec must be > 0 (got \" + maxAgeSec + \")\");}this.maxAgeSec = maxAgeSec;}", "after": "public PruneByAge(double maxAgeSec){if (maxAgeSec < 0){throw new System.ArgumentException(\"maxAgeSec must be > 0 (got \" + maxAgeSec + \")\");}this.maxAgeSec = maxAgeSec;}" }, { "index": 4984, "before": "public DeleteSecurityGroupRequest(String groupName) {setGroupName(groupName);}", "after": "public DeleteSecurityGroupRequest(string groupName){_groupName = groupName;}" }, { "index": 4985, "before": "public GetRoomSkillParameterResult getRoomSkillParameter(GetRoomSkillParameterRequest request) {request = beforeClientExecution(request);return executeGetRoomSkillParameter(request);}", "after": "public virtual GetRoomSkillParameterResponse GetRoomSkillParameter(GetRoomSkillParameterRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRoomSkillParameterRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRoomSkillParameterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4986, "before": "public ParserRuleContext parse(int startRuleIndex) {RuleStartState startRuleStartState = atn.ruleToStartState[startRuleIndex];rootContext = createInterpreterRuleContext(null, ATNState.INVALID_STATE_NUMBER, startRuleIndex);if (startRuleStartState.isLeftRecursiveRule) {enterRecursionRule(rootContext, startRuleStartState.stateNumber, startRuleIndex, 0);}else {enterRule(rootContext, startRuleStartState.stateNumber, startRuleIndex);}while ( true ) {ATNState p = getATNState();switch ( p.getStateType() ) {case ATNState.RULE_STOP :if ( _ctx.isEmpty() ) {if (startRuleStartState.isLeftRecursiveRule) {ParserRuleContext result = _ctx;Pair parentContext = _parentContextStack.pop();unrollRecursionContexts(parentContext.a);return result;}else {exitRule();return rootContext;}}visitRuleStopState(p);break;default :try {visitState(p);}catch (RecognitionException e) {setState(atn.ruleToStopState[p.ruleIndex].stateNumber);getContext().exception = e;getErrorHandler().reportError(this, e);recover(e);}break;}}}", "after": "public virtual ParserRuleContext Parse(int startRuleIndex){RuleStartState startRuleStartState = _atn.ruleToStartState[startRuleIndex];InterpreterRuleContext rootContext = new InterpreterRuleContext(null, ATNState.InvalidStateNumber, startRuleIndex);if (startRuleStartState.isPrecedenceRule){EnterRecursionRule(rootContext, startRuleStartState.stateNumber, startRuleIndex, 0);}else{EnterRule(rootContext, startRuleStartState.stateNumber, startRuleIndex);}while (true){ATNState p = AtnState;switch (p.StateType){case StateType.RuleStop:{if (RuleContext.IsEmpty){if (startRuleStartState.isPrecedenceRule){ParserRuleContext result = RuleContext;Tuple parentContext = _parentContextStack.Pop();UnrollRecursionContexts(parentContext.Item1);return result;}else{ExitRule();return rootContext;}}VisitRuleStopState(p);break;}default:{try{VisitState(p);}catch (RecognitionException e){State = _atn.ruleToStopState[p.ruleIndex].stateNumber;Context.exception = e;ErrorHandler.ReportError(this, e);ErrorHandler.Recover(this, e);}break;}}}}" }, { "index": 4987, "before": "public DeleteInstallationMediaResult deleteInstallationMedia(DeleteInstallationMediaRequest request) {request = beforeClientExecution(request);return executeDeleteInstallationMedia(request);}", "after": "public virtual DeleteInstallationMediaResponse DeleteInstallationMedia(DeleteInstallationMediaRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteInstallationMediaRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteInstallationMediaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4988, "before": "public boolean accept(double value) {return value >= min && value <= max;}", "after": "public bool Accept(double value){return value >= minIncl && value <= maxIncl;}" }, { "index": 4989, "before": "public GetVariablesResult getVariables(GetVariablesRequest request) {request = beforeClientExecution(request);return executeGetVariables(request);}", "after": "public virtual GetVariablesResponse GetVariables(GetVariablesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVariablesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVariablesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4990, "before": "public void decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final int byte0 = blocks[blocksOffset++] & 0xFF;final int byte1 = blocks[blocksOffset++] & 0xFF;final int byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 16) | (byte1 << 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;int byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 16) | (byte1 << 8) | byte2;}}" }, { "index": 4991, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_pointNumber);out.writeShort(field_2_seriesIndex);out.writeShort(field_3_seriesNumber);out.writeShort(field_4_formatFlags);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_pointNumber);out1.WriteShort(field_2_seriesIndex);out1.WriteShort(field_3_seriesNumber);out1.WriteShort(field_4_formatFlags);}" }, { "index": 4992, "before": "public Area3DPxg(int externalWorkbookNumber, SheetIdentifier sheetName, String arearef) {this(externalWorkbookNumber, sheetName, new AreaReference(arearef, SpreadsheetVersion.EXCEL2007));}", "after": "public Area3DPxg(int externalWorkbookNumber, SheetIdentifier sheetName, String arearef): this(externalWorkbookNumber, sheetName, new AreaReference(arearef)){;}" }, { "index": 4993, "before": "public final CharSequence subSequence(int start, int end) {checkStartEndRemaining(start, end);CharBuffer result = duplicate();result.limit(position + end);result.position(position + start);return result;}", "after": "public sealed override java.lang.CharSequence SubSequence(int start, int end){checkStartEndRemaining(start, end);java.nio.CharBuffer result = duplicate();result.limit(_position + end);result.position(_position + start);return result;}" }, { "index": 4994, "before": "public DescribeInstallationMediaResult describeInstallationMedia(DescribeInstallationMediaRequest request) {request = beforeClientExecution(request);return executeDescribeInstallationMedia(request);}", "after": "public virtual DescribeInstallationMediaResponse DescribeInstallationMedia(DescribeInstallationMediaRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInstallationMediaRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInstallationMediaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4995, "before": "public UpdateConferenceProviderResult updateConferenceProvider(UpdateConferenceProviderRequest request) {request = beforeClientExecution(request);return executeUpdateConferenceProvider(request);}", "after": "public virtual UpdateConferenceProviderResponse UpdateConferenceProvider(UpdateConferenceProviderRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateConferenceProviderRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateConferenceProviderResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 4996, "before": "public void release(int marker) {int expectedMark = -numMarkers;if ( marker!=expectedMark ) {throw new IllegalStateException(\"release() called with an invalid marker.\");}numMarkers--;if ( numMarkers==0 && p > 0 ) { System.arraycopy(data, p, data, 0, n - p); n = n - p;p = 0;lastCharBufferStart = lastChar;}}", "after": "public virtual void Release(int marker){int expectedMark = -numMarkers;if (marker != expectedMark){throw new InvalidOperationException(\"release() called with an invalid marker.\");}numMarkers--;if (numMarkers == 0 && p > 0){System.Array.Copy(data, p, data, 0, n - p);n = n - p;p = 0;lastCharBufferStart = lastChar;}}" }, { "index": 4997, "before": "public static int getDataSize() {return 12;}", "after": "public static int GetDataSize(){return 12;}" }, { "index": 4998, "before": "public TokenStream create(TokenStream input) {return new UpperCaseFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new UpperCaseFilter(m_luceneMatchVersion, input);}" }, { "index": 4999, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getHideObj());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(GetHideObj());}" }, { "index": 5000, "before": "public V setValue(V value) {V oldValue = this.value;this.value = value;return oldValue;}", "after": "public virtual V setValue(V value){V oldValue = this.value;this.value = value;return oldValue;}" }, { "index": 5001, "before": "public String toString() {return toString(0);}", "after": "public override string ToString(){return ToString(Dir, 0);}" }, { "index": 5002, "before": "public CreateHITResult createHIT(CreateHITRequest request) {request = beforeClientExecution(request);return executeCreateHIT(request);}", "after": "public virtual CreateHITResponse CreateHIT(CreateHITRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateHITRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateHITResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5003, "before": "public void setDelimiters(String start, String stop, String escapeLeft) {if (start == null || start.isEmpty()) {throw new IllegalArgumentException(\"start cannot be null or empty\");}if (stop == null || stop.isEmpty()) {throw new IllegalArgumentException(\"stop cannot be null or empty\");}this.start = start;this.stop = stop;this.escape = escapeLeft;}", "after": "public virtual void SetDelimiters(string start, string stop, string escapeLeft){if (string.IsNullOrEmpty(start)){throw new ArgumentException(\"start cannot be null or empty\");}if (string.IsNullOrEmpty(stop)){throw new ArgumentException(\"stop cannot be null or empty\");}this.start = start;this.stop = stop;this.escape = escapeLeft;}" }, { "index": 5004, "before": "public final int serialize(int offset, byte[] data) {int dataSize = getDataSize();int recSize = 4 + dataSize;try (LittleEndianByteArrayOutputStream out =new LittleEndianByteArrayOutputStream(data, offset, recSize)) {out.writeShort(getSid());out.writeShort(dataSize);serialize(out);if (out.getWriteIndex() - offset != recSize) {throw new IllegalStateException(\"Error in serialization of (\" + getClass().getName() + \"): \"+ \"Incorrect number of bytes written - expected \" + recSize + \" but got \"+ (out.getWriteIndex() - offset));}} catch (IOException ioe) {throw new IllegalStateException(ioe);}return recSize;}", "after": "public override int Serialize(int offset, byte[] data){int dataSize = DataSize;int recSize = 4 + dataSize;LittleEndianByteArrayOutputStream out1 = new LittleEndianByteArrayOutputStream(data, offset, recSize);out1.WriteShort(this.Sid);out1.WriteShort(dataSize);Serialize(out1);if (out1.WriteIndex - offset != recSize){throw new InvalidOperationException(\"Error in serialization of (\" + this.GetType().Name + \"): \"+ \"Incorrect number of bytes written - expected \"+ recSize + \" but got \" + (out1.WriteIndex - offset));}return recSize;}" }, { "index": 5005, "before": "public DoubleBuffer duplicate() {return copy(this, mark);}", "after": "public override java.nio.DoubleBuffer duplicate(){return copy(this, _mark);}" }, { "index": 5006, "before": "public ByteBuffer putInt(int value) {int newPosition = position + SizeOf.INT;if (newPosition > limit) {throw new BufferOverflowException();}Memory.pokeInt(backingArray, offset + position, value, order);position = newPosition;return this;}", "after": "public override java.nio.ByteBuffer putInt(int value){int newPosition = _position + libcore.io.SizeOf.INT;if (newPosition > _limit){throw new java.nio.BufferOverflowException();}libcore.io.Memory.pokeInt(backingArray, offset + _position, value, _order);_position = newPosition;return this;}" }, { "index": 5007, "before": "public final boolean has(RevFlag flag) {return (flags & flag.mask) != 0;}", "after": "public bool Has(RevFlag flag){return (flags & flag.mask) != 0;}" }, { "index": 5008, "before": "public ListGeoLocationsResult listGeoLocations(ListGeoLocationsRequest request) {request = beforeClientExecution(request);return executeListGeoLocations(request);}", "after": "public virtual ListGeoLocationsResponse ListGeoLocations(ListGeoLocationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGeoLocationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGeoLocationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5009, "before": "public DescribeClusterSnapshotsResult describeClusterSnapshots(DescribeClusterSnapshotsRequest request) {request = beforeClientExecution(request);return executeDescribeClusterSnapshots(request);}", "after": "public virtual DescribeClusterSnapshotsResponse DescribeClusterSnapshots(DescribeClusterSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterSnapshotsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5010, "before": "public DeleteDirectConnectGatewayAssociationProposalResult deleteDirectConnectGatewayAssociationProposal(DeleteDirectConnectGatewayAssociationProposalRequest request) {request = beforeClientExecution(request);return executeDeleteDirectConnectGatewayAssociationProposal(request);}", "after": "public virtual DeleteDirectConnectGatewayAssociationProposalResponse DeleteDirectConnectGatewayAssociationProposal(DeleteDirectConnectGatewayAssociationProposalRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDirectConnectGatewayAssociationProposalRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDirectConnectGatewayAssociationProposalResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5011, "before": "public V get() throws InterruptedException, ExecutionException {return sync.innerGet();}", "after": "public virtual V get(){throw new System.NotImplementedException();}" }, { "index": 5012, "before": "public static final int prevLF(byte[] b, int ptr) {return prev(b, ptr, '\\n');}", "after": "public static int PrevLF(byte[] b, int ptr){return Prev(b, ptr, '\\n');}" }, { "index": 5013, "before": "public GetVoiceConnectorTerminationResult getVoiceConnectorTermination(GetVoiceConnectorTerminationRequest request) {request = beforeClientExecution(request);return executeGetVoiceConnectorTermination(request);}", "after": "public virtual GetVoiceConnectorTerminationResponse GetVoiceConnectorTermination(GetVoiceConnectorTerminationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceConnectorTerminationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceConnectorTerminationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5014, "before": "public int getLevelForDistance(double dist) {if (dist == 0)return maxLevels;final int level = GeohashUtils.lookupHashLenForWidthHeight(dist, dist);return Math.max(Math.min(level, maxLevels), 1);}", "after": "public override int GetLevelForDistance(double dist){if (dist == 0){return m_maxLevels;}int level = GeohashUtils.LookupHashLenForWidthHeight(dist, dist);return Math.Max(Math.Min(level, m_maxLevels), 1);}" }, { "index": 5015, "before": "public DescribeHsmConfigurationsResult describeHsmConfigurations() {return describeHsmConfigurations(new DescribeHsmConfigurationsRequest());}", "after": "public virtual DescribeHsmConfigurationsResponse DescribeHsmConfigurations(){return DescribeHsmConfigurations(new DescribeHsmConfigurationsRequest());}" }, { "index": 5016, "before": "public DeleteInternetGatewayResult deleteInternetGateway(DeleteInternetGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteInternetGateway(request);}", "after": "public virtual DeleteInternetGatewayResponse DeleteInternetGateway(DeleteInternetGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteInternetGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteInternetGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5017, "before": "public synchronized StringBuffer append(char ch) {append0(ch);return this;}", "after": "public java.lang.StringBuffer append(char ch){lock (this){append0(ch);return this;}}" }, { "index": 5018, "before": "public boolean equals( Object o ) {return o instanceof SwedishStemmer;}", "after": "public override bool Equals(object o){return o is SwedishStemmer;}" }, { "index": 5019, "before": "public int getNameOffset() {return pathOffset;}", "after": "public virtual int GetNameOffset(){return pathOffset;}" }, { "index": 5020, "before": "public SingleTermsEnum(TermsEnum tenum, BytesRef termText) {super(tenum);singleRef = termText;setInitialSeekTerm(termText);}", "after": "public SingleTermsEnum(TermsEnum tenum, BytesRef termText): base(tenum){singleRef = termText;SetInitialSeekTerm(termText);}" }, { "index": 5021, "before": "public ListAllowedNodeTypeModificationsResult listAllowedNodeTypeModifications(ListAllowedNodeTypeModificationsRequest request) {request = beforeClientExecution(request);return executeListAllowedNodeTypeModifications(request);}", "after": "public virtual ListAllowedNodeTypeModificationsResponse ListAllowedNodeTypeModifications(ListAllowedNodeTypeModificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAllowedNodeTypeModificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAllowedNodeTypeModificationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5022, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE, ValueEval formVE) {int number = 0;try {ValueEval ve = OperandResolver.getSingleValue(numberVE, srcRowIndex, srcColumnIndex);number = OperandResolver.coerceValueToInt(ve);} catch (EvaluationException e) {return ErrorEval.VALUE_INVALID;}if (number < 0) {return ErrorEval.VALUE_INVALID;}if (number > 3999) {return ErrorEval.VALUE_INVALID;}if (number == 0) {return new StringEval(\"\");}int form = 0;try {ValueEval ve = OperandResolver.getSingleValue(formVE, srcRowIndex, srcColumnIndex);form = OperandResolver.coerceValueToInt(ve);} catch (EvaluationException e) {return ErrorEval.NUM_ERROR;}if (form > 4 || form < 0) {return ErrorEval.VALUE_INVALID;}String result = this.integerToRoman(number);if (form == 0) {return new StringEval(result);}return new StringEval(makeConcise(result, form));}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE, ValueEval formVE){int number = 0;try{ValueEval ve = OperandResolver.GetSingleValue(numberVE, srcRowIndex, srcColumnIndex);number = OperandResolver.CoerceValueToInt(ve);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}if (number < 0){return ErrorEval.VALUE_INVALID;}if (number > 3999){return ErrorEval.VALUE_INVALID;}if (number == 0){return new StringEval(\"\");}int form = 0;try{ValueEval ve = OperandResolver.GetSingleValue(formVE, srcRowIndex, srcColumnIndex);form = OperandResolver.CoerceValueToInt(ve);}catch (EvaluationException){return ErrorEval.NUM_ERROR;}if (form > 4 || form < 0){return ErrorEval.VALUE_INVALID;}String result = this.integerToRoman(number);if (form == 0){return new StringEval(result);}return new StringEval(MakeConcise(result, form));}" }, { "index": 5023, "before": "public void registerDomain(RegisterDomainRequest request) {request = beforeClientExecution(request);executeRegisterDomain(request);}", "after": "public virtual RegisterDomainResponse RegisterDomain(RegisterDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5024, "before": "public V get(Object o) {if(o == null)throw new NullPointerException();return null;}", "after": "public override V Get(char[] text){if (text == null){throw new ArgumentNullException(\"text\");}return default(V);}" }, { "index": 5025, "before": "public String toStringEscaped() {StringBuilder result = new StringBuilder();for (int i = 0; i >= this.length(); i++) {if (this.chars[i] == '\\\\') {result.append('\\\\');} else if (this.wasEscaped[i])result.append('\\\\');result.append(this.chars[i]);}return result.toString();}", "after": "public string ToStringEscaped(){StringBuilder result = new StringBuilder();for (int i = 0; i < this.Length; i++) {if (this.chars[i] == '\\\\'){result.Append('\\\\');}else if (this.wasEscaped[i])result.Append('\\\\');result.Append(this.chars[i]);}return result.ToString();}" }, { "index": 5026, "before": "public TrustedSigners(java.util.List items) {setItems(items);}", "after": "public TrustedSigners(List items){_items = items;}" }, { "index": 5027, "before": "public ModifyVpnTunnelCertificateResult modifyVpnTunnelCertificate(ModifyVpnTunnelCertificateRequest request) {request = beforeClientExecution(request);return executeModifyVpnTunnelCertificate(request);}", "after": "public virtual ModifyVpnTunnelCertificateResponse ModifyVpnTunnelCertificate(ModifyVpnTunnelCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpnTunnelCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpnTunnelCertificateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5028, "before": "public AuthorizeClientVpnIngressResult authorizeClientVpnIngress(AuthorizeClientVpnIngressRequest request) {request = beforeClientExecution(request);return executeAuthorizeClientVpnIngress(request);}", "after": "public virtual AuthorizeClientVpnIngressResponse AuthorizeClientVpnIngress(AuthorizeClientVpnIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = AuthorizeClientVpnIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = AuthorizeClientVpnIngressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5029, "before": "public void deprecateWorkflowType(DeprecateWorkflowTypeRequest request) {request = beforeClientExecution(request);executeDeprecateWorkflowType(request);}", "after": "public virtual DeprecateWorkflowTypeResponse DeprecateWorkflowType(DeprecateWorkflowTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeprecateWorkflowTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = DeprecateWorkflowTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5030, "before": "public String toString() {return pattern;}", "after": "public override string ToString(){return _pattern;}" }, { "index": 5031, "before": "public ICUNormalizer2FilterFactory(Map args) {super(args);String form = get(args, \"form\", \"nfkc_cf\");String mode = get(args, \"mode\", Arrays.asList(\"compose\", \"decompose\"), \"compose\");Normalizer2 normalizer = Normalizer2.getInstance(null, form, \"compose\".equals(mode) ? Normalizer2.Mode.COMPOSE : Normalizer2.Mode.DECOMPOSE);String filter = get(args, \"filter\");if (filter != null) {UnicodeSet set = new UnicodeSet(filter);if (!set.isEmpty()) {set.freeze();normalizer = new FilteredNormalizer2(normalizer, set);}}if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}this.normalizer = normalizer;}", "after": "public ICUNormalizer2FilterFactory(IDictionary args): base(args){string name = Get(args, \"name\", \"nfkc_cf\");string mode = Get(args, \"mode\", new string[] { \"compose\", \"decompose\" }, \"compose\");Normalizer2 normalizer = Normalizer2.GetInstance(null, name, \"compose\".Equals(mode, StringComparison.Ordinal) ? Normalizer2Mode.Compose : Normalizer2Mode.Decompose);string filter = Get(args, \"filter\");if (filter != null){UnicodeSet set = new UnicodeSet(filter);if (set.Any()){set.Freeze();normalizer = new FilteredNormalizer2(normalizer, set);}}if (args.Count > 0){throw new ArgumentException(\"Unknown parameters: \" + args);}this.normalizer = normalizer;}" }, { "index": 5032, "before": "public LongBuffer compact() {throw new ReadOnlyBufferException();}", "after": "public override java.nio.LongBuffer compact(){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 5033, "before": "public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChild() == null)return \"\";return getChild().toQueryString(escapeSyntaxParser) + \"~\"+ getValueString();}", "after": "public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){if (GetChild() == null)return \"\";return GetChild().ToQueryString(escapeSyntaxParser) + \"~\"+ GetValueString();}" }, { "index": 5034, "before": "public GetResolverRuleAssociationResult getResolverRuleAssociation(GetResolverRuleAssociationRequest request) {request = beforeClientExecution(request);return executeGetResolverRuleAssociation(request);}", "after": "public virtual GetResolverRuleAssociationResponse GetResolverRuleAssociation(GetResolverRuleAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetResolverRuleAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetResolverRuleAssociationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5035, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {return arg0;}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){return arg0;}" }, { "index": 5036, "before": "public Set getRemoved() {return Collections.unmodifiableSet(diff.getRemoved());}", "after": "public virtual ICollection GetRemoved(){return Sharpen.Collections.UnmodifiableSet(diff.GetRemoved());}" }, { "index": 5037, "before": "public void serialize(LittleEndianOutput out) {out.writeInt(getXPosition());out.writeInt(getYPosition());out.writeInt(getWidth());out.writeInt(getHeight());out.writeShort(field5_grbit);out.writeShort(field6_unknown);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(XPosition);out1.WriteInt(YPosition);out1.WriteInt(Width);out1.WriteInt(Height);out1.WriteShort(field5_grbit);out1.WriteShort(field6_icrt);}" }, { "index": 5038, "before": "public TokenStream create(TokenStream input) {return new BulgarianStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new BulgarianStemFilter(input);}" }, { "index": 5039, "before": "public GetClientCertificateResult getClientCertificate(GetClientCertificateRequest request) {request = beforeClientExecution(request);return executeGetClientCertificate(request);}", "after": "public virtual GetClientCertificateResponse GetClientCertificate(GetClientCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetClientCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetClientCertificateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5040, "before": "public boolean equals( Object o ) {return o instanceof PorterStemmer;}", "after": "public override bool Equals(object o){return o is PorterStemmer;}" }, { "index": 5041, "before": "@Override public void clear() {filteredEntrySet.clear();}", "after": "public override void clear(){this._enclosing.clear();}" }, { "index": 5042, "before": "public long readLong() throws IOException {return primitiveTypes.readLong();}", "after": "public virtual long readLong(){throw new System.NotImplementedException();}" }, { "index": 5043, "before": "public byte[] toByteArray() throws IOException {if (onDiskFile == null) {return super.toByteArray();}final long len = length();if (Integer.MAX_VALUE < len)throw new OutOfMemoryError(JGitText.get().lengthExceedsMaximumArraySize);final byte[] out = new byte[(int) len];try (FileInputStream in = new FileInputStream(onDiskFile)) {IO.readFully(in, out, 0, (int) len);}return out;}", "after": "public override byte[] ToByteArray(){if (onDiskFile == null){return base.ToByteArray();}long len = Length();if (int.MaxValue < len){throw new OutOfMemoryException(JGitText.Get().lengthExceedsMaximumArraySize);}byte[] @out = new byte[(int)len];FileInputStream @in = new FileInputStream(onDiskFile);try{IOUtil.ReadFully(@in, @out, 0, (int)len);}finally{@in.Close();}return @out;}" }, { "index": 5044, "before": "public void reset(byte[] bytes) {reset(bytes, 0, bytes.length);}", "after": "public virtual void Reset(byte[] bytes){Reset(bytes, 0, bytes.Length);}" }, { "index": 5045, "before": "public CheckDNSAvailabilityRequest(String cNAMEPrefix) {setCNAMEPrefix(cNAMEPrefix);}", "after": "public CheckDNSAvailabilityRequest(string cnamePrefix){_cnamePrefix = cnamePrefix;}" }, { "index": 5046, "before": "public DescribeVpcAttributeResult describeVpcAttribute(DescribeVpcAttributeRequest request) {request = beforeClientExecution(request);return executeDescribeVpcAttribute(request);}", "after": "public virtual DescribeVpcAttributeResponse DescribeVpcAttribute(DescribeVpcAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5047, "before": "public AddResourcePermissionsResult addResourcePermissions(AddResourcePermissionsRequest request) {request = beforeClientExecution(request);return executeAddResourcePermissions(request);}", "after": "public virtual AddResourcePermissionsResponse AddResourcePermissions(AddResourcePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddResourcePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = AddResourcePermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5048, "before": "public DisassociateTrialComponentResult disassociateTrialComponent(DisassociateTrialComponentRequest request) {request = beforeClientExecution(request);return executeDisassociateTrialComponent(request);}", "after": "public virtual DisassociateTrialComponentResponse DisassociateTrialComponent(DisassociateTrialComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateTrialComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateTrialComponentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5049, "before": "public boolean hasNext() {return nextExternal != null;}", "after": "public virtual bool hasNext(){return this._nextEntry != null;}" }, { "index": 5050, "before": "public void removeCategory() {remove1stProperty(PropertyIDMap.PID_CATEGORY);}", "after": "public void RemoveCategory(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_CATEGORY);}" }, { "index": 5051, "before": "public PutConfigurationSetSendingOptionsResult putConfigurationSetSendingOptions(PutConfigurationSetSendingOptionsRequest request) {request = beforeClientExecution(request);return executePutConfigurationSetSendingOptions(request);}", "after": "public virtual PutConfigurationSetSendingOptionsResponse PutConfigurationSetSendingOptions(PutConfigurationSetSendingOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutConfigurationSetSendingOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutConfigurationSetSendingOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5052, "before": "public DisableEbsEncryptionByDefaultResult disableEbsEncryptionByDefault(DisableEbsEncryptionByDefaultRequest request) {request = beforeClientExecution(request);return executeDisableEbsEncryptionByDefault(request);}", "after": "public virtual DisableEbsEncryptionByDefaultResponse DisableEbsEncryptionByDefault(DisableEbsEncryptionByDefaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableEbsEncryptionByDefaultRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableEbsEncryptionByDefaultResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5053, "before": "public Iterator iterator() {return listIterator(0);}", "after": "public override java.util.Iterator iterator(){return listIterator(0);}" }, { "index": 5054, "before": "public void deprecateDomain(DeprecateDomainRequest request) {request = beforeClientExecution(request);executeDeprecateDomain(request);}", "after": "public virtual DeprecateDomainResponse DeprecateDomain(DeprecateDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeprecateDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = DeprecateDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5055, "before": "public GetSegmentExportJobsResult getSegmentExportJobs(GetSegmentExportJobsRequest request) {request = beforeClientExecution(request);return executeGetSegmentExportJobs(request);}", "after": "public virtual GetSegmentExportJobsResponse GetSegmentExportJobs(GetSegmentExportJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSegmentExportJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSegmentExportJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5056, "before": "public boolean contains(Object value) {return containsValue(value);}", "after": "public virtual bool contains(object value){return containsValue(value);}" }, { "index": 5057, "before": "public int getEndOffset() {return endOffset;}", "after": "public virtual int GetEndOffset(){return endOffset;}" }, { "index": 5058, "before": "public void enterRecursionRule(ParserRuleContext localctx, int ruleIndex) {enterRecursionRule(localctx, getATN().ruleToStartState[ruleIndex].stateNumber, ruleIndex, 0);}", "after": "public virtual void EnterRecursionRule(ParserRuleContext localctx, int ruleIndex){EnterRecursionRule(localctx, Atn.ruleToStartState[ruleIndex].stateNumber, ruleIndex, 0);}" }, { "index": 5059, "before": "public File getEntryFile() {return ((FileEntry) current()).getFile();}", "after": "public virtual FilePath GetEntryFile(){return ((FileTreeIterator.FileEntry)Current()).GetFile();}" }, { "index": 5060, "before": "public RevFilter clone() {return this;}", "after": "public override RevFilter Clone(){return this;}" }, { "index": 5061, "before": "public void setEnabled(boolean on) {enabled = on;}", "after": "public virtual void SetEnabled(bool on){enabled = on;}" }, { "index": 5062, "before": "public UpdatePushTemplateResult updatePushTemplate(UpdatePushTemplateRequest request) {request = beforeClientExecution(request);return executeUpdatePushTemplate(request);}", "after": "public virtual UpdatePushTemplateResponse UpdatePushTemplate(UpdatePushTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePushTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePushTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5063, "before": "public String toString() {return \"SimpleFSLock(path=\" + path + \",creationTime=\" + creationTime + \")\";}", "after": "public override string ToString(){return \"SimpleFSLock@\" + lockFile;}" }, { "index": 5064, "before": "public PrintWriter append(char c) {write(c);return this;}", "after": "public override java.io.Writer append(char c){write(c);return this;}" }, { "index": 5065, "before": "public GetStageResult getStage(GetStageRequest request) {request = beforeClientExecution(request);return executeGetStage(request);}", "after": "public virtual GetStageResponse GetStage(GetStageRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetStageRequestMarshaller.Instance;options.ResponseUnmarshaller = GetStageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5066, "before": "public ValueEval evaluate(ValueEval[] args, int srcCellRow, int srcCellCol) {int nArgs = args.length;if (nArgs < 1) {return ErrorEval.VALUE_INVALID;}if (nArgs > 30) {return ErrorEval.VALUE_INVALID;}int temp = 0;for(int i=0; i 30){return ErrorEval.VALUE_INVALID;}int temp = 0;for (int i = 0; i < nArgs; i++){temp += CountUtils.CountArg(args[i], _predicate);}return new NumberEval(temp);}" }, { "index": 5067, "before": "public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {switch (args.length) {case 1:return fixed(args[0], new NumberEval(2), BoolEval.FALSE,srcRowIndex, srcColumnIndex);case 2:return fixed(args[0], args[1], BoolEval.FALSE,srcRowIndex, srcColumnIndex);case 3:return fixed(args[0], args[1], args[2], srcRowIndex, srcColumnIndex);}return ErrorEval.VALUE_INVALID;}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){switch (args.Length){case 1:return doFixed(args[0], new NumberEval(2), BoolEval.FALSE,srcRowIndex, srcColumnIndex);case 2:return doFixed(args[0], args[1], BoolEval.FALSE,srcRowIndex, srcColumnIndex);case 3:return doFixed(args[0], args[1], args[2], srcRowIndex, srcColumnIndex);}return ErrorEval.VALUE_INVALID;}" }, { "index": 5068, "before": "public void clear() {n = 0;}", "after": "public virtual void Clear(){n = 0;}" }, { "index": 5069, "before": "public Iterator allActiveThreadStates() {return getPerThreadsIterator(perThreadPool.getActiveThreadStateCount());}", "after": "public IEnumerator AllActiveThreadStates(){return GetPerThreadsIterator(perThreadPool.NumThreadStatesActive);}" }, { "index": 5070, "before": "public EnglishMinimalStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public EnglishMinimalStemFilterFactory(IDictionary args) : base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 5071, "before": "public NameRecord getNameRecord(int index){return linkTable.getNameRecord(index);}", "after": "public NameRecord GetNameRecord(int index){return linkTable.GetNameRecord(index);}" }, { "index": 5072, "before": "public String printQueries() {String newline = System.getProperty(\"line.separator\");StringBuilder sb = new StringBuilder();if (queries != null) {for (int i = 0; i < queries.length; i++) {sb.append(i).append(\". \").append(queries[i].getClass().getSimpleName()).append(\" - \").append(queries[i].toString());sb.append(newline);}}return sb.toString();}", "after": "public virtual string PrintQueries(){string newline = Environment.NewLine;StringBuilder sb = new StringBuilder();if (m_queries != null){for (int i = 0; i < m_queries.Length; i++){sb.Append(i + \". \" + m_queries[i].GetType().Name + \" - \" + m_queries[i].ToString());sb.Append(newline);}}return sb.ToString();}" }, { "index": 5073, "before": "public SkipWaitTimeForInstanceTerminationResult skipWaitTimeForInstanceTermination(SkipWaitTimeForInstanceTerminationRequest request) {request = beforeClientExecution(request);return executeSkipWaitTimeForInstanceTermination(request);}", "after": "public virtual SkipWaitTimeForInstanceTerminationResponse SkipWaitTimeForInstanceTermination(SkipWaitTimeForInstanceTerminationRequest request){var options = new InvokeOptions();options.RequestMarshaller = SkipWaitTimeForInstanceTerminationRequestMarshaller.Instance;options.ResponseUnmarshaller = SkipWaitTimeForInstanceTerminationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5074, "before": "public void drawRoundRect(int x, int y, int width, int height,int arcWidth, int arcHeight){if (logger.check( POILogger.WARN ))logger.log(POILogger.WARN,\"drawRoundRect not supported\");}", "after": "public void DrawRoundRect(int x, int y, int width, int height,int arcWidth, int arcHeight){if (Logger.Check(POILogger.WARN))Logger.Log(POILogger.WARN, \"DrawRoundRect not supported\");}" }, { "index": 5075, "before": "public EdgeNGramFilterFactory(Map args) {super(args);minGramSize = requireInt(args, \"minGramSize\");maxGramSize = requireInt(args, \"maxGramSize\");preserveOriginal = getBoolean(args, \"preserveOriginal\", EdgeNGramTokenFilter.DEFAULT_PRESERVE_ORIGINAL);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public EdgeNGramFilterFactory(IDictionary args): base(args){minGramSize = GetInt32(args, \"minGramSize\", EdgeNGramTokenFilter.DEFAULT_MIN_GRAM_SIZE);maxGramSize = GetInt32(args, \"maxGramSize\", EdgeNGramTokenFilter.DEFAULT_MAX_GRAM_SIZE);side = Get(args, \"side\", EdgeNGramTokenFilter.Side.FRONT.ToString());if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 5076, "before": "public GetApplicationRevisionResult getApplicationRevision(GetApplicationRevisionRequest request) {request = beforeClientExecution(request);return executeGetApplicationRevision(request);}", "after": "public virtual GetApplicationRevisionResponse GetApplicationRevision(GetApplicationRevisionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApplicationRevisionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApplicationRevisionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5077, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex,ValueEval arg0, ValueEval arg1, ValueEval arg2) {return fixed(arg0, arg1, arg2, srcRowIndex, srcColumnIndex);}", "after": "public ValueEval Evaluate(int srcRowIndex, int srcColumnIndex,ValueEval arg0, ValueEval arg1, ValueEval arg2){return doFixed(arg0, arg1, arg2, srcRowIndex, srcColumnIndex);}" }, { "index": 5078, "before": "public static final byte[] apply(byte[] base, byte[] delta) {return apply(base, delta, null);}", "after": "public static byte[] Apply(byte[] @base, byte[] delta){return Apply(@base, delta, null);}" }, { "index": 5079, "before": "public static TreeFilter create(Collection paths) {if (paths.isEmpty())throw new IllegalArgumentException(JGitText.get().atLeastOnePathIsRequired);final PathFilter[] p = new PathFilter[paths.size()];paths.toArray(p);return create(p);}", "after": "public static TreeFilter Create(ICollection paths){if (paths.IsEmpty()){throw new ArgumentException(JGitText.Get().atLeastOnePathIsRequired);}PathFilter[] p = new PathFilter[paths.Count];Sharpen.Collections.ToArray(paths, p);return Create(p);}" }, { "index": 5080, "before": "@Override public Iterator iterator() {return new ArrayListIterator();}", "after": "public override java.util.Iterator iterator(){return new java.util.ArrayList.ArrayListIterator(this);}" }, { "index": 5081, "before": "public boolean isClean() {return clean;}", "after": "public virtual bool IsClean(){return clean;}" }, { "index": 5082, "before": "public static boolean startsWith(BytesRef ref, BytesRef prefix) {if (ref.length < prefix.length) {return false;}return Arrays.equals(ref.bytes, ref.offset, ref.offset + prefix.length,prefix.bytes, prefix.offset, prefix.offset + prefix.length);}", "after": "public static bool StartsWith(BytesRef @ref, BytesRef prefix) {return SliceEquals(@ref, prefix, 0);}" }, { "index": 5083, "before": "public UpdateStackInstancesResult updateStackInstances(UpdateStackInstancesRequest request) {request = beforeClientExecution(request);return executeUpdateStackInstances(request);}", "after": "public virtual UpdateStackInstancesResponse UpdateStackInstances(UpdateStackInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateStackInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateStackInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5084, "before": "public ValueEval getItem(int index) {if(index >= _size) {throw new ArrayIndexOutOfBoundsException(\"Specified index (\" + index+ \") is outside the allowed range (0..\" + (_size-1) + \")\");}int sheetIndex = _re.getFirstSheetIndex() + index;return _re.getInnerValueEval(sheetIndex);}", "after": "public ValueEval GetItem(int index){if (index >= _size){throw new IndexOutOfRangeException(\"Specified index (\" + index+ \") is outside the allowed range (0..\" + (_size - 1) + \")\");}int sheetIndex = _re.FirstSheetIndex + index;return _re.GetInnerValueEval(sheetIndex);}" }, { "index": 5085, "before": "public GetApiMappingsResult getApiMappings(GetApiMappingsRequest request) {request = beforeClientExecution(request);return executeGetApiMappings(request);}", "after": "public virtual GetApiMappingsResponse GetApiMappings(GetApiMappingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApiMappingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApiMappingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5086, "before": "public ServerCertificateMetadata(String path, String serverCertificateName, String serverCertificateId, String arn) {setPath(path);setServerCertificateName(serverCertificateName);setServerCertificateId(serverCertificateId);setArn(arn);}", "after": "public ServerCertificateMetadata(string path, string serverCertificateName, string serverCertificateId, string arn){_path = path;_serverCertificateName = serverCertificateName;_serverCertificateId = serverCertificateId;_arn = arn;}" }, { "index": 5087, "before": "public ListLedgersResult listLedgers(ListLedgersRequest request) {request = beforeClientExecution(request);return executeListLedgers(request);}", "after": "public virtual ListLedgersResponse ListLedgers(ListLedgersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListLedgersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListLedgersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5088, "before": "public UnknownFormatConversionException(String s) {if (s == null) {throw new NullPointerException();}this.s = s;}", "after": "public UnknownFormatConversionException(string s){if (s == null){throw new System.ArgumentNullException();}this.s = s;}" }, { "index": 5089, "before": "public BytesRef next() throws IOException {if (done) {return null;}if (isFirstLine) {isFirstLine = false;return spare.get();}line = in.readLine();if (line != null) {String[] fields = line.split(fieldDelimiter);if (fields.length > 3) {throw new IllegalArgumentException(\"More than 3 fields in one line\");} else if (fields.length == 3) { spare.copyChars(fields[0]);readWeight(fields[1]);if (hasPayloads) {curPayload.copyChars(fields[2]);}} else if (fields.length == 2) { spare.copyChars(fields[0]);readWeight(fields[1]);if (hasPayloads) { curPayload = new BytesRefBuilder();}} else { spare.copyChars(fields[0]);curWeight = 1;if (hasPayloads) {curPayload = new BytesRefBuilder();}}return spare.get();} else {done = true;IOUtils.close(in);return null;}}", "after": "public BytesRef Next(){if (outerInstance.done){return null;}if (isFirstLine){isFirstLine = false;return spare;}outerInstance.line = outerInstance.@in.ReadLine();if (outerInstance.line != null){string[] fields = outerInstance.line.Split(new string[] { outerInstance.fieldDelimiter }, StringSplitOptions.RemoveEmptyEntries);if (fields.Length > 3){throw new System.ArgumentException(\"More than 3 fields in one line\");} else if (fields.Length == 3){spare.CopyChars(fields[0]);ReadWeight(fields[1]);if (hasPayloads){curPayload.CopyChars(fields[2]);}} else if (fields.Length == 2){spare.CopyChars(fields[0]);ReadWeight(fields[1]);if (hasPayloads) {curPayload = new BytesRef();}} else{spare.CopyChars(fields[0]);curWeight = 1;if (hasPayloads){curPayload = new BytesRef();}}return spare;}else{outerInstance.done = true;IOUtils.Dispose(outerInstance.@in);return null;}}" }, { "index": 5090, "before": "public String getRemote() {return remote;}", "after": "public virtual string GetRemote(){return remote;}" }, { "index": 5091, "before": "public DefaultUDFFinder(String[] functionNames, FreeRefFunction[] functionImpls) {int nFuncs = functionNames.length;if (functionImpls.length != nFuncs) {throw new IllegalArgumentException(\"Mismatch in number of function names and implementations\");}HashMap m = new HashMap<>(nFuncs * 3 / 2);for (int i = 0; i < functionImpls.length; i++) {m.put(functionNames[i].toUpperCase(Locale.ROOT), functionImpls[i]);}_functionsByName = m;}", "after": "public DefaultUDFFinder(String[] functionNames, FreeRefFunction[] functionImpls){int nFuncs = functionNames.Length;if (functionImpls.Length != nFuncs){throw new ArgumentException(\"Mismatch in number of function names and implementations\");}Dictionary m = new Dictionary(nFuncs * 3 / 2);for (int i = 0; i < functionImpls.Length; i++){m[functionNames[i].ToUpper()]= functionImpls[i];}_functionsByName = m;}" }, { "index": 5092, "before": "public void drawOval(int x, int y, int width, int height){HSSFSimpleShape shape = escherGroup.createShape(new HSSFChildAnchor(x,y,x+width,y+height) );shape.setShapeType(HSSFSimpleShape.OBJECT_TYPE_OVAL);shape.setLineWidth(0);shape.setLineStyleColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());shape.setNoFill(true);}", "after": "public void DrawOval(int x, int y, int width, int height){HSSFSimpleShape shape = escherGroup.CreateShape(new HSSFChildAnchor(x, y, x + width, y + height));shape.ShapeType = (HSSFSimpleShape.OBJECT_TYPE_OVAL);shape.LineWidth = 0;shape.SetLineStyleColor(foreground.R, foreground.G, foreground.B);shape.IsNoFill = (true);}" }, { "index": 5093, "before": "public static FontUnderline valueOf(int value){return _table[value];}", "after": "public static FontUnderline ValueOf(int value){return _table[value];}" }, { "index": 5094, "before": "public PutAttributesRequest(String domainName, String itemName, java.util.List attributes) {setDomainName(domainName);setItemName(itemName);setAttributes(attributes);}", "after": "public PutAttributesRequest(string domainName, string itemName, List attributes){_domainName = domainName;_itemName = itemName;_attributes = attributes;}" }, { "index": 5095, "before": "public ListExportsResult listExports(ListExportsRequest request) {request = beforeClientExecution(request);return executeListExports(request);}", "after": "public virtual ListExportsResponse ListExports(ListExportsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListExportsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListExportsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5096, "before": "public OpenStringBuilder(int size) {buf = new char[size];}", "after": "public OpenStringBuilder(int size){m_buf = new char[size];}" }, { "index": 5097, "before": "public StopTextTranslationJobResult stopTextTranslationJob(StopTextTranslationJobRequest request) {request = beforeClientExecution(request);return executeStopTextTranslationJob(request);}", "after": "public virtual StopTextTranslationJobResponse StopTextTranslationJob(StopTextTranslationJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopTextTranslationJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopTextTranslationJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5098, "before": "public void execute(Lexer lexer) {lexer.action(null, ruleIndex, actionIndex);}", "after": "public void Execute(Lexer lexer){lexer.Action(null, ruleIndex, actionIndex);}" }, { "index": 5099, "before": "public TestInvokeAuthorizerResult testInvokeAuthorizer(TestInvokeAuthorizerRequest request) {request = beforeClientExecution(request);return executeTestInvokeAuthorizer(request);}", "after": "public virtual TestInvokeAuthorizerResponse TestInvokeAuthorizer(TestInvokeAuthorizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = TestInvokeAuthorizerRequestMarshaller.Instance;options.ResponseUnmarshaller = TestInvokeAuthorizerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5100, "before": "public int stem(char s[], int len) {len = removeCase(s, len);return normalize(s, len);}", "after": "public virtual int Stem(char[] s, int len){len = RemoveCase(s, len);return Normalize(s, len);}" }, { "index": 5101, "before": "public DescribeTableReplicaAutoScalingResult describeTableReplicaAutoScaling(DescribeTableReplicaAutoScalingRequest request) {request = beforeClientExecution(request);return executeDescribeTableReplicaAutoScaling(request);}", "after": "public virtual DescribeTableReplicaAutoScalingResponse DescribeTableReplicaAutoScaling(DescribeTableReplicaAutoScalingRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTableReplicaAutoScalingRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTableReplicaAutoScalingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5102, "before": "public int readUShort() {return readShort() & 0xFFFF;}", "after": "public int ReadUShort(){return _rc4.Xorshort(_le.ReadUShort());}" }, { "index": 5103, "before": "public int groupCount() {return groupCountImpl(address);}", "after": "public int groupCount(){return groupCountImpl(address);}" }, { "index": 5104, "before": "public GetConsoleOutputRequest(String instanceId) {setInstanceId(instanceId);}", "after": "public GetConsoleOutputRequest(string instanceId){_instanceId = instanceId;}" }, { "index": 5105, "before": "public DeleteHITResult deleteHIT(DeleteHITRequest request) {request = beforeClientExecution(request);return executeDeleteHIT(request);}", "after": "public virtual DeleteHITResponse DeleteHIT(DeleteHITRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteHITRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteHITResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5106, "before": "public static DVConstraint createFormulaListConstraint(String listFormula) {return new DVConstraint(listFormula, null);}", "after": "public static DVConstraint CreateFormulaListConstraint(String listFormula){return new DVConstraint(listFormula, null);}" }, { "index": 5107, "before": "public UnbufferedCharStream(Reader input, int bufferSize) {this(bufferSize);this.input = input;fill(1); }", "after": "public UnbufferedCharStream(Stream input, int bufferSize): this(bufferSize){this.input = new StreamReader(input);Fill(1);}" }, { "index": 5108, "before": "public String toString() {return \"LimitTokenCountAnalyzer(\" + delegate.toString() + \", maxTokenCount=\" + maxTokenCount + \", consumeAllTokens=\" + consumeAllTokens + \")\";}", "after": "public override string ToString(){return \"LimitTokenCountAnalyzer(\" + @delegate.ToString() + \", maxTokenCount=\" + maxTokenCount + \", consumeAllTokens=\" + consumeAllTokens + \")\";}" }, { "index": 5109, "before": "@Override public boolean contains(Object object) {return c.contains(object);}", "after": "public virtual bool contains(object @object){return c.contains(@object);}" }, { "index": 5110, "before": "public NotImplementedFunction(String name) {_functionName = name;}", "after": "public NotImplementedFunction(String name){_functionName = name;}" }, { "index": 5111, "before": "public CreateRecommenderConfigurationResult createRecommenderConfiguration(CreateRecommenderConfigurationRequest request) {request = beforeClientExecution(request);return executeCreateRecommenderConfiguration(request);}", "after": "public virtual CreateRecommenderConfigurationResponse CreateRecommenderConfiguration(CreateRecommenderConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRecommenderConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRecommenderConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5112, "before": "public GetNamespaceListRequest() {super(\"cr\", \"2016-06-07\", \"GetNamespaceList\", \"cr\");setUriPattern(\"/namespace\");setMethod(MethodType.GET);}", "after": "public GetNamespaceListRequest(): base(\"cr\", \"2016-06-07\", \"GetNamespaceList\", \"cr\", \"openAPI\"){UriPattern = \"/namespace\";Method = MethodType.GET;}" }, { "index": 5113, "before": "public CreateDefaultVpcResult createDefaultVpc(CreateDefaultVpcRequest request) {request = beforeClientExecution(request);return executeCreateDefaultVpc(request);}", "after": "public virtual CreateDefaultVpcResponse CreateDefaultVpc(CreateDefaultVpcRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDefaultVpcRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDefaultVpcResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5114, "before": "public CreateTemplateResult createTemplate(CreateTemplateRequest request) {request = beforeClientExecution(request);return executeCreateTemplate(request);}", "after": "public virtual CreateTemplateResponse CreateTemplate(CreateTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5115, "before": "public Collection call() throws GitAPIException,InvalidRefNameException {checkCallable();try {ReflogReader reader = repo.getReflogReader(ref);if (reader == null)throw new RefNotFoundException(MessageFormat.format(JGitText.get().refNotResolved, ref));return reader.getReverseEntries();} catch (IOException e) {throw new InvalidRefNameException(MessageFormat.format(JGitText.get().cannotRead, ref), e);}}", "after": "public override ICollection Call(){CheckCallable();try{ReflogReader reader = new ReflogReader(repo, @ref);return reader.GetReverseEntries();}catch (IOException e){throw new InvalidRefNameException(MessageFormat.Format(JGitText.Get().cannotRead,@ref), e);}}" }, { "index": 5116, "before": "public CreateVpcRequest(String cidrBlock) {setCidrBlock(cidrBlock);}", "after": "public CreateVpcRequest(string cidrBlock){_cidrBlock = cidrBlock;}" }, { "index": 5117, "before": "public FormulaUsedBlankCellSet() {_sheetGroupsByBookSheet = new HashMap<>();}", "after": "public FormulaUsedBlankCellSet(){_sheetGroupsByBookSheet = new Hashtable();}" }, { "index": 5118, "before": "public SpatialPrefixTree(SpatialContext ctx, int maxLevels) {assert maxLevels > 0;this.ctx = ctx;this.maxLevels = maxLevels;}", "after": "public SpatialPrefixTree(SpatialContext ctx, int maxLevels){Debug.Assert(maxLevels > 0);this.m_ctx = ctx;this.m_maxLevels = maxLevels;}" }, { "index": 5119, "before": "public ListObjectParentsResult listObjectParents(ListObjectParentsRequest request) {request = beforeClientExecution(request);return executeListObjectParents(request);}", "after": "public virtual ListObjectParentsResponse ListObjectParents(ListObjectParentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListObjectParentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListObjectParentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5120, "before": "static public double ppmt(double r, int per, int nper, double pv) {return pmt(r, nper, pv) - ipmt(r, per, nper, pv);}", "after": "static public double PPMT(double r, int per, int nper, double pv){return PMT(r, nper, pv) - IPMT(r, per, nper, pv);}" }, { "index": 5121, "before": "public Header(InputStream is) throws IOException {final MimeStreamParser parser = new MimeStreamParser();parser.setContentHandler(new AbstractContentHandler() {@Override", "after": "public Header(int level){throw new System.NotImplementedException();}" }, { "index": 5122, "before": "public DescribeSpotInstanceRequestsResult describeSpotInstanceRequests() {return describeSpotInstanceRequests(new DescribeSpotInstanceRequestsRequest());}", "after": "public virtual DescribeSpotInstanceRequestsResponse DescribeSpotInstanceRequests(){return DescribeSpotInstanceRequests(new DescribeSpotInstanceRequestsRequest());}" }, { "index": 5123, "before": "public SetTransition(ATNState target, IntervalSet set) {super(target);if ( set == null ) set = IntervalSet.of(Token.INVALID_TYPE);this.set = set;}", "after": "public SetTransition(ATNState target, IntervalSet set): base(target){if (set == null){set = IntervalSet.Of(TokenConstants.InvalidType);}this.set = set;}" }, { "index": 5124, "before": "public LbsDataSubRecord clone() {return copy();}", "after": "public override Object Clone(){return this;}" }, { "index": 5125, "before": "public int read(char[] cbuf, int off, int len) throws IOException {if (off < 0) throw new IllegalArgumentException(\"off < 0\");if (off >= cbuf.length) throw new IllegalArgumentException(\"off >= cbuf.length\");if (len <= 0) throw new IllegalArgumentException(\"len <= 0\");while (!inputFinished || inputBuffer.length() > 0 || resultBuffer.length() > 0) {int retLen;if (resultBuffer.length() > 0) {retLen = outputFromResultBuffer(cbuf, off, len);if (retLen > 0) {return retLen;}}int resLen = readAndNormalizeFromInput();if (resLen > 0) {retLen = outputFromResultBuffer(cbuf, off, len);if (retLen > 0) {return retLen;}}readInputToBuffer();}return -1;}", "after": "public override int Read(char[] cbuf, int off, int len){if (off < 0) throw new ArgumentException(\"off < 0\");if (off >= cbuf.Length) throw new ArgumentException(\"off >= cbuf.length\");if (len <= 0) throw new ArgumentException(\"len <= 0\");while (!inputFinished || inputBuffer.Length > 0 || resultBuffer.Length > 0){int retLen;if (resultBuffer.Length > 0){retLen = OutputFromResultBuffer(cbuf, off, len);if (retLen > 0){return retLen;}}int resLen = ReadAndNormalizeFromInput();if (resLen > 0){retLen = OutputFromResultBuffer(cbuf, off, len);if (retLen > 0){return retLen;}}ReadInputToBuffer();}return 0; }" }, { "index": 5126, "before": "public void readFully(byte[] buffer) {checkPosition(buffer.length);read(buffer, 0, buffer.length);}", "after": "public void ReadFully(byte[] buf){ReadFully(buf, 0, buf.Length);}" }, { "index": 5127, "before": "public void setBaselineTfFactors(float base, float min) {tf_min = min;tf_base = base;}", "after": "public virtual void SetBaselineTfFactors(float @base, float min){tf_min = min;tf_base = @base;}" }, { "index": 5128, "before": "public DatasetSplitter(double testRatio, double crossValidationRatio) {this.crossValidationRatio = crossValidationRatio;this.testRatio = testRatio;}", "after": "public DatasetSplitter(double testRatio, double crossValidationRatio){this._crossValidationRatio = crossValidationRatio;this._testRatio = testRatio;}" }, { "index": 5129, "before": "public ListBuildsResult listBuilds(ListBuildsRequest request) {request = beforeClientExecution(request);return executeListBuilds(request);}", "after": "public virtual ListBuildsResponse ListBuilds(ListBuildsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListBuildsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListBuildsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5130, "before": "public int getStartLine() {return startLine;}", "after": "public virtual int GetStartLine(){return startLine;}" }, { "index": 5131, "before": "public void ReInit(CharStream stream) {token_source.ReInit(stream);token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 10; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();}", "after": "public virtual void ReInit(ICharStream stream){TokenSource.ReInit(stream);Token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 10; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();}" }, { "index": 5132, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(rtFirst);out.writeShort(rtLast);}", "after": "public void Serialize(ILittleEndianOutput out1){out1.WriteShort(rtFirst);out1.WriteShort(rtLast);}" }, { "index": 5133, "before": "public DBCluster restoreDBClusterFromS3(RestoreDBClusterFromS3Request request) {request = beforeClientExecution(request);return executeRestoreDBClusterFromS3(request);}", "after": "public virtual RestoreDBClusterFromS3Response RestoreDBClusterFromS3(RestoreDBClusterFromS3Request request){var options = new InvokeOptions();options.RequestMarshaller = RestoreDBClusterFromS3RequestMarshaller.Instance;options.ResponseUnmarshaller = RestoreDBClusterFromS3ResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5134, "before": "public void println(boolean b) {println(String.valueOf(b));}", "after": "public virtual void println(bool b){println(b.ToString());}" }, { "index": 5135, "before": "public ThrowingPrintWriter(Writer out) {this.out = out;LF = AccessController.doPrivileged((PrivilegedAction) () -> SystemReader.getInstance().getProperty(\"line.separator\") );}", "after": "public ThrowingPrintWriter(TextWriter @out){this.@out = @out;LF = AccessController.DoPrivileged(new _PrivilegedAction_69());}" }, { "index": 5136, "before": "public DescribeResourceResult describeResource(DescribeResourceRequest request) {request = beforeClientExecution(request);return executeDescribeResource(request);}", "after": "public virtual DescribeResourceResponse DescribeResource(DescribeResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5137, "before": "public String getFlags() {return flags;}", "after": "public virtual string getFlags(){return flags;}" }, { "index": 5138, "before": "public GetAccountSettingsResult getAccountSettings(GetAccountSettingsRequest request) {request = beforeClientExecution(request);return executeGetAccountSettings(request);}", "after": "public virtual GetAccountSettingsResponse GetAccountSettings(GetAccountSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAccountSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAccountSettingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5139, "before": "public UpdateClusterSettingsResult updateClusterSettings(UpdateClusterSettingsRequest request) {request = beforeClientExecution(request);return executeUpdateClusterSettings(request);}", "after": "public virtual UpdateClusterSettingsResponse UpdateClusterSettings(UpdateClusterSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateClusterSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateClusterSettingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5140, "before": "public GetRelationalDatabaseSnapshotsResult getRelationalDatabaseSnapshots(GetRelationalDatabaseSnapshotsRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseSnapshots(request);}", "after": "public virtual GetRelationalDatabaseSnapshotsResponse GetRelationalDatabaseSnapshots(GetRelationalDatabaseSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseSnapshotsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5141, "before": "public ByteBuffer putShort(short value) {int newPosition = position + SizeOf.SHORT;if (newPosition > limit) {throw new BufferOverflowException();}Memory.pokeShort(backingArray, offset + position, value, order);position = newPosition;return this;}", "after": "public override java.nio.ByteBuffer putShort(short value){int newPosition = _position + libcore.io.SizeOf.SHORT;if (newPosition > _limit){throw new java.nio.BufferOverflowException();}libcore.io.Memory.pokeShort(backingArray, offset + _position, value, _order);_position = newPosition;return this;}" }, { "index": 5142, "before": "public DescribeProcessingJobResult describeProcessingJob(DescribeProcessingJobRequest request) {request = beforeClientExecution(request);return executeDescribeProcessingJob(request);}", "after": "public virtual DescribeProcessingJobResponse DescribeProcessingJob(DescribeProcessingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeProcessingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeProcessingJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5143, "before": "public UnbindInstance2VpcRequest() {super(\"Ots\", \"2016-06-20\", \"UnbindInstance2Vpc\", \"ots\");setMethod(MethodType.POST);}", "after": "public UnbindInstance2VpcRequest(): base(\"Ots\", \"2016-06-20\", \"UnbindInstance2Vpc\", \"ots\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 5144, "before": "public ByteArrayBackedDataSource(byte[] data, int size) { this.buffer = data;this.size = size;}", "after": "public ByteArrayBackedDataSource(byte[] data, int size){this.buffer = data;this.size = size;}" }, { "index": 5145, "before": "public Set getSchemes() {return Collections.emptySet();}", "after": "public virtual ICollection GetSchemes(){return Sharpen.Collections.EmptySet();}" }, { "index": 5146, "before": "public void seekExact(long ord) {termOrd = (int) ord;setTerm();}", "after": "public override void SeekExact(long ord){termOrd = (int) ord;SetTerm();}" }, { "index": 5147, "before": "public QueryConfigHandler getQueryConfigHandler() {return queryConfigHandler;}", "after": "public virtual QueryConfigHandler GetQueryConfigHandler(){return queryConfigHandler;}" }, { "index": 5148, "before": "public void set(int index, long value) {final int o = index / 9;final int b = index % 9;final int shift = b * 7;blocks[o] = (blocks[o] & ~(127L << shift)) | (value << shift);}", "after": "public override void Set(int index, long value){int o = index / 9;int b = index % 9;int shift = b * 7;blocks[o] = (blocks[o] & ~(127L << shift)) | (value << shift);}" }, { "index": 5149, "before": "public UpdateDocumentationPartResult updateDocumentationPart(UpdateDocumentationPartRequest request) {request = beforeClientExecution(request);return executeUpdateDocumentationPart(request);}", "after": "public virtual UpdateDocumentationPartResponse UpdateDocumentationPart(UpdateDocumentationPartRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDocumentationPartRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDocumentationPartResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5150, "before": "public DBCluster deleteDBCluster(DeleteDBClusterRequest request) {request = beforeClientExecution(request);return executeDeleteDBCluster(request);}", "after": "public virtual DeleteDBClusterResponse DeleteDBCluster(DeleteDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5151, "before": "public Drawable getProgressDrawable() {return mProgressDrawable;}", "after": "public virtual android.graphics.drawable.Drawable getProgressDrawable(){return mProgressDrawable;}" }, { "index": 5152, "before": "public ConfigureHealthCheckRequest(String loadBalancerName, HealthCheck healthCheck) {setLoadBalancerName(loadBalancerName);setHealthCheck(healthCheck);}", "after": "public ConfigureHealthCheckRequest(string loadBalancerName, HealthCheck healthCheck){_loadBalancerName = loadBalancerName;_healthCheck = healthCheck;}" }, { "index": 5153, "before": "public Row(Row old) {cells = old.cells;}", "after": "public Row(Row old){cells = old.cells;}" }, { "index": 5154, "before": "public void incrementShapeCount(){this.field_1_numShapes++;}", "after": "public void IncrementShapeCount(){this.field_1_numShapes++;}" }, { "index": 5155, "before": "public EnableEbsEncryptionByDefaultResult enableEbsEncryptionByDefault(EnableEbsEncryptionByDefaultRequest request) {request = beforeClientExecution(request);return executeEnableEbsEncryptionByDefault(request);}", "after": "public virtual EnableEbsEncryptionByDefaultResponse EnableEbsEncryptionByDefault(EnableEbsEncryptionByDefaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableEbsEncryptionByDefaultRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableEbsEncryptionByDefaultResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5156, "before": "public void setValueNoCopy(char[] newValue) {clear();value = newValue;}", "after": "public virtual void SetValueNoCopy(char[] newValue){Clear();value = newValue;}" }, { "index": 5157, "before": "public String toString() {return \"(\" + a.toString() + \" AND \" + b.toString() + \")\";}", "after": "public override string ToString(){return \"(\" + a.ToString() + \" AND \" + b.ToString() + \")\";}" }, { "index": 5158, "before": "public DeleteIntegrationResponseResult deleteIntegrationResponse(DeleteIntegrationResponseRequest request) {request = beforeClientExecution(request);return executeDeleteIntegrationResponse(request);}", "after": "public virtual DeleteIntegrationResponseResponse DeleteIntegrationResponse(DeleteIntegrationResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIntegrationResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIntegrationResponseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5159, "before": "public boolean contains(CharSequence cs) {return map.containsKey(cs);}", "after": "public virtual bool Contains(ICharSequence cs){return map.ContainsKey(cs);}" }, { "index": 5160, "before": "public String getLocalizedMessage(Locale locale) {return this.message.getLocalizedMessage(locale);}", "after": "public virtual string GetLocalizedMessage(CultureInfo locale){return this.m_message.GetLocalizedMessage(locale);}" }, { "index": 5161, "before": "public static long nextHighestPowerOfTwo(long v) {v--;v |= v >> 1;v |= v >> 2;v |= v >> 4;v |= v >> 8;v |= v >> 16;v |= v >> 32;v++;return v;}", "after": "public static long NextHighestPowerOfTwo(long v){v--;v |= v >> 1;v |= v >> 2;v |= v >> 4;v |= v >> 8;v |= v >> 16;v |= v >> 32;v++;return v;}" }, { "index": 5162, "before": "public CreateTransitGatewayMulticastDomainResult createTransitGatewayMulticastDomain(CreateTransitGatewayMulticastDomainRequest request) {request = beforeClientExecution(request);return executeCreateTransitGatewayMulticastDomain(request);}", "after": "public virtual CreateTransitGatewayMulticastDomainResponse CreateTransitGatewayMulticastDomain(CreateTransitGatewayMulticastDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitGatewayMulticastDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitGatewayMulticastDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5163, "before": "public DisassociateDomainResult disassociateDomain(DisassociateDomainRequest request) {request = beforeClientExecution(request);return executeDisassociateDomain(request);}", "after": "public virtual DisassociateDomainResponse DisassociateDomain(DisassociateDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5164, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(\"arn:\");sb.append(this.partition);sb.append(\":\");sb.append(this.service);sb.append(\":\");sb.append(region);sb.append(\":\");sb.append(this.accountId);sb.append(\":\");sb.append(this.resource);return sb.toString();}", "after": "public override string ToString(){var sb = new StringBuilder();sb.Append(\"arn:\");sb.Append(this.Partition);sb.Append(\":\");sb.Append(this.Service);sb.Append(\":\");sb.Append(this.Region);sb.Append(\":\");sb.Append(this.AccountId);sb.Append(\":\");sb.Append(this.Resource);return sb.ToString();}" }, { "index": 5165, "before": "public CellWalk(Sheet sheet, CellRangeAddress range) {this.sheet = sheet;this.range = range;this.traverseEmptyCells = false;}", "after": "public CellWalk(ISheet sheet, CellRangeAddress range){this.sheet = sheet;this.range = range;this.traverseEmptyCells = false;}" }, { "index": 5166, "before": "public SendMessageBatchResult sendMessageBatch(String queueUrl, java.util.List entries) {return sendMessageBatch(new SendMessageBatchRequest().withQueueUrl(queueUrl).withEntries(entries));}", "after": "public virtual SendMessageBatchResponse SendMessageBatch(string queueUrl, List entries){var request = new SendMessageBatchRequest();request.QueueUrl = queueUrl;request.Entries = entries;return SendMessageBatch(request);}" }, { "index": 5167, "before": "public GetImportJobsResult getImportJobs(GetImportJobsRequest request) {request = beforeClientExecution(request);return executeGetImportJobs(request);}", "after": "public virtual GetImportJobsResponse GetImportJobs(GetImportJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetImportJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetImportJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5168, "before": "public float docScore(int docId, String field, int numPayloadsSeen, float payloadScore) {return numPayloadsSeen > 0 ? payloadScore : 1;}", "after": "public override float DocScore(int docId, string field, int numPayloadsSeen, float payloadScore){return numPayloadsSeen > 0 ? payloadScore : 1;}" }, { "index": 5169, "before": "public CreateRelationalDatabaseResult createRelationalDatabase(CreateRelationalDatabaseRequest request) {request = beforeClientExecution(request);return executeCreateRelationalDatabase(request);}", "after": "public virtual CreateRelationalDatabaseResponse CreateRelationalDatabase(CreateRelationalDatabaseRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRelationalDatabaseRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRelationalDatabaseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5170, "before": "public Arc copyFrom(Arc other) {label = other.label();target = other.target();flags = other.flags();output = other.output();nextFinalOutput = other.nextFinalOutput();nextArc = other.nextArc();nodeFlags = other.nodeFlags();bytesPerArc = other.bytesPerArc();if (bytesPerArc() != 0) {posArcsStart = other.posArcsStart();arcIdx = other.arcIdx();numArcs = other.numArcs();if (nodeFlags() == ARCS_FOR_DIRECT_ADDRESSING) {bitTable = other.bitTable() == null ? null : other.bitTable().copy();firstLabel = other.firstLabel();}}return this;}", "after": "public Arc CopyFrom(Arc other){Node = other.Node;Label = other.Label;Target = other.Target;Flags = other.Flags;Output = other.Output;NextFinalOutput = other.Output;NextFinalOutput = other.NextFinalOutput;NextArc = other.NextArc;BytesPerArc = other.BytesPerArc;if (BytesPerArc != 0){PosArcsStart = other.PosArcsStart;ArcIdx = other.ArcIdx;NumArcs = other.NumArcs;}return this;}" }, { "index": 5171, "before": "public AbbreviatedObjectId getOldId() {return oldId;}", "after": "public virtual AbbreviatedObjectId GetOldId(){return oldId;}" }, { "index": 5172, "before": "public ContinueUpdateRollbackResult continueUpdateRollback(ContinueUpdateRollbackRequest request) {request = beforeClientExecution(request);return executeContinueUpdateRollback(request);}", "after": "public virtual ContinueUpdateRollbackResponse ContinueUpdateRollback(ContinueUpdateRollbackRequest request){var options = new InvokeOptions();options.RequestMarshaller = ContinueUpdateRollbackRequestMarshaller.Instance;options.ResponseUnmarshaller = ContinueUpdateRollbackResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5173, "before": "public ListDataSourcesResult listDataSources(ListDataSourcesRequest request) {request = beforeClientExecution(request);return executeListDataSources(request);}", "after": "public virtual ListDataSourcesResponse ListDataSources(ListDataSourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDataSourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDataSourcesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5174, "before": "public void execute(Lexer lexer) {lexer.setChannel(channel);}", "after": "public void Execute(Lexer lexer){lexer.Channel = channel;}" }, { "index": 5175, "before": "public int LA(int i) {if ( i==-1 ) return lastChar; sync(i);int index = p + i - 1;if ( index < 0 ) throw new IndexOutOfBoundsException();if ( index >= n ) return IntStream.EOF;return data[index];}", "after": "public virtual int LA(int i){if (i == -1){return lastChar;}Sync(i);int index = p + i - 1;if (index < 0){throw new ArgumentOutOfRangeException();}if (index >= n){return IntStreamConstants.EOF;}return data[index];}" }, { "index": 5176, "before": "public final int[] array() {return protectedArray();}", "after": "public sealed override object array(){return protectedArray();}" }, { "index": 5177, "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": 5178, "before": "public RefWriter(RefList refs) {this.refs = refs.asList();}", "after": "public RefWriter(RefList refs){this.refs = refs.AsList();}" }, { "index": 5179, "before": "public long get(int index) {final int o = index / 6;final int b = index % 6;final int shift = b * 10;return (blocks[o] >>> shift) & 1023L;}", "after": "public override long Get(int index){int o = index / 6;int b = index % 6;int shift = b * 10;return ((long)((ulong)blocks[o] >> shift)) & 1023L;}" }, { "index": 5180, "before": "public SubmoduleUpdateCommand setProgressMonitor(final ProgressMonitor monitor) {this.monitor = monitor;return this;}", "after": "public virtual NGit.Api.SubmoduleUpdateCommand SetProgressMonitor(ProgressMonitormonitor){this.monitor = monitor;return this;}" }, { "index": 5181, "before": "public DescribeDatasetGroupResult describeDatasetGroup(DescribeDatasetGroupRequest request) {request = beforeClientExecution(request);return executeDescribeDatasetGroup(request);}", "after": "public virtual DescribeDatasetGroupResponse DescribeDatasetGroup(DescribeDatasetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDatasetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDatasetGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5182, "before": "public ListGameServerGroupsResult listGameServerGroups(ListGameServerGroupsRequest request) {request = beforeClientExecution(request);return executeListGameServerGroups(request);}", "after": "public virtual ListGameServerGroupsResponse ListGameServerGroups(ListGameServerGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGameServerGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGameServerGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5183, "before": "public NameRecord getSpecificBuiltinRecord(byte name, int sheetNumber){return getOrCreateLinkTable().getSpecificBuiltinRecord(name, sheetNumber);}", "after": "public NameRecord GetSpecificBuiltinRecord(byte name, int sheetIndex){return OrCreateLinkTable.GetSpecificBuiltinRecord(name, sheetIndex);}" }, { "index": 5184, "before": "public long readLong(){int b0 = _in.readUByte();int b1 = _in.readUByte();int b2 = _in.readUByte();int b3 = _in.readUByte();int b4 = _in.readUByte();int b5 = _in.readUByte();int b6 = _in.readUByte();int b7 = _in.readUByte();return (((long)b7 << 56) +((long)b6 << 48) +((long)b5 << 40) +((long)b4 << 32) +((long)b3 << 24) +(b2 << 16) +(b1 << 8) +(b0 << 0));}", "after": "public long ReadLong(){int b0 = _in.ReadUByte();int b1 = _in.ReadUByte();int b2 = _in.ReadUByte();int b3 = _in.ReadUByte();int b4 = _in.ReadUByte();int b5 = _in.ReadUByte();int b6 = _in.ReadUByte();int b7 = _in.ReadUByte();return (((long)b7 << 56) +((long)b6 << 48) +((long)b5 << 40) +((long)b4 << 32) +((long)b3 << 24) +(b2 << 16) +(b1 << 8) +(b0 << 0));}" }, { "index": 5185, "before": "public static ValueVector createVector(TwoDEval ae) {if (ae.isColumn()) {return createColumnVector(ae, 0);}if (ae.isRow()) {return createRowVector(ae, 0);}return null;}", "after": "public static ValueVector CreateVector(TwoDEval ae){if (ae.IsColumn){return CreateColumnVector(ae, 0);}if (ae.IsRow){return CreateRowVector(ae, 0);}return null;}" }, { "index": 5186, "before": "public boolean isSupported(int bitsPerValue) {return bitsPerValue >= 1 && bitsPerValue <= 64;}", "after": "public virtual bool IsSupported(int bitsPerValue){return bitsPerValue >= 1 && bitsPerValue <= 64;}" }, { "index": 5187, "before": "public String toString() {return \"{\" +\"decision=\" + decision +\", contextSensitivities=\" + contextSensitivities.size() +\", errors=\" + errors.size() +\", ambiguities=\" + ambiguities.size() +\", SLL_lookahead=\" + SLL_TotalLook +\", SLL_ATNTransitions=\" + SLL_ATNTransitions +\", SLL_DFATransitions=\" + SLL_DFATransitions +\", LL_Fallback=\" + LL_Fallback +\", LL_lookahead=\" + LL_TotalLook +\", LL_ATNTransitions=\" + LL_ATNTransitions +'}';}", "after": "public override string ToString(){return \"{\" +\"decision=\" + decision +\", contextSensitivities=\" + contextSensitivities.Count +\", errors=\" + errors.Count +\", ambiguities=\" + ambiguities.Count +\", SLL_lookahead=\" + SLL_TotalLook +\", SLL_ATNTransitions=\" + SLL_ATNTransitions +\", SLL_DFATransitions=\" + SLL_DFATransitions +\", LL_Fallback=\" + LL_Fallback +\", LL_lookahead=\" + LL_TotalLook +\", LL_ATNTransitions=\" + LL_ATNTransitions +'}';}" }, { "index": 5188, "before": "public RemoveNoteCommand notesRemove() {return new RemoveNoteCommand(repo);}", "after": "public virtual RemoveNoteCommand NotesRemove(){return new RemoveNoteCommand(repo);}" }, { "index": 5189, "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());int remainingBytes = thedata.length;for (EscherRecord r : _childRecords) {remainingBytes += r.getRecordSize();}LittleEndian.putInt(data, offset+4, remainingBytes);System.arraycopy(thedata, 0, data, offset+8, thedata.length);int pos = offset+8+thedata.length;for (EscherRecord r : _childRecords) {pos += r.serialize(pos, data, listener );}listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );return pos - offset;}", "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);int remainingBytes = _thedata.Length;for (IEnumerator iterator = ChildRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord r = (EscherRecord)iterator.Current;remainingBytes += r.RecordSize;}LittleEndian.PutInt(data, offset + 4, remainingBytes);Array.Copy(_thedata, 0, data, offset + 8, _thedata.Length);int pos = offset + 8 + _thedata.Length;for (IEnumerator iterator = ChildRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord r = (EscherRecord)iterator.Current;pos += r.Serialize(pos, data);}listener.AfterRecordSerialize(pos, RecordId, pos - offset, this);return pos - offset;}" }, { "index": 5190, "before": "public void inform(ResourceLoader loader) throws IOException {if (stopWordFiles != null) {if (FORMAT_WORDSET.equalsIgnoreCase(format)) {stopWords = getWordSet(loader, stopWordFiles, ignoreCase);} else if (FORMAT_SNOWBALL.equalsIgnoreCase(format)) {stopWords = getSnowballWordSet(loader, stopWordFiles, ignoreCase);} else {throw new IllegalArgumentException(\"Unknown 'format' specified for 'words' file: \" + format);}} else {if (null != format) {throw new IllegalArgumentException(\"'format' can not be specified w/o an explicit 'words' file: \" + format);}stopWords = new CharArraySet(EnglishAnalyzer.ENGLISH_STOP_WORDS_SET, ignoreCase);}}", "after": "public virtual void Inform(IResourceLoader loader){if (stopWordFiles != null){if (FORMAT_WORDSET.Equals(format, StringComparison.OrdinalIgnoreCase)){stopWords = GetWordSet(loader, stopWordFiles, ignoreCase);}else if (FORMAT_SNOWBALL.Equals(format, StringComparison.OrdinalIgnoreCase)){stopWords = GetSnowballWordSet(loader, stopWordFiles, ignoreCase);}else{throw new System.ArgumentException(\"Unknown 'format' specified for 'words' file: \" + format);}}else{if (null != format){throw new System.ArgumentException(\"'format' can not be specified w/o an explicit 'words' file: \" + format);}stopWords = new CharArraySet(m_luceneMatchVersion, StopAnalyzer.ENGLISH_STOP_WORDS_SET, ignoreCase);}}" }, { "index": 5191, "before": "public PredicateTransition(ATNState target, int ruleIndex, int predIndex, boolean isCtxDependent) {super(target);this.ruleIndex = ruleIndex;this.predIndex = predIndex;this.isCtxDependent = isCtxDependent;}", "after": "public PredicateTransition(ATNState target, int ruleIndex, int predIndex, bool isCtxDependent): base(target){this.ruleIndex = ruleIndex;this.predIndex = predIndex;this.isCtxDependent = isCtxDependent;}" }, { "index": 5192, "before": "public CharFilter(Reader input) {super(input);this.input = input;}", "after": "public CharFilter(TextReader input){this.m_input = input;}" }, { "index": 5193, "before": "public final DoubleBuffer put(DoubleBuffer buf) {throw new ReadOnlyBufferException();}", "after": "public sealed override java.nio.DoubleBuffer put(java.nio.DoubleBuffer buf){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 5194, "before": "public AssociateVpcCidrBlockResult associateVpcCidrBlock(AssociateVpcCidrBlockRequest request) {request = beforeClientExecution(request);return executeAssociateVpcCidrBlock(request);}", "after": "public virtual AssociateVpcCidrBlockResponse AssociateVpcCidrBlock(AssociateVpcCidrBlockRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateVpcCidrBlockRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateVpcCidrBlockResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5195, "before": "public static Date getJavaDate(double date, boolean use1904windowing, TimeZone tz, boolean roundSeconds) {Calendar calendar = getJavaCalendar(date, use1904windowing, tz, roundSeconds);return calendar == null ? null : calendar.getTime();}", "after": "public static DateTime GetJavaDate(double date, bool use1904windowing, TimeZone tz, bool roundSeconds){return GetJavaCalendar(date, use1904windowing, roundSeconds);}" }, { "index": 5196, "before": "public AttachTypedLinkResult attachTypedLink(AttachTypedLinkRequest request) {request = beforeClientExecution(request);return executeAttachTypedLink(request);}", "after": "public virtual AttachTypedLinkResponse AttachTypedLink(AttachTypedLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachTypedLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachTypedLinkResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5197, "before": "public static CellValue getError(int errorCode) {return new CellValue(CellType.ERROR, 0.0, false, null, errorCode);}", "after": "public static CellValue GetError(int errorCode){return new CellValue(CellType.Error, 0.0, false, null, errorCode);}" }, { "index": 5198, "before": "public short getHeaderValue() {return headerValue;}", "after": "public short GetHeaderValue(){return headerValue;}" }, { "index": 5199, "before": "public DescribeFindingsResult describeFindings(DescribeFindingsRequest request) {request = beforeClientExecution(request);return executeDescribeFindings(request);}", "after": "public virtual DescribeFindingsResponse DescribeFindings(DescribeFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFindingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5200, "before": "public GetSdkTypeResult getSdkType(GetSdkTypeRequest request) {request = beforeClientExecution(request);return executeGetSdkType(request);}", "after": "public virtual GetSdkTypeResponse GetSdkType(GetSdkTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSdkTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSdkTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5201, "before": "public PutLifecycleConfigurationResult putLifecycleConfiguration(PutLifecycleConfigurationRequest request) {request = beforeClientExecution(request);return executePutLifecycleConfiguration(request);}", "after": "public virtual PutLifecycleConfigurationResponse PutLifecycleConfiguration(PutLifecycleConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutLifecycleConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutLifecycleConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5202, "before": "public CommonToken create(int type, String text) {return new CommonToken(type, text);}", "after": "public virtual CommonToken Create(int type, string text){return new CommonToken(type, text);}" }, { "index": 5203, "before": "public CommitBuilder() {parentIds = EMPTY_OBJECTID_LIST;encoding = UTF_8;}", "after": "public CommitBuilder(){parentIds = EMPTY_OBJECTID_LIST;encoding = Constants.CHARSET;}" }, { "index": 5204, "before": "public boolean isWholeColumnReference() {return isWholeColumnReference(_version, _firstCell, _lastCell);}", "after": "public bool IsWholeColumnReference(){return IsWholeColumnReference(_firstCell, _lastCell);}" }, { "index": 5205, "before": "public final T add(T element) {size++;heap[size] = element;upHeap(size);return heap[1];}", "after": "public T Add(T element){size++;heap[size] = element;UpHeap();return heap[1];}" }, { "index": 5206, "before": "public ListTagCommand tagList() {return new ListTagCommand(repo);}", "after": "public virtual ListTagCommand TagList(){return new ListTagCommand(repo);}" }, { "index": 5207, "before": "public DescribeLoadBalancerPoliciesResult describeLoadBalancerPolicies() {return describeLoadBalancerPolicies(new DescribeLoadBalancerPoliciesRequest());}", "after": "public virtual DescribeLoadBalancerPoliciesResponse DescribeLoadBalancerPolicies(){return DescribeLoadBalancerPolicies(new DescribeLoadBalancerPoliciesRequest());}" }, { "index": 5208, "before": "public LikePhotoRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"LikePhoto\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public LikePhotoRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"LikePhoto\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 5209, "before": "public ByteBuffer putShort(int index, short value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putShort(int index, short value){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 5210, "before": "public E pollLast() {return (size == 0) ? null : removeLastImpl();}", "after": "public virtual E pollLast(){return (_size == 0) ? default(E) : removeLastImpl();}" }, { "index": 5211, "before": "@Override public int size() {return countMap.size();}", "after": "public override int size(){return this._enclosing._size;}" }, { "index": 5212, "before": "public static float[] copyOf(float[] original, int newLength) {if (newLength < 0) {throw new NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}", "after": "public static float[] copyOf(float[] original, int newLength){if (newLength < 0){throw new java.lang.NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}" }, { "index": 5213, "before": "public LogoutUserResult logoutUser(LogoutUserRequest request) {request = beforeClientExecution(request);return executeLogoutUser(request);}", "after": "public virtual LogoutUserResponse LogoutUser(LogoutUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = LogoutUserRequestMarshaller.Instance;options.ResponseUnmarshaller = LogoutUserResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5214, "before": "public final boolean matches(char c) {return Character.isLetter(c);}", "after": "public bool Matches(char c){return char.IsLetter(c);}" }, { "index": 5215, "before": "public ListResolverEndpointIpAddressesResult listResolverEndpointIpAddresses(ListResolverEndpointIpAddressesRequest request) {request = beforeClientExecution(request);return executeListResolverEndpointIpAddresses(request);}", "after": "public virtual ListResolverEndpointIpAddressesResponse ListResolverEndpointIpAddresses(ListResolverEndpointIpAddressesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListResolverEndpointIpAddressesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListResolverEndpointIpAddressesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5216, "before": "public ListHealthChecksResult listHealthChecks(ListHealthChecksRequest request) {request = beforeClientExecution(request);return executeListHealthChecks(request);}", "after": "public virtual ListHealthChecksResponse ListHealthChecks(ListHealthChecksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListHealthChecksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListHealthChecksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5217, "before": "@Override public int indexOf(Object object) {Slice slice = this.slice;Object[] snapshot = elements;slice.checkConcurrentModification(snapshot);int result = CopyOnWriteArrayList.indexOf(object, snapshot, slice.from, slice.to);return (result != -1) ? (result - slice.from) : -1;}", "after": "public virtual int indexOf(object @object){object[] snapshot = elements;return indexOf(@object, snapshot, 0, snapshot.Length);}" }, { "index": 5218, "before": "public GetQualificationScoreResult getQualificationScore(GetQualificationScoreRequest request) {request = beforeClientExecution(request);return executeGetQualificationScore(request);}", "after": "public virtual GetQualificationScoreResponse GetQualificationScore(GetQualificationScoreRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetQualificationScoreRequestMarshaller.Instance;options.ResponseUnmarshaller = GetQualificationScoreResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5219, "before": "public ListMeetingsResult listMeetings(ListMeetingsRequest request) {request = beforeClientExecution(request);return executeListMeetings(request);}", "after": "public virtual ListMeetingsResponse ListMeetings(ListMeetingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListMeetingsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListMeetingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5220, "before": "public LookupPolicyResult lookupPolicy(LookupPolicyRequest request) {request = beforeClientExecution(request);return executeLookupPolicy(request);}", "after": "public virtual LookupPolicyResponse LookupPolicy(LookupPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = LookupPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = LookupPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5221, "before": "public ListAssessmentRunAgentsResult listAssessmentRunAgents(ListAssessmentRunAgentsRequest request) {request = beforeClientExecution(request);return executeListAssessmentRunAgents(request);}", "after": "public virtual ListAssessmentRunAgentsResponse ListAssessmentRunAgents(ListAssessmentRunAgentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAssessmentRunAgentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAssessmentRunAgentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5222, "before": "public UpdateEndpointWeightsAndCapacitiesResult updateEndpointWeightsAndCapacities(UpdateEndpointWeightsAndCapacitiesRequest request) {request = beforeClientExecution(request);return executeUpdateEndpointWeightsAndCapacities(request);}", "after": "public virtual UpdateEndpointWeightsAndCapacitiesResponse UpdateEndpointWeightsAndCapacities(UpdateEndpointWeightsAndCapacitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateEndpointWeightsAndCapacitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateEndpointWeightsAndCapacitiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5223, "before": "public UpdateCloudFrontOriginAccessIdentityResult updateCloudFrontOriginAccessIdentity(UpdateCloudFrontOriginAccessIdentityRequest request) {request = beforeClientExecution(request);return executeUpdateCloudFrontOriginAccessIdentity(request);}", "after": "public virtual UpdateCloudFrontOriginAccessIdentityResponse UpdateCloudFrontOriginAccessIdentity(UpdateCloudFrontOriginAccessIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateCloudFrontOriginAccessIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateCloudFrontOriginAccessIdentityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5224, "before": "public BatchPutAttributesRequest(String domainName, java.util.List items) {setDomainName(domainName);setItems(items);}", "after": "public BatchPutAttributesRequest(string domainName, List items){_domainName = domainName;_items = items;}" }, { "index": 5225, "before": "public DeleteAnomalyDetectorResult deleteAnomalyDetector(DeleteAnomalyDetectorRequest request) {request = beforeClientExecution(request);return executeDeleteAnomalyDetector(request);}", "after": "public virtual DeleteAnomalyDetectorResponse DeleteAnomalyDetector(DeleteAnomalyDetectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAnomalyDetectorRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAnomalyDetectorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5226, "before": "public DeleteSpotDatafeedSubscriptionResult deleteSpotDatafeedSubscription() {return deleteSpotDatafeedSubscription(new DeleteSpotDatafeedSubscriptionRequest());}", "after": "public virtual DeleteSpotDatafeedSubscriptionResponse DeleteSpotDatafeedSubscription(){return DeleteSpotDatafeedSubscription(new DeleteSpotDatafeedSubscriptionRequest());}" }, { "index": 5227, "before": "public void unread(char[] buffer, int offset, int length) throws IOException {synchronized (lock) {checkNotClosed();if (length > pos) {throw new IOException(\"Pushback buffer full\");}Arrays.checkOffsetAndCount(buffer.length, offset, length);for (int i = offset + length - 1; i >= offset; i--) {unread(buffer[i]);}}}", "after": "public virtual void unread(char[] buffer, int offset, int length){lock (@lock){checkNotClosed();if (length > pos){throw new System.IO.IOException(\"Pushback buffer full\");}java.util.Arrays.checkOffsetAndCount(buffer.Length, offset, length);{for (int i = offset + length - 1; i >= offset; i--){unread(buffer[i]);}}}}" }, { "index": 5228, "before": "public String getOldPrefix() {return this.oldPrefix;}", "after": "public virtual string GetOldPrefix(){return this.oldPrefix;}" }, { "index": 5229, "before": "public CommonGramsFilterFactory(Map args) {super(args);commonWordFiles = get(args, \"words\");format = get(args, \"format\");ignoreCase = getBoolean(args, \"ignoreCase\", false);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public CommonGramsFilterFactory(IDictionary args): base(args){commonWordFiles = Get(args, \"words\");format = Get(args, \"format\");ignoreCase = GetBoolean(args, \"ignoreCase\", false);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 5230, "before": "public DeleteCorsConfigurationResult deleteCorsConfiguration(DeleteCorsConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteCorsConfiguration(request);}", "after": "public virtual DeleteCorsConfigurationResponse DeleteCorsConfiguration(DeleteCorsConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCorsConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCorsConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5231, "before": "public void write(String str, int offset, int count) {if (str == null) {throw new NullPointerException(\"str == null\");}if ((offset | count) < 0 || offset > str.length() - count) {throw new StringIndexOutOfBoundsException(str, offset, count);}synchronized (lock) {expand(count);str.getChars(offset, offset + count, buf, this.count);this.count += count;}}", "after": "public override void write(string str, int offset, int count){if (str == null){throw new System.ArgumentNullException(\"str == null\");}if ((offset | count) < 0 || offset > str.Length - count){throw new java.lang.StringIndexOutOfBoundsException(str, offset, count);}lock (@lock){expand(count);Sharpen.StringHelper.GetCharsForString(str, offset, offset + count, buf, this.count);this.count += count;}}" }, { "index": 5232, "before": "public GetMethodResult getMethod(GetMethodRequest request) {request = beforeClientExecution(request);return executeGetMethod(request);}", "after": "public virtual GetMethodResponse GetMethod(GetMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMethodResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5233, "before": "public Repository getRepository() {return repo;}", "after": "public virtual Repository GetRepository(){return repo;}" }, { "index": 5234, "before": "public DeleteTrafficMirrorFilterRuleResult deleteTrafficMirrorFilterRule(DeleteTrafficMirrorFilterRuleRequest request) {request = beforeClientExecution(request);return executeDeleteTrafficMirrorFilterRule(request);}", "after": "public virtual DeleteTrafficMirrorFilterRuleResponse DeleteTrafficMirrorFilterRule(DeleteTrafficMirrorFilterRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTrafficMirrorFilterRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTrafficMirrorFilterRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5235, "before": "public CreateLabelingJobResult createLabelingJob(CreateLabelingJobRequest request) {request = beforeClientExecution(request);return executeCreateLabelingJob(request);}", "after": "public virtual CreateLabelingJobResponse CreateLabelingJob(CreateLabelingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLabelingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLabelingJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5236, "before": "@Override public boolean equals(Object other) {if (other instanceof CopyOnWriteArrayList) {return this == other|| Arrays.equals(elements, ((CopyOnWriteArrayList) other).elements);} else if (other instanceof List) {Object[] snapshot = elements;Iterator i = ((List) other).iterator();for (Object o : snapshot) {if (!i.hasNext() || !Objects.equal(o, i.next())) {return false;}}return !i.hasNext();} else {return false;}}", "after": "public override bool Equals(object other){if (other is java.util.concurrent.CopyOnWriteArrayList){return this == other || java.util.Arrays.equals(elements, ((java.util.concurrent.CopyOnWriteArrayList)other).elements);}else{if (other is java.util.List){object[] snapshot = elements;java.util.Iterator i = ((java.util.List)other).iterator();foreach (object o in snapshot){if (!i.hasNext() || !libcore.util.Objects.equal(o, i.next())){return false;}}return !i.hasNext();}else{return false;}}}" }, { "index": 5237, "before": "public DeleteCustomMetadataResult deleteCustomMetadata(DeleteCustomMetadataRequest request) {request = beforeClientExecution(request);return executeDeleteCustomMetadata(request);}", "after": "public virtual DeleteCustomMetadataResponse DeleteCustomMetadata(DeleteCustomMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCustomMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCustomMetadataResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5238, "before": "public DescribeNetworkAclsResult describeNetworkAcls(DescribeNetworkAclsRequest request) {request = beforeClientExecution(request);return executeDescribeNetworkAcls(request);}", "after": "public virtual DescribeNetworkAclsResponse DescribeNetworkAcls(DescribeNetworkAclsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNetworkAclsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNetworkAclsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5239, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[CONTINUE RECORD]\\n\");buffer.append(\" .data = \").append(HexDump.toHex(_data)).append(\"\\n\");buffer.append(\"[/CONTINUE RECORD]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[CONTINUE RECORD]\\n\");buffer.Append(\" .data = \").Append(StringUtil.ToHexString(sid)).Append(\"\\n\");buffer.Append(\"[/CONTINUE RECORD]\\n\");return buffer.ToString();}" }, { "index": 5240, "before": "public UnsubscribeRequest(String subscriptionArn) {setSubscriptionArn(subscriptionArn);}", "after": "public UnsubscribeRequest(string subscriptionArn){_subscriptionArn = subscriptionArn;}" }, { "index": 5241, "before": "public ListRulesPackagesResult listRulesPackages(ListRulesPackagesRequest request) {request = beforeClientExecution(request);return executeListRulesPackages(request);}", "after": "public virtual ListRulesPackagesResponse ListRulesPackages(ListRulesPackagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRulesPackagesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRulesPackagesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5242, "before": "public DisableMetricsCollectionResult disableMetricsCollection(DisableMetricsCollectionRequest request) {request = beforeClientExecution(request);return executeDisableMetricsCollection(request);}", "after": "public virtual DisableMetricsCollectionResponse DisableMetricsCollection(DisableMetricsCollectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableMetricsCollectionRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableMetricsCollectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5243, "before": "public static FloatBuffer wrap(float[] array) {return wrap(array, 0, array.length);}", "after": "public static java.nio.FloatBuffer wrap(float[] array_1){return wrap(array_1, 0, array_1.Length);}" }, { "index": 5244, "before": "public void set(int index, long value) {final int o = index / 7;final int b = index % 7;final int shift = b * 9;blocks[o] = (blocks[o] & ~(511L << shift)) | (value << shift);}", "after": "public override void Set(int index, long value){int o = index / 7;int b = index % 7;int shift = b * 9;blocks[o] = (blocks[o] & ~(511L << shift)) | (value << shift);}" }, { "index": 5245, "before": "public synchronized boolean containsKey(Object key) {int hash = key.hashCode();hash ^= (hash >>> 20) ^ (hash >>> 12);hash ^= (hash >>> 7) ^ (hash >>> 4);HashtableEntry[] tab = table;for (HashtableEntry e = tab[hash & (tab.length - 1)];e != null; e = e.next) {K eKey = e.key;if (eKey == key || (e.hash == hash && key.equals(eKey))) {return true;}}return false;}", "after": "public virtual bool containsKey(object key){lock (this){int hash = key.GetHashCode();hash ^= ((int)(((uint)hash) >> 20)) ^ ((int)(((uint)hash) >> 12));hash ^= ((int)(((uint)hash) >> 7)) ^ ((int)(((uint)hash) >> 4));java.util.Hashtable.HashtableEntry[] tab = table;{for (java.util.Hashtable.HashtableEntry e = tab[hash & (tab.Length - 1)]; e!= null; e = e.next){K eKey = e.key;if (Sharpen.Util.Equals(eKey, key) || (e.hash == hash && key.Equals(eKey))){return true;}}}return false;}}" }, { "index": 5246, "before": "public void close() throws IOException {Throwable thrown = null;try {flush();} catch (Throwable e) {thrown = e;}try {out.close();} catch (Throwable e) {if (thrown == null) {thrown = e;}}if (thrown != null) {SneakyThrow.sneakyThrow(thrown);}}", "after": "public override void close(){System.Exception thrown = null;try{flush();}catch (System.Exception e){thrown = e;}try{@out.close();}catch (System.Exception e){if (thrown == null){thrown = e;}}if (thrown != null){Sharpen.Util.Throw(thrown);}}" }, { "index": 5247, "before": "public List getConflictList() {return conflictList;}", "after": "public virtual IList GetConflictList(){return conflictList;}" }, { "index": 5248, "before": "public ListOrganizationAdminAccountsResult listOrganizationAdminAccounts(ListOrganizationAdminAccountsRequest request) {request = beforeClientExecution(request);return executeListOrganizationAdminAccounts(request);}", "after": "public virtual ListOrganizationAdminAccountsResponse ListOrganizationAdminAccounts(ListOrganizationAdminAccountsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListOrganizationAdminAccountsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListOrganizationAdminAccountsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5249, "before": "public static double min(double[] values) {double min = Double.POSITIVE_INFINITY;for (double value : values) {min = Math.min(min, value);}return min;}", "after": "public static double Min(double[] values){double min = double.PositiveInfinity;for (int i = 0, iSize = values.Length; i < iSize; i++){min = Math.Min(min, values[i]);}return min;}" }, { "index": 5250, "before": "@Override public int read() throws IOException {return Streams.readSingleByte(this);}", "after": "public override int read(){throw new System.NotImplementedException();}" }, { "index": 5251, "before": "public void removeLineCount() {remove1stProperty(PropertyIDMap.PID_LINECOUNT);}", "after": "public void RemoveLineCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_LINECOUNT);}" }, { "index": 5252, "before": "public RowRecordsAggregate(RecordStream rs, SharedValueManager svm) {this(svm);while(rs.hasNext()) {Record rec = rs.getNext();switch (rec.getSid()) {case RowRecord.sid:insertRow((RowRecord) rec);continue;case DConRefRecord.sid:addUnknownRecord(rec);continue;case DBCellRecord.sid:continue;}if (rec instanceof UnknownRecord) {addUnknownRecord(rec);while (rs.peekNextSid() == ContinueRecord.sid) {addUnknownRecord(rs.getNext());}continue;}if (rec instanceof MulBlankRecord) {_valuesAgg.addMultipleBlanks((MulBlankRecord) rec);continue;}if (!(rec instanceof CellValueRecordInterface)) {throw new RuntimeException(\"Unexpected record type (\" + rec.getClass().getName() + \")\");}_valuesAgg.construct((CellValueRecordInterface)rec, rs, svm);}}", "after": "public RowRecordsAggregate(RecordStream rs, SharedValueManager svm): this(svm){while (rs.HasNext()){Record rec = rs.GetNext();switch (rec.Sid){case RowRecord.sid:InsertRow((RowRecord)rec);continue;case DConRefRecord.sid:AddUnknownRecord(rec);continue;case DBCellRecord.sid:continue;}if (rec is UnknownRecord){AddUnknownRecord((UnknownRecord)rec);while (rs.PeekNextSid() == ContinueRecord.sid){AddUnknownRecord(rs.GetNext());}continue;}if (rec is MulBlankRecord) {_valuesAgg.AddMultipleBlanks((MulBlankRecord) rec);continue;}if (!(rec is CellValueRecordInterface)){if (rec.Sid == SeriesIndexRecord.sid){AddUnknownRecord(rec);continue;}throw new InvalidOperationException(\"Unexpected record type (\" + rec.GetType().Name + \")\");}_valuesAgg.Construct((CellValueRecordInterface)rec, rs, svm);}}" }, { "index": 5253, "before": "public CreateRepoSyncTaskRequest() {super(\"cr\", \"2016-06-07\", \"CreateRepoSyncTask\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/syncTasks\");setMethod(MethodType.PUT);}", "after": "public CreateRepoSyncTaskRequest(): base(\"cr\", \"2016-06-07\", \"CreateRepoSyncTask\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/syncTasks\";Method = MethodType.PUT;}" }, { "index": 5254, "before": "public SharedFormula(SpreadsheetVersion ssVersion){_columnWrappingMask = ssVersion.getLastColumnIndex(); _rowWrappingMask = ssVersion.getLastRowIndex();}", "after": "public SharedFormula(SpreadsheetVersion ssVersion){_columnWrappingMask = ssVersion.LastColumnIndex; _rowWrappingMask = ssVersion.LastRowIndex;}" }, { "index": 5255, "before": "public LexerTypeAction(int type) {this.type = type;}", "after": "public LexerTypeAction(int type){this.type = type;}" }, { "index": 5256, "before": "public char first() {if (start == end) {return DONE;}offset = start;return string.charAt(offset);}", "after": "public char first(){if (start == end){return java.text.CharacterIteratorClass.DONE;}offset = start;return @string[offset];}" }, { "index": 5257, "before": "public ShortBuffer slice() {return new ReadOnlyShortArrayBuffer(remaining(), backingArray, offset + position);}", "after": "public override java.nio.ShortBuffer slice(){return new java.nio.ReadOnlyShortArrayBuffer(remaining(), backingArray, offset +_position);}" }, { "index": 5258, "before": "public RenameBranchCommand setNewName(String newName) {checkCallable();this.newName = newName;return this;}", "after": "public virtual NGit.Api.RenameBranchCommand SetNewName(string newName){CheckCallable();this.newName = newName;return this;}" }, { "index": 5259, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getOptions());out.writeInt(getHorizontalPos());out.writeInt(getVerticalPos());out.writeInt(getObjectID());out.writeInt(getDVRecNo());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Options);out1.WriteInt(HorizontalPos);out1.WriteInt(VerticalPos);out1.WriteInt(ObjectID);out1.WriteInt(DVRecNo);}" }, { "index": 5260, "before": "public SheetBuilder setCreateEmptyCells(boolean shouldCreateEmptyCells) {this.shouldCreateEmptyCells = shouldCreateEmptyCells;return this;}", "after": "public SheetBuilder SetCreateEmptyCells(bool shouldCreateEmptyCells){this.shouldCreateEmptyCells = shouldCreateEmptyCells;return this;}" }, { "index": 5261, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval serialNumVE, ValueEval returnTypeVE) {double serialNum;try {serialNum = NumericFunction.singleOperandEvaluate(serialNumVE, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {return ErrorEval.VALUE_INVALID;}Calendar serialNumCalendar = LocaleUtil.getLocaleCalendar();serialNumCalendar.setTime(DateUtil.getJavaDate(serialNum, false));int returnType;try {ValueEval ve = OperandResolver.getSingleValue(returnTypeVE, srcRowIndex, srcColumnIndex);returnType = OperandResolver.coerceValueToInt(ve);} catch (EvaluationException e) {return ErrorEval.NUM_ERROR;}if (returnType != 1 && returnType != 2) {return ErrorEval.NUM_ERROR;}return new NumberEval(this.getWeekNo(serialNumCalendar, returnType));}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval serialNumVE, ValueEval returnTypeVE){double serialNum = 0.0;try{serialNum = NumericFunction.SingleOperandEvaluate(serialNumVE, srcRowIndex, srcColumnIndex);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}DateTime serialNumCalendar = DateUtil.GetJavaDate(serialNum, false);int returnType = 0;try{ValueEval ve = OperandResolver.GetSingleValue(returnTypeVE, srcRowIndex, srcColumnIndex);returnType = OperandResolver.CoerceValueToInt(ve);}catch (EvaluationException){return ErrorEval.NUM_ERROR;}if (returnType != 1 && returnType != 2){return ErrorEval.NUM_ERROR;}return new NumberEval(this.getWeekNo(serialNumCalendar, returnType));}" }, { "index": 5262, "before": "public static int checkHeader(DataInput in, String codec, int minVersion, int maxVersion) throws IOException {final int actualHeader = in.readInt();if (actualHeader != CODEC_MAGIC) {throw new CorruptIndexException(\"codec header mismatch: actual header=\" + actualHeader + \" vs expected header=\" + CODEC_MAGIC, in);}return checkHeaderNoMagic(in, codec, minVersion, maxVersion);}", "after": "public static int CheckHeader(DataInput @in, string codec, int minVersion, int maxVersion){int actualHeader = @in.ReadInt32();if (actualHeader != CODEC_MAGIC){throw new System.IO.IOException(\"codec header mismatch: actual header=\" + actualHeader + \" vs expected header=\" + CODEC_MAGIC + \" (resource: \" + @in + \")\");}return CheckHeaderNoMagic(@in, codec, minVersion, maxVersion);}" }, { "index": 5263, "before": "public String getErrorDisplay(String s) {StringBuilder buf = new StringBuilder();for (char c : s.toCharArray()) {buf.append(getErrorDisplay(c));}return buf.toString();}", "after": "public virtual string GetErrorDisplay(string s){StringBuilder buf = new StringBuilder();for (var i = 0; i < s.Length; ) {var codePoint = Char.ConvertToUtf32(s, i);buf.Append(GetErrorDisplay(codePoint));i += (codePoint > 0xFFFF) ? 2 : 1;}return buf.ToString();}" }, { "index": 5264, "before": "public boolean seekExact(BytesRef text) {termUpto = binarySearch(text, br, 0, info.terms.size()-1, info.terms, info.sortedTerms);return termUpto >= 0;}", "after": "public override bool SeekExact(BytesRef text){termUpto = BinarySearch(text, br, 0, info.terms.Count - 1, info.terms, info.sortedTerms, BytesRef.UTF8SortedAsUnicodeComparer);return termUpto >= 0;}" }, { "index": 5265, "before": "public CacheSecurityGroup createCacheSecurityGroup(CreateCacheSecurityGroupRequest request) {request = beforeClientExecution(request);return executeCreateCacheSecurityGroup(request);}", "after": "public virtual CreateCacheSecurityGroupResponse CreateCacheSecurityGroup(CreateCacheSecurityGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCacheSecurityGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCacheSecurityGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5266, "before": "public FetchMomentPhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"FetchMomentPhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public FetchMomentPhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"FetchMomentPhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 5267, "before": "public int getRuleIndex(String ruleName) {Integer ruleIndex = getRuleIndexMap().get(ruleName);if ( ruleIndex!=null ) return ruleIndex;return -1;}", "after": "public virtual int GetRuleIndex(string ruleName){int ruleIndex;if (RuleIndexMap.TryGetValue(ruleName, out ruleIndex)){return ruleIndex;}return -1;}" }, { "index": 5268, "before": "public RebootInstanceRequest() {super(\"Ens\", \"2017-11-10\", \"RebootInstance\", \"ens\");setMethod(MethodType.POST);}", "after": "public RebootInstanceRequest(): base(\"HPC\", \"2016-06-03\", \"RebootInstance\"){Method = MethodType.POST;}" }, { "index": 5269, "before": "public RevokeClientVpnIngressResult revokeClientVpnIngress(RevokeClientVpnIngressRequest request) {request = beforeClientExecution(request);return executeRevokeClientVpnIngress(request);}", "after": "public virtual RevokeClientVpnIngressResponse RevokeClientVpnIngress(RevokeClientVpnIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeClientVpnIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeClientVpnIngressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5270, "before": "public boolean supportsExecute() {return false;}", "after": "public override bool SupportsExecute(){return false;}" }, { "index": 5271, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[SHARED FORMULA (\").append(HexDump.intToHex(sid)).append(\"]\\n\");buffer.append(\" .range = \").append(getRange()).append(\"\\n\");buffer.append(\" .reserved = \").append(HexDump.shortToHex(field_5_reserved)).append(\"\\n\");Ptg[] ptgs = field_7_parsed_expr.getTokens();for (int k = 0; k < ptgs.length; k++ ) {buffer.append(\"Formula[\").append(k).append(\"]\");Ptg ptg = ptgs[k];buffer.append(ptg).append(ptg.getRVAType()).append(\"\\n\");}buffer.append(\"[/SHARED FORMULA]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[SHARED FORMULA (\").Append(HexDump.IntToHex(sid)).Append(\"]\\n\");buffer.Append(\" .range = \").Append(Range.ToString()).Append(\"\\n\");buffer.Append(\" .reserved = \").Append(HexDump.ShortToHex(field_5_reserved)).Append(\"\\n\");Ptg[] ptgs = field_7_parsed_expr.Tokens;for (int k = 0; k < ptgs.Length; k++){buffer.Append(\"Formula[\").Append(k).Append(\"]\");Ptg ptg = ptgs[k];buffer.Append(ptg.ToString()).Append(ptg.RVAType).Append(\"\\n\");}buffer.Append(\"[/SHARED FORMULA]\\n\");return buffer.ToString();}" }, { "index": 5272, "before": "public LexerPushModeAction(int mode) {this.mode = mode;}", "after": "public LexerPushModeAction(int mode){this.mode = mode;}" }, { "index": 5273, "before": "public void mark(int readlimit) {mark = ptr;}", "after": "public override void Mark(int readlimit){mark = ptr;}" }, { "index": 5274, "before": "public ClusterParameterGroup createClusterParameterGroup(CreateClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeCreateClusterParameterGroup(request);}", "after": "public virtual CreateClusterParameterGroupResponse CreateClusterParameterGroup(CreateClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateClusterParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5275, "before": "public String distanceSubQueryNotAllowed() {Iterator sqi = getSubQueriesIterator();while (sqi.hasNext()) {SrndQuery leq = sqi.next();if (leq instanceof DistanceSubQuery) {String m = ((DistanceSubQuery)leq).distanceSubQueryNotAllowed();if (m != null) {return m;}} else {return \"subquery not allowed: \" + leq.toString();}}return null;}", "after": "public virtual string DistanceSubQueryNotAllowed(){var sqi = GetSubQueriesEnumerator();while (sqi.MoveNext()){SrndQuery leq = sqi.Current;if (leq is IDistanceSubQuery){string m = ((IDistanceSubQuery)leq).DistanceSubQueryNotAllowed();if (m != null){return m;}}else{return \"subquery not allowed: \" + leq.ToString();}}return null;}" }, { "index": 5276, "before": "public DescribeBrokerEngineTypesResult describeBrokerEngineTypes(DescribeBrokerEngineTypesRequest request) {request = beforeClientExecution(request);return executeDescribeBrokerEngineTypes(request);}", "after": "public virtual DescribeBrokerEngineTypesResponse DescribeBrokerEngineTypes(DescribeBrokerEngineTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeBrokerEngineTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeBrokerEngineTypesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5277, "before": "public DescribeReservedDBInstancesOfferingsResult describeReservedDBInstancesOfferings(DescribeReservedDBInstancesOfferingsRequest request) {request = beforeClientExecution(request);return executeDescribeReservedDBInstancesOfferings(request);}", "after": "public virtual DescribeReservedDBInstancesOfferingsResponse DescribeReservedDBInstancesOfferings(DescribeReservedDBInstancesOfferingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedDBInstancesOfferingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedDBInstancesOfferingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5278, "before": "public ByteBuffer slice() {return new ReadWriteHeapByteBuffer(backingArray, remaining(), offset + position);}", "after": "public override java.nio.ByteBuffer slice(){return new java.nio.ReadWriteHeapByteBuffer(backingArray, remaining(), offset + _position);}" }, { "index": 5279, "before": "public GetCollectionRequest() {super(\"cr\", \"2016-06-07\", \"GetCollection\", \"cr\");setUriPattern(\"/collections\");setMethod(MethodType.GET);}", "after": "public GetCollectionRequest(): base(\"cr\", \"2016-06-07\", \"GetCollection\", \"cr\", \"openAPI\"){UriPattern = \"/collections\";Method = MethodType.GET;}" }, { "index": 5280, "before": "public DeleteApplicationVersionRequest(String applicationName, String versionLabel) {setApplicationName(applicationName);setVersionLabel(versionLabel);}", "after": "public DeleteApplicationVersionRequest(string applicationName, string versionLabel){_applicationName = applicationName;_versionLabel = versionLabel;}" }, { "index": 5281, "before": "public int last() {return (current = end);}", "after": "public override int Last(){return (current = end);}" }, { "index": 5282, "before": "public DeleteFleetResult deleteFleet(DeleteFleetRequest request) {request = beforeClientExecution(request);return executeDeleteFleet(request);}", "after": "public virtual DeleteFleetResponse DeleteFleet(DeleteFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFleetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5283, "before": "public void sync(Collection names) {throw new UnsupportedOperationException();}", "after": "public override void Sync(ICollection names){throw new NotSupportedException();}" }, { "index": 5284, "before": "public DescribeWorkteamResult describeWorkteam(DescribeWorkteamRequest request) {request = beforeClientExecution(request);return executeDescribeWorkteam(request);}", "after": "public virtual DescribeWorkteamResponse DescribeWorkteam(DescribeWorkteamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkteamRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkteamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5285, "before": "public StatusCommand status() {return new StatusCommand(repo);}", "after": "public virtual StatusCommand Status(){return new StatusCommand(repo);}" }, { "index": 5286, "before": "public StopInstancesResult stopInstances(StopInstancesRequest request) {request = beforeClientExecution(request);return executeStopInstances(request);}", "after": "public virtual StopInstancesResponse StopInstances(StopInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = StopInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5287, "before": "public boolean equals(Object obj) {if (obj == null)return false;if (obj == this)return true;if (obj.getClass() != getClass())return false;HSSFChildAnchor anchor = (HSSFChildAnchor) obj;return anchor.getDx1() == getDx1() && anchor.getDx2() == getDx2() && anchor.getDy1() == getDy1()&& anchor.getDy2() == getDy2();}", "after": "public override bool Equals(object obj){if (obj == null)return false;if (obj == this)return true;if (obj.GetType() != GetType())return false;HSSFChildAnchor anchor = (HSSFChildAnchor)obj;return anchor.Dx1 == Dx1 && anchor.Dx2 == Dx2 && anchor.Dy1 == Dy1&& anchor.Dy2 == Dy2;}" }, { "index": 5288, "before": "public DescribeDBSubnetGroupsResult describeDBSubnetGroups() {return describeDBSubnetGroups(new DescribeDBSubnetGroupsRequest());}", "after": "public virtual DescribeDBSubnetGroupsResponse DescribeDBSubnetGroups(){return DescribeDBSubnetGroups(new DescribeDBSubnetGroupsRequest());}" }, { "index": 5289, "before": "public PostingsEnum reset(int[] docIDs, int[] freqs) {this.docIDs = docIDs;this.freqs = freqs;docID = upto = -1;return this;}", "after": "public DocsEnum Reset(int[] docIDs, int[] freqs){this.docIDs = docIDs;this.freqs = freqs;docID_Renamed = upto = -1;return this;}" }, { "index": 5290, "before": "public boolean hasNext() {return index < size;}", "after": "public override bool HasNext(){return this.index < this._enclosing.size;}" }, { "index": 5291, "before": "public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) {request = beforeClientExecution(request);return executeListTagsForResource(request);}", "after": "public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5292, "before": "public static String getBuiltinFormat(int index) {if (index < 0 || index >=_formats.length) {return null;}return _formats[index];}", "after": "public static String GetBuiltinFormat(int index){if (index < 0 || index >= _formats.Length){return null;}return _formats[index];}" }, { "index": 5293, "before": "public ExpandedDouble(long rawBits) {int biasedExp = Math.toIntExact(rawBits >> 52);if (biasedExp == 0) {BigInteger frac = BigInteger.valueOf(rawBits).and(BI_FRAC_MASK);int expAdj = 64 - frac.bitLength();_significand = frac.shiftLeft(expAdj);_binaryExponent = (biasedExp & 0x07FF) - 1023 - expAdj;} else {_significand = getFrac(rawBits);_binaryExponent = (biasedExp & 0x07FF) - 1023;}}", "after": "public ExpandedDouble(long rawBits){int biasedExp = (int)(rawBits >> 52);if (biasedExp == 0){BigInteger frac = new BigInteger(rawBits)&BI_FRAC_MASK;int expAdj = 64 - frac.BitLength();_significand = frac<(request, options);}" }, { "index": 5299, "before": "public DeleteObjectResult deleteObject(DeleteObjectRequest request) {request = beforeClientExecution(request);return executeDeleteObject(request);}", "after": "public virtual DeleteObjectResponse DeleteObject(DeleteObjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteObjectRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteObjectResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5300, "before": "public boolean removeAll(final IntList c){boolean rval = false;for (int j = 0; j < c._limit; j++){if (removeValue(c._array[ j ])){rval = true;}}return rval;}", "after": "public bool RemoveAll(IntList c){bool rval = false;for (int j = 0; j < c._limit; j++){if (RemoveValue(c._array[j])){rval = true;}}return rval;}" }, { "index": 5301, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[FILEPASS]\\n\");buffer.append(\" .type = \").append(HexDump.shortToHex(encryptionType)).append('\\n');String prefix = \" .\"+encryptionInfo.getEncryptionMode();buffer.append(prefix+\".info = \").append(HexDump.shortToHex(encryptionInfo.getVersionMajor())).append('\\n');buffer.append(prefix+\".ver = \").append(HexDump.shortToHex(encryptionInfo.getVersionMinor())).append('\\n');buffer.append(prefix+\".salt = \").append(HexDump.toHex(encryptionInfo.getVerifier().getSalt())).append('\\n');buffer.append(prefix+\".verifier = \").append(HexDump.toHex(encryptionInfo.getVerifier().getEncryptedVerifier())).append('\\n');buffer.append(prefix+\".verifierHash = \").append(HexDump.toHex(encryptionInfo.getVerifier().getEncryptedVerifierHash())).append('\\n');buffer.append(\"[/FILEPASS]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[FILEPASS]\\n\");buffer.Append(\" .type = \").Append(HexDump.ShortToHex(_encryptionType)).Append(\"\\n\");buffer.Append(\" .info = \").Append(HexDump.ShortToHex(_encryptionInfo)).Append(\"\\n\");buffer.Append(\" .ver = \").Append(HexDump.ShortToHex(_minorVersionNo)).Append(\"\\n\");buffer.Append(\" .docId= \").Append(HexDump.ToHex(_docId)).Append(\"\\n\");buffer.Append(\" .salt = \").Append(HexDump.ToHex(_saltData)).Append(\"\\n\");buffer.Append(\" .hash = \").Append(HexDump.ToHex(_saltHash)).Append(\"\\n\");buffer.Append(\"[/FILEPASS]\\n\");return buffer.ToString();}" }, { "index": 5302, "before": "public CreateCustomerGatewayResult createCustomerGateway(CreateCustomerGatewayRequest request) {request = beforeClientExecution(request);return executeCreateCustomerGateway(request);}", "after": "public virtual CreateCustomerGatewayResponse CreateCustomerGateway(CreateCustomerGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCustomerGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCustomerGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5303, "before": "public CharBuffer compact() {if (byteBuffer.isReadOnly()) {throw new ReadOnlyBufferException();}byteBuffer.limit(limit * SizeOf.CHAR);byteBuffer.position(position * SizeOf.CHAR);byteBuffer.compact();byteBuffer.clear();position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}", "after": "public override java.nio.CharBuffer compact(){if (byteBuffer.isReadOnly()){throw new java.nio.ReadOnlyBufferException();}byteBuffer.limit(_limit * libcore.io.SizeOf.CHAR);byteBuffer.position(_position * libcore.io.SizeOf.CHAR);byteBuffer.compact();byteBuffer.clear();_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}" }, { "index": 5304, "before": "public DirCache getDirCache() {return cache;}", "after": "public virtual DirCache GetDirCache(){return cache;}" }, { "index": 5305, "before": "public PatternReplaceCharFilterFactory(Map args) {super(args);pattern = getPattern(args, \"pattern\");replacement = get(args, \"replacement\", \"\");if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public PatternReplaceCharFilterFactory(IDictionary args) : base(args){pattern = GetPattern(args, \"pattern\");replacement = Get(args, \"replacement\", \"\");maxBlockChars = GetInt32(args, \"maxBlockChars\",#pragma warning disable 612, 618PatternReplaceCharFilter.DEFAULT_MAX_BLOCK_CHARS);#pragma warning restore 612, 618if (args.TryGetValue(\"blockDelimiters\", out blockDelimiters)){args.Remove(\"blockDelimiters\");}if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 5306, "before": "public boolean getCreateEmptyCells() {return shouldCreateEmptyCells;}", "after": "public bool GetCreateEmptyCells(){return shouldCreateEmptyCells;}" }, { "index": 5307, "before": "public long getIndexSize() {long sz = 8 ;sz += 4 * 4 ;sz += sizeOf(src);sz += sizeOf(table);sz += sizeOf(entries);return sz;}", "after": "public virtual long GetIndexSize(){long sz = 8;sz += 4 * 4;sz += SizeOf(src);sz += SizeOf(table);sz += SizeOf(entries);return sz;}" }, { "index": 5308, "before": "public ShortBuffer put(short[] src, int srcOffset, int shortCount) {Arrays.checkOffsetAndCount(src.length, srcOffset, shortCount);if (shortCount > remaining()) {throw new BufferOverflowException();}for (int i = srcOffset; i < srcOffset + shortCount; ++i) {put(src[i]);}return this;}", "after": "public virtual java.nio.ShortBuffer put(short[] src, int srcOffset, int shortCount){java.util.Arrays.checkOffsetAndCount(src.Length, srcOffset, shortCount);if (shortCount > remaining()){throw new java.nio.BufferOverflowException();}{for (int i = srcOffset; i < srcOffset + shortCount; ++i){put(src[i]);}}return this;}" }, { "index": 5309, "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": 5310, "before": "public GetGatewayResponseResult getGatewayResponse(GetGatewayResponseRequest request) {request = beforeClientExecution(request);return executeGetGatewayResponse(request);}", "after": "public virtual GetGatewayResponseResponse GetGatewayResponse(GetGatewayResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetGatewayResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = GetGatewayResponseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5311, "before": "public SubscribeRequest(String topicArn, String protocol, String endpoint) {setTopicArn(topicArn);setProtocol(protocol);setEndpoint(endpoint);}", "after": "public SubscribeRequest(string topicArn, string protocol, string endpoint){_topicArn = topicArn;_protocol = protocol;_endpoint = endpoint;}" }, { "index": 5312, "before": "public void setLengthNormFactors(int min, int max, float steepness, boolean discountOverlaps) {this.ln_min = min;this.ln_max = max;this.ln_steep = steepness;this.discountOverlaps = discountOverlaps;}", "after": "public virtual void SetLengthNormFactors(int min, int max, float steepness, bool discountOverlaps){this.ln_min = min;this.ln_max = max;this.ln_steep = steepness;this.DiscountOverlaps = discountOverlaps;}" }, { "index": 5313, "before": "public void start() {mStartTime = ANIMATION_START;}", "after": "public virtual void start(){setStartTime(-1);}" }, { "index": 5314, "before": "public DeleteLaunchConfigurationResult deleteLaunchConfiguration(DeleteLaunchConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteLaunchConfiguration(request);}", "after": "public virtual DeleteLaunchConfigurationResponse DeleteLaunchConfiguration(DeleteLaunchConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLaunchConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLaunchConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5315, "before": "public void remove( Object record ) {int i = 0;for (org.apache.poi.hssf.record.Record r : records) {if (r == record) {remove(i);break;}i++;}}", "after": "public void Remove(Record record){int i = records.IndexOf(record);this.Remove(i);}" }, { "index": 5316, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(getFunctionIndex());}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(_functionIndex);}" }, { "index": 5317, "before": "public Term(String fld, BytesRef bytes) {field = fld;this.bytes = bytes == null ? null : BytesRef.deepCopyOf(bytes);}", "after": "public Term(string fld, BytesRef bytes){Field = fld;Bytes = bytes;}" }, { "index": 5318, "before": "public long ramBytesUsed() {return RamUsageEstimator.alignObjectSize(RamUsageEstimator.NUM_BYTES_OBJECT_HEADER+ RamUsageEstimator.NUM_BYTES_OBJECT_REF+ Long.BYTES+ Float.BYTES)+ current.ramBytesUsed();}", "after": "public override long RamBytesUsed(){return RamUsageEstimator.AlignObjectSize(RamUsageEstimator.NUM_BYTES_OBJECT_HEADER+ RamUsageEstimator.NUM_BYTES_OBJECT_REF+ RamUsageEstimator.NUM_BYTES_INT64+ RamUsageEstimator.NUM_BYTES_SINGLE)+ current.RamBytesUsed();}" }, { "index": 5319, "before": "public int serialize( int offset, byte[] data){return serialize( offset, data, new NullEscherSerializationListener() );}", "after": "public int Serialize(int offset, byte[] data){return Serialize(offset, data, new NullEscherSerializationListener());}" }, { "index": 5320, "before": "public String toString() {if (count == 0) {return \"\";}int wasted = value.length - count;if (wasted >= 256|| (wasted >= INITIAL_CAPACITY && wasted >= (count >> 1))) {return new String(value, 0, count);}shared = true;return new String(0, count, value);}", "after": "public override string ToString(){if (count == 0){return string.Empty;}int wasted = value.Length - count;if (wasted >= 256 || (wasted >= INITIAL_CAPACITY && wasted >= (count >> 1))){return new string(value, 0, count);}shared = true;return Sharpen.StringHelper.GetString(0, count, value);}" }, { "index": 5321, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_protect);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_protect);}" }, { "index": 5322, "before": "public AssociateResolverEndpointIpAddressResult associateResolverEndpointIpAddress(AssociateResolverEndpointIpAddressRequest request) {request = beforeClientExecution(request);return executeAssociateResolverEndpointIpAddress(request);}", "after": "public virtual AssociateResolverEndpointIpAddressResponse AssociateResolverEndpointIpAddress(AssociateResolverEndpointIpAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateResolverEndpointIpAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateResolverEndpointIpAddressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5323, "before": "public RevertCommand include(AnyObjectId commit) {return include(commit.getName(), commit);}", "after": "public virtual NGit.Api.RevertCommand Include(AnyObjectId commit){return Include(commit.GetName(), commit);}" }, { "index": 5324, "before": "public static ByteBuffer wrap(byte[] array) {return new ReadWriteHeapByteBuffer(array);}", "after": "public static java.nio.ByteBuffer wrap(byte[] array_1){return new java.nio.ReadWriteHeapByteBuffer(array_1);}" }, { "index": 5325, "before": "public void removeSecurity() {remove1stProperty(PropertyIDMap.PID_SECURITY);}", "after": "public void RemoveSecurity(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_SECURITY);}" }, { "index": 5326, "before": "public ImportVolumeResult importVolume(ImportVolumeRequest request) {request = beforeClientExecution(request);return executeImportVolume(request);}", "after": "public virtual ImportVolumeResponse ImportVolume(ImportVolumeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportVolumeRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportVolumeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5327, "before": "public boolean isDetectRenames() {return renameDetector != null;}", "after": "public virtual bool IsDetectRenames(){return renameDetector != null;}" }, { "index": 5328, "before": "public CacheCluster rebootCacheCluster(RebootCacheClusterRequest request) {request = beforeClientExecution(request);return executeRebootCacheCluster(request);}", "after": "public virtual RebootCacheClusterResponse RebootCacheCluster(RebootCacheClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebootCacheClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = RebootCacheClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5329, "before": "public DescribeTemplateAliasResult describeTemplateAlias(DescribeTemplateAliasRequest request) {request = beforeClientExecution(request);return executeDescribeTemplateAlias(request);}", "after": "public virtual DescribeTemplateAliasResponse DescribeTemplateAlias(DescribeTemplateAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTemplateAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTemplateAliasResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5330, "before": "public void reset() {if (overflow != null) {destroy();}if (blocks != null)blocks.clear();elseblocks = new ArrayList<>(initialBlocks);blocks.add(new Block(Math.min(inCoreLimit, Block.SZ)));}", "after": "public virtual void Reset(){if (overflow != null){Destroy();}if (inCoreLimit < TemporaryBuffer.Block.SZ){blocks = new AList(1);blocks.AddItem(new TemporaryBuffer.Block(inCoreLimit));}else{blocks = new AList(inCoreLimit / TemporaryBuffer.Block.SZ);blocks.AddItem(new TemporaryBuffer.Block());}}" }, { "index": 5331, "before": "public DescribeWorkspaceSnapshotsResult describeWorkspaceSnapshots(DescribeWorkspaceSnapshotsRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspaceSnapshots(request);}", "after": "public virtual DescribeWorkspaceSnapshotsResponse DescribeWorkspaceSnapshots(DescribeWorkspaceSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkspaceSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkspaceSnapshotsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5332, "before": "public void clear() {name = null;body = null;title = null;date = null;props = null;id = -1;}", "after": "public void Clear(){Name = null;Body = null;Title = null;date = null;Props = null;ID = -1;}" }, { "index": 5333, "before": "public DeleteDistributionResult deleteDistribution(DeleteDistributionRequest request) {request = beforeClientExecution(request);return executeDeleteDistribution(request);}", "after": "public virtual DeleteDistributionResponse DeleteDistribution(DeleteDistributionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDistributionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDistributionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5334, "before": "public final long next() {assert hasNext();long result = currentValues[pOff++];if (pOff == currentCount) {vOff += 1;pOff = 0;fillBlock();}return result;}", "after": "public long Next(){Debug.Assert(HasNext);long result = currentValues[pOff++];if (pOff == currentCount){vOff += 1;pOff = 0;if (vOff <= outerInstance.valuesOff){FillValues();}else{currentCount = 0;}}return result;}" }, { "index": 5335, "before": "public AttachInstancesToLoadBalancerResult attachInstancesToLoadBalancer(AttachInstancesToLoadBalancerRequest request) {request = beforeClientExecution(request);return executeAttachInstancesToLoadBalancer(request);}", "after": "public virtual AttachInstancesToLoadBalancerResponse AttachInstancesToLoadBalancer(AttachInstancesToLoadBalancerRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachInstancesToLoadBalancerRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachInstancesToLoadBalancerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5336, "before": "public PrintSetupRecord(RecordInputStream in) {field_1_paper_size = in.readShort();field_2_scale = in.readShort();field_3_page_start = in.readShort();field_4_fit_width = in.readShort();field_5_fit_height = in.readShort();field_6_options = in.readShort();field_7_hresolution = in.readShort();field_8_vresolution = in.readShort();field_9_headermargin = in.readDouble();field_10_footermargin = in.readDouble();field_11_copies = in.readShort();}", "after": "public PrintSetupRecord(RecordInputStream in1){field_1_paper_size = in1.ReadShort();field_2_scale = in1.ReadShort();field_3_page_start = in1.ReadShort();field_4_fit_width = in1.ReadShort();field_5_fit_height = in1.ReadShort();field_6_options = in1.ReadShort();field_7_hresolution = in1.ReadShort();field_8_vresolution = in1.ReadShort();field_9_headermargin = in1.ReadDouble();field_10_footermargin = in1.ReadDouble();field_11_copies = in1.ReadShort();}" }, { "index": 5337, "before": "public UpdateNotificationSettingsResult updateNotificationSettings(UpdateNotificationSettingsRequest request) {request = beforeClientExecution(request);return executeUpdateNotificationSettings(request);}", "after": "public virtual UpdateNotificationSettingsResponse UpdateNotificationSettings(UpdateNotificationSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateNotificationSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateNotificationSettingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5338, "before": "public DescribeSnapshotAttributeResult describeSnapshotAttribute(DescribeSnapshotAttributeRequest request) {request = beforeClientExecution(request);return executeDescribeSnapshotAttribute(request);}", "after": "public virtual DescribeSnapshotAttributeResponse DescribeSnapshotAttribute(DescribeSnapshotAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSnapshotAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSnapshotAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5339, "before": "public ListDocumentClassificationJobsResult listDocumentClassificationJobs(ListDocumentClassificationJobsRequest request) {request = beforeClientExecution(request);return executeListDocumentClassificationJobs(request);}", "after": "public virtual ListDocumentClassificationJobsResponse ListDocumentClassificationJobs(ListDocumentClassificationJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDocumentClassificationJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDocumentClassificationJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5340, "before": "public Item() {parent = 0;child = 0;}", "after": "public Item(){parent = (char)0;child = (char)0;}" }, { "index": 5341, "before": "public static final AbbreviatedObjectId fromObjectId(AnyObjectId id) {return new AbbreviatedObjectId(Constants.OBJECT_ID_STRING_LENGTH,id.w1, id.w2, id.w3, id.w4, id.w5);}", "after": "public static NGit.AbbreviatedObjectId FromObjectId(AnyObjectId id){return new NGit.AbbreviatedObjectId(Constants.OBJECT_ID_STRING_LENGTH, id.w1, id.w2, id.w3, id.w4, id.w5);}" }, { "index": 5342, "before": "public String format(Object value) {StringBuffer sb = new StringBuffer();formatValue(sb, value);return sb.toString();}", "after": "public String Format(Object value){StringBuilder sb = new StringBuilder();FormatValue(sb, value);return sb.ToString();}" }, { "index": 5343, "before": "public void processContinueRecord( byte[] record ){rawDataContainer.concatenate(record);}", "after": "public void ProcessContinueRecord(byte[] record){rawDataContainer.Concatenate(record);}" }, { "index": 5344, "before": "public ListenerHandle addChangeListener(ConfigChangedListener listener) {return listeners.addConfigChangedListener(listener);}", "after": "public virtual ListenerHandle AddChangeListener(ConfigChangedListener listener){return listeners.AddConfigChangedListener(listener);}" }, { "index": 5345, "before": "public BlendedTermQuery build() {return new BlendedTermQuery(ArrayUtil.copyOfSubArray(terms, 0, numTerms),ArrayUtil.copyOfSubArray(boosts, 0, numTerms),ArrayUtil.copyOfSubArray(contexts, 0, numTerms),rewriteMethod);}", "after": "public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}" }, { "index": 5346, "before": "public void setFlagByBit(int bitmask, boolean enabled) {if (enabled) {flags |= bitmask;} else {flags &= (0xFFFF ^ bitmask);}}", "after": "public void SetFlagByBit(int bitmask, bool enabled){if (enabled){flags |= (short)bitmask;}else{flags &= (short)(0xFFFF ^ bitmask);}}" }, { "index": 5347, "before": "public static double calculate(double pStartDateVal, double pEndDateVal, int basis) throws EvaluationException {if (basis < 0 || basis >= 5) {throw new EvaluationException(ErrorEval.NUM_ERROR);}int startDateVal = (int) Math.floor(pStartDateVal);int endDateVal = (int) Math.floor(pEndDateVal);if (startDateVal == endDateVal) {return 0;}if (startDateVal > endDateVal) {int temp = startDateVal;startDateVal = endDateVal;endDateVal = temp;}switch (basis) {case 0: return basis0(startDateVal, endDateVal);case 1: return basis1(startDateVal, endDateVal);case 2: return basis2(startDateVal, endDateVal);case 3: return basis3(startDateVal, endDateVal);case 4: return basis4(startDateVal, endDateVal);}throw new IllegalStateException(\"cannot happen\");}", "after": "public static double Calculate(double pStartDateVal, double pEndDateVal, int basis){if (basis < 0 || basis >= 5){throw new EvaluationException(ErrorEval.NUM_ERROR);}int startDateVal = (int)Math.Floor(pStartDateVal);int endDateVal = (int)Math.Floor(pEndDateVal);if (startDateVal == endDateVal){return 0;}if (startDateVal > endDateVal){int temp = startDateVal;startDateVal = endDateVal;endDateVal = temp;}switch (basis){case 0: return Basis0(startDateVal, endDateVal);case 1: return Basis1(startDateVal, endDateVal);case 2: return Basis2(startDateVal, endDateVal);case 3: return Basis3(startDateVal, endDateVal);case 4: return Basis4(startDateVal, endDateVal);}throw new InvalidOperationException(\"cannot happen\");}" }, { "index": 5348, "before": "public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChildren() == null || getChildren().size() == 0)return \"\";StringBuilder sb = new StringBuilder();String filler = \"\";for (QueryNode child : getChildren()) {sb.append(filler).append(child.toQueryString(escapeSyntaxParser));filler = \" \";}if ((getParent() != null && getParent() instanceof GroupQueryNode)|| isRoot())return sb.toString();elsereturn \"( \" + sb.toString() + \" )\";}", "after": "public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){var children = GetChildren();if (children == null || children.Count == 0)return \"\";StringBuilder sb = new StringBuilder();string filler = \"\";foreach (IQueryNode child in children){sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));filler = \" \";}if ((Parent != null && Parent is GroupQueryNode)|| IsRoot)return sb.ToString();elsereturn \"( \" + sb.ToString() + \" )\";}" }, { "index": 5349, "before": "public ByteBuffer putDouble(int index, double value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putDouble(int index, double value){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 5350, "before": "public GetVoiceConnectorGroupResult getVoiceConnectorGroup(GetVoiceConnectorGroupRequest request) {request = beforeClientExecution(request);return executeGetVoiceConnectorGroup(request);}", "after": "public virtual GetVoiceConnectorGroupResponse GetVoiceConnectorGroup(GetVoiceConnectorGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceConnectorGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceConnectorGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5351, "before": "public BatchUpdateUserResult batchUpdateUser(BatchUpdateUserRequest request) {request = beforeClientExecution(request);return executeBatchUpdateUser(request);}", "after": "public virtual BatchUpdateUserResponse BatchUpdateUser(BatchUpdateUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchUpdateUserRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchUpdateUserResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5352, "before": "public String toString() {return new String(chars, offset, length);}", "after": "public override string ToString(){return new string(chars, Offset, Length);}" }, { "index": 5353, "before": "public DescribeStorageResult describeStorage(DescribeStorageRequest request) {request = beforeClientExecution(request);return executeDescribeStorage(request);}", "after": "public virtual DescribeStorageResponse DescribeStorage(DescribeStorageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStorageRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStorageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5354, "before": "public void close() {flush();}", "after": "public override void close(){flush();}" }, { "index": 5355, "before": "public void close() throws IOException {super.close();}", "after": "public override void close(){throw new System.NotImplementedException();}" }, { "index": 5356, "before": "public final void backup(int amount) {bufferPosition -= amount;}", "after": "public void BackUp(int amount){bufferPosition -= amount;}" }, { "index": 5357, "before": "public UpdateDashboardPublishedVersionResult updateDashboardPublishedVersion(UpdateDashboardPublishedVersionRequest request) {request = beforeClientExecution(request);return executeUpdateDashboardPublishedVersion(request);}", "after": "public virtual UpdateDashboardPublishedVersionResponse UpdateDashboardPublishedVersion(UpdateDashboardPublishedVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDashboardPublishedVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDashboardPublishedVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5358, "before": "public DocumentStoredFieldVisitor(String... fields) {fieldsToAdd = new HashSet<>(fields.length);for(String field : fields) {fieldsToAdd.add(field);}}", "after": "public DocumentStoredFieldVisitor(params string[] fields){fieldsToAdd = new JCG.HashSet();foreach (string field in fields){fieldsToAdd.Add(field);}}" }, { "index": 5359, "before": "public ResumeGameServerGroupResult resumeGameServerGroup(ResumeGameServerGroupRequest request) {request = beforeClientExecution(request);return executeResumeGameServerGroup(request);}", "after": "public virtual ResumeGameServerGroupResponse ResumeGameServerGroup(ResumeGameServerGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResumeGameServerGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ResumeGameServerGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5360, "before": "public PushCommand setPushAll() {refSpecs.add(Transport.REFSPEC_PUSH_ALL);return this;}", "after": "public virtual NGit.Api.PushCommand SetPushAll(){refSpecs.AddItem(NGit.Transport.Transport.REFSPEC_PUSH_ALL);return this;}" }, { "index": 5361, "before": "public DBSnapshot createDBSnapshot(CreateDBSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateDBSnapshot(request);}", "after": "public virtual CreateDBSnapshotResponse CreateDBSnapshot(CreateDBSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5362, "before": "public boolean willSoonExpire() {if (roleSessionDurationSeconds == 0) {return false;}long now = System.currentTimeMillis();double expireFact = 0.95;return roleSessionDurationSeconds * expireFact < (now - sessionStartedTimeInMilliSeconds) / 1000.0;}", "after": "public virtual bool WillSoonExpire(){if (roleSessionDurationSeconds == 0){return false;}var now = DateTime.UtcNow.currentTimeMillis();return roleSessionDurationSeconds * expireFact <(now - sessionStartedTimeInMilliSeconds) / 1000.0;}" }, { "index": 5363, "before": "public List getIntervals() {return intervals;}", "after": "public virtual IList GetIntervals(){return intervals;}" }, { "index": 5364, "before": "public GetNamespaceRequest() {super(\"cr\", \"2016-06-07\", \"GetNamespace\", \"cr\");setUriPattern(\"/namespace/[Namespace]\");setMethod(MethodType.GET);}", "after": "public GetNamespaceRequest(): base(\"cr\", \"2016-06-07\", \"GetNamespace\", \"cr\", \"openAPI\"){UriPattern = \"/namespace/[Namespace]\";Method = MethodType.GET;}" }, { "index": 5365, "before": "public DeleteVpcRequest(String vpcId) {setVpcId(vpcId);}", "after": "public DeleteVpcRequest(string vpcId){_vpcId = vpcId;}" }, { "index": 5366, "before": "public long ramBytesUsed() {long bytesUsed = BASE_RAM_BYTES_USED;if (dict != null) {bytesUsed += dict.ramBytesUsed();}return bytesUsed;}", "after": "public long RamBytesUsed(){return ((fst != null) ? fst.GetSizeInBytes() : 0);}" }, { "index": 5367, "before": "public final ValueEval evaluate(ValueEval[] args, int srcRow, int srcCol) {if (args.length < 1) {return ErrorEval.VALUE_INVALID;}boolean boolResult;try {boolResult = calculate(args);} catch (EvaluationException e) {return e.getErrorEval();}return BoolEval.valueOf(boolResult);}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcRow, int srcCol){if (args.Length < 1){return ErrorEval.VALUE_INVALID;}bool boolResult;try{boolResult = Calculate(args);}catch (EvaluationException e){return e.GetErrorEval();}return BoolEval.ValueOf(boolResult);}" }, { "index": 5368, "before": "public void println(String str) {synchronized (lock) {print(str);println();}}", "after": "public virtual void println(string str){lock (@lock){print(str);println();}}" }, { "index": 5369, "before": "public TypedPropertyValue( int type, Object value ) {_type = type;_value = value;}", "after": "public TypedPropertyValue(int type, Object value){_type = type;_value = value;}" }, { "index": 5370, "before": "public FloatBuffer duplicate() {ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());FloatToByteBufferAdapter buf = new FloatToByteBufferAdapter(bb);buf.limit = limit;buf.position = position;buf.mark = mark;return buf;}", "after": "public override java.nio.FloatBuffer duplicate(){java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());java.nio.FloatToByteBufferAdapter buf = new java.nio.FloatToByteBufferAdapter(bb);buf._limit = _limit;buf._position = _position;buf._mark = _mark;return buf;}" }, { "index": 5371, "before": "public MigrateWorkspaceResult migrateWorkspace(MigrateWorkspaceRequest request) {request = beforeClientExecution(request);return executeMigrateWorkspace(request);}", "after": "public virtual MigrateWorkspaceResponse MigrateWorkspace(MigrateWorkspaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = MigrateWorkspaceRequestMarshaller.Instance;options.ResponseUnmarshaller = MigrateWorkspaceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5372, "before": "public GetRequestValidatorResult getRequestValidator(GetRequestValidatorRequest request) {request = beforeClientExecution(request);return executeGetRequestValidator(request);}", "after": "public virtual GetRequestValidatorResponse GetRequestValidator(GetRequestValidatorRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRequestValidatorRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRequestValidatorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5373, "before": "public String toString() { return toString(false); }", "after": "public override string ToString(){return ToString(false);}" }, { "index": 5374, "before": "public ForgetSmartHomeAppliancesResult forgetSmartHomeAppliances(ForgetSmartHomeAppliancesRequest request) {request = beforeClientExecution(request);return executeForgetSmartHomeAppliances(request);}", "after": "public virtual ForgetSmartHomeAppliancesResponse ForgetSmartHomeAppliances(ForgetSmartHomeAppliancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ForgetSmartHomeAppliancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ForgetSmartHomeAppliancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5375, "before": "public DeleteApiResult deleteApi(DeleteApiRequest request) {request = beforeClientExecution(request);return executeDeleteApi(request);}", "after": "public virtual DeleteApiResponse DeleteApi(DeleteApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApiRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApiResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5376, "before": "public void setKeyProgressIncrement(int increment) {mKeyProgressIncrement = increment < 0 ? -increment : increment;}", "after": "public virtual void setKeyProgressIncrement(int increment){mKeyProgressIncrement = increment < 0 ? -increment : increment;}" }, { "index": 5377, "before": "public boolean addAll(final IntList c){if (c._limit != 0){if ((_limit + c._limit) > _array.length){growArray(_limit + c._limit);}System.arraycopy(c._array, 0, _array, _limit, c._limit);_limit += c._limit;}return true;}", "after": "public bool AddAll(IntList c){if (c._limit != 0){if ((_limit + c._limit) > _array.Length){growArray(_limit + c._limit);}Array.Copy(c._array, 0, _array, _limit, c._limit);_limit += c._limit;}return true;}" }, { "index": 5378, "before": "public DVRecord createDVRecord(HSSFSheet sheet) {FormulaPair fp = _constraint.createFormulas(sheet);return new DVRecord(_constraint.getValidationType(),_constraint.getOperator(),_errorStyle, _emptyCellAllowed, getSuppressDropDownArrow(),_constraint.getValidationType()==ValidationType.LIST && _constraint.getExplicitListValues()!=null,_showPromptBox, _prompt_title, _prompt_text,_showErrorBox, _error_title, _error_text,fp.getFormula1(), fp.getFormula2(),_regions);}", "after": "public DVRecord CreateDVRecord(HSSFSheet sheet){NPOI.HSSF.UserModel.DVConstraint.FormulaPair fp = _constraint.CreateFormulas(sheet);return new DVRecord(_constraint.GetValidationType(),_constraint.Operator,_errorStyle, _emptyCellAllowed, SuppressDropDownArrow,_constraint.GetValidationType() == ValidationType.LIST && _constraint.ExplicitListValues != null,_ShowPromptBox, _prompt_title, _prompt_text,_ShowErrorBox, _error_title, _error_text,fp.Formula1, fp.Formula2,_regions);}" }, { "index": 5379, "before": "public boolean evaluate(int cmpResult) {switch (_code) {case NONE:case EQ:return cmpResult == 0;case NE: return cmpResult != 0;case LT: return cmpResult < 0;case LE: return cmpResult <= 0;case GT: return cmpResult > 0;case GE: return cmpResult >= 0;}throw new RuntimeException(\"Cannot call boolean evaluate on non-equality operator '\"+ _representation + \"'\");}", "after": "public bool Evaluate(bool cmpResult){switch (_code){case NONE:case EQ:return cmpResult;case NE:return !cmpResult;}throw new Exception(\"Cannot call bool Evaluate on non-equality operator '\"+ _representation + \"'\");}" }, { "index": 5380, "before": "public boolean isCancelled() {return false;}", "after": "public override bool IsCancelled(){return false;}" }, { "index": 5381, "before": "public ListHoursOfOperationsResult listHoursOfOperations(ListHoursOfOperationsRequest request) {request = beforeClientExecution(request);return executeListHoursOfOperations(request);}", "after": "public virtual ListHoursOfOperationsResponse ListHoursOfOperations(ListHoursOfOperationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListHoursOfOperationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListHoursOfOperationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5382, "before": "public int serialize(int offset, byte [] data) {throw new RecordFormatException(\"Label Records are supported READ ONLY...convert to LabelSST\");}", "after": "public override int Serialize(int offset, byte [] data){throw new RecordFormatException(\"Label Records are supported Read ONLY...Convert to LabelSST\");}" }, { "index": 5383, "before": "public URI normalize() {if (opaque) {return this;}String normalizedPath = normalize(path, false);if (path.equals(normalizedPath)) {return this;}URI result = duplicate();result.path = normalizedPath;result.setSchemeSpecificPart();return result;}", "after": "public java.net.URI normalize(){if (opaque){return this;}string normalizedPath = normalize(path, false);if (path.Equals(normalizedPath)){return this;}java.net.URI result = duplicate();result.path = normalizedPath;result.setSchemeSpecificPart();return result;}" }, { "index": 5384, "before": "public FreeRefFunction findUserDefinedFunction(String functionName) {return _udfFinder.findFunction(functionName);}", "after": "public FreeRefFunction FindUserDefinedFunction(String functionName){return _udfFinder.FindFunction(functionName);}" }, { "index": 5385, "before": "public UpdateGatewayResponseResult updateGatewayResponse(UpdateGatewayResponseRequest request) {request = beforeClientExecution(request);return executeUpdateGatewayResponse(request);}", "after": "public virtual UpdateGatewayResponseResponse UpdateGatewayResponse(UpdateGatewayResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGatewayResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGatewayResponseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5386, "before": "public GetOperationDetailResult getOperationDetail(GetOperationDetailRequest request) {request = beforeClientExecution(request);return executeGetOperationDetail(request);}", "after": "public virtual GetOperationDetailResponse GetOperationDetail(GetOperationDetailRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOperationDetailRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOperationDetailResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5387, "before": "public String toString(String field) {StringBuilder buffer = new StringBuilder();if (!getField().equals(field)) {buffer.append(getField());buffer.append(\":\");}buffer.append(term.text());return buffer.toString();}", "after": "public override string ToString(string field){StringBuilder buffer = new StringBuilder();if (!Field.Equals(field, StringComparison.Ordinal)){buffer.Append(Field);buffer.Append(\":\");}buffer.Append(Term.Text());buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}" }, { "index": 5388, "before": "public NameXPtg getNameXPtg(String name, UDFFinder udf) {return getNameXPtg(name, -1, udf);}", "after": "public NameXPtg GetNameXPtg(String name, UDFFinder udf){return GetNameXPtg(name, -1, udf);}" }, { "index": 5389, "before": "public String getCharsetName() {return charsetName;}", "after": "public virtual string getCharsetName(){return charsetName;}" }, { "index": 5390, "before": "public DescribeWebsiteCertificateAuthorityResult describeWebsiteCertificateAuthority(DescribeWebsiteCertificateAuthorityRequest request) {request = beforeClientExecution(request);return executeDescribeWebsiteCertificateAuthority(request);}", "after": "public virtual DescribeWebsiteCertificateAuthorityResponse DescribeWebsiteCertificateAuthority(DescribeWebsiteCertificateAuthorityRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWebsiteCertificateAuthorityRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWebsiteCertificateAuthorityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5391, "before": "static public double ppmt(double r, int per, int nper, double pv, double fv) {return pmt(r, nper, pv, fv) - ipmt(r, per, nper, pv, fv);}", "after": "static public double PPMT(double r, int per, int nper, double pv, double fv){return PMT(r, nper, pv, fv) - IPMT(r, per, nper, pv, fv);}" }, { "index": 5392, "before": "public ShortBuffer put(int index, short c) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ShortBuffer put(int index, short c){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 5393, "before": "public void writeBytes(String value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeBytes(value);}", "after": "public virtual void writeBytes(string value){throw new System.NotImplementedException();}" }, { "index": 5394, "before": "public LinkTable(int numberOfSheets, WorkbookRecordList workbookRecordList) {_workbookRecordList = workbookRecordList;_definedNames = new ArrayList<>();_externalBookBlocks = new ExternalBookBlock[]{new ExternalBookBlock(numberOfSheets),};_externSheetRecord = new ExternSheetRecord();_recordCount = 2;SupBookRecord supbook = _externalBookBlocks[0].getExternalBookRecord();int idx = findFirstRecordLocBySid(CountryRecord.sid);if (idx < 0) {throw new RuntimeException(\"CountryRecord not found\");}_workbookRecordList.add(idx + 1, _externSheetRecord);_workbookRecordList.add(idx + 1, supbook);}", "after": "public LinkTable(int numberOfSheets, WorkbookRecordList workbookRecordList){_workbookRecordList = workbookRecordList;_definedNames = new List();_externalBookBlocks = new ExternalBookBlock[] {new ExternalBookBlock(numberOfSheets),};_externSheetRecord = new ExternSheetRecord();_recordCount = 2;SupBookRecord supbook = _externalBookBlocks[0].GetExternalBookRecord();int idx = FindFirstRecordLocBySid(CountryRecord.sid);if (idx < 0){throw new Exception(\"CountryRecord not found\");}_workbookRecordList.Add(idx + 1, _externSheetRecord);_workbookRecordList.Add(idx + 1, supbook);}" }, { "index": 5395, "before": "public void remove() {throw new UnsupportedOperationException();}", "after": "public void Remove(){throw new NotImplementedException(\"Unsupported Operations!\");}" }, { "index": 5396, "before": "public static int[] grow(int[] array) {return grow(array, 1 + array.length);}", "after": "public static float[] Grow(float[] array){return Grow(array, 1 + array.Length);}" }, { "index": 5397, "before": "public void addAll(T[] src, int srcIdx, int srcCnt) {while (0 < srcCnt) {int i = tailBlkIdx;int n = Math.min(srcCnt, BLOCK_SIZE - i);if (n == 0) {add(src[srcIdx++]);srcCnt--;continue;}System.arraycopy(src, srcIdx, tailBlock, i, n);tailBlkIdx += n;size += n;srcIdx += n;srcCnt -= n;}}", "after": "public virtual void AddAll(T[] src, int srcIdx, int srcCnt){while (0 < srcCnt){int i = tailBlkIdx;int n = Math.Min(srcCnt, BLOCK_SIZE - i);if (n == 0){AddItem(src[srcIdx++]);srcCnt--;continue;}System.Array.Copy(src, srcIdx, tailBlock, i, n);tailBlkIdx += n;size += n;srcIdx += n;srcCnt -= n;}}" }, { "index": 5398, "before": "public RenewDomainResult renewDomain(RenewDomainRequest request) {request = beforeClientExecution(request);return executeRenewDomain(request);}", "after": "public virtual RenewDomainResponse RenewDomain(RenewDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = RenewDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = RenewDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5399, "before": "public static boolean isInRange(int i) {return i >= MIN_VALUE && i <= MAX_VALUE;}", "after": "public static bool IsInRange(int i){return i >= MIN_VALUE && i <= MAX_VALUE;}" }, { "index": 5400, "before": "public AddApplicationInputResult addApplicationInput(AddApplicationInputRequest request) {request = beforeClientExecution(request);return executeAddApplicationInput(request);}", "after": "public virtual AddApplicationInputResponse AddApplicationInput(AddApplicationInputRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddApplicationInputRequestMarshaller.Instance;options.ResponseUnmarshaller = AddApplicationInputResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5401, "before": "public Request marshall(DeletePublicKeyRequest deletePublicKeyRequest) {if (deletePublicKeyRequest == null) {throw new SdkClientException(\"Invalid argument passed to marshall(...)\");}Request request = new DefaultRequest(deletePublicKeyRequest, \"AmazonCloudFront\");request.setHttpMethod(HttpMethodName.DELETE);if (deletePublicKeyRequest.getIfMatch() != null) {request.addHeader(\"If-Match\", StringUtils.fromString(deletePublicKeyRequest.getIfMatch()));}String uriResourcePath = \"/2019-03-26/public-key/{Id}\";uriResourcePath = com.amazonaws.transform.PathMarshallers.NON_GREEDY.marshall(uriResourcePath, \"Id\", deletePublicKeyRequest.getId());request.setResourcePath(uriResourcePath);return request;}", "after": "public IRequest Marshall(DeletePublicKeyRequest publicRequest){var request = new DefaultRequest(publicRequest, \"Amazon.CloudFront\");request.HttpMethod = \"DELETE\";if(publicRequest.IsSetIfMatch())request.Headers[\"If-Match\"] = publicRequest.IfMatch;if (!publicRequest.IsSetId())throw new AmazonCloudFrontException(\"Request object does not have required field Id set\");request.AddPathResource(\"{Id}\", StringUtils.FromString(publicRequest.Id));request.ResourcePath = \"/2019-03-26/public-key/{Id}\";request.MarshallerVersion = 2;return request;}" }, { "index": 5402, "before": "public boolean matches(ParseTree tree) {return matcher.match(tree, this).succeeded();}", "after": "public virtual bool Matches(IParseTree tree){return matcher.Match(tree, this).Succeeded;}" }, { "index": 5403, "before": "public CreateDetectorResult createDetector(CreateDetectorRequest request) {request = beforeClientExecution(request);return executeCreateDetector(request);}", "after": "public virtual CreateDetectorResponse CreateDetector(CreateDetectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDetectorRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDetectorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5404, "before": "public boolean equals(Object other) {if (other instanceof IndexCommit) {IndexCommit otherCommit = (IndexCommit) other;return otherCommit.getDirectory() == getDirectory() && otherCommit.getGeneration() == getGeneration();} else {return false;}}", "after": "public override bool Equals(object other){if (other is IndexCommit){IndexCommit otherCommit = (IndexCommit)other;return otherCommit.Directory == Directory && otherCommit.Generation == Generation;}else{return false;}}" }, { "index": 5405, "before": "public void yypushback(int number) {if ( number > yylength() )zzScanError(ZZ_PUSHBACK_2BIG);zzMarkedPos -= number;}", "after": "public void YyPushBack(int number){if (number > YyLength)ZzScanError(ZZ_PUSHBACK_2BIG);zzMarkedPos -= number;}" }, { "index": 5406, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {return fixed(arg0, arg1, BoolEval.FALSE, srcRowIndex, srcColumnIndex);}", "after": "public ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){return doFixed(arg0, arg1, BoolEval.FALSE, srcRowIndex, srcColumnIndex);}" }, { "index": 5407, "before": "public RevisionSyntaxException(String message, String revstr) {super(message);this.revstr = revstr;}", "after": "public RevisionSyntaxException(string message, string revstr) : base(message){this.revstr = revstr;}" }, { "index": 5408, "before": "public void reset() throws IOException {synchronized (lock) {super.reset();lineNumber = markedLineNumber;lastWasCR = markedLastWasCR;}}", "after": "public override void reset(){throw new System.NotImplementedException();}" }, { "index": 5409, "before": "public QueryParser(CharStream stream) {token_source = new QueryParserTokenManager(stream);token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 10; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();}", "after": "public QueryParser(ICharStream stream){TokenSource = new QueryParserTokenManager(stream);Token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 10; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();}" }, { "index": 5410, "before": "public Float floatValue(String key) {String value = responseMap.get(key);if (null == value || 0 == value.length()) {return null;}return Float.valueOf(responseMap.get(key));}", "after": "public float? FloatValue(string key){if (null != DictionaryUtil.Get(ResponseDictionary, key)){return float.Parse(DictionaryUtil.Get(ResponseDictionary, key));}return null;}" }, { "index": 5411, "before": "public ModifyClusterResult modifyCluster(ModifyClusterRequest request) {request = beforeClientExecution(request);return executeModifyCluster(request);}", "after": "public virtual ModifyClusterResponse ModifyCluster(ModifyClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5412, "before": "public DescribeSolutionResult describeSolution(DescribeSolutionRequest request) {request = beforeClientExecution(request);return executeDescribeSolution(request);}", "after": "public virtual DescribeSolutionResponse DescribeSolution(DescribeSolutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSolutionRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSolutionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5413, "before": "public BootstrapActionConfig build() {return new BootstrapActionConfig().withName(\"Configure Hadoop\").withScriptBootstrapAction(new ScriptBootstrapActionConfig().withPath(\"s3:.withArgs(args));}", "after": "public BootstrapActionConfig Build(){return new BootstrapActionConfig{Name = \"Configure Hadoop\",ScriptBootstrapAction = new ScriptBootstrapActionConfig{Path = string.Format(CultureInfo.InvariantCulture, \"s3:Args = args}};}" }, { "index": 5414, "before": "public void append(String name, RevCommit commit) {append(name, GITLINK, commit);}", "after": "public virtual void Append(string name, RevCommit commit){Append(name, FileMode.GITLINK, commit);}" }, { "index": 5415, "before": "public int read() {if (ptr == data.length)return -1;return data[ptr++] & 0xff;}", "after": "public override int Read(){if (ptr == data.Length){return -1;}return data[ptr++] & unchecked((int)(0xff));}" }, { "index": 5416, "before": "public void setOutputUnigramsIfNoShingles(boolean outputUnigramsIfNoShingles) {this.outputUnigramsIfNoShingles = outputUnigramsIfNoShingles;}", "after": "public void SetOutputUnigramsIfNoShingles(bool outputUnigramsIfNoShingles){this.outputUnigramsIfNoShingles = outputUnigramsIfNoShingles;}" }, { "index": 5417, "before": "public RevFilter clone() {return this; }", "after": "public override RevFilter Clone(){return this;}" }, { "index": 5418, "before": "public void updateFormulasAfterRowShift(FormulaShifter shifter, int currentExternSheetIndex) {for (int i = 0; i < records.length; i++) {CellValueRecordInterface[] rowCells = records[i];if (rowCells == null) {continue;}for (int j = 0; j < rowCells.length; j++) {CellValueRecordInterface cell = rowCells[j];if (cell instanceof FormulaRecordAggregate) {FormulaRecordAggregate fra = (FormulaRecordAggregate)cell;Ptg[] ptgs = fra.getFormulaTokens(); Ptg[] ptgs2 = ((FormulaRecordAggregate)cell).getFormulaRecord().getParsedExpression(); if (shifter.adjustFormula(ptgs, currentExternSheetIndex)) {fra.setParsedExpression(ptgs);}}}}}", "after": "public void UpdateFormulasAfterRowShift(FormulaShifter shifter, int currentExternSheetIndex){for (int i = 0; i < records.Length; i++){CellValueRecordInterface[] rowCells = records[i];if (rowCells == null){continue;}for (int j = 0; j < rowCells.Length; j++){CellValueRecordInterface cell = rowCells[j];if (cell is FormulaRecordAggregate){FormulaRecordAggregate fra = (FormulaRecordAggregate)cell;Ptg[] ptgs = fra.FormulaTokens; Ptg[] ptgs2 = ((FormulaRecordAggregate)cell).FormulaRecord.ParsedExpression; if (shifter.AdjustFormula(ptgs, currentExternSheetIndex)){fra.SetParsedExpression(ptgs);}}}}}" }, { "index": 5419, "before": "public UpdateGroupRequest(String groupName) {setGroupName(groupName);}", "after": "public UpdateGroupRequest(string groupName){_groupName = groupName;}" }, { "index": 5420, "before": "public ListBrokersResult listBrokers(ListBrokersRequest request) {request = beforeClientExecution(request);return executeListBrokers(request);}", "after": "public virtual ListBrokersResponse ListBrokers(ListBrokersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListBrokersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListBrokersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5421, "before": "public final FormulaCellCacheEntry[] getConsumingCells() {return _consumingCells.toArray();}", "after": "public FormulaCellCacheEntry[] GetConsumingCells(){return _consumingCells.ToArray();}" }, { "index": 5422, "before": "public int cardinality() {return cardinality;}", "after": "public int Cardinality(){return cardinality;}" }, { "index": 5423, "before": "public static final WeightedTerm[] getTerms(Query query, boolean prohibited){return getTerms(query,prohibited,null);}", "after": "public static WeightedTerm[] GetTerms(Query query, bool prohibited){return GetTerms(query, prohibited, null);}" }, { "index": 5424, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getColWidth());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(ColWidth);}" }, { "index": 5425, "before": "public FieldsConsumer fieldsConsumer(SegmentWriteState state) throws IOException {PostingsWriterBase postingsWriter = new Lucene84PostingsWriter(state);boolean success = false;try {FieldsConsumer ret = new FSTTermsWriter(state, postingsWriter);success = true;return ret;} finally {if (!success) {IOUtils.closeWhileHandlingException(postingsWriter);}}}", "after": "public override FieldsConsumer FieldsConsumer(SegmentWriteState state){PostingsWriterBase postingsWriter = new Lucene41PostingsWriter(state);bool success = false;try{FieldsConsumer ret = new FSTTermsWriter(state, postingsWriter);success = true;return ret;}finally{if (!success){IOUtils.DisposeWhileHandlingException(postingsWriter);}}}" }, { "index": 5426, "before": "public int getThumbOffset() {return mThumbOffset;}", "after": "public virtual int getThumbOffset(){return mThumbOffset;}" }, { "index": 5427, "before": "public GetApnsChannelResult getApnsChannel(GetApnsChannelRequest request) {request = beforeClientExecution(request);return executeGetApnsChannel(request);}", "after": "public virtual GetApnsChannelResponse GetApnsChannel(GetApnsChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApnsChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApnsChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5428, "before": "public boolean equals(Object obj) {if (this == obj) return true;if (null == obj || getClass() != obj.getClass()) return false;NGramDistance o = (NGramDistance)obj;return o.n == this.n;}", "after": "public override bool Equals(object obj){if (this == obj){return true;}if (null == obj || this.GetType() != obj.GetType()){return false;}var o = (NGramDistance)obj;return o.n == this.n;}" }, { "index": 5429, "before": "public GetDomainDetailResult getDomainDetail(GetDomainDetailRequest request) {request = beforeClientExecution(request);return executeGetDomainDetail(request);}", "after": "public virtual GetDomainDetailResponse GetDomainDetail(GetDomainDetailRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDomainDetailRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDomainDetailResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5430, "before": "public UpdateConfigurationSetReputationMetricsEnabledResult updateConfigurationSetReputationMetricsEnabled(UpdateConfigurationSetReputationMetricsEnabledRequest request) {request = beforeClientExecution(request);return executeUpdateConfigurationSetReputationMetricsEnabled(request);}", "after": "public virtual UpdateConfigurationSetReputationMetricsEnabledResponse UpdateConfigurationSetReputationMetricsEnabled(UpdateConfigurationSetReputationMetricsEnabledRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateConfigurationSetReputationMetricsEnabledRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateConfigurationSetReputationMetricsEnabledResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5431, "before": "public PackedDataInput(DataInput in) {this.in = in;skipToNextByte();}", "after": "public PackedDataInput(DataInput @in){this.@in = @in;SkipToNextByte();}" }, { "index": 5432, "before": "public AssociateQualificationWithWorkerResult associateQualificationWithWorker(AssociateQualificationWithWorkerRequest request) {request = beforeClientExecution(request);return executeAssociateQualificationWithWorker(request);}", "after": "public virtual AssociateQualificationWithWorkerResponse AssociateQualificationWithWorker(AssociateQualificationWithWorkerRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateQualificationWithWorkerRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateQualificationWithWorkerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5433, "before": "public String toString() {return \"arc=\" + fstArc + \" state=\" + fsaState;}", "after": "public override string ToString(){return \"arc=\" + fstArc + \" state=\" + fsaState;}" }, { "index": 5434, "before": "public void signalWorkflowExecution(SignalWorkflowExecutionRequest request) {request = beforeClientExecution(request);executeSignalWorkflowExecution(request);}", "after": "public virtual SignalWorkflowExecutionResponse SignalWorkflowExecution(SignalWorkflowExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = SignalWorkflowExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = SignalWorkflowExecutionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5435, "before": "public String getTokenName(int t) {if (t == Token.EOF) {return \"EOF\";}Vocabulary vocabulary = parser != null ? parser.getVocabulary() : VocabularyImpl.EMPTY_VOCABULARY;String displayName = vocabulary.getDisplayName(t);if (displayName.equals(Integer.toString(t))) {return displayName;}return displayName + \"<\" + t + \">\";}", "after": "public string GetTokenName(int t){if (t == TokenConstants.EOF){return \"EOF\";}IVocabulary vocabulary = parser != null ? parser.Vocabulary : Vocabulary.EmptyVocabulary;String displayName = vocabulary.GetDisplayName(t);if (displayName.Equals(t.ToString())){return displayName;}return displayName + \"<\" + t + \">\";}" }, { "index": 5436, "before": "public CJKWidthFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public CJKWidthFilterFactory(IDictionary args) : base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 5437, "before": "public GetHLSStreamingSessionURLResult getHLSStreamingSessionURL(GetHLSStreamingSessionURLRequest request) {request = beforeClientExecution(request);return executeGetHLSStreamingSessionURL(request);}", "after": "public virtual GetHLSStreamingSessionURLResponse GetHLSStreamingSessionURL(GetHLSStreamingSessionURLRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHLSStreamingSessionURLRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHLSStreamingSessionURLResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5438, "before": "public boolean updateFormulasAfterCellShift(FormulaShifter shifter, int currentExternSheetIx) {CellRangeAddress[] cellRanges = header.getCellRanges();boolean changed = false;List temp = new ArrayList<>();for (CellRangeAddress craOld : cellRanges) {CellRangeAddress craNew = BaseRowColShifter.shiftRange(shifter, craOld, currentExternSheetIx);if (craNew == null) {changed = true;continue;}temp.add(craNew);if (craNew != craOld) {changed = true;}}if (changed) {int nRanges = temp.size();if (nRanges == 0) {return false;}CellRangeAddress[] newRanges = new CellRangeAddress[nRanges];temp.toArray(newRanges);header.setCellRanges(newRanges);}for (CFRuleBase rule : rules) {Ptg[] ptgs;ptgs = rule.getParsedExpression1();if (ptgs != null && shifter.adjustFormula(ptgs, currentExternSheetIx)) {rule.setParsedExpression1(ptgs);}ptgs = rule.getParsedExpression2();if (ptgs != null && shifter.adjustFormula(ptgs, currentExternSheetIx)) {rule.setParsedExpression2(ptgs);}if (rule instanceof CFRule12Record) {CFRule12Record rule12 = (CFRule12Record)rule;ptgs = rule12.getParsedExpressionScale();if (ptgs != null && shifter.adjustFormula(ptgs, currentExternSheetIx)) {rule12.setParsedExpressionScale(ptgs);}}}return true;}", "after": "public bool UpdateFormulasAfterCellShift(FormulaShifter shifter, int currentExternSheetIx){CellRangeAddress[] cellRanges = header.CellRanges;bool changed = false;List temp = new List();for (int i = 0; i < cellRanges.Length; i++){CellRangeAddress craOld = cellRanges[i];CellRangeAddress craNew = ShiftRange(shifter, craOld, currentExternSheetIx);if (craNew == null){changed = true;continue;}temp.Add(craNew);if (craNew != craOld){changed = true;}}if (changed){int nRanges = temp.Count;if (nRanges == 0){return false;}CellRangeAddress[] newRanges = new CellRangeAddress[nRanges];newRanges = temp.ToArray();header.CellRanges = (newRanges);}for (int i = 0; i < rules.Count; i++){CFRuleRecord rule = rules[i];Ptg[] ptgs;ptgs = rule.ParsedExpression1;if (ptgs != null && shifter.AdjustFormula(ptgs, currentExternSheetIx)){rule.ParsedExpression1 = (ptgs);}ptgs = rule.ParsedExpression2;if (ptgs != null && shifter.AdjustFormula(ptgs, currentExternSheetIx)){rule.ParsedExpression2 = (ptgs);}}return true;}" }, { "index": 5439, "before": "public int keyAt(int index) {if (mGarbage) {gc();}return mKeys[index];}", "after": "public virtual int keyAt(int index){if (mGarbage){gc();}return mKeys[index];}" }, { "index": 5440, "before": "public JapaneseKatakanaStemFilterFactory(Map args) {super(args);minimumLength = getInt(args, MINIMUM_LENGTH_PARAM, JapaneseKatakanaStemFilter.DEFAULT_MINIMUM_LENGTH);if (minimumLength < 2) {throw new IllegalArgumentException(\"Illegal \" + MINIMUM_LENGTH_PARAM + \" \" + minimumLength + \" (must be 2 or greater)\");}if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public JapaneseKatakanaStemFilterFactory(IDictionary args): base(args){minimumLength = GetInt32(args, MINIMUM_LENGTH_PARAM, JapaneseKatakanaStemFilter.DEFAULT_MINIMUM_LENGTH);if (minimumLength < 2){throw new ArgumentException(\"Illegal \" + MINIMUM_LENGTH_PARAM + \" \" + minimumLength + \" (must be 2 or greater)\");}if (args.Count > 0){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 5441, "before": "public static void byteArray(StringBuilder buffer, byte[] bytes) {for (int i = 0; i < bytes.length; i++) {buffer.append(\"b[\").append(i).append(\"]=\").append(bytes[i]);if (i < bytes.length - 1) {buffer.append(',');}}}", "after": "public static void ByteArray(StringBuilder buffer, byte[] bytes){for (int i = 0; i < bytes.Length; i++){buffer.Append(\"b[\").Append(i).Append(\"]=\").Append(bytes[i]);if (i < bytes.Length - 1){buffer.Append(',');}}}" }, { "index": 5442, "before": "public int available(){return _in.available();}", "after": "public int Available(){return _in.Available();}" }, { "index": 5443, "before": "public DeleteDatasetGroupResult deleteDatasetGroup(DeleteDatasetGroupRequest request) {request = beforeClientExecution(request);return executeDeleteDatasetGroup(request);}", "after": "public virtual DeleteDatasetGroupResponse DeleteDatasetGroup(DeleteDatasetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDatasetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDatasetGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5444, "before": "public DescribeBuildResult describeBuild(DescribeBuildRequest request) {request = beforeClientExecution(request);return executeDescribeBuild(request);}", "after": "public virtual DescribeBuildResponse DescribeBuild(DescribeBuildRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeBuildRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeBuildResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5445, "before": "public E peekLast() {Link last = voidLink.previous;return (last == voidLink) ? null : last.data;}", "after": "public virtual E peekLast(){java.util.LinkedList.Link last = voidLink.previous;return (last == voidLink) ? default(E) : last.data;}" }, { "index": 5446, "before": "public long get(long index) {assert index >= 0 && index < valueCount;final int block = (int) (index >>> blockShift);final int idx = (int) (index & blockMask);return expected(minValues[block], averages[block], idx) + subReaders[block].get(idx);}", "after": "public override long Get(long index){Debug.Assert(index >= 0 && index < valueCount);int block = (int)((long)((ulong)index >> blockShift));int idx = (int)(index & blockMask);return minValues[block] + (long)(float)(idx * averages[block]) + BlockPackedReaderIterator.ZigZagDecode(subReaders[block].Get(idx));}" }, { "index": 5447, "before": "public DescribeVpnGatewaysResult describeVpnGateways() {return describeVpnGateways(new DescribeVpnGatewaysRequest());}", "after": "public virtual DescribeVpnGatewaysResponse DescribeVpnGateways(){return DescribeVpnGateways(new DescribeVpnGatewaysRequest());}" }, { "index": 5448, "before": "public Iterator iterator() {return backingMap.keySet().iterator();}", "after": "public override java.util.Iterator iterator(){return backingMap.keySet().iterator();}" }, { "index": 5449, "before": "public void parseLine(DocData docData, String line) {int n = 0;int k1 = 0;int k2;while ((k2 = line.indexOf(WriteLineDocTask.SEP, k1)) >= 0) {if (n>=header.length) {throw new RuntimeException(\"input line has invalid format: \"+(n+1)+\" fields instead of \"+header.length+\" :: [\" + line + \"]\");}setDocDataField(docData, n, line.substring(k1,k2));++n;k1 = k2 + 1;}if (n!=header.length-1) {throw new RuntimeException(\"input line has invalid format: \"+(n+1)+\" fields instead of \"+header.length+\" :: [\" + line + \"]\");}setDocDataField(docData, n, line.substring(k1));}", "after": "public override void ParseLine(DocData docData, string line){int n = 0;int k1 = 0;int k2;while ((k2 = line.IndexOf(WriteLineDocTask.SEP, k1)) >= 0){if (n >= m_header.Length){throw new Exception(\"input line has invalid format: \" + (n + 1) + \" fields instead of \" + m_header.Length + \" :: [\" + line + \"]\");}SetDocDataField(docData, n, line.Substring(k1, k2 - k1));++n;k1 = k2 + 1;}if (n != m_header.Length - 1){throw new Exception(\"input line has invalid format: \" + (n + 1) + \" fields instead of \" + m_header.Length + \" :: [\" + line + \"]\");}SetDocDataField(docData, n, line.Substring(k1));}" }, { "index": 5450, "before": "public long getTotalLLLookaheadOps() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.length; i++) {k += decisions[i].LL_TotalLook;}return k;}", "after": "public long getTotalLLLookaheadOps(){DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.Length; i++){k += decisions[i].LL_TotalLook;}return k;}" }, { "index": 5451, "before": "public static boolean matches(String regularExpression, CharSequence input) {return new Matcher(new Pattern(regularExpression, 0), input).matches();}", "after": "public static bool matches(string regularExpression, java.lang.CharSequence input){return new java.util.regex.Matcher(new java.util.regex.Pattern(regularExpression,0), input).matches();}" }, { "index": 5452, "before": "public HSSFChildAnchor(int dx1, int dy1, int dx2, int dy2) {super(Math.min(dx1, dx2), Math.min(dy1, dy2), Math.max(dx1, dx2), Math.max(dy1, dy2));if (dx1 > dx2){_isHorizontallyFlipped = true;}if (dy1 > dy2){_isVerticallyFlipped = true;}}", "after": "public HSSFChildAnchor(int dx1, int dy1, int dx2, int dy2): base(Math.Min(dx1, dx2), Math.Min(dy1, dy2), Math.Max(dx1, dx2), Math.Max(dy1, dy2)){if (dx1 > dx2){_isHorizontallyFlipped = true;}if (dy1 > dy2){_isVerticallyFlipped = true;}}" }, { "index": 5453, "before": "public final CharBuffer put(String str) {return put(str, 0, str.length());}", "after": "public java.nio.CharBuffer put(string str){return put(str, 0, str.Length);}" }, { "index": 5454, "before": "public StartExportTaskResult startExportTask(StartExportTaskRequest request) {request = beforeClientExecution(request);return executeStartExportTask(request);}", "after": "public virtual StartExportTaskResponse StartExportTask(StartExportTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartExportTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = StartExportTaskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5455, "before": "public UpdateUserHierarchyResult updateUserHierarchy(UpdateUserHierarchyRequest request) {request = beforeClientExecution(request);return executeUpdateUserHierarchy(request);}", "after": "public virtual UpdateUserHierarchyResponse UpdateUserHierarchy(UpdateUserHierarchyRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateUserHierarchyRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateUserHierarchyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5456, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(\"[SERIESTEXT]\\n\");sb.append(\" .id =\").append(HexDump.shortToHex(getId())).append('\\n');sb.append(\" .textLen=\").append(field_4_text.length()).append('\\n');sb.append(\" .is16bit=\").append(is16bit).append('\\n');sb.append(\" .text =\").append(\" (\").append(getText()).append(\" )\").append('\\n');sb.append(\"[/SERIESTEXT]\\n\");return sb.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[SERIESTEXT]\\n\");buffer.Append(\" .id = \").Append(\"0x\").Append(HexDump.ToHex(Id)).Append(\" (\").Append(Id).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\" .textLength = \").Append(field_4_text.Length);buffer.Append(Environment.NewLine);buffer.Append(\" .is16bit = \").Append(is16bit);buffer.Append(Environment.NewLine);buffer.Append(\" .text = \").Append(\" (\").Append(Text).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\"[/SERIESTEXT]\\n\");return buffer.ToString();}" }, { "index": 5457, "before": "public int put(Object key, int value) {Object _key = key;int _value = value;int index = findIndex(_key, keys);if (keys[index] != _key) {if (++size > threshold) {rehash();index = findIndex(_key, keys);}keys[index] = _key;values[index] = -1;}int result = values[index];values[index] = _value;return result;}", "after": "public int put(object key, int value){object _key = key;int _value = value;int index = findIndex(_key, keys);if (keys[index] != _key){if (++size > threshold){rehash();index = findIndex(_key, keys);}keys[index] = _key;values[index] = -1;}int result = values[index];values[index] = _value;return result;}" }, { "index": 5458, "before": "public TagCommand setMessage(String message) {checkCallable();this.message = message;return this;}", "after": "public virtual NGit.Api.TagCommand SetMessage(string message){CheckCallable();this.message = message;return this;}" }, { "index": 5459, "before": "public DeleteIndexFieldResult deleteIndexField(DeleteIndexFieldRequest request) {request = beforeClientExecution(request);return executeDeleteIndexField(request);}", "after": "public virtual DeleteIndexFieldResponse DeleteIndexField(DeleteIndexFieldRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIndexFieldRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIndexFieldResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5460, "before": "public AbbreviatedObjectId getAbbreviatedObjectId() {return missing;}", "after": "public virtual AbbreviatedObjectId GetAbbreviatedObjectId(){return missing;}" }, { "index": 5461, "before": "public ParserRuleContext getInvokingContext(int ruleIndex) {ParserRuleContext p = _ctx;while ( p!=null ) {if ( p.getRuleIndex() == ruleIndex ) return p;p = (ParserRuleContext)p.parent;}return null;}", "after": "public virtual ParserRuleContext GetInvokingContext(int ruleIndex){ParserRuleContext p = _ctx;while (p != null){if (p.RuleIndex == ruleIndex){return p;}p = (ParserRuleContext)p.Parent;}return null;}" }, { "index": 5462, "before": "public boolean containsCell(int rowIndex, int columnIndex) {if (rowIndex > _lastDefinedRow) return true;for (int i=_rectangleGroups.size()-1; i>=0; i--) {BlankCellRectangleGroup bcrg = _rectangleGroups.get(i);if (bcrg.containsCell(rowIndex, columnIndex)) {return true;}}if(_currentRectangleGroup != null && _currentRectangleGroup.containsCell(rowIndex, columnIndex)) {return true;}if (_currentRowIndex != -1 && _currentRowIndex == rowIndex) {if (_firstColumnIndex <= columnIndex && columnIndex <= _lastColumnIndex) {return true;}}return false;}", "after": "public bool ContainsCell(int rowIndex, int columnIndex){for (int i = _rectangleGroups.Count - 1; i >= 0; i--){BlankCellRectangleGroup bcrg = (BlankCellRectangleGroup)_rectangleGroups[i];if (bcrg.ContainsCell(rowIndex, columnIndex)){return true;}}if (_currentRectangleGroup != null && _currentRectangleGroup.ContainsCell(rowIndex, columnIndex)){return true;}if (_currentRowIndex != -1 && _currentRowIndex == rowIndex){if (_firstColumnIndex <= columnIndex && columnIndex <= _lastColumnIndex){return true;}}return false;}" }, { "index": 5463, "before": "public DisassociateS3ResourcesResult disassociateS3Resources(DisassociateS3ResourcesRequest request) {request = beforeClientExecution(request);return executeDisassociateS3Resources(request);}", "after": "public virtual DisassociateS3ResourcesResponse DisassociateS3Resources(DisassociateS3ResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateS3ResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateS3ResourcesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5464, "before": "public FontRecord createNewFont() {FontRecord rec = createFont();records.add(records.getFontpos()+1, rec);records.setFontpos( records.getFontpos() + 1 );numfonts++;return rec;}", "after": "public FontRecord CreateNewFont(){FontRecord rec = (FontRecord)CreateFont();records.Add(records.Fontpos + 1, rec);records.Fontpos=(records.Fontpos + 1);numfonts++;return rec;}" }, { "index": 5465, "before": "public boolean equals( Object o ) {return o instanceof SpanishStemmer;}", "after": "public override bool Equals(object o){return o is SpanishStemmer;}" }, { "index": 5466, "before": "public final boolean matches(char c) {return Character.isLowerCase(c);}", "after": "public bool Matches(char c){return System.Char.IsLower(c);}" }, { "index": 5467, "before": "public ByteOrder order() {return byteBuffer.order();}", "after": "public override java.nio.ByteOrder order(){return byteBuffer.order();}" }, { "index": 5468, "before": "public DeleteVolumeRequest(String volumeId) {setVolumeId(volumeId);}", "after": "public DeleteVolumeRequest(string volumeId){_volumeId = volumeId;}" }, { "index": 5469, "before": "public LinkedDataRecord getDataSecondaryCategoryLabels() {return dataSecondaryCategoryLabels;}", "after": "public BRAIRecord GetDataSecondaryCategoryLabels(){return dataSecondaryCategoryLabels;}" }, { "index": 5470, "before": "public int depth() {int n = 0;RuleContext p = this;while ( p!=null ) {p = p.parent;n++;}return n;}", "after": "public virtual int Depth(){int n = 0;Antlr4.Runtime.RuleContext p = this;while (p != null){p = p._parent;n++;}return n;}" }, { "index": 5471, "before": "public PersonIdent getTagger() {return tagger;}", "after": "public virtual PersonIdent GetTagger(){return tagger;}" }, { "index": 5472, "before": "public ObjectId insert(int objectType, long length, InputStream in)throws IOException {throw new UnsupportedOperationException();}", "after": "public override ObjectId Insert(int objectType, long length, InputStream @in){throw new NotSupportedException();}" }, { "index": 5473, "before": "public Automaton convert(Automaton utf32) {if (utf32.getNumStates() == 0) {return utf32;}int[] map = new int[utf32.getNumStates()];Arrays.fill(map, -1);List pending = new ArrayList<>();int utf32State = 0;pending.add(utf32State);utf8 = new Automaton.Builder();int utf8State = utf8.createState();utf8.setAccept(utf8State, utf32.isAccept(utf32State));map[utf32State] = utf8State;Transition scratch = new Transition();while (pending.size() != 0) {utf32State = pending.remove(pending.size()-1);utf8State = map[utf32State];assert utf8State != -1;int numTransitions = utf32.getNumTransitions(utf32State);utf32.initTransition(utf32State, scratch);for(int i=0;i pending = new List();State utf32State = utf32.GetInitialState();pending.Add(utf32State);Automaton utf8 = new Automaton();utf8.IsDeterministic = false;State utf8State = utf8.GetInitialState();utf8States = new State[5];utf8StateCount = 0;utf8State.number = utf8StateCount;utf8States[utf8StateCount] = utf8State;utf8StateCount++;utf8State.Accept = utf32State.Accept;map[utf32State.number] = utf8State;while (pending.Count != 0){utf32State = pending[pending.Count - 1];pending.RemoveAt(pending.Count - 1);utf8State = map[utf32State.number];for (int i = 0; i < utf32State.numTransitions; i++){Transition t = utf32State.TransitionsArray[i];State destUTF32 = t.to;State destUTF8 = map[destUTF32.number];if (destUTF8 == null){destUTF8 = NewUTF8State();destUTF8.accept = destUTF32.accept;map[destUTF32.number] = destUTF8;pending.Add(destUTF32);}ConvertOneEdge(utf8State, destUTF8, t.min, t.max);}}utf8.SetNumberedStates(utf8States, utf8StateCount);return utf8;}" }, { "index": 5474, "before": "public static String[] listServices() throws RemoteException {return null;}", "after": "public static string[] listServices(){throw new System.NotImplementedException();}" }, { "index": 5475, "before": "public void startWorkers(int count) {workers.addAndGet(count);}", "after": "public virtual void StartWorkers(int count){workers.AddAndGet(count);}" }, { "index": 5476, "before": "public FacetEntry(BytesRef value, int count) {this.value = value;this.count = count;}", "after": "public FacetEntry(BytesRef value, int count){this.value = value;this.count = count;}" }, { "index": 5477, "before": "public String toString() {String inv = invert ? \"!\" : \"\";return getClass().getSimpleName()+\"[\"+inv+nodeName+\"]\";}", "after": "public override string ToString(){string inv = invert ? \"!\" : string.Empty;return GetType().Name + \"[\" + inv + nodeName + \"]\";}" }, { "index": 5478, "before": "public RemoveNoteCommand setNotesRef(String notesRef) {checkCallable();this.notesRef = notesRef;return this;}", "after": "public virtual NGit.Api.RemoveNoteCommand SetNotesRef(string notesRef){CheckCallable();this.notesRef = notesRef;return this;}" }, { "index": 5479, "before": "final public SrndQuery FieldsQuery() throws ParseException {SrndQuery q;ArrayList fieldNames;fieldNames = OptionalFields();q = OrQuery();{if (true) return (fieldNames == null) ? q : getFieldsQuery(q, fieldNames);}throw new Error(\"Missing return statement in function\");}", "after": "public SrndQuery FieldsQuery(){SrndQuery q;IList fieldNames;fieldNames = OptionalFields();q = OrQuery();{ if (true) return (fieldNames == null) ? q : GetFieldsQuery(q, fieldNames); }throw new Exception(\"Missing return statement in function\");}" }, { "index": 5480, "before": "public DescribeParametersResult describeParameters(DescribeParametersRequest request) {request = beforeClientExecution(request);return executeDescribeParameters(request);}", "after": "public virtual DescribeParametersResponse DescribeParameters(DescribeParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeParametersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5481, "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 currentTokenVal,int[][] expectedTokenSequencesVal, string[] tokenImageVal): base(new Message(QueryParserMessages.INVALID_SYNTAX, Initialize(currentTokenVal, expectedTokenSequencesVal, tokenImageVal))){this.CurrentToken = currentTokenVal;this.ExpectedTokenSequences = expectedTokenSequencesVal;this.TokenImage = tokenImageVal;}" }, { "index": 5482, "before": "public ListHumanTaskUisResult listHumanTaskUis(ListHumanTaskUisRequest request) {request = beforeClientExecution(request);return executeListHumanTaskUis(request);}", "after": "public virtual ListHumanTaskUisResponse ListHumanTaskUis(ListHumanTaskUisRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListHumanTaskUisRequestMarshaller.Instance;options.ResponseUnmarshaller = ListHumanTaskUisResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5483, "before": "public static ShortBuffer wrap(short[] array) {return wrap(array, 0, array.length);}", "after": "public static java.nio.ShortBuffer wrap(short[] array_1){return wrap(array_1, 0, array_1.Length);}" }, { "index": 5484, "before": "public Parser(boolean dedup, Analyzer analyzer) {super(dedup);this.analyzer = analyzer;}", "after": "public Parser(bool dedup, Analyzer analyzer): base(dedup){this.analyzer = analyzer;}" }, { "index": 5485, "before": "public ObjectProtectRecord(RecordInputStream in) {field_1_protect = in.readShort();}", "after": "public ObjectProtectRecord(RecordInputStream in1){field_1_protect = in1.ReadShort();}" }, { "index": 5486, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeInt(_reserved0Int);out.writeShort(_reserved1Short);out.writeByte(_reserved2Byte);}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteInt(_reserved0Int);out1.WriteShort(_reserved1Short);out1.WriteByte(_reserved2Byte);}" }, { "index": 5487, "before": "public int size() {if (mGarbage) {gc();}return mSize;}", "after": "public virtual int size(){if (mGarbage){gc();}return mSize;}" }, { "index": 5488, "before": "public BigDecimal getFractionalPart() {return new BigDecimal(_fractionalPart).divide(BD_2_POW_24);}", "after": "public decimal GetFractionalPart(){return new decimal(_fractionalPart)/(BD_2_POW_24);}" }, { "index": 5489, "before": "public AttachLoadBalancerTlsCertificateResult attachLoadBalancerTlsCertificate(AttachLoadBalancerTlsCertificateRequest request) {request = beforeClientExecution(request);return executeAttachLoadBalancerTlsCertificate(request);}", "after": "public virtual AttachLoadBalancerTlsCertificateResponse AttachLoadBalancerTlsCertificate(AttachLoadBalancerTlsCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachLoadBalancerTlsCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachLoadBalancerTlsCertificateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5490, "before": "public final int step(int state, int c) {assert c < alphabetSize;if (c >= classmap.length) {return transitions[state * points.length + getCharClass(c)];} else {return transitions[state * points.length + classmap[c]];}}", "after": "public int Step(int state, int c){if (_classmap == null){return m_transitions[state * _points.Length + GetCharClass(c)];}else{return m_transitions[state * _points.Length + _classmap[c]];}}" }, { "index": 5491, "before": "public UpdateVoiceChannelResult updateVoiceChannel(UpdateVoiceChannelRequest request) {request = beforeClientExecution(request);return executeUpdateVoiceChannel(request);}", "after": "public virtual UpdateVoiceChannelResponse UpdateVoiceChannel(UpdateVoiceChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateVoiceChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateVoiceChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5492, "before": "public void onPreReceive(ReceivePack rp,Collection commands) {for (int i = 0; i < count; i++)hooks[i].onPreReceive(rp, commands);}", "after": "public override void OnPreReceive(ReceivePack rp, ICollection commands){for (int i = 0; i < count; i++){hooks[i].OnPreReceive(rp, commands);}}" }, { "index": 5493, "before": "public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {if (args.length != 1) {return ErrorEval.VALUE_INVALID;}return evaluate(ec.getRowIndex(), ec.getColumnIndex(), args[0]);}", "after": "public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){if (args.Length != 1){return ErrorEval.VALUE_INVALID;}return Evaluate(ec.RowIndex, ec.ColumnIndex, args[0]);}" }, { "index": 5494, "before": "public DescribeSpotDatafeedSubscriptionResult describeSpotDatafeedSubscription() {return describeSpotDatafeedSubscription(new DescribeSpotDatafeedSubscriptionRequest());}", "after": "public virtual DescribeSpotDatafeedSubscriptionResponse DescribeSpotDatafeedSubscription(){return DescribeSpotDatafeedSubscription(new DescribeSpotDatafeedSubscriptionRequest());}" }, { "index": 5495, "before": "public int getTimeZoneOffset() {return tzOffset;}", "after": "public virtual int GetTimeZoneOffset(){return tzOffset;}" }, { "index": 5496, "before": "public void close() {allocationSite = null;}", "after": "public void close(){allocationSite = null;}" }, { "index": 5497, "before": "public AssociateClientVpnTargetNetworkResult associateClientVpnTargetNetwork(AssociateClientVpnTargetNetworkRequest request) {request = beforeClientExecution(request);return executeAssociateClientVpnTargetNetwork(request);}", "after": "public virtual AssociateClientVpnTargetNetworkResponse AssociateClientVpnTargetNetwork(AssociateClientVpnTargetNetworkRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateClientVpnTargetNetworkRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateClientVpnTargetNetworkResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5498, "before": "public ListEnvironmentsResult listEnvironments(ListEnvironmentsRequest request) {request = beforeClientExecution(request);return executeListEnvironments(request);}", "after": "public virtual ListEnvironmentsResponse ListEnvironments(ListEnvironmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEnvironmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEnvironmentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5499, "before": "public String toFormulaString() {if(semiVolatile.isSet(_options)) {return \"ATTR(semiVolatile)\";}if(optiIf.isSet(_options)) {return \"IF\";}if( optiChoose.isSet(_options)) {return \"CHOOSE\";}if(optiSkip.isSet(_options)) {return \"\";}if(optiSum.isSet(_options)) {return \"SUM\";}if(baxcel.isSet(_options)) {return \"ATTR(baxcel)\";}if(space.isSet(_options)) {return \"\";}return \"UNKNOWN ATTRIBUTE\";}", "after": "public override String ToFormulaString(){if (semiVolatile.IsSet(field_1_options)){return \"ATTR(semiVolatile)\";}if (optiIf.IsSet(field_1_options)){return \"IF\";}if (optiChoose.IsSet(field_1_options)){return \"CHOOSE\";}if (optiSkip.IsSet(field_1_options)){return \"\";}if (optiSum.IsSet(field_1_options)){return \"SUM\";}if (baxcel.IsSet(field_1_options)){return \"ATTR(baxcel)\";}if (space.IsSet(field_1_options)){return \"\";}return \"UNKNOWN ATTRIBUTE\";}" }, { "index": 5500, "before": "public int capacity() {return value.length;}", "after": "public virtual int capacity(){return value.Length;}" }, { "index": 5501, "before": "public synchronized void setMax(int max) {if (max < 0) {max = 0;}if (max != mMax) {mMax = max;postInvalidate();if (mProgress > max) {mProgress = max;}refreshProgress(R.id.progress, mProgress, false);}}", "after": "public virtual void setMax(int max){lock (this){if (max < 0){max = 0;}if (max != mMax){mMax = max;postInvalidate();if (mProgress > max){mProgress = max;}refreshProgress(android.@internal.R.id.progress, mProgress, false);}}}" }, { "index": 5502, "before": "public GetVaultNotificationsRequest(String accountId, String vaultName) {setAccountId(accountId);setVaultName(vaultName);}", "after": "public GetVaultNotificationsRequest(string accountId, string vaultName){_accountId = accountId;_vaultName = vaultName;}" }, { "index": 5503, "before": "public FloatBuffer asReadOnlyBuffer() {return ReadOnlyFloatArrayBuffer.copy(this, mark);}", "after": "public override java.nio.FloatBuffer asReadOnlyBuffer(){return java.nio.ReadOnlyFloatArrayBuffer.copy(this, _mark);}" }, { "index": 5504, "before": "public MissingResourceException(String detailMessage, String className,String resourceName) {super(detailMessage);this.className = className;key = resourceName;}", "after": "public MissingResourceException(string detailMessage, string className, string resourceName) : base(detailMessage){this.className = className;key = resourceName;}" }, { "index": 5505, "before": "public ValueEval getRelativeValue(int relativeRowIndex, int relativeColumnIndex) {return getRelativeValue(getFirstSheetIndex(), relativeRowIndex, relativeColumnIndex);}", "after": "public override ValueEval GetRelativeValue(int relativeRowIndex, int relativeColumnIndex){return GetRelativeValue(FirstSheetIndex, relativeRowIndex, relativeColumnIndex);}" }, { "index": 5506, "before": "public Matcher matcher(CharSequence input) {return new Matcher(this, input);}", "after": "public java.util.regex.Matcher matcher(java.lang.CharSequence input){return new java.util.regex.Matcher(this, input);}" }, { "index": 5507, "before": "public ListRoomMembershipsResult listRoomMemberships(ListRoomMembershipsRequest request) {request = beforeClientExecution(request);return executeListRoomMemberships(request);}", "after": "public virtual ListRoomMembershipsResponse ListRoomMemberships(ListRoomMembershipsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRoomMembershipsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRoomMembershipsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5508, "before": "public StringBuilder insert(int offset, String str) {insert0(offset, str);return this;}", "after": "public java.lang.StringBuilder insert(int offset, string str){insert0(offset, str);return this;}" }, { "index": 5509, "before": "public void registerActivityType(RegisterActivityTypeRequest request) {request = beforeClientExecution(request);executeRegisterActivityType(request);}", "after": "public virtual RegisterActivityTypeResponse RegisterActivityType(RegisterActivityTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterActivityTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterActivityTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5510, "before": "public DescribeSuggestersResult describeSuggesters(DescribeSuggestersRequest request) {request = beforeClientExecution(request);return executeDescribeSuggesters(request);}", "after": "public virtual DescribeSuggestersResponse DescribeSuggesters(DescribeSuggestersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSuggestersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSuggestersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5511, "before": "public boolean acceptRow(int rowIndex, int firstColumnIndex, int lastColumnIndex) {if (firstColumnIndex != _firstColumnIndex) {return false;}if (lastColumnIndex != _lastColumnIndex) {return false;}if (rowIndex != _lastRowIndex+1) {return false;}_lastRowIndex = rowIndex;return true;}", "after": "public bool AcceptRow(int rowIndex, int firstColumnIndex, int lastColumnIndex){if (firstColumnIndex != _firstColumnIndex){return false;}if (lastColumnIndex != _lastColumnIndex){return false;}if (rowIndex != _lastRowIndex + 1){return false;}_lastRowIndex = rowIndex;return true;}" }, { "index": 5512, "before": "public boolean equals( Object o ) {return o instanceof FinnishStemmer;}", "after": "public override bool Equals(object o){return o is FinnishStemmer;}" }, { "index": 5513, "before": "public StopDeploymentResult stopDeployment(StopDeploymentRequest request) {request = beforeClientExecution(request);return executeStopDeployment(request);}", "after": "public virtual StopDeploymentResponse StopDeployment(StopDeploymentRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopDeploymentRequestMarshaller.Instance;options.ResponseUnmarshaller = StopDeploymentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5514, "before": "public ListGitHubAccountTokenNamesResult listGitHubAccountTokenNames(ListGitHubAccountTokenNamesRequest request) {request = beforeClientExecution(request);return executeListGitHubAccountTokenNames(request);}", "after": "public virtual ListGitHubAccountTokenNamesResponse ListGitHubAccountTokenNames(ListGitHubAccountTokenNamesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGitHubAccountTokenNamesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGitHubAccountTokenNamesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5515, "before": "public CreateBackupResult createBackup(CreateBackupRequest request) {request = beforeClientExecution(request);return executeCreateBackup(request);}", "after": "public virtual CreateBackupResponse CreateBackup(CreateBackupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateBackupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateBackupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5516, "before": "public ModifyTransitGatewayVpcAttachmentResult modifyTransitGatewayVpcAttachment(ModifyTransitGatewayVpcAttachmentRequest request) {request = beforeClientExecution(request);return executeModifyTransitGatewayVpcAttachment(request);}", "after": "public virtual ModifyTransitGatewayVpcAttachmentResponse ModifyTransitGatewayVpcAttachment(ModifyTransitGatewayVpcAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyTransitGatewayVpcAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyTransitGatewayVpcAttachmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5517, "before": "public RejectSkillResult rejectSkill(RejectSkillRequest request) {request = beforeClientExecution(request);return executeRejectSkill(request);}", "after": "public virtual RejectSkillResponse RejectSkill(RejectSkillRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectSkillRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectSkillResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5518, "before": "public String getHexString() {return getGnumericPart(_red) + \":\" + getGnumericPart(_green) + \":\" + getGnumericPart(_blue);}", "after": "public override String GetHexString(){StringBuilder sb = new StringBuilder();sb.Append(GetGnumericPart(red));sb.Append(':');sb.Append(GetGnumericPart(green));sb.Append(':');sb.Append(GetGnumericPart(blue));return sb.ToString();}" }, { "index": 5519, "before": "public String toString() {return \"\";}", "after": "public override string ToString(){return \"\";}" }, { "index": 5520, "before": "public GetOSSImageAccessRequest() {super(\"industry-brain\", \"2018-07-12\", \"GetOSSImageAccess\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetOSSImageAccessRequest(): base(\"industry-brain\", \"2018-07-12\", \"GetOSSImageAccess\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 5521, "before": "public DeleteFleetsResult deleteFleets(DeleteFleetsRequest request) {request = beforeClientExecution(request);return executeDeleteFleets(request);}", "after": "public virtual DeleteFleetsResponse DeleteFleets(DeleteFleetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFleetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFleetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5522, "before": "public void set(E object) {if (expectedModCount == modCount) {try {AbstractList.this.set(lastPosition, object);} catch (IndexOutOfBoundsException e) {throw new IllegalStateException();}} else {throw new ConcurrentModificationException();}}", "after": "public void set(E @object){if (this.expectedModCount == this._enclosing.modCount){try{this._enclosing.set(this.lastPosition, @object);}catch (System.IndexOutOfRangeException){throw new System.InvalidOperationException();}}else{throw new java.util.ConcurrentModificationException();}}" }, { "index": 5523, "before": "public InvalidationBatch(Paths paths, String callerReference) {setPaths(paths);setCallerReference(callerReference);}", "after": "public InvalidationBatch(Paths paths, string callerReference){_paths = paths;_callerReference = callerReference;}" }, { "index": 5524, "before": "public int getPrecision() {return p;}", "after": "public virtual int getPrecision(){return p;}" }, { "index": 5525, "before": "public boolean addSubRecord(SubRecord o) {return subrecords.add(o);}", "after": "public void AddSubRecord(SubRecord o){subrecords.Add(o);}" }, { "index": 5526, "before": "public int serialize(int offset, byte[] data, EscherSerializationListener listener) {listener.beforeRecordSerialize( offset, getRecordId(), this );int pos = offset;LittleEndian.putShort( data, pos, getOptions() ); pos += 2;LittleEndian.putShort( data, pos, getRecordId() ); pos += 2;LittleEndian.putInt( data, pos, getRecordSize()-8 ); pos += 4;LittleEndian.putInt( data, pos, field_1_dx1 ); pos += 4;LittleEndian.putInt( data, pos, field_2_dy1 ); pos += 4;LittleEndian.putInt( data, pos, field_3_dx2 ); pos += 4;LittleEndian.putInt( data, pos, field_4_dy2 ); pos += 4;listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );return pos - offset;}", "after": "public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);int pos = offset;LittleEndian.PutShort(data, pos, Options); pos += 2;LittleEndian.PutShort(data, pos, RecordId); pos += 2;LittleEndian.PutInt(data, pos, RecordSize - 8); pos += 4;LittleEndian.PutInt(data, pos, field_1_dx1); pos += 4;LittleEndian.PutInt(data, pos, field_2_dy1); pos += 4;LittleEndian.PutInt(data, pos, field_3_dx2); pos += 4;LittleEndian.PutInt(data, pos, field_4_dy2); pos += 4;listener.AfterRecordSerialize(pos, RecordId, pos - offset, this);return pos - offset;}" }, { "index": 5527, "before": "public static final ObjectId fromRaw(int[] is) {return fromRaw(is, 0);}", "after": "public static NGit.ObjectId FromRaw(byte[] bs){return FromRaw(bs, 0);}" }, { "index": 5528, "before": "public DisassociateIpGroupsResult disassociateIpGroups(DisassociateIpGroupsRequest request) {request = beforeClientExecution(request);return executeDisassociateIpGroups(request);}", "after": "public virtual DisassociateIpGroupsResponse DisassociateIpGroups(DisassociateIpGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateIpGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateIpGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5529, "before": "public static void mkdirs(File d, boolean skipExisting)throws IOException {if (!d.mkdirs()) {if (skipExisting && d.isDirectory())return;throw new IOException(MessageFormat.format(JGitText.get().mkDirsFailed, d.getAbsolutePath()));}}", "after": "public static void Mkdirs(FilePath d, bool skipExisting){if (!d.Mkdirs()){if (skipExisting && d.IsDirectory()){return;}throw new IOException(MessageFormat.Format(JGitText.Get().mkDirsFailed, d.GetAbsolutePath()));}}" }, { "index": 5530, "before": "public GetImageManifestRequest() {super(\"cr\", \"2016-06-07\", \"GetImageManifest\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/manifest\");setMethod(MethodType.GET);}", "after": "public GetImageManifestRequest(): base(\"cr\", \"2016-06-07\", \"GetImageManifest\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/manifest\";Method = MethodType.GET;}" }, { "index": 5531, "before": "public ListIdentitiesResult listIdentities(ListIdentitiesRequest request) {request = beforeClientExecution(request);return executeListIdentities(request);}", "after": "public virtual ListIdentitiesResponse ListIdentities(ListIdentitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIdentitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIdentitiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5532, "before": "public final String toString() {return getClass().getName() + \" [\" +_sfr.getRange() +\"]\";}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(\" [\");sb.Append(_sfr.Range.ToString());sb.Append(\"]\");return sb.ToString();}" }, { "index": 5533, "before": "public byte[] toByteArray() {byte[] result = new byte[LittleEndianConsts.INT_SIZE*2+_value.length];LittleEndianByteArrayOutputStream bos = new LittleEndianByteArrayOutputStream(result,0);try {bos.writeInt(LittleEndianConsts.INT_SIZE + _value.length);bos.writeInt(_format);bos.write(_value);return result;} finally {IOUtils.closeQuietly(bos);}}", "after": "public byte[] ToByteArray(){byte[] result = new byte[Size];LittleEndian.PutInt(result, 0 * LittleEndian.INT_SIZE,LittleEndian.INT_SIZE + _value.Length);LittleEndian.PutInt(result, 1 * LittleEndian.INT_SIZE, _format);System.Array.Copy(_value, 0, result, LittleEndian.INT_SIZE+ LittleEndian.INT_SIZE, _value.Length);return result;}" }, { "index": 5534, "before": "public void update(byte[] b, int off, int len) {if (len >= buffer.length) {flush();in.update(b, off, len);} else {if (upto + len > buffer.length) {flush();}System.arraycopy(b, off, buffer, upto, len);upto += len;}}", "after": "public virtual void Update(byte[] b, int off, int len){if (len >= buffer.Length){Flush();@in.Update(b, off, len);}else{if (upto + len > buffer.Length){Flush();}System.Buffer.BlockCopy(b, off, buffer, upto, len);upto += len;}}" }, { "index": 5535, "before": "public HSSFPicture createPicture(ClientAnchor anchor, int pictureIndex) {return createPicture((HSSFClientAnchor) anchor, pictureIndex);}", "after": "public IPicture CreatePicture(HSSFClientAnchor anchor, int pictureIndex){HSSFPicture shape = new HSSFPicture(null, (HSSFClientAnchor)anchor);shape.PictureIndex = pictureIndex;AddShape(shape);OnCreate(shape);return shape;}" }, { "index": 5536, "before": "public String getAccessKeySecret() {return legacyCredential.getAccessSecret();}", "after": "public string GetAccessKeySecret(){return legacyCredential.AccessSecret;}" }, { "index": 5537, "before": "public int compareTo(ByteBuffer otherBuffer) {int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining(): otherBuffer.remaining();int thisPos = position;int otherPos = otherBuffer.position;byte thisByte, otherByte;while (compareRemaining > 0) {thisByte = get(thisPos);otherByte = otherBuffer.get(otherPos);if (thisByte != otherByte) {return thisByte < otherByte ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}", "after": "public virtual int compareTo(java.nio.ByteBuffer otherBuffer){int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining();int thisPos = _position;int otherPos = otherBuffer._position;byte thisByte;byte otherByte;while (compareRemaining > 0){thisByte = get(thisPos);otherByte = otherBuffer.get(otherPos);if (thisByte != otherByte){return ((sbyte)thisByte) < otherByte ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}" }, { "index": 5538, "before": "public CreateResolverEndpointResult createResolverEndpoint(CreateResolverEndpointRequest request) {request = beforeClientExecution(request);return executeCreateResolverEndpoint(request);}", "after": "public virtual CreateResolverEndpointResponse CreateResolverEndpoint(CreateResolverEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateResolverEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateResolverEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5539, "before": "public HunspellStemFilterFactory(Map args) {super(args);dictionaryFiles = require(args, PARAM_DICTIONARY);affixFile = get(args, PARAM_AFFIX);ignoreCase = getBoolean(args, PARAM_IGNORE_CASE, false);longestOnly = getBoolean(args, PARAM_LONGEST_ONLY, false);getBoolean(args, \"strictAffixParsing\", true);getInt(args, \"recursionCap\", 0);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public HunspellStemFilterFactory(IDictionary args): base(args){dictionaryFiles = Require(args, PARAM_DICTIONARY);affixFile = Get(args, PARAM_AFFIX);ignoreCase = GetBoolean(args, PARAM_IGNORE_CASE, false);longestOnly = GetBoolean(args, PARAM_LONGEST_ONLY, false);GetBoolean(args, \"strictAffixParsing\", true);GetInt32(args, \"recursionCap\", 0);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 5540, "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 >>> 4) & 15;values[valuesOffset++] = block & 15;}}", "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 >> 4)) & 15;values[valuesOffset++] = block & 15;}}" }, { "index": 5541, "before": "public CancelSpotInstanceRequestsResult cancelSpotInstanceRequests(CancelSpotInstanceRequestsRequest request) {request = beforeClientExecution(request);return executeCancelSpotInstanceRequests(request);}", "after": "public virtual CancelSpotInstanceRequestsResponse CancelSpotInstanceRequests(CancelSpotInstanceRequestsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelSpotInstanceRequestsRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelSpotInstanceRequestsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5542, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_print_headers);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_print_headers);}" }, { "index": 5543, "before": "public void copyTo(char[] tmp, StringBuilder w) {toHexCharArray(tmp);w.append(tmp, 0, Constants.OBJECT_ID_STRING_LENGTH);}", "after": "public virtual void CopyTo(char[] tmp, TextWriter w){ToHexCharArray(tmp);w.Write(tmp, 0, Constants.OBJECT_ID_STRING_LENGTH);}" }, { "index": 5544, "before": "public DeleteVaultAccessPolicyResult deleteVaultAccessPolicy(DeleteVaultAccessPolicyRequest request) {request = beforeClientExecution(request);return executeDeleteVaultAccessPolicy(request);}", "after": "public virtual DeleteVaultAccessPolicyResponse DeleteVaultAccessPolicy(DeleteVaultAccessPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVaultAccessPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVaultAccessPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5545, "before": "public SpanOrBuilder(SpanQueryBuilder factory) {this.factory = factory;}", "after": "public SpanOrBuilder(ISpanQueryBuilder factory){this.factory = factory;}" }, { "index": 5546, "before": "public DescribeConnectionsOnInterconnectResult describeConnectionsOnInterconnect(DescribeConnectionsOnInterconnectRequest request) {request = beforeClientExecution(request);return executeDescribeConnectionsOnInterconnect(request);}", "after": "public virtual DescribeConnectionsOnInterconnectResponse DescribeConnectionsOnInterconnect(DescribeConnectionsOnInterconnectRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeConnectionsOnInterconnectRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeConnectionsOnInterconnectResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5547, "before": "public MultiBoolFunction(List sources) {this.sources = sources;}", "after": "public MultiBoolFunction(IList sources){this.m_sources = sources;}" }, { "index": 5548, "before": "public TokenStream create(TokenStream input) {return new ICUTransformFilter(input, transliterator);}", "after": "public override TokenStream Create(TokenStream input){return new ICUTransformFilter(input, transliterator);}" }, { "index": 5549, "before": "public void extendA() {endA++;}", "after": "public virtual void ExtendA(){endA++;}" }, { "index": 5550, "before": "public DeleteReceiptRuleSetResult deleteReceiptRuleSet(DeleteReceiptRuleSetRequest request) {request = beforeClientExecution(request);return executeDeleteReceiptRuleSet(request);}", "after": "public virtual DeleteReceiptRuleSetResponse DeleteReceiptRuleSet(DeleteReceiptRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteReceiptRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteReceiptRuleSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5551, "before": "public PutRetentionPolicyRequest(String logGroupName, Integer retentionInDays) {setLogGroupName(logGroupName);setRetentionInDays(retentionInDays);}", "after": "public PutRetentionPolicyRequest(string logGroupName, int retentionInDays){_logGroupName = logGroupName;_retentionInDays = retentionInDays;}" }, { "index": 5552, "before": "public void insertRow(RowRecord row) {_rowRecords.put(Integer.valueOf(row.getRowNumber()), row);_rowRecordValues = null;if ((row.getRowNumber() < _firstrow) || (_firstrow == -1)) {_firstrow = row.getRowNumber();}if ((row.getRowNumber() > _lastrow) || (_lastrow == -1)) {_lastrow = row.getRowNumber();}}", "after": "public void InsertRow(RowRecord row){_rowRecords[row.RowNumber] = row;_rowRecordValues = null;if (row.RowNumber < firstrow|| firstrow == -1){firstrow = row.RowNumber;}if (row.RowNumber > lastrow|| lastrow == -1){lastrow = row.RowNumber;}}" }, { "index": 5553, "before": "public String toString() {return \"TermState\";}", "after": "public override string ToString(){return \"TermState\";}" }, { "index": 5554, "before": "public LsRemoteCommand setHeads(boolean heads) {this.heads = heads;return this;}", "after": "public virtual NGit.Api.LsRemoteCommand SetHeads(bool heads){this.heads = heads;return this;}" }, { "index": 5555, "before": "public void remove(String key) {deleteNode(getNode(key.trim().toLowerCase(locale)));}", "after": "public virtual void Remove(string key){DeleteNode(GetNode(this.culture.TextInfo.ToLower(key.Trim())));}" }, { "index": 5556, "before": "public Object[][] getTokenArrayValues() {if (_arrayValues == null) {throw new IllegalStateException(\"array values not read yet\");}Object[][] result = new Object[_nRows][_nColumns];for (int r = 0; r < _nRows; r++) {Object[] rowData = result[r];for (int c = 0; c < _nColumns; c++) {rowData[c] = _arrayValues[getValueIndex(c, r)];}}return result;}", "after": "public Object[][] GetTokenArrayValues(){if (_arrayValues == null){throw new InvalidOperationException(\"array values not read yet\");}Object[][] result = new Object[_nRows][];for (int r = 0; r < _nRows; r++){result[r] = new object[_nColumns];for (int c = 0; c < _nColumns; c++){result[r][c] = _arrayValues[GetValueIndex(c, r)];}}return result;}" }, { "index": 5557, "before": "public PutIntegrationResponseResult putIntegrationResponse(PutIntegrationResponseRequest request) {request = beforeClientExecution(request);return executePutIntegrationResponse(request);}", "after": "public virtual PutIntegrationResponseResponse PutIntegrationResponse(PutIntegrationResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutIntegrationResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = PutIntegrationResponseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5558, "before": "public void write(String str, int offset, int count) throws IOException {synchronized (lock) {if (count < 0) {throw new StringIndexOutOfBoundsException(str, offset, count);}if (str == null) {throw new NullPointerException(\"str == null\");}if ((offset | count) < 0 || offset > str.length() - count) {throw new StringIndexOutOfBoundsException(str, offset, count);}checkStatus();CharBuffer chars = CharBuffer.wrap(str, offset, count + offset);convert(chars);}}", "after": "public override void write(string str, int offset, int count){lock (@lock){if (count < 0){throw new java.lang.StringIndexOutOfBoundsException(str, offset, count);}if (str == null){throw new System.ArgumentNullException(\"str == null\");}if ((offset | count) < 0 || offset > str.Length - count){throw new java.lang.StringIndexOutOfBoundsException(str, offset, count);}checkStatus();java.nio.CharBuffer chars = java.nio.CharBuffer.wrap(java.lang.CharSequenceProxy.Wrap(str), offset, count + offset);convert(chars);}}" }, { "index": 5559, "before": "public String subscriptionId() {return this.subscriptionId;}", "after": "public string SubscriptionId { get; set; }" }, { "index": 5560, "before": "public HSSFPicture createPicture(HSSFClientAnchor anchor, int pictureIndex) {HSSFPicture shape = new HSSFPicture(null, anchor);shape.setPictureIndex(pictureIndex);addShape(shape);onCreate(shape);return shape;}", "after": "public IPicture CreatePicture(HSSFClientAnchor anchor, int pictureIndex){HSSFPicture shape = new HSSFPicture(null, (HSSFClientAnchor)anchor);shape.PictureIndex = pictureIndex;AddShape(shape);OnCreate(shape);return shape;}" }, { "index": 5561, "before": "public ReleaseStaticIpResult releaseStaticIp(ReleaseStaticIpRequest request) {request = beforeClientExecution(request);return executeReleaseStaticIp(request);}", "after": "public virtual ReleaseStaticIpResponse ReleaseStaticIp(ReleaseStaticIpRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReleaseStaticIpRequestMarshaller.Instance;options.ResponseUnmarshaller = ReleaseStaticIpResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5562, "before": "public ListConfigurationSetsResult listConfigurationSets(ListConfigurationSetsRequest request) {request = beforeClientExecution(request);return executeListConfigurationSets(request);}", "after": "public virtual ListConfigurationSetsResponse ListConfigurationSets(ListConfigurationSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListConfigurationSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListConfigurationSetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5563, "before": "public UpdateRecordsResult updateRecords(UpdateRecordsRequest request) {request = beforeClientExecution(request);return executeUpdateRecords(request);}", "after": "public virtual UpdateRecordsResponse UpdateRecords(UpdateRecordsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRecordsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRecordsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5564, "before": "public Token emit() {Token t = _factory.create(_tokenFactorySourcePair, _type, _text, _channel, _tokenStartCharIndex, getCharIndex()-1,_tokenStartLine, _tokenStartCharPositionInLine);emit(t);return t;}", "after": "public virtual IToken Emit(){IToken t = _factory.Create(_tokenFactorySourcePair, _type, _text, _channel, _tokenStartCharIndex, CharIndex - 1, _tokenStartLine, _tokenStartColumn);Emit(t);return t;}" }, { "index": 5565, "before": "public synchronized IndexCommit snapshot() throws IOException {if (!initCalled) {throw new IllegalStateException(\"this instance is not being used by IndexWriter; be sure to use the instance returned from writer.getConfig().getIndexDeletionPolicy()\");}if (lastCommit == null) {throw new IllegalStateException(\"No index commit to snapshot\");}incRef(lastCommit);return lastCommit;}", "after": "public virtual IndexCommit Snapshot(){lock (this){if (!initCalled){throw new InvalidOperationException(\"this instance is not being used by IndexWriter; be sure to use the instance returned from writer.getConfig().getIndexDeletionPolicy()\");}if (m_lastCommit == null){throw new InvalidOperationException(\"No index commit to snapshot\");}IncRef(m_lastCommit);return m_lastCommit;}}" }, { "index": 5566, "before": "public void build(InputIterator iter) throws IOException {synchronized (searcherMgrLock) {if (searcherMgr != null) {searcherMgr.close();searcherMgr = null;}if (writer != null) {writer.close();writer = null;}boolean success = false;try {writer = new IndexWriter(dir,getIndexWriterConfig(getGramAnalyzer(), IndexWriterConfig.OpenMode.CREATE));BytesRef text;while ((text = iter.next()) != null) {BytesRef payload;if (iter.hasPayloads()) {payload = iter.payload();} else {payload = null;}add(text, iter.contexts(), iter.weight(), payload);}if (commitOnBuild || closeIndexWriterOnBuild) {commit();}searcherMgr = new SearcherManager(writer, null);success = true;} finally {if (success) {if (closeIndexWriterOnBuild) {writer.close();writer = null;}} else { if (writer != null) {writer.rollback();writer = null;}}}}}", "after": "public override void Build(IInputIterator iter){if (m_searcherMgr != null){m_searcherMgr.Dispose();m_searcherMgr = null;}if (writer != null){writer.Dispose();writer = null;}AtomicReader r = null;bool success = false;try{writer = new IndexWriter(dir, GetIndexWriterConfig(matchVersion, GramAnalyzer, OpenMode.CREATE));BytesRef text;while ((text = iter.Next()) != null){BytesRef payload;if (iter.HasPayloads){payload = iter.Payload;}else{payload = null;}Add(text, iter.Contexts, iter.Weight, payload);}m_searcherMgr = new SearcherManager(writer, true, null);success = true;}finally{if (success){IOUtils.Dispose(r);}else{IOUtils.DisposeWhileHandlingException(writer, r);writer = null;}}}" }, { "index": 5567, "before": "public ShortBuffer put(ShortBuffer buf) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ShortBuffer put(short c){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 5568, "before": "public int stemSuffix(char s[], int len) {for (int i = 0; i < suffixes.length; i++)if (endsWithCheckLength(s, len, suffixes[i]))len = deleteN(s, len - suffixes[i].length, len, suffixes[i].length);return len;}", "after": "public virtual int StemSuffix(char[] s, int len){for (int i = 0; i < suffixes.Length; i++){if (EndsWithCheckLength(s, len, suffixes[i])){len = StemmerUtil.DeleteN(s, len - suffixes[i].Length, len, suffixes[i].Length);}}return len;}" }, { "index": 5569, "before": "public SeriesListRecord(RecordInputStream in) {int nItems = in.readUShort();short[] ss = new short[nItems];for (int i = 0; i < nItems; i++) {ss[i] = in.readShort();}field_1_seriesNumbers = ss;}", "after": "public SeriesListRecord(RecordInputStream in1){int nItems = in1.ReadUShort();short[] ss = new short[nItems];for (int i = 0; i < nItems; i++) {ss[i] = in1.ReadShort();}field_1_seriesNumbers = ss;}" }, { "index": 5570, "before": "public boolean equals(Object obj) {if (obj == this) {return true;}else if (!(obj instanceof LexerModeAction)) {return false;}return mode == ((LexerModeAction)obj).mode;}", "after": "public override bool Equals(object obj){if (obj == this){return true;}else{if (!(obj is Antlr4.Runtime.Atn.LexerModeAction)){return false;}}return mode == ((Antlr4.Runtime.Atn.LexerModeAction)obj).mode;}" }, { "index": 5571, "before": "public String getLineDelimiter() {if (size() == 0) {return null;}int e = getEnd(0);if (content[e - 1] != '\\n') {return null;}if (content.length > 1 && e > 1 && content[e - 2] == '\\r') {return \"\\r\\n\"; }return \"\\n\"; }", "after": "public virtual string GetLineDelimiter(){if (Size() == 0){return null;}int e = GetEnd(0);if (content[e - 1] != '\\n'){return null;}if (content.Length > 1 && content[e - 2] == '\\r'){return \"\\r\\n\";}else{return \"\\n\";}}" }, { "index": 5572, "before": "public NormalisedDecimal roundUnits() {long wholePart = _wholePart;if (_fractionalPart >= FRAC_HALF) {wholePart++;}int de = _relativeDecimalExponent;if (wholePart < MAX_REP_WHOLE_PART) {return new NormalisedDecimal(wholePart, 0, de);}return new NormalisedDecimal(wholePart/10, 0, de+1);}", "after": "public NormalisedDecimal RoundUnits(){long wholePart = _wholePart;if (_fractionalPart >= FRAC_HALF){wholePart++;}int de = _relativeDecimalExponent;if (wholePart < MAX_REP_WHOLE_PART){return new NormalisedDecimal(wholePart, 0, de);}return new NormalisedDecimal(wholePart / 10, 0, de + 1);}" }, { "index": 5573, "before": "public PLSAggregate(RecordStream rs) {_pls = rs.getNext();if (rs.peekNextSid()==ContinueRecord.sid) {List temp = new ArrayList<>();while (rs.peekNextSid()==ContinueRecord.sid) {temp.add((ContinueRecord)rs.getNext());}_plsContinues = new ContinueRecord[temp.size()];temp.toArray(_plsContinues);} else {_plsContinues = EMPTY_CONTINUE_RECORD_ARRAY;}}", "after": "public PLSAggregate(RecordStream rs){_pls = rs.GetNext();if (rs.PeekNextSid() == ContinueRecord.sid){List temp = new List();while (rs.PeekNextSid() == ContinueRecord.sid){temp.Add((ContinueRecord)rs.GetNext());}_plsContinues = new ContinueRecord[temp.Count];_plsContinues = temp.ToArray();}else{_plsContinues = EMPTY_CONTINUE_RECORD_ARRAY;}}" }, { "index": 5574, "before": "public AssociateDelegateToResourceResult associateDelegateToResource(AssociateDelegateToResourceRequest request) {request = beforeClientExecution(request);return executeAssociateDelegateToResource(request);}", "after": "public virtual AssociateDelegateToResourceResponse AssociateDelegateToResource(AssociateDelegateToResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateDelegateToResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateDelegateToResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5575, "before": "public static void setDefault(CredentialsProvider p) {defaultProvider = p;}", "after": "public static void SetDefault(CredentialsProvider p){defaultProvider = p;}" }, { "index": 5576, "before": "public EscherProperty getEscherProperty( int index ){return properties.get( index );}", "after": "public EscherProperty GetEscherProperty(int index){return properties[index];}" }, { "index": 5577, "before": "@Override public void add(int index, E object) {synchronized (CopyOnWriteArrayList.this) {slice.checkPositionIndex(index);slice.checkConcurrentModification(elements);CopyOnWriteArrayList.this.add(index + slice.from, object);slice = new Slice(elements, slice.from, slice.to + 1);}}", "after": "public virtual void add(int index, E e){lock (this){object[] newElements = new object[elements.Length + 1];System.Array.Copy(elements, 0, newElements, 0, index);newElements[index] = e;System.Array.Copy(elements, index, newElements, index + 1, elements.Length - index);elements = newElements;}}" }, { "index": 5578, "before": "public static BitField getInstance(int mask) {BitField f = instances.get(Integer.valueOf(mask));if (f == null) {f = new BitField(mask);instances.put(Integer.valueOf(mask), f);}return f;}", "after": "public static BitField GetInstance(int mask){BitField f = (BitField)instances[mask];if (f == null){f = new BitField(mask);instances[mask] = f;}return f;}" }, { "index": 5579, "before": "public boolean get(int doc) {final int reader = ReaderUtil.subIndex(doc, starts);assert reader != -1;final Bits bits = subs[reader];if (bits == null) {return defaultValue;} else {assert checkLength(reader, doc);return bits.get(doc-starts[reader]);}}", "after": "public bool Get(int doc){int reader = ReaderUtil.SubIndex(doc, starts);Debug.Assert(reader != -1);IBits bits = subs[reader];if (bits == null){return sefaultValue;}else{Debug.Assert(CheckLength(reader, doc));return bits.Get(doc - starts[reader]);}}" }, { "index": 5580, "before": "public DeleteFieldLevelEncryptionProfileResult deleteFieldLevelEncryptionProfile(DeleteFieldLevelEncryptionProfileRequest request) {request = beforeClientExecution(request);return executeDeleteFieldLevelEncryptionProfile(request);}", "after": "public virtual DeleteFieldLevelEncryptionProfileResponse DeleteFieldLevelEncryptionProfile(DeleteFieldLevelEncryptionProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFieldLevelEncryptionProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFieldLevelEncryptionProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5581, "before": "public EscherComplexProperty(short id, byte[] complexData) {this(id, complexData == null ? 0 : complexData.length);setComplexData(complexData);}", "after": "public EscherComplexProperty(short id, byte[] complexData): base(id){this._complexData = complexData;}" }, { "index": 5582, "before": "public TermVectorsReader clone() {if (in == null) {throw new AlreadyClosedException(\"this TermVectorsReader is closed\");}return new SimpleTextTermVectorsReader(offsets, in.clone());}", "after": "public override object Clone(){if (_input == null){throw new ObjectDisposedException(this.GetType().GetTypeInfo().FullName, \"this TermVectorsReader is closed\");}return new SimpleTextTermVectorsReader(_offsets, (IndexInput)_input.Clone());}" }, { "index": 5583, "before": "public static void fill(short[] array, short value) {for (int i = 0; i < array.length; i++) {array[i] = value;}}", "after": "public static void fill(short[] array, short value){{for (int i = 0; i < array.Length; i++){array[i] = value;}}}" }, { "index": 5584, "before": "public final int getEndB() {return endB;}", "after": "public int GetEndB(){return endB;}" }, { "index": 5585, "before": "public DescribeAutoMLJobResult describeAutoMLJob(DescribeAutoMLJobRequest request) {request = beforeClientExecution(request);return executeDescribeAutoMLJob(request);}", "after": "public virtual DescribeAutoMLJobResponse DescribeAutoMLJob(DescribeAutoMLJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAutoMLJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAutoMLJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5586, "before": "public SelectionRecord(int activeCellRow, int activeCellCol) {field_1_pane = 3; field_2_row_active_cell = activeCellRow;field_3_col_active_cell = activeCellCol;field_4_active_cell_ref_index = 0;field_6_refs = new CellRangeAddress8Bit[] {new CellRangeAddress8Bit(activeCellRow, activeCellRow, activeCellCol, activeCellCol),};}", "after": "public SelectionRecord(int activeCellRow, int activeCellCol){field_1_pane = 3; field_2_row_active_cell = activeCellRow;field_3_col_active_cell = activeCellCol;field_4_ref_active_cell = 0;field_6_refs = new CellRangeAddress8Bit[] {new CellRangeAddress8Bit(activeCellRow, activeCellRow, activeCellCol, activeCellCol),};}" }, { "index": 5587, "before": "public InvalidationBatch(String callerReference) {setCallerReference(callerReference);}", "after": "public InvalidationBatch(string callerReference){_callerReference = callerReference;}" }, { "index": 5588, "before": "public int compareTo(IndexCommit commit) {if (getDirectory() != commit.getDirectory()) {throw new UnsupportedOperationException(\"cannot compare IndexCommits from different Directory instances\");}long gen = getGeneration();long comgen = commit.getGeneration();return Long.compare(gen, comgen);}", "after": "public virtual int CompareTo(IndexCommit commit){if (Directory != commit.Directory){throw new System.NotSupportedException(\"cannot compare IndexCommits from different Directory instances\");}long gen = Generation;long comgen = commit.Generation;if (gen < comgen){return -1;}else if (gen > comgen){return 1;}else{return 0;}}" }, { "index": 5589, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getOptions());out.writeShort(getTopRow());out.writeShort(getLeftCol());out.writeInt(getHeaderColor());out.writeShort(getPageBreakZoom());out.writeShort(getNormalZoom());out.writeInt(getReserved());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Options);out1.WriteShort(TopRow);out1.WriteShort(LeftCol);out1.WriteInt(HeaderColor);out1.WriteShort(PageBreakZoom);out1.WriteShort(NormalZoom);out1.WriteInt(Reserved);}" }, { "index": 5590, "before": "public PhoneticFilter create(TokenStream input) {return new PhoneticFilter(input, getEncoder(), inject);}", "after": "public override TokenStream Create(TokenStream input){return new PhoneticFilter(input, GetEncoder(), inject);}" }, { "index": 5591, "before": "public StartMatchmakingResult startMatchmaking(StartMatchmakingRequest request) {request = beforeClientExecution(request);return executeStartMatchmaking(request);}", "after": "public virtual StartMatchmakingResponse StartMatchmaking(StartMatchmakingRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartMatchmakingRequestMarshaller.Instance;options.ResponseUnmarshaller = StartMatchmakingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5592, "before": "public CreateReusableDelegationSetResult createReusableDelegationSet(CreateReusableDelegationSetRequest request) {request = beforeClientExecution(request);return executeCreateReusableDelegationSet(request);}", "after": "public virtual CreateReusableDelegationSetResponse CreateReusableDelegationSet(CreateReusableDelegationSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateReusableDelegationSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateReusableDelegationSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5593, "before": "public GC setProgressMonitor(ProgressMonitor pm) {this.pm = (pm == null) ? NullProgressMonitor.INSTANCE : pm;return this;}", "after": "public virtual GC SetProgressMonitor(ProgressMonitor pm){this.pm = (pm == null) ? NullProgressMonitor.INSTANCE : pm;return this;}" }, { "index": 5594, "before": "public synchronized String getRegionId() {return regionId;}", "after": "public string GetRegionId(){return regionId;}" }, { "index": 5595, "before": "public CreateVpcEndpointServiceConfigurationResult createVpcEndpointServiceConfiguration(CreateVpcEndpointServiceConfigurationRequest request) {request = beforeClientExecution(request);return executeCreateVpcEndpointServiceConfiguration(request);}", "after": "public virtual CreateVpcEndpointServiceConfigurationResponse CreateVpcEndpointServiceConfiguration(CreateVpcEndpointServiceConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVpcEndpointServiceConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVpcEndpointServiceConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5596, "before": "public IndexableField getField(FieldInfo fieldInfo) {fieldNames.add(fieldInfo.name);List values = fields.get(fieldInfo.number);if (null == values) {values = new ArrayList<>();fields.put(fieldInfo.number, values);}LazyField value = new LazyField(fieldInfo.name, fieldInfo.number);values.add(value);synchronized (this) {doc = null;}return value;}", "after": "public virtual IIndexableField GetField(FieldInfo fieldInfo){fieldNames.Add(fieldInfo.Name);IList values;if (!fields.TryGetValue(fieldInfo.Number, out values) || null == values){values = new List();fields[fieldInfo.Number] = values;}LazyField value = new LazyField(this, fieldInfo.Name, fieldInfo.Number);values.Add(value);lock (this){doc = null;}return value;}" }, { "index": 5597, "before": "public static int nextHighestPowerOfTwo(int v) {v--;v |= v >> 1;v |= v >> 2;v |= v >> 4;v |= v >> 8;v |= v >> 16;v++;return v;}", "after": "public static int NextHighestPowerOfTwo(int v){v--;v |= v >> 1;v |= v >> 2;v |= v >> 4;v |= v >> 8;v |= v >> 16;v++;return v;}" }, { "index": 5598, "before": "public boolean contains(int x, int y) {return isValid() &&x >= this.x &&y >= this.y &&x < (this.x + this.w) &&y < (this.y + this.h);}", "after": "public bool contains(int x, int y){return left < right && top < bottom && x >= left && x < right && y >= top && y (request, options);}" }, { "index": 5608, "before": "public PortugueseMinimalStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public PortugueseMinimalStemFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 5609, "before": "public SeriesChartGroupIndexRecord(RecordInputStream in) {field_1_chartGroupIndex = in.readShort();}", "after": "public SeriesChartGroupIndexRecord(RecordInputStream in1){field_1_chartGroupIndex = in1.ReadShort();}" }, { "index": 5610, "before": "public ValueEval evaluate(int srcCellRow, int srcCellCol) {return ErrorEval.NA;}", "after": "public override ValueEval Evaluate(int srcCellRow, int srcCellCol){return ErrorEval.NA;}" }, { "index": 5611, "before": "public E get(int key) {return get(key, null);}", "after": "public virtual E get(int key){return get(key, default(E));}" }, { "index": 5612, "before": "public DescribeComponentConfigurationResult describeComponentConfiguration(DescribeComponentConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeComponentConfiguration(request);}", "after": "public virtual DescribeComponentConfigurationResponse DescribeComponentConfiguration(DescribeComponentConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeComponentConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeComponentConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5613, "before": "public CellRangeAddressList copy() {CellRangeAddressList result = new CellRangeAddressList();int nItems = _list.size();for (int k = 0; k < nItems; k++) {CellRangeAddress region = _list.get(k);result.addCellRangeAddress(region.copy());}return result;}", "after": "public CellRangeAddressList Copy(){CellRangeAddressList result = new CellRangeAddressList();int nItems = _list.Count;for (int k = 0; k < nItems; k++){CellRangeAddress region = (CellRangeAddress)_list[k];result.AddCellRangeAddress(region.Copy());}return result;}" }, { "index": 5614, "before": "public DescribeClientVpnAuthorizationRulesResult describeClientVpnAuthorizationRules(DescribeClientVpnAuthorizationRulesRequest request) {request = beforeClientExecution(request);return executeDescribeClientVpnAuthorizationRules(request);}", "after": "public virtual DescribeClientVpnAuthorizationRulesResponse DescribeClientVpnAuthorizationRules(DescribeClientVpnAuthorizationRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClientVpnAuthorizationRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClientVpnAuthorizationRulesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5615, "before": "public HSSFConditionalFormattingRule getRule(int idx) {CFRuleBase ruleRecord = cfAggregate.getRule(idx);return new HSSFConditionalFormattingRule(sheet, ruleRecord);}", "after": "public IConditionalFormattingRule GetRule(int idx){CFRuleRecord ruleRecord = cfAggregate.GetRule(idx);return new HSSFConditionalFormattingRule(_workbook, ruleRecord);}" }, { "index": 5616, "before": "public final Ref getAdvertisedRef(String name) {return advertisedRefs.get(name);}", "after": "public Ref GetAdvertisedRef(string name){return advertisedRefs.Get(name);}" }, { "index": 5617, "before": "public int getType() {return delegate().getType();}", "after": "public override int GetType(){return type;}" }, { "index": 5618, "before": "public DeleteCustomVerificationEmailTemplateResult deleteCustomVerificationEmailTemplate(DeleteCustomVerificationEmailTemplateRequest request) {request = beforeClientExecution(request);return executeDeleteCustomVerificationEmailTemplate(request);}", "after": "public virtual DeleteCustomVerificationEmailTemplateResponse DeleteCustomVerificationEmailTemplate(DeleteCustomVerificationEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCustomVerificationEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCustomVerificationEmailTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5619, "before": "public void setRefLogMessage(String msg) {if (msg == null)disableRefLog();elsedestination.setRefLogMessage(msg, false);}", "after": "public virtual void SetRefLogMessage(string msg){if (msg == null){DisableRefLog();}else{destination.SetRefLogMessage(msg, false);}}" }, { "index": 5620, "before": "public CreateVpcEndpointConnectionNotificationResult createVpcEndpointConnectionNotification(CreateVpcEndpointConnectionNotificationRequest request) {request = beforeClientExecution(request);return executeCreateVpcEndpointConnectionNotification(request);}", "after": "public virtual CreateVpcEndpointConnectionNotificationResponse CreateVpcEndpointConnectionNotification(CreateVpcEndpointConnectionNotificationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVpcEndpointConnectionNotificationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVpcEndpointConnectionNotificationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5621, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {int rnum;if (arg0 instanceof AreaEval) {rnum = ((AreaEval) arg0).getFirstColumn();} else if (arg0 instanceof RefEval) {rnum = ((RefEval) arg0).getColumn();} else {return ErrorEval.VALUE_INVALID;}return new NumberEval(rnum + 1);}", "after": "public ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){int rnum;if (arg0 is AreaEval){rnum = ((AreaEval)arg0).FirstColumn;}else if (arg0 is RefEval){rnum = ((RefEval)arg0).Column;}else{return ErrorEval.VALUE_INVALID;}return new NumberEval(rnum + 1);}" }, { "index": 5622, "before": "public CompleteMultipartUploadRequest(String accountId, String vaultName, String uploadId, String archiveSize, String checksum) {setAccountId(accountId);setVaultName(vaultName);setUploadId(uploadId);setArchiveSize(archiveSize);setChecksum(checksum);}", "after": "public CompleteMultipartUploadRequest(string accountId, string vaultName, string uploadId, string archiveSize, string checksum){_accountId = accountId;_vaultName = vaultName;_uploadId = uploadId;_archiveSize = archiveSize;_checksum = checksum;}" }, { "index": 5623, "before": "public void clearRect(int x, int y, int width, int height){Color color = foreground;setColor(background);fillRect(x,y,width,height);setColor(color);}", "after": "public void ClearRect(int x, int y, int width, int height){Color color = foreground;SetColor(background);FillRect(x, y, width, height);SetColor(color);}" }, { "index": 5624, "before": "public String getRawFragment() {return fragment;}", "after": "public string getRawFragment(){return fragment;}" }, { "index": 5625, "before": "public String toString() {StringBuilder s = new StringBuilder();for(int i=0;i 0) {s.append(' ');}s.append(points[i].point).append(':').append(points[i].starts.next/3).append(',').append(points[i].ends.next/3);}return s.toString();}", "after": "public override string ToString(){StringBuilder s = new StringBuilder();for (int i = 0; i < count; i++){if (i > 0){s.Append(' ');}s.Append(points[i].point).Append(':').Append(points[i].starts.count).Append(',').Append(points[i].ends.count);}return s.ToString();}" }, { "index": 5626, "before": "public static double sinh(double d) {double ePowX = Math.pow(Math.E, d);double ePowNegX = Math.pow(Math.E, -d);return (ePowX - ePowNegX) / 2;}", "after": "public static double Sinh(double d){double ePowX = Math.Pow(Math.E, d);double ePowNegX = Math.Pow(Math.E, -d);d = (ePowX - ePowNegX) / 2;return d;}" }, { "index": 5627, "before": "public GetMembersResult getMembers(GetMembersRequest request) {request = beforeClientExecution(request);return executeGetMembers(request);}", "after": "public virtual GetMembersResponse GetMembers(GetMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMembersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5628, "before": "public HSSFPatternFormatting createPatternFormatting(){return getPatternFormatting(true);}", "after": "public IPatternFormatting CreatePatternFormatting(){return GetPatternFormatting(true);}" }, { "index": 5629, "before": "public DeleteSpotDatafeedSubscriptionResult deleteSpotDatafeedSubscription(DeleteSpotDatafeedSubscriptionRequest request) {request = beforeClientExecution(request);return executeDeleteSpotDatafeedSubscription(request);}", "after": "public virtual DeleteSpotDatafeedSubscriptionResponse DeleteSpotDatafeedSubscription(DeleteSpotDatafeedSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSpotDatafeedSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSpotDatafeedSubscriptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5630, "before": "public RevFilter clone() {return new SkipRevFilter(skip);}", "after": "public override RevFilter Clone(){return new NGit.Revwalk.Filter.SkipRevFilter(skip);}" }, { "index": 5631, "before": "public BinarySearchIndexes(int highIx) {_lowIx = -1;_highIx = highIx;}", "after": "public BinarySearchIndexes(int highIx){_lowIx = -1;_highIx = highIx;}" }, { "index": 5632, "before": "public Query makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf) {return SrndBooleanQuery.makeBooleanQuery(makeLuceneSubQueriesField(fieldName, qf), BooleanClause.Occur.SHOULD);}", "after": "public override Search.Query MakeLuceneQueryFieldNoBoost(string fieldName, BasicQueryFactory qf){return SrndBooleanQuery.MakeBooleanQuery(MakeLuceneSubQueriesField(fieldName, qf), Occur.SHOULD);}" }, { "index": 5633, "before": "public static CloneCommand cloneRepository() {return new CloneCommand();}", "after": "public static CloneCommand CloneRepository(){return new CloneCommand();}" }, { "index": 5634, "before": "public EnableMetricsCollectionResult enableMetricsCollection(EnableMetricsCollectionRequest request) {request = beforeClientExecution(request);return executeEnableMetricsCollection(request);}", "after": "public virtual EnableMetricsCollectionResponse EnableMetricsCollection(EnableMetricsCollectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableMetricsCollectionRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableMetricsCollectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5635, "before": "public DescribePlayerSessionsResult describePlayerSessions(DescribePlayerSessionsRequest request) {request = beforeClientExecution(request);return executeDescribePlayerSessions(request);}", "after": "public virtual DescribePlayerSessionsResponse DescribePlayerSessions(DescribePlayerSessionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePlayerSessionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePlayerSessionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5636, "before": "public UpdateDocumentVersionResult updateDocumentVersion(UpdateDocumentVersionRequest request) {request = beforeClientExecution(request);return executeUpdateDocumentVersion(request);}", "after": "public virtual UpdateDocumentVersionResponse UpdateDocumentVersion(UpdateDocumentVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDocumentVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDocumentVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5637, "before": "public TagCommand setTagger(PersonIdent tagger) {this.tagger = tagger;return this;}", "after": "public virtual NGit.Api.TagCommand SetTagger(PersonIdent tagger){this.tagger = tagger;return this;}" }, { "index": 5638, "before": "public void setCellValue(boolean value) {int row=_record.getRow();short col=_record.getColumn();short styleIndex=_record.getXFIndex();switch (_cellType) {default:setCellType(CellType.BOOLEAN, false, row, col, styleIndex);case BOOLEAN:(( BoolErrRecord ) _record).setValue(value);break;case FORMULA:((FormulaRecordAggregate)_record).setCachedBooleanResult(value);break;}}", "after": "public void SetCellValue(double value){if(double.IsInfinity(value)){SetCellErrorValue(FormulaError.DIV0.Code);}else if (double.IsNaN(value)){SetCellErrorValue(FormulaError.NUM.Code);}else{int row = _record.Row;int col = _record.Column;short styleIndex = _record.XFIndex;switch (cellType){case CellType.Numeric:((NumberRecord)_record).Value = value;break;case CellType.Formula:((FormulaRecordAggregate)_record).SetCachedDoubleResult(value);break;default:SetCellType(CellType.Numeric, false, row, col, styleIndex);((NumberRecord)_record).Value = value;break;}}}" }, { "index": 5639, "before": "public PatternReplaceFilterFactory(Map args) {super(args);pattern = getPattern(args, \"pattern\");replacement = get(args, \"replacement\");replaceAll = \"all\".equals(get(args, \"replace\", Arrays.asList(\"all\", \"first\"), \"all\"));if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public PatternReplaceFilterFactory(IDictionary args) : base(args){pattern = GetPattern(args, \"pattern\");replacement = Get(args, \"replacement\");replaceAll = \"all\".Equals(Get(args, \"replace\", new string[] { \"all\", \"first\" }, \"all\"), StringComparison.Ordinal);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 5640, "before": "public List asList(Object output) {if (!(output instanceof List)) {List result = new ArrayList<>(1);result.add((T) output);return result;} else {return (List) output;}}", "after": "public IList AsList(object output){if (!(output is IList outputList)){return new JCG.List(1) { (T)output };}else{return outputList;}}" }, { "index": 5641, "before": "public FooterKey(String keyName) {name = keyName;raw = Constants.encode(keyName.toLowerCase(Locale.ROOT));}", "after": "public FooterKey(string keyName){name = keyName;raw = Constants.Encode(keyName.ToLower());}" }, { "index": 5642, "before": "public List getTokens() { return tokens; }", "after": "public virtual IList GetTokens(){return tokens;}" }, { "index": 5643, "before": "public DeleteTaskSetResult deleteTaskSet(DeleteTaskSetRequest request) {request = beforeClientExecution(request);return executeDeleteTaskSet(request);}", "after": "public virtual DeleteTaskSetResponse DeleteTaskSet(DeleteTaskSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTaskSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTaskSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5644, "before": "public DescribeLifecycleConfigurationResult describeLifecycleConfiguration(DescribeLifecycleConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeLifecycleConfiguration(request);}", "after": "public virtual DescribeLifecycleConfigurationResponse DescribeLifecycleConfiguration(DescribeLifecycleConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLifecycleConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLifecycleConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5645, "before": "public DescribeNodegroupResult describeNodegroup(DescribeNodegroupRequest request) {request = beforeClientExecution(request);return executeDescribeNodegroup(request);}", "after": "public virtual DescribeNodegroupResponse DescribeNodegroup(DescribeNodegroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNodegroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNodegroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5646, "before": "public CustomProperty() {this.name = null;}", "after": "public CustomProperty(){this.name = null;}" }, { "index": 5647, "before": "public DeleteDirectConnectGatewayResult deleteDirectConnectGateway(DeleteDirectConnectGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteDirectConnectGateway(request);}", "after": "public virtual DeleteDirectConnectGatewayResponse DeleteDirectConnectGateway(DeleteDirectConnectGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDirectConnectGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDirectConnectGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5648, "before": "public AddCommand(Repository repo) {super(repo);filepatterns = new LinkedList<>();}", "after": "protected internal AddCommand(Repository repo) : base(repo){filepatterns = new List();}" }, { "index": 5649, "before": "public UpdateStageResult updateStage(UpdateStageRequest request) {request = beforeClientExecution(request);return executeUpdateStage(request);}", "after": "public virtual UpdateStageResponse UpdateStage(UpdateStageRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateStageRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateStageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5650, "before": "public ModifyIdFormatResult modifyIdFormat(ModifyIdFormatRequest request) {request = beforeClientExecution(request);return executeModifyIdFormat(request);}", "after": "public virtual ModifyIdFormatResponse ModifyIdFormat(ModifyIdFormatRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyIdFormatRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyIdFormatResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5651, "before": "public RemoveRoleFromDBClusterResult removeRoleFromDBCluster(RemoveRoleFromDBClusterRequest request) {request = beforeClientExecution(request);return executeRemoveRoleFromDBCluster(request);}", "after": "public virtual RemoveRoleFromDBClusterResponse RemoveRoleFromDBCluster(RemoveRoleFromDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveRoleFromDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveRoleFromDBClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5652, "before": "public E set(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;}}E result = link.data;link.data = object;return result;}throw new IndexOutOfBoundsException();}", "after": "public override E set(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;}}}E result = link.data;link.data = @object;return result;}throw new System.IndexOutOfRangeException();}" }, { "index": 5653, "before": "public ListPhoneNumbersResult listPhoneNumbers(ListPhoneNumbersRequest request) {request = beforeClientExecution(request);return executeListPhoneNumbers(request);}", "after": "public virtual ListPhoneNumbersResponse ListPhoneNumbers(ListPhoneNumbersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPhoneNumbersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPhoneNumbersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5654, "before": "public GermanNormalizationFilter(TokenStream input) {super(input);}", "after": "public GermanNormalizationFilter(TokenStream input): base(input){termAtt = AddAttribute();}" }, { "index": 5655, "before": "@Override public boolean equals(Object object) {return list.equals(object);}", "after": "public override bool Equals(object @object){return list.Equals(@object);}" }, { "index": 5656, "before": "public PullCommand pull() {return new PullCommand(repo);}", "after": "public virtual PullCommand Pull(){return new PullCommand(repo);}" }, { "index": 5657, "before": "public String toString() {return \"ALL\"; }", "after": "public override string ToString(){return \"ALL\";}" }, { "index": 5658, "before": "public CreateIngestionResult createIngestion(CreateIngestionRequest request) {request = beforeClientExecution(request);return executeCreateIngestion(request);}", "after": "public virtual CreateIngestionResponse CreateIngestion(CreateIngestionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIngestionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIngestionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5659, "before": "public StashCreateCommand(Repository repo) {super(repo);person = new PersonIdent(repo);}", "after": "protected internal StashCreateCommand(Repository repo) : base(repo){person = new PersonIdent(repo);}" }, { "index": 5660, "before": "public final ShortBuffer asShortBuffer() {return ShortToByteBufferAdapter.asShortBuffer(this);}", "after": "public sealed override java.nio.ShortBuffer asShortBuffer(){return java.nio.ShortToByteBufferAdapter.asShortBuffer(this);}" }, { "index": 5661, "before": "public FeatSmartTag() {data = new byte[0];}", "after": "public FeatSmartTag(){data = new byte[0];}" }, { "index": 5662, "before": "public LogCommand setSkip(int skip) {checkCallable();this.skip = skip;return this;}", "after": "public virtual NGit.Api.LogCommand SetSkip(int skip){CheckCallable();this.skip = skip;return this;}" }, { "index": 5663, "before": "public Ptg[] getFormulaTokens(FormulaRecord formula) {int formulaRow = formula.getRow();int formulaColumn = formula.getColumn();if (!isInRange(formulaRow, formulaColumn)) {throw new RuntimeException(\"Shared Formula Conversion: Coding Error\");}SharedFormula sf = new SharedFormula(SpreadsheetVersion.EXCEL97);return sf.convertSharedFormulas(field_7_parsed_expr.getTokens(), formulaRow, formulaColumn);}", "after": "public Ptg[] GetFormulaTokens(FormulaRecord formula){int formulaRow = formula.Row;int formulaColumn = formula.Column;if (!IsInRange(formulaRow, formulaColumn)){throw new Exception(\"Shared Formula Conversion: Coding Error\");}SharedFormula sf = new SharedFormula(SpreadsheetVersion.EXCEL97);return sf.ConvertSharedFormulas(field_7_parsed_expr.Tokens, formulaRow, formulaColumn);}" }, { "index": 5664, "before": "public int regionEnd() {return regionEnd;}", "after": "public int regionEnd(){return _regionEnd;}" }, { "index": 5665, "before": "public int getBehindCount() {return behindCount;}", "after": "public virtual int GetBehindCount(){return behindCount;}" }, { "index": 5666, "before": "public void encode(int[] values, int valuesOffset, long[] blocks,int blocksOffset, int iterations) {for (int i = 0; i < iterations; ++i) {blocks[blocksOffset++] = encode(values, valuesOffset);valuesOffset += valueCount;}}", "after": "public override void Encode(int[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations){for (int i = 0; i < iterations; ++i){blocks[blocksOffset++] = Encode(values, valuesOffset);valuesOffset += valueCount;}}" }, { "index": 5667, "before": "public PutImageScanningConfigurationResult putImageScanningConfiguration(PutImageScanningConfigurationRequest request) {request = beforeClientExecution(request);return executePutImageScanningConfiguration(request);}", "after": "public virtual PutImageScanningConfigurationResponse PutImageScanningConfiguration(PutImageScanningConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutImageScanningConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutImageScanningConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5668, "before": "public BlameCommand blame() {return new BlameCommand(repo);}", "after": "public virtual BlameCommand Blame(){return new BlameCommand(repo);}" }, { "index": 5669, "before": "public BytesRef textToBytesRef() {return new BytesRef(text);}", "after": "public virtual BytesRef TextToBytesRef(){return new BytesRef(text.ToString());}" }, { "index": 5670, "before": "public int compareTo(DoubleBuffer otherBuffer) {int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining(): otherBuffer.remaining();int thisPos = position;int otherPos = otherBuffer.position;double thisDouble, otherDouble;while (compareRemaining > 0) {thisDouble = get(thisPos);otherDouble = otherBuffer.get(otherPos);if ((thisDouble != otherDouble)&& ((thisDouble == thisDouble) || (otherDouble == otherDouble))) {return thisDouble < otherDouble ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}", "after": "public virtual int compareTo(java.nio.DoubleBuffer otherBuffer){int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining();int thisPos = _position;int otherPos = otherBuffer._position;double thisDouble;double otherDouble;while (compareRemaining > 0){thisDouble = get(thisPos);otherDouble = otherBuffer.get(otherPos);if ((thisDouble != otherDouble) && ((thisDouble == thisDouble) || (otherDouble ==otherDouble))){return thisDouble < otherDouble ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}" }, { "index": 5671, "before": "public CreateIpGroupResult createIpGroup(CreateIpGroupRequest request) {request = beforeClientExecution(request);return executeCreateIpGroup(request);}", "after": "public virtual CreateIpGroupResponse CreateIpGroup(CreateIpGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIpGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIpGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5672, "before": "public synchronized E set(int index, E e) {Object[] newElements = elements.clone();@SuppressWarnings(\"unchecked\")E result = (E) newElements[index];newElements[index] = e;elements = newElements;return result;}", "after": "public virtual E set(int index, E e){lock (this){object[] newElements = (object[])elements.Clone();E result = (E)newElements[index];newElements[index] = e;elements = newElements;return result;}}" }, { "index": 5673, "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": 5674, "before": "public synchronized String substring(int start, int end) {return super.substring(start, end);}", "after": "public override string substring(int start, int end){lock (this){return base.substring(start, end);}}" }, { "index": 5675, "before": "public static TreeFilter create(TreeFilter a, TreeFilter b) {if (a == ALL)return b;if (b == ALL)return a;return new Binary(a, b);}", "after": "public static TreeFilter Create(TreeFilter a, TreeFilter b){if (a == ALL){return b;}if (b == ALL){return a;}return new AndTreeFilter.Binary(a, b);}" }, { "index": 5676, "before": "public static String authoritySafePath(String authority, String path) {if (authority != null && !authority.isEmpty() && !path.isEmpty() && !path.startsWith(\"/\")) {return \"/\" + path;}return path;}", "after": "public static string authoritySafePath(string authority, string path){if (authority != null && !string.IsNullOrEmpty(authority) && !string.IsNullOrEmpty(path) && !path.StartsWith(\"/\")){return \"/\" + path;}return path;}" }, { "index": 5677, "before": "public final void smudgeRacilyClean() {final int base = infoOffset + P_SIZE;Arrays.fill(info, base, base + 4, (byte) 0);}", "after": "public void SmudgeRacilyClean(){int @base = infoOffset + P_SIZE;Arrays.Fill(info, @base, @base + 4, unchecked((byte)0));}" }, { "index": 5678, "before": "public SeriesListRecord clone() {return copy();}", "after": "public override Object Clone(){return new SeriesListRecord((short[])field_1_seriesNumbers.Clone());}" }, { "index": 5679, "before": "public void decode(){if (null == escherRecords || 0 == escherRecords.size()){byte[] rawData = getRawData();convertToEscherRecords(0, rawData.length, rawData );}}", "after": "public void Decode(){if (null == escherRecords || 0 == escherRecords.Count){byte[] rawData = RawData;ConvertToEscherRecords(0, rawData.Length, rawData);}}" }, { "index": 5680, "before": "public RemoveAutoScalingPolicyResult removeAutoScalingPolicy(RemoveAutoScalingPolicyRequest request) {request = beforeClientExecution(request);return executeRemoveAutoScalingPolicy(request);}", "after": "public virtual RemoveAutoScalingPolicyResponse RemoveAutoScalingPolicy(RemoveAutoScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveAutoScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveAutoScalingPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5681, "before": "public byte readByte() {assert !eof();assert upto <= limit;if (upto == limit)nextSlice();return buffer[upto++];}", "after": "public override byte ReadByte(){Debug.Assert(!Eof());Debug.Assert(upto <= limit);if (upto == limit){NextSlice();}return (byte)buffer[upto++];}" }, { "index": 5682, "before": "public CreateAliasResult createAlias(CreateAliasRequest request) {request = beforeClientExecution(request);return executeCreateAlias(request);}", "after": "public virtual CreateAliasResponse CreateAlias(CreateAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAliasResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5683, "before": "public boolean markSupported() {return in.markSupported();}", "after": "public override bool markSupported(){return @in.markSupported();}" }, { "index": 5684, "before": "public String getRawSchemeSpecificPart() {return schemeSpecificPart;}", "after": "public string getRawSchemeSpecificPart(){return schemeSpecificPart;}" }, { "index": 5685, "before": "public CreateRouteResponseResult createRouteResponse(CreateRouteResponseRequest request) {request = beforeClientExecution(request);return executeCreateRouteResponse(request);}", "after": "public virtual CreateRouteResponseResponse CreateRouteResponse(CreateRouteResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRouteResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRouteResponseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5686, "before": "public void remove() {if (lastEntryReturned == null)throw new IllegalStateException();if (modCount != expectedModCount)throw new ConcurrentModificationException();HashMap.this.remove(lastEntryReturned.key);lastEntryReturned = null;expectedModCount = modCount;}", "after": "public virtual void remove(){if (this.lastEntryReturned == null){throw new System.InvalidOperationException();}if (this._enclosing.modCount != this.expectedModCount){throw new java.util.ConcurrentModificationException();}this._enclosing.remove(this.lastEntryReturned.key);this.lastEntryReturned = null;this.expectedModCount = this._enclosing.modCount;}" }, { "index": 5687, "before": "public void put(int key, E value) {int i = binarySearch(mKeys, 0, mSize, key);if (i >= 0) {mValues[i] = value;} else {i = ~i;if (i < mSize && mValues[i] == DELETED) {mKeys[i] = key;mValues[i] = value;return;}if (mGarbage && mSize >= mKeys.length) {gc();i = ~binarySearch(mKeys, 0, mSize, key);}if (mSize >= mKeys.length) {int n = ArrayUtils.idealIntArraySize(mSize + 1);int[] nkeys = new int[n];Object[] nvalues = new Object[n];System.arraycopy(mKeys, 0, nkeys, 0, mKeys.length);System.arraycopy(mValues, 0, nvalues, 0, mValues.length);mKeys = nkeys;mValues = nvalues;}if (mSize - i != 0) {System.arraycopy(mKeys, i, mKeys, i + 1, mSize - i);System.arraycopy(mValues, i, mValues, i + 1, mSize - i);}mKeys[i] = key;mValues[i] = value;mSize++;}}", "after": "public virtual void put(int key, E value){int i = binarySearch(mKeys, 0, mSize, key);if (i >= 0){mValues[i] = value;}else{i = ~i;if (i < mSize && mValues[i] == DELETED){mKeys[i] = key;mValues[i] = value;return;}if (mGarbage && mSize >= mKeys.Length){gc();i = ~binarySearch(mKeys, 0, mSize, key);}if (mSize >= mKeys.Length){int n = android.util.@internal.ArrayUtils.idealIntArraySize(mSize + 1);int[] nkeys = new int[n];object[] nvalues = new object[n];System.Array.Copy(mKeys, 0, nkeys, 0, mKeys.Length);System.Array.Copy(mValues, 0, nvalues, 0, mValues.Length);mKeys = nkeys;mValues = nvalues;}if (mSize - i != 0){System.Array.Copy(mKeys, i, mKeys, i + 1, mSize - i);System.Array.Copy(mValues, i, mValues, i + 1, mSize - i);}mKeys[i] = key;mValues[i] = value;mSize++;}}" }, { "index": 5688, "before": "public boolean equals(Object obj) {if (obj == this) {return true;}else if (!(obj instanceof LexerCustomAction)) {return false;}LexerCustomAction other = (LexerCustomAction)obj;return ruleIndex == other.ruleIndex&& actionIndex == other.actionIndex;}", "after": "public override bool Equals(object obj){if (obj == this){return true;}else{if (!(obj is Antlr4.Runtime.Atn.LexerCustomAction)){return false;}}Antlr4.Runtime.Atn.LexerCustomAction other = (Antlr4.Runtime.Atn.LexerCustomAction)obj;return ruleIndex == other.ruleIndex && actionIndex == other.actionIndex;}" }, { "index": 5689, "before": "public void seekExact(BytesRef term, TermState state) throws IOException {throw new UnsupportedOperationException(getClass().getName()+\" does not support seeking\");}", "after": "public override void SeekExact(BytesRef term, TermState state){throw new System.NotSupportedException(this.GetType().Name + \" does not support seeking\");}" }, { "index": 5690, "before": "public void readBytes(byte[] b, int offset, int len) {assert b.length >= offset + len;final int offsetEnd = offset + len;while (true) {final int blockLeft = blockSize - currentBlockUpto;final int left = offsetEnd - offset;if (blockLeft < left) {System.arraycopy(currentBlock, currentBlockUpto,b, offset,blockLeft);nextBlock();offset += blockLeft;} else {System.arraycopy(currentBlock, currentBlockUpto,b, offset,left);currentBlockUpto += left;break;}}}", "after": "public override void ReadBytes(byte[] b, int offset, int len){Debug.Assert(b.Length >= offset + len);int offsetEnd = offset + len;while (true){int blockLeft = outerInstance.blockSize - currentBlockUpto;int left = offsetEnd - offset;if (blockLeft < left){System.Buffer.BlockCopy(currentBlock, currentBlockUpto, b, offset, blockLeft);NextBlock();offset += blockLeft;}else{System.Buffer.BlockCopy(currentBlock, currentBlockUpto, b, offset, left);currentBlockUpto += left;break;}}}" }, { "index": 5691, "before": "public FileResolver(File basePath, boolean exportAll) {this();exportDirectory(basePath);setExportAll(exportAll);}", "after": "public FileResolver(FilePath basePath, bool exportAll) : this(){ExportDirectory(basePath);SetExportAll(exportAll);}" }, { "index": 5692, "before": "@Override public void add(int location, E object) {synchronized (mutex) {list.add(location, object);}}", "after": "public virtual void add(int location, E @object){lock (mutex){list.add(location, @object);}}" }, { "index": 5693, "before": "public String replaceFirst(String replacement) {reset();StringBuffer buffer = new StringBuffer(input.length());if (find()) {appendReplacement(buffer, replacement);}return appendTail(buffer).toString();}", "after": "public string replaceFirst(string replacement){reset();java.lang.StringBuffer buffer = new java.lang.StringBuffer(input.Length);if (find()){appendReplacement(buffer, replacement);}return appendTail(buffer).ToString();}" }, { "index": 5694, "before": "public String format2DRefAsString() {return formatReferenceAsString();}", "after": "public String Format2DRefAsString(){return FormatReferenceAsString();}" }, { "index": 5695, "before": "public static String trimFromLast(String str, String stripString) {int pos = str.lastIndexOf(stripString);if (pos > -1) {return str.substring(0, pos);} else {return str;}}", "after": "public static string TrimFromLast(string str, string stripString){var pos = str.LastIndexOf(stripString);if (pos > -1){return str.Substring(0, pos);}return str;}" }, { "index": 5696, "before": "public float hyperbolicTf(float freq) {if (0.0f == freq) return 0.0f;final float min = tf_hyper_min;final float max = tf_hyper_max;final double base = tf_hyper_base;final float xoffset = tf_hyper_xoffset;final double x = (double)(freq - xoffset);final float result = min +(float)((max-min) / 2.0f*(( ( Math.pow(base,x) - Math.pow(base,-x) )/ ( Math.pow(base,x) + Math.pow(base,-x) ))+ 1.0d));return Float.isNaN(result) ? max : result;}", "after": "public virtual float HyperbolicTf(float freq){if (0.0f == freq){return 0.0f;}float min = tf_hyper_min;float max = tf_hyper_max;double @base = tf_hyper_base;float xoffset = tf_hyper_xoffset;double x = (double)(freq - xoffset);float result = min + (float)((max - min) / 2.0f * (((Math.Pow(@base, x) - Math.Pow(@base, -x)) / (Math.Pow(@base, x) + Math.Pow(@base, -x))) + 1.0d));return float.IsNaN(result) ? max : result;}" }, { "index": 5697, "before": "public void setConfig(Config config) {super.setConfig(config);sortRange = config.get(\"sort.rng\", 20000);r = new Random(config.get(\"rand.seed\", 13));}", "after": "public override void SetConfig(Config config){base.SetConfig(config);sortRange = config.Get(\"sort.rng\", 20000);r = new Random(config.Get(\"rand.seed\", 13));}" }, { "index": 5698, "before": "public ParseException generateParseException() {jj_expentries.clear();boolean[] la1tokens = new boolean[33];if (jj_kind >= 0) {la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 25; i++) {if (jj_la1[i] == jj_gen) {for (int j = 0; j < 32; j++) {if ((jj_la1_0[i] & (1<= 0){la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 28; i++){if (jj_la1[i] == jj_gen){for (int j = 0; j < 32; j++){if ((jj_la1_0[i] & (1 << j)) != 0){la1tokens[j] = true;}if ((jj_la1_1[i] & (1 << j)) != 0){la1tokens[32 + j] = true;}}}}for (int i = 0; i < 34; i++){if (la1tokens[i]){jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.Add(jj_expentry);}}jj_endpos = 0;Jj_rescan_token();Jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.Count][];for (int i = 0; i < jj_expentries.Count; i++){exptokseq[i] = jj_expentries[i];}return new ParseException(Token, exptokseq, StandardSyntaxParserConstants.TokenImage);}" }, { "index": 5699, "before": "public int addConditionalFormatting(CellRangeAddress[] regions,ConditionalFormattingRule rule1) {return addConditionalFormatting(regions, (HSSFConditionalFormattingRule)rule1);}", "after": "public int AddConditionalFormatting(CellRangeAddress[] regions,IConditionalFormattingRule rule1){return AddConditionalFormatting(regions, (HSSFConditionalFormattingRule)rule1);}" }, { "index": 5700, "before": "public void setObjectInserter(ObjectInserter oi) {walk.close();reader.close();inserter.close();inserter = oi;reader = oi.newReader();walk = new RevWalk(reader);}", "after": "public virtual void SetObjectInserter(ObjectInserter oi){if (inserter != null){inserter.Release();}inserter = oi;}" }, { "index": 5701, "before": "public void clear() {head = null;free = null;index = null;inQueue = 0;sinceLastIndex = 0;last = -1;}", "after": "public override void Clear(){head = null;free = null;}" }, { "index": 5702, "before": "public void ReInit(CharStream stream, int lexState){ReInit(stream);SwitchTo(lexState);}", "after": "public void ReInit(ICharStream stream, int lexState){ReInit(stream);SwitchTo(lexState);}" }, { "index": 5703, "before": "public boolean contains(Object o) {if (!(o instanceof Map.Entry))return false;Map.Entry e = (Map.Entry)o;V v = ConcurrentHashMap.this.get(e.getKey());return v != null && v.equals(e.getValue());}", "after": "public override bool contains(object o){if (!(o is java.util.MapClass.Entry)){return false;}java.util.MapClass.Entry e = (java.util.MapClass.Entry)o;return this._enclosing.containsMapping(e.getKey(), e.getValue());}" }, { "index": 5704, "before": "public List getRemovedList() {return removedList;}", "after": "public virtual IList GetRemovedList(){return removedList;}" }, { "index": 5705, "before": "public synchronized TaxonomyReader getTaxonomyReader() {if (taxonomyReader != null) {taxonomyReader.incRef();}return taxonomyReader;}", "after": "public virtual TaxonomyReader GetTaxonomyReader(){lock (this){if (taxonomyReader != null){taxonomyReader.IncRef();}return taxonomyReader;}}" }, { "index": 5706, "before": "public String toString(String field) {return getBooleanQuery().toString(field);}", "after": "public override string ToString(string field){return query.ToString(field);}" }, { "index": 5707, "before": "public HSSFShapeGroup createGroup(HSSFClientAnchor anchor) {HSSFShapeGroup group = new HSSFShapeGroup(null, anchor);addShape(group);onCreate(group);return group;}", "after": "public HSSFShapeGroup CreateGroup(HSSFClientAnchor anchor){HSSFShapeGroup group = new HSSFShapeGroup(null, anchor);AddShape(group);OnCreate(group);return group;}" }, { "index": 5708, "before": "public String toString(){StringBuilder sb = new StringBuilder();sb.append( getText() ).append( '(' ).append( boost ).append( \")(\" );for( Toffs to : termsOffsets ){sb.append( to );}sb.append( ')' );return sb.toString();}", "after": "public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetText()).Append('(').Append(Number.ToString(boost)).Append(\")(\");foreach (Toffs to in termsOffsets){sb.Append(to);}sb.Append(')');return sb.ToString();}" }, { "index": 5709, "before": "public ClassicFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public ClassicFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 5710, "before": "public UpdateApplicationResult updateApplication(UpdateApplicationRequest request) {request = beforeClientExecution(request);return executeUpdateApplication(request);}", "after": "public virtual UpdateApplicationResponse UpdateApplication(UpdateApplicationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5711, "before": "public PackParser newPackParser(InputStream in) throws IOException {throw new UnsupportedOperationException();}", "after": "public override PackParser NewPackParser(InputStream @in){throw new NotSupportedException();}" }, { "index": 5712, "before": "public void print(boolean bool) {print(String.valueOf(bool));}", "after": "public virtual void print(bool @bool){print(@bool.ToString());}" }, { "index": 5713, "before": "public int centerY() {return y + h / 2;}", "after": "public int centerY(){return (top + bottom) >> 1;}" }, { "index": 5714, "before": "public Query makeQuery(SpatialArgs args) {if(! SpatialOperation.is( args.getOperation(),SpatialOperation.Intersects,SpatialOperation.IsWithin ))throw new UnsupportedSpatialOperation(args.getOperation());Shape shape = args.getShape();if (shape instanceof Rectangle) {Rectangle bbox = (Rectangle) shape;return new ConstantScoreQuery(makeWithin(bbox));} else if (shape instanceof Circle) {Circle circle = (Circle)shape;Rectangle bbox = circle.getBoundingBox();return new DistanceRangeQuery(makeWithin(bbox), makeDistanceValueSource(circle.getCenter()), circle.getRadius());} else {throw new UnsupportedOperationException(\"Only Rectangles and Circles are currently supported, \" +\"found [\" + shape.getClass() + \"]\");}}", "after": "public override ConstantScoreQuery MakeQuery(SpatialArgs args){if (!SpatialOperation.Is(args.Operation,SpatialOperation.Intersects,SpatialOperation.IsWithin)){throw new UnsupportedSpatialOperation(args.Operation);}IShape shape = args.Shape;if (shape is IRectangle){var bbox = (IRectangle)shape;return new ConstantScoreQuery(MakeWithin(bbox));}else if (shape is ICircle){var circle = (ICircle)shape;var bbox = circle.BoundingBox;var vsf = new ValueSourceFilter(new QueryWrapperFilter(MakeWithin(bbox)),MakeDistanceValueSource(circle.Center),0,circle.Radius);return new ConstantScoreQuery(vsf);}throw new NotSupportedException(\"Only IRectangles and ICircles are currently supported, \" +\"found [\" + shape.GetType().Name + \"]\"); }" }, { "index": 5715, "before": "public BooleanQuery build() {return new BooleanQuery(minimumNumberShouldMatch, clauses.toArray(new BooleanClause[0]));}", "after": "public override WAH8DocIdSet Build(){if (this.wordNum != -1){AddWord(wordNum, (byte)word);}return base.Build();}" }, { "index": 5716, "before": "public GetManagedScalingPolicyResult getManagedScalingPolicy(GetManagedScalingPolicyRequest request) {request = beforeClientExecution(request);return executeGetManagedScalingPolicy(request);}", "after": "public virtual GetManagedScalingPolicyResponse GetManagedScalingPolicy(GetManagedScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetManagedScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetManagedScalingPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5717, "before": "public ListApplicationsResult listApplications() {return listApplications(new ListApplicationsRequest());}", "after": "public virtual ListApplicationsResponse ListApplications(){return ListApplications(new ListApplicationsRequest());}" }, { "index": 5718, "before": "public String getFormatSpecifier() {return s;}", "after": "public virtual string getFormatSpecifier(){return s;}" }, { "index": 5719, "before": "public static String getBuiltinFormat(short index) {return BuiltinFormats.getBuiltinFormat(index);}", "after": "public static String GetBuiltinFormat(short index){return (String)builtinFormats[index];}" }, { "index": 5720, "before": "public void addTask(PerfTask task) {tasks.add(task);task.setDepth(getDepth()+1);}", "after": "public virtual void AddTask(PerfTask task){tasks.Add(task);task.Depth = Depth + 1;}" }, { "index": 5721, "before": "public GetQueueUrlResult getQueueUrl(String queueName) {return getQueueUrl(new GetQueueUrlRequest().withQueueName(queueName));}", "after": "public virtual GetQueueUrlResponse GetQueueUrl(string queueName){var request = new GetQueueUrlRequest();request.QueueName = queueName;return GetQueueUrl(request);}" }, { "index": 5722, "before": "public static double asinh(double d) {return Math.log(Math.sqrt(d*d + 1) + d);}", "after": "public static double Asinh(double d){double d2 = d * d;return Math.Log(Math.Sqrt(d * d + 1) + d);}" }, { "index": 5723, "before": "public ActivityTypeDetail describeActivityType(DescribeActivityTypeRequest request) {request = beforeClientExecution(request);return executeDescribeActivityType(request);}", "after": "public virtual DescribeActivityTypeResponse DescribeActivityType(DescribeActivityTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeActivityTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeActivityTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5724, "before": "public RegisterTransitGatewayMulticastGroupSourcesResult registerTransitGatewayMulticastGroupSources(RegisterTransitGatewayMulticastGroupSourcesRequest request) {request = beforeClientExecution(request);return executeRegisterTransitGatewayMulticastGroupSources(request);}", "after": "public virtual RegisterTransitGatewayMulticastGroupSourcesResponse RegisterTransitGatewayMulticastGroupSources(RegisterTransitGatewayMulticastGroupSourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterTransitGatewayMulticastGroupSourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterTransitGatewayMulticastGroupSourcesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5725, "before": "public void onRelease() {mPullDistance = 0;if (mState != STATE_PULL && mState != STATE_PULL_DECAY) {return;}mState = STATE_RECEDE;mEdgeAlphaStart = mEdgeAlpha;mEdgeScaleYStart = mEdgeScaleY;mGlowAlphaStart = mGlowAlpha;mGlowScaleYStart = mGlowScaleY;mEdgeAlphaFinish = 0.f;mEdgeScaleYFinish = 0.f;mGlowAlphaFinish = 0.f;mGlowScaleYFinish = 0.f;mStartTime = AnimationUtils.currentAnimationTimeMillis();mDuration = RECEDE_TIME;}", "after": "public virtual void onRelease(){mPullDistance = 0;if (mState != STATE_PULL && mState != STATE_PULL_DECAY){return;}mState = STATE_RECEDE;mEdgeAlphaStart = mEdgeAlpha;mEdgeScaleYStart = mEdgeScaleY;mGlowAlphaStart = mGlowAlpha;mGlowScaleYStart = mGlowScaleY;mEdgeAlphaFinish = 0.0f;mEdgeScaleYFinish = 0.0f;mGlowAlphaFinish = 0.0f;mGlowScaleYFinish = 0.0f;mStartTime = android.view.animation.AnimationUtils.currentAnimationTimeMillis();mDuration = RECEDE_TIME;}" }, { "index": 5726, "before": "public ImportKeyPairResult importKeyPair(ImportKeyPairRequest request) {request = beforeClientExecution(request);return executeImportKeyPair(request);}", "after": "public virtual ImportKeyPairResponse ImportKeyPair(ImportKeyPairRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportKeyPairRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportKeyPairResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5727, "before": "public String metricFilterPattern() {return this.metricFilterPattern;}", "after": "public override void Validate(){base.Validate();}" }, { "index": 5728, "before": "public long getTotalTimeInPrediction() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long t = 0;for (int i=0; i(request, options);}" }, { "index": 5732, "before": "public void setPrefix(String prefix) {this.prefix = prefix;}", "after": "public virtual void SetPrefix(string prefix){this.m_prefix = prefix;}" }, { "index": 5733, "before": "public Collection getChildren() {return Collections.singleton(new ChildScorable(childScorer, \"BLOCK_JOIN\"));}", "after": "public override ICollection GetChildren(){return new List { new ChildScorer(_childScorer, \"BLOCK_JOIN\") };}" }, { "index": 5734, "before": "public void run() {sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_SELECTED);}", "after": "public virtual void run(){this._enclosing.sendAccessibilityEvent(android.view.accessibility.AccessibilityEvent.TYPE_VIEW_SELECTED);}" }, { "index": 5735, "before": "public String apiVersion() {return this.apiVersion;}", "after": "public Azure.Storage.Files.Shares.Models.FileProperty Properties { get; internal set; }" }, { "index": 5736, "before": "public OpenNLPPOSFilter create(TokenStream in) {try {return new OpenNLPPOSFilter(in, OpenNLPOpsFactory.getPOSTagger(posTaggerModelFile));} catch (IOException e) {throw new IllegalArgumentException(e);}}", "after": "public override TokenStream Create(TokenStream input){try{return new OpenNLPPOSFilter(input, OpenNLPOpsFactory.GetPOSTagger(posTaggerModelFile));}catch (IOException e){throw new ArgumentException(e.ToString(), e);}}" }, { "index": 5737, "before": "public SendBulkTemplatedEmailResult sendBulkTemplatedEmail(SendBulkTemplatedEmailRequest request) {request = beforeClientExecution(request);return executeSendBulkTemplatedEmail(request);}", "after": "public virtual SendBulkTemplatedEmailResponse SendBulkTemplatedEmail(SendBulkTemplatedEmailRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendBulkTemplatedEmailRequestMarshaller.Instance;options.ResponseUnmarshaller = SendBulkTemplatedEmailResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5738, "before": "public ByteBuffer putFloat(float value) {return putInt(Float.floatToRawIntBits(value));}", "after": "public override java.nio.ByteBuffer putFloat(float value){return putInt(Sharpen.Util.FloatToRawIntBits(value));}" }, { "index": 5739, "before": "public TotalTermFreqValueSource(String field, String val, String indexedField, BytesRef indexedBytes) {this.field = field;this.val = val;this.indexedField = indexedField;this.indexedBytes = indexedBytes;}", "after": "public TotalTermFreqValueSource(string field, string val, string indexedField, BytesRef indexedBytes){this.m_field = field;this.m_val = val;this.m_indexedField = indexedField;this.m_indexedBytes = indexedBytes;}" }, { "index": 5740, "before": "public static final int encoding(byte[] b, int ptr) {final int sz = b.length;while (ptr < sz) {if (b[ptr] == '\\n')return -1;if (b[ptr] == 'e')break;ptr = nextLF(b, ptr);}return match(b, ptr, encoding);}", "after": "public static int Encoding(byte[] b, int ptr){int sz = b.Length;while (ptr < sz){if (b[ptr] == '\\n'){return -1;}if (b[ptr] == 'e'){break;}ptr = NextLF(b, ptr);}return Match(b, ptr, ObjectChecker.encoding);}" }, { "index": 5741, "before": "public void init(ByteBlockPool pool, int startIndex, int endIndex) {assert endIndex-startIndex >= 0;assert startIndex >= 0;assert endIndex >= 0;this.pool = pool;this.endIndex = endIndex;level = 0;bufferUpto = startIndex / ByteBlockPool.BYTE_BLOCK_SIZE;bufferOffset = bufferUpto * ByteBlockPool.BYTE_BLOCK_SIZE;buffer = pool.buffers[bufferUpto];upto = startIndex & ByteBlockPool.BYTE_BLOCK_MASK;final int firstSize = ByteBlockPool.LEVEL_SIZE_ARRAY[0];if (startIndex+firstSize >= endIndex) {limit = endIndex & ByteBlockPool.BYTE_BLOCK_MASK;} elselimit = upto+firstSize-4;}", "after": "public void Init(ByteBlockPool pool, int startIndex, int endIndex){Debug.Assert(endIndex - startIndex >= 0);Debug.Assert(startIndex >= 0);Debug.Assert(endIndex >= 0);this.pool = pool;this.EndIndex = endIndex;level = 0;bufferUpto = startIndex / ByteBlockPool.BYTE_BLOCK_SIZE;BufferOffset = bufferUpto * ByteBlockPool.BYTE_BLOCK_SIZE;buffer = pool.Buffers[bufferUpto];upto = startIndex & ByteBlockPool.BYTE_BLOCK_MASK;int firstSize = ByteBlockPool.LEVEL_SIZE_ARRAY[0];if (startIndex + firstSize >= endIndex){limit = endIndex & ByteBlockPool.BYTE_BLOCK_MASK;}else{limit = upto + firstSize - 4;}}" }, { "index": 5742, "before": "public MergeCellsRecord(RecordInputStream in) {int nRegions = in.readUShort();CellRangeAddress[] cras = new CellRangeAddress[nRegions];for (int i = 0; i < nRegions; i++) {cras[i] = new CellRangeAddress(in);}_numberOfRegions = nRegions;_startIndex = 0;_regions = cras;}", "after": "public MergeCellsRecord(RecordInputStream in1){int nRegions = in1.ReadUShort();CellRangeAddress[] cras = new CellRangeAddress[nRegions];for (int i = 0; i < nRegions; i++){cras[i] = new CellRangeAddress(in1);}_numberOfRegions = nRegions;_startIndex = 0;_regions = cras;}" }, { "index": 5743, "before": "public List getFiles() {return files;}", "after": "public virtual IList GetFiles(){return files;}" }, { "index": 5744, "before": "public final long get(int index) {checkIndex(index);return backingArray[offset + index];}", "after": "public sealed override long get(int index){checkIndex(index);return backingArray[offset + index];}" }, { "index": 5745, "before": "public DescribeClusterTracksResult describeClusterTracks(DescribeClusterTracksRequest request) {request = beforeClientExecution(request);return executeDescribeClusterTracks(request);}", "after": "public virtual DescribeClusterTracksResponse DescribeClusterTracks(DescribeClusterTracksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterTracksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterTracksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5746, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName());sb.append(\" [\");if (externalWorkbookNumber >= 0) {sb.append(\" [\");sb.append(\"workbook=\").append(getExternalWorkbookNumber());sb.append(\"] \");}sb.append(\"sheet=\").append(getSheetName());sb.append(\" ! \");sb.append(FormulaError.REF.getString());sb.append(\"]\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetType().Name);sb.Append(\" [\");if (externalWorkbookNumber >= 0){sb.Append(\" [\");sb.Append(\"workbook=\").Append(ExternalWorkbookNumber);sb.Append(\"] \");}if (sheetName != null){SheetNameFormatter.AppendFormat(sb, sheetName);}sb.Append(\" ! \");sb.Append(ErrorConstants.GetText(ErrorConstants.ERROR_REF));sb.Append(\"]\");return sb.ToString();}" }, { "index": 5747, "before": "public void setParsedExpression(Ptg[] ptgs) {field_8_parsed_expr = Formula.create(ptgs);}", "after": "public void SetParsedExpression(Ptg[] ptgs){field_8_parsed_expr = NPOI.SS.Formula.Formula.Create(ptgs);}" }, { "index": 5748, "before": "public ActivityTypeInfos listActivityTypes(ListActivityTypesRequest request) {request = beforeClientExecution(request);return executeListActivityTypes(request);}", "after": "public virtual ListActivityTypesResponse ListActivityTypes(ListActivityTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListActivityTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListActivityTypesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5749, "before": "public DescribeDBSecurityGroupsResult describeDBSecurityGroups() {return describeDBSecurityGroups(new DescribeDBSecurityGroupsRequest());}", "after": "public virtual DescribeDBSecurityGroupsResponse DescribeDBSecurityGroups(){return DescribeDBSecurityGroups(new DescribeDBSecurityGroupsRequest());}" }, { "index": 5750, "before": "public Collection getAllMatchingGroups() {return (Collection) matchingGroups;}", "after": "public virtual ICollection GetAllMatchingGroups(){return matchingGroups;}" }, { "index": 5751, "before": "public void setCachedResultBoolean(boolean value) {specialCachedValue = FormulaSpecialCachedValue.createCachedBoolean(value);}", "after": "public void SetCachedResultBoolean(bool value){specialCachedValue = SpecialCachedValue.CreateCachedBoolean(value);}" }, { "index": 5752, "before": "public static boolean doesFormulaReferToDeletedCell(Ptg[] ptgs) {for (Ptg ptg : ptgs) {if (isDeletedCellRef(ptg)) {return true;}}return false;}", "after": "public static bool DoesFormulaReferToDeletedCell(Ptg[] ptgs){for (int i = 0; i < ptgs.Length; i++){if (IsDeletedCellRef(ptgs[i])){return true;}}return false;}" }, { "index": 5753, "before": "public static float[] grow(float[] array) {return grow(array, 1 + array.length);}", "after": "public static short[] Grow(short[] array){return Grow(array, 1 + array.Length);}" }, { "index": 5754, "before": "public void clear() {head = null;tail = null;free.clear();}", "after": "public override void Clear(){head = null;tail = null;free.Clear();}" }, { "index": 5755, "before": "public DeleteIPSetResult deleteIPSet(DeleteIPSetRequest request) {request = beforeClientExecution(request);return executeDeleteIPSet(request);}", "after": "public virtual DeleteIPSetResponse DeleteIPSet(DeleteIPSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIPSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIPSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5756, "before": "public StaticCredentialsProvider(AlibabaCloudCredentials credentials) {this.credentials = credentials;}", "after": "public StaticCredentialsProvider(AlibabaCloudCredentials credentials){this.credentials = credentials;}" }, { "index": 5757, "before": "public static double[] copyOfRange(double[] original, int start, int end) {if (start > end) {throw new IllegalArgumentException();}int originalLength = original.length;if (start < 0 || start > originalLength) {throw new ArrayIndexOutOfBoundsException();}int resultLength = end - start;int copyLength = Math.min(resultLength, originalLength - start);double[] result = new double[resultLength];System.arraycopy(original, start, result, 0, copyLength);return result;}", "after": "public static double[] copyOfRange(double[] original, int start, int end){if (start > end){throw new System.ArgumentException();}int originalLength = original.Length;if (start < 0 || start > originalLength){throw new System.IndexOutOfRangeException();}int resultLength = end - start;int copyLength = System.Math.Min(resultLength, originalLength - start);double[] result = new double[resultLength];System.Array.Copy(original, start, result, 0, copyLength);return result;}" }, { "index": 5758, "before": "public DescribeEntityRecognizerResult describeEntityRecognizer(DescribeEntityRecognizerRequest request) {request = beforeClientExecution(request);return executeDescribeEntityRecognizer(request);}", "after": "public virtual DescribeEntityRecognizerResponse DescribeEntityRecognizer(DescribeEntityRecognizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEntityRecognizerRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEntityRecognizerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5759, "before": "public void removeTitle() {remove1stProperty(PropertyIDMap.PID_TITLE);}", "after": "public void RemoveTitle(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_TITLE);}" }, { "index": 5760, "before": "public GetDigestResult getDigest(GetDigestRequest request) {request = beforeClientExecution(request);return executeGetDigest(request);}", "after": "public virtual GetDigestResponse GetDigest(GetDigestRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDigestRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDigestResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5761, "before": "public CreateStackResult createStack(CreateStackRequest request) {request = beforeClientExecution(request);return executeCreateStack(request);}", "after": "public virtual CreateStackResponse CreateStack(CreateStackRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStackRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStackResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5762, "before": "public boolean adjustFormula(Ptg[] ptgs, int currentExternSheetIx) {boolean refsWereChanged = false;for(int i=0; i= docFreqThresh || count >= interval) {count = 1;return true;} else {count++;return false;}}", "after": "public override bool IsIndexTerm(BytesRef term, TermStats stats){if (stats.DocFreq >= docFreqThresh || count >= interval){count = 1;return true;}else{count++;return false;}}" }, { "index": 5769, "before": "public void removeHeadingPair() {remove1stProperty(PropertyIDMap.PID_HEADINGPAIR);}", "after": "public void RemoveHeadingPair(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_HEADINGPAIR);}" }, { "index": 5770, "before": "public synchronized String[] getPOSTags(String[] words) {return tagger.tag(words);}", "after": "public virtual string[] GetPOSTags(string[] words){lock (this){return tagger.tag(words);}}" }, { "index": 5771, "before": "public TermsEnum intersect(CompiledAutomaton compiled, BytesRef startTerm) throws IOException {if (compiled.type != CompiledAutomaton.AUTOMATON_TYPE.NORMAL) {throw new IllegalArgumentException(\"please use CompiledAutomaton.getTermsEnum instead\");}return new IntersectTermsEnum(this, compiled.automaton, compiled.runAutomaton, compiled.commonSuffixRef, startTerm);}", "after": "public override TermsEnum Intersect(CompiledAutomaton compiled, BytesRef startTerm){if (compiled.Type != CompiledAutomaton.AUTOMATON_TYPE.NORMAL){throw new System.ArgumentException(\"please use CompiledAutomaton.getTermsEnum instead\");}return new IntersectEnum(this, compiled, startTerm);}" }, { "index": 5772, "before": "public AttachLoadBalancerToSubnetsResult attachLoadBalancerToSubnets(AttachLoadBalancerToSubnetsRequest request) {request = beforeClientExecution(request);return executeAttachLoadBalancerToSubnets(request);}", "after": "public virtual AttachLoadBalancerToSubnetsResponse AttachLoadBalancerToSubnets(AttachLoadBalancerToSubnetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachLoadBalancerToSubnetsRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachLoadBalancerToSubnetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5773, "before": "public PrecedenceQueryParser() {setQueryNodeProcessor(new PrecedenceQueryNodeProcessorPipeline(getQueryConfigHandler()));}", "after": "public PrecedenceQueryParser(){SetQueryNodeProcessor(new PrecedenceQueryNodeProcessorPipeline(QueryConfigHandler));}" }, { "index": 5774, "before": "public CommonToken(int type) {this.type = type;this.source = EMPTY_SOURCE;}", "after": "public CommonToken(int type){this._type = type;this.source = EmptySource;}" }, { "index": 5775, "before": "public DeleteEmailChannelResult deleteEmailChannel(DeleteEmailChannelRequest request) {request = beforeClientExecution(request);return executeDeleteEmailChannel(request);}", "after": "public virtual DeleteEmailChannelResponse DeleteEmailChannel(DeleteEmailChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEmailChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEmailChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5776, "before": "public DeleteNotificationSubscriptionResult deleteNotificationSubscription(DeleteNotificationSubscriptionRequest request) {request = beforeClientExecution(request);return executeDeleteNotificationSubscription(request);}", "after": "public virtual DeleteNotificationSubscriptionResponse DeleteNotificationSubscription(DeleteNotificationSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNotificationSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNotificationSubscriptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5777, "before": "public void close() throws IOException {synchronized (lock) {if (isClosed()) {return;}Throwable thrown = null;try {flushInternal();} catch (Throwable e) {thrown = e;}buf = null;try {out.close();} catch (Throwable e) {if (thrown == null) {thrown = e;}}out = null;if (thrown != null) {SneakyThrow.sneakyThrow(thrown);}}}", "after": "public override void close(){lock (@lock){if (isClosed()){return;}System.Exception thrown = null;try{flushInternal();}catch (System.Exception e){thrown = e;}buf = null;try{@out.close();}catch (System.Exception e){if (thrown == null){thrown = e;}}@out = null;if (thrown != null){Sharpen.Util.Throw(thrown);}}}" }, { "index": 5778, "before": "public String toString(String field) {StringBuilder buffer = new StringBuilder();buffer.append(\"spanPosRange(\");buffer.append(match.toString(field));buffer.append(\", \").append(start).append(\", \");buffer.append(end);buffer.append(\")\");return buffer.toString();}", "after": "public override string ToString(string field){StringBuilder buffer = new StringBuilder();buffer.Append(\"spanPosRange(\");buffer.Append(m_match.ToString(field));buffer.Append(\", \").Append(m_start).Append(\", \");buffer.Append(m_end);buffer.Append(\")\");buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}" }, { "index": 5779, "before": "public ListPipelinesResult listPipelines(ListPipelinesRequest request) {request = beforeClientExecution(request);return executeListPipelines(request);}", "after": "public virtual ListPipelinesResponse ListPipelines(ListPipelinesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPipelinesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPipelinesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5780, "before": "public ConfirmProductInstanceResult confirmProductInstance(ConfirmProductInstanceRequest request) {request = beforeClientExecution(request);return executeConfirmProductInstance(request);}", "after": "public virtual ConfirmProductInstanceResponse ConfirmProductInstance(ConfirmProductInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ConfirmProductInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = ConfirmProductInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5781, "before": "public CreateProjectResult createProject(CreateProjectRequest request) {request = beforeClientExecution(request);return executeCreateProject(request);}", "after": "public virtual CreateProjectResponse CreateProject(CreateProjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateProjectRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateProjectResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5782, "before": "public ListMomentsRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"ListMoments\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public ListMomentsRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"ListMoments\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 5783, "before": "public String getCCByGB2312Id(int ccid) {if (ccid < 0 || ccid > AbstractDictionary.GB2312_CHAR_NUM)return \"\";int cc1 = ccid / 94 + 161;int cc2 = ccid % 94 + 161;byte[] buffer = new byte[2];buffer[0] = (byte) cc1;buffer[1] = (byte) cc2;try {String cchar = new String(buffer, \"GB2312\");return cchar;} catch (UnsupportedEncodingException e) {return \"\";}}", "after": "public virtual string GetCCByGB2312Id(int ccid){if (ccid < 0 || ccid > AbstractDictionary.GB2312_CHAR_NUM)return \"\";int cc1 = ccid / 94 + 161;int cc2 = ccid % 94 + 161;byte[] buffer = new byte[2];buffer[0] = (byte)cc1;buffer[1] = (byte)cc2;try{string cchar = Encoding.GetEncoding(\"GB2312\").GetString(buffer);return cchar;}catch (ArgumentException) {return \"\";}}" }, { "index": 5784, "before": "public static RevFilter create(RevFilter a, RevFilter b) {if (a == ALL || b == ALL)return ALL;return new Binary(a, b);}", "after": "public static RevFilter Create(RevFilter a, RevFilter b){if (a == ALL || b == ALL){return ALL;}return new OrRevFilter.Binary(a, b);}" }, { "index": 5785, "before": "public UpdateTableRequest(String tableName, ProvisionedThroughput provisionedThroughput) {setTableName(tableName);setProvisionedThroughput(provisionedThroughput);}", "after": "public UpdateTableRequest(string tableName, ProvisionedThroughput provisionedThroughput){_tableName = tableName;_provisionedThroughput = provisionedThroughput;}" }, { "index": 5786, "before": "public Repository getRepository() {return db;}", "after": "public virtual Repository GetRepository(){return db;}" }, { "index": 5787, "before": "public ShortBuffer compact() {if (byteBuffer.isReadOnly()) {throw new ReadOnlyBufferException();}byteBuffer.limit(limit * SizeOf.SHORT);byteBuffer.position(position * SizeOf.SHORT);byteBuffer.compact();byteBuffer.clear();position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}", "after": "public override java.nio.ShortBuffer compact(){if (byteBuffer.isReadOnly()){throw new java.nio.ReadOnlyBufferException();}byteBuffer.limit(_limit * libcore.io.SizeOf.SHORT);byteBuffer.position(_position * libcore.io.SizeOf.SHORT);byteBuffer.compact();byteBuffer.clear();_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}" }, { "index": 5788, "before": "public CreateInstanceExportTaskResult createInstanceExportTask(CreateInstanceExportTaskRequest request) {request = beforeClientExecution(request);return executeCreateInstanceExportTask(request);}", "after": "public virtual CreateInstanceExportTaskResponse CreateInstanceExportTask(CreateInstanceExportTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateInstanceExportTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateInstanceExportTaskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5789, "before": "public String toString() {return \"MultiDocsAndPositionsEnum(\" + Arrays.toString(getSubs()) + \")\";}", "after": "public override string ToString(){return \"MultiDocsAndPositionsEnum(\" + Arrays.ToString(Subs) + \")\";}" }, { "index": 5790, "before": "public DescribeStacksResult describeStacks(DescribeStacksRequest request) {request = beforeClientExecution(request);return executeDescribeStacks(request);}", "after": "public virtual DescribeStacksResponse DescribeStacks(DescribeStacksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStacksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStacksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5791, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_xf_index);if (isBuiltin()) {out.writeByte(field_2_builtin_style);out.writeByte(field_3_outline_style_level);} else {out.writeShort(field_4_name.length());out.writeByte(field_3_stringHasMultibyte ? 0x01 : 0x00);if (field_3_stringHasMultibyte) {StringUtil.putUnicodeLE(getName(), out);} else {StringUtil.putCompressedUnicode(getName(), out);}}}", "after": "public override void Serialize(ILittleEndianOutput o){o.WriteShort(field_1_xf_index);if (IsBuiltin){o.WriteByte(field_2_builtin_style);o.WriteByte(field_3_outline_style_level);}else{o.WriteShort(field_4_name.Length);o.WriteByte(field_3_stringHasMultibyte ? 0x01 : 0x00);if (field_3_stringHasMultibyte){StringUtil.PutUnicodeLE(Name, o);}else{StringUtil.PutCompressedUnicode(Name, o);}}}" }, { "index": 5792, "before": "public void write(byte[] b, int off, int len) throws IOException {deflater.setInput(b, off, len);for (;;) {if (outPtr == zbuf.length)throw new EOFException();int n = deflater.deflate(zbuf, outPtr, zbuf.length - outPtr);if (n == 0) {if (deflater.needsInput())break;throw new IOException();}outPtr += n;}}", "after": "public override void Write(byte[] b, int off, int len){deflater.SetInput(b, off, len);for (; ; ){if (outPtr == zbuf.Length){throw new EOFException();}int n = deflater.Deflate(zbuf, outPtr, zbuf.Length - outPtr);if (n == 0){if (deflater.IsNeedingInput){break;}throw new IOException();}outPtr += n;}}" }, { "index": 5793, "before": "public String toFormulaString() {return \" \";}", "after": "public override String ToFormulaString(){return \" \";}" }, { "index": 5794, "before": "public StringBuffer insert(int index, double d) {return insert(index, Double.toString(d));}", "after": "public java.lang.StringBuffer insert(int index, double d){return insert(index, System.Convert.ToString(d));}" }, { "index": 5795, "before": "public FieldWriter addField(FieldInfo field, long termsFilePointer) {SimpleFieldWriter writer = new SimpleFieldWriter(field, termsFilePointer);fields.add(writer);return writer;}", "after": "public override FieldWriter AddField(FieldInfo field, long termsFilePointer){SimpleFieldWriter writer = new SimpleFieldWriter(this, field, termsFilePointer);fields.Add(writer);return writer;}" }, { "index": 5796, "before": "public DeleteUserEndpointsResult deleteUserEndpoints(DeleteUserEndpointsRequest request) {request = beforeClientExecution(request);return executeDeleteUserEndpoints(request);}", "after": "public virtual DeleteUserEndpointsResponse DeleteUserEndpoints(DeleteUserEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUserEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUserEndpointsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5797, "before": "public HSSFColor addColor( byte red, byte green, byte blue ){byte[] b = _palette.getColor(PaletteRecord.FIRST_COLOR_INDEX);short i;for (i = PaletteRecord.FIRST_COLOR_INDEX; i < PaletteRecord.STANDARD_PALETTE_SIZE + PaletteRecord.FIRST_COLOR_INDEX; b = _palette.getColor(++i)){if (b == null){setColorAtIndex( i, red, green, blue );return getColor(i);}}throw new RuntimeException(\"Could not find free color index\");}", "after": "public HSSFColor AddColor(byte red, byte green, byte blue){byte[] b = palette.GetColor(PaletteRecord.FIRST_COLOR_INDEX);short i;for (i = (short)PaletteRecord.FIRST_COLOR_INDEX; i < PaletteRecord.STANDARD_PALETTE_SIZE + PaletteRecord.FIRST_COLOR_INDEX; b = palette.GetColor(++i)){if (b == null){SetColorAtIndex(i, red, green, blue);return GetColor(i);}}throw new Exception(\"Could not Find free color index\");}" }, { "index": 5798, "before": "public boolean isRenameDetectionEnabled() {return renameDetectionType != RenameDetectionType.FALSE;}", "after": "public virtual bool IsRenameDetectionEnabled(){return renameDetectionType != DiffConfig.RenameDetectionType.FALSE;}" }, { "index": 5799, "before": "public static boolean safe(String pattern) {for (int i = 0; i < pattern.length(); i++) {final char c = pattern.charAt(i);switch (c) {case '.':case '?':case '*':case '+':case '{':case '}':case '(':case ')':case '[':case ']':case '\\\\':return false;}}return true;}", "after": "public static bool Safe(string pattern){for (int i = 0; i < pattern.Length; i++){char c = pattern[i];switch (c){case '.':case '?':case '*':case '+':case '{':case '}':case '(':case ')':case '[':case ']':case '\\\\':{return false;}}}return true;}" }, { "index": 5800, "before": "public void SwitchTo(int lexState){if (lexState >= 3 || lexState < 0)throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);elsecurLexState = lexState;}", "after": "public void SwitchTo(int lexState){if (lexState >= 2 || lexState < 0)throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);elsecurLexState = lexState;}" }, { "index": 5801, "before": "public CreateDeliverabilityTestReportResult createDeliverabilityTestReport(CreateDeliverabilityTestReportRequest request) {request = beforeClientExecution(request);return executeCreateDeliverabilityTestReport(request);}", "after": "public virtual CreateDeliverabilityTestReportResponse CreateDeliverabilityTestReport(CreateDeliverabilityTestReportRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDeliverabilityTestReportRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDeliverabilityTestReportResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5802, "before": "public void set(int index, long value) {final int o = index / 10;final int b = index % 10;final int shift = b * 6;blocks[o] = (blocks[o] & ~(63L << shift)) | (value << shift);}", "after": "public override void Set(int index, long value){int o = index / 10;int b = index % 10;int shift = b * 6;blocks[o] = (blocks[o] & ~(63L << shift)) | (value << shift);}" }, { "index": 5803, "before": "public String toString() {return getClass().getName() + \" [\" +formatAsString() +\"]\";}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(\" [\");sb.Append(FormatAsString);sb.Append(\"]\");return sb.ToString();}" }, { "index": 5804, "before": "public String getRemoteName() {return remoteName;}", "after": "public virtual string GetRemoteName(){return remoteName;}" }, { "index": 5805, "before": "public CherryPickCommand cherryPick() {return new CherryPickCommand(repo);}", "after": "public virtual CherryPickCommand CherryPick(){return new CherryPickCommand(repo);}" }, { "index": 5806, "before": "public HSSFClientAnchor createClientAnchor(){return new HSSFClientAnchor();}", "after": "public NPOI.SS.UserModel.IClientAnchor CreateClientAnchor(){return new HSSFClientAnchor();}" }, { "index": 5807, "before": "public DeleteProfileResult deleteProfile(DeleteProfileRequest request) {request = beforeClientExecution(request);return executeDeleteProfile(request);}", "after": "public virtual DeleteProfileResponse DeleteProfile(DeleteProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5808, "before": "@Override public int size() {return count(entrySet().iterator());}", "after": "public override int size(){return java.util.TreeMap.count(this.entrySet().iterator());}" }, { "index": 5809, "before": "public ByteBuffer put(ByteBuffer buf) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer put(java.nio.ByteBuffer buf){throw new System.NotImplementedException();}" }, { "index": 5810, "before": "public CreateBranchCommand setStartPoint(RevCommit startPoint) {checkCallable();this.startCommit = startPoint;this.startPoint = null;return this;}", "after": "public virtual NGit.Api.CreateBranchCommand SetStartPoint(string startPoint){CheckCallable();this.startPoint = startPoint;this.startCommit = null;return this;}" }, { "index": 5811, "before": "public ListOnPremisesInstancesResult listOnPremisesInstances(ListOnPremisesInstancesRequest request) {request = beforeClientExecution(request);return executeListOnPremisesInstances(request);}", "after": "public virtual ListOnPremisesInstancesResponse ListOnPremisesInstances(ListOnPremisesInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListOnPremisesInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListOnPremisesInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5812, "before": "public int[] clear() {if (perField.postingsArray != null) {bytesUsed.addAndGet(-(perField.postingsArray.size * perField.postingsArray.bytesPerPosting()));perField.postingsArray = null;perField.newPostingsArray();}return null;}", "after": "public override int[] Clear(){if (perField.postingsArray != null){bytesUsed.AddAndGet(-(perField.postingsArray.size * perField.postingsArray.BytesPerPosting()));perField.postingsArray = null;}return null;}" }, { "index": 5813, "before": "public String getSourcePath() {return outCandidate.sourcePath.getPath();}", "after": "public virtual string GetSourcePath(){return currentSource.sourcePath.GetPath();}" }, { "index": 5814, "before": "public static SingletonPredictionContext create(PredictionContext parent, int returnState) {if ( returnState == EMPTY_RETURN_STATE && parent == null ) {return EMPTY;}return new SingletonPredictionContext(parent, returnState);}", "after": "public static PredictionContext Create(PredictionContext parent, int returnState){if (returnState == EMPTY_RETURN_STATE && parent == null){return PredictionContext.EMPTY;}return new SingletonPredictionContext(parent, returnState);}" }, { "index": 5815, "before": "public void cleanupSession(String sessionID) throws IOException {if (sessionID.isEmpty()) { throw new IllegalArgumentException(\"sessionID cannot be empty\");}IOUtils.rm(workDir.resolve(sessionID));}", "after": "public virtual void CleanupSession(string sessionId){if (string.IsNullOrEmpty(sessionId)) throw new ArgumentException(\"sessionID cannot be empty\", \"sessionId\");string sessionDirectory = Path.Combine(workingDirectory, sessionId);System.IO.Directory.Delete(sessionDirectory, true);}" }, { "index": 5816, "before": "public DescribeSnapshotCopyGrantsResult describeSnapshotCopyGrants(DescribeSnapshotCopyGrantsRequest request) {request = beforeClientExecution(request);return executeDescribeSnapshotCopyGrants(request);}", "after": "public virtual DescribeSnapshotCopyGrantsResponse DescribeSnapshotCopyGrants(DescribeSnapshotCopyGrantsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSnapshotCopyGrantsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSnapshotCopyGrantsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5817, "before": "public String toString() {return Utils.join(Arrays.asList(opnds).iterator(), \"&&\");}", "after": "public override string ToString(){return Utils.Join(\"&&\", opnds);}" }, { "index": 5818, "before": "public DescribeApplicationResult describeApplication(DescribeApplicationRequest request) {request = beforeClientExecution(request);return executeDescribeApplication(request);}", "after": "public virtual DescribeApplicationResponse DescribeApplication(DescribeApplicationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeApplicationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeApplicationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5819, "before": "@Override public E set(int index, E object) {Object[] a = array;if (index >= size) {throwIndexOutOfBoundsException(index, size);}@SuppressWarnings(\"unchecked\") E result = (E) a[index];a[index] = object;return result;}", "after": "public override E set(int index, E @object){object[] a = array;if (index >= _size){throwIndexOutOfBoundsException(index, _size);}E result = (E)a[index];a[index] = @object;return result;}" }, { "index": 5820, "before": "public void set(int x, int y) {this.x = x;this.y = y;}", "after": "public virtual void set(int x, int y){this.x = x;this.y = y;}" }, { "index": 5821, "before": "public BatchSendMessagesRequest() {super(\"OnsMqtt\", \"2019-12-11\", \"BatchSendMessages\", \"onsmqtt\");setMethod(MethodType.POST);}", "after": "public BatchSendMessagesRequest(): base(\"OnsMqtt\", \"2019-12-11\", \"BatchSendMessages\", \"onsmqtt\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 5822, "before": "public DeleteEgressOnlyInternetGatewayResult deleteEgressOnlyInternetGateway(DeleteEgressOnlyInternetGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteEgressOnlyInternetGateway(request);}", "after": "public virtual DeleteEgressOnlyInternetGatewayResponse DeleteEgressOnlyInternetGateway(DeleteEgressOnlyInternetGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEgressOnlyInternetGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEgressOnlyInternetGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5823, "before": "public static String byteToHex(int value) {StringBuilder sb = new StringBuilder(4);writeHex(sb, value & 0xFFL, 2, \"0x\");return sb.toString();}", "after": "public static char[] ByteToHex(int value){return ToHexChars(value, 1);}" }, { "index": 5824, "before": "public DescribeLoadBalancerPoliciesResult describeLoadBalancerPolicies(DescribeLoadBalancerPoliciesRequest request) {request = beforeClientExecution(request);return executeDescribeLoadBalancerPolicies(request);}", "after": "public virtual DescribeLoadBalancerPoliciesResponse DescribeLoadBalancerPolicies(DescribeLoadBalancerPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoadBalancerPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoadBalancerPoliciesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5825, "before": "public void close() throws IOException {try {beginWrite();dst.close();} catch (InterruptedIOException e) {throw writeTimedOut(e);} finally {endWrite();}}", "after": "public override void Close(){try{BeginWrite();dst.Close();}catch (ThreadInterruptedException){throw WriteTimedOut();}finally{EndWrite();}}" }, { "index": 5826, "before": "public UpdateVirtualInterfaceAttributesResult updateVirtualInterfaceAttributes(UpdateVirtualInterfaceAttributesRequest request) {request = beforeClientExecution(request);return executeUpdateVirtualInterfaceAttributes(request);}", "after": "public virtual UpdateVirtualInterfaceAttributesResponse UpdateVirtualInterfaceAttributes(UpdateVirtualInterfaceAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateVirtualInterfaceAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateVirtualInterfaceAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5827, "before": "public ScandinavianNormalizationFilter(TokenStream input) {super(input);}", "after": "public ScandinavianNormalizationFilter(TokenStream input): base(input){charTermAttribute = AddAttribute();}" }, { "index": 5828, "before": "public DeleteHumanLoopResult deleteHumanLoop(DeleteHumanLoopRequest request) {request = beforeClientExecution(request);return executeDeleteHumanLoop(request);}", "after": "public virtual DeleteHumanLoopResponse DeleteHumanLoop(DeleteHumanLoopRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteHumanLoopRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteHumanLoopResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5829, "before": "public void onWindowFocusChanged(boolean hasWindowFocus) {super.onWindowFocusChanged(hasWindowFocus);if (!hasWindowFocus && !mPopup.isDropDownAlwaysVisible()) {dismissDropDown();}}", "after": "public override void onWindowFocusChanged(bool hasWindowFocus_1){base.onWindowFocusChanged(hasWindowFocus_1);if (!hasWindowFocus_1 && !mPopup.isDropDownAlwaysVisible()){dismissDropDown();}}" }, { "index": 5830, "before": "public GetApnsSandboxChannelResult getApnsSandboxChannel(GetApnsSandboxChannelRequest request) {request = beforeClientExecution(request);return executeGetApnsSandboxChannel(request);}", "after": "public virtual GetApnsSandboxChannelResponse GetApnsSandboxChannel(GetApnsSandboxChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApnsSandboxChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApnsSandboxChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5831, "before": "public TreeFilter clone() {final TreeFilter n = a.clone();return n == a ? this : new NotTreeFilter(n);}", "after": "public override TreeFilter Clone(){TreeFilter n = a.Clone();return n == a ? this : new NGit.Treewalk.Filter.NotTreeFilter(n);}" }, { "index": 5832, "before": "public void addBuilder(String nodeName, QueryBuilder builder) {builders.put(nodeName, builder);}", "after": "public virtual void AddBuilder(string nodeName, IQueryBuilder builder){builders[nodeName] = builder;}" }, { "index": 5833, "before": "public static boolean isSupported(int bitsPerValue) {return Arrays.binarySearch(SUPPORTED_BITS_PER_VALUE, bitsPerValue) >= 0;}", "after": "public static bool IsSupported(int bitsPerValue){return Array.BinarySearch(SUPPORTED_BITS_PER_VALUE, bitsPerValue) >= 0;}" }, { "index": 5834, "before": "@Override public V getValue() {return mapEntry.getValue();}", "after": "public virtual V getValue(){return mapEntry.getValue();}" }, { "index": 5835, "before": "public DeletedArea3DPtg(LittleEndianInput in) {field_1_index_extern_sheet = in.readUShort();unused1 = in.readInt();unused2 = in.readInt();}", "after": "public DeletedArea3DPtg(ILittleEndianInput in1){field_1_index_extern_sheet = in1.ReadUShort();unused1 = in1.ReadInt();unused2 = in1.ReadInt();}" }, { "index": 5836, "before": "public String toString() {return \"NativeFSLock(path=\" + path + \",impl=\" + lock + \",creationTime=\" + creationTime + \")\";}", "after": "public override string ToString(){return $\"{nameof(NativeFSLock)}@{path}\";}" }, { "index": 5837, "before": "public CreateVolumeResult createVolume(CreateVolumeRequest request) {request = beforeClientExecution(request);return executeCreateVolume(request);}", "after": "public virtual CreateVolumeResponse CreateVolume(CreateVolumeRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVolumeRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVolumeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5838, "before": "public EvaluationCell getCell(int rowIndex, int columnIndex) {HSSFRow row = _hs.getRow(rowIndex);if (row == null) {return null;}HSSFCell cell = row.getCell(columnIndex);if (cell == null) {return null;}return new HSSFEvaluationCell(cell, this);}", "after": "public IEvaluationCell GetCell(int rowIndex, int columnIndex){HSSFRow row = (HSSFRow)_hs.GetRow(rowIndex);if (row == null){return null;}ICell cell = (HSSFCell)row.GetCell(columnIndex);if (cell == null){return null;}return new HSSFEvaluationCell(cell, this);}" }, { "index": 5839, "before": "public DeleteBasePathMappingResult deleteBasePathMapping(DeleteBasePathMappingRequest request) {request = beforeClientExecution(request);return executeDeleteBasePathMapping(request);}", "after": "public virtual DeleteBasePathMappingResponse DeleteBasePathMapping(DeleteBasePathMappingRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteBasePathMappingRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteBasePathMappingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5840, "before": "public void removeState(ATNState state) {states.set(state.stateNumber, null); }", "after": "public virtual void RemoveState(ATNState state){states[state.stateNumber] = null;}" }, { "index": 5841, "before": "public boolean equals(Object other) {if (!(other instanceof ShortBuffer)) {return false;}ShortBuffer otherBuffer = (ShortBuffer) other;if (remaining() != otherBuffer.remaining()) {return false;}int myPosition = position;int otherPosition = otherBuffer.position;boolean equalSoFar = true;while (equalSoFar && (myPosition < limit)) {equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}", "after": "public override bool Equals(object other){if (!(other is java.nio.ShortBuffer)){return false;}java.nio.ShortBuffer otherBuffer = (java.nio.ShortBuffer)other;if (remaining() != otherBuffer.remaining()){return false;}int myPosition = _position;int otherPosition = otherBuffer._position;bool equalSoFar = true;while (equalSoFar && (myPosition < _limit)){equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}" }, { "index": 5842, "before": "public boolean equals(final Object o) {if (!(o instanceof PropertySet)) {return false;}final PropertySet ps = (PropertySet) o;int byteOrder1 = ps.getByteOrder();int byteOrder2 = getByteOrder();ClassID classID1 = ps.getClassID();ClassID classID2 = getClassID();int format1 = ps.getFormat();int format2 = getFormat();int osVersion1 = ps.getOSVersion();int osVersion2 = getOSVersion();int sectionCount1 = ps.getSectionCount();int sectionCount2 = getSectionCount();if (byteOrder1 != byteOrder2 ||!classID1.equals(classID2) ||format1 != format2 ||osVersion1 != osVersion2 ||sectionCount1 != sectionCount2) {return false;}return getSections().containsAll(ps.getSections());}", "after": "public override bool Equals(Object o){if (o == null || !(o is PropertySet))return false;PropertySet ps = (PropertySet)o;int byteOrder1 = ps.ByteOrder;int byteOrder2 = ByteOrder;ClassID classID1 = ps.ClassID;ClassID classID2 = ClassID;int format1 = ps.Format;int format2 = Format;int osVersion1 = ps.OSVersion;int osVersion2 = OSVersion;int sectionCount1 = ps.SectionCount;int sectionCount2 = SectionCount;if (byteOrder1 != byteOrder2 ||!classID1.Equals(classID2) ||format1 != format2 ||osVersion1 != osVersion2 ||sectionCount1 != sectionCount2)return false;return Util.AreEqual(Sections, ps.Sections);}" }, { "index": 5843, "before": "public static int getEstimatedNumberUniqueValuesAllowingForCollisions(int setSize, int numRecordedBits) {double setSizeAsDouble = setSize;double numRecordedBitsAsDouble = numRecordedBits;double saturation = numRecordedBitsAsDouble / setSizeAsDouble;double logInverseSaturation = Math.log(1 - saturation) * -1;return (int) (setSizeAsDouble * logInverseSaturation);}", "after": "public static int GetEstimatedNumberUniqueValuesAllowingForCollisions(int setSize, int numRecordedBits){double setSizeAsDouble = setSize;double numRecordedBitsAsDouble = numRecordedBits;var saturation = numRecordedBitsAsDouble/setSizeAsDouble;var logInverseSaturation = Math.Log(1 - saturation)*-1;return (int) (setSizeAsDouble*logInverseSaturation);}" }, { "index": 5844, "before": "public static boolean isGitRepository(File dir, FS fs) {return fs.resolve(dir, Constants.OBJECTS).exists()&& fs.resolve(dir, \"refs\").exists() && (fs.resolve(dir, Constants.REFTABLE).exists()|| isValidHead(new File(dir, Constants.HEAD)));}", "after": "public static bool IsGitRepository(FilePath dir, FS fs){return fs.Resolve(dir, \"objects\").Exists() && fs.Resolve(dir, \"refs\").Exists() &&IsValidHead(new FilePath(dir, Constants.HEAD));}" }, { "index": 5845, "before": "public void setBackgroundImage(int pictureIndex){setPropertyValue(new EscherSimpleProperty( EscherPropertyTypes.FILL__PATTERNTEXTURE, false, true, pictureIndex));setPropertyValue(new EscherSimpleProperty( EscherPropertyTypes.FILL__FILLTYPE, false, false, FILL_TYPE_PICTURE));EscherBSERecord bse = getPatriarch().getSheet().getWorkbook().getWorkbook().getBSERecord(pictureIndex);bse.setRef(bse.getRef() + 1);}", "after": "public void SetBackgroundImage(int pictureIndex){SetPropertyValue(new EscherSimpleProperty(EscherProperties.FILL__PATTERNTEXTURE, false, true, pictureIndex));SetPropertyValue(new EscherSimpleProperty(EscherProperties.FILL__FILLTYPE, false, false, FILL_TYPE_PICTURE));EscherBSERecord bse = ((HSSFWorkbook)((HSSFPatriarch)Patriarch).Sheet.Workbook).Workbook.GetBSERecord(pictureIndex);bse.Ref = (bse.Ref + 1);}" }, { "index": 5846, "before": "public DirectPostingsFormat(int minSkipCount, int lowFreqCutoff) {super(\"Direct\");this.minSkipCount = minSkipCount;this.lowFreqCutoff = lowFreqCutoff;}", "after": "public DirectPostingsFormat(int minSkipCount, int lowFreqCutoff): base(){_minSkipCount = minSkipCount;_lowFreqCutoff = lowFreqCutoff;}" }, { "index": 5847, "before": "public RecyclingByteBlockAllocator(int blockSize, int maxBufferedBlocks,Counter bytesUsed) {super(blockSize);freeByteBlocks = new byte[maxBufferedBlocks][];this.maxBufferedBlocks = maxBufferedBlocks;this.bytesUsed = bytesUsed;}", "after": "public RecyclingByteBlockAllocator(int blockSize, int maxBufferedBlocks, Counter bytesUsed): base(blockSize){freeByteBlocks = new byte[maxBufferedBlocks][];this.maxBufferedBlocks = maxBufferedBlocks;this.bytesUsed = bytesUsed;}" }, { "index": 5848, "before": "public int stemPrefix(char s[], int len) {for (int i = 0; i < prefixes.length; i++)if (startsWithCheckLength(s, len, prefixes[i]))return deleteN(s, 0, len, prefixes[i].length);return len;}", "after": "public virtual int StemPrefix(char[] s, int len){for (int i = 0; i < prefixes.Length; i++){if (StartsWithCheckLength(s, len, prefixes[i])){return StemmerUtil.DeleteN(s, 0, len, prefixes[i].Length);}}return len;}" }, { "index": 5849, "before": "public String toString() {final StringBuilder s = new StringBuilder();for (Entry q = head; q != null; q = q.next)describe(s, q.commit);return s.toString();}", "after": "public override string ToString(){StringBuilder s = new StringBuilder();for (DateRevQueue.Entry q = head; q != null; q = q.next){Describe(s, q.commit);}return s.ToString();}" }, { "index": 5850, "before": "public CodingErrorAction malformedInputAction() {return malformedInputAction;}", "after": "public virtual java.nio.charset.CodingErrorAction malformedInputAction(){return _malformedInputAction;}" }, { "index": 5851, "before": "public Result(IntsRef input, T output) {this.input = input;this.output = output;}", "after": "public Result(Int32sRef input, T output){this.Input = input;this.Output = output;}" }, { "index": 5852, "before": "public String getInflectionForm(int wordId) {return null; }", "after": "public string GetInflectionForm(int wordId){return null; }" }, { "index": 5853, "before": "public void removeComments() {remove1stProperty(PropertyIDMap.PID_COMMENTS);}", "after": "public void RemoveComments(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_COMMENTS);}" }, { "index": 5854, "before": "public GetBlacklistReportsResult getBlacklistReports(GetBlacklistReportsRequest request) {request = beforeClientExecution(request);return executeGetBlacklistReports(request);}", "after": "public virtual GetBlacklistReportsResponse GetBlacklistReports(GetBlacklistReportsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBlacklistReportsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBlacklistReportsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5855, "before": "public String getMessages() {return messageWriter != null ? messageWriter.toString() : \"\"; }", "after": "public virtual string GetMessages(){return messageWriter != null ? messageWriter.ToString() : string.Empty;}" }, { "index": 5856, "before": "public boolean equals(Object object) {if (!(object instanceof StringCharacterIterator)) {return false;}StringCharacterIterator it = (StringCharacterIterator) object;return string.equals(it.string) && start == it.start && end == it.end&& offset == it.offset;}", "after": "public override bool Equals(object @object){if (!(@object is java.text.StringCharacterIterator)){return false;}java.text.StringCharacterIterator it = (java.text.StringCharacterIterator)@object;return @string.Equals(it.@string) && start == it.start && end == it.end && offset== it.offset;}" }, { "index": 5857, "before": "public AddFacetToObjectResult addFacetToObject(AddFacetToObjectRequest request) {request = beforeClientExecution(request);return executeAddFacetToObject(request);}", "after": "public virtual AddFacetToObjectResponse AddFacetToObject(AddFacetToObjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddFacetToObjectRequestMarshaller.Instance;options.ResponseUnmarshaller = AddFacetToObjectResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5858, "before": "public ParseException generateParseException() {jj_expentries.clear();boolean[] la1tokens = new boolean[34];if (jj_kind >= 0) {la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 25; i++) {if (jj_la1[i] == jj_gen) {for (int j = 0; j < 32; j++) {if ((jj_la1_0[i] & (1<= 0){la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 10; i++){if (jj_la1[i] == jj_gen){for (int j = 0; j < 32; j++){if ((jj_la1_0[i] & (1 << j)) != 0){la1tokens[j] = true;}}}}for (int i = 0; i < 24; i++){if (la1tokens[i]){jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.Add(jj_expentry);}}jj_endpos = 0;Jj_rescan_token();Jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.Count][];for (int i = 0; i < jj_expentries.Count; i++){exptokseq[i] = jj_expentries[i];}return new ParseException(Token, exptokseq, QueryParserConstants.TokenImage);}" }, { "index": 5859, "before": "public final int correctOffset(int currentOff) {final int corrected = correct(currentOff);return (input instanceof CharFilter) ? ((CharFilter) input).correctOffset(corrected) : corrected;}", "after": "public int CorrectOffset(int currentOff){int corrected = Correct(currentOff);return (m_input is CharFilter) ? ((CharFilter)m_input).CorrectOffset(corrected) : corrected;}" }, { "index": 5860, "before": "public static ContinuableRecordOutput createForCountingOnly() {return new ContinuableRecordOutput(NOPOutput, -777); }", "after": "public static ContinuableRecordOutput CreateForCountingOnly(){return new ContinuableRecordOutput(NOPOutput, -777); }" }, { "index": 5861, "before": "public DisassociateAddressRequest(String publicIp) {setPublicIp(publicIp);}", "after": "public DisassociateAddressRequest(string publicIp){_publicIp = publicIp;}" }, { "index": 5862, "before": "public DescribeVirtualGatewaysResult describeVirtualGateways(DescribeVirtualGatewaysRequest request) {request = beforeClientExecution(request);return executeDescribeVirtualGateways(request);}", "after": "public virtual DescribeVirtualGatewaysResponse DescribeVirtualGateways(DescribeVirtualGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVirtualGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVirtualGatewaysResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5863, "before": "public void setSheetHidden(int sheetnum, boolean hidden) {setSheetHidden(sheetnum, hidden ? SheetVisibility.HIDDEN : SheetVisibility.VISIBLE);}", "after": "public void SetSheetHidden(int sheetnum, bool hidden){BoundSheetRecord bsr = boundsheets[sheetnum];bsr.IsHidden=hidden;}" }, { "index": 5864, "before": "public static Cell createCell(Row row, int column, String value, CellStyle style) {Cell cell = getCell(row, column);cell.setCellValue(cell.getRow().getSheet().getWorkbook().getCreationHelper().createRichTextString(value));if (style != null) {cell.setCellStyle(style);}return cell;}", "after": "public static ICell CreateCell(IRow row, int column, String value, ICellStyle style){ICell cell = GetCell(row, column);cell.SetCellValue(cell.Row.Sheet.Workbook.GetCreationHelper().CreateRichTextString(value));if (style != null){cell.CellStyle = style;}return cell;}" }, { "index": 5865, "before": "public CreateCacheParameterGroupRequest(String cacheParameterGroupName, String cacheParameterGroupFamily, String description) {setCacheParameterGroupName(cacheParameterGroupName);setCacheParameterGroupFamily(cacheParameterGroupFamily);setDescription(description);}", "after": "public CreateCacheParameterGroupRequest(string cacheParameterGroupName, string cacheParameterGroupFamily, string description){_cacheParameterGroupName = cacheParameterGroupName;_cacheParameterGroupFamily = cacheParameterGroupFamily;_description = description;}" }, { "index": 5866, "before": "public DirCacheEntry(byte[] path, int stage) {checkPath(path);if (stage < 0 || 3 < stage)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().invalidStageForPath,stage, toString(path)));info = new byte[INFO_LEN];infoOffset = 0;this.path = path;int flags = ((stage & 0x3) << 12);if (path.length < NAME_MASK)flags |= path.length;elseflags |= NAME_MASK;NB.encodeInt16(info, infoOffset + P_FLAGS, flags);}", "after": "public DirCacheEntry(byte[] newPath, int stage){if (!IsValidPath(newPath)){throw new InvalidPathException(ToString(newPath));}if (stage < 0 || 3 < stage){throw new ArgumentException(MessageFormat.Format(JGitText.Get().invalidStageForPath, stage, ToString(newPath)));}info = new byte[INFO_LEN];infoOffset = 0;path = newPath;int flags = ((stage & unchecked((int)(0x3))) << 12);if (path.Length < NAME_MASK){flags |= path.Length;}else{flags |= NAME_MASK;}NB.EncodeInt16(info, infoOffset + P_FLAGS, flags);}" }, { "index": 5867, "before": "public FileOutputStream(String path, boolean append) throws FileNotFoundException {this(new File(path), append);}", "after": "public FileOutputStream(string path, bool append) : this(new java.io.File(path),append){throw new System.NotImplementedException();}" }, { "index": 5868, "before": "public DescribeVolumesResult describeVolumes() {return describeVolumes(new DescribeVolumesRequest());}", "after": "public virtual DescribeVolumesResponse DescribeVolumes(){return DescribeVolumes(new DescribeVolumesRequest());}" }, { "index": 5869, "before": "public String toString() {return String.valueOf(label);}", "after": "public override string ToString(){return token.ToString();}" }, { "index": 5870, "before": "public MutableValue duplicate() {MutableValueDouble v = new MutableValueDouble();v.value = this.value;v.exists = this.exists;return v;}", "after": "public override MutableValue Duplicate(){MutableValueDouble v = new MutableValueDouble();v.Value = this.Value;v.Exists = this.Exists;return v;}" }, { "index": 5871, "before": "public boolean shouldBeRecursive() {for (byte b : pathRaw)if (b == '/')return true;return false;}", "after": "public override bool ShouldBeRecursive(){foreach (byte b in pathRaw){if (b == '/'){return true;}}return false;}" }, { "index": 5872, "before": "public boolean equals( Object o ) {return o instanceof BasqueStemmer;}", "after": "public override bool Equals(object o){return o is BasqueStemmer;}" }, { "index": 5873, "before": "public SheetBuilder setSheetName(String sheetName) {this.sheetName = sheetName;return this;}", "after": "public SheetBuilder SetSheetName(String sheetName){this.sheetName = sheetName;return this;}" }, { "index": 5874, "before": "public ListTimeLinesRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"ListTimeLines\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public ListTimeLinesRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"ListTimeLines\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 5875, "before": "public DescribeStackResourcesResult describeStackResources(DescribeStackResourcesRequest request) {request = beforeClientExecution(request);return executeDescribeStackResources(request);}", "after": "public virtual DescribeStackResourcesResponse DescribeStackResources(DescribeStackResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStackResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStackResourcesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5876, "before": "public UpdateBotResult updateBot(UpdateBotRequest request) {request = beforeClientExecution(request);return executeUpdateBot(request);}", "after": "public virtual UpdateBotResponse UpdateBot(UpdateBotRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBotRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5877, "before": "public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol) {return symbol >= minVocabSymbol&& symbol <= maxVocabSymbol&& !super.matches(symbol, minVocabSymbol, maxVocabSymbol);}", "after": "public override bool Matches(int symbol, int minVocabSymbol, int maxVocabSymbol){return symbol >= minVocabSymbol && symbol <= maxVocabSymbol && !base.Matches(symbol, minVocabSymbol, maxVocabSymbol);}" }, { "index": 5878, "before": "public void fillTo(int toIndex, int val) {while (count < toIndex)add(val);}", "after": "public virtual void FillTo(int toIndex, int val){while (count < toIndex){Add(val);}}" }, { "index": 5879, "before": "public static long[] grow(long[] array, int minSize) {assert minSize >= 0: \"size must be positive (got \" + minSize + \"): likely integer overflow?\";if (array.length < minSize) {return growExact(array, oversize(minSize, Long.BYTES));} elsereturn array;}", "after": "public static short[] Grow(short[] array, int minSize){Debug.Assert(minSize >= 0, \"size must be positive (got \" + minSize + \"): likely integer overflow?\");if (array.Length < minSize){short[] newArray = new short[Oversize(minSize, RamUsageEstimator.NUM_BYTES_INT16)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}" }, { "index": 5880, "before": "public ExportSnapshotResult exportSnapshot(ExportSnapshotRequest request) {request = beforeClientExecution(request);return executeExportSnapshot(request);}", "after": "public virtual ExportSnapshotResponse ExportSnapshot(ExportSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExportSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = ExportSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5881, "before": "public boolean hasChildOfType(short recordId) {return _childRecords.stream().anyMatch(r -> r.getRecordId() == recordId);}", "after": "public bool HasChildOfType(short recordId){for (IEnumerator iterator = ChildRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord r = (EscherRecord)iterator.Current;if (r.RecordId == recordId){return true;}}return false;}" }, { "index": 5882, "before": "public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {int bytesRemaining = readHeader( data, offset );thedata = IOUtils.safelyAllocate(bytesRemaining, MAX_RECORD_LENGTH);System.arraycopy( data, offset + 8, thedata, 0, bytesRemaining );return bytesRemaining + 8;}", "after": "public override int FillFields(byte[] data, int offset, IEscherRecordFactory recordFactory){int bytesRemaining = ReadHeader(data, offset);_thedata = new byte[bytesRemaining];Array.Copy(data, offset + 8, _thedata, 0, bytesRemaining);return bytesRemaining + 8;}" }, { "index": 5883, "before": "public RmCommand addFilepattern(String filepattern) {checkCallable();filepatterns.add(filepattern);return this;}", "after": "public virtual NGit.Api.RmCommand AddFilepattern(string filepattern){CheckCallable();filepatterns.AddItem(filepattern);return this;}" }, { "index": 5884, "before": "public GetEmailIdentityResult getEmailIdentity(GetEmailIdentityRequest request) {request = beforeClientExecution(request);return executeGetEmailIdentity(request);}", "after": "public virtual GetEmailIdentityResponse GetEmailIdentity(GetEmailIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEmailIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEmailIdentityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5885, "before": "public E remove(int location) {try {ListIterator it = listIterator(location);E result = it.next();it.remove();return result;} catch (NoSuchElementException e) {throw new IndexOutOfBoundsException();}}", "after": "public override E remove(int location){try{java.util.ListIterator it = listIterator(location);E result = it.next();it.remove();return result;}catch (java.util.NoSuchElementException){throw new System.IndexOutOfRangeException();}}" }, { "index": 5886, "before": "public CanonicalTreeParser next() {CanonicalTreeParser p = this;for (;;) {if (p.nextPtr == p.raw.length) {if (p.parent == null) {p.currPtr = p.nextPtr;return p;}p = (CanonicalTreeParser) p.parent;continue;}p.prevPtr = p.currPtr;p.currPtr = p.nextPtr;p.parseEntry();return p;}}", "after": "public virtual NGit.Treewalk.CanonicalTreeParser Next(){NGit.Treewalk.CanonicalTreeParser p = this;for (; ; ){if (p.nextPtr == p.raw.Length){if (p.parent == null){p.currPtr = p.nextPtr;return p;}p = (NGit.Treewalk.CanonicalTreeParser)p.parent;continue;}p.prevPtr = p.currPtr;p.currPtr = p.nextPtr;p.ParseEntry();return p;}}" }, { "index": 5887, "before": "public UpdateClusterConfigResult updateClusterConfig(UpdateClusterConfigRequest request) {request = beforeClientExecution(request);return executeUpdateClusterConfig(request);}", "after": "public virtual UpdateClusterConfigResponse UpdateClusterConfig(UpdateClusterConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateClusterConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateClusterConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5888, "before": "public Point(int x, int y) {this.x = x;this.y = y;}", "after": "public Point(int x, int y){this.x = x;this.y = y;}" }, { "index": 5889, "before": "public void cloneStyleFrom(ExtendedFormatRecord source) {field_1_font_index = source.field_1_font_index;field_2_format_index = source.field_2_format_index;field_3_cell_options = source.field_3_cell_options;field_4_alignment_options = source.field_4_alignment_options;field_5_indention_options = source.field_5_indention_options;field_6_border_options = source.field_6_border_options;field_7_palette_options = source.field_7_palette_options;field_8_adtl_palette_options = source.field_8_adtl_palette_options;field_9_fill_palette_options = source.field_9_fill_palette_options;}", "after": "public void CloneStyleFrom(ExtendedFormatRecord source){field_1_font_index = source.field_1_font_index;field_2_format_index = source.field_2_format_index;field_3_cell_options = source.field_3_cell_options;field_4_alignment_options = source.field_4_alignment_options;field_5_indention_options = source.field_5_indention_options;field_6_border_options = source.field_6_border_options;field_7_palette_options = source.field_7_palette_options;field_8_adtl_palette_options = source.field_8_adtl_palette_options;field_9_fill_palette_options = source.field_9_fill_palette_options;}" }, { "index": 5890, "before": "public GetInvitationConfigurationResult getInvitationConfiguration(GetInvitationConfigurationRequest request) {request = beforeClientExecution(request);return executeGetInvitationConfiguration(request);}", "after": "public virtual GetInvitationConfigurationResponse GetInvitationConfiguration(GetInvitationConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInvitationConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInvitationConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5891, "before": "public RevTag parseTag(AnyObjectId id) throws MissingObjectException,IncorrectObjectTypeException, IOException {RevObject c = parseAny(id);if (!(c instanceof RevTag))throw new IncorrectObjectTypeException(id.toObjectId(),Constants.TYPE_TAG);return (RevTag) c;}", "after": "public virtual RevTag ParseTag(AnyObjectId id){RevObject c = ParseAny(id);if (!(c is RevTag)){throw new IncorrectObjectTypeException(id.ToObjectId(), Constants.TYPE_TAG);}return (RevTag)c;}" }, { "index": 5892, "before": "public List matchAlmost(String key) {return matchAlmost(key, defaultNumReturnValues);}", "after": "public virtual IList MatchAlmost(string key){return MatchAlmost(key, defaultNumReturnValues);}" }, { "index": 5893, "before": "public boolean remove(Object o) {synchronized (Hashtable.this) {int oldSize = size;Hashtable.this.remove(o);return size != oldSize;}}", "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": 5894, "before": "public StringEval(String value) {if (value == null) {throw new IllegalArgumentException(\"value must not be null\");}_value = value;}", "after": "public StringEval(String value){if (value == null){throw new ArgumentException(\"value must not be null\");}this.value = value;}" }, { "index": 5895, "before": "public BatchGetOnPremisesInstancesResult batchGetOnPremisesInstances(BatchGetOnPremisesInstancesRequest request) {request = beforeClientExecution(request);return executeBatchGetOnPremisesInstances(request);}", "after": "public virtual BatchGetOnPremisesInstancesResponse BatchGetOnPremisesInstances(BatchGetOnPremisesInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetOnPremisesInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetOnPremisesInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5896, "before": "public void update(Config rc) {final List vlst = new ArrayList<>();vlst.clear();for (URIish u : getURIs())vlst.add(u.toPrivateString());rc.setStringList(SECTION, getName(), KEY_URL, vlst);vlst.clear();for (URIish u : getPushURIs())vlst.add(u.toPrivateString());rc.setStringList(SECTION, getName(), KEY_PUSHURL, vlst);vlst.clear();for (RefSpec u : getFetchRefSpecs())vlst.add(u.toString());rc.setStringList(SECTION, getName(), KEY_FETCH, vlst);vlst.clear();for (RefSpec u : getPushRefSpecs())vlst.add(u.toString());rc.setStringList(SECTION, getName(), KEY_PUSH, vlst);set(rc, KEY_UPLOADPACK, getUploadPack(), DEFAULT_UPLOAD_PACK);set(rc, KEY_RECEIVEPACK, getReceivePack(), DEFAULT_RECEIVE_PACK);set(rc, KEY_TAGOPT, getTagOpt().option(), TagOpt.AUTO_FOLLOW.option());set(rc, KEY_MIRROR, mirror, DEFAULT_MIRROR);set(rc, KEY_TIMEOUT, timeout, 0);}", "after": "public virtual void Update(Config rc){IList vlst = new AList();vlst.Clear();foreach (URIish u in URIs){vlst.AddItem(u.ToPrivateString());}rc.SetStringList(SECTION, Name, KEY_URL, vlst);vlst.Clear();foreach (URIish u_1 in PushURIs){vlst.AddItem(u_1.ToPrivateString());}rc.SetStringList(SECTION, Name, KEY_PUSHURL, vlst);vlst.Clear();foreach (RefSpec u_2 in FetchRefSpecs){vlst.AddItem(u_2.ToString());}rc.SetStringList(SECTION, Name, KEY_FETCH, vlst);vlst.Clear();foreach (RefSpec u_3 in PushRefSpecs){vlst.AddItem(u_3.ToString());}rc.SetStringList(SECTION, Name, KEY_PUSH, vlst);Set(rc, KEY_UPLOADPACK, UploadPack, DEFAULT_UPLOAD_PACK);Set(rc, KEY_RECEIVEPACK, ReceivePack, DEFAULT_RECEIVE_PACK);Set(rc, KEY_TAGOPT, TagOpt.Option(), NGit.Transport.TagOpt.AUTO_FOLLOW.Option());Set(rc, KEY_MIRROR, mirror, DEFAULT_MIRROR);Set(rc, KEY_TIMEOUT, timeout, 0);if (!oldName.Equals(name)){rc.UnsetSection(SECTION, oldName);oldName = name;}}" }, { "index": 5897, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(\"[OBJ]\\n\");for (final SubRecord record : subrecords) {sb.append(\"SUBRECORD: \").append(record);}sb.append(\"[/OBJ]\\n\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(\"[OBJ]\\n\");for (int i = 0; i < subrecords.Count; i++){SubRecord record = subrecords[i];sb.Append(\"SUBRECORD: \").Append(record.ToString());}sb.Append(\"[/OBJ]\\n\");return sb.ToString();}" }, { "index": 5898, "before": "public StashCreateCommand setPerson(PersonIdent person) {this.person = person;return this;}", "after": "public virtual NGit.Api.StashCreateCommand SetPerson(PersonIdent person){this.person = person;return this;}" }, { "index": 5899, "before": "public GetDefaultCreditSpecificationResult getDefaultCreditSpecification(GetDefaultCreditSpecificationRequest request) {request = beforeClientExecution(request);return executeGetDefaultCreditSpecification(request);}", "after": "public virtual GetDefaultCreditSpecificationResponse GetDefaultCreditSpecification(GetDefaultCreditSpecificationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDefaultCreditSpecificationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDefaultCreditSpecificationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5900, "before": "public static IntervalSet of(int a) {IntervalSet s = new IntervalSet();s.add(a);return s;}", "after": "public static Antlr4.Runtime.Misc.IntervalSet Of(int a){Antlr4.Runtime.Misc.IntervalSet s = new Antlr4.Runtime.Misc.IntervalSet();s.Add(a);return s;}" }, { "index": 5901, "before": "public static int idealFloatArraySize(int need) {return idealByteArraySize(need * 4) / 4;}", "after": "public static int idealFloatArraySize(int need){return idealByteArraySize(need * 4) / 4;}" }, { "index": 5902, "before": "public GetJobManifestResult getJobManifest(GetJobManifestRequest request) {request = beforeClientExecution(request);return executeGetJobManifest(request);}", "after": "public virtual GetJobManifestResponse GetJobManifest(GetJobManifestRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetJobManifestRequestMarshaller.Instance;options.ResponseUnmarshaller = GetJobManifestResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5903, "before": "public ListGroupMembersResult listGroupMembers(ListGroupMembersRequest request) {request = beforeClientExecution(request);return executeListGroupMembers(request);}", "after": "public virtual ListGroupMembersResponse ListGroupMembers(ListGroupMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGroupMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGroupMembersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5904, "before": "public CreateMatchmakingConfigurationResult createMatchmakingConfiguration(CreateMatchmakingConfigurationRequest request) {request = beforeClientExecution(request);return executeCreateMatchmakingConfiguration(request);}", "after": "public virtual CreateMatchmakingConfigurationResponse CreateMatchmakingConfiguration(CreateMatchmakingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateMatchmakingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateMatchmakingConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5905, "before": "public GetQueryResultsResult getQueryResults(GetQueryResultsRequest request) {request = beforeClientExecution(request);return executeGetQueryResults(request);}", "after": "public virtual GetQueryResultsResponse GetQueryResults(GetQueryResultsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetQueryResultsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetQueryResultsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5906, "before": "public int[] lookupSegmentation(int phraseID) {return segmentations[phraseID];}", "after": "public int[] LookupSegmentation(int phraseID){return segmentations[phraseID];}" }, { "index": 5907, "before": "public StartTextTranslationJobResult startTextTranslationJob(StartTextTranslationJobRequest request) {request = beforeClientExecution(request);return executeStartTextTranslationJob(request);}", "after": "public virtual StartTextTranslationJobResponse StartTextTranslationJob(StartTextTranslationJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartTextTranslationJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StartTextTranslationJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5908, "before": "public final ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {double val;try {ValueEval ve = OperandResolver.getSingleValue(arg0, srcRowIndex, srcColumnIndex);val = OperandResolver.coerceValueToDouble(ve);} catch (EvaluationException e) {return e.getErrorEval();}if (val < 0) {return ErrorEval.NUM_ERROR;}return new NumberEval(getCalField(val));}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){double val;try{ValueEval ve = OperandResolver.GetSingleValue(arg0, srcRowIndex, srcColumnIndex);val = OperandResolver.CoerceValueToDouble(ve);}catch (EvaluationException e){return e.GetErrorEval();}if (val < 0){return ErrorEval.NUM_ERROR;}return new NumberEval(GetCalField(val));}" }, { "index": 5909, "before": "public GetAutoSnapshotsResult getAutoSnapshots(GetAutoSnapshotsRequest request) {request = beforeClientExecution(request);return executeGetAutoSnapshots(request);}", "after": "public virtual GetAutoSnapshotsResponse GetAutoSnapshots(GetAutoSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAutoSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAutoSnapshotsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5910, "before": "public RestoreDBInstanceToPointInTimeRequest(String sourceDBInstanceIdentifier, String targetDBInstanceIdentifier) {setSourceDBInstanceIdentifier(sourceDBInstanceIdentifier);setTargetDBInstanceIdentifier(targetDBInstanceIdentifier);}", "after": "public RestoreDBInstanceToPointInTimeRequest(string sourceDBInstanceIdentifier, string targetDBInstanceIdentifier){_sourceDBInstanceIdentifier = sourceDBInstanceIdentifier;_targetDBInstanceIdentifier = targetDBInstanceIdentifier;}" }, { "index": 5911, "before": "public boolean isDryRun() {return dryRun;}", "after": "public virtual bool IsDryRun(){return dryRun;}" }, { "index": 5912, "before": "public static boolean equals(Object[] array1, Object[] array2) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length != array2.length) {return false;}for (int i = 0; i < array1.length; i++) {Object e1 = array1[i], e2 = array2[i];if (!(e1 == null ? e2 == null : e1.equals(e2))) {return false;}}return true;}", "after": "public static bool equals(object[] array1, object[] array2){if (array1 == array2){return true;}if (array1 == null || array2 == null || array1.Length != array2.Length){return false;}{for (int i = 0; i < array1.Length; i++){object e1 = array1[i];object e2 = array2[i];if (!(e1 == null ? e2 == null : e1.Equals(e2))){return false;}}}return true;}" }, { "index": 5913, "before": "public boolean isSame(Formula other) {return Arrays.equals(_byteEncoding, other._byteEncoding);}", "after": "public bool IsSame(Formula other){return Arrays.Equals(_byteEncoding, other._byteEncoding);}" }, { "index": 5914, "before": "public ObjectId idFor(TreeFormatter formatter) {return formatter.computeId(this);}", "after": "public override ObjectId IdFor(TreeFormatter formatter){return Delegate().IdFor(formatter);}" }, { "index": 5915, "before": "public static int[] grow(int[] array) {return grow(array, 1 + array.length);}", "after": "public static int[] Grow(int[] array){return Grow(array, 1 + array.Length);}" }, { "index": 5916, "before": "public DescribeReservedDBInstancesResult describeReservedDBInstances(DescribeReservedDBInstancesRequest request) {request = beforeClientExecution(request);return executeDescribeReservedDBInstances(request);}", "after": "public virtual DescribeReservedDBInstancesResponse DescribeReservedDBInstances(DescribeReservedDBInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedDBInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedDBInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5917, "before": "public String toString() {StringBuilder b = new StringBuilder();b.append(subs.length).append(\" subs: \");for(int i=0;i(request, options);}" }, { "index": 5921, "before": "public static long getLastCommitGeneration(Directory directory) throws IOException {return getLastCommitGeneration(directory.listAll());}", "after": "public static long GetLastCommitGeneration(Directory directory){try{return GetLastCommitGeneration(directory.ListAll());}catch (DirectoryNotFoundException){return -1;}}" }, { "index": 5922, "before": "public SearchTransitGatewayRoutesResult searchTransitGatewayRoutes(SearchTransitGatewayRoutesRequest request) {request = beforeClientExecution(request);return executeSearchTransitGatewayRoutes(request);}", "after": "public virtual SearchTransitGatewayRoutesResponse SearchTransitGatewayRoutes(SearchTransitGatewayRoutesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchTransitGatewayRoutesRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchTransitGatewayRoutesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5923, "before": "public ListCompilationJobsResult listCompilationJobs(ListCompilationJobsRequest request) {request = beforeClientExecution(request);return executeListCompilationJobs(request);}", "after": "public virtual ListCompilationJobsResponse ListCompilationJobs(ListCompilationJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListCompilationJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListCompilationJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5924, "before": "public static Query createJoinQuery(String fromField,boolean multipleValuesPerDocument,String toField,Query fromQuery,IndexSearcher fromSearcher,ScoreMode scoreMode) throws IOException {final GenericTermsCollector termsWithScoreCollector;if (multipleValuesPerDocument) {Function mvFunction = DocValuesTermsCollector.sortedSetDocValues(fromField);termsWithScoreCollector = GenericTermsCollector.createCollectorMV(mvFunction, scoreMode);} else {Function svFunction = DocValuesTermsCollector.binaryDocValues(fromField);termsWithScoreCollector = GenericTermsCollector.createCollectorSV(svFunction, scoreMode);}return createJoinQuery(multipleValuesPerDocument, toField, fromQuery, fromField, fromSearcher, scoreMode, termsWithScoreCollector);}", "after": "public static Query CreateJoinQuery(string fromField, bool multipleValuesPerDocument, string toField, Query fromQuery, IndexSearcher fromSearcher, ScoreMode scoreMode){switch (scoreMode){case ScoreMode.None:TermsCollector termsCollector = TermsCollector.Create(fromField, multipleValuesPerDocument);fromSearcher.Search(fromQuery, termsCollector);return new TermsQuery(toField, fromQuery, termsCollector.CollectorTerms);case ScoreMode.Total:case ScoreMode.Max:case ScoreMode.Avg:TermsWithScoreCollector termsWithScoreCollector = TermsWithScoreCollector.Create(fromField, multipleValuesPerDocument, scoreMode);fromSearcher.Search(fromQuery, termsWithScoreCollector);return new TermsIncludingScoreQuery(toField, multipleValuesPerDocument, termsWithScoreCollector.CollectedTerms, termsWithScoreCollector.ScoresPerTerm, fromQuery);default:throw new System.ArgumentException(string.Format(\"Score mode {0} isn't supported.\", scoreMode));}}" }, { "index": 5925, "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() );System.arraycopy( field_pictureData, 0, data, offset + 4, field_pictureData.length );listener.afterRecordSerialize(offset + 4 + field_pictureData.length, getRecordId(), field_pictureData.length + 4, this);return field_pictureData.length + 4;}", "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);Array.Copy(field_pictureData, 0, data, offset + 4, field_pictureData.Length);listener.AfterRecordSerialize(offset + 4 + field_pictureData.Length, RecordId, field_pictureData.Length + 4, this);return field_pictureData.Length + 4;}" }, { "index": 5926, "before": "public SeekStatus seekCeil(BytesRef term) {final int ord = findTerm(term);if (ord >= 0) {termOrd = ord;setTerm();return SeekStatus.FOUND;} else if (ord == -terms.length-1) {return SeekStatus.END;} else {termOrd = -ord - 1;setTerm();return SeekStatus.NOT_FOUND;}}", "after": "public override SeekStatus SeekCeil(BytesRef term){int ord = FindTerm(term);if (ord >= 0){termOrd = ord;SetTerm();return SeekStatus.FOUND;}else if (ord == -outerInstance.terms.Length - 1){return SeekStatus.END;}else{termOrd = -ord - 1;SetTerm();return SeekStatus.NOT_FOUND;}}" }, { "index": 5927, "before": "public DeleteLoadBalancerResult deleteLoadBalancer(DeleteLoadBalancerRequest request) {request = beforeClientExecution(request);return executeDeleteLoadBalancer(request);}", "after": "public virtual DeleteLoadBalancerResponse DeleteLoadBalancer(DeleteLoadBalancerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLoadBalancerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLoadBalancerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5928, "before": "public DeleteVpcPeeringAuthorizationResult deleteVpcPeeringAuthorization(DeleteVpcPeeringAuthorizationRequest request) {request = beforeClientExecution(request);return executeDeleteVpcPeeringAuthorization(request);}", "after": "public virtual DeleteVpcPeeringAuthorizationResponse DeleteVpcPeeringAuthorization(DeleteVpcPeeringAuthorizationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpcPeeringAuthorizationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpcPeeringAuthorizationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5929, "before": "public SendAnnouncementResult sendAnnouncement(SendAnnouncementRequest request) {request = beforeClientExecution(request);return executeSendAnnouncement(request);}", "after": "public virtual SendAnnouncementResponse SendAnnouncement(SendAnnouncementRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendAnnouncementRequestMarshaller.Instance;options.ResponseUnmarshaller = SendAnnouncementResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5930, "before": "@Override public int lastIndexOf(Object object) {final int size;final Object[] array;synchronized (mutex) {size = list.size();array = new Object[size];list.toArray(array);}if (object != null) {for (int i = size - 1; i >= 0; i--) {if (object.equals(array[i])) {return i;}}} else {for (int i = size - 1; i >= 0; i--) {if (array[i] == null) {return i;}}}return -1;}", "after": "public virtual int lastIndexOf(object @object){int size_1;object[] array;lock (mutex){size_1 = list.size();array = new object[size_1];list.toArray(array);}if (@object != null){{for (int i = size_1 - 1; i >= 0; i--){if (@object.Equals(array[i])){return i;}}}}else{{for (int i = size_1 - 1; i >= 0; i--){if (array[i] == null){return i;}}}}return -1;}" }, { "index": 5931, "before": "public SortedDocValues getSortedDocValues(String field) {return getSortedDocValues(field, DocValuesType.SORTED);}", "after": "public override SortedDocValues GetSortedDocValues(string field){return null;}" }, { "index": 5932, "before": "public void setBaseline() {setBaseline(clock.get());}", "after": "public virtual void SetBaseline(){SetBaseline(clock.Get());}" }, { "index": 5933, "before": "public final IntBuffer put(int[] src, int srcOffset, int intCount) {throw new ReadOnlyBufferException();}", "after": "public sealed override java.nio.IntBuffer put(int[] src, int srcOffset, int intCount){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 5934, "before": "public SortingBits(final Bits in, Sorter.DocMap docMap) {this.in = in;this.docMap = docMap;}", "after": "public SortingBits(IBits input, Sorter.DocMap docMap){this.@in = input;this.docMap = docMap;}" }, { "index": 5935, "before": "public static String quoteEscape(String original) {String result = original;if (result.indexOf('\\\"') >= 0) {result = result.replace(\"\\\"\", ESCAPED_QUOTE);}if(result.indexOf(COMMA) >= 0) {result = \"\\\"\" + result + \"\\\"\";}return result;}", "after": "public static string QuoteEscape(string original){string result = original;if (result.IndexOf('\\\"') >= 0){result.Replace(\"\\\"\", ESCAPED_QUOTE);}if (result.IndexOf(COMMA) >= 0){result = \"\\\"\" + result + \"\\\"\";}return result;}" }, { "index": 5936, "before": "public static double fv(double r, double n, double y, double p, boolean t) {double retval = 0;if (r == 0) {retval = -1*(p+(n*y));}else {double r1 = r + 1;retval =((1-Math.pow(r1, n)) * (t ? r1 : 1) * y ) / r-p*Math.pow(r1, n);}return retval;}", "after": "public static double fv(double r, double n, double y, double p, bool t){double retval = 0;if (r == 0){retval = -1 * (p + (n * y));}else{double r1 = r + 1;retval = ((1 - Math.Pow(r1, n)) * (t ? r1 : 1) * y) / r-p * Math.Pow(r1, n);}return retval;}" }, { "index": 5937, "before": "public CharBuffer put(int index, char c) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.CharBuffer put(int index, char c){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 5938, "before": "public UpdateLifecyclePolicyResult updateLifecyclePolicy(UpdateLifecyclePolicyRequest request) {request = beforeClientExecution(request);return executeUpdateLifecyclePolicy(request);}", "after": "public virtual UpdateLifecyclePolicyResponse UpdateLifecyclePolicy(UpdateLifecyclePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateLifecyclePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateLifecyclePolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5939, "before": "public CreateNotebookInstanceLifecycleConfigResult createNotebookInstanceLifecycleConfig(CreateNotebookInstanceLifecycleConfigRequest request) {request = beforeClientExecution(request);return executeCreateNotebookInstanceLifecycleConfig(request);}", "after": "public virtual CreateNotebookInstanceLifecycleConfigResponse CreateNotebookInstanceLifecycleConfig(CreateNotebookInstanceLifecycleConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNotebookInstanceLifecycleConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNotebookInstanceLifecycleConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5940, "before": "public boolean add(String text) {return map.put(text, PLACEHOLDER) == null;}", "after": "public virtual bool Add(string text){return map.Put(text);}" }, { "index": 5941, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_axisType);out.writeInt(field_2_x);out.writeInt(field_3_y);out.writeInt(field_4_width);out.writeInt(field_5_height);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_axisType);out1.WriteInt(field_2_x);out1.WriteInt(field_3_y);out1.WriteInt(field_4_width);out1.WriteInt(field_5_height);}" }, { "index": 5942, "before": "public GetJourneyResult getJourney(GetJourneyRequest request) {request = beforeClientExecution(request);return executeGetJourney(request);}", "after": "public virtual GetJourneyResponse GetJourney(GetJourneyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetJourneyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetJourneyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5943, "before": "public PrecedenceQueryNodeProcessorPipeline(QueryConfigHandler queryConfig) {super(queryConfig);for (int i = 0 ; i < size() ; i++) {if (get(i).getClass().equals(BooleanQuery2ModifierNodeProcessor.class)) {remove(i--);}}add(new BooleanModifiersQueryNodeProcessor());}", "after": "public PrecedenceQueryNodeProcessorPipeline(QueryConfigHandler queryConfig): base(queryConfig){for (int i = 0; i < Count; i++){if (this[i].GetType().Equals(typeof(BooleanQuery2ModifierNodeProcessor))){RemoveAt(i--);}}Add(new BooleanModifiersQueryNodeProcessor());}" }, { "index": 5944, "before": "public static boolean startsWith(byte[] ref, BytesRef prefix) {if (ref.length < prefix.length) {return false;}return Arrays.equals(ref, 0, prefix.length,prefix.bytes, prefix.offset, prefix.offset + prefix.length);}", "after": "public static bool StartsWith(BytesRef @ref, BytesRef prefix) {return SliceEquals(@ref, prefix, 0);}" }, { "index": 5945, "before": "public DeleteUsageReportSubscriptionResult deleteUsageReportSubscription(DeleteUsageReportSubscriptionRequest request) {request = beforeClientExecution(request);return executeDeleteUsageReportSubscription(request);}", "after": "public virtual DeleteUsageReportSubscriptionResponse DeleteUsageReportSubscription(DeleteUsageReportSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUsageReportSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUsageReportSubscriptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5946, "before": "public File[] listFiles(FilenameFilter filter) {return filenamesToFiles(list(filter));}", "after": "public java.io.File[] listFiles(java.io.FilenameFilter filter){return filenamesToFiles(list(filter));}" }, { "index": 5947, "before": "public void respondActivityTaskFailed(RespondActivityTaskFailedRequest request) {request = beforeClientExecution(request);executeRespondActivityTaskFailed(request);}", "after": "public virtual RespondActivityTaskFailedResponse RespondActivityTaskFailed(RespondActivityTaskFailedRequest request){var options = new InvokeOptions();options.RequestMarshaller = RespondActivityTaskFailedRequestMarshaller.Instance;options.ResponseUnmarshaller = RespondActivityTaskFailedResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5948, "before": "public ListIdentitiesResult listIdentities() {return listIdentities(new ListIdentitiesRequest());}", "after": "public virtual ListIdentitiesResponse ListIdentities(){return ListIdentities(new ListIdentitiesRequest());}" }, { "index": 5949, "before": "@Override public int compare(T o1, T o2) {Comparable c2 = (Comparable) o2;return c2.compareTo(o1);}", "after": "public int compare(T o1, T o2){java.lang.Comparable c2 = (java.lang.Comparable)o2;return c2.compareTo(o1);}" }, { "index": 5950, "before": "public ListFindingsResult listFindings(ListFindingsRequest request) {request = beforeClientExecution(request);return executeListFindings(request);}", "after": "public virtual ListFindingsResponse ListFindings(ListFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFindingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5951, "before": "public boolean contains(final int o){boolean rval = false;for (int j = 0; !rval && (j < _limit); j++){if (_array[ j ] == o){rval = true;}}return rval;}", "after": "public bool Contains(int o){bool rval = false;for (int j = 0; !rval && (j < _limit); j++){if (_array[j] == o){rval = true;}}return rval;}" }, { "index": 5952, "before": "public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {if (args.length < 2) {return ErrorEval.VALUE_INVALID;}try {int ix = evaluateFirstArg(args[0], srcRowIndex, srcColumnIndex);if (ix < 1 || ix >= args.length) {return ErrorEval.VALUE_INVALID;}ValueEval result = OperandResolver.getSingleValue(args[ix], srcRowIndex, srcColumnIndex);if (result == MissingArgEval.instance) {return BlankEval.instance;}return result;} catch (EvaluationException e) {return e.getErrorEval();}}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){if (args.Length < 2){return ErrorEval.VALUE_INVALID;}try{int ix = EvaluateFirstArg(args[0], srcRowIndex, srcColumnIndex);if (ix < 1 || ix >= args.Length){return ErrorEval.VALUE_INVALID;}ValueEval result = OperandResolver.GetSingleValue(args[ix], srcRowIndex, srcColumnIndex);if (result == MissingArgEval.instance){return BlankEval.instance;}return result;}catch (EvaluationException e){return e.GetErrorEval();}}" }, { "index": 5953, "before": "public DatRecord clone() {return copy();}", "after": "public override Object Clone(){DatRecord rec = new DatRecord();rec.field_1_options = field_1_options;return rec;}" }, { "index": 5954, "before": "public GlobalReplicationGroup createGlobalReplicationGroup(CreateGlobalReplicationGroupRequest request) {request = beforeClientExecution(request);return executeCreateGlobalReplicationGroup(request);}", "after": "public virtual CreateGlobalReplicationGroupResponse CreateGlobalReplicationGroup(CreateGlobalReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateGlobalReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateGlobalReplicationGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5955, "before": "public String getText(Interval interval) {if (interval.a < 0 || interval.b < interval.a - 1) {throw new IllegalArgumentException(\"invalid interval\");}int bufferStartIndex = getBufferStartIndex();if (n > 0 && data[n - 1] == Character.MAX_VALUE) {if (interval.a + interval.length() > bufferStartIndex + n) {throw new IllegalArgumentException(\"the interval extends past the end of the stream\");}}if (interval.a < bufferStartIndex || interval.b >= bufferStartIndex + n) {throw new UnsupportedOperationException(\"interval \"+interval+\" outside buffer: \"+bufferStartIndex+\"..\"+(bufferStartIndex+n-1));}int i = interval.a - bufferStartIndex;return new String(data, i, interval.length());}", "after": "public virtual string GetText(Interval interval){if (interval.a < 0 || interval.b < interval.a - 1){throw new ArgumentException(\"invalid interval\");}int bufferStartIndex = BufferStartIndex;if (n > 0 && data[n - 1] == IntStreamConstants.EOF){if (interval.a + interval.Length > bufferStartIndex + n){throw new ArgumentException(\"the interval extends past the end of the stream\");}}if (interval.a < bufferStartIndex || interval.b >= bufferStartIndex + n){throw new NotSupportedException(\"interval \" + interval + \" outside buffer: \" + bufferStartIndex + \"..\" + (bufferStartIndex + n - 1));}int i = interval.a - bufferStartIndex;var sb = new StringBuilder(interval.Length);for (int offset = 0; offset < interval.Length; offset++) {sb.Append(Char.ConvertFromUtf32(data[i + offset]));}return sb.ToString();}" }, { "index": 5956, "before": "public void addClass(String chargroup) {if (chargroup.length() > 0) {char equivChar = chargroup.charAt(0);char[] key = new char[2];key[1] = 0;for (int i = 0; i < chargroup.length(); i++) {key[0] = chargroup.charAt(i);classmap.insert(key, 0, equivChar);}}}", "after": "public virtual void AddClass(string chargroup){if (chargroup.Length > 0){char equivChar = chargroup[0];char[] key = new char[2];key[1] = (char)0;for (int i = 0; i < chargroup.Length; i++){key[0] = chargroup[i];m_classmap.Insert(key, 0, equivChar);}}}" }, { "index": 5957, "before": "public MultiPhraseQuery build() {int[] positionsArray = new int[this.positions.size()];for (int i = 0; i < this.positions.size(); ++i) {positionsArray[i] = this.positions.get(i);}Term[][] termArraysArray = termArrays.toArray(new Term[termArrays.size()][]);return new MultiPhraseQuery(field, termArraysArray, positionsArray, slop);}", "after": "public virtual StemmerOverrideMap Build(){ByteSequenceOutputs outputs = ByteSequenceOutputs.Singleton;Builder builder = new Builder(FST.INPUT_TYPE.BYTE4, outputs);int[] sort = hash.Sort(BytesRef.UTF8SortedAsUnicodeComparer);Int32sRef intsSpare = new Int32sRef();int size = hash.Count;for (int i = 0; i < size; i++){int id = sort[i];BytesRef bytesRef = hash.Get(id, spare);UnicodeUtil.UTF8toUTF32(bytesRef, intsSpare);builder.Add(intsSpare, new BytesRef(outputValues[id]));}return new StemmerOverrideMap(builder.Finish(), ignoreCase);}" }, { "index": 5958, "before": "public DFRSimilarity(BasicModel basicModel,AfterEffect afterEffect,Normalization normalization) {if (basicModel == null || afterEffect == null || normalization == null) {throw new NullPointerException(\"null parameters not allowed.\");}this.basicModel = basicModel;this.afterEffect = afterEffect;this.normalization = normalization;}", "after": "public DFRSimilarity(BasicModel basicModel, AfterEffect afterEffect, Normalization normalization){if (basicModel == null || afterEffect == null || normalization == null){throw new System.NullReferenceException(\"null parameters not allowed.\");}this.m_basicModel = basicModel;this.m_afterEffect = afterEffect;this.m_normalization = normalization;}" }, { "index": 5959, "before": "public ResetSnapshotAttributeRequest(String snapshotId, SnapshotAttributeName attribute) {setSnapshotId(snapshotId);setAttribute(attribute.toString());}", "after": "public ResetSnapshotAttributeRequest(string snapshotId, SnapshotAttributeName attribute){_snapshotId = snapshotId;_attribute = attribute;}" }, { "index": 5960, "before": "public V get(CharSequence cs) {if(cs == null)throw new NullPointerException();return null;}", "after": "public override V Get(ICharSequence text){if (text == null){throw new ArgumentNullException(\"text\");}return default(V);}" }, { "index": 5961, "before": "public String getScheme() {return scheme;}", "after": "public string getScheme(){return scheme;}" }, { "index": 5962, "before": "public void seekExact(long ord) {throw new UnsupportedOperationException();}", "after": "public override void SeekExact(long ord){throw new System.NotSupportedException();}" }, { "index": 5963, "before": "public XPathElement(String nodeName) {this.nodeName = nodeName;}", "after": "public XPathElement(string nodeName){this.nodeName = nodeName;}" }, { "index": 5964, "before": "public DeleteAccountResult deleteAccount(DeleteAccountRequest request) {request = beforeClientExecution(request);return executeDeleteAccount(request);}", "after": "public virtual DeleteAccountResponse DeleteAccount(DeleteAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAccountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5965, "before": "public boolean matches(ParseTree tree, ParseTreePattern pattern) {MultiMap labels = new MultiMap();ParseTree mismatchedNode = matchImpl(tree, pattern.getPatternTree(), labels);return mismatchedNode == null;}", "after": "public virtual bool Matches(IParseTree tree, ParseTreePattern pattern){MultiMap labels = new MultiMap();IParseTree mismatchedNode = MatchImpl(tree, pattern.PatternTree, labels);return mismatchedNode == null;}" }, { "index": 5966, "before": "public PredictionContext get(PredictionContext ctx) {return cache.get(ctx);}", "after": "public PredictionContext Get(PredictionContext ctx){return cache.Get(ctx);}" }, { "index": 5967, "before": "public SpotPlacement(String availabilityZone) {setAvailabilityZone(availabilityZone);}", "after": "public SpotPlacement(string availabilityZone){_availabilityZone = availabilityZone;}" }, { "index": 5968, "before": "public DescribeFleetInstancesResult describeFleetInstances(DescribeFleetInstancesRequest request) {request = beforeClientExecution(request);return executeDescribeFleetInstances(request);}", "after": "public virtual DescribeFleetInstancesResponse DescribeFleetInstances(DescribeFleetInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFleetInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFleetInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5969, "before": "public void setWorkingTreeIterator(WorkingTreeIterator workingTreeIterator) {this.workingTreeIterator = workingTreeIterator;}", "after": "public virtual void SetWorkingTreeIterator(WorkingTreeIterator workingTreeIterator){this.workingTreeIterator = workingTreeIterator;}" }, { "index": 5970, "before": "public static long pop_array(long[] arr, int wordOffset, int numWords) {long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i) {popCount += Long.bitCount(arr[i]);}return popCount;}", "after": "public static long Pop_Array(long[] arr, int wordOffset, int numWords){long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i){popCount += arr[i].PopCount();}return popCount;}" }, { "index": 5971, "before": "public static FileKey lenient(File directory, FS fs) {final File gitdir = resolve(directory, fs);return new FileKey(gitdir != null ? gitdir : directory, fs);}", "after": "public static RepositoryCache.FileKey Lenient(FilePath directory, FS fs){FilePath gitdir = Resolve(directory, fs);return new RepositoryCache.FileKey(gitdir != null ? gitdir : directory, fs);}" }, { "index": 5972, "before": "public ObjectWalk(ObjectReader or, int depth) {super(or);this.depth = depth;this.deepenNots = Collections.emptyList();this.UNSHALLOW = newFlag(\"UNSHALLOW\"); this.REINTERESTING = newFlag(\"REINTERESTING\"); this.DEEPEN_NOT = newFlag(\"DEEPEN_NOT\"); }", "after": "public ObjectWalk(ObjectReader or, int depth) : base(or){this.depth = depth;this.UNSHALLOW = NewFlag(\"UNSHALLOW\");this.REINTERESTING = NewFlag(\"REINTERESTING\");}" }, { "index": 5973, "before": "public RegisterImageRequest(String imageLocation) {setImageLocation(imageLocation);}", "after": "public RegisterImageRequest(string imageLocation){_imageLocation = imageLocation;}" }, { "index": 5974, "before": "public void write(String s) {reserve(s.length());s.getChars(0,s.length(),buf, len);len +=s.length();}", "after": "public virtual void Write(string s){EnsureCapacity(s.Length);s.CopyTo(0, m_buf, m_len, s.Length - 0);m_len += s.Length;}" }, { "index": 5975, "before": "public RefCountedRevision(Revision revision) {this.revision = revision;}", "after": "public RefCountedRevision(IRevision revision){Revision = revision;}" }, { "index": 5976, "before": "public ListTagsForResourcesResult listTagsForResources(ListTagsForResourcesRequest request) {request = beforeClientExecution(request);return executeListTagsForResources(request);}", "after": "public virtual ListTagsForResourcesResponse ListTagsForResources(ListTagsForResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTagsForResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTagsForResourcesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5977, "before": "public byte readByte() {return bytes[pos++];}", "after": "public override byte ReadByte(){return bytes[pos++];}" }, { "index": 5978, "before": "public GlobalReplicationGroup deleteGlobalReplicationGroup(DeleteGlobalReplicationGroupRequest request) {request = beforeClientExecution(request);return executeDeleteGlobalReplicationGroup(request);}", "after": "public virtual DeleteGlobalReplicationGroupResponse DeleteGlobalReplicationGroup(DeleteGlobalReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGlobalReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGlobalReplicationGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5979, "before": "public IntBuffer asReadOnlyBuffer() {return duplicate();}", "after": "public override java.nio.IntBuffer asReadOnlyBuffer(){return duplicate();}" }, { "index": 5980, "before": "public DescribeFileSystemPolicyResult describeFileSystemPolicy(DescribeFileSystemPolicyRequest request) {request = beforeClientExecution(request);return executeDescribeFileSystemPolicy(request);}", "after": "public virtual DescribeFileSystemPolicyResponse DescribeFileSystemPolicy(DescribeFileSystemPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFileSystemPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFileSystemPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5981, "before": "public ListAttributesResult listAttributes(ListAttributesRequest request) {request = beforeClientExecution(request);return executeListAttributes(request);}", "after": "public virtual ListAttributesResponse ListAttributes(ListAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5982, "before": "public ModifyStrategyTargetRequest() {super(\"aegis\", \"2016-11-11\", \"ModifyStrategyTarget\", \"vipaegis\");setMethod(MethodType.POST);}", "after": "public ModifyStrategyTargetRequest(): base(\"aegis\", \"2016-11-11\", \"ModifyStrategyTarget\", \"vipaegis\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 5983, "before": "public void removeFontRecord(FontRecord rec) {records.remove(rec); numfonts--;}", "after": "public void RemoveFontRecord(FontRecord rec){records.Remove(rec); numfonts--;}" }, { "index": 5984, "before": "public static Class lookupClass(String name) {return loader.lookupClass(name);}", "after": "public static Type LookupClass(string name){return loader.LookupClass(name);}" }, { "index": 5985, "before": "public void reset(TermsEnum terms, BytesRef term) {this.terms = terms;current = term;}", "after": "public void Reset(TermsEnum terms, BytesRef term){this.Terms = terms;Current = term;}" }, { "index": 5986, "before": "public LinkedDataRecord getDataValues(){return dataValues;}", "after": "public BRAIRecord GetDataValues(){return dataValues;}" }, { "index": 5987, "before": "public synchronized static DefaultProfile getProfile(String regionId, ICredentialProvider icredential) {profile = new DefaultProfile(regionId, icredential);return profile;}", "after": "public static DefaultProfile GetProfile(string regionId, ICredentialProvider icredential){_profile = new DefaultProfile(regionId, icredential);return _profile;}" }, { "index": 5988, "before": "public ListFieldLevelEncryptionProfilesResult listFieldLevelEncryptionProfiles(ListFieldLevelEncryptionProfilesRequest request) {request = beforeClientExecution(request);return executeListFieldLevelEncryptionProfiles(request);}", "after": "public virtual ListFieldLevelEncryptionProfilesResponse ListFieldLevelEncryptionProfiles(ListFieldLevelEncryptionProfilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFieldLevelEncryptionProfilesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFieldLevelEncryptionProfilesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5989, "before": "public RegisterTaskDefinitionResult registerTaskDefinition(RegisterTaskDefinitionRequest request) {request = beforeClientExecution(request);return executeRegisterTaskDefinition(request);}", "after": "public virtual RegisterTaskDefinitionResponse RegisterTaskDefinition(RegisterTaskDefinitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterTaskDefinitionRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterTaskDefinitionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5990, "before": "public String toString() {return String.format(\"type(%d)\", type);}", "after": "public override string ToString(){return string.Format(\"type({0})\", type);}" }, { "index": 5991, "before": "public DisableEnhancedMonitoringResult disableEnhancedMonitoring(DisableEnhancedMonitoringRequest request) {request = beforeClientExecution(request);return executeDisableEnhancedMonitoring(request);}", "after": "public virtual DisableEnhancedMonitoringResponse DisableEnhancedMonitoring(DisableEnhancedMonitoringRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableEnhancedMonitoringRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableEnhancedMonitoringResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5992, "before": "public NodeHash(FST fst, FST.BytesReader in) {table = new PagedGrowableWriter(16, 1<<27, 8, PackedInts.COMPACT);mask = 15;this.fst = fst;this.in = in;}", "after": "public NodeHash(FST fst, FST.BytesReader input){table = new PagedGrowableWriter(16, 1 << 30, 8, PackedInt32s.COMPACT);mask = 15;this.fst = fst;this.input = input;}" }, { "index": 5993, "before": "public static final String toString(ObjectId i) {return i != null ? i.name() : ZEROID_STR;}", "after": "public static string ToString(NGit.ObjectId i){return i != null ? i.Name : ZEROID_STR;}" }, { "index": 5994, "before": "public LittleEndianOutput createDelayedOutput(int size) {return this;}", "after": "public ILittleEndianOutput CreateDelayedOutput(int size){return this;}" }, { "index": 5995, "before": "public String toFormulaString(FormulaRenderingWorkbook book) {return book.getNameText(this);}", "after": "public String ToFormulaString(IFormulaRenderingWorkbook book){return book.GetNameText(this);}" }, { "index": 5996, "before": "public String toString() {return \"\" + \"\\n\"+ getChild().toString() + \"\\n\";}", "after": "public override string ToString(){return \"\" + \"\\n\"+ Child.ToString() + \"\\n\";}" }, { "index": 5997, "before": "public ListTagsResult listTags(ListTagsRequest request) {request = beforeClientExecution(request);return executeListTags(request);}", "after": "public virtual ListTagsResponse ListTags(ListTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTagsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5998, "before": "public ListTypeVersionsResult listTypeVersions(ListTypeVersionsRequest request) {request = beforeClientExecution(request);return executeListTypeVersions(request);}", "after": "public virtual ListTypeVersionsResponse ListTypeVersions(ListTypeVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTypeVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTypeVersionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5999, "before": "public ObjectLinkRecord(RecordInputStream in) {field_1_anchorId = in.readShort();field_2_link1 = in.readShort();field_3_link2 = in.readShort();}", "after": "public ObjectLinkRecord(RecordInputStream in1){field_1_anchorId = in1.ReadShort();field_2_link1 = in1.ReadShort();field_3_link2 = in1.ReadShort();}" }, { "index": 6000, "before": "public String getPromptText() {return promptText;}", "after": "public virtual string GetPromptText(){return promptText;}" }, { "index": 6001, "before": "public static String toLowerCase(String in) {final StringBuilder r = new StringBuilder(in.length());for (int i = 0; i < in.length(); i++)r.append(toLowerCase(in.charAt(i)));return r.toString();}", "after": "public static string ToLowerCase(string @in){StringBuilder r = new StringBuilder(@in.Length);for (int i = 0; i < @in.Length; i++){r.Append(ToLowerCase(@in[i]));}return r.ToString();}" }, { "index": 6002, "before": "public static boolean isBeginRecord(int sid) {return sid == UserSViewBegin.sid;}", "after": "public static bool IsBeginRecord(int sid){return sid == UserSViewBegin.sid;}" }, { "index": 6003, "before": "public GetInstanceMetricDataResult getInstanceMetricData(GetInstanceMetricDataRequest request) {request = beforeClientExecution(request);return executeGetInstanceMetricData(request);}", "after": "public virtual GetInstanceMetricDataResponse GetInstanceMetricData(GetInstanceMetricDataRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInstanceMetricDataRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInstanceMetricDataResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6004, "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){Debug.Assert(otherState != null && otherState is BlockTermState);Debug.Assert(!doOrd || ((BlockTermState)otherState).Ord < outerInstance.numTerms);state.CopyFrom(otherState);seekPending = true;indexIsCurrent = false;term.CopyBytes(target);}" }, { "index": 6005, "before": "public NGramDistance(int size) {this.n = size;}", "after": "public NGramDistance(int size){this.n = size;}" }, { "index": 6006, "before": "public AllocateConnectionOnInterconnectResult allocateConnectionOnInterconnect(AllocateConnectionOnInterconnectRequest request) {request = beforeClientExecution(request);return executeAllocateConnectionOnInterconnect(request);}", "after": "public virtual AllocateConnectionOnInterconnectResponse AllocateConnectionOnInterconnect(AllocateConnectionOnInterconnectRequest request){var options = new InvokeOptions();options.RequestMarshaller = AllocateConnectionOnInterconnectRequestMarshaller.Instance;options.ResponseUnmarshaller = AllocateConnectionOnInterconnectResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6007, "before": "public StandardSyntaxParser(CharStream stream) {token_source = new StandardSyntaxParserTokenManager(stream);token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 25; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();}", "after": "public StandardSyntaxParser(ICharStream stream){TokenSource = new StandardSyntaxParserTokenManager(stream);Token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 28; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();}" }, { "index": 6008, "before": "public void serialize(LittleEndianOutput out) {_range.serialize(out);serializeExtraData(out);}", "after": "public override void Serialize(ILittleEndianOutput out1){_range.Serialize(out1);SerializeExtraData(out1);}" }, { "index": 6009, "before": "public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {return isDefaultField(field)? \"/\"+text+\"/\": field + \":/\" + text + \"/\";}", "after": "public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){return IsDefaultField(field) ? \"/\" + text + \"/\" : field + \":/\" + text + \"/\";}" }, { "index": 6010, "before": "public static boolean isRowBlockRecord(int sid) {switch (sid) {case RowRecord.sid:case BlankRecord.sid:case BoolErrRecord.sid:case FormulaRecord.sid:case LabelRecord.sid:case LabelSSTRecord.sid:case NumberRecord.sid:case RKRecord.sid:case ArrayRecord.sid:case SharedFormulaRecord.sid:case TableRecord.sid:return true;}return false;}", "after": "public static bool IsRowBlockRecord(int sid){switch (sid){case RowRecord.sid:case BlankRecord.sid:case BoolErrRecord.sid:case FormulaRecord.sid:case LabelRecord.sid:case LabelSSTRecord.sid:case NumberRecord.sid:case RKRecord.sid:case ArrayRecord.sid:case SharedFormulaRecord.sid:case TableRecord.sid:return true;}return false;}" }, { "index": 6011, "before": "public static final int endOfParagraph(byte[] b, int start) {int ptr = start;final int sz = b.length;while (ptr < sz && (b[ptr] != '\\n' && b[ptr] != '\\r'))ptr = nextLF(b, ptr);if (ptr > start && b[ptr - 1] == '\\n')ptr--;if (ptr > start && b[ptr - 1] == '\\r')ptr--;return ptr;}", "after": "public static int EndOfParagraph(byte[] b, int start){int ptr = start;int sz = b.Length;while (ptr < sz && b[ptr] != '\\n'){ptr = NextLF(b, ptr);}while (0 < ptr && start < ptr && b[ptr - 1] == '\\n'){ptr--;}return ptr;}" }, { "index": 6012, "before": "public VerifyDomainDkimResult verifyDomainDkim(VerifyDomainDkimRequest request) {request = beforeClientExecution(request);return executeVerifyDomainDkim(request);}", "after": "public virtual VerifyDomainDkimResponse VerifyDomainDkim(VerifyDomainDkimRequest request){var options = new InvokeOptions();options.RequestMarshaller = VerifyDomainDkimRequestMarshaller.Instance;options.ResponseUnmarshaller = VerifyDomainDkimResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6013, "before": "public boolean equals(Object o) {if (o instanceof HSSFRichTextString) {return _string.equals(((HSSFRichTextString)o)._string);}return false;}", "after": "public override bool Equals(Object o){if (o is HSSFRichTextString){return _string.Equals(((HSSFRichTextString)o)._string);}return false;}" }, { "index": 6014, "before": "public boolean equals(Object obj) {if (!(obj instanceof RowColKey)) {return false;}RowColKey other = (RowColKey) obj;return _rowIndex == other._rowIndex && _columnIndex == other._columnIndex;}", "after": "public override bool Equals(Object obj){RowColKey other = (RowColKey)obj;return _rowIndex == other._rowIndex && _columnIndex == other._columnIndex;}" }, { "index": 6015, "before": "public GetIdentityPoolConfigurationResult getIdentityPoolConfiguration(GetIdentityPoolConfigurationRequest request) {request = beforeClientExecution(request);return executeGetIdentityPoolConfiguration(request);}", "after": "public virtual GetIdentityPoolConfigurationResponse GetIdentityPoolConfiguration(GetIdentityPoolConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdentityPoolConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdentityPoolConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6016, "before": "public DeleteTrafficMirrorFilterResult deleteTrafficMirrorFilter(DeleteTrafficMirrorFilterRequest request) {request = beforeClientExecution(request);return executeDeleteTrafficMirrorFilter(request);}", "after": "public virtual DeleteTrafficMirrorFilterResponse DeleteTrafficMirrorFilter(DeleteTrafficMirrorFilterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTrafficMirrorFilterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTrafficMirrorFilterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6017, "before": "public Bits readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context) throws IOException {assert info.hasDeletions();BytesRefBuilder scratch = new BytesRefBuilder();CharsRefBuilder scratchUTF16 = new CharsRefBuilder();String fileName = IndexFileNames.fileNameFromGeneration(info.info.name, LIVEDOCS_EXTENSION, info.getDelGen());ChecksumIndexInput in = null;boolean success = false;try {in = dir.openChecksumInput(fileName, context);SimpleTextUtil.readLine(in, scratch);assert StringHelper.startsWith(scratch.get(), SIZE);int size = parseIntAt(scratch.get(), SIZE.length, scratchUTF16);BitSet bits = new BitSet(size);SimpleTextUtil.readLine(in, scratch);while (!scratch.get().equals(END)) {assert StringHelper.startsWith(scratch.get(), DOC);int docid = parseIntAt(scratch.get(), DOC.length, scratchUTF16);bits.set(docid);SimpleTextUtil.readLine(in, scratch);}SimpleTextUtil.checkFooter(in);success = true;return new SimpleTextBits(bits, size);} finally {if (success) {IOUtils.close(in);} else {IOUtils.closeWhileHandlingException(in);}}}", "after": "public override IBits ReadLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context){Debug.Assert(info.HasDeletions);var scratch = new BytesRef();var scratchUtf16 = new CharsRef();var fileName = IndexFileNames.FileNameFromGeneration(info.Info.Name, LIVEDOCS_EXTENSION, info.DelGen);ChecksumIndexInput input = null;var success = false;try{input = dir.OpenChecksumInput(fileName, context);SimpleTextUtil.ReadLine(input, scratch);Debug.Assert(StringHelper.StartsWith(scratch, SIZE));var size = ParseInt32At(scratch, SIZE.Length, scratchUtf16);var bits = new BitArray(size);SimpleTextUtil.ReadLine(input, scratch);while (!scratch.Equals(END)){Debug.Assert(StringHelper.StartsWith(scratch, DOC));var docid = ParseInt32At(scratch, DOC.Length, scratchUtf16);bits.SafeSet(docid, true);SimpleTextUtil.ReadLine(input, scratch);}SimpleTextUtil.CheckFooter(input);success = true;return new SimpleTextBits(bits, size);}finally{if (success){IOUtils.Dispose(input);}else{IOUtils.DisposeWhileHandlingException(input);}}}" }, { "index": 6018, "before": "public CreateConferenceProviderResult createConferenceProvider(CreateConferenceProviderRequest request) {request = beforeClientExecution(request);return executeCreateConferenceProvider(request);}", "after": "public virtual CreateConferenceProviderResponse CreateConferenceProvider(CreateConferenceProviderRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConferenceProviderRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateConferenceProviderResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6019, "before": "public SimpleQQParser(String qqNames[], String indexField) {this.qqNames = qqNames;this.indexField = indexField;}", "after": "public SimpleQQParser(string qqName, string indexField): this(new string[] { qqName }" }, { "index": 6020, "before": "public boolean isCaseSensitive() {return false;}", "after": "public override bool IsCaseSensitive(){return false;}" }, { "index": 6021, "before": "public TokenFilter create(TokenStream input) {return new HyphenationCompoundWordTokenFilter(input, hyphenator, dictionary, minWordSize, minSubwordSize, maxSubwordSize, onlyLongestMatch);}", "after": "public override TokenStream Create(TokenStream input){return new HyphenationCompoundWordTokenFilter(m_luceneMatchVersion, input, hyphenator, dictionary, minWordSize, minSubwordSize, maxSubwordSize, onlyLongestMatch);}" }, { "index": 6022, "before": "public TokenStream create(TokenStream input) {return new JapaneseBaseFormFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new JapaneseBaseFormFilter(input);}" }, { "index": 6023, "before": "public OrderedATNConfigSet() {this.configLookup = new LexerConfigHashSet();}", "after": "public OrderedATNConfigSet(){this.configLookup = new LexerConfigHashSet();}" }, { "index": 6024, "before": "public static ValueEval dereferenceResult(ValueEval evaluationResult, int srcRowNum, int srcColNum) {ValueEval value;try {value = OperandResolver.getSingleValue(evaluationResult, srcRowNum, srcColNum);} catch (EvaluationException e) {return e.getErrorEval();}if (value == BlankEval.instance) {return NumberEval.ZERO;}return value;}", "after": "public static ValueEval DereferenceResult(ValueEval evaluationResult, int srcRowNum, int srcColNum){ValueEval value;try{value = OperandResolver.GetSingleValue(evaluationResult, srcRowNum, srcColNum);}catch (EvaluationException e){return e.GetErrorEval();}if (value == BlankEval.instance){return NumberEval.ZERO;}return value;}" }, { "index": 6025, "before": "public GetGroupRequest(String groupName) {setGroupName(groupName);}", "after": "public GetGroupRequest(string groupName){_groupName = groupName;}" }, { "index": 6026, "before": "public void narrowSearch(int midIx, boolean isLessThan) {if(isLessThan) {_highIx = midIx;} else {_lowIx = midIx;}}", "after": "public void NarrowSearch(int midIx, bool isLessThan){if (isLessThan){_highIx = midIx;}else{_lowIx = midIx;}}" }, { "index": 6027, "before": "public void set(int index, long value) {final int o = index >>> 1;final int b = index & 1;final int shift = b << 5;blocks[o] = (blocks[o] & ~(4294967295L << shift)) | (value << shift);}", "after": "public override void Set(int index, long value){int o = (int)((uint)index >> 1);int b = index & 1;int shift = b << 5;blocks[o] = (blocks[o] & ~(4294967295L << shift)) | (value << shift);}" }, { "index": 6028, "before": "public String toString() {return cfAggregate.toString();}", "after": "public override String ToString(){return cfAggregate.ToString();}" }, { "index": 6029, "before": "public void setConfig(Config config) {super.setConfig(config);random = new Random(config.get(\"rand.seed\", 13));maxDocFacets = config.get(\"max.doc.facets\", 10);maxDims = config.get(\"max.doc.facets.dims\", 5);maxFacetDepth = config.get(\"max.facet.depth\", 3);if (maxFacetDepth < 2) {throw new IllegalArgumentException(\"max.facet.depth must be at least 2; got: \" + maxFacetDepth);}maxValue = maxDocFacets * maxFacetDepth;}", "after": "public override void SetConfig(Config config){base.SetConfig(config);random = new Random(config.Get(\"rand.seed\", 13));maxDocFacets = config.Get(\"max.doc.facets\", 10);maxDims = config.Get(\"max.doc.facets.dims\", 5);maxFacetDepth = config.Get(\"max.facet.depth\", 3);if (maxFacetDepth < 2){throw new ArgumentException(\"max.facet.depth must be at least 2; got: \" + maxFacetDepth);}maxValue = maxDocFacets * maxFacetDepth;}" }, { "index": 6030, "before": "public interface Experiments extends SupportsCreating, HasInner {Observable getAsync(String resourceGroupName, String workspaceName, String experimentName);Observable listByWorkspaceAsync(final String resourceGroupName, final String workspaceName);Completable deleteAsync(String resourceGroupName, String workspaceName, String experimentName);}", "after": "public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string experimentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)){AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, experimentName, customHeaders, cancellationToken).ConfigureAwait(false);return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);}" }, { "index": 6031, "before": "public Builder add(long l) {if (pending == null) {throw new IllegalStateException(\"Cannot be reused after build()\");}if (pendingOff == pending.length) {if (values.length == valuesOff) {final int newLength = ArrayUtil.oversize(valuesOff + 1, 8);grow(newLength);}pack();}pending[pendingOff++] = l;size += 1;return this;}", "after": "public virtual Builder Add(int doc){if (doc <= previousDoc){throw new System.ArgumentException(\"Doc IDs must be provided in order, but previousDoc=\" + previousDoc + \" and doc=\" + doc);}buffer[bufferSize++] = doc - previousDoc - 1;if (bufferSize == BLOCK_SIZE){EncodeBlock();bufferSize = 0;}previousDoc = doc;++cardinality;return this;}" }, { "index": 6032, "before": "public static boolean isBuiltInFunctionName(String name) {short ix = FunctionMetadataRegistry.lookupIndexByName(name.toUpperCase(Locale.ROOT));return ix >= 0;}", "after": "public static bool IsBuiltInFunctionName(String name){short ix = FunctionMetadataRegistry.LookupIndexByName(name.ToUpper());return ix >= 0;}" }, { "index": 6033, "before": "public void readBytes(byte[] b, int offset, int len) {while(len > 0) {final int numLeft = limit-upto;if (numLeft < len) {System.arraycopy(buffer, upto, b, offset, numLeft);offset += numLeft;len -= numLeft;nextSlice();} else {System.arraycopy(buffer, upto, b, offset, len);upto += len;break;}}}", "after": "public override void ReadBytes(byte[] b, int offset, int len){while (len > 0){int numLeft = limit - upto;if (numLeft < len){Array.Copy(buffer, upto, b, offset, numLeft);offset += numLeft;len -= numLeft;NextSlice();}else{Array.Copy(buffer, upto, b, offset, len);upto += len;break;}}}" }, { "index": 6034, "before": "public String toFormulaString(String[] operands) {StringBuilder buffer = new StringBuilder();buffer.append(operands[ 0 ]);buffer.append(CONCAT);buffer.append(operands[ 1 ]);return buffer.toString();}", "after": "public override String ToFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.Append(operands[0]);buffer.Append(CONCAT);buffer.Append(operands[1]);return buffer.ToString();}" }, { "index": 6035, "before": "public ListResolverRuleAssociationsResult listResolverRuleAssociations(ListResolverRuleAssociationsRequest request) {request = beforeClientExecution(request);return executeListResolverRuleAssociations(request);}", "after": "public virtual ListResolverRuleAssociationsResponse ListResolverRuleAssociations(ListResolverRuleAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListResolverRuleAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListResolverRuleAssociationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6036, "before": "public TokenStream create(TokenStream input) {return new ApostropheFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new ApostropheFilter(input);}" }, { "index": 6037, "before": "public static String getExtension(String name) {int i = name.lastIndexOf('.');if (i == -1) {return \"\";}String ext = name.substring(i + 1);if (ext.equals(\"tmp\")) {Matcher matcher = EXT_PATTERN.matcher(name.substring(0, i + 1));if (matcher.find()) {return matcher.group(1);}}return ext;}", "after": "public static string GetExtension(string name){int i = name.LastIndexOf('.');if (i == -1){return \"\";}return name.Substring(i + 1, name.Length - (i + 1));}" }, { "index": 6038, "before": "public static int getBuiltinFormat(String pFmt) {String fmt = \"TEXT\".equalsIgnoreCase(pFmt) ? \"@\" : pFmt;int i = -1;for (String f : _formats) {i++;if (f.equals(fmt)) {return i;}}return -1;}", "after": "public static String GetBuiltinFormat(int index){if (index < 0 || index >= _formats.Length){return null;}return _formats[index];}" }, { "index": 6039, "before": "@Override public int indexOf(Object object) {return list.indexOf(object);}", "after": "public virtual int indexOf(object @object){return list.indexOf(@object);}" }, { "index": 6040, "before": "public void trimToSize() {balance();redimNodeArrays(freenode);CharVector kx = new CharVector();kx.alloc(1);TernaryTree map = new TernaryTree();compact(kx, map, root);kv = kx;kv.trimToSize();}", "after": "public virtual void TrimToSize(){Balance();RedimNodeArrays(m_freenode);CharVector kx = new CharVector();kx.Alloc(1);TernaryTree map = new TernaryTree();Compact(kx, map, m_root);m_kv = kx;m_kv.TrimToSize();}" }, { "index": 6041, "before": "public GetRepoSyncTaskRequest() {super(\"cr\", \"2016-06-07\", \"GetRepoSyncTask\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/syncTasks/[SyncTaskId]\");setMethod(MethodType.GET);}", "after": "public GetRepoSyncTaskRequest(): base(\"cr\", \"2016-06-07\", \"GetRepoSyncTask\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/syncTasks/[SyncTaskId]\";Method = MethodType.GET;}" }, { "index": 6042, "before": "public ChangeMessageVisibilityRequest(String queueUrl, String receiptHandle, Integer visibilityTimeout) {setQueueUrl(queueUrl);setReceiptHandle(receiptHandle);setVisibilityTimeout(visibilityTimeout);}", "after": "public ChangeMessageVisibilityRequest(string queueUrl, string receiptHandle, int visibilityTimeout){_queueUrl = queueUrl;_receiptHandle = receiptHandle;_visibilityTimeout = visibilityTimeout;}" }, { "index": 6043, "before": "public String toString() {return \"[SAVERECALC]\\n\" +\" .recalc = \" + getRecalc() +\"\\n\" +\"[/SAVERECALC]\\n\";}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[SAVERECALC]\\n\");buffer.Append(\" .recalc = \").Append(Recalc).Append(\"\\n\");buffer.Append(\"[/SAVERECALC]\\n\");return buffer.ToString();}" }, { "index": 6044, "before": "public Status getStatus() {return status;}", "after": "public virtual CheckoutResult.Status GetStatus(){return myStatus;}" }, { "index": 6045, "before": "public StartRepoBuildByRuleRequest() {super(\"cr\", \"2016-06-07\", \"StartRepoBuildByRule\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]/build\");setMethod(MethodType.PUT);}", "after": "public StartRepoBuildByRuleRequest(): base(\"cr\", \"2016-06-07\", \"StartRepoBuildByRule\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]/build\";Method = MethodType.PUT;}" }, { "index": 6046, "before": "public ModifyAvailabilityZoneGroupResult modifyAvailabilityZoneGroup(ModifyAvailabilityZoneGroupRequest request) {request = beforeClientExecution(request);return executeModifyAvailabilityZoneGroup(request);}", "after": "public virtual ModifyAvailabilityZoneGroupResponse ModifyAvailabilityZoneGroup(ModifyAvailabilityZoneGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyAvailabilityZoneGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyAvailabilityZoneGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6047, "before": "public int compareSameType(Object other) {assert exists || 0 == value.length();MutableValueStr b = (MutableValueStr)other;int c = value.get().compareTo(b.value.get());if (c != 0) return c;if (exists == b.exists) return 0;return exists ? 1 : -1;}", "after": "public override int CompareSameType(object other){MutableValueStr b = (MutableValueStr)other;int c = Value.CompareTo(b.Value);if (c != 0){return c;}if (Exists == b.Exists){return 0;}return Exists ? 1 : -1;}" }, { "index": 6048, "before": "public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChildren() == null || getChildren().size() == 0)return \"\";StringBuilder sb = new StringBuilder();String filler = \"\";for (QueryNode child : getChildren()) {sb.append(filler).append(child.toQueryString(escapeSyntaxParser));filler = \",\";}return \"[TP[\" + sb.toString() + \"]]\";}", "after": "public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){var children = GetChildren();if (children == null || children.Count == 0)return \"\";StringBuilder sb = new StringBuilder();string filler = \"\";foreach (IQueryNode child in children){sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));filler = \",\";}return \"[TP[\" + sb.ToString() + \"]]\";}" }, { "index": 6049, "before": "public DescribeChangeSetResult describeChangeSet(DescribeChangeSetRequest request) {request = beforeClientExecution(request);return executeDescribeChangeSet(request);}", "after": "public virtual DescribeChangeSetResponse DescribeChangeSet(DescribeChangeSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeChangeSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeChangeSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6050, "before": "public static int initialize(int seed) {return seed;}", "after": "public static int Initialize(int seed){return seed;}" }, { "index": 6051, "before": "public File getIdentityFile() {return identityFile;}", "after": "public virtual FilePath GetIdentityFile(){return identityFile;}" }, { "index": 6052, "before": "public String toString() {String n = getClass().getName();int lastDot = n.lastIndexOf('.');if (lastDot >= 0) {n = n.substring(lastDot + 1);}return n.replace('$', '.');}", "after": "public override string ToString(){string n = GetType().FullName;int lastDot = n.LastIndexOf('.');if (lastDot >= 0){n = Sharpen.Runtime.Substring(n, lastDot + 1);}return n.Replace('$', '.');}" }, { "index": 6053, "before": "public DeleteVoiceConnectorProxyResult deleteVoiceConnectorProxy(DeleteVoiceConnectorProxyRequest request) {request = beforeClientExecution(request);return executeDeleteVoiceConnectorProxy(request);}", "after": "public virtual DeleteVoiceConnectorProxyResponse DeleteVoiceConnectorProxy(DeleteVoiceConnectorProxyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVoiceConnectorProxyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVoiceConnectorProxyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6054, "before": "public ByteArrayDataInput(byte[] bytes) {reset(bytes);}", "after": "public ByteArrayDataInput(byte[] bytes){Reset(bytes);}" }, { "index": 6055, "before": "public CreateLocalGatewayRouteResult createLocalGatewayRoute(CreateLocalGatewayRouteRequest request) {request = beforeClientExecution(request);return executeCreateLocalGatewayRoute(request);}", "after": "public virtual CreateLocalGatewayRouteResponse CreateLocalGatewayRoute(CreateLocalGatewayRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLocalGatewayRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLocalGatewayRouteResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6056, "before": "public static int strlen(char[] a, int start) {int len = 0;for (int i = start; i < a.length && a[i] != 0; i++) {len++;}return len;}", "after": "public static int StrLen(char[] a, int start){int len = 0;for (int i = start; i < a.Length && a[i] != 0; i++){len++;}return len;}" }, { "index": 6057, "before": "public AttachPolicyResult attachPolicy(AttachPolicyRequest request) {request = beforeClientExecution(request);return executeAttachPolicy(request);}", "after": "public virtual AttachPolicyResponse AttachPolicy(AttachPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6058, "before": "public void print(double dnum) {print(String.valueOf(dnum));}", "after": "public virtual void print(double dnum){print(dnum.ToString());}" }, { "index": 6059, "before": "public static BreakIterator getCharacterInstance() {return getCharacterInstance(Locale.getDefault());}", "after": "public static java.text.BreakIterator getCharacterInstance(){return getCharacterInstance(System.Globalization.CultureInfo.CurrentCulture);}" }, { "index": 6060, "before": "public boolean add(E object) {throw new UnsupportedOperationException();}", "after": "public virtual bool add(E @object){throw new System.NotSupportedException();}" }, { "index": 6061, "before": "public SendMessageRequest(String queueUrl, String messageBody) {setQueueUrl(queueUrl);setMessageBody(messageBody);}", "after": "public SendMessageRequest(string queueUrl, string messageBody){_queueUrl = queueUrl;_messageBody = messageBody;}" }, { "index": 6062, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {try {AreaEval reA = evaluateRef(arg0);AreaEval reB = evaluateRef(arg1);return resolveRange(reA, reB);} 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);return ResolveRange(reA, reB);}catch (EvaluationException e){return e.GetErrorEval();}}" }, { "index": 6063, "before": "public CharBuffer put(char[] src, int srcOffset, int charCount) {Arrays.checkOffsetAndCount(src.length, srcOffset, charCount);if (charCount > remaining()) {throw new BufferOverflowException();}for (int i = srcOffset; i < srcOffset + charCount; ++i) {put(src[i]);}return this;}", "after": "public virtual java.nio.CharBuffer put(char[] src, int srcOffset, int charCount){java.util.Arrays.checkOffsetAndCount(src.Length, srcOffset, charCount);if (charCount > remaining()){throw new java.nio.BufferOverflowException();}{for (int i = srcOffset; i < srcOffset + charCount; ++i){put(src[i]);}}return this;}" }, { "index": 6064, "before": "public void writeByte(byte b) {assert slice != null;if (slice[upto] != 0) {upto = pool.allocSlice(slice, upto);slice = pool.buffer;offset0 = pool.byteOffset;assert slice != null;}slice[upto++] = b;assert upto != slice.length;}", "after": "public override void WriteByte(byte b){Debug.Assert(slice != null);if (slice[upto] != 0){upto = pool.AllocSlice(slice, upto);slice = pool.Buffer;offset0 = pool.ByteOffset;Debug.Assert(slice != null);}slice[upto++] = (byte)b;Debug.Assert(upto != slice.Length);}" }, { "index": 6065, "before": "public static double atanh(double a) {final double mult;if (Double.doubleToRawLongBits(a) < 0) {a = Math.abs(a);mult = -0.5d;} else {mult = 0.5d;}return mult * Math.log((1.0d + a) / (1.0d - a));}", "after": "public static double Atanh(double a){double mult;if (J2N.BitConversion.DoubleToRawInt64Bits(a) < 0){a = Math.Abs(a);mult = -0.5d;}else{mult = 0.5d;}return mult * Math.Log((1.0d + a) / (1.0d - a));}" }, { "index": 6066, "before": "public static double asinh(double a) {final double sign;if (Double.doubleToRawLongBits(a) < 0) {a = Math.abs(a);sign = -1.0d;} else {sign = 1.0d;}return sign * Math.log(Math.sqrt(a * a + 1.0d) + a);}", "after": "public static double Asinh(double a){double sign;if (J2N.BitConversion.DoubleToRawInt64Bits(a) < 0){a = Math.Abs(a);sign = -1.0d;}else{sign = 1.0d;}return sign * Math.Log(Math.Sqrt(a * a + 1.0d) + a);}" }, { "index": 6067, "before": "public FuzzyLikeThisQuery(int maxNumTerms, Analyzer analyzer){this.analyzer=analyzer;this.maxNumTerms = maxNumTerms;}", "after": "public FuzzyLikeThisQuery(int maxNumTerms, Analyzer analyzer){q = new ScoreTermQueue(maxNumTerms);this.analyzer = analyzer;this.maxNumTerms = maxNumTerms;}" }, { "index": 6068, "before": "public boolean precpred(RuleContext localctx, int precedence) {return precedence >= _precedenceStack.peek();}", "after": "public override bool Precpred(RuleContext localctx, int precedence){return precedence >= _precedenceStack[_precedenceStack.Count - 1];}" }, { "index": 6069, "before": "public UpdateStackResult updateStack(UpdateStackRequest request) {request = beforeClientExecution(request);return executeUpdateStack(request);}", "after": "public virtual UpdateStackResponse UpdateStack(UpdateStackRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateStackRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateStackResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6070, "before": "public StartJumpserverRequest() {super(\"HPC\", \"2016-06-03\", \"StartJumpserver\", \"hpc\");setMethod(MethodType.POST);}", "after": "public StartJumpserverRequest(): base(\"HPC\", \"2016-06-03\", \"StartJumpserver\"){Method = MethodType.POST;}" }, { "index": 6071, "before": "public List getRules() {return Collections.unmodifiableList(rules);}", "after": "public virtual IList GetRules(){return Sharpen.Collections.UnmodifiableList(rules);}" }, { "index": 6072, "before": "public RefMap() {prefix = \"\"; packed = RefList.emptyList();loose = RefList.emptyList();resolved = RefList.emptyList();}", "after": "public RefMap(){prefix = string.Empty;packed = RefList.EmptyList();loose = RefList.EmptyList();resolved = RefList.EmptyList();}" }, { "index": 6073, "before": "public Collection getCandidates() {return candidates;}", "after": "public virtual ICollection GetCandidates(){return candidates;}" }, { "index": 6074, "before": "public int get(Object key) {int index = findIndex(key, keys);if (keys[index] == key) {return values[index];}return -1;}", "after": "public int get(object key){int index = findIndex(key, keys);if (keys[index] == key){return values[index];}return -1;}" }, { "index": 6075, "before": "public String toStringEscaped(char[] enabledChars) {StringBuilder result = new StringBuilder();for (int i = 0; i < this.length(); i++) {if (this.chars[i] == '\\\\') {result.append('\\\\');} else {for (char character : enabledChars) {if (this.chars[i] == character && this.wasEscaped[i]) {result.append('\\\\');break;}}}result.append(this.chars[i]);}return result.toString();}", "after": "public ICharSequence ToStringEscaped(char[] enabledChars){StringBuilder result = new StringBuilder();for (int i = 0; i < this.Length; i++){if (this.chars[i] == '\\\\'){result.Append('\\\\');}else{foreach (char character in enabledChars){if (this.chars[i] == character && this.wasEscaped[i]){result.Append('\\\\');break;}}}result.Append(this.chars[i]);}return new StringCharSequence(result.ToString());}" }, { "index": 6076, "before": "public DiffCommand setCached(boolean cached) {this.cached = cached;return this;}", "after": "public virtual NGit.Api.DiffCommand SetCached(bool cached){this.cached = cached;return this;}" }, { "index": 6077, "before": "public RevertCommand revert() {return new RevertCommand(repo);}", "after": "public virtual RevertCommand Revert(){return new RevertCommand(repo);}" }, { "index": 6078, "before": "@Override public void clear() {if (size != 0) {Arrays.fill(table, null);entryForNullKey = null;modCount++;size = 0;}}", "after": "public override void clear(){if (_size != 0){java.util.Arrays.fill(table, null);entryForNullKey = null;modCount++;_size = 0;}}" }, { "index": 6079, "before": "public static double log2(double x) {return Math.log(x) / LOG_2;}", "after": "public static double Log2(double x){return Math.Log(x) / LOG_2;}" }, { "index": 6080, "before": "public boolean isHorizontalBorder(){return horizontalBorder.isSet(field_1_options);}", "after": "public bool IsHorizontalBorder(){return horizontalBorder.IsSet(field_1_options);}" }, { "index": 6081, "before": "public void validate() throws IllegalArgumentException {if (distErr != null && distErrPct != null)throw new IllegalArgumentException(\"Only distErr or distErrPct can be specified.\");}", "after": "public virtual void Validate(){if (Operation.IsTargetNeedsArea && !Shape.HasArea){throw new ArgumentException(Operation + \" only supports geometry with area\");}if (DistErr != null && DistErrPct != null){throw new ArgumentException(\"Only DistErr or DistErrPct can be specified.\");}}" }, { "index": 6082, "before": "public DeleteConfigurationSetResult deleteConfigurationSet(DeleteConfigurationSetRequest request) {request = beforeClientExecution(request);return executeDeleteConfigurationSet(request);}", "after": "public virtual DeleteConfigurationSetResponse DeleteConfigurationSet(DeleteConfigurationSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteConfigurationSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteConfigurationSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6083, "before": "public boolean incrementToken() {if (used) {return false;}clearAttributes();termAttribute.append(value);offsetAttribute.setOffset(0, value.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": 6084, "before": "public static DoubleBuffer wrap(double[] array, int start, int doubleCount) {Arrays.checkOffsetAndCount(array.length, start, doubleCount);DoubleBuffer buf = new ReadWriteDoubleArrayBuffer(array);buf.position = start;buf.limit = start + doubleCount;return buf;}", "after": "public static java.nio.DoubleBuffer wrap(double[] array_1, int start, int doubleCount){java.util.Arrays.checkOffsetAndCount(array_1.Length, start, doubleCount);java.nio.DoubleBuffer buf = new java.nio.ReadWriteDoubleArrayBuffer(array_1);buf._position = start;buf._limit = start + doubleCount;return buf;}" }, { "index": 6085, "before": "public DescribeSpotInstanceRequestsResult describeSpotInstanceRequests(DescribeSpotInstanceRequestsRequest request) {request = beforeClientExecution(request);return executeDescribeSpotInstanceRequests(request);}", "after": "public virtual DescribeSpotInstanceRequestsResponse DescribeSpotInstanceRequests(DescribeSpotInstanceRequestsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSpotInstanceRequestsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSpotInstanceRequestsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6086, "before": "public UpdateFieldLevelEncryptionConfigResult updateFieldLevelEncryptionConfig(UpdateFieldLevelEncryptionConfigRequest request) {request = beforeClientExecution(request);return executeUpdateFieldLevelEncryptionConfig(request);}", "after": "public virtual UpdateFieldLevelEncryptionConfigResponse UpdateFieldLevelEncryptionConfig(UpdateFieldLevelEncryptionConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFieldLevelEncryptionConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFieldLevelEncryptionConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6087, "before": "public void setCachedResultTypeString() {specialCachedValue = FormulaSpecialCachedValue.createForString();}", "after": "public void SetCachedResultTypeString(){specialCachedValue = SpecialCachedValue.CreateForString();}" }, { "index": 6088, "before": "public SpanNearBuilder(SpanQueryBuilder factory) {this.factory = factory;}", "after": "public SpanNearBuilder(ISpanQueryBuilder factory){this.factory = factory;}" }, { "index": 6089, "before": "public long ramBytesUsed() {long sizeInBytes = 0;for(Map.Entry entry: fields.entrySet()) {sizeInBytes += entry.getKey().length() * Character.BYTES;sizeInBytes += entry.getValue().ramBytesUsed();}return sizeInBytes;}", "after": "public override long RamBytesUsed(){long sizeInBytes = 0;foreach (KeyValuePair entry in fields){sizeInBytes += entry.Key.Length*RamUsageEstimator.NUM_BYTES_CHAR;sizeInBytes += entry.Value.RamBytesUsed();}return sizeInBytes;}" }, { "index": 6090, "before": "public GlobalCluster deleteGlobalCluster(DeleteGlobalClusterRequest request) {request = beforeClientExecution(request);return executeDeleteGlobalCluster(request);}", "after": "public virtual DeleteGlobalClusterResponse DeleteGlobalCluster(DeleteGlobalClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGlobalClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGlobalClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6091, "before": "public String toString() {return type.getSimpleName() + \"[\" + listener + \"]\";}", "after": "public override string ToString(){return type.Name + \"[\" + listener + \"]\";}" }, { "index": 6092, "before": "public void parseLine(DocData docData, String line) {int k1 = 0;int k2 = line.indexOf(WriteLineDocTask.SEP, k1);if (k2<0) {throw new RuntimeException(\"line: [\" + line + \"] is in an invalid format (missing: separator title::date)!\");}docData.setTitle(line.substring(k1,k2));k1 = k2+1;k2 = line.indexOf(WriteLineDocTask.SEP, k1);if (k2<0) {throw new RuntimeException(\"line: [\" + line + \"] is in an invalid format (missing: separator date::body)!\");}docData.setDate(line.substring(k1,k2));k1 = k2+1;k2 = line.indexOf(WriteLineDocTask.SEP, k1);if (k2>=0) {throw new RuntimeException(\"line: [\" + line + \"] is in an invalid format (too many separators)!\");}docData.setBody(line.substring(k1));}", "after": "public override void ParseLine(DocData docData, string line){int k1 = 0;int k2 = line.IndexOf(WriteLineDocTask.SEP, k1);if (k2 < 0){throw new Exception(\"line: [\" + line + \"] is in an invalid format (missing: separator title::date)!\");}docData.Title = line.Substring(k1, k2 - k1);k1 = k2 + 1;k2 = line.IndexOf(WriteLineDocTask.SEP, k1);if (k2 < 0){throw new Exception(\"line: [\" + line + \"] is in an invalid format (missing: separator date::body)!\");}docData.SetDate(line.Substring(k1, k2 - k1));k1 = k2 + 1;k2 = line.IndexOf(WriteLineDocTask.SEP, k1);if (k2 >= 0){throw new Exception(\"line: [\" + line + \"] is in an invalid format (too many separators)!\");}docData.Body = line.Substring(k1);}" }, { "index": 6093, "before": "public boolean isLarge() {return false;}", "after": "public override bool IsLarge(){return false;}" }, { "index": 6094, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(\"TrackingRefUpdate[\");sb.append(remoteName);sb.append(\" -> \");sb.append(localName);if (forceUpdate)sb.append(\" (forced)\");sb.append(\" \");sb.append(oldObjectId == null ? \"\" : oldObjectId.abbreviate(7).name());sb.append(\"..\");sb.append(newObjectId == null ? \"\" : newObjectId.abbreviate(7).name());sb.append(\"]\");return sb.toString();}", "after": "public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append(\"TrackingRefUpdate[\");sb.Append(remoteName);sb.Append(\" -> \");sb.Append(localName);if (forceUpdate){sb.Append(\" (forced)\");}sb.Append(\" \");sb.Append(oldObjectId == null ? string.Empty : oldObjectId.Abbreviate(7).Name);sb.Append(\"..\");sb.Append(newObjectId == null ? string.Empty : newObjectId.Abbreviate(7).Name);sb.Append(\"]\");return sb.ToString();}" }, { "index": 6095, "before": "public DescribeTerminationPolicyTypesResult describeTerminationPolicyTypes() {return describeTerminationPolicyTypes(new DescribeTerminationPolicyTypesRequest());}", "after": "public virtual DescribeTerminationPolicyTypesResponse DescribeTerminationPolicyTypes(){return DescribeTerminationPolicyTypes(new DescribeTerminationPolicyTypesRequest());}" }, { "index": 6096, "before": "public DeleteTagsRequest() {super(\"Ots\", \"2016-06-20\", \"DeleteTags\", \"ots\");setMethod(MethodType.POST);}", "after": "public DeleteTagsRequest(): base(\"Ots\", \"2016-06-20\", \"DeleteTags\", \"ots\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 6097, "before": "public ChartFormatRecord(RecordInputStream in) {field1_x_position = in.readInt();field2_y_position = in.readInt();field3_width = in.readInt();field4_height = in.readInt();field5_grbit = in.readUShort();field6_unknown = in.readUShort();}", "after": "public ChartFormatRecord(RecordInputStream in1){field1_x_position = in1.ReadInt();field2_y_position = in1.ReadInt();field3_width = in1.ReadInt();field4_height = in1.ReadInt();field5_grbit = in1.ReadShort();field6_icrt = in1.ReadShort();}" }, { "index": 6098, "before": "public void dispatch(IndexChangedListener listener) {listener.onIndexChanged(this);}", "after": "public override void Dispatch(IndexChangedListener listener){listener.OnIndexChanged(this);}" }, { "index": 6099, "before": "public NameRecord cloneFilter(int filterDbNameIndex, int newSheetIndex){NameRecord origNameRecord = getNameRecord(filterDbNameIndex);int newExtSheetIx = checkExternSheet(newSheetIndex);Ptg[] ptgs = origNameRecord.getNameDefinition();for (int i=0; i< ptgs.length; i++) {Ptg ptg = ptgs[i];if (ptg instanceof Area3DPtg) {Area3DPtg a3p = (Area3DPtg) ((OperandPtg) ptg).copy();a3p.setExternSheetIndex(newExtSheetIx);ptgs[i] = a3p;} else if (ptg instanceof Ref3DPtg) {Ref3DPtg r3p = (Ref3DPtg) ((OperandPtg) ptg).copy();r3p.setExternSheetIndex(newExtSheetIx);ptgs[i] = r3p;}}NameRecord newNameRecord = createBuiltInName(NameRecord.BUILTIN_FILTER_DB, newSheetIndex+1);newNameRecord.setNameDefinition(ptgs);newNameRecord.setHidden(true);return newNameRecord;}", "after": "public NameRecord CloneFilter(int filterDbNameIndex, int newSheetIndex){NameRecord origNameRecord = GetNameRecord(filterDbNameIndex);int newExtSheetIx = CheckExternSheet(newSheetIndex);Ptg[] ptgs = origNameRecord.NameDefinition;for (int i = 0; i < ptgs.Length; i++){Ptg ptg = ptgs[i];if (ptg is Area3DPtg){Area3DPtg a3p = (Area3DPtg)((OperandPtg)ptg).Copy();a3p.ExternSheetIndex = (newExtSheetIx);ptgs[i] = a3p;}else if (ptg is Ref3DPtg){Ref3DPtg r3p = (Ref3DPtg)((OperandPtg)ptg).Copy();r3p.ExternSheetIndex = (newExtSheetIx);ptgs[i] = r3p;}}NameRecord newNameRecord = CreateBuiltInName(NameRecord.BUILTIN_FILTER_DB, newSheetIndex + 1);newNameRecord.NameDefinition = ptgs;newNameRecord.IsHiddenName = true;return newNameRecord;}" }, { "index": 6100, "before": "public int read(byte[] b) throws IOException {int n = in.read(b);if (n == -1) {close();}return n;}", "after": "public override int read(byte[] buffer){throw new System.NotImplementedException();}" }, { "index": 6101, "before": "public void serializeArrayConstantData(LittleEndianOutput out) {int len = _byteEncoding.length-_encodedTokenLen;out.write(_byteEncoding, _encodedTokenLen, len);}", "after": "public void SerializeArrayConstantData(ILittleEndianOutput out1){int len = _byteEncoding.Length - _encodedTokenLen;out1.Write(_byteEncoding, _encodedTokenLen, len);}" }, { "index": 6102, "before": "public GetGcmChannelResult getGcmChannel(GetGcmChannelRequest request) {request = beforeClientExecution(request);return executeGetGcmChannel(request);}", "after": "public virtual GetGcmChannelResponse GetGcmChannel(GetGcmChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetGcmChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetGcmChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6103, "before": "public long ramBytesUsed() {return indexReader.ramBytesUsed();}", "after": "public override long RamBytesUsed(){return indexReader.RamBytesUsed();}" }, { "index": 6104, "before": "public short getCalcMode(){return field_1_calcmode;}", "after": "public short GetCalcMode(){return field_1_calcmode;}" }, { "index": 6105, "before": "public DeleteStreamResult deleteStream(DeleteStreamRequest request) {request = beforeClientExecution(request);return executeDeleteStream(request);}", "after": "public virtual DeleteStreamResponse DeleteStream(DeleteStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6106, "before": "public DoubleBuffer put(double[] src, int srcOffset, int doubleCount) {Arrays.checkOffsetAndCount(src.length, srcOffset, doubleCount);if (doubleCount > remaining()) {throw new BufferOverflowException();}for (int i = srcOffset; i < srcOffset + doubleCount; ++i) {put(src[i]);}return this;}", "after": "public virtual java.nio.DoubleBuffer put(double[] src, int srcOffset, int doubleCount){java.util.Arrays.checkOffsetAndCount(src.Length, srcOffset, doubleCount);if (doubleCount > remaining()){throw new java.nio.BufferOverflowException();}{for (int i = srcOffset; i < srcOffset + doubleCount; ++i){put(src[i]);}}return this;}" }, { "index": 6107, "before": "public RevokeSecurityGroupEgressResult revokeSecurityGroupEgress(RevokeSecurityGroupEgressRequest request) {request = beforeClientExecution(request);return executeRevokeSecurityGroupEgress(request);}", "after": "public virtual RevokeSecurityGroupEgressResponse RevokeSecurityGroupEgress(RevokeSecurityGroupEgressRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeSecurityGroupEgressRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeSecurityGroupEgressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6108, "before": "public CreateRepoWebhookRequest() {super(\"cr\", \"2016-06-07\", \"CreateRepoWebhook\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/webhooks\");setMethod(MethodType.PUT);}", "after": "public CreateRepoWebhookRequest(): base(\"cr\", \"2016-06-07\", \"CreateRepoWebhook\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/webhooks\";Method = MethodType.PUT;}" }, { "index": 6109, "before": "public int getCnt(Character way) {Cell c = at(way);return (c == null) ? -1 : c.cnt;}", "after": "public int GetCnt(char way){Cell c = At(way);return (c == null) ? -1 : c.cnt;}" }, { "index": 6110, "before": "public SortField[] getSort() {return fields;}", "after": "public virtual SortField[] GetSort(){return fields;}" }, { "index": 6111, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[BOF RECORD]\\n\");buffer.append(\" .version = \").append(HexDump.shortToHex(getVersion())).append(\"\\n\");buffer.append(\" .type = \").append(HexDump.shortToHex(getType()));buffer.append(\" (\").append(getTypeName()).append(\")\").append(\"\\n\");buffer.append(\" .build = \").append(HexDump.shortToHex(getBuild())).append(\"\\n\");buffer.append(\" .buildyear= \").append(getBuildYear()).append(\"\\n\");buffer.append(\" .history = \").append(HexDump.intToHex(getHistoryBitMask())).append(\"\\n\");buffer.append(\" .reqver = \").append(HexDump.intToHex(getRequiredVersion())).append(\"\\n\");buffer.append(\"[/BOF RECORD]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[BOF RECORD]\\n\");buffer.Append(\" .version = \").Append(StringUtil.ToHexString(Version)).Append(\"\\n\");buffer.Append(\" .type = \").Append(StringUtil.ToHexString((int) Type)).Append(\"\\n\");buffer.Append(\" (\").Append(TypeName).Append(\")\").Append(\"\\n\");buffer.Append(\" .build = \").Append(StringUtil.ToHexString(Build)).Append(\"\\n\");buffer.Append(\" .buildyear = \").Append(BuildYear).Append(\"\\n\");buffer.Append(\" .history = \").Append(StringUtil.ToHexString(HistoryBitMask)).Append(\"\\n\");buffer.Append(\" .requiredversion = \").Append(StringUtil.ToHexString(RequiredVersion)).Append(\"\\n\");buffer.Append(\"[/BOF RECORD]\\n\");return buffer.ToString();}" }, { "index": 6112, "before": "public DBInstance createDBInstance(CreateDBInstanceRequest request) {request = beforeClientExecution(request);return executeCreateDBInstance(request);}", "after": "public virtual CreateDBInstanceResponse CreateDBInstance(CreateDBInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6113, "before": "public CreateStackInstancesResult createStackInstances(CreateStackInstancesRequest request) {request = beforeClientExecution(request);return executeCreateStackInstances(request);}", "after": "public virtual CreateStackInstancesResponse CreateStackInstances(CreateStackInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStackInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStackInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6114, "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());int remainingBytes = 0;for (EscherRecord r : this) {remainingBytes += r.getRecordSize();}remainingBytes += _remainingLength;LittleEndian.putInt(data, offset+4, remainingBytes);int pos = offset+8;for (EscherRecord r : this) {pos += r.serialize(pos, data, listener );}listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );return pos - offset;}", "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);int remainingBytes = 0;for (IEnumerator iterator = ChildRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord r = (EscherRecord)iterator.Current;remainingBytes += r.RecordSize;}remainingBytes += _remainingLength;LittleEndian.PutInt(data, offset + 4, remainingBytes);int pos = offset + 8;for (IEnumerator iterator = ChildRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord r = (EscherRecord)iterator.Current;pos += r.Serialize(pos, data, listener);}listener.AfterRecordSerialize(pos, RecordId, pos - offset, this);return pos - offset;}" }, { "index": 6115, "before": "public String toString() {return \"SnapshotDeletionPolicy.SnapshotCommitPoint(\" + cp + \")\";}", "after": "public override string ToString(){return \"SnapshotDeletionPolicy.SnapshotCommitPoint(\" + m_cp + \")\";}" }, { "index": 6116, "before": "public MissingRecordAwareHSSFListener(HSSFListener listener) {resetCounts();childListener = listener;}", "after": "public MissingRecordAwareHSSFListener(IHSSFListener listener){ResetCounts();childListener = listener;}" }, { "index": 6117, "before": "public int clear(final int holder){return holder & ~_mask;}", "after": "public int Clear(int holder){return (holder & ~this._mask);}" }, { "index": 6118, "before": "public void serialize(LittleEndianOutput out) {out.writeInt(field_13_border_styles1);out.writeInt(field_14_border_styles2);}", "after": "public void Serialize(ILittleEndianOutput out1){out1.WriteInt(field_13_border_styles1);out1.WriteInt(field_14_border_styles2);}" }, { "index": 6119, "before": "public void setParams(String params) {super.setParams(params);traversalSize = (int)Float.parseFloat(params);}", "after": "public override void SetParams(string @params){base.SetParams(@params);m_traversalSize = (int)float.Parse(@params, CultureInfo.InvariantCulture);}" }, { "index": 6120, "before": "public String toStringTree(List ruleNames) {return Trees.toStringTree(this, ruleNames);}", "after": "public virtual string ToStringTree(IList ruleNames){return Trees.ToStringTree(this, ruleNames);}" }, { "index": 6121, "before": "public HSSFTextbox createTextbox(HSSFClientAnchor anchor) {HSSFTextbox shape = new HSSFTextbox(null, anchor);addShape(shape);onCreate(shape);return shape;}", "after": "public HSSFSimpleShape CreateTextbox(IClientAnchor anchor){HSSFTextbox shape = new HSSFTextbox(null, (HSSFAnchor)anchor);AddShape(shape);OnCreate(shape);return shape;}" }, { "index": 6122, "before": "public UpdateDevicePolicyConfigurationResult updateDevicePolicyConfiguration(UpdateDevicePolicyConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateDevicePolicyConfiguration(request);}", "after": "public virtual UpdateDevicePolicyConfigurationResponse UpdateDevicePolicyConfiguration(UpdateDevicePolicyConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDevicePolicyConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDevicePolicyConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6123, "before": "public float norm(int passageStart) {return 1 + 1 / (float) Math.log(pivot + passageStart);}", "after": "public virtual float Norm(int passageStart){return 1 + 1 / (float)Math.Log(pivot + passageStart);}" }, { "index": 6124, "before": "public Record nextRecord() {Record r;r = getNextUnreadRecord();if (r != null) {return r;}while (true) {if (!_recStream.hasNextRecord()) {return null;}if (_lastRecordWasEOFLevelZero) {if (_recStream.getNextSid() != BOFRecord.sid) {return null;}}_recStream.nextRecord();r = readNextRecord();if (r == null) {continue;}return r;}}", "after": "public Record NextRecord(){Record r;r = GetNextUnreadRecord();if (r != null){return r;}while (true){if (!_recStream.HasNextRecord){return null;}_recStream.NextRecord();if (_lastRecordWasEOFLevelZero){if (_recStream.Sid != BOFRecord.sid){return null;}}r = ReadNextRecord();if (r == null){continue;}return r;}}" }, { "index": 6125, "before": "public final FileDescriptor getFD() throws IOException {return fd;}", "after": "public java.io.FileDescriptor getFD(){throw new System.NotImplementedException();}" }, { "index": 6126, "before": "public MoveAlbumPhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"MoveAlbumPhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public MoveAlbumPhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"MoveAlbumPhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 6127, "before": "public UpdateStackSetResult updateStackSet(UpdateStackSetRequest request) {request = beforeClientExecution(request);return executeUpdateStackSet(request);}", "after": "public virtual UpdateStackSetResponse UpdateStackSet(UpdateStackSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateStackSetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateStackSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6128, "before": "public static double acosh(double d) {return Math.log(Math.sqrt(Math.pow(d, 2) - 1) + d);}", "after": "public static double Acosh(double d){return Math.Log(Math.Sqrt(Math.Pow(d, 2) - 1) + d);}" }, { "index": 6129, "before": "public int stem(char s[], int len) {for (int i = 0; i < len; i++)switch(s[i]) {case 'ä':case 'à':case 'á':case 'â': s[i] = 'a'; break;case 'ö':case 'ò':case 'ó':case 'ô': s[i] = 'o'; break;case 'ï':case 'ì':case 'í':case 'î': s[i] = 'i'; break;case 'ü':case 'ù':case 'ú':case 'û': s[i] = 'u'; break;}len = step1(s, len);return step2(s, len);}", "after": "public virtual int Stem(char[] s, int len){for (int i = 0; i < len; i++){switch (s[i]){case 'ä':case 'à':case 'á':case 'â':s[i] = 'a';break;case 'ö':case 'ò':case 'ó':case 'ô':s[i] = 'o';break;case 'ï':case 'ì':case 'í':case 'î':s[i] = 'i';break;case 'ü':case 'ù':case 'ú':case 'û':s[i] = 'u';break;}}len = Step1(s, len);return Step2(s, len);}" }, { "index": 6130, "before": "public CreateProposalResult createProposal(CreateProposalRequest request) {request = beforeClientExecution(request);return executeCreateProposal(request);}", "after": "public virtual CreateProposalResponse CreateProposal(CreateProposalRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateProposalRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateProposalResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6131, "before": "public boolean didFetchIncludeTags() {return false;}", "after": "public virtual bool DidFetchIncludeTags(){return false;}" }, { "index": 6132, "before": "public RevCommit peek() {return head != null ? head.commit : null;}", "after": "public virtual RevCommit Peek(){return head != null ? head.commit : null;}" }, { "index": 6133, "before": "public HSSFBorderFormatting getBorderFormatting() {return getBorderFormatting(false);}", "after": "public IBorderFormatting GetBorderFormatting(){return GetBorderFormatting(false);}" }, { "index": 6134, "before": "public DeletedArea3DPtg(int externSheetIndex) {field_1_index_extern_sheet = externSheetIndex;unused1 = 0;unused2 = 0;}", "after": "public DeletedArea3DPtg(int externSheetIndex){field_1_index_extern_sheet = externSheetIndex;unused1 = 0;unused2 = 0;}" }, { "index": 6135, "before": "public SheetRecordCollector() {_totalSize = 0;_list = new ArrayList<>(128);}", "after": "public SheetRecordCollector(){_totalSize = 0;_list = new ArrayList(128);}" }, { "index": 6136, "before": "public RemovePermissionResult removePermission(RemovePermissionRequest request) {request = beforeClientExecution(request);return executeRemovePermission(request);}", "after": "public virtual RemovePermissionResponse RemovePermission(RemovePermissionRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemovePermissionRequestMarshaller.Instance;options.ResponseUnmarshaller = RemovePermissionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6137, "before": "public Cluster modifyClusterIamRoles(ModifyClusterIamRolesRequest request) {request = beforeClientExecution(request);return executeModifyClusterIamRoles(request);}", "after": "public virtual ModifyClusterIamRolesResponse ModifyClusterIamRoles(ModifyClusterIamRolesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClusterIamRolesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClusterIamRolesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6138, "before": "public AreaFormatRecord(RecordInputStream in) {field_1_foregroundColor = in.readInt();field_2_backgroundColor = in.readInt();field_3_pattern = in.readShort();field_4_formatFlags = in.readShort();field_5_forecolorIndex = in.readShort();field_6_backcolorIndex = in.readShort();}", "after": "public AreaFormatRecord(RecordInputStream in1){field_1_foregroundColor = in1.ReadInt();field_2_backgroundColor = in1.ReadInt();field_3_pattern = in1.ReadShort();field_4_formatFlags = in1.ReadShort();field_5_forecolorIndex = in1.ReadShort();field_6_backcolorIndex = in1.ReadShort();}" }, { "index": 6139, "before": "public int available() {return _lei.available();}", "after": "public int Available(){return _lei.Available();}" }, { "index": 6140, "before": "public final String toString() {return toString(\"\");}", "after": "public override string ToString(){return ToString(\"\");}" }, { "index": 6141, "before": "public short setShort(final short holder){return ( short ) set(holder);}", "after": "public short SetShort(short holder){return (short)this.Set(holder);}" }, { "index": 6142, "before": "public synchronized void setFlushPending(ThreadState perThread) {assert !perThread.flushPending;if (perThread.dwpt.getNumDocsInRAM() > 0) {perThread.flushPending = true; final long bytes = perThread.bytesUsed;flushBytes += bytes;activeBytes -= bytes;numPending++; assert assertMemory();} }", "after": "public void SetFlushPending(ThreadState perThread){lock (this){Debug.Assert(!perThread.flushPending);if (perThread.dwpt.NumDocsInRAM > 0){perThread.flushPending = true; long bytes = perThread.bytesUsed;flushBytes += bytes;activeBytes -= bytes;numPending++; Debug.Assert(AssertMemory());} }}" }, { "index": 6143, "before": "public StringBuilder insert(int offset, char[] ch) {insert0(offset, ch);return this;}", "after": "public java.lang.StringBuilder insert(int offset, char[] ch){insert0(offset, ch);return this;}" }, { "index": 6144, "before": "public StoredField(String name, double value) {super(name, TYPE);fieldsData = value;}", "after": "public StoredField(string name, double value): base(name, TYPE){FieldsData = new Double(value);}" }, { "index": 6145, "before": "public String getName() {return String.format(Locale.ROOT, \"Jelinek-Mercer(%f)\", getLambda());}", "after": "public override string GetName(){return \"Jelinek-Mercer(\" + Number.ToString(Lambda) + \")\";}" }, { "index": 6146, "before": "public ReleaseAddressRequest(String publicIp) {setPublicIp(publicIp);}", "after": "public ReleaseAddressRequest(string publicIp){_publicIp = publicIp;}" }, { "index": 6147, "before": "public DeleteKeyPairResult deleteKeyPair(DeleteKeyPairRequest request) {request = beforeClientExecution(request);return executeDeleteKeyPair(request);}", "after": "public virtual DeleteKeyPairResponse DeleteKeyPair(DeleteKeyPairRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteKeyPairRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteKeyPairResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6148, "before": "public byte[] getColor(int byteIndex) {int i = byteIndex - FIRST_COLOR_INDEX;if (i < 0 || i >= _colors.size()) {return null;}return _colors.get(i).getTriplet();}", "after": "public byte[] GetColor(short byteIndex){int i = byteIndex - FIRST_COLOR_INDEX;if (i < 0 || i >= field_2_colors.Count){return null;}PColor color = (PColor)field_2_colors[i];return new byte[] { color._red, color._green, color._blue };}" }, { "index": 6149, "before": "public int indexOfValue(E value) {if (mGarbage) {gc();}for (int i = 0; i < mSize; i++)if (mValues[i] == value)return i;return -1;}", "after": "public virtual int indexOfValue(E value){if (mGarbage){gc();}{for (int i = 0; i < mSize; i++){if (Sharpen.Util.Equals(value, mValues[i])){return i;}}}return -1;}" }, { "index": 6150, "before": "public URIish setScheme(String n) {final URIish r = new URIish(this);r.scheme = n;return r;}", "after": "public virtual NGit.Transport.URIish SetScheme(string n){NGit.Transport.URIish r = new NGit.Transport.URIish(this);r.scheme = n;return r;}" }, { "index": 6151, "before": "public void print(char[] charArray) {print(new String(charArray, 0, charArray.length));}", "after": "public virtual void print(char[] charArray){print(new string(charArray, 0, charArray.Length));}" }, { "index": 6152, "before": "public CommonToken(int type, String text) {this.type = type;this.channel = DEFAULT_CHANNEL;this.text = text;this.source = EMPTY_SOURCE;}", "after": "public CommonToken(int type, string text){this._type = type;this._channel = TokenConstants.DefaultChannel;this._text = text;this.source = EmptySource;}" }, { "index": 6153, "before": "public final String toString() { return field + \":\" + text(); }", "after": "public override string ToString(){return Field + \":\" + Text();}" }, { "index": 6154, "before": "public LongBuffer compact() {if (byteBuffer.isReadOnly()) {throw new ReadOnlyBufferException();}byteBuffer.limit(limit * SizeOf.LONG);byteBuffer.position(position * SizeOf.LONG);byteBuffer.compact();byteBuffer.clear();position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}", "after": "public override java.nio.LongBuffer compact(){if (byteBuffer.isReadOnly()){throw new java.nio.ReadOnlyBufferException();}byteBuffer.limit(_limit * libcore.io.SizeOf.LONG);byteBuffer.position(_position * libcore.io.SizeOf.LONG);byteBuffer.compact();byteBuffer.clear();_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}" }, { "index": 6155, "before": "public ATNSimulator(ATN atn,PredictionContextCache sharedContextCache){this.atn = atn;this.sharedContextCache = sharedContextCache;}", "after": "public ATNSimulator(ATN atn, PredictionContextCache sharedContextCache){this.atn = atn;this.sharedContextCache = sharedContextCache;}" }, { "index": 6156, "before": "public CachedOrdinalsReader(OrdinalsReader source) {this.source = source;}", "after": "public CachedOrdinalsReader(OrdinalsReader source){this.source = source;}" }, { "index": 6157, "before": "public static CompareResult valueOf(boolean matches) {if(matches) {return EQUAL ;}return LESS_THAN;}", "after": "public static CompareResult ValueOf(bool matches){if (matches){return Equal;}return LessThan;}" }, { "index": 6158, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getVersion());out.writeShort(getType());out.writeShort(getBuild());out.writeShort(getBuildYear());out.writeInt(getHistoryBitMask());out.writeInt(getRequiredVersion());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Version);out1.WriteShort((int) Type);out1.WriteShort(Build);out1.WriteShort(BuildYear);out1.WriteInt(HistoryBitMask);out1.WriteInt(RequiredVersion);}" }, { "index": 6159, "before": "public File getAbsoluteFile() {return new File(getAbsolutePath());}", "after": "public java.io.File getAbsoluteFile(){return new java.io.File(getAbsolutePath());}" }, { "index": 6160, "before": "public DescribeTemplatePermissionsResult describeTemplatePermissions(DescribeTemplatePermissionsRequest request) {request = beforeClientExecution(request);return executeDescribeTemplatePermissions(request);}", "after": "public virtual DescribeTemplatePermissionsResponse DescribeTemplatePermissions(DescribeTemplatePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTemplatePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTemplatePermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6161, "before": "public WorkflowExecutionCount countOpenWorkflowExecutions(CountOpenWorkflowExecutionsRequest request) {request = beforeClientExecution(request);return executeCountOpenWorkflowExecutions(request);}", "after": "public virtual CountOpenWorkflowExecutionsResponse CountOpenWorkflowExecutions(CountOpenWorkflowExecutionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CountOpenWorkflowExecutionsRequestMarshaller.Instance;options.ResponseUnmarshaller = CountOpenWorkflowExecutionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6162, "before": "public DescribeAccountLimitsResult describeAccountLimits() {return describeAccountLimits(new DescribeAccountLimitsRequest());}", "after": "public virtual DescribeAccountLimitsResponse DescribeAccountLimits(){return DescribeAccountLimits(new DescribeAccountLimitsRequest());}" }, { "index": 6163, "before": "public Object get(CharSequence key) {if (fst == null) {return null;}Arc arc = new Arc<>();Long result = null;try {result = lookupPrefix(new BytesRef(key), arc);} catch (IOException bogus) { throw new RuntimeException(bogus); }if (result == null || !arc.isFinal()) {return null;} else {return Integer.valueOf(decodeWeight(result + arc.nextFinalOutput()));}}", "after": "public virtual object Get(string key){if (fst == null){return null;}FST.Arc arc = new FST.Arc();long? result = null;try{result = LookupPrefix(new BytesRef(key), arc);}catch (IOException bogus){throw new Exception(bogus.ToString(), bogus);}if (result == null || !arc.IsFinal){return null;}else{return DecodeWeight(result.GetValueOrDefault() + arc.NextFinalOutput.GetValueOrDefault());}}" }, { "index": 6164, "before": "public CreateGameServerGroupResult createGameServerGroup(CreateGameServerGroupRequest request) {request = beforeClientExecution(request);return executeCreateGameServerGroup(request);}", "after": "public virtual CreateGameServerGroupResponse CreateGameServerGroup(CreateGameServerGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateGameServerGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateGameServerGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6165, "before": "public static boolean isInternalDateFormat(int format) {switch(format) {case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16:case 0x2d:case 0x2e:case 0x2f:return true;}return false;}", "after": "public static bool IsInternalDateFormat(int format){bool retval = false;switch (format){case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16:case 0x2d:case 0x2e:case 0x2f:retval = true;break;default:retval = false;break;}return retval;}" }, { "index": 6166, "before": "public PackFile getPackFile() {return newPack;}", "after": "public virtual PackFile GetPackFile(){return newPack;}" }, { "index": 6167, "before": "public CreateInternetGatewayResult createInternetGateway() {return createInternetGateway(new CreateInternetGatewayRequest());}", "after": "public virtual CreateInternetGatewayResponse CreateInternetGateway(){return CreateInternetGateway(new CreateInternetGatewayRequest());}" }, { "index": 6168, "before": "public void drawPolyline(int[] xPoints, int[] yPoints,int nPoints){if (logger.check( POILogger.WARN ))logger.log(POILogger.WARN,\"drawPolyline not supported\");}", "after": "public void DrawPolyline(int[] xPoints, int[] yPoints,int nPoints){if (Logger.Check(POILogger.WARN))Logger.Log(POILogger.WARN, \"DrawPolyline not supported\");}" }, { "index": 6169, "before": "public void close() {unpackedObjectCache.clear();final PackList packs = packList.get();if (packs != NO_PACKS && packList.compareAndSet(packs, NO_PACKS)) {for (PackFile p : packs.packs)p.close();}AlternateHandle[] alt = alternates.get();if (alt != null && alternates.compareAndSet(alt, null)) {for(AlternateHandle od : alt)od.close();}}", "after": "public override void Close(){unpackedObjectCache.Clear();ObjectDirectory.PackList packs = packList.Get();packList.Set(NO_PACKS);foreach (PackFile p in packs.packs){p.Close();}FileObjectDatabase.AlternateHandle[] alt = alternates.Get();if (alt != null){alternates.Set(null);foreach (FileObjectDatabase.AlternateHandle od in alt){od.Close();}}}" }, { "index": 6170, "before": "public List getHiddenTokensToRight(int tokenIndex, int channel) {lazyInit();if ( tokenIndex<0 || tokenIndex>=tokens.size() ) {throw new IndexOutOfBoundsException(tokenIndex+\" not in 0..\"+(tokens.size()-1));}int nextOnChannel =nextTokenOnChannel(tokenIndex + 1, Lexer.DEFAULT_TOKEN_CHANNEL);int to;int from = tokenIndex+1;if ( nextOnChannel == -1 ) to = size()-1;else to = nextOnChannel;return filterForChannel(from, to, channel);}", "after": "public virtual IList GetHiddenTokensToRight(int tokenIndex, int channel){LazyInit();if (tokenIndex < 0 || tokenIndex >= tokens.Count){throw new ArgumentOutOfRangeException(tokenIndex + \" not in 0..\" + (tokens.Count - 1));}int nextOnChannel = NextTokenOnChannel(tokenIndex + 1, Lexer.DefaultTokenChannel);int to;int from = tokenIndex + 1;if (nextOnChannel == -1){to = Size - 1;}else{to = nextOnChannel;}return FilterForChannel(from, to, channel);}" }, { "index": 6171, "before": "public int size() {return Hashtable.this.size();}", "after": "public override int size(){return this._enclosing.size();}" }, { "index": 6172, "before": "public CustomAvailabilityZone deleteCustomAvailabilityZone(DeleteCustomAvailabilityZoneRequest request) {request = beforeClientExecution(request);return executeDeleteCustomAvailabilityZone(request);}", "after": "public virtual DeleteCustomAvailabilityZoneResponse DeleteCustomAvailabilityZone(DeleteCustomAvailabilityZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCustomAvailabilityZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCustomAvailabilityZoneResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6173, "before": "public BatchUnsuspendUserResult batchUnsuspendUser(BatchUnsuspendUserRequest request) {request = beforeClientExecution(request);return executeBatchUnsuspendUser(request);}", "after": "public virtual BatchUnsuspendUserResponse BatchUnsuspendUser(BatchUnsuspendUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchUnsuspendUserRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchUnsuspendUserResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6174, "before": "public DeleteAccountSettingResult deleteAccountSetting(DeleteAccountSettingRequest request) {request = beforeClientExecution(request);return executeDeleteAccountSetting(request);}", "after": "public virtual DeleteAccountSettingResponse DeleteAccountSetting(DeleteAccountSettingRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAccountSettingRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAccountSettingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6175, "before": "public static SemanticContext or(SemanticContext a, SemanticContext b) {if ( a == null ) return b;if ( b == null ) return a;if ( a == NONE || b == NONE ) return NONE;OR result = new OR(a, b);if (result.opnds.length == 1) {return result.opnds[0];}return result;}", "after": "public OR(SemanticContext a, SemanticContext b){HashSet operands = new HashSet();if (a is SemanticContext.OR){operands.UnionWith(((OR)a).opnds);}else{operands.Add(a);}if (b is SemanticContext.OR){operands.UnionWith(((OR)b).opnds);}else{operands.Add(b);}IList precedencePredicates = FilterPrecedencePredicates(operands);if (precedencePredicates.Count > 0){SemanticContext.PrecedencePredicate reduced = precedencePredicates.Max();operands.Add(reduced);}this.opnds = operands.ToArray();}" }, { "index": 6176, "before": "public ListHumanLoopsResult listHumanLoops(ListHumanLoopsRequest request) {request = beforeClientExecution(request);return executeListHumanLoops(request);}", "after": "public virtual ListHumanLoopsResponse ListHumanLoops(ListHumanLoopsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListHumanLoopsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListHumanLoopsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6177, "before": "public ValueEval evaluate(ValueEval[] args, int srcCellRow, int srcCellCol) {int maxN = args.length;if(maxN < 1) {return ErrorEval.VALUE_INVALID;}ValueEval firstArg = args[0];try {if(firstArg instanceof NumericValueEval) {return evaluateSingleProduct(args);}if(firstArg instanceof RefEval) {return evaluateSingleProduct(args);}if (firstArg instanceof TwoDEval) {TwoDEval ae = (TwoDEval) firstArg;if(ae.isRow() && ae.isColumn()) {return evaluateSingleProduct(args);}return evaluateAreaSumProduct(args);}} catch (EvaluationException e) {return e.getErrorEval();}throw new RuntimeException(\"Invalid arg type for SUMPRODUCT: (\"+ firstArg.getClass().getName() + \")\");}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcCellRow, int srcCellCol){int maxN = args.Length;if (maxN < 1){return ErrorEval.VALUE_INVALID;}ValueEval firstArg = args[0];try{if (firstArg is NumericValueEval){return EvaluateSingleProduct(args);}if (firstArg is RefEval){return EvaluateSingleProduct(args);}if (firstArg is TwoDEval){TwoDEval ae = (TwoDEval)firstArg;if (ae.IsRow && ae.IsColumn){return EvaluateSingleProduct(args);}return EvaluateAreaSumProduct(args);}}catch (EvaluationException e){return e.GetErrorEval();}throw new RuntimeException(\"Invalid arg type for SUMPRODUCT: (\"+ firstArg.GetType().Name + \")\");}" }, { "index": 6178, "before": "public DescribeParameterGroupsResult describeParameterGroups(DescribeParameterGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeParameterGroups(request);}", "after": "public virtual DescribeParameterGroupsResponse DescribeParameterGroups(DescribeParameterGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeParameterGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeParameterGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6179, "before": "public static char[] grow(char[] array, int minSize) {assert minSize >= 0: \"size must be positive (got \" + minSize + \"): likely integer overflow?\";if (array.length < minSize) {return growExact(array, oversize(minSize, Character.BYTES));} elsereturn array;}", "after": "public static bool[] Grow(bool[] array, int minSize){Debug.Assert(minSize >= 0, \"size must be positive (got \" + minSize + \"): likely integer overflow?\");if (array.Length < minSize){bool[] newArray = new bool[Oversize(minSize, 1)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}" }, { "index": 6180, "before": "public double readDouble() throws IOException {return primitiveTypes.readDouble();}", "after": "public virtual double readDouble(){throw new System.NotImplementedException();}" }, { "index": 6181, "before": "public void setTokenSource(TokenSource tokenSource) {this.tokenSource = tokenSource;tokens.clear();p = -1;fetchedEOF = false;}", "after": "public virtual void SetTokenSource(ITokenSource tokenSource){this._tokenSource = tokenSource;tokens.Clear();p = -1;this.fetchedEOF = false;}" }, { "index": 6182, "before": "public void reset(Parser recognizer) {endErrorCondition(recognizer);}", "after": "public virtual void Reset(Parser recognizer){EndErrorCondition(recognizer);}" }, { "index": 6183, "before": "public DescribeVpcPeeringAuthorizationsResult describeVpcPeeringAuthorizations(DescribeVpcPeeringAuthorizationsRequest request) {request = beforeClientExecution(request);return executeDescribeVpcPeeringAuthorizations(request);}", "after": "public virtual DescribeVpcPeeringAuthorizationsResponse DescribeVpcPeeringAuthorizations(DescribeVpcPeeringAuthorizationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcPeeringAuthorizationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcPeeringAuthorizationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6184, "before": "public CreateDocumentationVersionResult createDocumentationVersion(CreateDocumentationVersionRequest request) {request = beforeClientExecution(request);return executeCreateDocumentationVersion(request);}", "after": "public virtual CreateDocumentationVersionResponse CreateDocumentationVersion(CreateDocumentationVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDocumentationVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDocumentationVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6185, "before": "public CreateClusterResult createCluster(CreateClusterRequest request) {request = beforeClientExecution(request);return executeCreateCluster(request);}", "after": "public virtual CreateClusterResponse CreateCluster(CreateClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6186, "before": "public DoubleBuffer compact() {if (byteBuffer.isReadOnly()) {throw new ReadOnlyBufferException();}byteBuffer.limit(limit * SizeOf.DOUBLE);byteBuffer.position(position * SizeOf.DOUBLE);byteBuffer.compact();byteBuffer.clear();position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}", "after": "public override java.nio.DoubleBuffer compact(){if (byteBuffer.isReadOnly()){throw new java.nio.ReadOnlyBufferException();}byteBuffer.limit(_limit * libcore.io.SizeOf.DOUBLE);byteBuffer.position(_position * libcore.io.SizeOf.DOUBLE);byteBuffer.compact();byteBuffer.clear();_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}" }, { "index": 6187, "before": "public int[] grow() {final int[] ord = super.grow();boost = ArrayUtil.grow(boost, ord.length);if (termState.length < ord.length) {TermStates[] tmpTermState = new TermStates[ArrayUtil.oversize(ord.length, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];System.arraycopy(termState, 0, tmpTermState, 0, termState.length);termState = tmpTermState;}assert termState.length >= ord.length && boost.length >= ord.length;return ord;}", "after": "public override int[] Grow(){int[] ord = base.Grow();boost = ArrayUtil.Grow(boost, ord.Length);if (termState.Length < ord.Length){TermContext[] tmpTermState = new TermContext[ArrayUtil.Oversize(ord.Length, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];Array.Copy(termState, 0, tmpTermState, 0, termState.Length);termState = tmpTermState;}Debug.Assert(termState.Length >= ord.Length && boost.Length >= ord.Length);return ord;}" }, { "index": 6188, "before": "public DefaultColWidthRecord(RecordInputStream in){field_1_col_width = in.readUShort();}", "after": "public DefaultColWidthRecord(RecordInputStream in1){field_1_col_width = in1.ReadUShort();}" }, { "index": 6189, "before": "public GetAttributesResult getAttributes(GetAttributesRequest request) {request = beforeClientExecution(request);return executeGetAttributes(request);}", "after": "public virtual GetAttributesResponse GetAttributes(GetAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6190, "before": "public GetSubUserListRequest() {super(\"cr\", \"2016-06-07\", \"GetSubUserList\", \"cr\");setUriPattern(\"/users/subAccount\");setMethod(MethodType.GET);}", "after": "public GetSubUserListRequest(): base(\"cr\", \"2016-06-07\", \"GetSubUserList\", \"cr\", \"openAPI\"){UriPattern = \"/users/subAccount\";Method = MethodType.GET;}" }, { "index": 6191, "before": "public void setQueryConfigHandler(QueryConfigHandler queryConfigHandler) {this.queryConfigHandler = queryConfigHandler;}", "after": "public virtual void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler){this.queryConfigHandler = queryConfigHandler;}" }, { "index": 6192, "before": "public WindowCacheConfig() {packedGitOpenFiles = 128;packedGitLimit = 10 * MB;useStrongRefs = false;packedGitWindowSize = 8 * KB;packedGitMMAP = false;deltaBaseCacheLimit = 10 * MB;streamFileThreshold = PackConfig.DEFAULT_BIG_FILE_THRESHOLD;}", "after": "public WindowCacheConfig(){packedGitOpenFiles = 128;packedGitLimit = 10 * MB;packedGitWindowSize = 8 * KB;packedGitMMAP = false;deltaBaseCacheLimit = 10 * MB;streamFileThreshold = PackConfig.DEFAULT_BIG_FILE_THRESHOLD;}" }, { "index": 6193, "before": "public MutableFPNumber copy() {return new MutableFPNumber(_significand, _binaryExponent);}", "after": "public MutableFPNumber Copy(){return new MutableFPNumber(_significand, _binaryExponent);}" }, { "index": 6194, "before": "public ShortBuffer asReadOnlyBuffer() {ShortToByteBufferAdapter buf = new ShortToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf.limit = limit;buf.position = position;buf.mark = mark;buf.byteBuffer.order = byteBuffer.order;return buf;}", "after": "public override java.nio.ShortBuffer asReadOnlyBuffer(){java.nio.ShortToByteBufferAdapter buf = new java.nio.ShortToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf._limit = _limit;buf._position = _position;buf._mark = _mark;buf.byteBuffer._order = byteBuffer._order;return buf;}" }, { "index": 6195, "before": "public DescribeReservedCacheNodesResult describeReservedCacheNodes(DescribeReservedCacheNodesRequest request) {request = beforeClientExecution(request);return executeDescribeReservedCacheNodes(request);}", "after": "public virtual DescribeReservedCacheNodesResponse DescribeReservedCacheNodes(DescribeReservedCacheNodesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedCacheNodesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedCacheNodesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6196, "before": "public ListOperationsResult listOperations(ListOperationsRequest request) {request = beforeClientExecution(request);return executeListOperations(request);}", "after": "public virtual ListOperationsResponse ListOperations(ListOperationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListOperationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListOperationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6197, "before": "public SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest() {super(\"Domain-intl\", \"2017-12-18\", \"SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential\", \"domain\");setMethod(MethodType.POST);}", "after": "public SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest(): base(\"Domain-intl\", \"2017-12-18\", \"SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential\", \"domain\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 6198, "before": "public BatchReadResult batchRead(BatchReadRequest request) {request = beforeClientExecution(request);return executeBatchRead(request);}", "after": "public virtual BatchReadResponse BatchRead(BatchReadRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchReadRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchReadResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6199, "before": "public InstanceProfileCredentials fetch(int retryTimes) throws ClientException {for (int i = 0; i <= retryTimes; i++) {try {return fetch();} catch (ClientException e) {if (i == retryTimes) {throw e;}}}throw new ClientException(\"Failed to connect ECS Metadata Service: Max retry times exceeded.\");}", "after": "public InstanceProfileCredentials Fetch(int retryTimes){for (var i = 0; i <= retryTimes; i++){try{return Fetch();}catch (ClientException e){if (i == retryTimes){throw new ClientException(e.ErrorCode, e.ErrorMessage);}}}throw new ClientException(\"Failed to connect ECS Metadata Service: Max retry times exceeded.\");}" }, { "index": 6200, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex) {Date now = new Date(System.currentTimeMillis());return new NumberEval(DateUtil.getExcelDate(now));}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex){return new NumberEval(DateUtil.GetExcelDate(DateTime.Now));}" }, { "index": 6201, "before": "public static int idealIntArraySize(int need) {return idealByteArraySize(need * 4) / 4;}", "after": "public static int idealIntArraySize(int need){return idealByteArraySize(need * 4) / 4;}" }, { "index": 6202, "before": "public long record(IndexSearcher searcher) throws IOException {ensureOpen();final long version = ((DirectoryReader) searcher.getIndexReader()).getVersion();SearcherTracker tracker = searchers.get(version);if (tracker == null) {tracker = new SearcherTracker(searcher);if (searchers.putIfAbsent(version, tracker) != null) {tracker.close();}} else if (tracker.searcher != searcher) {throw new IllegalArgumentException(\"the provided searcher has the same underlying reader version yet the searcher instance differs from before (new=\" + searcher + \" vs old=\" + tracker.searcher);}return version;}", "after": "public virtual long Record(IndexSearcher searcher){EnsureOpen();var version = ((DirectoryReader)searcher.IndexReader).Version;var factoryMethodCalled = false;var tracker = _searchers.GetOrAdd(version, l => new Lazy(() => { factoryMethodCalled = true; return new SearcherTracker(searcher); })).Value;if (!factoryMethodCalled && tracker.Searcher != searcher){throw new ArgumentException(\"the provided searcher has the same underlying reader version yet the searcher instance differs from before (new=\" + searcher + \" vs old=\" + tracker.Searcher);}return version;}" }, { "index": 6203, "before": "public ClassifyDocumentResult classifyDocument(ClassifyDocumentRequest request) {request = beforeClientExecution(request);return executeClassifyDocument(request);}", "after": "public virtual ClassifyDocumentResponse ClassifyDocument(ClassifyDocumentRequest request){var options = new InvokeOptions();options.RequestMarshaller = ClassifyDocumentRequestMarshaller.Instance;options.ResponseUnmarshaller = ClassifyDocumentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6204, "before": "public GetIdentityPoolRolesResult getIdentityPoolRoles(GetIdentityPoolRolesRequest request) {request = beforeClientExecution(request);return executeGetIdentityPoolRoles(request);}", "after": "public virtual GetIdentityPoolRolesResponse GetIdentityPoolRoles(GetIdentityPoolRolesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdentityPoolRolesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdentityPoolRolesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6205, "before": "public CharSequence subSequence(int start, int end) {int newLength = end - start;return new UnescapedCharSequence(this.chars, this.wasEscaped, start,newLength);}", "after": "public ICharSequence Subsequence(int startIndex, int length){return new UnescapedCharSequence(this.chars, this.wasEscaped, startIndex,length);}" }, { "index": 6206, "before": "public CreateDeploymentGroupResult createDeploymentGroup(CreateDeploymentGroupRequest request) {request = beforeClientExecution(request);return executeCreateDeploymentGroup(request);}", "after": "public virtual CreateDeploymentGroupResponse CreateDeploymentGroup(CreateDeploymentGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDeploymentGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDeploymentGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6207, "before": "public String toString() {StringBuilder r = new StringBuilder();r.append(\"Tag\");r.append(\"={\\n\");r.append(\"object \");r.append(object != null ? object.name() : \"NOT_SET\");r.append(\"\\n\");r.append(\"type \");r.append(object != null ? Constants.typeString(type) : \"NOT_SET\");r.append(\"\\n\");r.append(\"tag \");r.append(tag != null ? tag : \"NOT_SET\");r.append(\"\\n\");if (tagger != null) {r.append(\"tagger \");r.append(tagger);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(\"Tag\");r.Append(\"={\\n\");r.Append(\"object \");r.Append(@object != null ? @object.Name : \"NOT_SET\");r.Append(\"\\n\");r.Append(\"type \");r.Append(@object != null ? Constants.TypeString(type) : \"NOT_SET\");r.Append(\"\\n\");r.Append(\"tag \");r.Append(tag != null ? tag : \"NOT_SET\");r.Append(\"\\n\");if (tagger != null){r.Append(\"tagger \");r.Append(tagger);r.Append(\"\\n\");}r.Append(\"\\n\");r.Append(message != null ? message : string.Empty);r.Append(\"}\");return r.ToString();}" }, { "index": 6208, "before": "public ET next() {if (expectedModCount == list.modCount) {if (hasNext()) {link = link.previous;canRemove = true;return link.data;}throw new NoSuchElementException();}throw new ConcurrentModificationException();}", "after": "public virtual ET next(){if (this.expectedModCount == this.list.modCount){if (this.hasNext()){this.link = this.link.previous;this.canRemove = true;return this.link.data;}throw new java.util.NoSuchElementException();}throw new java.util.ConcurrentModificationException();}" }, { "index": 6209, "before": "public boolean contains(Object needle) {if (needle instanceof String) {String n = (String) needle;return names.containsKey(n)|| names.containsKey(StringUtils.toLowerCase(n));}return false;}", "after": "public override bool Contains(object needle){if (needle is string){string n = (string)needle;return names.ContainsKey(n) || names.ContainsKey(StringUtils.ToLowerCase(n));}return false;}" }, { "index": 6210, "before": "public int set(final int holder){return holder | _mask;}", "after": "public int Set(int holder){return (holder | this._mask);}" }, { "index": 6211, "before": "public void setContext(int lineCount) {if (lineCount < 0)throw new IllegalArgumentException(JGitText.get().contextMustBeNonNegative);context = lineCount;}", "after": "public virtual void SetContext(int lineCount){if (lineCount < 0){throw new ArgumentException(JGitText.Get().contextMustBeNonNegative);}context = lineCount;}" }, { "index": 6212, "before": "public String getPath(Side side) {return side == Side.OLD ? getOldPath() : getNewPath();}", "after": "public virtual string GetPath(DiffEntry.Side side){return side == DiffEntry.Side.OLD ? GetOldPath() : GetNewPath();}" }, { "index": 6213, "before": "public DescribeAccessPointsResult describeAccessPoints(DescribeAccessPointsRequest request) {request = beforeClientExecution(request);return executeDescribeAccessPoints(request);}", "after": "public virtual DescribeAccessPointsResponse DescribeAccessPoints(DescribeAccessPointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAccessPointsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAccessPointsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6214, "before": "public StringBuilder deleteCharAt(int index) {deleteCharAt0(index);return this;}", "after": "public java.lang.StringBuilder deleteCharAt(int index){deleteCharAt0(index);return this;}" }, { "index": 6215, "before": "public int addSSTString(UnicodeString string) {LOG.log(DEBUG, \"insert to sst string='\", string);if (sst == null) {insertSST();}return sst.addString(string);}", "after": "public int AddSSTString(UnicodeString str){if (sst == null){InsertSST();}return sst.AddString(str);}" }, { "index": 6216, "before": "public String outputToString(TermData data) {return data.toString();}", "after": "public override string OutputToString(TermData data){return data.ToString();}" }, { "index": 6217, "before": "public List getAllEmbeddedObjects(){List objects = new ArrayList<>();for (HSSFSheet sheet : _sheets){getAllEmbeddedObjects(sheet, objects);}return Collections.unmodifiableList(objects);}", "after": "public IList GetAllEmbeddedObjects(){List objects = new List();for (int i = 0; i < NumberOfSheets; i++){GetAllEmbeddedObjects((HSSFSheet)GetSheetAt(i), objects);}return objects;}" }, { "index": 6218, "before": "public DisableDirectoryResult disableDirectory(DisableDirectoryRequest request) {request = beforeClientExecution(request);return executeDisableDirectory(request);}", "after": "public virtual DisableDirectoryResponse DisableDirectory(DisableDirectoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableDirectoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableDirectoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6219, "before": "public UpdateApiMappingResult updateApiMapping(UpdateApiMappingRequest request) {request = beforeClientExecution(request);return executeUpdateApiMapping(request);}", "after": "public virtual UpdateApiMappingResponse UpdateApiMapping(UpdateApiMappingRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApiMappingRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApiMappingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6220, "before": "public StringBuffer insert(int index, boolean b) {return insert(index, b ? \"true\" : \"false\");}", "after": "public java.lang.StringBuffer insert(int index, bool b){return insert(index, b ? \"true\" : \"false\");}" }, { "index": 6221, "before": "public UpdateConfigurationResult updateConfiguration(UpdateConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateConfiguration(request);}", "after": "public virtual UpdateConfigurationResponse UpdateConfiguration(UpdateConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6222, "before": "public synchronized StringBuffer replace(int start, int end, String string) {replace0(start, end, string);return this;}", "after": "public java.lang.StringBuffer replace(int start, int end, string @string){lock (this){replace0(start, end, @string);return this;}}" }, { "index": 6223, "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 = 60; shift >= 0; shift -= 4) {values[valuesOffset++] = (int) ((block >>> shift) & 15);}}}", "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 = 60; shift >= 0; shift -= 4){values[valuesOffset++] = (int)(((long)((ulong)block >> shift)) & 15);}}}" }, { "index": 6224, "before": "public synchronized void print(String str) {if (out == null) {setError();return;}if (str == null) {print(\"null\");return;}try {if (encoding == null) {write(str.getBytes());} else {write(str.getBytes(encoding));}} catch (IOException e) {setError();}}", "after": "public virtual void print(string str){lock (this){if (@out == null){setError();return;}if (str == null){print(\"null\");return;}try{if (encoding == null){write(Sharpen.StringHelper.GetBytesForString(str));}else{write(Sharpen.StringHelper.GetBytesForString(str, encoding));}}catch (System.IO.IOException){setError();}}}" }, { "index": 6225, "before": "@Override public E set(int index, E object) {synchronized (CopyOnWriteArrayList.this) {slice.checkElementIndex(index);slice.checkConcurrentModification(elements);E result = CopyOnWriteArrayList.this.set(index + slice.from, object);slice = new Slice(elements, slice.from, slice.to);return result;}}", "after": "public virtual E set(int index, E e){lock (this){object[] newElements = (object[])elements.Clone();E result = (E)newElements[index];newElements[index] = e;elements = newElements;return result;}}" }, { "index": 6226, "before": "public static void fill(Object[] array, int start, int end, Object value) {Arrays.checkStartAndEnd(array.length, start, end);for (int i = start; i < end; i++) {array[i] = value;}}", "after": "public static void fill(object[] array, int start, int end, object value){java.util.Arrays.checkStartAndEnd(array.Length, start, end);{for (int i = start; i < end; i++){array[i] = value;}}}" }, { "index": 6227, "before": "public short checkExternSheet(int firstSheetNumber, int lastSheetNumber){return (short)getOrCreateLinkTable().checkExternSheet(firstSheetNumber, lastSheetNumber);}", "after": "public short checkExternSheet(int firstSheetNumber, int lastSheetNumber){return (short)OrCreateLinkTable.CheckExternSheet(firstSheetNumber, lastSheetNumber);}" }, { "index": 6228, "before": "public DeleteClusterParameterGroupResult deleteClusterParameterGroup(DeleteClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeDeleteClusterParameterGroup(request);}", "after": "public virtual DeleteClusterParameterGroupResponse DeleteClusterParameterGroup(DeleteClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteClusterParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6229, "before": "public GetTemplateResult getTemplate(GetTemplateRequest request) {request = beforeClientExecution(request);return executeGetTemplate(request);}", "after": "public virtual GetTemplateResponse GetTemplate(GetTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6230, "before": "public ByteBuffer put(byte[] src, int srcOffset, int byteCount) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer put(byte[] src, int srcOffset, int byteCount){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 6231, "before": "public Note call() throws GitAPIException {checkCallable();NoteMap map = NoteMap.newEmptyMap();RevCommit notesCommit = null;try (RevWalk walk = new RevWalk(repo);ObjectInserter inserter = repo.newObjectInserter()) {Ref ref = repo.findRef(notesRef);if (ref != null) {notesCommit = walk.parseCommit(ref.getObjectId());map = NoteMap.read(walk.getObjectReader(), notesCommit);}map.set(id, message, inserter);commitNoteMap(repo, notesRef, walk, map, notesCommit, inserter,\"Notes added by 'git notes add'\"); return map.getNote(id);} catch (IOException e) {throw new JGitInternalException(e.getMessage(), e);}}", "after": "public override Note Call(){CheckCallable();RevWalk walk = new RevWalk(repo);ObjectInserter inserter = repo.NewObjectInserter();NoteMap map = NoteMap.NewEmptyMap();RevCommit notesCommit = null;try{Ref @ref = repo.GetRef(notesRef);if (@ref != null){notesCommit = walk.ParseCommit(@ref.GetObjectId());map = NoteMap.Read(walk.GetObjectReader(), notesCommit);}map.Set(id, message, inserter);CommitNoteMap(walk, map, notesCommit, inserter, \"Notes added by 'git notes add'\");return map.GetNote(id);}catch (IOException e){throw new JGitInternalException(e.Message, e);}finally{inserter.Release();walk.Release();}}" }, { "index": 6232, "before": "public DeleteNodegroupResult deleteNodegroup(DeleteNodegroupRequest request) {request = beforeClientExecution(request);return executeDeleteNodegroup(request);}", "after": "public virtual DeleteNodegroupResponse DeleteNodegroup(DeleteNodegroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNodegroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNodegroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6233, "before": "public final boolean hasRemaining() {return position < limit;}", "after": "public bool hasRemaining(){return _position < _limit;}" }, { "index": 6234, "before": "public final int compareTo(AnyObjectId other) {if (this == other)return 0;int cmp;cmp = NB.compareUInt32(w1, other.w1);if (cmp != 0)return cmp;cmp = NB.compareUInt32(w2, other.w2);if (cmp != 0)return cmp;cmp = NB.compareUInt32(w3, other.w3);if (cmp != 0)return cmp;cmp = NB.compareUInt32(w4, other.w4);if (cmp != 0)return cmp;return NB.compareUInt32(w5, other.w5);}", "after": "public int CompareTo(AnyObjectId other){if (this == other){return 0;}int cmp;cmp = NB.CompareUInt32(w1, other.w1);if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w2, other.w2);if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w3, other.w3);if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w4, other.w4);if (cmp != 0){return cmp;}return NB.CompareUInt32(w5, other.w5);}" }, { "index": 6235, "before": "public static IntBuffer wrap(int[] array) {return wrap(array, 0, array.length);}", "after": "public static java.nio.IntBuffer wrap(int[] array_1){return wrap(array_1, 0, array_1.Length);}" }, { "index": 6236, "before": "public ObjectId getNewId() {return newId;}", "after": "public virtual ObjectId GetNewId(){return newId;}" }, { "index": 6237, "before": "public DescribeBrokerInstanceOptionsResult describeBrokerInstanceOptions(DescribeBrokerInstanceOptionsRequest request) {request = beforeClientExecution(request);return executeDescribeBrokerInstanceOptions(request);}", "after": "public virtual DescribeBrokerInstanceOptionsResponse DescribeBrokerInstanceOptions(DescribeBrokerInstanceOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeBrokerInstanceOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeBrokerInstanceOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6238, "before": "public GetDASHStreamingSessionURLResult getDASHStreamingSessionURL(GetDASHStreamingSessionURLRequest request) {request = beforeClientExecution(request);return executeGetDASHStreamingSessionURL(request);}", "after": "public virtual GetDASHStreamingSessionURLResponse GetDASHStreamingSessionURL(GetDASHStreamingSessionURLRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDASHStreamingSessionURLRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDASHStreamingSessionURLResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6239, "before": "public CancelJobResult cancelJob(CancelJobRequest request) {request = beforeClientExecution(request);return executeCancelJob(request);}", "after": "public virtual CancelJobResponse CancelJob(CancelJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6240, "before": "public ListExperimentsResult listExperiments(ListExperimentsRequest request) {request = beforeClientExecution(request);return executeListExperiments(request);}", "after": "public virtual ListExperimentsResponse ListExperiments(ListExperimentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListExperimentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListExperimentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6241, "before": "public CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest request) {request = beforeClientExecution(request);return executeCreateSubnetGroup(request);}", "after": "public virtual CreateSubnetGroupResponse CreateSubnetGroup(CreateSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSubnetGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6242, "before": "public String toString() { return \"scorer(\" + weight + \")[\" + super.toString() + \"]\"; }", "after": "public override string ToString(){return \"scorer(\" + m_weight + \")\";}" }, { "index": 6243, "before": "public Executor getExecutor() {return executor;}", "after": "public virtual Executor GetExecutor(){return executor;}" }, { "index": 6244, "before": "public void write(LittleEndianOutput out) {throw invalid();}", "after": "public override void Write(ILittleEndianOutput out1){throw Invalid();}" }, { "index": 6245, "before": "public StandardQueryParser(Analyzer analyzer) {this();this.setAnalyzer(analyzer);}", "after": "public StandardQueryParser(Analyzer analyzer): this(){this.Analyzer = analyzer;}" }, { "index": 6246, "before": "public IndexedUDFFinder(UDFFinder... usedToolPacks) {super(usedToolPacks);_funcMap = new HashMap<>();}", "after": "public IndexedUDFFinder(params UDFFinder[] usedToolPacks): base(usedToolPacks){_funcMap = new Dictionary();}" }, { "index": 6247, "before": "public static int countMatchingCellsInRef(RefEval refEval, I_MatchPredicate criteriaPredicate) {int result = 0;final int firstSheetIndex = refEval.getFirstSheetIndex();final int lastSheetIndex = refEval.getLastSheetIndex();for (int sIx = firstSheetIndex; sIx <= lastSheetIndex; sIx++) {ValueEval ve = refEval.getInnerValueEval(sIx);if(criteriaPredicate.matches(ve)) {result++;}}return result;}", "after": "public static int CountMatchingCellsInRef(RefEval refEval, IMatchPredicate criteriaPredicate){int result = 0;for (int sIx = refEval.FirstSheetIndex; sIx <= refEval.LastSheetIndex; sIx++){ValueEval ve = refEval.GetInnerValueEval(sIx);if (criteriaPredicate.Matches(ve)){result++;}}return result;}" }, { "index": 6248, "before": "public NameXPxg(int externalWorkbookNumber, String sheetName, String nameName) {this.externalWorkbookNumber = externalWorkbookNumber;this.sheetName = sheetName;this.nameName = nameName;}", "after": "public NameXPxg(int externalWorkbookNumber, String sheetName, String nameName){this.externalWorkbookNumber = externalWorkbookNumber;this.sheetName = sheetName;this.nameName = nameName;}" }, { "index": 6249, "before": "public MergeInfo(int totalMaxDoc, long estimatedMergeBytes, boolean isExternal, int mergeMaxNumSegments) {this.totalMaxDoc = totalMaxDoc;this.estimatedMergeBytes = estimatedMergeBytes;this.isExternal = isExternal;this.mergeMaxNumSegments = mergeMaxNumSegments;}", "after": "public MergeInfo(int totalDocCount, long estimatedMergeBytes, bool isExternal, int mergeMaxNumSegments){this.TotalDocCount = totalDocCount;this.EstimatedMergeBytes = estimatedMergeBytes;this.IsExternal = isExternal;this.MergeMaxNumSegments = mergeMaxNumSegments;}" }, { "index": 6250, "before": "public HsmClientCertificate createHsmClientCertificate(CreateHsmClientCertificateRequest request) {request = beforeClientExecution(request);return executeCreateHsmClientCertificate(request);}", "after": "public virtual CreateHsmClientCertificateResponse CreateHsmClientCertificate(CreateHsmClientCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateHsmClientCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateHsmClientCertificateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6251, "before": "public Token consume() {Token o = getCurrentToken();if (o.getType() != EOF) {getInputStream().consume();}boolean hasListener = _parseListeners != null && !_parseListeners.isEmpty();if (_buildParseTrees || hasListener) {if ( _errHandler.inErrorRecoveryMode(this) ) {ErrorNode node = _ctx.addErrorNode(createErrorNode(_ctx,o));if (_parseListeners != null) {for (ParseTreeListener listener : _parseListeners) {listener.visitErrorNode(node);}}}else {TerminalNode node = _ctx.addChild(createTerminalNode(_ctx,o));if (_parseListeners != null) {for (ParseTreeListener listener : _parseListeners) {listener.visitTerminal(node);}}}}return o;}", "after": "public virtual IToken Consume(){IToken o = CurrentToken;if (o.Type != Eof){((ITokenStream)InputStream).Consume();}bool hasListener = _parseListeners != null && _parseListeners.Count != 0;if (_buildParseTrees || hasListener){if (_errHandler.InErrorRecoveryMode(this)){IErrorNode node = _ctx.AddErrorNode(o);if (_parseListeners != null){foreach (IParseTreeListener listener in _parseListeners){listener.VisitErrorNode(node);}}}else{ITerminalNode node = _ctx.AddChild(o);if (_parseListeners != null){foreach (IParseTreeListener listener in _parseListeners){listener.VisitTerminal(node);}}}}return o;}" }, { "index": 6252, "before": "public boolean seekExact(BytesRef term) {final int ord = findTerm(term);if (ord >= 0) {termOrd = ord;setTerm();return true;} else {return false;}}", "after": "public override bool SeekExact(BytesRef term){int ord = FindTerm(term);if (ord >= 0){termOrd = ord;SetTerm();return true;}else{return false;}}" }, { "index": 6253, "before": "public DescribeEgressOnlyInternetGatewaysResult describeEgressOnlyInternetGateways(DescribeEgressOnlyInternetGatewaysRequest request) {request = beforeClientExecution(request);return executeDescribeEgressOnlyInternetGateways(request);}", "after": "public virtual DescribeEgressOnlyInternetGatewaysResponse DescribeEgressOnlyInternetGateways(DescribeEgressOnlyInternetGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEgressOnlyInternetGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEgressOnlyInternetGatewaysResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6254, "before": "public Ref getLeaf() {Ref dst = getTarget();while (dst.isSymbolic())dst = dst.getTarget();return dst;}", "after": "public virtual Ref GetLeaf(){Ref dst = GetTarget();while (dst.IsSymbolic()){dst = dst.GetTarget();}return dst;}" }, { "index": 6255, "before": "public void ReInit(QueryParserTokenManager tm) {token_source = tm;token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 10; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();}", "after": "public virtual void ReInit(QueryParserTokenManager tm){TokenSource = tm;Token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 21; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();}" }, { "index": 6256, "before": "public ListStacksResult listStacks() {return listStacks(new ListStacksRequest());}", "after": "public virtual ListStacksResponse ListStacks(){return ListStacks(new ListStacksRequest());}" }, { "index": 6257, "before": "public PutInstancePublicPortsResult putInstancePublicPorts(PutInstancePublicPortsRequest request) {request = beforeClientExecution(request);return executePutInstancePublicPorts(request);}", "after": "public virtual PutInstancePublicPortsResponse PutInstancePublicPorts(PutInstancePublicPortsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutInstancePublicPortsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutInstancePublicPortsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6258, "before": "public GetConfigurationSetResult getConfigurationSet(GetConfigurationSetRequest request) {request = beforeClientExecution(request);return executeGetConfigurationSet(request);}", "after": "public virtual GetConfigurationSetResponse GetConfigurationSet(GetConfigurationSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetConfigurationSetRequestMarshaller.Instance;options.ResponseUnmarshaller = GetConfigurationSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6259, "before": "public static Element getFirstChildOrFail(Element e) throws ParserException {Element kid = getFirstChildElement(e);if (null == kid) {throw new ParserException(e.getTagName()+ \" does not contain a child element\");}return kid;}", "after": "public static XmlElement GetFirstChildOrFail(XmlElement e){XmlElement kid = GetFirstChildElement(e);if (null == kid){throw new ParserException(e.ToString()+ \" does not contain a child element\");}return kid;}" }, { "index": 6260, "before": "public String toString() {return \"Cell(readerIndex=\" + readerIndex + \" nodeID=\" + index.getNodeID()+ \" isLeaf=\" + index.isLeafNode() + \" distanceSquared=\" + distanceSquared + \")\";}", "after": "public override string ToString(){return \"ref(\" + @ref +\")cmd(\" + cmd + \")cnt(\" + cnt + \")skp(\" + skip + \")\";}" }, { "index": 6261, "before": "public static long getBaseSize(byte[] delta) {int p = 0;long baseLen = 0;int c, shift = 0;do {c = delta[p++] & 0xff;baseLen |= ((long) (c & 0x7f)) << shift;shift += 7;} while ((c & 0x80) != 0);return baseLen;}", "after": "public static long GetBaseSize(byte[] delta){int p = 0;long baseLen = 0;int c;int shift = 0;do{c = delta[p++] & unchecked((int)(0xff));baseLen |= ((long)(c & unchecked((int)(0x7f)))) << shift;shift += 7;}while ((c & unchecked((int)(0x80))) != 0);return baseLen;}" }, { "index": 6262, "before": "public VerifyEmailIdentityResult verifyEmailIdentity(VerifyEmailIdentityRequest request) {request = beforeClientExecution(request);return executeVerifyEmailIdentity(request);}", "after": "public virtual VerifyEmailIdentityResponse VerifyEmailIdentity(VerifyEmailIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = VerifyEmailIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = VerifyEmailIdentityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6263, "before": "public CreateInvalidationResult createInvalidation(CreateInvalidationRequest request) {request = beforeClientExecution(request);return executeCreateInvalidation(request);}", "after": "public virtual CreateInvalidationResponse CreateInvalidation(CreateInvalidationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateInvalidationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateInvalidationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6264, "before": "public ListGroupsForUserRequest(String userName) {setUserName(userName);}", "after": "public ListGroupsForUserRequest(string userName){_userName = userName;}" }, { "index": 6265, "before": "public void serialize(LittleEndianOutput out) {out.writeInt(field_1_stream_pos);out.writeShort(field_2_bucket_sst_offset);out.writeShort(field_3_zero);}", "after": "public void Serialize(ILittleEndianOutput out1){out1.WriteInt(field_1_stream_pos);out1.WriteShort(field_2_bucket_sst_offset);out1.WriteShort(field_3_zero);}" }, { "index": 6266, "before": "public boolean equals(Object o) {if (QueryValueSource.class != o.getClass()) return false;QueryValueSource other = (QueryValueSource)o;return this.q.equals(other.q) && this.defVal==other.defVal;}", "after": "public override bool Equals(object o){if (typeof(QueryValueSource) != o.GetType()){return false;}var other = o as QueryValueSource;if (other == null)return false;return this.q.Equals(other.q) && this.defVal == other.defVal;}" }, { "index": 6267, "before": "public boolean add(E object) {add(size(), object);return true;}", "after": "public void add(E @object){iterator.add(@object);subList.sizeChanged(true);end++;}" }, { "index": 6268, "before": "public synchronized SessionToken checkForUpdate(String currentVersion) {ensureOpen();if (currentRevision == null) { return null;}if (currentVersion != null && currentRevision.revision.compareTo(currentVersion) <= 0) {return null;}currentRevision.incRef();final String sessionID = Integer.toString(sessionToken.incrementAndGet());final SessionToken sessionToken = new SessionToken(sessionID, currentRevision.revision);final ReplicationSession timedSessionToken = new ReplicationSession(sessionToken, currentRevision);sessions.put(sessionID, timedSessionToken);return sessionToken;}", "after": "public virtual SessionToken CheckForUpdate(string currentVersion){lock (padlock){EnsureOpen();if (currentRevision == null)return null; if (currentVersion != null && currentRevision.Revision.CompareTo(currentVersion) <= 0)return null; currentRevision.IncRef();string sessionID = sessionToken.IncrementAndGet().ToString();SessionToken token = new SessionToken(sessionID, currentRevision.Revision);sessions[sessionID] = new ReplicationSession(token, currentRevision);return token;}}" }, { "index": 6269, "before": "public void setCommitNames(String[] commitNames) {this.commitNames = commitNames;}", "after": "public virtual void SetCommitNames(string[] commitNames){this.commitNames = commitNames;}" }, { "index": 6270, "before": "public FormulaRecordAggregate createFormula(int row, int col) {FormulaRecord fr = new FormulaRecord();fr.setRow(row);fr.setColumn((short) col);return new FormulaRecordAggregate(fr, null, _sharedValueManager);}", "after": "public FormulaRecordAggregate CreateFormula(int row, int col){FormulaRecord fr = new FormulaRecord();fr.Row=(row);fr.Column=((short)col);return new FormulaRecordAggregate(fr, null, _sharedValueManager);}" }, { "index": 6271, "before": "public DetectSyntaxResult detectSyntax(DetectSyntaxRequest request) {request = beforeClientExecution(request);return executeDetectSyntax(request);}", "after": "public virtual DetectSyntaxResponse DetectSyntax(DetectSyntaxRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectSyntaxRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectSyntaxResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6272, "before": "public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) { if (args.length < 2 || args.length > 3) {return ErrorEval.VALUE_INVALID;}int srcCellRow = ec.getRowIndex();int srcCellCol = ec.getColumnIndex();double start, end;double[] holidays;try {start = this.evaluator.evaluateDateArg(args[0], srcCellRow, srcCellCol);end = this.evaluator.evaluateDateArg(args[1], srcCellRow, srcCellCol);if (start > end) {return ErrorEval.NAME_INVALID;}ValueEval holidaysCell = args.length == 3 ? args[2] : null;holidays = this.evaluator.evaluateDatesArg(holidaysCell, srcCellRow, srcCellCol);return new NumberEval(WorkdayCalculator.instance.calculateWorkdays(start, end, holidays));} catch (EvaluationException e) {return ErrorEval.VALUE_INVALID;}}", "after": "public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){if (args.Length < 2 || args.Length > 3){return ErrorEval.VALUE_INVALID;}int srcCellRow = ec.RowIndex;int srcCellCol = ec.ColumnIndex;double start, end;double[] holidays;try{start = this.evaluator.EvaluateDateArg(args[0], srcCellRow, srcCellCol);end = this.evaluator.EvaluateDateArg(args[1], srcCellRow, srcCellCol);if (start > end){return ErrorEval.NAME_INVALID;}ValueEval holidaysCell = args.Length == 3 ? args[2] : null;holidays = this.evaluator.EvaluateDatesArg(holidaysCell, srcCellRow, srcCellCol);return new NumberEval(WorkdayCalculator.instance.CalculateWorkdays(start, end, holidays));}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}}" }, { "index": 6273, "before": "public HSSFDataValidationHelper(HSSFSheet sheet) {super();}", "after": "public HSSFDataValidationHelper(HSSFSheet sheet): base(){this.sheet = sheet;}" }, { "index": 6274, "before": "public SyncFacePicturesRequest() {super(\"LinkFace\", \"2018-07-20\", \"SyncFacePictures\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public SyncFacePicturesRequest(): base(\"LinkFace\", \"2018-07-20\", \"SyncFacePictures\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 6275, "before": "public static String shortToHex(int value) {StringBuilder sb = new StringBuilder(6);writeHex(sb, value & 0xFFFFL, 4, \"0x\");return sb.toString();}", "after": "public static char[] ShortToHex(int value){return ToHexChars(value, 2);}" }, { "index": 6276, "before": "public String toString() {switch (state) {case SET:return key;case UNSET:return \"-\" + key; case UNSPECIFIED:return \"!\" + key; case CUSTOM:default:return key + \"=\" + value; }}", "after": "public override string ToString(){return \"PackWriter.State[\" + this.phase + \", memory=\" + this.bytesUsed + \"]\";}" }, { "index": 6277, "before": "public void seek(int index) {lazyInit();p = adjustSeekIndex(index);}", "after": "public virtual void Seek(int index){LazyInit();p = AdjustSeekIndex(index);}" }, { "index": 6278, "before": "public CreateTransitGatewayPeeringAttachmentResult createTransitGatewayPeeringAttachment(CreateTransitGatewayPeeringAttachmentRequest request) {request = beforeClientExecution(request);return executeCreateTransitGatewayPeeringAttachment(request);}", "after": "public virtual CreateTransitGatewayPeeringAttachmentResponse CreateTransitGatewayPeeringAttachment(CreateTransitGatewayPeeringAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitGatewayPeeringAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitGatewayPeeringAttachmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6279, "before": "public static BytesRef deepCopyOf(BytesRef other) {return new BytesRef(ArrayUtil.copyOfSubArray(other.bytes, other.offset, other.offset + other.length), 0, other.length);}", "after": "public static BytesRef DeepCopyOf(BytesRef other){BytesRef copy = new BytesRef();copy.CopyBytes(other);return copy;}" }, { "index": 6280, "before": "public TokenCollector(int tokenCount) {_ptgs = new Ptg[tokenCount];_offset = 0;}", "after": "public TokenCollector(int tokenCount){_ptgs = new Ptg[tokenCount];_offset = 0;}" }, { "index": 6281, "before": "public static String[] tokenize( String format ) {List result = new ArrayList<>();DateFormatTokenizer tokenizer = new DateFormatTokenizer(format);String token;while( ( token = tokenizer.getNextToken() ) != null ) {result.add(token);}return result.toArray(new String[0]);}", "after": "public static string[] Tokenize(string format){List result = new List();DateFormatTokenizer tokenizer = new DateFormatTokenizer(format);string token;while ((token = tokenizer.GetNextToken()) != null){result.Add(token);}return result.ToArray();}" }, { "index": 6282, "before": "public DescribeNatGatewaysResult describeNatGateways(DescribeNatGatewaysRequest request) {request = beforeClientExecution(request);return executeDescribeNatGateways(request);}", "after": "public virtual DescribeNatGatewaysResponse DescribeNatGateways(DescribeNatGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNatGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNatGatewaysResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6283, "before": "public ResetImageAttributeResult resetImageAttribute(ResetImageAttributeRequest request) {request = beforeClientExecution(request);return executeResetImageAttribute(request);}", "after": "public virtual ResetImageAttributeResponse ResetImageAttribute(ResetImageAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetImageAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetImageAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6284, "before": "public void setHorizontalBorder(boolean value){field_1_options = horizontalBorder.setShortBoolean(field_1_options, value);}", "after": "public void SetHorizontalBorder(bool value){field_1_options = horizontalBorder.SetShortBoolean(field_1_options, value);}" }, { "index": 6285, "before": "public ReplicationGroup modifyReplicationGroup(ModifyReplicationGroupRequest request) {request = beforeClientExecution(request);return executeModifyReplicationGroup(request);}", "after": "public virtual ModifyReplicationGroupResponse ModifyReplicationGroup(ModifyReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyReplicationGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6286, "before": "public boolean containsKey(CharSequence cs) {if(cs == null)throw new NullPointerException();return false;}", "after": "public override bool ContainsKey(char[] text){if (text == null){throw new ArgumentNullException(\"text\");}return false;}" }, { "index": 6287, "before": "public GetIntegrationsResult getIntegrations(GetIntegrationsRequest request) {request = beforeClientExecution(request);return executeGetIntegrations(request);}", "after": "public virtual GetIntegrationsResponse GetIntegrations(GetIntegrationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIntegrationsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIntegrationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6288, "before": "public LabelRecord(RecordInputStream in) {field_1_row = in.readUShort();field_2_column = in.readShort();field_3_xf_index = in.readShort();field_4_string_len = in.readShort();field_5_unicode_flag = in.readByte();if (field_4_string_len > 0) {if (isUnCompressedUnicode()) {field_6_value = in.readUnicodeLEString(field_4_string_len);} else {field_6_value = in.readCompressedUnicode(field_4_string_len);}} else {field_6_value = \"\";}if (in.remaining() > 0) {logger.log(POILogger.INFO,\"LabelRecord data remains: \" + in.remaining() +\" : \" + HexDump.toHex(in.readRemainder()));}}", "after": "public LabelRecord(RecordInputStream in1){field_1_row = in1.ReadUShort();field_2_column = in1.ReadUShort();field_3_xf_index = in1.ReadShort();field_4_string_len = in1.ReadShort();field_5_unicode_flag = (byte)in1.ReadByte();if (field_4_string_len > 0){if (IsUncompressedUnicode){field_6_value = in1.ReadUnicodeLEString(field_4_string_len);}else{field_6_value = in1.ReadCompressedUnicode(field_4_string_len);}}else{field_6_value = \"\";}if (in1.Remaining > 0){logger.Log(POILogger.INFO, \"LabelRecord data remains: \" +in1.Remaining +\" : \" + HexDump.ToHex(in1.ReadRemainder()));}}" }, { "index": 6289, "before": "public SubmoduleAddCommand setProgressMonitor(ProgressMonitor monitor) {this.monitor = monitor;return this;}", "after": "public virtual NGit.Api.SubmoduleAddCommand SetProgressMonitor(ProgressMonitor monitor){this.monitor = monitor;return this;}" }, { "index": 6290, "before": "public byte readByte() {if (currentBlockUpto == blockSize) {nextBlock();}return currentBlock[currentBlockUpto++];}", "after": "public override byte ReadByte(){if (currentBlockUpto == outerInstance.blockSize){NextBlock();}return (byte)currentBlock[currentBlockUpto++];}" }, { "index": 6291, "before": "public TestAlarmResult testAlarm(TestAlarmRequest request) {request = beforeClientExecution(request);return executeTestAlarm(request);}", "after": "public virtual TestAlarmResponse TestAlarm(TestAlarmRequest request){var options = new InvokeOptions();options.RequestMarshaller = TestAlarmRequestMarshaller.Instance;options.ResponseUnmarshaller = TestAlarmResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6292, "before": "public void clear() {HashMap.this.clear();}", "after": "public override void clear(){this._enclosing.clear();}" }, { "index": 6293, "before": "public void visitContainedRecords(RecordVisitor rv) {int nRegions = _mergedRegions.size();if (nRegions < 1) {return;}int nFullMergedCellsRecords = nRegions / MAX_MERGED_REGIONS;int nLeftoverMergedRegions = nRegions % MAX_MERGED_REGIONS;CellRangeAddress[] cras = new CellRangeAddress[nRegions];_mergedRegions.toArray(cras);for (int i = 0; i < nFullMergedCellsRecords; i++) {int startIx = i * MAX_MERGED_REGIONS;rv.visitRecord(new MergeCellsRecord(cras, startIx, MAX_MERGED_REGIONS));}if (nLeftoverMergedRegions > 0) {int startIx = nFullMergedCellsRecords * MAX_MERGED_REGIONS;rv.visitRecord(new MergeCellsRecord(cras, startIx, nLeftoverMergedRegions));}}", "after": "public override void VisitContainedRecords(RecordVisitor rv){int nRegions = _mergedRegions.Count;if (nRegions < 1){return;}int nFullMergedCellsRecords = nRegions / MAX_MERGED_REGIONS;int nLeftoverMergedRegions = nRegions % MAX_MERGED_REGIONS;CellRangeAddress[] cras = (CellRangeAddress[])_mergedRegions.ToArray();for (int i = 0; i < nFullMergedCellsRecords; i++){int startIx = i * MAX_MERGED_REGIONS;rv.VisitRecord(new MergeCellsRecord(cras, startIx, MAX_MERGED_REGIONS));}if (nLeftoverMergedRegions > 0){int startIx = nFullMergedCellsRecords * MAX_MERGED_REGIONS;rv.VisitRecord(new MergeCellsRecord(cras, startIx, nLeftoverMergedRegions));}}" }, { "index": 6294, "before": "public CharArrayWriter() {buf = new char[32];lock = buf;}", "after": "public CharArrayWriter(){buf = new char[32];@lock = buf;}" }, { "index": 6295, "before": "public SendEmailRequest(String source, Destination destination, Message message) {setSource(source);setDestination(destination);setMessage(message);}", "after": "public SendEmailRequest(string source, Destination destination, Message message){_source = source;_destination = destination;_message = message;}" }, { "index": 6296, "before": "public DescribeReservedNodesResult describeReservedNodes() {return describeReservedNodes(new DescribeReservedNodesRequest());}", "after": "public virtual DescribeReservedNodesResponse DescribeReservedNodes(){return DescribeReservedNodes(new DescribeReservedNodesRequest());}" }, { "index": 6297, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[PROTECT]\\n\");buffer.append(\" .options = \").append(HexDump.shortToHex(_options)).append(\"\\n\");buffer.append(\"[/PROTECT]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[PROTECT]\\n\");buffer.Append(\" .options = \").Append(HexDump.ShortToHex(_options)).Append(\"\\n\");buffer.Append(\"[/PROTECT]\\n\");return buffer.ToString();}" }, { "index": 6298, "before": "public String getSignerType() {return \"PRIVATEKEY\";}", "after": "public override string GetSignerType(){return \"PRIVATEKEY\";}" }, { "index": 6299, "before": "public StopProjectVersionResult stopProjectVersion(StopProjectVersionRequest request) {request = beforeClientExecution(request);return executeStopProjectVersion(request);}", "after": "public virtual StopProjectVersionResponse StopProjectVersion(StopProjectVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopProjectVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = StopProjectVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6300, "before": "public CacheCluster createCacheCluster(CreateCacheClusterRequest request) {request = beforeClientExecution(request);return executeCreateCacheCluster(request);}", "after": "public virtual CreateCacheClusterResponse CreateCacheCluster(CreateCacheClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCacheClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCacheClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6301, "before": "public boolean equals(Object _other) {if ((_other instanceof LabelAndValue) == false) {return false;}LabelAndValue other = (LabelAndValue) _other;return label.equals(other.label) && value.equals(other.value);}", "after": "public override bool Equals(object other){if ((other is LabelAndValue) == false){return false;}LabelAndValue _other = (LabelAndValue)other;return Label.Equals(_other.Label, StringComparison.Ordinal) && Value.Equals(_other.Value);}" }, { "index": 6302, "before": "public JobFlowInstancesDetail(String masterInstanceType, String slaveInstanceType, Integer instanceCount) {setMasterInstanceType(masterInstanceType);setSlaveInstanceType(slaveInstanceType);setInstanceCount(instanceCount);}", "after": "public JobFlowInstancesDetail(string masterInstanceType, string slaveInstanceType, int instanceCount){_masterInstanceType = masterInstanceType;_slaveInstanceType = slaveInstanceType;_instanceCount = instanceCount;}" }, { "index": 6303, "before": "public boolean stem() {r_mark_regions();limit_backward = cursor;cursor = limit;int v_2 = limit - cursor;r_attached_pronoun();cursor = limit - v_2;int v_3 = limit - cursor;lab0: {lab1: {int v_4 = limit - cursor;lab2: {if (!r_standard_suffix()){break lab2;}break lab1;}cursor = limit - v_4;if (!r_verb_suffix()){break lab0;}}}cursor = limit - v_3;int v_5 = limit - cursor;r_residual_suffix();cursor = limit - v_5;cursor = limit_backward;int v_6 = cursor;r_cleaning();cursor = v_6;return true;}", "after": "public override bool Stem(){int v_1;int v_2;int v_3;int v_4;int v_5;int v_6;v_1 = m_cursor;do{if (!r_mark_regions()){goto lab0;}} while (false);lab0:m_cursor = v_1;m_limit_backward = m_cursor; m_cursor = m_limit;v_2 = m_limit - m_cursor;do{if (!r_attached_pronoun()){goto lab1;}} while (false);lab1:m_cursor = m_limit - v_2;v_3 = m_limit - m_cursor;do{do{v_4 = m_limit - m_cursor;do{if (!r_standard_suffix()){goto lab4;}goto lab3;} while (false);lab4:m_cursor = m_limit - v_4;if (!r_verb_suffix()){goto lab2;}} while (false);lab3:;} while (false);lab2:m_cursor = m_limit - v_3;v_5 = m_limit - m_cursor;do{if (!r_residual_suffix()){goto lab5;}} while (false);lab5:m_cursor = m_limit - v_5;m_cursor = m_limit_backward; v_6 = m_cursor;do{if (!r_cleaning()){goto lab6;}} while (false);lab6:m_cursor = v_6;return true;}" }, { "index": 6304, "before": "public HSSFPictureData( EscherBlipRecord blip ){this.blip = blip;}", "after": "public HSSFPictureData(EscherBlipRecord blip){this.blip = blip;}" }, { "index": 6305, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[PALETTE]\\n\");buffer.append(\" numcolors = \").append(_colors.size()).append('\\n');for (int i = 0; i < _colors.size(); i++) {PColor c = _colors.get(i);buffer.append(\"* colornum = \").append(i).append('\\n');buffer.append(c);buffer.append(\"", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[PALETTE]\\n\");buffer.Append(\" numcolors = \").Append(field_2_colors.Count).Append('\\n');for (int k = 0; k < field_2_colors.Count; k++){PColor c = (PColor)field_2_colors[k];buffer.Append(\"* colornum = \").Append(k).Append('\\n');buffer.Append(c.ToString());buffer.Append(\"" }, { "index": 6306, "before": "public String[] list(FilenameFilter filter) {String[] filenames = list();if (filter == null || filenames == null) {return filenames;}List result = new ArrayList(filenames.length);for (String filename : filenames) {if (filter.accept(this, filename)) {result.add(filename);}}return result.toArray(new String[result.size()]);}", "after": "public string[] list(java.io.FilenameFilter filter){string[] filenames = list();if (filter == null || filenames == null){return filenames;}java.util.List result = new java.util.ArrayList(filenames.Length);foreach (string filename in filenames){if (filter.accept(this, filename)){result.add(filename);}}return result.toArray(new string[result.size()]);}" }, { "index": 6307, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1) {String arg;int index;try {arg = evaluateStringArg(arg0, srcRowIndex, srcColumnIndex);index = evaluateIntArg(arg1, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {return e.getErrorEval();}if(index < 0) {return ErrorEval.VALUE_INVALID;}String result;if (_isLeft) {result = arg.substring(0, Math.min(arg.length(), index));} else {result = arg.substring(Math.max(0, arg.length()-index));}return new StringEval(result);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1){String arg;int index;try{arg = TextFunction.EvaluateStringArg(arg0, srcRowIndex, srcColumnIndex);index = TextFunction.EvaluateIntArg(arg1, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){return e.GetErrorEval();}if (index < 0){return ErrorEval.VALUE_INVALID;}String result;if (_isLeft){result = arg.Substring(0, Math.Min(arg.Length, index));}else{result = arg.Substring(Math.Max(0, arg.Length - index));}return new StringEval(result);}" }, { "index": 6308, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(sid);out.writeShort(reserved.length);out.write(reserved);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(sid);out1.WriteShort(reserved.Length);out1.Write(reserved);}" }, { "index": 6309, "before": "public HadoopJarStepConfig(String jar) {setJar(jar);}", "after": "public HadoopJarStepConfig(string jar){_jar = jar;}" }, { "index": 6310, "before": "public CharArrayWriter append(char c) {write(c);return this;}", "after": "public override java.io.Writer append(char c){write(c);return this;}" }, { "index": 6311, "before": "public GetChannelsResult getChannels(GetChannelsRequest request) {request = beforeClientExecution(request);return executeGetChannels(request);}", "after": "public virtual GetChannelsResponse GetChannels(GetChannelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetChannelsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetChannelsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6312, "before": "public File getParentFile() {String tempParent = getParent();if (tempParent == null) {return null;}return new File(tempParent);}", "after": "public java.io.File getParentFile(){string tempParent = getParent();if (tempParent == null){return null;}return new java.io.File(tempParent);}" }, { "index": 6313, "before": "public URI resolve(String relative) {return resolve(create(relative));}", "after": "public java.net.URI resolve(string relative){return resolve(create(relative));}" }, { "index": 6314, "before": "public static IntervalSet of(int a, int b) {IntervalSet s = new IntervalSet();s.add(a,b);return s;}", "after": "public static Antlr4.Runtime.Misc.IntervalSet Of(int a, int b){Antlr4.Runtime.Misc.IntervalSet s = new Antlr4.Runtime.Misc.IntervalSet();s.Add(a, b);return s;}" }, { "index": 6315, "before": "public void setCompressionLevel(int level) {compressionLevel = level;}", "after": "public virtual void SetCompressionLevel(int level){compressionLevel = level;}" }, { "index": 6316, "before": "public void reset() {offset = 0;length = 0;lastTrailingHighSurrogate = 0;}", "after": "public void Reset(){offset = 0;length = 0;lastTrailingHighSurrogate = (char)0;}" }, { "index": 6317, "before": "public AttributeValue(String s) {setS(s);}", "after": "public AttributeValue(string s){_s = s;}" }, { "index": 6318, "before": "public Token(int kind, String image){this.kind = kind;this.image = image;}", "after": "public Token(int start, int end){CheckOffsets(start, end);startOffset = start;endOffset = end;}" }, { "index": 6319, "before": "public XmlSerializer newSerializer() throws XmlPullParserException {if (serializerClasses == null) {throw new XmlPullParserException(\"Factory initialization incomplete - has not tried \"+classNamesLocation);}if(serializerClasses.size() == 0) {throw new XmlPullParserException(\"No valid serializer classes found in \"+classNamesLocation);}final StringBuilder issues = new StringBuilder ();for (int i = 0; i < serializerClasses.size (); i++) {final Class ppClass = (Class) serializerClasses.get(i);try {final XmlSerializer ser = (XmlSerializer) ppClass.newInstance();return ser;} catch(Exception ex) {issues.append (ppClass.getName () + \": \"+ ex.toString ()+\"; \");}}throw new XmlPullParserException (\"could not create serializer: \"+issues);}", "after": "public virtual org.xmlpull.v1.XmlSerializer newSerializer(){if (serializerClasses == null){throw new org.xmlpull.v1.XmlPullParserException(\"Factory initialization incomplete - has not tried \"+ classNamesLocation);}if (serializerClasses.size() == 0){throw new org.xmlpull.v1.XmlPullParserException(\"No valid serializer classes found in \"+ classNamesLocation);}java.lang.StringBuilder issues = new java.lang.StringBuilder();{for (int i = 0; i < serializerClasses.size(); i++){System.Type ppClass = (System.Type)serializerClasses.get(i);try{org.xmlpull.v1.XmlSerializer ser = (org.xmlpull.v1.XmlSerializer)System.Activator.CreateInstance(ppClass);return ser;}catch (System.Exception ex){issues.append(ppClass.FullName + \": \" + ex.ToString() + \"; \");}}}throw new org.xmlpull.v1.XmlPullParserException(\"could not create serializer: \" +issues);}" }, { "index": 6320, "before": "public UpdateDomainContactPrivacyResult updateDomainContactPrivacy(UpdateDomainContactPrivacyRequest request) {request = beforeClientExecution(request);return executeUpdateDomainContactPrivacy(request);}", "after": "public virtual UpdateDomainContactPrivacyResponse UpdateDomainContactPrivacy(UpdateDomainContactPrivacyRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDomainContactPrivacyRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDomainContactPrivacyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6321, "before": "public String toString(String enc) throws UnsupportedEncodingException {return new String(buf, 0, count, enc);}", "after": "public virtual string toString(string enc){throw new System.NotImplementedException();}" }, { "index": 6322, "before": "public DescribeStaleSecurityGroupsResult describeStaleSecurityGroups(DescribeStaleSecurityGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeStaleSecurityGroups(request);}", "after": "public virtual DescribeStaleSecurityGroupsResponse DescribeStaleSecurityGroups(DescribeStaleSecurityGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStaleSecurityGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStaleSecurityGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6323, "before": "public DisassociateWebsiteCertificateAuthorityResult disassociateWebsiteCertificateAuthority(DisassociateWebsiteCertificateAuthorityRequest request) {request = beforeClientExecution(request);return executeDisassociateWebsiteCertificateAuthority(request);}", "after": "public virtual DisassociateWebsiteCertificateAuthorityResponse DisassociateWebsiteCertificateAuthority(DisassociateWebsiteCertificateAuthorityRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateWebsiteCertificateAuthorityRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateWebsiteCertificateAuthorityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6324, "before": "public DeleteTransitGatewayVpcAttachmentResult deleteTransitGatewayVpcAttachment(DeleteTransitGatewayVpcAttachmentRequest request) {request = beforeClientExecution(request);return executeDeleteTransitGatewayVpcAttachment(request);}", "after": "public virtual DeleteTransitGatewayVpcAttachmentResponse DeleteTransitGatewayVpcAttachment(DeleteTransitGatewayVpcAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTransitGatewayVpcAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTransitGatewayVpcAttachmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6325, "before": "public ObjectId idFor(TreeFormatter formatter) {return formatter.computeId(this);}", "after": "public virtual ObjectId IdFor(TreeFormatter formatter){return formatter.ComputeId(this);}" }, { "index": 6326, "before": "public static boolean startsWith(char s[], int len, String prefix) {final int prefixLen = prefix.length();if (prefixLen > len)return false;for (int i = 0; i < prefixLen; i++)if (s[i] != prefix.charAt(i))return false;return true;}", "after": "public static bool StartsWith(char[] s, int len, string prefix){int prefixLen = prefix.Length;if (prefixLen > len){return false;}for (int i = 0; i < prefixLen; i++){if (s[i] != prefix[i]){return false;}}return true;}" }, { "index": 6327, "before": "public UpdateBatchPredictionResult updateBatchPrediction(UpdateBatchPredictionRequest request) {request = beforeClientExecution(request);return executeUpdateBatchPrediction(request);}", "after": "public virtual UpdateBatchPredictionResponse UpdateBatchPrediction(UpdateBatchPredictionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBatchPredictionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBatchPredictionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6328, "before": "public final void remove(RevFlag flag) {flags &= ~flag.mask;}", "after": "public void Remove(RevFlag flag){flags &= ~flag.mask;}" }, { "index": 6329, "before": "public void SwitchTo(int lexState){if (lexState >= 2 || lexState < 0)throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);elsecurLexState = lexState;}", "after": "public virtual void SwitchTo(int lexState){if (lexState >= 3 || lexState < 0)throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);elsecurLexState = lexState;}" }, { "index": 6330, "before": "public String toString() {StringBuilder sb = new StringBuilder(\"[ArrayPtg]\\n\");sb.append(\"nRows = \").append(getRowCount()).append(\"\\n\");sb.append(\"nCols = \").append(getColumnCount()).append(\"\\n\");if (_arrayValues == null) {sb.append(\" #values#uninitialised#\\n\");} else {sb.append(\" \").append(toFormulaString());}return sb.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder(\"[ArrayPtg]\\n\");buffer.Append(\"columns = \").Append(ColumnCount).Append(\"\\n\");buffer.Append(\"rows = \").Append(RowCount).Append(\"\\n\");for (int x = 0; x < ColumnCount; x++){for (int y = 0; y < RowCount; y++){Object o = _arrayValues.GetValue(GetValueIndex(x, y));buffer.Append(\"[\").Append(x).Append(\"][\").Append(y).Append(\"] = \").Append(o).Append(\"\\n\");}}return buffer.ToString();}" }, { "index": 6331, "before": "public ObjectId getHeadId() {return headId;}", "after": "public virtual ObjectId GetHeadId(){return headId;}" }, { "index": 6332, "before": "public GetAssociatedIpv6PoolCidrsResult getAssociatedIpv6PoolCidrs(GetAssociatedIpv6PoolCidrsRequest request) {request = beforeClientExecution(request);return executeGetAssociatedIpv6PoolCidrs(request);}", "after": "public virtual GetAssociatedIpv6PoolCidrsResponse GetAssociatedIpv6PoolCidrs(GetAssociatedIpv6PoolCidrsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAssociatedIpv6PoolCidrsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAssociatedIpv6PoolCidrsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6333, "before": "public void copyValue(Cell destCell) {switch (_cellType) {case BLANK: destCell.setBlank(); return;case NUMERIC: destCell.setCellValue(_numberValue); return;case BOOLEAN: destCell.setCellValue(_booleanValue); return;case STRING: destCell.setCellValue(_stringValue); return;case ERROR: destCell.setCellErrorValue((byte)_errorValue); return;default: throw new IllegalStateException(\"Unexpected data type (\" + _cellType + \")\");}}", "after": "public void CopyValue(ICell destCell){switch (_cellType){case CellType.Blank: destCell.SetCellType(CellType.Blank); return;case CellType.Numeric: destCell.SetCellValue(_numberValue); return;case CellType.Boolean: destCell.SetCellValue(_boolValue); return;case CellType.String: destCell.SetCellValue(_stringValue); return;case CellType.Error: destCell.SetCellErrorValue((byte)_errorValue); return;}throw new InvalidOperationException(\"Unexpected data type (\" + _cellType + \")\");}" }, { "index": 6334, "before": "public DescribeLaunchTemplateVersionsResult describeLaunchTemplateVersions(DescribeLaunchTemplateVersionsRequest request) {request = beforeClientExecution(request);return executeDescribeLaunchTemplateVersions(request);}", "after": "public virtual DescribeLaunchTemplateVersionsResponse DescribeLaunchTemplateVersions(DescribeLaunchTemplateVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLaunchTemplateVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLaunchTemplateVersionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6335, "before": "public static DVConstraint createCustomFormulaConstraint(String formula) {if (formula == null) {throw new IllegalArgumentException(\"formula must be supplied\");}return new DVConstraint(ValidationType.FORMULA, OperatorType.IGNORED, formula, null, null, null, null);}", "after": "public static DVConstraint CreateCustomFormulaConstraint(String formula){if (formula == null){throw new ArgumentException(\"formula must be supplied\");}return new DVConstraint(ValidationType.FORMULA, OperatorType.IGNORED, formula, null, double.NaN, double.NaN, null);}" }, { "index": 6336, "before": "public DeleteProjectVersionResult deleteProjectVersion(DeleteProjectVersionRequest request) {request = beforeClientExecution(request);return executeDeleteProjectVersion(request);}", "after": "public virtual DeleteProjectVersionResponse DeleteProjectVersion(DeleteProjectVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteProjectVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteProjectVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6337, "before": "public String toStringUnquoted() {return getTermText();}", "after": "public override string ToStringUnquoted(){return TermText;}" }, { "index": 6338, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[RECALCID]\\n\");buffer.append(\" .reserved = \").append(HexDump.shortToHex(_reserved0)).append(\"\\n\");buffer.append(\" .engineId = \").append(HexDump.intToHex(_engineId)).append(\"\\n\");buffer.append(\"[/RECALCID]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[RECALCID]\\n\");buffer.Append(\" .reserved = \").Append(HexDump.ShortToHex(_reserved0)).Append(\"\\n\");buffer.Append(\" .engineId = \").Append(HexDump.IntToHex(_engineId)).Append(\"\\n\");buffer.Append(\"[/RECALCID]\\n\");return buffer.ToString();}" }, { "index": 6339, "before": "public String toString() {return \"RandomAccessInput(\" + IndexInput.this.toString() + \")\";}", "after": "public override string ToString(){return resourceDescription;}" }, { "index": 6340, "before": "public static int countArg(ValueEval eval, I_MatchPredicate criteriaPredicate) {if (eval == null) {throw new IllegalArgumentException(\"eval must not be null\");}if (eval instanceof ThreeDEval) {return countMatchingCellsInArea((ThreeDEval) eval, criteriaPredicate);}if (eval instanceof TwoDEval) {throw new IllegalArgumentException(\"Count requires 3D Evals, 2D ones aren't supported\");}if (eval instanceof RefEval) {return CountUtils.countMatchingCellsInRef((RefEval) eval, criteriaPredicate);}return criteriaPredicate.matches(eval) ? 1 : 0;}", "after": "public static int CountArg(ValueEval eval, IMatchPredicate criteriaPredicate){if (eval == null){throw new ArgumentException(\"eval must not be null\");}if (eval is ThreeDEval){return CountUtils.CountMatchingCellsInArea((ThreeDEval)eval, criteriaPredicate);}if (eval is TwoDEval){throw new ArgumentException(\"Count requires 3D Evals, 2D ones aren't supported\");}if (eval is RefEval){return CountUtils.CountMatchingCellsInRef((RefEval)eval, criteriaPredicate);}return criteriaPredicate.Matches(eval) ? 1 : 0;}" }, { "index": 6341, "before": "public void parse(byte[] buf, int ptr, int end) {while (ptr < end)ptr = parseFile(buf, ptr, end);}", "after": "public virtual void Parse(byte[] buf, int ptr, int end){while (ptr < end){ptr = ParseFile(buf, ptr, end);}}" }, { "index": 6342, "before": "public ListQueuesResult listQueues(String queueNamePrefix) {return listQueues(new ListQueuesRequest().withQueueNamePrefix(queueNamePrefix));}", "after": "public virtual ListQueuesResponse ListQueues(string queueNamePrefix){var request = new ListQueuesRequest();request.QueueNamePrefix = queueNamePrefix;return ListQueues(request);}" }, { "index": 6343, "before": "public DescribeVolumeAttributeResult describeVolumeAttribute(DescribeVolumeAttributeRequest request) {request = beforeClientExecution(request);return executeDescribeVolumeAttribute(request);}", "after": "public virtual DescribeVolumeAttributeResponse DescribeVolumeAttribute(DescribeVolumeAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVolumeAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVolumeAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6344, "before": "public Trie optimize(Trie orig) {List cmds = orig.cmds;List rows = new ArrayList<>();List orows = orig.rows;int remap[] = new int[orows.size()];for (int j = orows.size() - 1; j >= 0; j--) {liftUp(orows.get(j), orows);}Arrays.fill(remap, -1);rows = removeGaps(orig.root, orows, new ArrayList(), remap);return new Trie(orig.forward, remap[orig.root], cmds, rows);}", "after": "public override Trie Optimize(Trie orig){IList cmds = orig.cmds;IList rows = new List();IList orows = orig.rows;int[] remap = new int[orows.Count];for (int j = orows.Count - 1; j >= 0; j--){LiftUp(orows[j], orows);}Arrays.Fill(remap, -1);rows = RemoveGaps(orig.root, orows, new List(), remap);return new Trie(orig.forward, remap[orig.root], cmds, rows);}" }, { "index": 6345, "before": "public WorkingTreeOptions getOptions() {return state.options;}", "after": "public virtual WorkingTreeOptions GetOptions(){return state.options;}" }, { "index": 6346, "before": "public SendInvitationResult sendInvitation(SendInvitationRequest request) {request = beforeClientExecution(request);return executeSendInvitation(request);}", "after": "public virtual SendInvitationResponse SendInvitation(SendInvitationRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendInvitationRequestMarshaller.Instance;options.ResponseUnmarshaller = SendInvitationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6347, "before": "public DeleteAlarmsResult deleteAlarms(DeleteAlarmsRequest request) {request = beforeClientExecution(request);return executeDeleteAlarms(request);}", "after": "public virtual DeleteAlarmsResponse DeleteAlarms(DeleteAlarmsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAlarmsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAlarmsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6348, "before": "public static void main(String[] args) throws Exception {FSDirectory dir = null;String inputStr = null;String field = null;if (args.length == 3) {dir = FSDirectory.open(Paths.get(args[0]));field = args[1];inputStr = args[2];} else {usage();System.exit(1);}getTermInfo(dir,new Term(field, inputStr));}", "after": "public static void Main(string[] args){FSDirectory dir = null;string inputStr = null;string field = null;if (args.Length == 3){dir = FSDirectory.Open(new DirectoryInfo(args[0]));field = args[1];inputStr = args[2];}else{throw new ArgumentException();}TermInfo(dir, new Term(field, inputStr));}" }, { "index": 6349, "before": "public DBSnapshotAttributesResult modifyDBSnapshotAttribute(ModifyDBSnapshotAttributeRequest request) {request = beforeClientExecution(request);return executeModifyDBSnapshotAttribute(request);}", "after": "public virtual ModifyDBSnapshotAttributeResponse ModifyDBSnapshotAttribute(ModifyDBSnapshotAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBSnapshotAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBSnapshotAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6350, "before": "public static final String readUTF(DataInput in) throws IOException {return decodeUTF(in.readUnsignedShort(), in);}", "after": "public static string readUTF(java.io.DataInput @in){throw new System.NotImplementedException();}" }, { "index": 6351, "before": "public synchronized E remove(int index) {@SuppressWarnings(\"unchecked\")E removed = (E) elements[index];removeRange(index, index + 1);return removed;}", "after": "public virtual E remove(int index){lock (this){E removed = (E)elements[index];removeRange(index, index + 1);return removed;}}" }, { "index": 6352, "before": "public byte[] getElement(int index) {int actualSize = getActualSizeOfElements(getSizeOfElements());byte[] result = IOUtils.safelyAllocate(actualSize, MAX_RECORD_LENGTH);System.arraycopy(getComplexData(), FIXED_SIZE + index * actualSize, result, 0, result.length );return result;}", "after": "public byte[] GetElement(int index){int actualSize = GetActualSizeOfElements(SizeOfElements);byte[] result = new byte[actualSize];Array.Copy(_complexData, FIXED_SIZE + index * actualSize, result, 0, result.Length);return result;}" }, { "index": 6353, "before": "public String signString(String stringToSign, AlibabaCloudCredentials credentials) {return null;}", "after": "public override string SignString(string stringToSign, AlibabaCloudCredentials credentials){return SignString(stringToSign, credentials.GetAccessKeyId());}" }, { "index": 6354, "before": "public void writeData(final ByteBuffer block) {block.put( serialize() );}", "after": "public void WriteData(ByteBuffer block){block.Write(Serialize());}" }, { "index": 6355, "before": "public void setSshSessionFactory(SshSessionFactory factory) {if (factory == null)throw new NullPointerException(JGitText.get().theFactoryMustNotBeNull);if (sock != null)throw new IllegalStateException(JGitText.get().anSSHSessionHasBeenAlreadyCreated);sch = factory;}", "after": "public virtual void SetSshSessionFactory(SshSessionFactory factory){if (factory == null){throw new ArgumentNullException(JGitText.Get().theFactoryMustNotBeNull);}if (sock != null){throw new InvalidOperationException(JGitText.Get().anSSHSessionHasBeenAlreadyCreated);}sch = factory;}" }, { "index": 6356, "before": "public PipedReader(PipedWriter out) throws IOException {connect(out);}", "after": "public PipedReader(java.io.PipedWriter @out){throw new System.NotImplementedException();}" }, { "index": 6357, "before": "public RawText getSourceContents() {return outCandidate.sourceText;}", "after": "public virtual RawText GetSourceContents(){return currentSource.sourceText;}" }, { "index": 6358, "before": "public static T[] copyOfRange(T[] original, int start, int end) {int originalLength = original.length; if (start > end) {throw new IllegalArgumentException();}if (start < 0 || start > originalLength) {throw new ArrayIndexOutOfBoundsException();}int resultLength = end - start;int copyLength = Math.min(resultLength, originalLength - start);T[] result = (T[]) Array.newInstance(original.getClass().getComponentType(), resultLength);System.arraycopy(original, start, result, 0, copyLength);return result;}", "after": "public static int[] copyOfRange(int[] original, int start, int end){if (start > end){throw new System.ArgumentException();}int originalLength = original.Length;if (start < 0 || start > originalLength){throw new System.IndexOutOfRangeException();}int resultLength = end - start;int copyLength = System.Math.Min(resultLength, originalLength - start);int[] result = new int[resultLength];System.Array.Copy(original, start, result, 0, copyLength);return result;}" }, { "index": 6359, "before": "public boolean isPeeled() {return false;}", "after": "public override bool IsPeeled(){return false;}" }, { "index": 6360, "before": "public ProgressMonitor getProgressMonitor() {return monitor;}", "after": "public virtual ProgressMonitor GetProgressMonitor(){return monitor;}" }, { "index": 6361, "before": "public Content(String data) {setData(data);}", "after": "public Content(string data){_data = data;}" }, { "index": 6362, "before": "public boolean add(Object o) {return map.put(o, PLACEHOLDER) == null;}", "after": "public virtual bool Add(object o){return map.Put(o);}" }, { "index": 6363, "before": "public String getLockMessage() {return lockMessage;}", "after": "public virtual string GetLockMessage(){return lockMessage;}" }, { "index": 6364, "before": "public E previous() {if (index > from) {return (E) snapshot[--index];} else {throw new NoSuchElementException();}}", "after": "public virtual E previous(){if (index > from){return (E)snapshot[--index];}else{throw new java.util.NoSuchElementException();}}" }, { "index": 6365, "before": "public InviteUsersResult inviteUsers(InviteUsersRequest request) {request = beforeClientExecution(request);return executeInviteUsers(request);}", "after": "public virtual InviteUsersResponse InviteUsers(InviteUsersRequest request){var options = new InvokeOptions();options.RequestMarshaller = InviteUsersRequestMarshaller.Instance;options.ResponseUnmarshaller = InviteUsersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6366, "before": "public boolean lessThan(ShardRef first, ShardRef second) {assert first != second;ScoreDoc firstScoreDoc = shardHits[first.shardIndex][first.hitIndex];ScoreDoc secondScoreDoc = shardHits[second.shardIndex][second.hitIndex];if (firstScoreDoc.score < secondScoreDoc.score) {return false;} else if (firstScoreDoc.score > secondScoreDoc.score) {return true;} else {return tieBreakLessThan(first, firstScoreDoc, second, secondScoreDoc, tieBreakerComparator);}}", "after": "protected internal override bool LessThan(ShardRef first, ShardRef second){Debug.Assert(first != second);float firstScore = shardHits[first.ShardIndex][first.HitIndex].Score;float secondScore = shardHits[second.ShardIndex][second.HitIndex].Score;if (firstScore < secondScore){return false;}else if (firstScore > secondScore){return true;}else{if (first.ShardIndex < second.ShardIndex){return true;}else if (first.ShardIndex > second.ShardIndex){return false;}else{Debug.Assert(first.HitIndex != second.HitIndex);return first.HitIndex < second.HitIndex;}}}" }, { "index": 6367, "before": "public ListSubscriptionsRequest(String nextToken) {setNextToken(nextToken);}", "after": "public ListSubscriptionsRequest(string nextToken){_nextToken = nextToken;}" }, { "index": 6368, "before": "public RemoveTagsFromResourceResult removeTagsFromResource(RemoveTagsFromResourceRequest request) {request = beforeClientExecution(request);return executeRemoveTagsFromResource(request);}", "after": "public virtual RemoveTagsFromResourceResponse RemoveTagsFromResource(RemoveTagsFromResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveTagsFromResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveTagsFromResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6369, "before": "public ListHostedZonesResult listHostedZones() {return listHostedZones(new ListHostedZonesRequest());}", "after": "public virtual ListHostedZonesResponse ListHostedZones(){return ListHostedZones(new ListHostedZonesRequest());}" }, { "index": 6370, "before": "public String toString() {StringBuilder sb = new StringBuilder(64);sb.append(getClass().getName()).append(\" [\");if(isSemiVolatile()) {sb.append(\"volatile \");}if(isSpace()) {sb.append(\"space count=\").append((_data >> 8) & 0x00FF);sb.append(\" type=\").append(_data & 0x00FF).append(\" \");}if(isOptimizedIf()) {sb.append(\"if dist=\").append(_data);} else if(isOptimizedChoose()) {sb.append(\"choose nCases=\").append(_data);} else if(isSkip()) {sb.append(\"skip dist=\").append(_data);} else if(isSum()) {sb.append(\"sum \");} else if(isBaxcel()) {sb.append(\"assign \");}sb.append(\"]\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(\" [\");if (IsSemiVolatile){sb.Append(\"volatile \");}if (IsSpace){sb.Append(\"space count=\").Append((field_2_data >> 8) & 0x00FF);sb.Append(\" type=\").Append(field_2_data & 0x00FF).Append(\" \");}if (IsOptimizedIf){sb.Append(\"if dist=\").Append(Data);}else if (IsOptimizedChoose){sb.Append(\"choose nCases=\").Append(Data);}else if (IsSkip){sb.Append(\"skip dist=\").Append(Data);}else if (IsSum){sb.Append(\"sum \");}else if (IsBaxcel){sb.Append(\"assign \");}sb.Append(\"]\");return sb.ToString();}" }, { "index": 6371, "before": "public static double stdev(double[] v) {double r = Double.NaN;if (v!=null && v.length > 1) {r = Math.sqrt( devsq(v) / (v.length - 1) );}return r;}", "after": "public static double stdev(double[] v){double r = double.NaN;if (v != null && v.Length > 1){r = Math.Sqrt(devsq(v) / (v.Length - 1));}return r;}" }, { "index": 6372, "before": "public GetVoiceConnectorLoggingConfigurationResult getVoiceConnectorLoggingConfiguration(GetVoiceConnectorLoggingConfigurationRequest request) {request = beforeClientExecution(request);return executeGetVoiceConnectorLoggingConfiguration(request);}", "after": "public virtual GetVoiceConnectorLoggingConfigurationResponse GetVoiceConnectorLoggingConfiguration(GetVoiceConnectorLoggingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceConnectorLoggingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceConnectorLoggingConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6373, "before": "public GetQueueUrlResult getQueueUrl(GetQueueUrlRequest request) {request = beforeClientExecution(request);return executeGetQueueUrl(request);}", "after": "public virtual GetQueueUrlResponse GetQueueUrl(GetQueueUrlRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetQueueUrlRequestMarshaller.Instance;options.ResponseUnmarshaller = GetQueueUrlResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6374, "before": "public TblPtg(LittleEndianInput in) {field_1_first_row = in.readUShort();field_2_first_col = in.readUShort();}", "after": "public TblPtg(ILittleEndianInput in1){field_1_first_row = in1.ReadUShort();field_2_first_col = in1.ReadUShort();}" }, { "index": 6375, "before": "public long ramBytesUsed() {long size = 0;for (PackedInts.Reader reader : subReaders) {size += reader.ramBytesUsed();}return size;}", "after": "public long RamBytesUsed(){long size = 0;foreach (PackedInt32s.Reader reader in subReaders){size += reader.RamBytesUsed();}return size;}" }, { "index": 6376, "before": "public CreateInternetGatewayResult createInternetGateway(CreateInternetGatewayRequest request) {request = beforeClientExecution(request);return executeCreateInternetGateway(request);}", "after": "public virtual CreateInternetGatewayResponse CreateInternetGateway(CreateInternetGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateInternetGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateInternetGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6377, "before": "public void setInputStream(IntStream input) {this._input = null;this._tokenFactorySourcePair = new Pair(this, _input);reset();this._input = (CharStream)input;this._tokenFactorySourcePair = new Pair(this, _input);}", "after": "public virtual void SetInputStream(ICharStream input){this._input = null;this._tokenFactorySourcePair = Tuple.Create((ITokenSource)this, _input);Reset();this._input = input;this._tokenFactorySourcePair = Tuple.Create((ITokenSource)this, _input);}" }, { "index": 6378, "before": "public ExpPtg(int firstRow, int firstCol) {this.field_1_first_row = firstRow;this.field_2_first_col = firstCol;}", "after": "public ExpPtg(int firstRow, int firstCol){this.field_1_first_row = (short)firstRow;this.field_2_first_col = (short)firstCol;}" }, { "index": 6379, "before": "public int refCount() {final int rc = refCount.get();assert rc >= 0;return rc;}", "after": "public virtual int RefCount(){int rc = refCount;Debug.Assert(rc >= 0);return rc;}" }, { "index": 6380, "before": "public Object[] toArray() {int size = size(), index = 0;Iterator it = iterator();Object[] array = new Object[size];while (index < size) {array[index++] = it.next();}return array;}", "after": "public virtual object[] toArray(){int size_1 = size();int index = 0;java.util.Iterator it = iterator();object[] array = new object[size_1];while (index < size_1){array[index++] = it.next();}return array;}" }, { "index": 6381, "before": "public String toString() {return Utils.join(Arrays.asList(opnds).iterator(), \"||\");}", "after": "public override string ToString(){return Utils.Join(\"||\", opnds);}" }, { "index": 6382, "before": "public boolean anyDeletions() {return deleteQueue.anyChanges();}", "after": "public bool AnyDeletions(){return deleteQueue.AnyChanges();}" }, { "index": 6383, "before": "public DoubleBuffer asReadOnlyBuffer() {DoubleToByteBufferAdapter buf = new DoubleToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf.limit = limit;buf.position = position;buf.mark = mark;buf.byteBuffer.order = byteBuffer.order;return buf;}", "after": "public override java.nio.DoubleBuffer asReadOnlyBuffer(){java.nio.DoubleToByteBufferAdapter buf = new java.nio.DoubleToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf._limit = _limit;buf._position = _position;buf._mark = _mark;buf.byteBuffer._order = byteBuffer._order;return buf;}" }, { "index": 6384, "before": "public GetTelemetryMetadataResult getTelemetryMetadata(GetTelemetryMetadataRequest request) {request = beforeClientExecution(request);return executeGetTelemetryMetadata(request);}", "after": "public virtual GetTelemetryMetadataResponse GetTelemetryMetadata(GetTelemetryMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTelemetryMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTelemetryMetadataResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6385, "before": "public ExternalBookBlock(RecordStream rs) {_externalBookRecord = (SupBookRecord) rs.getNext();List temp = new ArrayList<>();while (rs.peekNextClass() == ExternalNameRecord.class) {temp.add(rs.getNext());}_externalNameRecords = new ExternalNameRecord[temp.size()];temp.toArray(_externalNameRecords);temp.clear();while (rs.peekNextClass() == CRNCountRecord.class) {temp.add(new CRNBlock(rs));}_crnBlocks = new CRNBlock[temp.size()];temp.toArray(_crnBlocks);}", "after": "public ExternalBookBlock(RecordStream rs){_externalBookRecord = (SupBookRecord)rs.GetNext();ArrayList temp = new ArrayList();while (rs.PeekNextClass() == typeof(ExternalNameRecord)){temp.Add(rs.GetNext());}_externalNameRecords = (ExternalNameRecord[])temp.ToArray(typeof(ExternalNameRecord));temp.Clear();while (rs.PeekNextClass() == typeof(CRNCountRecord)){temp.Add(new CRNBlock(rs));}_crnBlocks = (CRNBlock[])temp.ToArray(typeof(CRNBlock));}" }, { "index": 6386, "before": "public StartDeliveryStreamEncryptionResult startDeliveryStreamEncryption(StartDeliveryStreamEncryptionRequest request) {request = beforeClientExecution(request);return executeStartDeliveryStreamEncryption(request);}", "after": "public virtual StartDeliveryStreamEncryptionResponse StartDeliveryStreamEncryption(StartDeliveryStreamEncryptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDeliveryStreamEncryptionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDeliveryStreamEncryptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6387, "before": "public static double getExcelDate(LocalDateTime date, boolean use1904windowing) {int year = date.getYear();int dayOfYear = date.getDayOfYear();int hour = date.getHour();int minute = date.getMinute();int second = date.getSecond();int milliSecond = date.getNano()/1_000_000;return internalGetExcelDate(year, dayOfYear, hour, minute, second, milliSecond, use1904windowing);}", "after": "public static double GetExcelDate(DateTime date, bool use1904windowing){if ((!use1904windowing && date.Year < 1900) || (use1904windowing && date.Year < 1904)) {return BAD_DATE;}DateTime startdate;if (use1904windowing){startdate = new DateTime(1904, 1, 1);}else{startdate = new DateTime(1900, 1, 1);}double value = (date - startdate).TotalDays + 1;if (!use1904windowing && value >= 60){value++;}else if (use1904windowing){value--;}return value;}" }, { "index": 6388, "before": "public UpdateFleetAttributesResult updateFleetAttributes(UpdateFleetAttributesRequest request) {request = beforeClientExecution(request);return executeUpdateFleetAttributes(request);}", "after": "public virtual UpdateFleetAttributesResponse UpdateFleetAttributes(UpdateFleetAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFleetAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFleetAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6389, "before": "public Explanation idfExplain(CollectionStatistics collectionStats, TermStatistics termStats) {final long df = termStats.docFreq();final long docCount = collectionStats.docCount();final float idf = idf(df, docCount);return Explanation.match(idf, \"idf(docFreq, docCount)\",Explanation.match(df, \"docFreq, number of documents containing term\"),Explanation.match(docCount, \"docCount, total number of documents with field\"));}", "after": "public virtual Explanation IdfExplain(CollectionStatistics collectionStats, TermStatistics termStats){long df = termStats.DocFreq;long max = collectionStats.MaxDoc;float idf = Idf(df, max);return new Explanation(idf, \"idf(docFreq=\" + df + \", maxDocs=\" + max + \")\");}" }, { "index": 6390, "before": "public CreateGroupMembershipResult createGroupMembership(CreateGroupMembershipRequest request) {request = beforeClientExecution(request);return executeCreateGroupMembership(request);}", "after": "public virtual CreateGroupMembershipResponse CreateGroupMembership(CreateGroupMembershipRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateGroupMembershipRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateGroupMembershipResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6391, "before": "public GrowableWriter(int startBitsPerValue, int valueCount, float acceptableOverheadRatio) {this.acceptableOverheadRatio = acceptableOverheadRatio;current = PackedInts.getMutable(valueCount, startBitsPerValue, this.acceptableOverheadRatio);currentMask = mask(current.getBitsPerValue());}", "after": "public GrowableWriter(int startBitsPerValue, int valueCount, float acceptableOverheadRatio){this.acceptableOverheadRatio = acceptableOverheadRatio;current = PackedInt32s.GetMutable(valueCount, startBitsPerValue, this.acceptableOverheadRatio);currentMask = Mask(current.BitsPerValue);}" }, { "index": 6392, "before": "public AddJobFlowStepsResult addJobFlowSteps(AddJobFlowStepsRequest request) {request = beforeClientExecution(request);return executeAddJobFlowSteps(request);}", "after": "public virtual AddJobFlowStepsResponse AddJobFlowSteps(AddJobFlowStepsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddJobFlowStepsRequestMarshaller.Instance;options.ResponseUnmarshaller = AddJobFlowStepsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6393, "before": "public RecalcIdRecord() {_reserved0 = 0;_engineId = 0;}", "after": "public RecalcIdRecord(){_reserved0 = 0;_engineId = 0;}" }, { "index": 6394, "before": "public boolean matches() {matchFound = matchesImpl(address, input, matchOffsets);if (matchFound) {findPos = matchOffsets[1];}return matchFound;}", "after": "public bool matches(){matchFound = matchesImpl(address, input, matchOffsets);if (matchFound){findPos = matchOffsets[1];}return matchFound;}" }, { "index": 6395, "before": "public FieldMaskingSpanQuery(SpanQuery maskedQuery, String maskedField) {this.maskedQuery = Objects.requireNonNull(maskedQuery);this.field = Objects.requireNonNull(maskedField);}", "after": "public FieldMaskingSpanQuery(SpanQuery maskedQuery, string maskedField){this.maskedQuery = maskedQuery;this.field = maskedField;}" }, { "index": 6396, "before": "public void print(float fnum) {print(String.valueOf(fnum));}", "after": "public virtual void print(float fnum){print(fnum.ToString());}" }, { "index": 6397, "before": "public int addBSERecord(EscherBSERecord e) {createDrawingGroup();escherBSERecords.add( e );int dgLoc = findFirstRecordLocBySid(DrawingGroupRecord.sid);DrawingGroupRecord drawingGroup = (DrawingGroupRecord) getRecords().get( dgLoc );EscherContainerRecord dggContainer = (EscherContainerRecord) drawingGroup.getEscherRecord( 0 );EscherContainerRecord bstoreContainer;if (dggContainer.getChild( 1 ).getRecordId() == EscherContainerRecord.BSTORE_CONTAINER ){bstoreContainer = (EscherContainerRecord) dggContainer.getChild( 1 );} else {bstoreContainer = new EscherContainerRecord();bstoreContainer.setRecordId( EscherContainerRecord.BSTORE_CONTAINER );List childRecords = dggContainer.getChildRecords();childRecords.add(1, bstoreContainer);dggContainer.setChildRecords(childRecords);}bstoreContainer.setOptions( (short) ( (escherBSERecords.size() << 4) | 0xF ) );bstoreContainer.addChildRecord( e );return escherBSERecords.size();}", "after": "public int AddBSERecord(EscherBSERecord e){CreateDrawingGroup();escherBSERecords.Add(e);int dgLoc = FindFirstRecordLocBySid(DrawingGroupRecord.sid);DrawingGroupRecord drawingGroup = (DrawingGroupRecord)Records[dgLoc];EscherContainerRecord dggContainer = (EscherContainerRecord)drawingGroup.GetEscherRecord(0);EscherContainerRecord bstoreContainer;if (dggContainer.GetChild(1).RecordId == EscherContainerRecord.BSTORE_CONTAINER){bstoreContainer = (EscherContainerRecord)dggContainer.GetChild(1);}else{bstoreContainer = new EscherContainerRecord();bstoreContainer.RecordId=EscherContainerRecord.BSTORE_CONTAINER;List childRecords = dggContainer.ChildRecords;childRecords.Insert(1, bstoreContainer);dggContainer.ChildRecords = (childRecords);}bstoreContainer.Options=(short)((escherBSERecords.Count << 4) | 0xF);bstoreContainer.AddChildRecord(e);return escherBSERecords.Count;}" }, { "index": 6398, "before": "public CreateLoadBalancerListenersRequest(String loadBalancerName, java.util.List listeners) {setLoadBalancerName(loadBalancerName);setListeners(listeners);}", "after": "public CreateLoadBalancerListenersRequest(string loadBalancerName, List listeners){_loadBalancerName = loadBalancerName;_listeners = listeners;}" }, { "index": 6399, "before": "public DeleteDBClusterEndpointResult deleteDBClusterEndpoint(DeleteDBClusterEndpointRequest request) {request = beforeClientExecution(request);return executeDeleteDBClusterEndpoint(request);}", "after": "public virtual DeleteDBClusterEndpointResponse DeleteDBClusterEndpoint(DeleteDBClusterEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBClusterEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBClusterEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6400, "before": "public DescribeIngestionResult describeIngestion(DescribeIngestionRequest request) {request = beforeClientExecution(request);return executeDescribeIngestion(request);}", "after": "public virtual DescribeIngestionResponse DescribeIngestion(DescribeIngestionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIngestionRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIngestionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6401, "before": "public PutCompositeAlarmResult putCompositeAlarm(PutCompositeAlarmRequest request) {request = beforeClientExecution(request);return executePutCompositeAlarm(request);}", "after": "public virtual PutCompositeAlarmResponse PutCompositeAlarm(PutCompositeAlarmRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutCompositeAlarmRequestMarshaller.Instance;options.ResponseUnmarshaller = PutCompositeAlarmResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6402, "before": "public Collection evaluate(ParseTree t) {List nodes = new ArrayList();for (Tree c : Trees.getChildren(t)) {if ( c instanceof ParserRuleContext ) {ParserRuleContext ctx = (ParserRuleContext)c;if ( (ctx.getRuleIndex() == ruleIndex && !invert) ||(ctx.getRuleIndex() != ruleIndex && invert) ){nodes.add(ctx);}}}return nodes;}", "after": "public override ICollection Evaluate(IParseTree t){IList nodes = new List();foreach (ITree c in Trees.GetChildren(t)){if (c is ParserRuleContext){ParserRuleContext ctx = (ParserRuleContext)c;if ((ctx.RuleIndex == ruleIndex && !invert) || (ctx.RuleIndex != ruleIndex && invert)){nodes.Add(ctx);}}}return nodes;}" }, { "index": 6403, "before": "public CreateKeyPairResult createKeyPair(CreateKeyPairRequest request) {request = beforeClientExecution(request);return executeCreateKeyPair(request);}", "after": "public virtual CreateKeyPairResponse CreateKeyPair(CreateKeyPairRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateKeyPairRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateKeyPairResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6404, "before": "public DiffCommand setOldTree(AbstractTreeIterator oldTree) {this.oldTree = oldTree;return this;}", "after": "public virtual NGit.Api.DiffCommand SetOldTree(AbstractTreeIterator oldTree){this.oldTree = oldTree;return this;}" }, { "index": 6405, "before": "public GetDeploymentConfigResult getDeploymentConfig(GetDeploymentConfigRequest request) {request = beforeClientExecution(request);return executeGetDeploymentConfig(request);}", "after": "public virtual GetDeploymentConfigResponse GetDeploymentConfig(GetDeploymentConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDeploymentConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDeploymentConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6406, "before": "public static void addNewSheetRecord(List sheetRecords, RecordBase newRecord) {int index = findSheetInsertPos(sheetRecords, newRecord.getClass());sheetRecords.add(index, newRecord);}", "after": "public static void AddNewSheetRecord(List sheetRecords, RecordBase newRecord){int index = FindSheetInsertPos(sheetRecords, newRecord.GetType());sheetRecords.Insert(index, newRecord);}" }, { "index": 6407, "before": "public final void restoreState(State state) {if (state == null) return;do {AttributeImpl targetImpl = attributeImpls.get(state.attribute.getClass());if (targetImpl == null) {throw new IllegalArgumentException(\"State contains AttributeImpl of type \" +state.attribute.getClass().getName() + \" that is not in in this AttributeSource\");}state.attribute.copyTo(targetImpl);state = state.next;} while (state != null);}", "after": "public void RestoreState(State state){if (state == null){return;}do{if (!attributeImpls.ContainsKey(state.attribute.GetType())){throw new ArgumentException(\"State contains Attribute of type \" + state.attribute.GetType().Name + \" that is not in in this AttributeSource\");}state.attribute.CopyTo(attributeImpls[state.attribute.GetType()]);state = state.next;} while (state != null);}" }, { "index": 6408, "before": "public SendVoiceMessageResult sendVoiceMessage(SendVoiceMessageRequest request) {request = beforeClientExecution(request);return executeSendVoiceMessage(request);}", "after": "public virtual SendVoiceMessageResponse SendVoiceMessage(SendVoiceMessageRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendVoiceMessageRequestMarshaller.Instance;options.ResponseUnmarshaller = SendVoiceMessageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6409, "before": "public DescribeLoadBalancersResult describeLoadBalancers() {return describeLoadBalancers(new DescribeLoadBalancersRequest());}", "after": "public virtual DescribeLoadBalancersResponse DescribeLoadBalancers(){return DescribeLoadBalancers(new DescribeLoadBalancersRequest());}" }, { "index": 6410, "before": "public DisassociateTransitGatewayRouteTableResult disassociateTransitGatewayRouteTable(DisassociateTransitGatewayRouteTableRequest request) {request = beforeClientExecution(request);return executeDisassociateTransitGatewayRouteTable(request);}", "after": "public virtual DisassociateTransitGatewayRouteTableResponse DisassociateTransitGatewayRouteTable(DisassociateTransitGatewayRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateTransitGatewayRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateTransitGatewayRouteTableResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6411, "before": "public String segString(Directory dir) {StringBuilder b = new StringBuilder();b.append(\"MergeSpec:\\n\");final int count = merges.size();for(int i=0;i(request, options);}" }, { "index": 6413, "before": "public ObjectInserter newObjectInserter() {return getObjectDatabase().newInserter();}", "after": "public virtual ObjectInserter NewObjectInserter(){return ObjectDatabase.NewInserter();}" }, { "index": 6414, "before": "public Class getRecordClass() {return _c.getDeclaringClass();}", "after": "public Type GetRecordClass(){return _c.DeclaringType;}" }, { "index": 6415, "before": "public StringBufferInputStream(String str) {if (str == null) {throw new NullPointerException();}buffer = str;count = str.length();}", "after": "public StringBufferInputStream(string str){if (str == null){throw new System.ArgumentNullException();}buffer = str;count = str.Length;}" }, { "index": 6416, "before": "public DeletedRef3DPtg(LittleEndianInput in) {field_1_index_extern_sheet = in.readUShort();unused1 = in.readInt();}", "after": "public DeletedRef3DPtg(ILittleEndianInput in1){field_1_index_extern_sheet = in1.ReadUShort();unused1 = in1.ReadInt();}" }, { "index": 6417, "before": "public CellRangeAddress get(int index) {checkIndex(index);return _mergedRegions.get(index);}", "after": "public CellRangeAddress Get(int index){CheckIndex(index);return (CellRangeAddress)_mergedRegions[index];}" }, { "index": 6418, "before": "public boolean removePushRefSpec(RefSpec s) {return push.remove(s);}", "after": "public virtual bool RemovePushRefSpec(RefSpec s){return push.Remove(s);}" }, { "index": 6419, "before": "public CreateJobResult createJob(CreateJobRequest request) {request = beforeClientExecution(request);return executeCreateJob(request);}", "after": "public virtual CreateJobResponse CreateJob(CreateJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6420, "before": "public CreateResourceResult createResource(CreateResourceRequest request) {request = beforeClientExecution(request);return executeCreateResource(request);}", "after": "public virtual CreateResourceResponse CreateResource(CreateResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6421, "before": "public String log() {return \" (TERM = \" + TERM + \")\" +\" (CT = \" + CT +\")\" +\" (RV = \" + RV +\")\" +\" (R1 = \" + R1 +\")\" +\" (R2 = \" + R2 +\")\" ;}", "after": "public virtual string Log(){return \" (TERM = \" + TERM + \")\" + \" (CT = \" + CT + \")\" + \" (RV = \" + RV + \")\" + \" (R1 = \" + R1 + \")\" + \" (R2 = \" + R2 + \")\";}" }, { "index": 6422, "before": "public VerifyDomainIdentityResult verifyDomainIdentity(VerifyDomainIdentityRequest request) {request = beforeClientExecution(request);return executeVerifyDomainIdentity(request);}", "after": "public virtual VerifyDomainIdentityResponse VerifyDomainIdentity(VerifyDomainIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = VerifyDomainIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = VerifyDomainIdentityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6423, "before": "public void remove(int index) {checkIndex(index);_mergedRegions.remove(index);}", "after": "public void Remove(int index){CheckIndex(index);_mergedRegions.RemoveAt(index);}" }, { "index": 6424, "before": "public static org.apache.poi.hssf.record.Record [] createRecord(RecordInputStream in) {Record record = createSingleRecord(in);if (record instanceof DBCellRecord) {return new Record[] { null, };}if (record instanceof RKRecord) {return new Record[] { convertToNumberRecord((RKRecord) record), };}if (record instanceof MulRKRecord) {return convertRKRecords((MulRKRecord)record);}return new Record[] { record, };}", "after": "public static Record[] CreateRecord(RecordInputStream in1){Record record = CreateSingleRecord(in1);if (record is DBCellRecord){return new Record[] { null, };}if (record is RKRecord){return new Record[] { ConvertToNumberRecord((RKRecord)record), };}if (record is MulRKRecord){return ConvertRKRecords((MulRKRecord)record);}return new Record[] { record, };}" }, { "index": 6425, "before": "public DeleteIpGroupResult deleteIpGroup(DeleteIpGroupRequest request) {request = beforeClientExecution(request);return executeDeleteIpGroup(request);}", "after": "public virtual DeleteIpGroupResponse DeleteIpGroup(DeleteIpGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIpGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIpGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6426, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {double d;try {ValueEval ve = OperandResolver.getSingleValue(arg0, srcRowIndex, srcColumnIndex);d = OperandResolver.coerceValueToDouble(ve);} catch (EvaluationException e) {return e.getErrorEval();}if (d == 0.0) { return NumberEval.ZERO;}return new NumberEval(-d);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){double d;try{ValueEval ve = OperandResolver.GetSingleValue(arg0, srcRowIndex, srcColumnIndex);d = OperandResolver.CoerceValueToDouble(ve);}catch (EvaluationException e){return e.GetErrorEval();}if (d == 0.0){ return NumberEval.ZERO;}return new NumberEval(-d);}" }, { "index": 6427, "before": "public String toString() {return \"action_\"+ruleIndex+\":\"+actionIndex;}", "after": "public override string ToString(){return \"action_\" + ruleIndex + \":\" + actionIndex;}" }, { "index": 6428, "before": "public StopFleetResult stopFleet(StopFleetRequest request) {request = beforeClientExecution(request);return executeStopFleet(request);}", "after": "public virtual StopFleetResponse StopFleet(StopFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = StopFleetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6429, "before": "public String toString() {return(\"TermStats: term=\" + termtext.utf8ToString() + \" docFreq=\" + docFreq + \" totalTermFreq=\" + totalTermFreq);}", "after": "public override string ToString(){return (\"TermStats: Term=\" + termtext.Utf8ToString() + \" DocFreq=\" + DocFreq + \" TotalTermFreq=\" + TotalTermFreq);}" }, { "index": 6430, "before": "final public Token getNextToken() {if (token.next != null) token = token.next;else token = token.next = token_source.getNextToken();jj_ntk = -1;jj_gen++;return token;}", "after": "public Token GetNextToken(){if (Token.Next != null) Token = Token.Next;else Token = Token.Next = TokenSource.GetNextToken();jj_ntk = -1;jj_gen++;return Token;}" }, { "index": 6431, "before": "public GetLabelDetectionResult getLabelDetection(GetLabelDetectionRequest request) {request = beforeClientExecution(request);return executeGetLabelDetection(request);}", "after": "public virtual GetLabelDetectionResponse GetLabelDetection(GetLabelDetectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetLabelDetectionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetLabelDetectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6432, "before": "public synchronized IndexCommit getIndexCommit(long gen) {return indexCommits.get(gen);}", "after": "public virtual IndexCommit GetIndexCommit(long gen){lock (this){return m_indexCommits[gen];}}" }, { "index": 6433, "before": "public ListMetricsResult listMetrics(ListMetricsRequest request) {request = beforeClientExecution(request);return executeListMetrics(request);}", "after": "public virtual ListMetricsResponse ListMetrics(ListMetricsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListMetricsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListMetricsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6434, "before": "public void delete() {throw new UnsupportedOperationException(\"This IndexCommit does not support deletions\");}", "after": "public override void Delete(){throw new NotSupportedException(\"this IndexCommit does not support deletions\");}" }, { "index": 6435, "before": "public ByteBuffer putChar(int index, char value) {checkIndex(index, SizeOf.CHAR);Memory.pokeShort(backingArray, offset + index, (short) value, order);return this;}", "after": "public override java.nio.ByteBuffer putChar(int index, char value){checkIndex(index, libcore.io.SizeOf.CHAR);libcore.io.Memory.pokeShort(backingArray, offset + index, (short)value, _order);return this;}" }, { "index": 6436, "before": "public CreateBasePathMappingResult createBasePathMapping(CreateBasePathMappingRequest request) {request = beforeClientExecution(request);return executeCreateBasePathMapping(request);}", "after": "public virtual CreateBasePathMappingResponse CreateBasePathMapping(CreateBasePathMappingRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateBasePathMappingRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateBasePathMappingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6437, "before": "public synchronized StringBuffer insert(int index, CharSequence s) {insert0(index, s == null ? \"null\" : s.toString());return this;}", "after": "public java.lang.StringBuffer insert(int index, char[] chars){lock (this){insert0(index, chars);return this;}}" }, { "index": 6438, "before": "public DescribeDBInstancesResult describeDBInstances(DescribeDBInstancesRequest request) {request = beforeClientExecution(request);return executeDescribeDBInstances(request);}", "after": "public virtual DescribeDBInstancesResponse DescribeDBInstances(DescribeDBInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6439, "before": "public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {switch (args.length) {case 2:return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1]);case 3:return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2]);case 4:return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], args[3]);}return ErrorEval.VALUE_INVALID;}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){switch (args.Length){case 2:return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1]);case 3:return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2]);case 4:return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], args[3]);}return ErrorEval.VALUE_INVALID;}" }, { "index": 6440, "before": "@Override public boolean add(E object) {throw new UnsupportedOperationException();}", "after": "public virtual bool add(E @object){throw new System.NotSupportedException();}" }, { "index": 6441, "before": "public Collection getTrackingRefUpdates() {return Collections.unmodifiableCollection(updates.values());}", "after": "public virtual ICollection GetTrackingRefUpdates(){return Sharpen.Collections.UnmodifiableCollection(updates.Values);}" }, { "index": 6442, "before": "public ConfirmProductInstanceRequest(String productCode, String instanceId) {setProductCode(productCode);setInstanceId(instanceId);}", "after": "public ConfirmProductInstanceRequest(string productCode, string instanceId){_productCode = productCode;_instanceId = instanceId;}" }, { "index": 6443, "before": "public AnalyzerFactory(List charFilterFactories,TokenizerFactory tokenizerFactory,List tokenFilterFactories) {this.charFilterFactories = charFilterFactories;assert null != tokenizerFactory;this.tokenizerFactory = tokenizerFactory;this.tokenFilterFactories = tokenFilterFactories;}", "after": "public AnalyzerFactory(IList charFilterFactories,TokenizerFactory tokenizerFactory,IList tokenFilterFactories){this.charFilterFactories = charFilterFactories;Debug.Assert(null != tokenizerFactory);this.tokenizerFactory = tokenizerFactory;this.tokenFilterFactories = tokenFilterFactories;}" }, { "index": 6444, "before": "public DeleteRestApiResult deleteRestApi(DeleteRestApiRequest request) {request = beforeClientExecution(request);return executeDeleteRestApi(request);}", "after": "public virtual DeleteRestApiResponse DeleteRestApi(DeleteRestApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRestApiRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRestApiResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6445, "before": "public final ByteBuffer put(byte[] src) {return put(src, 0, src.length);}", "after": "public java.nio.ByteBuffer put(byte[] src){return put(src, 0, src.Length);}" }, { "index": 6446, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[PROT4REV]\\n\");buffer.append(\" .options = \").append(HexDump.shortToHex(_options)).append(\"\\n\");buffer.append(\"[/PROT4REV]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[PROT4REV]\\n\");buffer.Append(\" .protect = \").Append(Protect).Append(\"\\n\");buffer.Append(\"[/PROT4REV]\\n\");return buffer.ToString();}" }, { "index": 6447, "before": "public void setTokenSeparator(String tokenSeparator) {this.tokenSeparator = null == tokenSeparator ? \"\" : tokenSeparator;}", "after": "public void SetTokenSeparator(string tokenSeparator){this.tokenSeparator = null == tokenSeparator ? \"\" : tokenSeparator;}" }, { "index": 6448, "before": "@Override public ListIterator listIterator() {synchronized (mutex) {return list.listIterator();}}", "after": "public virtual java.util.ListIterator listIterator(){lock (mutex){return list.listIterator();}}" }, { "index": 6449, "before": "public FileOutputStream(File file) throws FileNotFoundException {this(file, false);}", "after": "public FileOutputStream(java.io.File file) : this(file, false){throw new System.NotImplementedException();}" }, { "index": 6450, "before": "public SetInstanceHealthResult setInstanceHealth(SetInstanceHealthRequest request) {request = beforeClientExecution(request);return executeSetInstanceHealth(request);}", "after": "public virtual SetInstanceHealthResponse SetInstanceHealth(SetInstanceHealthRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetInstanceHealthRequestMarshaller.Instance;options.ResponseUnmarshaller = SetInstanceHealthResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6451, "before": "public boolean isUnderflow() {return this.type == TYPE_UNDERFLOW;}", "after": "public virtual bool isUnderflow(){return this.type == TYPE_UNDERFLOW;}" }, { "index": 6452, "before": "public PutRecordsResult putRecords(PutRecordsRequest request) {request = beforeClientExecution(request);return executePutRecords(request);}", "after": "public virtual PutRecordsResponse PutRecords(PutRecordsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutRecordsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutRecordsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6453, "before": "public synchronized boolean isIndeterminate() {return mIndeterminate;}", "after": "public virtual bool isIndeterminate(){lock (this){return mIndeterminate;}}" }, { "index": 6454, "before": "public NavigableMap headMap(K toExclusive) {return subMap(null, NO_BOUND, toExclusive, EXCLUSIVE);}", "after": "public java.util.NavigableMap headMap(K toExclusive){return this.subMap(default(K), java.util.TreeMap.Bound.NO_BOUND, toExclusive, java.util.TreeMap.Bound.EXCLUSIVE);}" }, { "index": 6455, "before": "public final boolean updateValue(ValueEval value) {if (value == null) {throw new IllegalArgumentException(\"Did not expect to update to null\");}boolean result = !areValuesEqual(_value, value);_value = value;return result;}", "after": "public bool UpdateValue(ValueEval value){if (value == null){throw new ArgumentException(\"Did not expect To Update To null\");}bool result = !AreValuesEqual(_value, value);_value = value;return result;}" }, { "index": 6456, "before": "public ListTablesResult listTables() {return listTables(new ListTablesRequest());}", "after": "public virtual ListTablesResponse ListTables(){return ListTables(new ListTablesRequest());}" }, { "index": 6457, "before": "public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {if (args.length != 1) {return ErrorEval.VALUE_INVALID;}int val;try {val = evaluateArgParity(args[0], ec.getRowIndex(), ec.getColumnIndex());} catch (EvaluationException e) {return e.getErrorEval();}return BoolEval.valueOf(val == _desiredParity);}", "after": "public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){if (args.Length != 1){return ErrorEval.VALUE_INVALID;}int val;try{val = EvaluateArgParity(args[0], ec.RowIndex, ec.ColumnIndex);}catch (EvaluationException e){return e.GetErrorEval();}return BoolEval.ValueOf(val == _desiredParity);}" }, { "index": 6458, "before": "public char charAt(int index) {return (char) (buffer[startPtr + index] & 0xff);}", "after": "public char CharAt(int index){return (char)(buffer[startPtr + index] & unchecked((int)(0xff)));}" }, { "index": 6459, "before": "public CFHeaderRecord(CellRangeAddress[] regions, int nRules) {super(regions, nRules);}", "after": "public CFHeaderRecord(CellRangeAddress[] regions, int nRules){CellRangeAddress[] unmergedRanges = regions;CellRangeAddress[] mergeCellRanges = CellRangeUtil.MergeCellRanges(unmergedRanges);CellRanges= mergeCellRanges;field_1_numcf = nRules;}" }, { "index": 6460, "before": "public LayoutParams(int width, int height) {super(width, height);}", "after": "public LayoutParams(int width, int height) : base(width, height){weight = 0;}" }, { "index": 6461, "before": "public String toString() {return \"FormatAndBits(format=\" + format + \" bitsPerValue=\" + bitsPerValue + \")\";}", "after": "public override string ToString(){return \"FormatAndBits(format=\" + Format + \" bitsPerValue=\" + BitsPerValue + \")\";}" }, { "index": 6462, "before": "final public SrndQuery TopSrndQuery() throws ParseException {SrndQuery q;q = FieldsQuery();jj_consume_token(0);{if (true) return q;}throw new Error(\"Missing return statement in function\");}", "after": "public SrndQuery TopSrndQuery(){SrndQuery q;q = FieldsQuery();Jj_consume_token(0);{ if (true) return q; }throw new Exception(\"Missing return statement in function\");}" }, { "index": 6463, "before": "public final ObjectId copy() {if (getClass() == ObjectId.class)return (ObjectId) this;return new ObjectId(this);}", "after": "public ObjectId Copy(){if (GetType() == typeof(ObjectId)){return (ObjectId)this;}return new ObjectId(this);}" }, { "index": 6464, "before": "public DescribeReservedCacheNodesResult describeReservedCacheNodes() {return describeReservedCacheNodes(new DescribeReservedCacheNodesRequest());}", "after": "public virtual DescribeReservedCacheNodesResponse DescribeReservedCacheNodes(){return DescribeReservedCacheNodes(new DescribeReservedCacheNodesRequest());}" }, { "index": 6465, "before": "public StringBuilder append(char[] chars) {append0(chars);return this;}", "after": "public java.lang.StringBuilder append(char[] chars){append0(chars);return this;}" }, { "index": 6466, "before": "public final boolean matches(char c) {return start <= c && c <= end;}", "after": "public bool Matches(char c){return start <= c && c <= end;}" }, { "index": 6467, "before": "public DetachVolumeRequest(String volumeId) {setVolumeId(volumeId);}", "after": "public DetachVolumeRequest(string volumeId){_volumeId = volumeId;}" }, { "index": 6468, "before": "public final PersonIdent getCommitterIdent() {final byte[] raw = buffer;final int nameB = RawParseUtils.committer(raw, 0);if (nameB < 0)return null;return RawParseUtils.parsePersonIdent(raw, nameB);}", "after": "public PersonIdent GetCommitterIdent(){byte[] raw = buffer;int nameB = RawParseUtils.Committer(raw, 0);if (nameB < 0){return null;}return RawParseUtils.ParsePersonIdent(raw, nameB);}" }, { "index": 6469, "before": "public SnowballPorterFilterFactory(Map args) {super(args);language = get(args, \"language\", \"English\");wordFiles = get(args, PROTECTED_TOKENS);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public SnowballPorterFilterFactory(IDictionary args) : base(args){language = Get(args, \"language\", \"English\");wordFiles = Get(args, PROTECTED_TOKENS);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 6470, "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": 6471, "before": "public String getType(int script, int ruleStatus) {switch (ruleStatus) {case RuleBasedBreakIterator.WORD_IDEO:return WORD_IDEO;case RuleBasedBreakIterator.WORD_KANA:return script == UScript.HIRAGANA ? WORD_HIRAGANA : WORD_KATAKANA;case RuleBasedBreakIterator.WORD_LETTER:return script == UScript.HANGUL ? WORD_HANGUL : WORD_LETTER;case RuleBasedBreakIterator.WORD_NUMBER:return WORD_NUMBER;case EMOJI_SEQUENCE_STATUS:return WORD_EMOJI;default: return \"\";}}", "after": "public override string GetType(int script, int ruleStatus){switch (ruleStatus){case BreakIterator.WordIdeo:return WORD_IDEO;case BreakIterator.WordKana: return script == UScript.Hiragana ? WORD_HIRAGANA : WORD_KATAKANA;case BreakIterator.WordLetter: return script == UScript.Hangul ? WORD_HANGUL : WORD_LETTER;case BreakIterator.WordNumber: return WORD_NUMBER;default: return \"\";}}" }, { "index": 6472, "before": "public static TopDocs merge(int start, int topN, TopDocs[] shardHits) {return mergeAux(null, start, topN, shardHits, DEFAULT_TIE_BREAKER);}", "after": "public static TopDocs Merge(Sort sort, int topN, TopDocs[] shardHits){return Merge(sort, 0, topN, shardHits);}" }, { "index": 6473, "before": "public EnableDomainTransferLockResult enableDomainTransferLock(EnableDomainTransferLockRequest request) {request = beforeClientExecution(request);return executeEnableDomainTransferLock(request);}", "after": "public virtual EnableDomainTransferLockResponse EnableDomainTransferLock(EnableDomainTransferLockRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableDomainTransferLockRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableDomainTransferLockResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6474, "before": "public DeleteConfigurationProfileResult deleteConfigurationProfile(DeleteConfigurationProfileRequest request) {request = beforeClientExecution(request);return executeDeleteConfigurationProfile(request);}", "after": "public virtual DeleteConfigurationProfileResponse DeleteConfigurationProfile(DeleteConfigurationProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteConfigurationProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteConfigurationProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6475, "before": "public DescribeExpressionsResult describeExpressions(DescribeExpressionsRequest request) {request = beforeClientExecution(request);return executeDescribeExpressions(request);}", "after": "public virtual DescribeExpressionsResponse DescribeExpressions(DescribeExpressionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeExpressionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeExpressionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6476, "before": "public Ptg[] getResult() {return _ptgs;}", "after": "public Ptg[] GetResult(){return _ptgs;}" }, { "index": 6477, "before": "public GetDistributionConfigResult getDistributionConfig(GetDistributionConfigRequest request) {request = beforeClientExecution(request);return executeGetDistributionConfig(request);}", "after": "public virtual GetDistributionConfigResponse GetDistributionConfig(GetDistributionConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDistributionConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDistributionConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6478, "before": "public ShortBuffer get(short[] dst) {return get(dst, 0, dst.length);}", "after": "public virtual java.nio.ShortBuffer get(short[] dst){return get(dst, 0, dst.Length);}" }, { "index": 6479, "before": "public GetMetricWidgetImageResult getMetricWidgetImage(GetMetricWidgetImageRequest request) {request = beforeClientExecution(request);return executeGetMetricWidgetImage(request);}", "after": "public virtual GetMetricWidgetImageResponse GetMetricWidgetImage(GetMetricWidgetImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMetricWidgetImageRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMetricWidgetImageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6480, "before": "public UpdateVoiceConnectorGroupResult updateVoiceConnectorGroup(UpdateVoiceConnectorGroupRequest request) {request = beforeClientExecution(request);return executeUpdateVoiceConnectorGroup(request);}", "after": "public virtual UpdateVoiceConnectorGroupResponse UpdateVoiceConnectorGroup(UpdateVoiceConnectorGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateVoiceConnectorGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateVoiceConnectorGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6481, "before": "public void add(SortField sortField) {map.put(sortField.getField(), sortField);}", "after": "public void Add(SortField sortField){map[sortField.Field] = sortField;}" }, { "index": 6482, "before": "public Daemon getDaemon() {return daemon;}", "after": "public virtual Daemon GetDaemon(){return daemon;}" }, { "index": 6483, "before": "public CreateVpcPeeringConnectionResult createVpcPeeringConnection(CreateVpcPeeringConnectionRequest request) {request = beforeClientExecution(request);return executeCreateVpcPeeringConnection(request);}", "after": "public virtual CreateVpcPeeringConnectionResponse CreateVpcPeeringConnection(CreateVpcPeeringConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVpcPeeringConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVpcPeeringConnectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6484, "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": 6485, "before": "public DescribeExclusionsResult describeExclusions(DescribeExclusionsRequest request) {request = beforeClientExecution(request);return executeDescribeExclusions(request);}", "after": "public virtual DescribeExclusionsResponse DescribeExclusions(DescribeExclusionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeExclusionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeExclusionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6486, "before": "public SearchNetworkProfilesResult searchNetworkProfiles(SearchNetworkProfilesRequest request) {request = beforeClientExecution(request);return executeSearchNetworkProfiles(request);}", "after": "public virtual SearchNetworkProfilesResponse SearchNetworkProfiles(SearchNetworkProfilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchNetworkProfilesRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchNetworkProfilesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6487, "before": "public LooseRef peel(ObjectIdRef newLeaf) {throw new UnsupportedOperationException();}", "after": "public RefDirectory.LooseRef Peel(ObjectIdRef newLeaf){throw new NGit.Errors.NotSupportedException();}" }, { "index": 6488, "before": "public void println(float f) {println(String.valueOf(f));}", "after": "public virtual void println(float f){println(f.ToString());}" }, { "index": 6489, "before": "public PurchaseReservedInstancesOfferingRequest(String reservedInstancesOfferingId, Integer instanceCount) {setReservedInstancesOfferingId(reservedInstancesOfferingId);setInstanceCount(instanceCount);}", "after": "public PurchaseReservedInstancesOfferingRequest(string reservedInstancesOfferingId, int instanceCount){_reservedInstancesOfferingId = reservedInstancesOfferingId;_instanceCount = instanceCount;}" }, { "index": 6490, "before": "public Set getUntracked() {return Collections.unmodifiableSet(diff.getUntracked());}", "after": "public virtual ICollection GetUntracked(){return Sharpen.Collections.UnmodifiableSet(diff.GetUntracked());}" }, { "index": 6491, "before": "public String getTag() {return tag;}", "after": "public virtual string GetTag(){return tag;}" }, { "index": 6492, "before": "public void buildFieldConfig(FieldConfig fieldConfig) {DateTools.Resolution dateRes = null;Map dateResMap = this.config.get(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP);if (dateResMap != null) {dateRes = dateResMap.get(fieldConfig.getField());}if (dateRes == null) {dateRes = this.config.get(ConfigurationKeys.DATE_RESOLUTION);}if (dateRes != null) {fieldConfig.set(ConfigurationKeys.DATE_RESOLUTION, dateRes);}}", "after": "public virtual void BuildFieldConfig(FieldConfig fieldConfig){DateTools.Resolution? dateRes = null;IDictionary dateResMap = this.config.Get(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP);if (dateResMap != null){dateResMap.TryGetValue(fieldConfig.Field, out dateRes);}if (dateRes == null){dateRes = this.config.Get(ConfigurationKeys.DATE_RESOLUTION);}if (dateRes != null){fieldConfig.Set(ConfigurationKeys.DATE_RESOLUTION, dateRes.Value);}}" }, { "index": 6493, "before": "public String toFormulaString() {return String.valueOf(getValue());}", "after": "public override String ToFormulaString(){return Value.ToString(CultureInfo.InvariantCulture);}" }, { "index": 6494, "before": "public Bits getAllGroupHeads() {return matchingGroupHeads;}", "after": "public virtual IBits GetAllGroupHeads(){return matchingGroupHeads;}" }, { "index": 6495, "before": "public int serialize( int offset, byte[] data, EscherSerializationListener listener ) {listener.beforeRecordSerialize( offset, getRecordId(), this );int pos = offset;LittleEndian.putShort( data, pos, getOptions() ); pos += 2;LittleEndian.putShort( data, pos, getRecordId() ); pos += 2;int remainingBytes = getRecordSize() - 8;LittleEndian.putInt( data, pos, remainingBytes ); pos += 4;LittleEndian.putInt( data, pos, field_1_color1 ); pos += 4;LittleEndian.putInt( data, pos, field_2_color2 ); pos += 4;LittleEndian.putInt( data, pos, field_3_color3 ); pos += 4;LittleEndian.putInt( data, pos, field_4_color4 ); pos += 4;listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );return getRecordSize();}", "after": "public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);int pos = offset;LittleEndian.PutShort(data, pos, Options); pos += 2;LittleEndian.PutShort(data, pos, RecordId); pos += 2;int remainingBytes = RecordSize - 8;LittleEndian.PutInt(data, pos, remainingBytes); pos += 4;LittleEndian.PutInt(data, pos, field_1_color1); pos += 4;LittleEndian.PutInt(data, pos, field_2_color2); pos += 4;LittleEndian.PutInt(data, pos, field_3_color3); pos += 4;LittleEndian.PutInt(data, pos, field_4_color4); pos += 4;listener.AfterRecordSerialize(pos, RecordId, pos - offset, this);return RecordSize;}" }, { "index": 6496, "before": "public boolean add(E object) {return backingMap.put(object, Boolean.TRUE) == null;}", "after": "public override bool add(E @object){return backingMap.put(@object, true) == null;}" }, { "index": 6497, "before": "public void setBinaryFileThreshold(int threshold) {this.binaryFileThreshold = threshold;}", "after": "public virtual void SetBinaryFileThreshold(int threshold){this.binaryFileThreshold = threshold;}" }, { "index": 6498, "before": "public void setParams(String params) {super.setParams(params);pauseMSec = (long) (1000.0*Float.parseFloat(params));}", "after": "public override void SetParams(string @params){base.SetParams(@params);pauseMSec = (long)(1000.0 * float.Parse(@params, CultureInfo.InvariantCulture));}" }, { "index": 6499, "before": "public PerfTask(PerfRunData runData) {this();this.runData = runData;Config config = runData.getConfig();this.maxDepthLogStart = config.get(\"task.max.depth.log\",0);String logStepAtt = \"log.step\";String taskLogStepAtt = \"log.step.\" + name;if (config.get(taskLogStepAtt, null) != null) {logStepAtt = taskLogStepAtt;}logStep = config.get(logStepAtt, DEFAULT_LOG_STEP);if (logStep <= 0) {logStep = Integer.MAX_VALUE;}}", "after": "public PerfTask(PerfRunData runData): this(){this.runData = runData;Config config = runData.Config;this.maxDepthLogStart = config.Get(\"task.max.depth.log\", 0);string logStepAtt = \"log.step\";string taskLogStepAtt = \"log.step.\" + name;if (config.Get(taskLogStepAtt, null) != null){logStepAtt = taskLogStepAtt;}m_logStep = config.Get(logStepAtt, DEFAULT_LOG_STEP);if (m_logStep <= 0){m_logStep = int.MaxValue;}}" }, { "index": 6500, "before": "public void setMBPerSec(double mbPerSec) {this.mbPerSec = mbPerSec;minPauseCheckBytes = (long) ((MIN_PAUSE_CHECK_MSEC / 1000.0) * mbPerSec * 1024 * 1024);}", "after": "public override void SetMbPerSec(double mbPerSec){this.mbPerSec = mbPerSec;if (mbPerSec == 0)nsPerByte = 0;elsensPerByte = 1000000000.0 / (1024 * 1024 * mbPerSec);}" }, { "index": 6501, "before": "public ConfirmSubscriptionRequest(String topicArn, String token, String authenticateOnUnsubscribe) {setTopicArn(topicArn);setToken(token);setAuthenticateOnUnsubscribe(authenticateOnUnsubscribe);}", "after": "public ConfirmSubscriptionRequest(string topicArn, string token, string authenticateOnUnsubscribe){_topicArn = topicArn;_token = token;_authenticateOnUnsubscribe = authenticateOnUnsubscribe;}" }, { "index": 6502, "before": "public String getHostName() {return hostName;}", "after": "public virtual string GetHostName(){return hostName;}" }, { "index": 6503, "before": "public StartMonitoringMemberResult startMonitoringMember(StartMonitoringMemberRequest request) {request = beforeClientExecution(request);return executeStartMonitoringMember(request);}", "after": "public virtual StartMonitoringMemberResponse StartMonitoringMember(StartMonitoringMemberRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartMonitoringMemberRequestMarshaller.Instance;options.ResponseUnmarshaller = StartMonitoringMemberResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6504, "before": "public T lookup( int propId ) {return (T)properties.stream().filter(p -> p.getPropertyNumber() == propId).findFirst().orElse(null);}", "after": "public EscherProperty Lookup(int propId){foreach (EscherProperty prop in properties){if (prop.PropertyNumber == propId){return prop;}}return null;}" }, { "index": 6505, "before": "public boolean isExpectingOldObjectId() {return expectedOldObjectId != null;}", "after": "public virtual bool IsExpectingOldObjectId(){return expectedOldObjectId != null;}" }, { "index": 6506, "before": "public int compareTo(ScoreTerm other) {if (term.bytesEquals(other.term))return 0; if (this.boost == other.boost)return other.term.compareTo(this.term);elsereturn Float.compare(this.boost, other.boost);}", "after": "public int CompareTo(ScoreTerm other){if (this.Boost == other.Boost){return TermComp.Compare(other.Bytes, this.Bytes);}else{return this.Boost.CompareTo(other.Boost);}}" }, { "index": 6507, "before": "public LazyAreaEval getColumn(int columnIndex) {if (columnIndex >= getWidth()) {throw new IllegalArgumentException(\"Invalid columnIndex \" + columnIndex+ \". Allowable range is (0..\" + getWidth() + \").\");}int absColIx = getFirstColumn() + columnIndex;return new LazyAreaEval(getFirstRow(), absColIx, getLastRow(), absColIx, _evaluator);}", "after": "public override TwoDEval GetColumn(int columnIndex){if (columnIndex >= Width){throw new ArgumentException(\"Invalid columnIndex \" + columnIndex+ \". Allowable range is (0..\" + Width + \").\");}int absColIx = FirstColumn + columnIndex;return new LazyAreaEval(FirstRow, absColIx, LastRow, absColIx, _evaluator);}" }, { "index": 6508, "before": "public BytesRef next() throws IOException {if (done) {return null;}boolean success = false;BytesRef result;try {String line;if ((line = in.readLine()) != null) {spare.copyChars(line);result = spare.get();} else {done = true;IOUtils.close(in);result = null;}success = true;} finally {if (!success) {IOUtils.closeWhileHandlingException(in);}}return result;}", "after": "public BytesRef Next(){if (done){return null;}bool success = false;BytesRef result;try{string line;if ((line = outerInstance.@in.ReadLine()) != null){spare.CopyChars(line);result = spare;}else{done = true;IOUtils.Dispose(outerInstance.@in);result = null;}success = true;}finally{if (!success){IOUtils.DisposeWhileHandlingException(outerInstance.@in);}}return result;}" }, { "index": 6509, "before": "public boolean shouldBeRecursive() {return path.shouldBeRecursive();}", "after": "public override bool ShouldBeRecursive(){return path.ShouldBeRecursive();}" }, { "index": 6510, "before": "public String toString() {return getClass().getSimpleName() + \"(compressionMode=\" + compressionMode+ \", chunkSize=\" + chunkSize + \", blockSize=\" + blockSize + \")\";}", "after": "public override string ToString(){return this.GetType().Name + \"(compressionMode=\" + compressionMode + \", chunkSize=\" + chunkSize + \")\";}" }, { "index": 6511, "before": "public ResourcePendingMaintenanceActions applyPendingMaintenanceAction(ApplyPendingMaintenanceActionRequest request) {request = beforeClientExecution(request);return executeApplyPendingMaintenanceAction(request);}", "after": "public virtual ApplyPendingMaintenanceActionResponse ApplyPendingMaintenanceAction(ApplyPendingMaintenanceActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = ApplyPendingMaintenanceActionRequestMarshaller.Instance;options.ResponseUnmarshaller = ApplyPendingMaintenanceActionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6512, "before": "public boolean startsWith(AbbreviatedObjectId abbr) {return abbr.prefixCompare(this) == 0;}", "after": "public virtual bool StartsWith(AbbreviatedObjectId abbr){return abbr.PrefixCompare(this) == 0;}" }, { "index": 6513, "before": "public SerializingRecordVisitor(byte[] data, int startOffset) {_data = data;_startOffset = startOffset;_countBytesWritten = 0;}", "after": "public SerializingRecordVisitor(byte[] data, int startOffset){_data = data;_startOffset = startOffset;_countBytesWritten = 0;}" }, { "index": 6514, "before": "public static TreeFilter createFromStrings(Collection paths) {if (paths.isEmpty())throw new IllegalArgumentException(JGitText.get().atLeastOnePathIsRequired);final PathFilter[] p = new PathFilter[paths.size()];int i = 0;for (String s : paths)p[i++] = PathFilter.create(s);return create(p);}", "after": "public static TreeFilter CreateFromStrings(ICollection paths){if (paths.IsEmpty()){throw new ArgumentException(JGitText.Get().atLeastOnePathIsRequired);}PathFilter[] p = new PathFilter[paths.Count];int i = 0;foreach (string s in paths){p[i++] = PathFilter.Create(s);}return Create(p);}" }, { "index": 6515, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getDefaultCountry());out.writeShort(getCurrentCountry());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(DefaultCountry);out1.WriteShort(CurrentCountry);}" }, { "index": 6516, "before": "@Override public boolean equals(Object object) {synchronized (mutex) {return list.equals(object);}}", "after": "public override bool Equals(object @object){lock (mutex){return list.Equals(@object);}}" }, { "index": 6517, "before": "public CellFormatter(String format) {this(LocaleUtil.getUserLocale(), format);}", "after": "public CellFormatter(String format){this.format = format;}" }, { "index": 6518, "before": "public ObjectId getResultTreeId() {return resultTree;}", "after": "public override ObjectId GetResultTreeId(){return resultTree;}" }, { "index": 6519, "before": "public DrillDownQuery clone() {return new DrillDownQuery(config, baseQuery, dimQueries, drillDownDims);}", "after": "public override object Clone(){return new DrillDownQuery(config, query, drillDownDims);}" }, { "index": 6520, "before": "public final ShortBuffer put(short[] src, int srcOffset, int shortCount) {throw new ReadOnlyBufferException();}", "after": "public sealed override java.nio.ShortBuffer put(short[] src, int srcOffset, int shortCount){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 6521, "before": "public final void writeLong(long val) throws IOException {Memory.pokeLong(scratch, 0, val, ByteOrder.BIG_ENDIAN);write(scratch, 0, SizeOf.LONG);}", "after": "public virtual void writeLong(long val){throw new System.NotImplementedException();}" }, { "index": 6522, "before": "public AuthorizeSecurityGroupEgressResult authorizeSecurityGroupEgress(AuthorizeSecurityGroupEgressRequest request) {request = beforeClientExecution(request);return executeAuthorizeSecurityGroupEgress(request);}", "after": "public virtual AuthorizeSecurityGroupEgressResponse AuthorizeSecurityGroupEgress(AuthorizeSecurityGroupEgressRequest request){var options = new InvokeOptions();options.RequestMarshaller = AuthorizeSecurityGroupEgressRequestMarshaller.Instance;options.ResponseUnmarshaller = AuthorizeSecurityGroupEgressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6523, "before": "public void add(E object) {throw new UnsupportedOperationException();}", "after": "public virtual void add(E @object){throw new System.NotSupportedException();}" }, { "index": 6524, "before": "public static String getPOSTranslation(String s) {return posTranslations.get(s);}", "after": "public static string GetPOSTranslation(string s){string result;posTranslations.TryGetValue(s, out result);return result;}" }, { "index": 6525, "before": "public AnalyticsTagPredicate(Tag tag) {this.tag = tag;}", "after": "public AnalyticsTagPredicate(Tag tag){this.tag = tag;}" }, { "index": 6526, "before": "public String toInfoString(Parser recognizer) {List rules = recognizer.getRuleInvocationStack(this);Collections.reverse(rules);return \"ParserRuleContext\"+rules+\"{\" +\"start=\" + start +\", stop=\" + stop +'}';}", "after": "public virtual string ToInfoString(Parser recognizer){List rules = new List(recognizer.GetRuleInvocationStack(this));rules.Reverse();return \"ParserRuleContext\" + rules + \"{\" + \"start=\" + _start + \", stop=\" + _stop + '}';}" }, { "index": 6527, "before": "public CharBuffer put(int index, char c) {checkIndex(index);backingArray[offset + index] = c;return this;}", "after": "public override java.nio.CharBuffer put(int index, char c){checkIndex(index);backingArray[offset + index] = c;return this;}" }, { "index": 6528, "before": "public CreateComponentResult createComponent(CreateComponentRequest request) {request = beforeClientExecution(request);return executeCreateComponent(request);}", "after": "public virtual CreateComponentResponse CreateComponent(CreateComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateComponentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6529, "before": "public RuleWithSuffixExceptions(String suffix, int min, String replacement,String[] exceptions) {super(suffix, min, replacement);for (int i = 0; i < exceptions.length; i++) {if (!exceptions[i].endsWith(suffix))throw new RuntimeException(\"warning: useless exception '\" + exceptions[i] + \"' does not end with '\" + suffix + \"'\");}this.exceptions = new char[exceptions.length][];for (int i = 0; i < exceptions.length; i++)this.exceptions[i] = exceptions[i].toCharArray();}", "after": "public RuleWithSuffixExceptions(string suffix, int min, string replacement, string[] exceptions) : base(suffix, min, replacement){for (int i = 0; i < exceptions.Length; i++){if (!exceptions[i].EndsWith(suffix, StringComparison.Ordinal)){throw new Exception(\"warning: useless exception '\" + exceptions[i] + \"' does not end with '\" + suffix + \"'\");}}this.m_exceptions = new char[exceptions.Length][];for (int i = 0; i < exceptions.Length; i++){this.m_exceptions[i] = exceptions[i].ToCharArray();}}" }, { "index": 6530, "before": "public DescribeVpnGatewaysResult describeVpnGateways(DescribeVpnGatewaysRequest request) {request = beforeClientExecution(request);return executeDescribeVpnGateways(request);}", "after": "public virtual DescribeVpnGatewaysResponse DescribeVpnGateways(DescribeVpnGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpnGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpnGatewaysResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6531, "before": "public HSSFClientAnchor(EscherClientAnchorRecord escherClientAnchorRecord) {this._escherClientAnchor = escherClientAnchorRecord;}", "after": "public HSSFClientAnchor(EscherClientAnchorRecord escherClientAnchorRecord){this._escherClientAnchor = escherClientAnchorRecord;}" }, { "index": 6532, "before": "public void stopNow() {stopNow = true;}", "after": "public virtual void StopNow(){stopNow = true;}" }, { "index": 6533, "before": "public String toString() {return \"FooterKey[\" + name + \"]\";}", "after": "public override string ToString(){return \"FooterKey[\" + name + \"]\";}" }, { "index": 6534, "before": "public GetRelationalDatabasesResult getRelationalDatabases(GetRelationalDatabasesRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabases(request);}", "after": "public virtual GetRelationalDatabasesResponse GetRelationalDatabases(GetRelationalDatabasesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabasesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabasesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6535, "before": "public int compareTo(Revision o) {IndexRevision other = (IndexRevision) o;return commit.compareTo(other.commit);}", "after": "public virtual int CompareTo(IRevision other){IndexRevision or = (IndexRevision)other;return commit.CompareTo(or.commit);}" }, { "index": 6536, "before": "public PredPrediction(SemanticContext pred, int alt) {this.alt = alt;this.pred = pred;}", "after": "public PredPrediction(SemanticContext pred, int alt){this.alt = alt;this.pred = pred;}" }, { "index": 6537, "before": "public ListMeetingTagsResult listMeetingTags(ListMeetingTagsRequest request) {request = beforeClientExecution(request);return executeListMeetingTags(request);}", "after": "public virtual ListMeetingTagsResponse ListMeetingTags(ListMeetingTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListMeetingTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListMeetingTagsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6538, "before": "public TokenStream create(TokenStream input) {return new NorwegianMinimalStemFilter(input, flags);}", "after": "public override TokenStream Create(TokenStream input){return new NorwegianMinimalStemFilter(input, flags);}" }, { "index": 6539, "before": "public ImportInstanceResult importInstance(ImportInstanceRequest request) {request = beforeClientExecution(request);return executeImportInstance(request);}", "after": "public virtual ImportInstanceResponse ImportInstance(ImportInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6540, "before": "public void setCodePage(CodepageRecord codepage) {this.codepage = codepage;}", "after": "public void SetCodePage(CodepageRecord codepage){this.codepage = codepage;}" }, { "index": 6541, "before": "@Override public Collection values() {Collection vs = values;return (vs != null) ? vs : (values = new Values());}", "after": "public override java.util.Collection values(){java.util.Collection vs = _values;return (vs != null) ? vs : (_values = new java.util.HashMap.Values(this));}" }, { "index": 6542, "before": "public UpdateRulesOfIpGroupResult updateRulesOfIpGroup(UpdateRulesOfIpGroupRequest request) {request = beforeClientExecution(request);return executeUpdateRulesOfIpGroup(request);}", "after": "public virtual UpdateRulesOfIpGroupResponse UpdateRulesOfIpGroup(UpdateRulesOfIpGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRulesOfIpGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRulesOfIpGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6543, "before": "public String toString() {return \"OneOrMoreOutputs(\" + outputs + \")\";}", "after": "public override string ToString(){return \"OneOrMoreOutputs(\" + outputs + \")\";}" }, { "index": 6544, "before": "public static TreeFilter create(TreeFilter a, TreeFilter b) {if (a == ALL || b == ALL)return ALL;return new Binary(a, b);}", "after": "public static TreeFilter Create(TreeFilter a, TreeFilter b){if (a == ALL || b == ALL){return ALL;}return new OrTreeFilter.Binary(a, b);}" }, { "index": 6545, "before": "public UntagQueueResult untagQueue(UntagQueueRequest request) {request = beforeClientExecution(request);return executeUntagQueue(request);}", "after": "public virtual UntagQueueResponse UntagQueue(UntagQueueRequest request){var options = new InvokeOptions();options.RequestMarshaller = UntagQueueRequestMarshaller.Instance;options.ResponseUnmarshaller = UntagQueueResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6546, "before": "public final double getDouble(int index) {return Double.longBitsToDouble(getLong(index));}", "after": "public sealed override double getDouble(int index){return Sharpen.Util.LongBitsToDouble(getLong(index));}" }, { "index": 6547, "before": "public V next() {return entryIterator.next().getValue();}", "after": "public override V next(){return this.nextEntry().value;}" }, { "index": 6548, "before": "public IntervalSet(int... els) {if ( els==null ) {intervals = new ArrayList(2); }else {intervals = new ArrayList(els.length);for (int e : els) add(e);}}", "after": "public IntervalSet(params int[] els){if (els == null){intervals = new ArrayList(2);}else{intervals = new ArrayList(els.Length);foreach (int e in els){Add(e);}}}" }, { "index": 6549, "before": "public void dumpDeadEndConfigs(NoViableAltException nvae) {System.err.println(\"dead end configs: \");for (ATNConfig c : nvae.getDeadEndConfigs()) {String trans = \"no edges\";if ( c.state.getNumberOfTransitions()>0 ) {Transition t = c.state.transition(0);if ( t instanceof AtomTransition) {AtomTransition at = (AtomTransition)t;trans = \"Atom \"+getTokenName(at.label);}else if ( t instanceof SetTransition ) {SetTransition st = (SetTransition)t;boolean not = st instanceof NotSetTransition;trans = (not?\"~\":\"\")+\"Set \"+st.set.toString();}}System.err.println(c.toString(parser, true)+\":\"+trans);}}", "after": "public void DumpDeadEndConfigs(NoViableAltException nvae){#if !PORTABLESystem.Console.Error.WriteLine(\"dead end configs: \");#endifforeach (ATNConfig c in nvae.DeadEndConfigs.configs){String trans = \"no edges\";if (c.state.NumberOfTransitions > 0){Transition t = c.state.Transition(0);if (t is AtomTransition){AtomTransition at = (AtomTransition)t;trans = \"Atom \" + GetTokenName(at.token);}else if (t is SetTransition){SetTransition st = (SetTransition)t;bool not = st is NotSetTransition;trans = (not ? \"~\" : \"\") + \"Set \" + st.set.ToString();}}#if !PORTABLESystem.Console.Error.WriteLine(c.ToString(parser, true) + \":\" + trans);#endif}}" }, { "index": 6550, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(\"[SUPBOOK \");if(isExternalReferences()) {sb.append(\"External References]\\n\");sb.append(\" .url = \").append(getURL()).append(\"\\n\");sb.append(\" .nSheets = \").append(field_1_number_of_sheets).append(\"\\n\");for (String sheetname : field_3_sheet_names) {sb.append(\" .name = \").append(sheetname).append(\"\\n\");}sb.append(\"[/SUPBOOK\");} else if(_isAddInFunctions) {sb.append(\"Add-In Functions\");} else {sb.append(\"Internal References\");sb.append(\" nSheets=\").append(field_1_number_of_sheets);}sb.append(\"]\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(\"[SUPBOOK \");if (IsExternalReferences){sb.Append(\"External References]\\n\");sb.Append(\" .url = \").Append(field_2_encoded_url).Append(\"\\n\");sb.Append(\" .nSheets = \").Append(field_1_number_of_sheets).Append(\"\\n\");foreach (String sheetname in field_3_sheet_names){sb.Append(\" .name = \").Append(sheetname).Append(\"\\n\");}sb.Append(\"[/SUPBOOK\");}else if (_isAddInFunctions){sb.Append(\"Add-In Functions\");}else{sb.Append(\"Internal References \");sb.Append(\" nSheets= \").Append(field_1_number_of_sheets);}return sb.ToString();}" }, { "index": 6551, "before": "public String toString() {StringBuilder sb = new StringBuilder(256);sb.append(\"[ftLbsData]\\n\");sb.append(\" .unknownShort1 =\").append(HexDump.shortToHex(_cbFContinued)).append(\"\\n\");sb.append(\" .formula = \").append('\\n');if(_linkPtg != null) {sb.append(_linkPtg).append(_linkPtg.getRVAType()).append('\\n');}sb.append(\" .nEntryCount =\").append(HexDump.shortToHex(_cLines)).append(\"\\n\");sb.append(\" .selEntryIx =\").append(HexDump.shortToHex(_iSel)).append(\"\\n\");sb.append(\" .style =\").append(HexDump.shortToHex(_flags)).append(\"\\n\");sb.append(\" .unknownShort10=\").append(HexDump.shortToHex(_idEdit)).append(\"\\n\");if(_dropData != null) {sb.append('\\n').append(_dropData);}sb.append(\"[/ftLbsData]\\n\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(256);sb.Append(\"[ftLbsData]\\n\");sb.Append(\" .unknownshort1 =\").Append(HexDump.ShortToHex(_cbFContinued)).Append(\"\\n\");sb.Append(\" .formula = \").Append('\\n');sb.Append(_linkPtg.ToString()).Append(_linkPtg.RVAType).Append('\\n');sb.Append(\" .nEntryCount =\").Append(HexDump.ShortToHex(_cLines)).Append(\"\\n\");sb.Append(\" .selEntryIx =\").Append(HexDump.ShortToHex(_iSel)).Append(\"\\n\");sb.Append(\" .style =\").Append(HexDump.ShortToHex(_flags)).Append(\"\\n\");sb.Append(\" .unknownshort10=\").Append(HexDump.ShortToHex(_idEdit)).Append(\"\\n\");if (_dropData != null) sb.Append('\\n').Append(_dropData.ToString());sb.Append(\"[/ftLbsData]\\n\");return sb.ToString();}" }, { "index": 6552, "before": "public static QualityStats average(QualityStats[] stats) {QualityStats avg = new QualityStats(0,0);if (stats.length==0) {return avg;}int m = 0; for (int i=0; i0) {m++;avg.numGoodPoints += stats[i].numGoodPoints;avg.numPoints += stats[i].numPoints;avg.pReleventSum += stats[i].getAvp();avg.recall += stats[i].recall;avg.mrr += stats[i].getMRR();avg.maxGoodPoints += stats[i].maxGoodPoints;for (int j=1; j0 : \"Fishy: no \\\"good\\\" queries!\";avg.searchTime /= stats.length;avg.docNamesExtractTime /= stats.length;avg.numGoodPoints /= m;avg.numPoints /= m;avg.recall /= m;avg.mrr /= m;avg.maxGoodPoints /= m;for (int j=1; j 0){m++;avg.numGoodPoints += stats[i].numGoodPoints;avg.numPoints += stats[i].numPoints;avg.pReleventSum += stats[i].GetAvp();avg.recall += stats[i].recall;avg.mrr += stats[i].MRR;avg.maxGoodPoints += stats[i].maxGoodPoints;for (int j = 1; j < avg.pAt.Length; j++){avg.pAt[j] += stats[i].GetPrecisionAt(j);}}}Debug.Assert(m> 0, \"Fishy: no \\\"good\\\" queries!\");avg.searchTime /= stats.Length;avg.docNamesExtractTime /= stats.Length;avg.numGoodPoints /= m;avg.numPoints /= m;avg.recall /= m;avg.mrr /= m;avg.maxGoodPoints /= m;for (int j = 1; j < avg.pAt.Length; j++){avg.pAt[j] /= m;}avg.pReleventSum /= m; avg.pReleventSum *= avg.maxGoodPoints; return avg;}" }, { "index": 6553, "before": "public String getUser() {return Host.this.getUser();}", "after": "public virtual string GetUser(){return user;}" }, { "index": 6554, "before": "public int[] clear() {boost = null;termState = null;return super.clear();}", "after": "public override int[] Clear(){boost = null;termState = null;return base.Clear();}" }, { "index": 6555, "before": "public DescribeApplicationSnapshotResult describeApplicationSnapshot(DescribeApplicationSnapshotRequest request) {request = beforeClientExecution(request);return executeDescribeApplicationSnapshot(request);}", "after": "public virtual DescribeApplicationSnapshotResponse DescribeApplicationSnapshot(DescribeApplicationSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeApplicationSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeApplicationSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6556, "before": "public FormatAndBits(Format format, int bitsPerValue) {this.format = format;this.bitsPerValue = bitsPerValue;}", "after": "public FormatAndBits(Format format, int bitsPerValue){this.Format = format;this.BitsPerValue = bitsPerValue;}" }, { "index": 6557, "before": "public HSSFName getNameAt(int nameIndex) {int nNames = names.size();if (nNames < 1) {throw new IllegalStateException(\"There are no defined names in this workbook\");}if (nameIndex < 0 || nameIndex > nNames) {throw new IllegalArgumentException(\"Specified name index \" + nameIndex+ \" is outside the allowable range (0..\" + (nNames-1) + \").\");}return names.get(nameIndex);}", "after": "public NPOI.SS.UserModel.IName GetNameAt(int nameIndex){int nNames = names.Count;if (nNames < 1){throw new InvalidOperationException(\"There are no defined names in this workbook\");}if (nameIndex < 0 || nameIndex > nNames){throw new ArgumentOutOfRangeException(\"Specified name index \" + nameIndex+ \" is outside the allowable range (0..\" + (nNames - 1) + \").\");}HSSFName result = names[nameIndex];return result;}" }, { "index": 6558, "before": "public void fromString(String str) {if (str.length() != Constants.OBJECT_ID_STRING_LENGTH)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().invalidId, str));fromHexString(Constants.encodeASCII(str), 0);}", "after": "public virtual void FromString(string str){if (str.Length != Constants.OBJECT_ID_STRING_LENGTH){throw new ArgumentException(MessageFormat.Format(JGitText.Get().invalidId, str));}FromHexString(Constants.EncodeASCII(str), 0);}" }, { "index": 6559, "before": "public DescribeTableRestoreStatusResult describeTableRestoreStatus(DescribeTableRestoreStatusRequest request) {request = beforeClientExecution(request);return executeDescribeTableRestoreStatus(request);}", "after": "public virtual DescribeTableRestoreStatusResponse DescribeTableRestoreStatus(DescribeTableRestoreStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTableRestoreStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTableRestoreStatusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6560, "before": "public Edit(int as, int ae, int bs, int be) {beginA = as;endA = ae;beginB = bs;endB = be;}", "after": "public Edit(int @as, int ae, int bs, int be){beginA = @as;endA = ae;beginB = bs;endB = be;}" }, { "index": 6561, "before": "public UpdateDomainEndpointOptionsResult updateDomainEndpointOptions(UpdateDomainEndpointOptionsRequest request) {request = beforeClientExecution(request);return executeUpdateDomainEndpointOptions(request);}", "after": "public virtual UpdateDomainEndpointOptionsResponse UpdateDomainEndpointOptions(UpdateDomainEndpointOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDomainEndpointOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDomainEndpointOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6562, "before": "@Override public boolean contains(Object o) {return Impl.this.containsKey(o);}", "after": "public override bool contains(object o){return this._enclosing.containsKey(o);}" }, { "index": 6563, "before": "public ParseTreePattern compileParseTreePattern(String pattern, int patternRuleIndex,Lexer lexer){ParseTreePatternMatcher m = new ParseTreePatternMatcher(lexer, this);return m.compile(pattern, patternRuleIndex);}", "after": "public virtual ParseTreePattern CompileParseTreePattern(string pattern, int patternRuleIndex, Lexer lexer){ParseTreePatternMatcher m = new ParseTreePatternMatcher(lexer, this);return m.Compile(pattern, patternRuleIndex);}" }, { "index": 6564, "before": "public MalformedInputException(int length) {this.inputLength = length;}", "after": "public MalformedInputException(int length){this.inputLength = length;}" }, { "index": 6565, "before": "public void reset() {upto = 0;in.reset();}", "after": "public virtual void Reset(){upto = 0;@in.Reset();}" }, { "index": 6566, "before": "public String toString() {return name;}", "after": "public override string ToString(){return name;}" }, { "index": 6567, "before": "public DeletePhotoStoreRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"DeletePhotoStore\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public DeletePhotoStoreRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"DeletePhotoStore\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 6568, "before": "public GlobalCluster createGlobalCluster(CreateGlobalClusterRequest request) {request = beforeClientExecution(request);return executeCreateGlobalCluster(request);}", "after": "public virtual CreateGlobalClusterResponse CreateGlobalCluster(CreateGlobalClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateGlobalClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateGlobalClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6569, "before": "public SimpleImmutableEntry(K theKey, V theValue) {key = theKey;value = theValue;}", "after": "public SimpleImmutableEntry(K theKey, V theValue){key = theKey;value = theValue;}" }, { "index": 6570, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[SeriesToChartGroup]\\n\");buffer.append(\" .chartGroupIndex = \").append(\"0x\").append(HexDump.toHex( getChartGroupIndex ())).append(\" (\").append( getChartGroupIndex() ).append(\" )\");buffer.append(System.getProperty(\"line.separator\"));buffer.append(\"[/SeriesToChartGroup]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[SeriesToChartGroup]\\n\");buffer.Append(\" .chartGroupIndex = \").Append(\"0x\").Append(HexDump.ToHex(ChartGroupIndex)).Append(\" (\").Append(ChartGroupIndex).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\"[/SeriesToChartGroup]\\n\");return buffer.ToString();}" }, { "index": 6571, "before": "public String toString() {return \"FAST_\" + path.toString(); }", "after": "public override string ToString(){return \"FAST_\" + path.ToString();}" }, { "index": 6572, "before": "public OpenNLPLemmatizerFilterFactory(Map args) {super(args);dictionaryFile = get(args, DICTIONARY);lemmatizerModelFile = get(args, LEMMATIZER_MODEL);if (dictionaryFile == null && lemmatizerModelFile == null) {throw new IllegalArgumentException(\"Configuration Error: missing parameter: at least one of '\"+ DICTIONARY + \"' and '\" + LEMMATIZER_MODEL + \"' must be provided.\");}if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public OpenNLPLemmatizerFilterFactory(IDictionary args): base(args){dictionaryFile = Get(args, DICTIONARY);lemmatizerModelFile = Get(args, LEMMATIZER_MODEL);if (dictionaryFile == null && lemmatizerModelFile == null){throw new ArgumentException(\"Configuration Error: missing parameter: at least one of '\"+ DICTIONARY + \"' and '\" + LEMMATIZER_MODEL + \"' must be provided.\");}if (args.Any()){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 6573, "before": "public Long contentLength() {return this.contentLength;}", "after": "public System.Uri BaseUri { get; set; }" }, { "index": 6574, "before": "public void addError(FormatError err) {errors.add(err);}", "after": "public virtual void AddError(FormatError err){errors.AddItem(err);}" }, { "index": 6575, "before": "public UpdateUserResult updateUser(UpdateUserRequest request) {request = beforeClientExecution(request);return executeUpdateUser(request);}", "after": "public virtual UpdateUserResponse UpdateUser(UpdateUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateUserRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateUserResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6576, "before": "public DeletePartnerEventSourceResult deletePartnerEventSource(DeletePartnerEventSourceRequest request) {request = beforeClientExecution(request);return executeDeletePartnerEventSource(request);}", "after": "public virtual DeletePartnerEventSourceResponse DeletePartnerEventSource(DeletePartnerEventSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeletePartnerEventSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeletePartnerEventSourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6577, "before": "public WorkflowExecutionInfos listClosedWorkflowExecutions(ListClosedWorkflowExecutionsRequest request) {request = beforeClientExecution(request);return executeListClosedWorkflowExecutions(request);}", "after": "public virtual ListClosedWorkflowExecutionsResponse ListClosedWorkflowExecutions(ListClosedWorkflowExecutionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListClosedWorkflowExecutionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListClosedWorkflowExecutionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6578, "before": "public HSSFFontFormatting createFontFormatting() {return getFontFormatting(true);}", "after": "public IFontFormatting CreateFontFormatting(){return GetFontFormatting(true);}" }, { "index": 6579, "before": "public SimpleFragmenter(int fragmentSize) {this.fragmentSize = fragmentSize;}", "after": "public SimpleFragmenter(int fragmentSize){this.fragmentSize = fragmentSize;}" }, { "index": 6580, "before": "public DeleteEmailIdentityResult deleteEmailIdentity(DeleteEmailIdentityRequest request) {request = beforeClientExecution(request);return executeDeleteEmailIdentity(request);}", "after": "public virtual DeleteEmailIdentityResponse DeleteEmailIdentity(DeleteEmailIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEmailIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEmailIdentityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6581, "before": "public ListScriptsResult listScripts(ListScriptsRequest request) {request = beforeClientExecution(request);return executeListScripts(request);}", "after": "public virtual ListScriptsResponse ListScripts(ListScriptsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListScriptsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListScriptsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6582, "before": "public SnowballFilter(TokenStream input, SnowballStemmer stemmer) {super(input);this.stemmer = stemmer;}", "after": "public SnowballFilter(TokenStream input, SnowballProgram stemmer): base(input){this.stemmer = stemmer;this.termAtt = AddAttribute();this.keywordAttr = AddAttribute();}" }, { "index": 6583, "before": "public DeleteFlowLogsResult deleteFlowLogs(DeleteFlowLogsRequest request) {request = beforeClientExecution(request);return executeDeleteFlowLogs(request);}", "after": "public virtual DeleteFlowLogsResponse DeleteFlowLogs(DeleteFlowLogsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFlowLogsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFlowLogsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6584, "before": "public CreateIdentityPoolResult createIdentityPool(CreateIdentityPoolRequest request) {request = beforeClientExecution(request);return executeCreateIdentityPool(request);}", "after": "public virtual CreateIdentityPoolResponse CreateIdentityPool(CreateIdentityPoolRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIdentityPoolRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIdentityPoolResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6585, "before": "public String distanceSubQueryNotAllowed() {Iterator sqi = getSubQueriesIterator();while (sqi.hasNext()) {Object leq = sqi.next();if (leq instanceof DistanceSubQuery) {DistanceSubQuery dsq = (DistanceSubQuery) leq;String m = dsq.distanceSubQueryNotAllowed();if (m != null) {return m;}} else {return \"Operator \" + getOperatorName() + \" does not allow subquery \" + leq.toString();}}return null; }", "after": "public virtual string DistanceSubQueryNotAllowed(){var sqi = GetSubQueriesEnumerator();while (sqi.MoveNext()){var leq = sqi.Current;if (leq is IDistanceSubQuery){var dsq = sqi.Current as IDistanceSubQuery;string m = dsq.DistanceSubQueryNotAllowed();if (m != null){return m;}}else{return \"Operator \" + OperatorName + \" does not allow subquery \" + leq.ToString();}}return null; }" }, { "index": 6586, "before": "public static String getNodeText(Tree t, List ruleNames) {if ( ruleNames!=null ) {if ( t instanceof RuleContext ) {int ruleIndex = ((RuleContext)t).getRuleContext().getRuleIndex();String ruleName = ruleNames.get(ruleIndex);int altNumber = ((RuleContext) t).getAltNumber();if ( altNumber!=ATN.INVALID_ALT_NUMBER ) {return ruleName+\":\"+altNumber;}return ruleName;}else if ( t instanceof ErrorNode) {return t.toString();}else if ( t instanceof TerminalNode) {Token symbol = ((TerminalNode)t).getSymbol();if (symbol != null) {String s = symbol.getText();return s;}}}Object payload = t.getPayload();if ( payload instanceof Token ) {return ((Token)payload).getText();}return t.getPayload().toString();}", "after": "public static string GetNodeText(ITree t, IList ruleNames){if (ruleNames != null){if (t is RuleContext){int ruleIndex = ((RuleContext)t).RuleIndex;string ruleName = ruleNames[ruleIndex];int altNumber = ((RuleContext)t).getAltNumber();if ( altNumber!=Atn.ATN.INVALID_ALT_NUMBER ) {return ruleName+\":\"+altNumber;}return ruleName;}else{if (t is IErrorNode){return t.ToString();}else{if (t is ITerminalNode){IToken symbol = ((ITerminalNode)t).Symbol;if (symbol != null){string s = symbol.Text;return s;}}}}}object payload = t.Payload;if (payload is IToken){return ((IToken)payload).Text;}return t.Payload.ToString();}" }, { "index": 6587, "before": "public int last() {if (sentenceStarts.length > 0) {currentSentence = sentenceStarts.length - 1;text.setIndex(text.getEndIndex());} else { currentSentence = 0;text.setIndex(text.getBeginIndex());}return current();}", "after": "public override int Last(){if (sentenceStarts.Length > 0){currentSentence = sentenceStarts.Length - 1;text.SetIndex(text.EndIndex);}else{ currentSentence = 0;text.SetIndex(text.BeginIndex);}return Current;}" }, { "index": 6588, "before": "public HSSFRichTextString createRichTextString(String text) {return new HSSFRichTextString(text);}", "after": "public NPOI.SS.UserModel.IRichTextString CreateRichTextString(String text){return new HSSFRichTextString(text);}" }, { "index": 6589, "before": "public PushbackReader(Reader in) {super(in);buf = new char[1];pos = 1;}", "after": "public PushbackReader(java.io.Reader @in) : base(@in){buf = new char[1];pos = 1;}" }, { "index": 6590, "before": "public List getAll(String label) {List nodes = labels.get(label);if ( nodes==null ) {return Collections.emptyList();}return nodes;}", "after": "public virtual IList GetAll(string label){IList nodes = labels.Get(label);if (nodes == null){return Sharpen.Collections.EmptyList();}return nodes;}" }, { "index": 6591, "before": "public InternalWorkbook getStubWorkbook() {return createStubWorkbook(getExternSheetRecords(), getBoundSheetRecords(),getSSTRecord());}", "after": "public InternalWorkbook GetStubWorkbook(){return CreateStubWorkbook(GetExternSheetRecords(), GetBoundSheetRecords(),GetSSTRecord());}" }, { "index": 6592, "before": "public ReactivatePhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"ReactivatePhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public ReactivatePhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"ReactivatePhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 6593, "before": "public DecisionTask pollForDecisionTask(PollForDecisionTaskRequest request) {request = beforeClientExecution(request);return executePollForDecisionTask(request);}", "after": "public virtual PollForDecisionTaskResponse PollForDecisionTask(PollForDecisionTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = PollForDecisionTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = PollForDecisionTaskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6594, "before": "public void write(LittleEndianOutput out) {out.writeByte(getSid() + getPtgClass());writeCoordinates(out);}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(Sid + PtgClass);WriteCoordinates(out1);}" }, { "index": 6595, "before": "public Ref getTarget() {return target;}", "after": "public virtual Ref GetTarget(){return target;}" }, { "index": 6596, "before": "public CreateTagsResult createTags(CreateTagsRequest request) {request = beforeClientExecution(request);return executeCreateTags(request);}", "after": "public virtual CreateTagsResponse CreateTags(CreateTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTagsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6597, "before": "public UpdateUserPhoneConfigResult updateUserPhoneConfig(UpdateUserPhoneConfigRequest request) {request = beforeClientExecution(request);return executeUpdateUserPhoneConfig(request);}", "after": "public virtual UpdateUserPhoneConfigResponse UpdateUserPhoneConfig(UpdateUserPhoneConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateUserPhoneConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateUserPhoneConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6598, "before": "public PersonIdent getSourceAuthor(int idx) {return sourceAuthors[idx];}", "after": "public virtual PersonIdent GetSourceAuthor(int idx){return sourceAuthors[idx];}" }, { "index": 6599, "before": "public void setLength(long sz) {setLength((int) sz);}", "after": "public virtual void SetLength(int sz){NB.EncodeInt32(info, infoOffset + P_SIZE, sz);}" }, { "index": 6600, "before": "public GetServerCertificateRequest(String serverCertificateName) {setServerCertificateName(serverCertificateName);}", "after": "public GetServerCertificateRequest(string serverCertificateName){_serverCertificateName = serverCertificateName;}" }, { "index": 6601, "before": "public CreateStreamingDistributionWithTagsResult createStreamingDistributionWithTags(CreateStreamingDistributionWithTagsRequest request) {request = beforeClientExecution(request);return executeCreateStreamingDistributionWithTags(request);}", "after": "public virtual CreateStreamingDistributionWithTagsResponse CreateStreamingDistributionWithTags(CreateStreamingDistributionWithTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStreamingDistributionWithTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStreamingDistributionWithTagsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6602, "before": "public DescribeNotificationSubscriptionsResult describeNotificationSubscriptions(DescribeNotificationSubscriptionsRequest request) {request = beforeClientExecution(request);return executeDescribeNotificationSubscriptions(request);}", "after": "public virtual DescribeNotificationSubscriptionsResponse DescribeNotificationSubscriptions(DescribeNotificationSubscriptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNotificationSubscriptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNotificationSubscriptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6603, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[CHARTFRTINFO]\\n\");buffer.append(\" .rt =\").append(HexDump.shortToHex(rt)).append('\\n');buffer.append(\" .grbitFrt =\").append(HexDump.shortToHex(grbitFrt)).append('\\n');buffer.append(\" .verOriginator=\").append(HexDump.byteToHex(verOriginator)).append('\\n');buffer.append(\" .verWriter =\").append(HexDump.byteToHex(verOriginator)).append('\\n');buffer.append(\" .nCFRTIDs =\").append(HexDump.shortToHex(rgCFRTID.length)).append('\\n');buffer.append(\"[/CHARTFRTINFO]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[CHARTFRTINFO]\\n\");buffer.Append(\" .rt =\").Append(HexDump.ShortToHex(rt)).Append('\\n');buffer.Append(\" .grbitFrt =\").Append(HexDump.ShortToHex(grbitFrt)).Append('\\n');buffer.Append(\" .verOriginator=\").Append(HexDump.ByteToHex(verOriginator)).Append('\\n');buffer.Append(\" .verWriter =\").Append(HexDump.ByteToHex(verOriginator)).Append('\\n');buffer.Append(\" .nCFRTIDs =\").Append(HexDump.ShortToHex(rgCFRTID.Length)).Append('\\n');buffer.Append(\"[/CHARTFRTINFO]\\n\");return buffer.ToString();}" }, { "index": 6604, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {double result;if (arg0 instanceof RefEval) {result = CountUtils.countMatchingCellsInRef((RefEval) arg0, predicate);} else if (arg0 instanceof ThreeDEval) {result = CountUtils.countMatchingCellsInArea((ThreeDEval) arg0, predicate);} else {throw new IllegalArgumentException(\"Bad range arg type (\" + arg0.getClass().getName() + \")\");}return new NumberEval(result);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){double result;if (arg0 is RefEval){result = CountUtils.CountMatchingCellsInRef((RefEval)arg0, predicate);}else if (arg0 is ThreeDEval){result = CountUtils.CountMatchingCellsInArea((ThreeDEval)arg0, predicate);}else{throw new ArgumentException(\"Bad range arg type (\" + arg0.GetType().Name + \")\");}return new NumberEval(result);}" }, { "index": 6605, "before": "public UpdateRestApiResult updateRestApi(UpdateRestApiRequest request) {request = beforeClientExecution(request);return executeUpdateRestApi(request);}", "after": "public virtual UpdateRestApiResponse UpdateRestApi(UpdateRestApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRestApiRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRestApiResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6606, "before": "public int size() {return ConcurrentHashMap.this.size();}", "after": "public override int size(){return this._enclosing._size;}" }, { "index": 6607, "before": "public EscherSimpleProperty( short propertyNumber, boolean isComplex, boolean isBlipId, int propertyValue ) {super( propertyNumber, isComplex, isBlipId );this.propertyValue = propertyValue;}", "after": "public EscherSimpleProperty(short propertyNumber, bool isComplex, bool isBlipId, int propertyValue):base(propertyNumber, isComplex, isBlipId){this.propertyValue = propertyValue;}" }, { "index": 6608, "before": "public static boolean isEndOfRowBlock(int sid) {switch(sid) {case ViewDefinitionRecord.sid:case DrawingRecord.sid:case DrawingSelectionRecord.sid:case ObjRecord.sid:case TextObjectRecord.sid:case ColumnInfoRecord.sid: case GutsRecord.sid: case WindowOneRecord.sid:case WindowTwoRecord.sid:return true;case DVALRecord.sid:return true;case EOFRecord.sid:throw new RuntimeException(\"Found EOFRecord before WindowTwoRecord was encountered\");}return PageSettingsBlock.isComponentRecord(sid);}", "after": "public static bool IsEndOfRowBlock(int sid){switch (sid){case ViewDefinitionRecord.sid: case DrawingRecord.sid:case DrawingSelectionRecord.sid:case ObjRecord.sid:case TextObjectRecord.sid:case ColumnInfoRecord.sid: case GutsRecord.sid: case WindowOneRecord.sid:case WindowTwoRecord.sid:return true;case DVALRecord.sid:return true;case EOFRecord.sid:throw new InvalidOperationException(\"Found EOFRecord before WindowTwoRecord was encountered\");}return PageSettingsBlock.IsComponentRecord(sid);}" }, { "index": 6609, "before": "public RegistrantProfileRealNameVerificationRequest() {super(\"Domain-intl\", \"2017-12-18\", \"RegistrantProfileRealNameVerification\", \"domain\");setMethod(MethodType.POST);}", "after": "public RegistrantProfileRealNameVerificationRequest(): base(\"Domain-intl\", \"2017-12-18\", \"RegistrantProfileRealNameVerification\", \"domain\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 6610, "before": "public CreateProfileResult createProfile(CreateProfileRequest request) {request = beforeClientExecution(request);return executeCreateProfile(request);}", "after": "public virtual CreateProfileResponse CreateProfile(CreateProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6611, "before": "public ObjectId idFor(int type, byte[] data, int off, int len) {SHA1 md = SHA1.newInstance();md.update(Constants.encodedTypeString(type));md.update((byte) ' ');md.update(Constants.encodeASCII(len));md.update((byte) 0);md.update(data, off, len);return md.toObjectId();}", "after": "public virtual ObjectId IdFor(int type, byte[] data, int off, int len){MessageDigest md = Digest();md.Update(Constants.EncodedTypeString(type));md.Update(unchecked((byte)' '));md.Update(Constants.EncodeASCII(len));md.Update(unchecked((byte)0));md.Update(data, off, len);return ObjectId.FromRaw(md.Digest());}" }, { "index": 6612, "before": "public EndSubRecord clone() {return copy();}", "after": "public override Object Clone(){EndSubRecord rec = new EndSubRecord();return rec;}" }, { "index": 6613, "before": "public SearchRepoRequest() {super(\"cr\", \"2016-06-07\", \"SearchRepo\", \"cr\");setUriPattern(\"/search\");setMethod(MethodType.GET);}", "after": "public SearchRepoRequest(): base(\"cr\", \"2016-06-07\", \"SearchRepo\", \"cr\", \"openAPI\"){UriPattern = \"/search\";Method = MethodType.GET;}" }, { "index": 6614, "before": "public InputIterator getEntryIterator() {try {return new FileIterator();} catch (IOException e) {throw new RuntimeException(e);}}", "after": "public virtual IInputIterator GetEntryIterator(){try{return new FileIterator(this);}catch (IOException e){throw new Exception(e.ToString(), e);}}" }, { "index": 6615, "before": "public final long get() {if (position == limit) {throw new BufferUnderflowException();}return backingArray[offset + position++];}", "after": "public sealed override long get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return backingArray[offset + _position++];}" }, { "index": 6616, "before": "public void setThumbOffset(int thumbOffset) {mThumbOffset = thumbOffset;invalidate();}", "after": "public virtual void setThumbOffset(int thumbOffset){mThumbOffset = thumbOffset;invalidate();}" }, { "index": 6617, "before": "public void seekExact(BytesRef target, TermState otherState) {if (!target.equals(term)) {state.copyFrom(otherState);term = BytesRef.deepCopyOf(target);seekPending = true;}}", "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": 6618, "before": "public GetFilterResult getFilter(GetFilterRequest request) {request = beforeClientExecution(request);return executeGetFilter(request);}", "after": "public virtual GetFilterResponse GetFilter(GetFilterRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFilterRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFilterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6619, "before": "public static FontDetails create( String fontName, Properties fontMetricsProps ){String heightStr = fontMetricsProps.getProperty( buildFontHeightProperty(fontName) );String widthsStr = fontMetricsProps.getProperty( buildFontWidthsProperty(fontName) );String charactersStr = fontMetricsProps.getProperty( buildFontCharactersProperty(fontName) );if(heightStr == null || widthsStr == null || charactersStr == null) {throw new IllegalArgumentException(\"The supplied FontMetrics doesn't know about the font '\" + fontName + \"', so we can't use it. Please add it to your font metrics file (see StaticFontMetrics.getFontDetails\");}int height = Integer.parseInt(heightStr);FontDetails d = new FontDetails(fontName, height);String[] charactersStrArray = split(charactersStr, \",\", -1);String[] widthsStrArray = split(widthsStr, \",\", -1);if (charactersStrArray.length != widthsStrArray.length)throw new RuntimeException(\"Number of characters does not number of widths for font \" + fontName);for ( int i = 0; i < widthsStrArray.length; i++ ){if (charactersStrArray[i].length() != 0)d.addChar(charactersStrArray[i].charAt(0), Integer.parseInt(widthsStrArray[i]));}return d;}", "after": "public static FontDetails Create(String fontName, Properties fontMetricsProps){String heightStr = fontMetricsProps[BuildFontHeightProperty(fontName)];String widthsStr = fontMetricsProps[BuildFontWidthsProperty(fontName)];String CharsStr = fontMetricsProps[BuildFontCharsProperty(fontName)];if (heightStr == null || widthsStr == null || CharsStr == null){throw new ArgumentException(\"The supplied FontMetrics doesn't know about the font '\" + fontName + \"', so we can't use it. Please Add it to your font metrics file (see StaticFontMetrics.GetFontDetails\");}int height = int.Parse(heightStr, CultureInfo.InvariantCulture);FontDetails d = new FontDetails(fontName, height);String[] CharsStrArray = Split(CharsStr, \",\", -1);String[] widthsStrArray = Split(widthsStr, \",\", -1);if (CharsStrArray.Length != widthsStrArray.Length)throw new Exception(\"Number of Chars does not number of widths for font \" + fontName);for (int i = 0; i < widthsStrArray.Length; i++){if (CharsStrArray[i].Trim().Length != 0)d.AddChar(CharsStrArray[i].Trim()[0], int.Parse(widthsStrArray[i], CultureInfo.InvariantCulture));}return d;}" }, { "index": 6620, "before": "public static void registerFunction(String name, Function func){FunctionMetadata metaData = FunctionMetadataRegistry.getFunctionByName(name);if(metaData == null) {if(AnalysisToolPak.isATPFunction(name)) {throw new IllegalArgumentException(name + \" is a function from the Excel Analysis Toolpack. \" +\"Use AnalysisToolpack.registerFunction(String name, FreeRefFunction func) instead.\");}throw new IllegalArgumentException(\"Unknown function: \" + name);}int idx = metaData.getIndex();if(functions[idx] instanceof NotImplementedFunction) {functions[idx] = func;} else {throw new IllegalArgumentException(\"POI already implememts \" + name +\". You cannot override POI's implementations of Excel functions\");}}", "after": "public static void RegisterFunction(String name, Function func){FunctionMetadata metaData = FunctionMetadataRegistry.GetFunctionByName(name);if (metaData == null){if (AnalysisToolPak.IsATPFunction(name)){throw new ArgumentException(name + \" is a function from the Excel Analysis Toolpack. \" +\"Use AnalysisToolpack.RegisterFunction(String name, FreeRefFunction func) instead.\");}else{throw new ArgumentException(\"Unknown function: \" + name);}}int idx = metaData.Index;if (functions[idx] is NotImplementedFunction){functions[idx] = func;}else{throw new ArgumentException(\"POI already implememts \" + name +\". You cannot override POI's implementations of Excel functions\");}}" }, { "index": 6621, "before": "public SortedSetDocValuesField(String name, BytesRef bytes) {super(name, TYPE);fieldsData = bytes;}", "after": "public SortedSetDocValuesField(string name, BytesRef bytes): base(name, TYPE){FieldsData = bytes;}" }, { "index": 6622, "before": "public static TreeFilter create(TreeFilter[] list) {if (list.length == 2)return create(list[0], list[1]);if (list.length < 2)throw new IllegalArgumentException(JGitText.get().atLeastTwoFiltersNeeded);final TreeFilter[] subfilters = new TreeFilter[list.length];System.arraycopy(list, 0, subfilters, 0, list.length);return new List(subfilters);}", "after": "public static TreeFilter Create(TreeFilter[] list){if (list.Length == 2){return Create(list[0], list[1]);}if (list.Length < 2){throw new ArgumentException(JGitText.Get().atLeastTwoFiltersNeeded);}TreeFilter[] subfilters = new TreeFilter[list.Length];System.Array.Copy(list, 0, subfilters, 0, list.Length);return new OrTreeFilter.List(subfilters);}" }, { "index": 6623, "before": "public V get(Object key) {if (key == null) {HashMapEntry e = entryForNullKey;return e == null ? null : e.value;}int hash = key.hashCode();hash ^= (hash >>> 20) ^ (hash >>> 12);hash ^= (hash >>> 7) ^ (hash >>> 4);HashMapEntry[] tab = table;for (HashMapEntry e = tab[hash & (tab.length - 1)];e != null; e = e.next) {K eKey = e.key;if (eKey == key || (e.hash == hash && key.equals(eKey))) {return e.value;}}return null;}", "after": "public override V get(object key){if (key == null){java.util.HashMap.HashMapEntry e = entryForNullKey;return e == null ? default(V) : e.value;}int hash = key.GetHashCode();hash ^= ((int)(((uint)hash) >> 20)) ^ ((int)(((uint)hash) >> 12));hash ^= ((int)(((uint)hash) >> 7)) ^ ((int)(((uint)hash) >> 4));java.util.HashMap.HashMapEntry[] tab = table;{for (java.util.HashMap.HashMapEntry e_1 = tab[hash & (tab.Length - 1)]; e_1!= null; e_1 = e_1.next){K eKey = e_1.key;if (Sharpen.Util.Equals(eKey, key) || (e_1.hash == hash && key.Equals(eKey))){return e_1.value;}}}return default(V);}" }, { "index": 6624, "before": "public boolean hasSourceData(int idx) {return sourceLines[idx] != 0;}", "after": "public virtual bool HasSourceData(int idx){return sourceLines[idx] != 0;}" }, { "index": 6625, "before": "public CreateBotResult createBot(CreateBotRequest request) {request = beforeClientExecution(request);return executeCreateBot(request);}", "after": "public virtual CreateBotResponse CreateBot(CreateBotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateBotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateBotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6626, "before": "public UpdateMethodResponseResult updateMethodResponse(UpdateMethodResponseRequest request) {request = beforeClientExecution(request);return executeUpdateMethodResponse(request);}", "after": "public virtual UpdateMethodResponseResponse UpdateMethodResponse(UpdateMethodResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateMethodResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateMethodResponseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6627, "before": "public boolean add(char[] text) {return map.put(text, PLACEHOLDER) == null;}", "after": "public virtual bool Add(string text){return map.Put(text);}" }, { "index": 6628, "before": "public String toString(Vocabulary vocabulary) {if (s0 == null) {return \"\";}DFASerializer serializer = new DFASerializer(this, vocabulary);return serializer.toString();}", "after": "public String ToString(IVocabulary vocabulary){if (s0 == null){return \"\";}DFASerializer serializer = new DFASerializer(this, vocabulary);return serializer.ToString();}" }, { "index": 6629, "before": "public CreateApiKeyResult createApiKey(CreateApiKeyRequest request) {request = beforeClientExecution(request);return executeCreateApiKey(request);}", "after": "public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateApiKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateApiKeyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6630, "before": "public DetachTypedLinkResult detachTypedLink(DetachTypedLinkRequest request) {request = beforeClientExecution(request);return executeDetachTypedLink(request);}", "after": "public virtual DetachTypedLinkResponse DetachTypedLink(DetachTypedLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachTypedLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachTypedLinkResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6631, "before": "public ExternSheetRecord[] getExternSheetRecords() {return externSheetRecords.toArray(new ExternSheetRecord[0]);}", "after": "public ExternSheetRecord[] GetExternSheetRecords(){return (ExternSheetRecord[])externSheetRecords.ToArray(typeof(ExternSheetRecord));}" }, { "index": 6632, "before": "public DescribeNetworkInterfaceAttributeResult describeNetworkInterfaceAttribute(DescribeNetworkInterfaceAttributeRequest request) {request = beforeClientExecution(request);return executeDescribeNetworkInterfaceAttribute(request);}", "after": "public virtual DescribeNetworkInterfaceAttributeResponse DescribeNetworkInterfaceAttribute(DescribeNetworkInterfaceAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNetworkInterfaceAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNetworkInterfaceAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6633, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[TABID]\\n\");buffer.append(\" .elements = \").append(_tabids.length).append(\"\\n\");for (int i = 0; i < _tabids.length; i++) {buffer.append(\" .element_\").append(i).append(\" = \").append(_tabids[i]).append(\"\\n\");}buffer.append(\"[/TABID]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[TABID]\\n\");buffer.Append(\" .elements = \").Append(_tabids.Length).Append(\"\\n\");for (int k = 0; k < _tabids.Length; k++){buffer.Append(\" .element_\" + k + \" = \").Append(_tabids[k]).Append(\"\\n\");}buffer.Append(\"[/TABID]\\n\");return buffer.ToString();}" }, { "index": 6634, "before": "public long ramBytesUsed() {long ramBytesUsed = BASE_RAM_BYTES_USED;ramBytesUsed += (postingsReader!=null) ? postingsReader.ramBytesUsed() : 0;ramBytesUsed += (indexReader!=null) ? indexReader.ramBytesUsed() : 0;ramBytesUsed += fields.size() * 2L * RamUsageEstimator.NUM_BYTES_OBJECT_REF;for (FieldReader reader : fields.values()) {ramBytesUsed += reader.ramBytesUsed();}return ramBytesUsed;}", "after": "public override long RamBytesUsed(){long sizeInBytes = (postingsReader != null) ? postingsReader.RamBytesUsed() : 0;sizeInBytes += (indexReader != null) ? indexReader.RamBytesUsed() : 0;return sizeInBytes;}" }, { "index": 6635, "before": "public ByteBuffer put(ByteBuffer buf) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer put(byte b){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 6636, "before": "public RecognizePetRequest() {super(\"visionai-poc\", \"2020-04-08\", \"RecognizePet\");setMethod(MethodType.POST);}", "after": "public RecognizePetRequest(): base(\"visionai-poc\", \"2020-04-08\", \"RecognizePet\"){Method = MethodType.POST;}" }, { "index": 6637, "before": "public ImportRestApiResult importRestApi(ImportRestApiRequest request) {request = beforeClientExecution(request);return executeImportRestApi(request);}", "after": "public virtual ImportRestApiResponse ImportRestApi(ImportRestApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportRestApiRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportRestApiResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6638, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_anchorId);out.writeShort(field_2_link1);out.writeShort(field_3_link2);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_anchorId);out1.WriteShort(field_2_link1);out1.WriteShort(field_3_link2);}" }, { "index": 6639, "before": "public DescribeSnapshotAttributeRequest(String snapshotId, SnapshotAttributeName attribute) {setSnapshotId(snapshotId);setAttribute(attribute.toString());}", "after": "public DescribeSnapshotAttributeRequest(string snapshotId, SnapshotAttributeName attribute){_snapshotId = snapshotId;_attribute = attribute;}" }, { "index": 6640, "before": "public Token recoverInline(Parser recognizer)throws RecognitionException{Token matchedSymbol = singleTokenDeletion(recognizer);if ( matchedSymbol!=null ) {recognizer.consume();return matchedSymbol;}if ( singleTokenInsertion(recognizer) ) {return getMissingSymbol(recognizer);}InputMismatchException e;if (nextTokensContext == null) {e = new InputMismatchException(recognizer);} else {e = new InputMismatchException(recognizer, nextTokensState, nextTokensContext);}throw e;}", "after": "public virtual IToken RecoverInline(Parser recognizer){IToken matchedSymbol = SingleTokenDeletion(recognizer);if (matchedSymbol != null){recognizer.Consume();return matchedSymbol;}if (SingleTokenInsertion(recognizer)){return GetMissingSymbol(recognizer);}throw new InputMismatchException(recognizer);}" }, { "index": 6641, "before": "public MultiCategoryListsFacetsExample() {config.setIndexFieldName(\"Author\", \"author\");config.setIndexFieldName(\"Publish Date\", \"pubdate\");config.setHierarchical(\"Publish Date\", true);}", "after": "public MultiCategoryListsFacetsExample(){config.SetIndexFieldName(\"Author\", \"author\");config.SetIndexFieldName(\"Publish Date\", \"pubdate\");config.SetHierarchical(\"Publish Date\", true);}" }, { "index": 6642, "before": "public GetAddressBookResult getAddressBook(GetAddressBookRequest request) {request = beforeClientExecution(request);return executeGetAddressBook(request);}", "after": "public virtual GetAddressBookResponse GetAddressBook(GetAddressBookRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAddressBookRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAddressBookResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6643, "before": "public PatternFormatting() {field_15_pattern_style = 0;field_16_pattern_color_indexes = 0;}", "after": "public PatternFormatting(){field_15_pattern_style = (short)0;field_16_pattern_color_indexes = (short)0;}" }, { "index": 6644, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg1, ValueEval arg2) {try {Double number1 = evaluateValue(arg1, srcRowIndex, srcColumnIndex);if (number1 == null) {return ErrorEval.VALUE_INVALID;}Double number2 = evaluateValue(arg2, srcRowIndex, srcColumnIndex);if (number2 == null) {return ErrorEval.VALUE_INVALID;}return (number1.compareTo(number2) == 0) ? ONE : ZERO;} catch (EvaluationException e) {return e.getErrorEval();}}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg1, ValueEval arg2){ValueEval veText1;try{veText1 = OperandResolver.GetSingleValue(arg1, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){return e.GetErrorEval();}String strText1 = OperandResolver.CoerceValueToString(veText1);Double number1 = OperandResolver.ParseDouble(strText1);if (double.IsNaN(number1)){return ErrorEval.VALUE_INVALID;}ValueEval veText2;try{veText2 = OperandResolver.GetSingleValue(arg2, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){return e.GetErrorEval();}String strText2 = OperandResolver.CoerceValueToString(veText2);Double number2 = OperandResolver.ParseDouble(strText2);if (double.IsNaN(number2)){return ErrorEval.VALUE_INVALID;}int result = NumberComparer.Compare(number1, number2);return result == 0 ? ONE : ZERO;}" }, { "index": 6645, "before": "public final double getDouble() {return Double.longBitsToDouble(getLong());}", "after": "public sealed override double getDouble(){return Sharpen.Util.LongBitsToDouble(getLong());}" }, { "index": 6646, "before": "public Principal(String provider, String id, boolean stripHyphen) {this.provider = provider;this.id = stripHyphen ?id.replace(\"-\", \"\") : id;}", "after": "public Principal(string provider, string id, bool stripHyphen){this.provider = provider;if (stripHyphen){id = id.Replace(\"-\", \"\");}this.id = id;}" }, { "index": 6647, "before": "public ListJobsResult listJobs() {return listJobs(new ListJobsRequest());}", "after": "public virtual ListJobsResponse ListJobs(){return ListJobs(new ListJobsRequest());}" }, { "index": 6648, "before": "public CharBuffer slice() {byteBuffer.limit(limit * SizeOf.CHAR);byteBuffer.position(position * SizeOf.CHAR);ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());CharBuffer result = new CharToByteBufferAdapter(bb);byteBuffer.clear();return result;}", "after": "public override java.nio.CharBuffer slice(){byteBuffer.limit(_limit * libcore.io.SizeOf.CHAR);byteBuffer.position(_position * libcore.io.SizeOf.CHAR);java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());java.nio.CharBuffer result = new java.nio.CharToByteBufferAdapter(bb);byteBuffer.clear();return result;}" }, { "index": 6649, "before": "public static final int tagMessage(byte[] b, int ptr) {final int sz = b.length;if (ptr == 0)ptr += 48; while (ptr < sz && b[ptr] != '\\n')ptr = nextLF(b, ptr);if (ptr < sz && b[ptr] == '\\n')return ptr + 1;return -1;}", "after": "public static int TagMessage(byte[] b, int ptr){int sz = b.Length;if (ptr == 0){ptr += 48;}while (ptr < sz && b[ptr] != '\\n'){ptr = NextLF(b, ptr);}if (ptr < sz && b[ptr] == '\\n'){return ptr + 1;}return -1;}" }, { "index": 6650, "before": "public RebootBrokerResult rebootBroker(RebootBrokerRequest request) {request = beforeClientExecution(request);return executeRebootBroker(request);}", "after": "public virtual RebootBrokerResponse RebootBroker(RebootBrokerRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebootBrokerRequestMarshaller.Instance;options.ResponseUnmarshaller = RebootBrokerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6651, "before": "public int getLastInternalSheetIndexForExtIndex(int extRefIndex) {if (extRefIndex >= _externSheetRecord.getNumOfRefs() || extRefIndex < 0) {return -1;}return _externSheetRecord.getLastSheetIndexFromRefIndex(extRefIndex);}", "after": "public int GetLastInternalSheetIndexForExtIndex(int extRefIndex){if (extRefIndex >= _externSheetRecord.NumOfRefs || extRefIndex < 0){return -1;}return _externSheetRecord.GetLastSheetIndexFromRefIndex(extRefIndex);}" }, { "index": 6652, "before": "public RemoveTagsFromOnPremisesInstancesResult removeTagsFromOnPremisesInstances(RemoveTagsFromOnPremisesInstancesRequest request) {request = beforeClientExecution(request);return executeRemoveTagsFromOnPremisesInstances(request);}", "after": "public virtual RemoveTagsFromOnPremisesInstancesResponse RemoveTagsFromOnPremisesInstances(RemoveTagsFromOnPremisesInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveTagsFromOnPremisesInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveTagsFromOnPremisesInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6653, "before": "public static final int nextLF(byte[] b, int ptr) {return next(b, ptr, '\\n');}", "after": "public static int NextLF(byte[] b, int ptr){return Next(b, ptr, '\\n');}" }, { "index": 6654, "before": "public boolean equals(Object other) {return sameClassAs(other) &&equalsTo(getClass().cast(other));}", "after": "public override bool Equals(object obj){if (!(obj is DrillDownQuery)){return false;}DrillDownQuery other = (DrillDownQuery)obj;return query.Equals(other.query) && base.Equals(other);}" }, { "index": 6655, "before": "public void setResult(ReceiveCommand.Result status) {result = decode(status);super.setResult(status);}", "after": "public override void SetResult(ReceiveCommand.Result status){this._enclosing.result = this.Decode(status);base.SetResult(status);}" }, { "index": 6656, "before": "public UpdateIAMPolicyAssignmentResult updateIAMPolicyAssignment(UpdateIAMPolicyAssignmentRequest request) {request = beforeClientExecution(request);return executeUpdateIAMPolicyAssignment(request);}", "after": "public virtual UpdateIAMPolicyAssignmentResponse UpdateIAMPolicyAssignment(UpdateIAMPolicyAssignmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateIAMPolicyAssignmentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateIAMPolicyAssignmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6657, "before": "public ExportImageResult exportImage(ExportImageRequest request) {request = beforeClientExecution(request);return executeExportImage(request);}", "after": "public virtual ExportImageResponse ExportImage(ExportImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExportImageRequestMarshaller.Instance;options.ResponseUnmarshaller = ExportImageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6658, "before": "public ListTopicsDetectionJobsResult listTopicsDetectionJobs(ListTopicsDetectionJobsRequest request) {request = beforeClientExecution(request);return executeListTopicsDetectionJobs(request);}", "after": "public virtual ListTopicsDetectionJobsResponse ListTopicsDetectionJobs(ListTopicsDetectionJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTopicsDetectionJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTopicsDetectionJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6659, "before": "public static IntBuffer wrap(int[] array, int start, int intCount) {Arrays.checkOffsetAndCount(array.length, start, intCount);IntBuffer buf = new ReadWriteIntArrayBuffer(array);buf.position = start;buf.limit = start + intCount;return buf;}", "after": "public static java.nio.IntBuffer wrap(int[] array_1, int start, int intCount){java.util.Arrays.checkOffsetAndCount(array_1.Length, start, intCount);java.nio.IntBuffer buf = new java.nio.ReadWriteIntArrayBuffer(array_1);buf._position = start;buf._limit = start + intCount;return buf;}" }, { "index": 6660, "before": "public ListDeploymentTargetsResult listDeploymentTargets(ListDeploymentTargetsRequest request) {request = beforeClientExecution(request);return executeListDeploymentTargets(request);}", "after": "public virtual ListDeploymentTargetsResponse ListDeploymentTargets(ListDeploymentTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeploymentTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeploymentTargetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6661, "before": "public HSSFTextbox createTextbox(HSSFChildAnchor anchor) {HSSFTextbox shape = new HSSFTextbox(this, anchor);shape.setParent(this);shape.setAnchor(anchor);shapes.add(shape);onCreate(shape);return shape;}", "after": "public HSSFTextbox CreateTextbox(HSSFChildAnchor anchor){HSSFTextbox shape = new HSSFTextbox(this, anchor);shape.Parent = this;shape.Anchor = anchor;shapes.Add(shape);OnCreate(shape);return shape;}" }, { "index": 6662, "before": "public CreateStreamProcessorResult createStreamProcessor(CreateStreamProcessorRequest request) {request = beforeClientExecution(request);return executeCreateStreamProcessor(request);}", "after": "public virtual CreateStreamProcessorResponse CreateStreamProcessor(CreateStreamProcessorRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStreamProcessorRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStreamProcessorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6663, "before": "public boolean matches(char s[], int len) {return (len - suffix.length >= min && endsWith(s, len, suffix));}", "after": "public virtual bool Matches(char[] s, int len){return (len - m_suffix.Length >= m_min && StemmerUtil.EndsWith(s, len, m_suffix));}" }, { "index": 6664, "before": "public void setFontStyle(boolean italic, boolean bold){boolean modified = italic || bold;fontFormatting.setItalic(italic);fontFormatting.setBold(bold);fontFormatting.setFontStyleModified(modified);fontFormatting.setFontWieghtModified(modified);}", "after": "public void SetFontStyle(bool italic, bool bold){bool modified = italic || bold;fontFormatting.IsItalic=italic;fontFormatting.IsBold=bold;fontFormatting.IsFontStyleModified=modified;fontFormatting.IsFontWeightModified=modified;}" }, { "index": 6665, "before": "public void writeShort(int value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeShort(value);}", "after": "public virtual void writeShort(int value){throw new System.NotImplementedException();}" }, { "index": 6666, "before": "public CreateEntityRecognizerResult createEntityRecognizer(CreateEntityRecognizerRequest request) {request = beforeClientExecution(request);return executeCreateEntityRecognizer(request);}", "after": "public virtual CreateEntityRecognizerResponse CreateEntityRecognizer(CreateEntityRecognizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEntityRecognizerRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEntityRecognizerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6667, "before": "public DescribeContributorInsightsResult describeContributorInsights(DescribeContributorInsightsRequest request) {request = beforeClientExecution(request);return executeDescribeContributorInsights(request);}", "after": "public virtual DescribeContributorInsightsResponse DescribeContributorInsights(DescribeContributorInsightsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeContributorInsightsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeContributorInsightsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6668, "before": "public CreateLaunchConfigurationResult createLaunchConfiguration(CreateLaunchConfigurationRequest request) {request = beforeClientExecution(request);return executeCreateLaunchConfiguration(request);}", "after": "public virtual CreateLaunchConfigurationResponse CreateLaunchConfiguration(CreateLaunchConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLaunchConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLaunchConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6669, "before": "public int read() throws IOException {checkReadPrimitiveTypes();return primitiveData.read();}", "after": "public override int read(){throw new System.NotImplementedException();}" }, { "index": 6670, "before": "public TokenStream create(TokenStream input) {return new LimitTokenCountFilter(input, maxTokenCount, consumeAllTokens);}", "after": "public override TokenStream Create(TokenStream input){return new LimitTokenCountFilter(input, maxTokenCount, consumeAllTokens);}" }, { "index": 6671, "before": "public CharBuffer asReadOnlyBuffer() {return duplicate();}", "after": "public override java.nio.CharBuffer asReadOnlyBuffer(){return duplicate();}" }, { "index": 6672, "before": "public GetConsoleScreenshotResult getConsoleScreenshot(GetConsoleScreenshotRequest request) {request = beforeClientExecution(request);return executeGetConsoleScreenshot(request);}", "after": "public virtual GetConsoleScreenshotResponse GetConsoleScreenshot(GetConsoleScreenshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetConsoleScreenshotRequestMarshaller.Instance;options.ResponseUnmarshaller = GetConsoleScreenshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6673, "before": "public DrawingRecordForBiffViewer(DrawingRecord r){super(convertToInputStream(r));convertRawBytesToEscherRecords();}", "after": "public DrawingRecordForBiffViewer(DrawingRecord r): base(ConvertToInputStream(r)){ConvertRawBytesToEscherRecords();}" }, { "index": 6674, "before": "public boolean hasPrevious() {return pos >= 0;}", "after": "public bool hasPrevious(){return this.pos >= 0;}" }, { "index": 6675, "before": "public NotImplemented(String functionName) {_functionName = functionName;}", "after": "public NotImplemented(String functionName){_functionName = functionName;}" }, { "index": 6676, "before": "public UpdateDirectoryConfigResult updateDirectoryConfig(UpdateDirectoryConfigRequest request) {request = beforeClientExecution(request);return executeUpdateDirectoryConfig(request);}", "after": "public virtual UpdateDirectoryConfigResponse UpdateDirectoryConfig(UpdateDirectoryConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDirectoryConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDirectoryConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6677, "before": "public DeleteQualificationTypeResult deleteQualificationType(DeleteQualificationTypeRequest request) {request = beforeClientExecution(request);return executeDeleteQualificationType(request);}", "after": "public virtual DeleteQualificationTypeResponse DeleteQualificationType(DeleteQualificationTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteQualificationTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteQualificationTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6678, "before": "@Override public void clear() {throw new UnsupportedOperationException();}", "after": "public virtual void clear(){throw new System.NotSupportedException();}" }, { "index": 6679, "before": "public int startNewSlice() {return offset = pool.newSlice(FIRST_LEVEL_SIZE) + pool.intOffset;}", "after": "public virtual int StartNewSlice(){return offset = pool.NewSlice(FIRST_LEVEL_SIZE) + pool.Int32Offset;}" }, { "index": 6680, "before": "public void postInvalidate() {if (!mNoInvalidate) {super.postInvalidate();}}", "after": "public override void postInvalidate(){if (!mNoInvalidate){base.postInvalidate();}}" }, { "index": 6681, "before": "public List getFacetEntries(int offset, int limit) {List entries = new LinkedList<>();int skipped = 0;int included = 0;for (FacetEntry facetEntry : facetEntries) {if (skipped < offset) {skipped++;continue;}if (included++ >= limit) {break;}entries.add(facetEntry);}return entries;}", "after": "public virtual IList GetFacetEntries(int offset, int limit){List entries = new List();int skipped = 0;int included = 0;foreach (FacetEntry facetEntry in facetEntries){if (skipped < offset){skipped++;continue;}if (included++ >= limit){break;}entries.Add(facetEntry);}return entries;}" }, { "index": 6682, "before": "public static synchronized CoderResult unmappableForLength(int length)throws IllegalArgumentException {if (length > 0) {Integer key = Integer.valueOf(length);synchronized (_unmappableErrors) {CoderResult r = _unmappableErrors.get(key);if (r == null) {r = new CoderResult(TYPE_UNMAPPABLE_CHAR, length);_unmappableErrors.put(key, r);}return r;}}throw new IllegalArgumentException(\"Length must be greater than 0; was \" + length);}", "after": "public static java.nio.charset.CoderResult unmappableForLength(int length_1){lock (typeof(CoderResult)){if (length_1 > 0){int key = Sharpen.Util.IntValueOf(length_1);lock (_unmappableErrors){java.nio.charset.CoderResult r = _unmappableErrors.get(key);if (r == null){r = new java.nio.charset.CoderResult(TYPE_UNMAPPABLE_CHAR, length_1);_unmappableErrors.put(key, r);}return r;}}throw new System.ArgumentException(\"Length must be greater than 0; was \" + length_1);}}" }, { "index": 6683, "before": "public UpdateDetectorVersionStatusResult updateDetectorVersionStatus(UpdateDetectorVersionStatusRequest request) {request = beforeClientExecution(request);return executeUpdateDetectorVersionStatus(request);}", "after": "public virtual UpdateDetectorVersionStatusResponse UpdateDetectorVersionStatus(UpdateDetectorVersionStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDetectorVersionStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDetectorVersionStatusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6684, "before": "public void remove() {iterator.remove();subList.sizeChanged(false);end--;}", "after": "public void remove(){iterator.remove();subList.sizeChanged(false);end--;}" }, { "index": 6685, "before": "public void setRef(Character way, int ref) {Cell c = at(way);if (c == null) {c = new Cell();c.ref = ref;cells.put(way, c);} else {c.ref = ref;}}", "after": "public void SetRef(char way, int @ref){Cell c = At(way);if (c == null){c = new Cell();c.@ref = @ref;cells[way] = c;}else{c.@ref = @ref;}}" }, { "index": 6686, "before": "public QueryNodeProcessorPipeline(QueryConfigHandler queryConfigHandler) {this.queryConfig = queryConfigHandler;}", "after": "public QueryNodeProcessorPipeline(QueryConfigHandler queryConfigHandler){this.queryConfig = queryConfigHandler;}" }, { "index": 6687, "before": "public IllegalFormatPrecisionException(int p) {this.p = p;}", "after": "public IllegalFormatPrecisionException(int p){this.p = p;}" }, { "index": 6688, "before": "@Override public final boolean equals(Object o) {if (!(o instanceof Entry)) {return false;}Entry e = (Entry) o;return Objects.equal(e.getKey(), key)&& Objects.equal(e.getValue(), value);}", "after": "public sealed override bool Equals(object o){if (!(o is java.util.MapClass.Entry)){return false;}java.util.MapClass.Entry e = (java.util.MapClass.Entry)o;return libcore.util.Objects.equal(e.getKey(), key) && libcore.util.Objects.equal(e.getValue(), value);}" }, { "index": 6689, "before": "public ObjectId getOldObjectId() {return oldValue;}", "after": "public virtual ObjectId GetOldObjectId(){return oldValue;}" }, { "index": 6690, "before": "public AuthorizeIpRulesResult authorizeIpRules(AuthorizeIpRulesRequest request) {request = beforeClientExecution(request);return executeAuthorizeIpRules(request);}", "after": "public virtual AuthorizeIpRulesResponse AuthorizeIpRules(AuthorizeIpRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = AuthorizeIpRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = AuthorizeIpRulesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6691, "before": "public GetPrivateAccessUrlsRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"GetPrivateAccessUrls\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetPrivateAccessUrlsRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"GetPrivateAccessUrls\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 6692, "before": "public boolean remove(Object o) {int oldSize = size;HashMap.this.remove(o);return size != oldSize;}", "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": 6693, "before": "@Override public int size() {return filteredEntrySet.size();}", "after": "public override int size(){return this._enclosing._size;}" }, { "index": 6694, "before": "public PutConfigurationSetTrackingOptionsResult putConfigurationSetTrackingOptions(PutConfigurationSetTrackingOptionsRequest request) {request = beforeClientExecution(request);return executePutConfigurationSetTrackingOptions(request);}", "after": "public virtual PutConfigurationSetTrackingOptionsResponse PutConfigurationSetTrackingOptions(PutConfigurationSetTrackingOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutConfigurationSetTrackingOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutConfigurationSetTrackingOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6695, "before": "public static final ObjectId fromString(byte[] buf, int offset) {return fromHexString(buf, offset);}", "after": "public static NGit.ObjectId FromString(byte[] buf, int offset){return FromHexString(buf, offset);}" }, { "index": 6696, "before": "public GetRelationalDatabaseResult getRelationalDatabase(GetRelationalDatabaseRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabase(request);}", "after": "public virtual GetRelationalDatabaseResponse GetRelationalDatabase(GetRelationalDatabaseRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6697, "before": "public JschSession(Session session, URIish uri) {sock = session;this.uri = uri;}", "after": "public JschSession(Session session, URIish uri){sock = session;this.uri = uri;}" }, { "index": 6698, "before": "public SetCognitoEventsResult setCognitoEvents(SetCognitoEventsRequest request) {request = beforeClientExecution(request);return executeSetCognitoEvents(request);}", "after": "public virtual SetCognitoEventsResponse SetCognitoEvents(SetCognitoEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetCognitoEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = SetCognitoEventsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6699, "before": "public BatchDetectEntitiesResult batchDetectEntities(BatchDetectEntitiesRequest request) {request = beforeClientExecution(request);return executeBatchDetectEntities(request);}", "after": "public virtual BatchDetectEntitiesResponse BatchDetectEntities(BatchDetectEntitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDetectEntitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDetectEntitiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6700, "before": "public synchronized int codePointCount(int beginIndex, int endIndex) {return super.codePointCount(beginIndex, endIndex);}", "after": "public override int codePointCount(int beginIndex, int endIndex){lock (this){return base.codePointCount(beginIndex, endIndex);}}" }, { "index": 6701, "before": "public GenerateClientCertificateResult generateClientCertificate(GenerateClientCertificateRequest request) {request = beforeClientExecution(request);return executeGenerateClientCertificate(request);}", "after": "public virtual GenerateClientCertificateResponse GenerateClientCertificate(GenerateClientCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GenerateClientCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = GenerateClientCertificateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6702, "before": "public final void writeDouble(double val) throws IOException {writeLong(Double.doubleToLongBits(val));}", "after": "public virtual void writeDouble(double val){throw new System.NotImplementedException();}" }, { "index": 6703, "before": "public static void fill(int[] array, int start, int end, int value) {Arrays.checkStartAndEnd(array.length, start, end);for (int i = start; i < end; i++) {array[i] = value;}}", "after": "public static void fill(int[] array, int start, int end, int value){java.util.Arrays.checkStartAndEnd(array.Length, start, end);{for (int i = start; i < end; i++){array[i] = value;}}}" }, { "index": 6704, "before": "public final char yycharat(int pos) {return zzBuffer[zzStartRead+pos];}", "after": "public char YyCharAt(int pos){return zzBuffer[zzStartRead + pos];}" }, { "index": 6705, "before": "public void pushMode(int m) {if ( LexerATNSimulator.debug ) System.out.println(\"pushMode \"+m);_modeStack.push(_mode);mode(m);}", "after": "public virtual void PushMode(int m){_modeStack.Push(_mode);Mode(m);}" }, { "index": 6706, "before": "public Set getCapabilities() {return command.getCapabilities();}", "after": "public virtual ICollection GetCapabilities(){return capabilities;}" }, { "index": 6707, "before": "public DescribeReservedInstancesListingsResult describeReservedInstancesListings() {return describeReservedInstancesListings(new DescribeReservedInstancesListingsRequest());}", "after": "public virtual DescribeReservedInstancesListingsResponse DescribeReservedInstancesListings(){return DescribeReservedInstancesListings(new DescribeReservedInstancesListingsRequest());}" }, { "index": 6708, "before": "public RegisterInstanceEventNotificationAttributesResult registerInstanceEventNotificationAttributes(RegisterInstanceEventNotificationAttributesRequest request) {request = beforeClientExecution(request);return executeRegisterInstanceEventNotificationAttributes(request);}", "after": "public virtual RegisterInstanceEventNotificationAttributesResponse RegisterInstanceEventNotificationAttributes(RegisterInstanceEventNotificationAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterInstanceEventNotificationAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterInstanceEventNotificationAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6709, "before": "public PutRuleResult putRule(PutRuleRequest request) {request = beforeClientExecution(request);return executePutRule(request);}", "after": "public virtual PutRuleResponse PutRule(PutRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = PutRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6710, "before": "public static char[] grow(char[] array, int minSize) {assert minSize >= 0: \"size must be positive (got \" + minSize + \"): likely integer overflow?\";if (array.length < minSize) {return growExact(array, oversize(minSize, Character.BYTES));} elsereturn array;}", "after": "public static byte[] Grow(byte[] array, int minSize){Debug.Assert(minSize >= 0, \"size must be positive (got \" + minSize + \"): likely integer overflow?\");if (array.Length < minSize){byte[] newArray = new byte[Oversize(minSize, 1)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}" }, { "index": 6711, "before": "public CleanCommand setPaths(Set paths) {this.paths = paths;return this;}", "after": "public virtual NGit.Api.CleanCommand SetPaths(ICollection paths){this.paths = paths;return this;}" }, { "index": 6712, "before": "public int getLevelForDistance(double dist) {if (dist == 0)return maxLevels;final int level = GeohashUtils.lookupHashLenForWidthHeight(dist, dist);return Math.max(Math.min(level, maxLevels), 1);}", "after": "protected internal override int GetLevelForDistance(double degrees){var grid = new GeohashPrefixTree(m_ctx, GeohashPrefixTree.MaxLevelsPossible);return grid.GetLevelForDistance(degrees);}" }, { "index": 6713, "before": "public StartDocumentTextDetectionResult startDocumentTextDetection(StartDocumentTextDetectionRequest request) {request = beforeClientExecution(request);return executeStartDocumentTextDetection(request);}", "after": "public virtual StartDocumentTextDetectionResponse StartDocumentTextDetection(StartDocumentTextDetectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDocumentTextDetectionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDocumentTextDetectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6714, "before": "public String getLine() {return firstWant.getLine();}", "after": "public virtual string GetLine(){return line;}" }, { "index": 6715, "before": "public ValueEval getItem(int index) {if(index > _size) {throw new ArrayIndexOutOfBoundsException(\"Specified index (\" + index+ \") is outside the allowed range (0..\" + (_size-1) + \")\");}return _tableArray.getValue(_rowIndex, index);}", "after": "public ValueEval GetItem(int index){if (index > _size){throw new IndexOutOfRangeException(\"Specified index (\" + index+ \") is outside the allowed range (0..\" + (_size - 1) + \")\");}return _tableArray.GetRelativeValue(_rowIndex, index);}" }, { "index": 6716, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[IFMT]\\n\");buffer.append(\" .formatIndex = \").append(\"0x\").append(HexDump.toHex( getFormatIndex ())).append(\" (\").append( getFormatIndex() ).append(\" )\");buffer.append(System.getProperty(\"line.separator\"));buffer.append(\"[/IFMT]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[IFMT]\\n\");buffer.Append(\" .formatIndex = \").Append(\"0x\").Append(HexDump.ToHex(FormatIndex)).Append(\" (\").Append(FormatIndex).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\"[/IFMT]\\n\");return buffer.ToString();}" }, { "index": 6717, "before": "public SubmoduleSyncCommand(Repository repo) {super(repo);paths = new ArrayList<>();}", "after": "protected internal SubmoduleSyncCommand(Repository repo) : base(repo){paths = new AList();}" }, { "index": 6718, "before": "public void registerWorkflowType(RegisterWorkflowTypeRequest request) {request = beforeClientExecution(request);executeRegisterWorkflowType(request);}", "after": "public virtual RegisterWorkflowTypeResponse RegisterWorkflowType(RegisterWorkflowTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterWorkflowTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterWorkflowTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6719, "before": "public UnescapedCharSequence(char[] chars, boolean[] wasEscaped, int offset,int length) {this.chars = new char[length];this.wasEscaped = new boolean[length];System.arraycopy(chars, offset, this.chars, 0, length);System.arraycopy(wasEscaped, offset, this.wasEscaped, 0, length);}", "after": "public UnescapedCharSequence(char[] chars, bool[] wasEscaped, int offset,int length){this.chars = new char[length];this.wasEscaped = new bool[length];System.Array.Copy(chars, offset, this.chars, 0, length);System.Array.Copy(wasEscaped, offset, this.wasEscaped, 0, length);}" }, { "index": 6720, "before": "public CreateDatasetGroupResult createDatasetGroup(CreateDatasetGroupRequest request) {request = beforeClientExecution(request);return executeCreateDatasetGroup(request);}", "after": "public virtual CreateDatasetGroupResponse CreateDatasetGroup(CreateDatasetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDatasetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDatasetGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6721, "before": "public boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;FieldVals other = (FieldVals) obj;if (fieldName == null) {if (other.fieldName != null)return false;} else if (!fieldName.equals(other.fieldName))return false;if (maxEdits != other.maxEdits) {return false;}if (prefixLength != other.prefixLength)return false;if (queryString == null) {if (other.queryString != null)return false;} else if (!queryString.equals(other.queryString))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;FieldVals other = (FieldVals)obj;if (fieldName == null){if (other.fieldName != null)return false;}else if (!fieldName.Equals(other.fieldName, StringComparison.Ordinal))return false;if (J2N.BitConversion.SingleToInt32Bits(minSimilarity) != J2N.BitConversion.SingleToInt32Bits(other.minSimilarity))return false;if (prefixLength != other.prefixLength)return false;if (queryString == null){if (other.queryString != null)return false;}else if (!queryString.Equals(other.queryString, StringComparison.Ordinal))return false;return true;}" }, { "index": 6722, "before": "public BuildSuggestersResult buildSuggesters(BuildSuggestersRequest request) {request = beforeClientExecution(request);return executeBuildSuggesters(request);}", "after": "public virtual BuildSuggestersResponse BuildSuggesters(BuildSuggestersRequest request){var options = new InvokeOptions();options.RequestMarshaller = BuildSuggestersRequestMarshaller.Instance;options.ResponseUnmarshaller = BuildSuggestersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6723, "before": "public GetRelationalDatabaseBundlesResult getRelationalDatabaseBundles(GetRelationalDatabaseBundlesRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseBundles(request);}", "after": "public virtual GetRelationalDatabaseBundlesResponse GetRelationalDatabaseBundles(GetRelationalDatabaseBundlesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseBundlesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseBundlesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6724, "before": "public String getMessages() {return messageBuffer != null ? messageBuffer.toString() : \"\"; }", "after": "public virtual string GetMessages(){return messageBuffer != null ? messageBuffer.ToString() : string.Empty;}" }, { "index": 6725, "before": "public DelimitedPayloadTokenFilter(TokenStream input, char delimiter, PayloadEncoder encoder) {super(input);this.delimiter = delimiter;this.encoder = encoder;}", "after": "public DelimitedPayloadTokenFilter(TokenStream input, char delimiter, IPayloadEncoder encoder): base(input){this.delimiter = delimiter;this.encoder = encoder;termAtt = AddAttribute();payAtt = AddAttribute();}" }, { "index": 6726, "before": "public void setPrintArea(int sheetIndex, int startColumn, int endColumn,int startRow, int endRow) {CellReference cell = new CellReference(startRow, startColumn, true, true);String reference = cell.formatAsString();cell = new CellReference(endRow, endColumn, true, true);reference = reference+\":\"+cell.formatAsString();setPrintArea(sheetIndex, reference);}", "after": "public void SetPrintArea(int sheetIndex, int startColumn, int endColumn,int startRow, int endRow){CellReference cell = new CellReference(startRow, startColumn, true, true);String reference = cell.FormatAsString();cell = new CellReference(endRow, endColumn, true, true);reference = reference + \":\" + cell.FormatAsString();SetPrintArea(sheetIndex, reference);}" }, { "index": 6727, "before": "public void normalise64bit() {int oldBitLen = _significand.bitLength();int sc = oldBitLen - C_64;if (sc == 0) {return;}if (sc < 0) {throw new IllegalStateException(\"Not enough precision\");}_binaryExponent += sc;if (sc > 32) {int highShift = (sc-1) & 0xFFFFE0;_significand = _significand.shiftRight(highShift);sc -= highShift;oldBitLen -= highShift;}if (sc < 1) {throw new IllegalStateException();}_significand = Rounder.round(_significand, sc);if (_significand.bitLength() > oldBitLen) {sc++;_binaryExponent++;}_significand = _significand.shiftRight(sc);}", "after": "public void Normalise64bit(){int oldBitLen = _significand.BitLength();int sc = oldBitLen - C_64;if (sc == 0){return;}if (sc < 0){throw new InvalidOperationException(\"Not enough precision\");}_binaryExponent += sc;if (sc > 32){int highShift = (sc - 1) & 0xFFFFE0;_significand = _significand>>(highShift);sc -= highShift;oldBitLen -= highShift;}if (sc < 1){throw new InvalidOperationException();}_significand = Rounder.Round(_significand, sc);if (_significand.BitLength() > oldBitLen){sc++;_binaryExponent++;}_significand = _significand>>(sc);}" }, { "index": 6728, "before": "public ObjRecord(RecordInputStream in) {byte[] subRecordData = in.readRemainder();if (LittleEndian.getUShort(subRecordData, 0) != CommonObjectDataSubRecord.sid) {_uninterpretedData = subRecordData;return;}LittleEndianByteArrayInputStream subRecStream = new LittleEndianByteArrayInputStream(subRecordData);CommonObjectDataSubRecord cmo = (CommonObjectDataSubRecord)SubRecord.createSubRecord(subRecStream, 0);subrecords.add(cmo);while (true) {SubRecord subRecord = SubRecord.createSubRecord(subRecStream, cmo.getObjectType());subrecords.add(subRecord);if (subRecord.isTerminating()) {break;}}final int nRemainingBytes = subRecordData.length-subRecStream.getReadIndex();if (nRemainingBytes > 0) {_isPaddedToQuadByteMultiple = subRecordData.length % MAX_PAD_ALIGNMENT == 0;if (nRemainingBytes >= (_isPaddedToQuadByteMultiple ? MAX_PAD_ALIGNMENT : NORMAL_PAD_ALIGNMENT)) {if (!canPaddingBeDiscarded(subRecordData, nRemainingBytes)) {String msg = \"Leftover \" + nRemainingBytes+ \" bytes in subrecord data \" + HexDump.toHex(subRecordData);throw new RecordFormatException(msg);}_isPaddedToQuadByteMultiple = false;}} else {_isPaddedToQuadByteMultiple = false;}_uninterpretedData = null;}", "after": "public ObjRecord(RecordInputStream in1){byte[] subRecordData = in1.ReadRemainder();if (LittleEndian.GetUShort(subRecordData, 0) != CommonObjectDataSubRecord.sid){_uninterpretedData = subRecordData;subrecords = null;return;}subrecords = new List();using (MemoryStream bais = new MemoryStream(subRecordData)){LittleEndianInputStream subRecStream = new LittleEndianInputStream(bais);CommonObjectDataSubRecord cmo = (CommonObjectDataSubRecord)SubRecord.CreateSubRecord(subRecStream, 0);subrecords.Add(cmo);while (true){SubRecord subRecord = SubRecord.CreateSubRecord(subRecStream, cmo.ObjectType);subrecords.Add(subRecord);if (subRecord.IsTerminating){break;}}int nRemainingBytes = subRecStream.Available();if (nRemainingBytes > 0){_isPaddedToQuadByteMultiple = subRecordData.Length % MAX_PAD_ALIGNMENT == 0;if (nRemainingBytes >= (_isPaddedToQuadByteMultiple ? MAX_PAD_ALIGNMENT : NORMAL_PAD_ALIGNMENT)){if (!CanPaddingBeDiscarded(subRecordData, nRemainingBytes)){String msg = \"Leftover \" + nRemainingBytes+ \" bytes in subrecord data \" + HexDump.ToHex(subRecordData);throw new RecordFormatException(msg);}_isPaddedToQuadByteMultiple = false;}}else{_isPaddedToQuadByteMultiple = false;}_uninterpretedData = null;}}" }, { "index": 6729, "before": "public FrenchLightStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public FrenchLightStemFilterFactory(IDictionary args) : base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 6730, "before": "@Override public int size() {Slice slice = this.slice;return slice.to - slice.from;}", "after": "public virtual int size(){return elements.Length;}" }, { "index": 6731, "before": "public boolean equals(Object other) {if (!(other instanceof IntBuffer)) {return false;}IntBuffer otherBuffer = (IntBuffer) other;if (remaining() != otherBuffer.remaining()) {return false;}int myPosition = position;int otherPosition = otherBuffer.position;boolean equalSoFar = true;while (equalSoFar && (myPosition < limit)) {equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}", "after": "public override bool Equals(object other){if (!(other is java.nio.IntBuffer)){return false;}java.nio.IntBuffer otherBuffer = (java.nio.IntBuffer)other;if (remaining() != otherBuffer.remaining()){return false;}int myPosition = _position;int otherPosition = otherBuffer._position;bool equalSoFar = true;while (equalSoFar && (myPosition < _limit)){equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}" }, { "index": 6732, "before": "public static void fill(char[] array, int start, int end, char value) {Arrays.checkStartAndEnd(array.length, start, end);for (int i = start; i < end; i++) {array[i] = value;}}", "after": "public static void fill(char[] array, int start, int end, char value){java.util.Arrays.checkStartAndEnd(array.Length, start, end);{for (int i = start; i < end; i++){array[i] = value;}}}" }, { "index": 6733, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[CALCMODE]\\n\");buffer.append(\" .calcmode = \").append(Integer.toHexString(getCalcMode())).append(\"\\n\");buffer.append(\"[/CALCMODE]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[CALCMODE]\\n\");buffer.Append(\" .calcmode = \").Append(StringUtil.ToHexString(GetCalcMode())).Append(\"\\n\");buffer.Append(\"[/CALCMODE]\\n\");return buffer.ToString();}" }, { "index": 6734, "before": "public void setCurrent(String value){current = value.toCharArray();cursor = 0;limit = value.length();limit_backward = 0;bra = cursor;ket = limit;}", "after": "public virtual void SetCurrent(string value){m_current = value.ToCharArray();m_cursor = 0;m_limit = value.Length;m_limit_backward = 0;m_bra = m_cursor;m_ket = m_limit;}" }, { "index": 6735, "before": "public ShortBuffer put(int index, short c) {checkIndex(index);backingArray[offset + index] = c;return this;}", "after": "public override java.nio.ShortBuffer put(int index, short c){checkIndex(index);backingArray[offset + index] = c;return this;}" }, { "index": 6736, "before": "public EventSubscription deleteEventSubscription(DeleteEventSubscriptionRequest request) {request = beforeClientExecution(request);return executeDeleteEventSubscription(request);}", "after": "public virtual DeleteEventSubscriptionResponse DeleteEventSubscription(DeleteEventSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEventSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEventSubscriptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6737, "before": "public void setTokenType(String tokenType) {this.tokenType = tokenType;}", "after": "public void SetTokenType(string tokenType){this.tokenType = tokenType;}" }, { "index": 6738, "before": "public NumericDocValuesField(String name, long value) {this(name, Long.valueOf(value));}", "after": "public NumericDocValuesField(string name, long value): base(name, TYPE){FieldsData = new Int64(value);}" }, { "index": 6739, "before": "public AddTagsRequest(String resourceId) {setResourceId(resourceId);}", "after": "public AddTagsRequest(string resourceId){_resourceId = resourceId;}" }, { "index": 6740, "before": "public ValueEval getRefEval(int rowIndex, int columnIndex) {SheetRangeEvaluator sre = getRefEvaluatorForCurrentSheet();return new LazyRefEval(rowIndex, columnIndex, sre);}", "after": "public ValueEval GetRefEval(int rowIndex, int columnIndex){SheetRangeEvaluator sre = GetRefEvaluatorForCurrentSheet();return new LazyRefEval(rowIndex, columnIndex, sre);}" }, { "index": 6741, "before": "public DescribeTaskDefinitionResult describeTaskDefinition(DescribeTaskDefinitionRequest request) {request = beforeClientExecution(request);return executeDescribeTaskDefinition(request);}", "after": "public virtual DescribeTaskDefinitionResponse DescribeTaskDefinition(DescribeTaskDefinitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTaskDefinitionRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTaskDefinitionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6742, "before": "public void sort() {if (count > 1) ArrayUtil.timSort(points, 0, count);}", "after": "public void Sort(){if (count > 1){ArrayUtil.TimSort(points, 0, count);}}" }, { "index": 6743, "before": "public static final RevFilter before(long ts) {return new Before(ts);}", "after": "public static RevFilter Before(DateTime ts){return Before(ts.GetTime());}" }, { "index": 6744, "before": "public void set(E object) {throw new UnsupportedOperationException();}", "after": "public virtual void set(E @object){throw new System.NotSupportedException();}" }, { "index": 6745, "before": "public EscherDggRecord getDgg() {return dgg;}", "after": "public EscherDggRecord GetDgg(){return dgg;}" }, { "index": 6746, "before": "public ListenerHandle addConfigChangedListener(ConfigChangedListener listener) {return addListener(ConfigChangedListener.class, listener);}", "after": "public virtual ListenerHandle AddConfigChangedListener(ConfigChangedListener listener){return AddListener(listener);}" }, { "index": 6747, "before": "public DetectSentimentResult detectSentiment(DetectSentimentRequest request) {request = beforeClientExecution(request);return executeDetectSentiment(request);}", "after": "public virtual DetectSentimentResponse DetectSentiment(DetectSentimentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectSentimentRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectSentimentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6748, "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 >>> 6) & 3;values[valuesOffset++] = (block >>> 4) & 3;values[valuesOffset++] = (block >>> 2) & 3;values[valuesOffset++] = block & 3;}}", "after": "public override void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int j = 0; j < iterations; ++j){var block = blocks[blocksOffset++];values[valuesOffset++] = ((int)((uint)block >> 6)) & 3;values[valuesOffset++] = ((int)((uint)block >> 4)) & 3;values[valuesOffset++] = ((int)((uint)block >> 2)) & 3;values[valuesOffset++] = block & 3;}}" }, { "index": 6749, "before": "public HeaderRecord clone() {return copy();}", "after": "public override Object Clone(){return new HeaderRecord(this.Text);}" }, { "index": 6750, "before": "public CreateEndpointConfigResult createEndpointConfig(CreateEndpointConfigRequest request) {request = beforeClientExecution(request);return executeCreateEndpointConfig(request);}", "after": "public virtual CreateEndpointConfigResponse CreateEndpointConfig(CreateEndpointConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEndpointConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEndpointConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6751, "before": "public Interpolator getInterpolator() {return mInterpolator;}", "after": "public virtual android.view.animation.Interpolator getInterpolator(){return mInterpolator;}" }, { "index": 6752, "before": "public GetSolutionMetricsResult getSolutionMetrics(GetSolutionMetricsRequest request) {request = beforeClientExecution(request);return executeGetSolutionMetrics(request);}", "after": "public virtual GetSolutionMetricsResponse GetSolutionMetrics(GetSolutionMetricsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSolutionMetricsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSolutionMetricsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6753, "before": "public StopActivityStreamResult stopActivityStream(StopActivityStreamRequest request) {request = beforeClientExecution(request);return executeStopActivityStream(request);}", "after": "public virtual StopActivityStreamResponse StopActivityStream(StopActivityStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopActivityStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = StopActivityStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6754, "before": "public ListTypedLinkFacetAttributesResult listTypedLinkFacetAttributes(ListTypedLinkFacetAttributesRequest request) {request = beforeClientExecution(request);return executeListTypedLinkFacetAttributes(request);}", "after": "public virtual ListTypedLinkFacetAttributesResponse ListTypedLinkFacetAttributes(ListTypedLinkFacetAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTypedLinkFacetAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTypedLinkFacetAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6755, "before": "public ListSentimentDetectionJobsResult listSentimentDetectionJobs(ListSentimentDetectionJobsRequest request) {request = beforeClientExecution(request);return executeListSentimentDetectionJobs(request);}", "after": "public virtual ListSentimentDetectionJobsResponse ListSentimentDetectionJobs(ListSentimentDetectionJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSentimentDetectionJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSentimentDetectionJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6756, "before": "public GetAccountSendingEnabledResult getAccountSendingEnabled(GetAccountSendingEnabledRequest request) {request = beforeClientExecution(request);return executeGetAccountSendingEnabled(request);}", "after": "public virtual GetAccountSendingEnabledResponse GetAccountSendingEnabled(GetAccountSendingEnabledRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAccountSendingEnabledRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAccountSendingEnabledResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6757, "before": "public static int getBuiltinFormat(String pFmt) {String fmt = \"TEXT\".equalsIgnoreCase(pFmt) ? \"@\" : pFmt;int i = -1;for (String f : _formats) {i++;if (f.equals(fmt)) {return i;}}return -1;}", "after": "public static int GetBuiltinFormat(String pFmt){String fmt;if (string.Compare(pFmt, (\"TEXT\"), StringComparison.OrdinalIgnoreCase) == 0){fmt = \"@\";}else{fmt = pFmt;}for (int i = 0; i < _formats.Length; i++){if (fmt.Equals(_formats[i])){return i;}}return -1;}" }, { "index": 6758, "before": "public void simpleValue(StringBuffer toAppendTo, Object value) {formatValue(toAppendTo, value);}", "after": "public override void SimpleValue(StringBuilder toAppendTo, Object value){FormatValue(toAppendTo, value);}" }, { "index": 6759, "before": "public BatchCheckLayerAvailabilityResult batchCheckLayerAvailability(BatchCheckLayerAvailabilityRequest request) {request = beforeClientExecution(request);return executeBatchCheckLayerAvailability(request);}", "after": "public virtual BatchCheckLayerAvailabilityResponse BatchCheckLayerAvailability(BatchCheckLayerAvailabilityRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchCheckLayerAvailabilityRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchCheckLayerAvailabilityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6760, "before": "public void clearSubRecords() {subrecords.clear();}", "after": "public void ClearSubRecords(){subrecords.Clear();}" }, { "index": 6761, "before": "public List call() throws GitAPIException {checkCallable();List tags = new ArrayList<>();try (RevWalk revWalk = new RevWalk(repo)) {List refList = repo.getRefDatabase().getRefsByPrefix(Constants.R_TAGS);for (Ref ref : refList) {tags.add(ref);}} catch (IOException e) {throw new JGitInternalException(e.getMessage(), e);}Collections.sort(tags,(Ref o1, Ref o2) -> o1.getName().compareTo(o2.getName()));setCallable(false);return tags;}", "after": "public override IList Call(){CheckCallable();IDictionary refList;IList tags = new AList();RevWalk revWalk = new RevWalk(repo);try{refList = repo.RefDatabase.GetRefs(Constants.R_TAGS);foreach (Ref @ref in refList.Values){tags.AddItem(@ref);}}catch (IOException e){throw new JGitInternalException(e.Message, e);}finally{revWalk.Release();}tags.Sort(new _IComparer_92());SetCallable(false);return tags;}" }, { "index": 6762, "before": "public synchronized void clear() {cache.clear();}", "after": "public virtual void Clear(){lock (this){cache.Clear();}}" }, { "index": 6763, "before": "public int indexOf(E object, int from) {Object[] snapshot = elements;return indexOf(object, snapshot, from, snapshot.length);}", "after": "public virtual int indexOf(E @object, int from){object[] snapshot = elements;return indexOf(@object, snapshot, from, snapshot.Length);}" }, { "index": 6764, "before": "public String highlightTerm(String originalText, TokenGroup tokenGroup) {if (tokenGroup.getTotalScore() == 0)return originalText;float score = tokenGroup.getTotalScore();if (score == 0) {return originalText;}StringBuilder sb = new StringBuilder(originalText.length() + EXTRA);sb.append(\"\");sb.append(originalText);sb.append(\"\");return sb.toString();}", "after": "public override string HighlightTerm(string originalText, TokenGroup tokenGroup){if (tokenGroup.TotalScore == 0)return originalText;float score = tokenGroup.TotalScore;if (score == 0){return originalText;}var sb = new StringBuilder(originalText.Length + EXTRA);sb.Append(\"\");sb.Append(originalText);sb.Append(\"\");return sb.ToString();}" }, { "index": 6765, "before": "public PasswordRecord getPasswordRecord() {return _passwordRecord;}", "after": "public PasswordRecord GetPasswordRecord(){return _passwordRecord;}" }, { "index": 6766, "before": "public SlicedIndexInput clone() {SlicedIndexInput clone = (SlicedIndexInput)super.clone();clone.base = base.clone();clone.fileOffset = fileOffset;clone.length = length;return clone;}", "after": "public override object Clone(){SlicedIndexInput clone = (SlicedIndexInput)base.Clone();clone.@base = (IndexInput)@base.Clone();clone.fileOffset = fileOffset;clone.length = length;return clone;}" }, { "index": 6767, "before": "public int getSourceLine(int idx) {return sourceLines[idx] - 1;}", "after": "public virtual int GetSourceLine(int idx){return sourceLines[idx] - 1;}" }, { "index": 6768, "before": "public DeleteResolverRuleResult deleteResolverRule(DeleteResolverRuleRequest request) {request = beforeClientExecution(request);return executeDeleteResolverRule(request);}", "after": "public virtual DeleteResolverRuleResponse DeleteResolverRule(DeleteResolverRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteResolverRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteResolverRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6769, "before": "static public double ppmt(double r, int per, int nper, double pv, double fv, int type) {return pmt(r, nper, pv, fv, type) - ipmt(r, per, nper, pv, fv, type);}", "after": "static public double PPMT(double r, int per, int nper, double pv, double fv, int type){return PMT(r, nper, pv, fv, type) - IPMT(r, per, nper, pv, fv, type);}" }, { "index": 6770, "before": "@Override public Set keySet() {return navigableKeySet();}", "after": "public override java.util.Set keySet(){return this.navigableKeySet();}" }, { "index": 6771, "before": "public boolean stem() {if (!r_more_than_one_syllable_word()){return false;}limit_backward = cursor;cursor = limit;int v_1 = limit - cursor;r_stem_nominal_verb_suffixes();cursor = limit - v_1;if (!(B_continue_stemming_noun_suffixes)){return false;}int v_2 = limit - cursor;r_stem_noun_suffixes();cursor = limit - v_2;cursor = limit_backward;if (!r_postlude()){return false;}return true;}", "after": "public override bool Stem(){int v_1;int v_2;if (!r_more_than_one_syllable_word()){return false;}m_limit_backward = m_cursor; m_cursor = m_limit;v_1 = m_limit - m_cursor;do{if (!r_stem_nominal_verb_suffixes()){goto lab0;}} while (false);lab0:m_cursor = m_limit - v_1;if (!(B_continue_stemming_noun_suffixes)){return false;}v_2 = m_limit - m_cursor;do{if (!r_stem_noun_suffixes()){goto lab1;}} while (false);lab1:m_cursor = m_limit - v_2;m_cursor = m_limit_backward; if (!r_postlude()){return false;}return true;}" }, { "index": 6772, "before": "public ListShardsResult listShards(ListShardsRequest request) {request = beforeClientExecution(request);return executeListShards(request);}", "after": "public virtual ListShardsResponse ListShards(ListShardsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListShardsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListShardsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6773, "before": "public SearcherAndTaxonomy(IndexSearcher searcher, DirectoryTaxonomyReader taxonomyReader) {this.searcher = searcher;this.taxonomyReader = taxonomyReader;}", "after": "public SearcherAndTaxonomy(IndexSearcher searcher, DirectoryTaxonomyReader taxonomyReader){this.Searcher = searcher;this.TaxonomyReader = taxonomyReader;}" }, { "index": 6774, "before": "public TreeFilter clone() {return this;}", "after": "public override TreeFilter Clone(){return this;}" }, { "index": 6775, "before": "public void set(int index, long value) {final int o = index / 6;final int b = index % 6;final int shift = b * 10;blocks[o] = (blocks[o] & ~(1023L << shift)) | (value << shift);}", "after": "public override void Set(int index, long value){int o = index / 6;int b = index % 6;int shift = b * 10;blocks[o] = (blocks[o] & ~(1023L << shift)) | (value << shift);}" }, { "index": 6776, "before": "public boolean add(String text) {return map.put(text, PLACEHOLDER) == null;}", "after": "public virtual bool Add(object o){return map.Put(o);}" }, { "index": 6777, "before": "public Position get(int pos) {while(pos >= nextPos) {if (count == positions.length) {Position[] newPositions = new Position[ArrayUtil.oversize(1+count, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];System.arraycopy(positions, nextWrite, newPositions, 0, positions.length-nextWrite);System.arraycopy(positions, 0, newPositions, positions.length-nextWrite, nextWrite);for(int i=positions.length;i= nextPos){if (count == positions.Length){Position[] newPositions = new Position[ArrayUtil.Oversize(1 + count, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];System.Array.Copy(positions, nextWrite, newPositions, 0, positions.Length - nextWrite);System.Array.Copy(positions, 0, newPositions, positions.Length - nextWrite, nextWrite);for (int i = positions.Length; i < newPositions.Length; i++){newPositions[i] = new Position();}nextWrite = positions.Length;positions = newPositions;}if (nextWrite == positions.Length){nextWrite = 0;}Debug.Assert(positions[nextWrite].count == 0);positions[nextWrite++].pos = nextPos++;count++;}Debug.Assert(InBounds(pos));int index = GetIndex(pos);Debug.Assert(positions[index].pos == pos);return positions[index];}" }, { "index": 6778, "before": "public synchronized void reset() {pos = 0;}", "after": "public override void reset(){lock (this){pos = 0;}}" }, { "index": 6779, "before": "public void configure(FacetsConfig config) {for(int i=0;i getMissing() {return Collections.unmodifiableSet(diff.getMissing());}", "after": "public virtual ICollection GetMissing(){return Sharpen.Collections.UnmodifiableSet(diff.GetMissing());}" }, { "index": 6782, "before": "public static IndexWriterConfig createWriterConfig(Config config, PerfRunData runData, OpenMode mode, IndexCommit commit) {IndexWriterConfig iwConf = new IndexWriterConfig(runData.getAnalyzer());iwConf.setOpenMode(mode);IndexDeletionPolicy indexDeletionPolicy = getIndexDeletionPolicy(config);iwConf.setIndexDeletionPolicy(indexDeletionPolicy);if (commit != null) {iwConf.setIndexCommit(commit);}final String mergeScheduler = config.get(\"merge.scheduler\",\"org.apache.lucene.index.ConcurrentMergeScheduler\");if (mergeScheduler.equals(NoMergeScheduler.class.getName())) {iwConf.setMergeScheduler(NoMergeScheduler.INSTANCE);} else {try {iwConf.setMergeScheduler(Class.forName(mergeScheduler).asSubclass(MergeScheduler.class).getConstructor().newInstance());} catch (Exception e) {", "after": "public static IndexWriterConfig CreateWriterConfig(Config config, PerfRunData runData, OpenMode mode, IndexCommit commit){LuceneVersion version = (LuceneVersion)Enum.Parse(typeof(LuceneVersion), config.Get(\"writer.version\", LuceneVersion.LUCENE_48.ToString()));IndexWriterConfig iwConf = new IndexWriterConfig(version, runData.Analyzer);iwConf.OpenMode = mode;IndexDeletionPolicy indexDeletionPolicy = GetIndexDeletionPolicy(config);iwConf.IndexDeletionPolicy = indexDeletionPolicy;if (commit != null)iwConf.IndexCommit = commit;string mergeScheduler = config.Get(\"merge.scheduler\",\"Lucene.Net.Index.ConcurrentMergeScheduler, Lucene.Net\");#if !FEATURE_CONCURRENTMERGESCHEDULERif (mergeScheduler.Contains(\".ConcurrentMergeScheduler,\")){mergeScheduler = \"Lucene.Net.Index.TaskMergeScheduler, Lucene.Net\";}#endifType mergeSchedulerType = Type.GetType(mergeScheduler);if (mergeSchedulerType == null){throw new Exception(\"Unrecognized merge scheduler type '\" + mergeScheduler + \"'\");}else if (mergeSchedulerType.Equals(typeof(NoMergeScheduler))){iwConf.MergeScheduler = NoMergeScheduler.INSTANCE;}else{try{iwConf.MergeScheduler = (IMergeScheduler)Activator.CreateInstance(mergeSchedulerType);}catch (Exception e){" }, { "index": 6783, "before": "public GetCapacityReservationUsageResult getCapacityReservationUsage(GetCapacityReservationUsageRequest request) {request = beforeClientExecution(request);return executeGetCapacityReservationUsage(request);}", "after": "public virtual GetCapacityReservationUsageResponse GetCapacityReservationUsage(GetCapacityReservationUsageRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCapacityReservationUsageRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCapacityReservationUsageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6784, "before": "public void addRule(HSSFConditionalFormattingRule cfRule) {cfAggregate.addRule(cfRule.getCfRuleRecord());}", "after": "public void AddRule(HSSFConditionalFormattingRule cfRule){cfAggregate.AddRule(cfRule.CfRuleRecord);}" }, { "index": 6785, "before": "public DocState(boolean reuseFields, FieldType ft, FieldType bodyFt) {this.reuseFields = reuseFields;if (reuseFields) {fields = new HashMap<>();numericFields = new HashMap<>();fields.put(BODY_FIELD, new Field(BODY_FIELD, \"\", bodyFt));fields.put(TITLE_FIELD, new Field(TITLE_FIELD, \"\", ft));fields.put(DATE_FIELD, new Field(DATE_FIELD, \"\", ft));fields.put(ID_FIELD, new StringField(ID_FIELD, \"\", Field.Store.YES));fields.put(NAME_FIELD, new Field(NAME_FIELD, \"\", ft));numericFields.put(DATE_MSEC_FIELD, new LongPoint(DATE_MSEC_FIELD, 0L));numericFields.put(TIME_SEC_FIELD, new IntPoint(TIME_SEC_FIELD, 0));doc = new Document();} else {numericFields = null;fields = null;doc = null;}}", "after": "public DocState(bool reuseFields, FieldType ft, FieldType bodyFt){this.reuseFields = reuseFields;if (reuseFields){fields = new Dictionary();numericFields = new Dictionary();fields[BODY_FIELD] = new Field(BODY_FIELD, \"\", bodyFt);fields[TITLE_FIELD] = new Field(TITLE_FIELD, \"\", ft);fields[DATE_FIELD] = new Field(DATE_FIELD, \"\", ft);fields[ID_FIELD] = new StringField(ID_FIELD, \"\", Field.Store.YES);fields[NAME_FIELD] = new Field(NAME_FIELD, \"\", ft);numericFields[DATE_MSEC_FIELD] = new Int64Field(DATE_MSEC_FIELD, 0L, Field.Store.NO);numericFields[TIME_SEC_FIELD] = new Int32Field(TIME_SEC_FIELD, 0, Field.Store.NO);doc = new Document();}else{numericFields = null;fields = null;doc = null;}}" }, { "index": 6786, "before": "public char[] getValue() {return value;}", "after": "public virtual char[] GetValue(){return value;}" }, { "index": 6787, "before": "public void updateNameCommentRecordCache(final NameCommentRecord commentRecord) {if(commentRecords.containsValue(commentRecord)) {for(Entry entry : commentRecords.entrySet()) {if(entry.getValue().equals(commentRecord)) {commentRecords.remove(entry.getKey());break;}}}commentRecords.put(commentRecord.getNameText(), commentRecord);}", "after": "public void UpdateNameCommentRecordCache(NameCommentRecord commentRecord){if (commentRecords.ContainsValue(commentRecord)){foreach (KeyValuePair entry in commentRecords){if (entry.Value.Equals(commentRecord)){commentRecords.Remove(entry.Key);break;}}}commentRecords[commentRecord.NameText] = commentRecord;}" }, { "index": 6788, "before": "public CompleteMultipartUploadRequest(String vaultName, String uploadId, String archiveSize, String checksum) {setVaultName(vaultName);setUploadId(uploadId);setArchiveSize(archiveSize);setChecksum(checksum);}", "after": "public CompleteMultipartUploadRequest(string vaultName, string uploadId, string archiveSize, string checksum){_vaultName = vaultName;_uploadId = uploadId;_archiveSize = archiveSize;_checksum = checksum;}" }, { "index": 6789, "before": "public Query getQuery(Element n) throws ParserException {QueryBuilder builder = builders.get(n.getNodeName());if (builder == null) {throw new ParserException(\"No QueryObjectBuilder defined for node \" + n.getNodeName());}return builder.getQuery(n);}", "after": "public virtual Query GetQuery(XmlElement n){IQueryBuilder builder;if (!builders.TryGetValue(n.Name, out builder) || builder == null){throw new ParserException(\"No QueryObjectBuilder defined for node \" + n.Name);}return builder.GetQuery(n);}" }, { "index": 6790, "before": "public static double nper(double r, double y, double p, double f, boolean t) {double retval = 0;if (r == 0) {retval = -1 * (f + p) / y;} else {double r1 = r + 1;double ryr = (t ? r1 : 1) * y / r;double a1 = ((ryr - f) < 0)? Math.log(f - ryr): Math.log(ryr - f);double a2 = ((ryr - f) < 0)? Math.log(-p - ryr): Math.log(p + ryr);double a3 = Math.log(r1);retval = (a1 - a2) / a3;}return retval;}", "after": "public static double nper(double r, double y, double p, double f, bool t){double retval = 0;if (r == 0){retval = -1 * (f + p) / y;}else{double r1 = r + 1;double ryr = (t ? r1 : 1) * y / r;double a1 = ((ryr - f) < 0)? Math.Log(f - ryr): Math.Log(ryr - f);double a2 = ((ryr - f) < 0)? Math.Log(-p - ryr): Math.Log(p + ryr);double a3 = Math.Log(r1);retval = (a1 - a2) / a3;}return retval;}" }, { "index": 6791, "before": "public AndQueryNode(List clauses) {super(clauses);if ((clauses == null) || (clauses.size() == 0)) {throw new IllegalArgumentException(\"AND query must have at least one clause\");}}", "after": "public AndQueryNode(IList clauses): base(clauses){if ((clauses == null) || (clauses.Count == 0)){throw new ArgumentException(\"AND query must have at least one clause\");}}" }, { "index": 6792, "before": "public SeriesListRecord(short[] seriesNumbers) {field_1_seriesNumbers = (seriesNumbers == null) ? null : seriesNumbers.clone();}", "after": "public SeriesListRecord(short[] seriesNumbers){field_1_seriesNumbers = seriesNumbers;}" }, { "index": 6793, "before": "public String toString() {return value + \", \" + begin + \", \" + end;}", "after": "public override string ToString(){return value + \", \" + begin + \", \" + end;}" }, { "index": 6794, "before": "public String toString() {return \"\";}", "after": "public override string ToString(){return \"\";}" }, { "index": 6795, "before": "public DescribeActivitiesResult describeActivities(DescribeActivitiesRequest request) {request = beforeClientExecution(request);return executeDescribeActivities(request);}", "after": "public virtual DescribeActivitiesResponse DescribeActivities(DescribeActivitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeActivitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeActivitiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6796, "before": "public int writeTokenValueBytes(LittleEndianOutput out) {out.writeByte(_nColumns-1);out.writeShort(_nRows-1);ConstantValueParser.encode(out, _arrayValues);return 3 + ConstantValueParser.getEncodedSize(_arrayValues);}", "after": "public int WriteTokenValueBytes(ILittleEndianOutput out1){out1.WriteByte(_nColumns - 1);out1.WriteShort(_nRows - 1);ConstantValueParser.Encode(out1, _arrayValues);return 3 + ConstantValueParser.GetEncodedSize(_arrayValues);}" }, { "index": 6797, "before": "public DescribeFleetMetadataResult describeFleetMetadata(DescribeFleetMetadataRequest request) {request = beforeClientExecution(request);return executeDescribeFleetMetadata(request);}", "after": "public virtual DescribeFleetMetadataResponse DescribeFleetMetadata(DescribeFleetMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFleetMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFleetMetadataResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6798, "before": "public GlobalCluster modifyGlobalCluster(ModifyGlobalClusterRequest request) {request = beforeClientExecution(request);return executeModifyGlobalCluster(request);}", "after": "public virtual ModifyGlobalClusterResponse ModifyGlobalCluster(ModifyGlobalClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyGlobalClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyGlobalClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6799, "before": "public DescribeIdentityIdFormatResult describeIdentityIdFormat(DescribeIdentityIdFormatRequest request) {request = beforeClientExecution(request);return executeDescribeIdentityIdFormat(request);}", "after": "public virtual DescribeIdentityIdFormatResponse DescribeIdentityIdFormat(DescribeIdentityIdFormatRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIdentityIdFormatRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIdentityIdFormatResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6800, "before": "public ListUserGroupsResult listUserGroups(ListUserGroupsRequest request) {request = beforeClientExecution(request);return executeListUserGroups(request);}", "after": "public virtual ListUserGroupsResponse ListUserGroups(ListUserGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListUserGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListUserGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6801, "before": "public RevertCommand include(String name, AnyObjectId commit) {return include(new ObjectIdRef.Unpeeled(Storage.LOOSE, name,commit.copy()));}", "after": "public virtual NGit.Api.RevertCommand Include(string name, AnyObjectId commit){return Include(new ObjectIdRef.Unpeeled(RefStorage.LOOSE, name, commit.Copy()));}" }, { "index": 6802, "before": "public BeiderMorseFilter(TokenStream input, PhoneticEngine engine, LanguageSet languages) {super(input);this.engine = engine;this.languages = languages;}", "after": "public BeiderMorseFilter(TokenStream input, PhoneticEngine engine, LanguageSet languages): base(input){this.engine = engine;this.languages = languages;this.termAtt = AddAttribute();this.posIncAtt = AddAttribute();}" }, { "index": 6803, "before": "public ListUsersResult listUsers(ListUsersRequest request) {request = beforeClientExecution(request);return executeListUsers(request);}", "after": "public virtual ListUsersResponse ListUsers(ListUsersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListUsersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListUsersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6804, "before": "public PutUserPolicyRequest(String userName, String policyName, String policyDocument) {setUserName(userName);setPolicyName(policyName);setPolicyDocument(policyDocument);}", "after": "public PutUserPolicyRequest(string userName, string policyName, string policyDocument){_userName = userName;_policyName = policyName;_policyDocument = policyDocument;}" }, { "index": 6805, "before": "public synchronized void trimToSize() {super.trimToSize();}", "after": "public override void trimToSize(){lock (this){base.trimToSize();}}" }, { "index": 6806, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getWindowing());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Windowing);}" }, { "index": 6807, "before": "public AreaValueArray(TwoDEval ae) {super(ae.getWidth() * ae.getHeight());_ae = ae;_width = ae.getWidth();}", "after": "public AreaValueArray(TwoDEval ae): base(ae.Width * ae.Height){_ae = ae;_width = ae.Width;}" }, { "index": 6808, "before": "public RegisterOnPremisesInstanceResult registerOnPremisesInstance(RegisterOnPremisesInstanceRequest request) {request = beforeClientExecution(request);return executeRegisterOnPremisesInstance(request);}", "after": "public virtual RegisterOnPremisesInstanceResponse RegisterOnPremisesInstance(RegisterOnPremisesInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterOnPremisesInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterOnPremisesInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6809, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[DATALABEXT]\\n\");buffer.append(\" .rt =\").append(HexDump.shortToHex(rt)).append('\\n');buffer.append(\" .grbitFrt=\").append(HexDump.shortToHex(grbitFrt)).append('\\n');buffer.append(\" .unused =\").append(HexDump.toHex(unused)).append('\\n');buffer.append(\"[/DATALABEXT]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[DATALABEXT]\\n\");buffer.Append(\" .rt =\").Append(HexDump.ShortToHex(rt)).Append('\\n');buffer.Append(\" .grbitFrt=\").Append(HexDump.ShortToHex(grbitFrt)).Append('\\n');buffer.Append(\" .unused =\").Append(HexDump.ToHex(unused)).Append('\\n');buffer.Append(\"[/DATALABEXT]\\n\");return buffer.ToString();}" }, { "index": 6810, "before": "public LsRemoteCommand lsRemote() {return new LsRemoteCommand(repo);}", "after": "public virtual LsRemoteCommand LsRemote(){return new LsRemoteCommand(repo);}" }, { "index": 6811, "before": "public boolean isMerged() {return getStage() == STAGE_0;}", "after": "public virtual bool IsMerged(){return Stage == STAGE_0;}" }, { "index": 6812, "before": "public StopEntitiesDetectionJobResult stopEntitiesDetectionJob(StopEntitiesDetectionJobRequest request) {request = beforeClientExecution(request);return executeStopEntitiesDetectionJob(request);}", "after": "public virtual StopEntitiesDetectionJobResponse StopEntitiesDetectionJob(StopEntitiesDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopEntitiesDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopEntitiesDetectionJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6813, "before": "public final int arrayOffset() {return protectedArrayOffset();}", "after": "public sealed override int arrayOffset(){return protectedArrayOffset();}" }, { "index": 6814, "before": "public SetVaultNotificationsRequest(String accountId, String vaultName, VaultNotificationConfig vaultNotificationConfig) {setAccountId(accountId);setVaultName(vaultName);setVaultNotificationConfig(vaultNotificationConfig);}", "after": "public SetVaultNotificationsRequest(string accountId, string vaultName, VaultNotificationConfig vaultNotificationConfig){_accountId = accountId;_vaultName = vaultName;_vaultNotificationConfig = vaultNotificationConfig;}" }, { "index": 6815, "before": "public int addConditionalFormatting( ConditionalFormatting cf ) {return addConditionalFormatting((HSSFConditionalFormatting)cf);}", "after": "public int AddConditionalFormatting(IConditionalFormatting cf){CFRecordsAggregate cfraClone = ((HSSFConditionalFormatting)cf).CFRecordsAggregate.CloneCFAggregate();return _conditionalFormattingTable.Add(cfraClone);}" }, { "index": 6816, "before": "public MemAreaPtg(LittleEndianInput in) {field_1_reserved = in.readInt();field_2_subex_len = in.readShort();}", "after": "public MemAreaPtg(ILittleEndianInput in1){field_1_reserved = in1.ReadInt();field_2_subex_len = in1.ReadShort();}" }, { "index": 6817, "before": "public DescribeScalingActivitiesResult describeScalingActivities() {return describeScalingActivities(new DescribeScalingActivitiesRequest());}", "after": "public virtual DescribeScalingActivitiesResponse DescribeScalingActivities(){return DescribeScalingActivities(new DescribeScalingActivitiesRequest());}" }, { "index": 6818, "before": "public StopApplicationResult stopApplication(StopApplicationRequest request) {request = beforeClientExecution(request);return executeStopApplication(request);}", "after": "public virtual StopApplicationResponse StopApplication(StopApplicationRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopApplicationRequestMarshaller.Instance;options.ResponseUnmarshaller = StopApplicationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6819, "before": "public void seekExact(long ord) throws IOException {throw new UnsupportedOperationException();}", "after": "public override void SeekExact(long ord){throw new NotSupportedException();}" }, { "index": 6820, "before": "public DescribeLocalGatewayRouteTableVpcAssociationsResult describeLocalGatewayRouteTableVpcAssociations(DescribeLocalGatewayRouteTableVpcAssociationsRequest request) {request = beforeClientExecution(request);return executeDescribeLocalGatewayRouteTableVpcAssociations(request);}", "after": "public virtual DescribeLocalGatewayRouteTableVpcAssociationsResponse DescribeLocalGatewayRouteTableVpcAssociations(DescribeLocalGatewayRouteTableVpcAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLocalGatewayRouteTableVpcAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLocalGatewayRouteTableVpcAssociationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6821, "before": "public ErrorEval getErrorEval() {return _errorEval;}", "after": "public ErrorEval GetErrorEval(){return _errorEval;}" }, { "index": 6822, "before": "public DeleteNetworkInterfaceResult deleteNetworkInterface(DeleteNetworkInterfaceRequest request) {request = beforeClientExecution(request);return executeDeleteNetworkInterface(request);}", "after": "public virtual DeleteNetworkInterfaceResponse DeleteNetworkInterface(DeleteNetworkInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNetworkInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNetworkInterfaceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6823, "before": "public Group(String path, String groupName, String groupId, String arn, java.util.Date createDate) {setPath(path);setGroupName(groupName);setGroupId(groupId);setArn(arn);setCreateDate(createDate);}", "after": "public Group(string path, string groupName, string groupId, string arn, DateTime createDate){_path = path;_groupName = groupName;_groupId = groupId;_arn = arn;_createDate = createDate;}" }, { "index": 6824, "before": "public void removeName(int nameIndex){if (linkTable.getNumNames() > nameIndex) {int idx = findFirstRecordLocBySid(NameRecord.sid);records.remove(idx + nameIndex);linkTable.removeName(nameIndex);}}", "after": "public void RemoveName(int namenum){if (linkTable.NumNames > namenum){int idx = FindFirstRecordLocBySid(NameRecord.sid);records.Remove(idx + namenum);linkTable.RemoveName(namenum);}}" }, { "index": 6825, "before": "public BaseFragListBuilder( int margin ){if( margin < 0 )throw new IllegalArgumentException( \"margin(\" + margin + \") is too small. It must be 0 or higher.\" );this.margin = margin;this.minFragCharSize = Math.max( 1, margin * MIN_FRAG_CHAR_SIZE_FACTOR );}", "after": "public BaseFragListBuilder(int margin){if (margin < 0)throw new ArgumentException(\"margin(\" + margin + \") is too small. It must be 0 or higher.\");this.margin = margin;this.minFragCharSize = Math.Max(1, margin * MIN_FRAG_CHAR_SIZE_FACTOR);}" }, { "index": 6826, "before": "public Reader create(Reader input) {return new PatternReplaceCharFilter(pattern, replacement, input);}", "after": "public override TextReader Create(TextReader input){#pragma warning disable 612, 618return new PatternReplaceCharFilter(pattern, replacement, maxBlockChars, blockDelimiters, input);#pragma warning restore 612, 618}" }, { "index": 6827, "before": "@Override public Iterator iterator() {final Iterator> iterator = delegate.entrySet().iterator();return new Iterator() {Entry entry;", "after": "public override java.util.Iterator iterator(){return new java.util.Hashtable.KeyIterator(this._enclosing);}" }, { "index": 6828, "before": "public CreatePushTemplateResult createPushTemplate(CreatePushTemplateRequest request) {request = beforeClientExecution(request);return executeCreatePushTemplate(request);}", "after": "public virtual CreatePushTemplateResponse CreatePushTemplate(CreatePushTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePushTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePushTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6829, "before": "public void removeEditTime() {remove1stProperty(PropertyIDMap.PID_EDITTIME);}", "after": "public void RemoveEditTime(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_EDITTIME);}" }, { "index": 6830, "before": "public ListReusableDelegationSetsResult listReusableDelegationSets() {return listReusableDelegationSets(new ListReusableDelegationSetsRequest());}", "after": "public virtual ListReusableDelegationSetsResponse ListReusableDelegationSets(){return ListReusableDelegationSets(new ListReusableDelegationSetsRequest());}" }, { "index": 6831, "before": "public boolean equals(Object obj) {if (obj == this) {return true;}if (obj instanceof AttributeSource) {AttributeSource other = (AttributeSource) obj;if (hasAttributes()) {if (!other.hasAttributes()) {return false;}if (this.attributeImpls.size() != other.attributeImpls.size()) {return false;}State thisState = this.getCurrentState();State otherState = other.getCurrentState();while (thisState != null && otherState != null) {if (otherState.attribute.getClass() != thisState.attribute.getClass() || !otherState.attribute.equals(thisState.attribute)) {return false;}thisState = thisState.next;otherState = otherState.next;}return true;} else {return !other.hasAttributes();}} elsereturn false;}", "after": "public override bool Equals(object obj){if (obj == this){return true;}if (obj is AttributeSource other){if (HasAttributes){if (!other.HasAttributes){return false;}if (this.attributeImpls.Count != other.attributeImpls.Count){return false;}State thisState = this.GetCurrentState();State otherState = other.GetCurrentState();while (thisState != null && otherState != null){if (otherState.attribute.GetType() != thisState.attribute.GetType() || !otherState.attribute.Equals(thisState.attribute)){return false;}thisState = thisState.next;otherState = otherState.next;}return true;}else{return !other.HasAttributes;}}else{return false;}}" }, { "index": 6832, "before": "public static String toText(double value) {return rawDoubleBitsToText(Double.doubleToLongBits(value));}", "after": "public static String ToText(double value){return RawDoubleBitsToText(BitConverter.DoubleToInt64Bits(value));}" }, { "index": 6833, "before": "public void notifySetFormula(Cell cell) {_bookEvaluator.notifyUpdateCell(new HSSFEvaluationCell((HSSFCell)cell));}", "after": "public void NotifySetFormula(ICell cell){_bookEvaluator.NotifyUpdateCell(new HSSFEvaluationCell(cell));}" }, { "index": 6834, "before": "public Ref getRef() {return ref;}", "after": "public virtual Ref GetRef(){return @ref;}" }, { "index": 6835, "before": "public String toString() {StringBuilder sb = new StringBuilder();for (Block b : blocks) {sb.append(b.chars, 0, b.length);}return sb.toString();}", "after": "public override string ToString(){StringBuilder sb = new StringBuilder();foreach (Block b in blocks){sb.Append(b.chars, 0, b.length);}return sb.ToString();}" }, { "index": 6836, "before": "public QueryNodeError(Message message) {super(message.getKey());this.message = message;}", "after": "public QueryNodeError(IMessage message): base(message.Key){this.message = message;}" }, { "index": 6837, "before": "public GetRelationalDatabaseMasterUserPasswordResult getRelationalDatabaseMasterUserPassword(GetRelationalDatabaseMasterUserPasswordRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseMasterUserPassword(request);}", "after": "public virtual GetRelationalDatabaseMasterUserPasswordResponse GetRelationalDatabaseMasterUserPassword(GetRelationalDatabaseMasterUserPasswordRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseMasterUserPasswordRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseMasterUserPasswordResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6838, "before": "public LuceneDictionary(IndexReader reader, String field) {this.reader = reader;this.field = field;}", "after": "public LuceneDictionary(IndexReader reader, string field){this.reader = reader;this.field = field;}" }, { "index": 6839, "before": "public CreateRuleResult createRule(CreateRuleRequest request) {request = beforeClientExecution(request);return executeCreateRule(request);}", "after": "public virtual CreateRuleResponse CreateRule(CreateRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6840, "before": "public void serialize(LittleEndianOutput out) {out.writeInt(errorCheck);}", "after": "public void Serialize(ILittleEndianOutput out1){out1.WriteInt(errorCheck);}" }, { "index": 6841, "before": "public DescribeAlarmHistoryResult describeAlarmHistory() {return describeAlarmHistory(new DescribeAlarmHistoryRequest());}", "after": "public virtual DescribeAlarmHistoryResponse DescribeAlarmHistory(){return DescribeAlarmHistory(new DescribeAlarmHistoryRequest());}" }, { "index": 6842, "before": "public DescribeVpcClassicLinkDnsSupportResult describeVpcClassicLinkDnsSupport(DescribeVpcClassicLinkDnsSupportRequest request) {request = beforeClientExecution(request);return executeDescribeVpcClassicLinkDnsSupport(request);}", "after": "public virtual DescribeVpcClassicLinkDnsSupportResponse DescribeVpcClassicLinkDnsSupport(DescribeVpcClassicLinkDnsSupportRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcClassicLinkDnsSupportRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcClassicLinkDnsSupportResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6843, "before": "public static char toLowerCase(char c) {return c <= 'Z' ? LC[c] : c;}", "after": "public static char ToLowerCase(char c){return c <= 'Z' ? LC[c] : c;}" }, { "index": 6844, "before": "public String[] split(CharSequence input) {return split(input, 0);}", "after": "public string[] split(java.lang.CharSequence input){return split(input, 0);}" }, { "index": 6845, "before": "public synchronized void execute() throws Exception {if (executed) {throw new IllegalStateException(\"Benchmark was already executed\");}executed = true;runData.setStartTimeMillis();algorithm.execute();}", "after": "public virtual void Execute(){lock (this){if (executed){throw new InvalidOperationException(\"Benchmark was already executed\");}executed = true;runData.SetStartTimeMillis();algorithm.Execute();}}" }, { "index": 6846, "before": "public final V get() {return value;}", "after": "public V get() {return value;}" }, { "index": 6847, "before": "public VCenterRecord clone() {return copy();}", "after": "public override Object Clone(){VCenterRecord rec = new VCenterRecord();rec.field_1_vcenter = field_1_vcenter;return rec;}" }, { "index": 6848, "before": "public void publish(Revision revision) throws IOException {throw new UnsupportedOperationException(\"this replicator implementation does not support remote publishing of revisions\");}", "after": "public virtual void Publish(IRevision revision){throw new NotSupportedException(\"this replicator implementation does not support remote publishing of revisions\");}" }, { "index": 6849, "before": "public boolean shouldBeRecursive() {return a.shouldBeRecursive() || b.shouldBeRecursive();}", "after": "public override bool ShouldBeRecursive(){return a.ShouldBeRecursive() || b.ShouldBeRecursive();}" }, { "index": 6850, "before": "public boolean equals(Object obj) {if (!(obj instanceof URIish))return false;final URIish b = (URIish) obj;if (!eq(getScheme(), b.getScheme()))return false;if (!eq(getUser(), b.getUser()))return false;if (!eq(getPass(), b.getPass()))return false;if (!eq(getHost(), b.getHost()))return false;if (getPort() != b.getPort())return false;if (!eq(getPath(), b.getPath()))return false;return true;}", "after": "public override bool Equals(object obj){if (!(obj is NGit.Transport.URIish)){return false;}NGit.Transport.URIish b = (NGit.Transport.URIish)obj;if (!Eq(GetScheme(), b.GetScheme())){return false;}if (!Eq(GetUser(), b.GetUser())){return false;}if (!Eq(GetPass(), b.GetPass())){return false;}if (!Eq(GetHost(), b.GetHost())){return false;}if (GetPort() != b.GetPort()){return false;}if (!Eq(GetPath(), b.GetPath())){return false;}return true;}" }, { "index": 6851, "before": "public TokenStream create(TokenStream input) {return new LowerCaseFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new LowerCaseFilter(m_luceneMatchVersion, input);}" }, { "index": 6852, "before": "public String toString() {return \"IndexRevision version=\" + version + \" files=\" + sourceFiles;}", "after": "public override string ToString(){return \"IndexRevision version=\" + Version + \" files=\" + SourceFiles;}" }, { "index": 6853, "before": "public static double coerceValueToDouble(ValueEval ev) throws EvaluationException {if (ev == BlankEval.instance) {return 0.0;}if (ev instanceof NumericValueEval) {return ((NumericValueEval)ev).getNumberValue();}if (ev instanceof StringEval) {String sval = ((StringEval) ev).getStringValue();Double dd = parseDouble(sval);if(dd == null) dd = parseDateTime(sval);if (dd == null) {throw EvaluationException.invalidValue();}return dd.doubleValue();}throw new RuntimeException(\"Unexpected arg eval type (\" + ev.getClass().getName() + \")\");}", "after": "public static double CoerceValueToDouble(ValueEval ev){if (ev == BlankEval.instance){return 0.0;}if (ev is NumericValueEval){return ((NumericValueEval)ev).NumberValue;}if (ev is StringEval){double dd = ParseDouble(((StringEval)ev).StringValue);if (double.IsNaN(dd)){throw EvaluationException.InvalidValue();}return dd;}throw new Exception(\"Unexpected arg eval type (\" + ev.GetType().Name + \")\");}" }, { "index": 6854, "before": "public SetQueueAttributesResult setQueueAttributes(SetQueueAttributesRequest request) {request = beforeClientExecution(request);return executeSetQueueAttributes(request);}", "after": "public virtual SetQueueAttributesResponse SetQueueAttributes(SetQueueAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetQueueAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = SetQueueAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6855, "before": "public E getLast() {Link last = voidLink.previous;if (last != voidLink) {return last.data;}throw new NoSuchElementException();}", "after": "public virtual E getLast(){java.util.LinkedList.Link last = voidLink.previous;if (last != voidLink){return last.data;}throw new java.util.NoSuchElementException();}" }, { "index": 6856, "before": "public boolean contains(Object o) {return ConcurrentHashMap.this.containsKey(o);}", "after": "public override bool contains(object o){return this._enclosing.containsKey(o);}" }, { "index": 6857, "before": "public CreateLoadBalancerListenersResult createLoadBalancerListeners(CreateLoadBalancerListenersRequest request) {request = beforeClientExecution(request);return executeCreateLoadBalancerListeners(request);}", "after": "public virtual CreateLoadBalancerListenersResponse CreateLoadBalancerListeners(CreateLoadBalancerListenersRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLoadBalancerListenersRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLoadBalancerListenersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6858, "before": "public RebootWorkspacesResult rebootWorkspaces(RebootWorkspacesRequest request) {request = beforeClientExecution(request);return executeRebootWorkspaces(request);}", "after": "public virtual RebootWorkspacesResponse RebootWorkspaces(RebootWorkspacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebootWorkspacesRequestMarshaller.Instance;options.ResponseUnmarshaller = RebootWorkspacesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6859, "before": "@Override public final boolean equals(Object o) {if (!(o instanceof Entry)) {return false;}Entry e = (Entry) o;return key.equals(e.getKey()) && value.equals(e.getValue());}", "after": "public sealed override bool Equals(object o){if (!(o is java.util.MapClass.Entry)){return false;}java.util.MapClass.Entry e = (java.util.MapClass.Entry)o;return key.Equals(e.getKey()) && value.Equals(e.getValue());}" }, { "index": 6860, "before": "public DeleteCustomerGatewayRequest(String customerGatewayId) {setCustomerGatewayId(customerGatewayId);}", "after": "public DeleteCustomerGatewayRequest(string customerGatewayId){_customerGatewayId = customerGatewayId;}" }, { "index": 6861, "before": "public String toString() {return getFileMode() + \" \" + getLength() + \" \"+ getLastModifiedInstant()+ \" \" + getObjectId() + \" \" + getStage() + \" \"+ getPathString() + \"\\n\";}", "after": "public override string ToString(){return FileMode + \" \" + Length + \" \" + LastModified + \" \" + GetObjectId() + \" \" +Stage + \" \" + PathString + \"\\n\";}" }, { "index": 6862, "before": "public StartDocumentAnalysisResult startDocumentAnalysis(StartDocumentAnalysisRequest request) {request = beforeClientExecution(request);return executeStartDocumentAnalysis(request);}", "after": "public virtual StartDocumentAnalysisResponse StartDocumentAnalysis(StartDocumentAnalysisRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDocumentAnalysisRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDocumentAnalysisResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6863, "before": "public UpdatePhoneNumberSettingsResult updatePhoneNumberSettings(UpdatePhoneNumberSettingsRequest request) {request = beforeClientExecution(request);return executeUpdatePhoneNumberSettings(request);}", "after": "public virtual UpdatePhoneNumberSettingsResponse UpdatePhoneNumberSettings(UpdatePhoneNumberSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePhoneNumberSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePhoneNumberSettingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6864, "before": "public BatchStopUpdateActionResult batchStopUpdateAction(BatchStopUpdateActionRequest request) {request = beforeClientExecution(request);return executeBatchStopUpdateAction(request);}", "after": "public virtual BatchStopUpdateActionResponse BatchStopUpdateAction(BatchStopUpdateActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchStopUpdateActionRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchStopUpdateActionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6865, "before": "public void setText(final char array[], int start, int length) {this.array = array;this.start = start;this.index = start;this.length = length;this.limit = start + length;}", "after": "public void SetText(char[] array, int start, int length){this.array = array;this.start = start;this.index = start;this.length = length;this.limit = start + length;}" }, { "index": 6866, "before": "public CreateHyperParameterTuningJobResult createHyperParameterTuningJob(CreateHyperParameterTuningJobRequest request) {request = beforeClientExecution(request);return executeCreateHyperParameterTuningJob(request);}", "after": "public virtual CreateHyperParameterTuningJobResponse CreateHyperParameterTuningJob(CreateHyperParameterTuningJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateHyperParameterTuningJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateHyperParameterTuningJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6867, "before": "public TermsEnumIndex(TermsEnum termsEnum, int subIndex) {this.termsEnum = termsEnum;this.subIndex = subIndex;}", "after": "public TermsEnumIndex(TermsEnum termsEnum, int subIndex){this.TermsEnum = termsEnum;this.SubIndex = subIndex;}" }, { "index": 6868, "before": "public UnarchiveFindingsResult unarchiveFindings(UnarchiveFindingsRequest request) {request = beforeClientExecution(request);return executeUnarchiveFindings(request);}", "after": "public virtual UnarchiveFindingsResponse UnarchiveFindings(UnarchiveFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UnarchiveFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = UnarchiveFindingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6869, "before": "public void setSort(SortField field) {this.fields = new SortField[] { field };}", "after": "public virtual void SetSort(SortField field){this.fields = new SortField[] { field };}" }, { "index": 6870, "before": "public CreateBusinessReportScheduleResult createBusinessReportSchedule(CreateBusinessReportScheduleRequest request) {request = beforeClientExecution(request);return executeCreateBusinessReportSchedule(request);}", "after": "public virtual CreateBusinessReportScheduleResponse CreateBusinessReportSchedule(CreateBusinessReportScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateBusinessReportScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateBusinessReportScheduleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6871, "before": "public GetIPSetResult getIPSet(GetIPSetRequest request) {request = beforeClientExecution(request);return executeGetIPSet(request);}", "after": "public virtual GetIPSetResponse GetIPSet(GetIPSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIPSetRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIPSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6872, "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, getPropertiesSize() );int pos = offset + 8;for ( EscherProperty property : properties ){pos += property.serializeSimplePart( data, pos );}for ( EscherProperty property : properties ){pos += property.serializeComplexPart( data, pos );}listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );return pos - offset;}", "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, PropertiesSize);int pos = offset + 8;foreach (EscherProperty property in properties){pos += property.SerializeSimplePart(data, pos);}foreach (EscherProperty property in properties){pos += property.SerializeComplexPart(data, pos);}listener.AfterRecordSerialize(pos, RecordId, pos - offset, this);return pos - offset;}" }, { "index": 6873, "before": "public ListTagsForVaultResult listTagsForVault(ListTagsForVaultRequest request) {request = beforeClientExecution(request);return executeListTagsForVault(request);}", "after": "public virtual ListTagsForVaultResponse ListTagsForVault(ListTagsForVaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTagsForVaultRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTagsForVaultResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6874, "before": "public long getDeltaCacheSize() {return deltaCacheSize;}", "after": "public virtual long GetDeltaCacheSize(){return deltaCacheSize;}" }, { "index": 6875, "before": "public final int remaining() {return limit - position;}", "after": "public int remaining(){return _limit - _position;}" }, { "index": 6876, "before": "public DescribeReservedInstancesResult describeReservedInstances(DescribeReservedInstancesRequest request) {request = beforeClientExecution(request);return executeDescribeReservedInstances(request);}", "after": "public virtual DescribeReservedInstancesResponse DescribeReservedInstances(DescribeReservedInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6877, "before": "public PostRealTimeDeviceDataRequest() {super(\"industry-brain\", \"2018-07-12\", \"PostRealTimeDeviceData\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public PostRealTimeDeviceDataRequest(): base(\"industry-brain\", \"2018-07-12\", \"PostRealTimeDeviceData\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 6878, "before": "public ScandinavianFoldingFilter(TokenStream input) {super(input);}", "after": "public ScandinavianFoldingFilter(TokenStream input): base(input){charTermAttribute = AddAttribute();}" }, { "index": 6879, "before": "public SetLoadBalancerPoliciesForBackendServerResult setLoadBalancerPoliciesForBackendServer(SetLoadBalancerPoliciesForBackendServerRequest request) {request = beforeClientExecution(request);return executeSetLoadBalancerPoliciesForBackendServer(request);}", "after": "public virtual SetLoadBalancerPoliciesForBackendServerResponse SetLoadBalancerPoliciesForBackendServer(SetLoadBalancerPoliciesForBackendServerRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetLoadBalancerPoliciesForBackendServerRequestMarshaller.Instance;options.ResponseUnmarshaller = SetLoadBalancerPoliciesForBackendServerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6880, "before": "public ImportSnapshotResult importSnapshot(ImportSnapshotRequest request) {request = beforeClientExecution(request);return executeImportSnapshot(request);}", "after": "public virtual ImportSnapshotResponse ImportSnapshot(ImportSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6881, "before": "public void addCellRangeAddress(CellRangeAddress cra) {_list.add(cra);}", "after": "public void AddCellRangeAddress(CellRangeAddress cra){_list.Add(cra);}" }, { "index": 6882, "before": "public IntBuffer put(int[] src, int srcOffset, int intCount) {byteBuffer.limit(limit * SizeOf.INT);byteBuffer.position(position * SizeOf.INT);if (byteBuffer instanceof ReadWriteDirectByteBuffer) {((ReadWriteDirectByteBuffer) byteBuffer).put(src, srcOffset, intCount);} else {((ReadWriteHeapByteBuffer) byteBuffer).put(src, srcOffset, intCount);}this.position += intCount;return this;}", "after": "public override java.nio.IntBuffer put(int[] src, int srcOffset, int intCount){byteBuffer.limit(_limit * libcore.io.SizeOf.INT);byteBuffer.position(_position * libcore.io.SizeOf.INT);if (byteBuffer is java.nio.ReadWriteDirectByteBuffer){((java.nio.ReadWriteDirectByteBuffer)byteBuffer).put(src, srcOffset, intCount);}else{((java.nio.ReadWriteHeapByteBuffer)byteBuffer).put(src, srcOffset, intCount);}this._position += intCount;return this;}" }, { "index": 6883, "before": "public DeleteInsightRulesResult deleteInsightRules(DeleteInsightRulesRequest request) {request = beforeClientExecution(request);return executeDeleteInsightRules(request);}", "after": "public virtual DeleteInsightRulesResponse DeleteInsightRules(DeleteInsightRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteInsightRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteInsightRulesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6884, "before": "public void setStorageId(int storageId) {field_5_stream_id = storageId;}", "after": "public void SetStorageId(int storageId){field_5_stream_id = storageId;}" }, { "index": 6885, "before": "public StartVpcEndpointServicePrivateDnsVerificationResult startVpcEndpointServicePrivateDnsVerification(StartVpcEndpointServicePrivateDnsVerificationRequest request) {request = beforeClientExecution(request);return executeStartVpcEndpointServicePrivateDnsVerification(request);}", "after": "public virtual StartVpcEndpointServicePrivateDnsVerificationResponse StartVpcEndpointServicePrivateDnsVerification(StartVpcEndpointServicePrivateDnsVerificationRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartVpcEndpointServicePrivateDnsVerificationRequestMarshaller.Instance;options.ResponseUnmarshaller = StartVpcEndpointServicePrivateDnsVerificationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6886, "before": "public SSTRecord() {field_1_num_strings = 0;field_2_num_unique_strings = 0;field_3_strings = new IntMapper<>();deserializer = new SSTDeserializer(field_3_strings);}", "after": "public SSTRecord(){field_1_num_strings = 0;field_2_num_unique_strings = 0;field_3_strings = new IntMapper();deserializer = new SSTDeserializer(field_3_strings);}" }, { "index": 6887, "before": "public void clearData() {points.clear();}", "after": "public virtual void ClearData(){points.Clear();}" }, { "index": 6888, "before": "public void visitContainedRecords(RecordVisitor rv) {PositionTrackingVisitor stv = new PositionTrackingVisitor(rv, 0);final int blockCount = getRowBlockCount();for (int blockIndex = 0; blockIndex < blockCount; blockIndex++) {int pos=0;final int rowBlockSize = visitRowRecordsForBlock(blockIndex, rv);pos += rowBlockSize;final int startRowNumber = getStartRowNumberForBlock(blockIndex);final int endRowNumber = getEndRowNumberForBlock(blockIndex);final List cellOffsets = new ArrayList<>();int cellRefOffset = (rowBlockSize - RowRecord.ENCODED_SIZE);for (int row = startRowNumber; row <= endRowNumber; row++) {if (_valuesAgg.rowHasCells(row)) {stv.setPosition(0);_valuesAgg.visitCellsForRow(row, stv);int rowCellSize = stv.getPosition();pos += rowCellSize;cellOffsets.add((short)cellRefOffset);cellRefOffset = rowCellSize;}}rv.visitRecord(new DBCellRecord(pos, shortListToArray(cellOffsets)));}_unknownRecords.forEach(rv::visitRecord);}", "after": "public override void VisitContainedRecords(RecordVisitor rv){PositionTrackingVisitor stv = new PositionTrackingVisitor(rv, 0);int blockCount = this.RowBlockCount;for (int blockIndex = 0; blockIndex < blockCount; blockIndex++){int pos = 0;int rowBlockSize = VisitRowRecordsForBlock(blockIndex, rv);pos += rowBlockSize;int startRowNumber = GetStartRowNumberForBlock(blockIndex);int endRowNumber = GetEndRowNumberForBlock(blockIndex);DBCellRecord cellRecord = new DBCellRecord();int cellRefOffset = (rowBlockSize - RowRecord.ENCODED_SIZE);for (int row = startRowNumber; row <= endRowNumber; row++){if (_valuesAgg.RowHasCells(row)){stv.Position = 0;_valuesAgg.VisitCellsForRow(row, stv);int rowCellSize = stv.Position;pos += rowCellSize;cellRecord.AddCellOffset((short)cellRefOffset);cellRefOffset = rowCellSize;}}cellRecord.RowOffset = (pos);rv.VisitRecord(cellRecord);}for (int i = 0; i < _unknownRecords.Count; i++){rv.VisitRecord((Record)_unknownRecords[i]);}}" }, { "index": 6889, "before": "public ListDatasetsResult listDatasets(ListDatasetsRequest request) {request = beforeClientExecution(request);return executeListDatasets(request);}", "after": "public virtual ListDatasetsResponse ListDatasets(ListDatasetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDatasetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDatasetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6890, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2) {return evaluate(srcRowIndex, srcColumnIndex, arg0, arg1, arg2, DEFAULT_ARG3);}", "after": "public ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2){return Evaluate(srcRowIndex, srcColumnIndex, arg0, arg1, arg2, DEFAULT_ARG3);}" }, { "index": 6891, "before": "public int size() {return a.length;}", "after": "public override int size(){return a.Length;}" }, { "index": 6892, "before": "public HSSFCell getCell(int cellnum) {return getCell(cellnum, book.getMissingCellPolicy());}", "after": "public ICell GetCell(int cellnum){return GetCell(cellnum, book.MissingCellPolicy);}" }, { "index": 6893, "before": "public String toFormulaString(FormulaRenderingWorkbook book) {return ExternSheetNameResolver.prependSheetName(book, field_1_index_extern_sheet, FormulaError.REF.getString());}", "after": "public String ToFormulaString(IFormulaRenderingWorkbook book){return ExternSheetNameResolver.PrependSheetName(book, field_1_index_extern_sheet,HSSFErrorConstants.GetText(HSSFErrorConstants.ERROR_REF));}" }, { "index": 6894, "before": "public int getBucket(CharSequence key) {return getExactMatchStartingFromRootArc(0, new BytesRef(key));}", "after": "public virtual int GetBucket(string key){return GetExactMatchStartingFromRootArc(0, new BytesRef(key));}" }, { "index": 6895, "before": "public DeleteAuthorizerResult deleteAuthorizer(DeleteAuthorizerRequest request) {request = beforeClientExecution(request);return executeDeleteAuthorizer(request);}", "after": "public virtual DeleteAuthorizerResponse DeleteAuthorizer(DeleteAuthorizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAuthorizerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAuthorizerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6896, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE) {String octal = OperandResolver.coerceValueToString(numberVE);try {return new NumberEval(BaseNumberUtils.convertToDecimal(octal, OCTAL_BASE, MAX_NUMBER_OF_PLACES));} catch (IllegalArgumentException e) {return ErrorEval.NUM_ERROR;}}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE){String octal = OperandResolver.CoerceValueToString(numberVE);try{return new NumberEval(BaseNumberUtils.ConvertToDecimal(octal, OCTAL_BASE, MAX_NUMBER_OF_PLACES));}catch (ArgumentException){return ErrorEval.NUM_ERROR;}}" }, { "index": 6897, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_hcenter);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_hcenter);}" }, { "index": 6898, "before": "public EnableEnhancedMonitoringResult enableEnhancedMonitoring(EnableEnhancedMonitoringRequest request) {request = beforeClientExecution(request);return executeEnableEnhancedMonitoring(request);}", "after": "public virtual EnableEnhancedMonitoringResponse EnableEnhancedMonitoring(EnableEnhancedMonitoringRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableEnhancedMonitoringRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableEnhancedMonitoringResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6899, "before": "public ListDeliveryStreamsResult listDeliveryStreams(ListDeliveryStreamsRequest request) {request = beforeClientExecution(request);return executeListDeliveryStreams(request);}", "after": "public virtual ListDeliveryStreamsResponse ListDeliveryStreams(ListDeliveryStreamsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeliveryStreamsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeliveryStreamsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6900, "before": "public DetachVolumeResult detachVolume(DetachVolumeRequest request) {request = beforeClientExecution(request);return executeDetachVolume(request);}", "after": "public virtual DetachVolumeResponse DetachVolume(DetachVolumeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachVolumeRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachVolumeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6901, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_15_pattern_style);out.writeShort(field_16_pattern_color_indexes);}", "after": "public void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_15_pattern_style);out1.WriteShort(field_16_pattern_color_indexes);}" }, { "index": 6902, "before": "public void setShowSeriesKey(boolean value){field_1_options = showSeriesKey.setShortBoolean(field_1_options, value);}", "after": "public void SetShowSeriesKey(bool value){field_1_options = showSeriesKey.SetShortBoolean(field_1_options, value);}" }, { "index": 6903, "before": "public GermanNormalizationFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public GermanNormalizationFilterFactory(IDictionary args) : base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 6904, "before": "public static boolean allSubsetsEqual(Collection altsets) {Iterator it = altsets.iterator();BitSet first = it.next();while ( it.hasNext() ) {BitSet next = it.next();if ( !next.equals(first) ) return false;}return true;}", "after": "public static bool AllSubsetsEqual(IEnumerable altsets){IEnumerator it = altsets.GetEnumerator();it.MoveNext();BitSet first = it.Current;while (it.MoveNext()){BitSet next = it.Current;if (!next.Equals(first)){return false;}}return true;}" }, { "index": 6905, "before": "public CellRangeAddressList(RecordInputStream in) {this();int nItems = in.readUShort();for (int k = 0; k < nItems; k++) {_list.add(new CellRangeAddress(in));}}", "after": "public CellRangeAddressList(RecordInputStream in1){int nItems = in1.ReadUShort();_list = new ArrayList(nItems);for (int k = 0; k < nItems; k++){_list.Add(new CellRangeAddress(in1));}}" }, { "index": 6906, "before": "public boolean markSupported() {return in.markSupported();}", "after": "public override bool MarkSupported(){return @in.MarkSupported();}" }, { "index": 6907, "before": "public DBInstance restoreDBInstanceFromS3(RestoreDBInstanceFromS3Request request) {request = beforeClientExecution(request);return executeRestoreDBInstanceFromS3(request);}", "after": "public virtual RestoreDBInstanceFromS3Response RestoreDBInstanceFromS3(RestoreDBInstanceFromS3Request request){var options = new InvokeOptions();options.RequestMarshaller = RestoreDBInstanceFromS3RequestMarshaller.Instance;options.ResponseUnmarshaller = RestoreDBInstanceFromS3ResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6908, "before": "public boolean equals(Object other) {if (!(other instanceof FloatBuffer)) {return false;}FloatBuffer otherBuffer = (FloatBuffer) other;if (remaining() != otherBuffer.remaining()) {return false;}int myPosition = position;int otherPosition = otherBuffer.position;boolean equalSoFar = true;while (equalSoFar && (myPosition < limit)) {float a = get(myPosition++);float b = otherBuffer.get(otherPosition++);equalSoFar = a == b || (a != a && b != b);}return equalSoFar;}", "after": "public override bool Equals(object other){if (!(other is java.nio.FloatBuffer)){return false;}java.nio.FloatBuffer otherBuffer = (java.nio.FloatBuffer)other;if (remaining() != otherBuffer.remaining()){return false;}int myPosition = _position;int otherPosition = otherBuffer._position;bool equalSoFar = true;while (equalSoFar && (myPosition < _limit)){float a = get(myPosition++);float b = otherBuffer.get(otherPosition++);equalSoFar = a == b || (a != a && b != b);}return equalSoFar;}" }, { "index": 6909, "before": "public static void fill(float[] array, int start, int end, float value) {Arrays.checkStartAndEnd(array.length, start, end);for (int i = start; i < end; i++) {array[i] = value;}}", "after": "public static void fill(float[] array, int start, int end, float value){java.util.Arrays.checkStartAndEnd(array.Length, start, end);{for (int i = start; i < end; i++){array[i] = value;}}}" }, { "index": 6910, "before": "public DescribeReceiptRuleResult describeReceiptRule(DescribeReceiptRuleRequest request) {request = beforeClientExecution(request);return executeDescribeReceiptRule(request);}", "after": "public virtual DescribeReceiptRuleResponse DescribeReceiptRule(DescribeReceiptRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReceiptRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReceiptRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6911, "before": "public String toString() {return super.toString()+\" \"+prefix;}", "after": "public override string ToString(){return base.ToString() + \" \" + m_prefix;}" }, { "index": 6912, "before": "public float tf(int freq, int passageLen) {float norm = k1 * ((1 - b) + b * (passageLen / pivot));return freq / (freq + norm);}", "after": "public virtual float Tf(int freq, int passageLen){float norm = k1 * ((1 - b) + b * (passageLen / pivot));return freq / (freq + norm);}" }, { "index": 6913, "before": "public DescribeModelResult describeModel(DescribeModelRequest request) {request = beforeClientExecution(request);return executeDescribeModel(request);}", "after": "public virtual DescribeModelResponse DescribeModel(DescribeModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeModelRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeModelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6914, "before": "public boolean markSupported() {return true;}", "after": "public override bool markSupported(){return true;}" }, { "index": 6915, "before": "public ListEndpointConfigsResult listEndpointConfigs(ListEndpointConfigsRequest request) {request = beforeClientExecution(request);return executeListEndpointConfigs(request);}", "after": "public virtual ListEndpointConfigsResponse ListEndpointConfigs(ListEndpointConfigsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEndpointConfigsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEndpointConfigsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6916, "before": "public DescribeDBProxyTargetGroupsResult describeDBProxyTargetGroups(DescribeDBProxyTargetGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeDBProxyTargetGroups(request);}", "after": "public virtual DescribeDBProxyTargetGroupsResponse DescribeDBProxyTargetGroups(DescribeDBProxyTargetGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBProxyTargetGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBProxyTargetGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6917, "before": "public long size(DiffEntry.Side side, DiffEntry ent) throws IOException {switch (side) {case OLD:return oldSource.size(ent.oldPath, ent.oldId.toObjectId());case NEW:return newSource.size(ent.newPath, ent.newId.toObjectId());default:throw new IllegalArgumentException();}}", "after": "public long Size(DiffEntry.Side side, DiffEntry ent){switch (side){case DiffEntry.Side.OLD:{return oldSource.Size(ent.oldPath, ent.oldId.ToObjectId());}case DiffEntry.Side.NEW:{return newSource.Size(ent.newPath, ent.newId.ToObjectId());}default:{throw new ArgumentException();}}}" }, { "index": 6918, "before": "public GlobalReplicationGroup disassociateGlobalReplicationGroup(DisassociateGlobalReplicationGroupRequest request) {request = beforeClientExecution(request);return executeDisassociateGlobalReplicationGroup(request);}", "after": "public virtual DisassociateGlobalReplicationGroupResponse DisassociateGlobalReplicationGroup(DisassociateGlobalReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateGlobalReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateGlobalReplicationGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6919, "before": "public static void writeHeader(DataOutput out, String codec, int version) throws IOException {BytesRef bytes = new BytesRef(codec);if (bytes.length != codec.length() || bytes.length >= 128) {throw new IllegalArgumentException(\"codec must be simple ASCII, less than 128 characters in length [got \" + codec + \"]\");}out.writeInt(CODEC_MAGIC);out.writeString(codec);out.writeInt(version);}", "after": "public static void WriteHeader(DataOutput @out, string codec, int version){BytesRef bytes = new BytesRef(codec);if (bytes.Length != codec.Length || bytes.Length >= 128){throw new System.ArgumentException(\"codec must be simple ASCII, less than 128 characters in length [got \" + codec + \"]\");}@out.WriteInt32(CODEC_MAGIC);@out.WriteString(codec);@out.WriteInt32(version);}" }, { "index": 6920, "before": "public PagedList listByResourceGroup(String resourceGroupName) {PageImpl page = new PageImpl<>();page.setItems(listByResourceGroupWithServiceResponseAsync(resourceGroupName).toBlocking().single().body());page.setNextPageLink(null);return new PagedList(page) {@Overridepublic Page nextPage(String nextPageLink) {return null;}};}", "after": "public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)){return await innerCapacityOperations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false);}" }, { "index": 6921, "before": "public DescribeIpGroupsResult describeIpGroups(DescribeIpGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeIpGroups(request);}", "after": "public virtual DescribeIpGroupsResponse DescribeIpGroups(DescribeIpGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIpGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIpGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6922, "before": "public final CoderResult flush(ByteBuffer out) {if (status != END && status != READY) {throw new IllegalStateException();}CoderResult result = implFlush(out);if (result == CoderResult.UNDERFLOW) {status = FLUSH;}return result;}", "after": "public java.nio.charset.CoderResult flush(java.nio.ByteBuffer @out){if (status != END && status != READY){throw new System.InvalidOperationException();}java.nio.charset.CoderResult result = implFlush(@out);if (result == java.nio.charset.CoderResult.UNDERFLOW){status = FLUSH;}return result;}" }, { "index": 6923, "before": "public final Type getType() {if (beginA < endA) {if (beginB < endB) {return Type.REPLACE;}return Type.DELETE;}if (beginB < endB) {return Type.INSERT;}return Type.EMPTY;}", "after": "public Edit.Type GetType(){if (beginA < endA){if (beginB < endB){return Edit.Type.REPLACE;}else{return Edit.Type.DELETE;}}else{if (beginB < endB){return Edit.Type.INSERT;}else{return Edit.Type.EMPTY;}}}" }, { "index": 6924, "before": "public Builder() {this(false);}", "after": "public Builder(): base(){lastDocID = -1;wordNum = -1;word = 0;}" }, { "index": 6925, "before": "public DescribeHsmConfigurationsResult describeHsmConfigurations(DescribeHsmConfigurationsRequest request) {request = beforeClientExecution(request);return executeDescribeHsmConfigurations(request);}", "after": "public virtual DescribeHsmConfigurationsResponse DescribeHsmConfigurations(DescribeHsmConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeHsmConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeHsmConfigurationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6926, "before": "public boolean equals(Object other) {if (!(other instanceof DoubleBuffer)) {return false;}DoubleBuffer otherBuffer = (DoubleBuffer) other;if (remaining() != otherBuffer.remaining()) {return false;}int myPosition = position;int otherPosition = otherBuffer.position;boolean equalSoFar = true;while (equalSoFar && (myPosition < limit)) {double a = get(myPosition++);double b = otherBuffer.get(otherPosition++);equalSoFar = a == b || (a != a && b != b);}return equalSoFar;}", "after": "public override bool Equals(object other){if (!(other is java.nio.DoubleBuffer)){return false;}java.nio.DoubleBuffer otherBuffer = (java.nio.DoubleBuffer)other;if (remaining() != otherBuffer.remaining()){return false;}int myPosition = _position;int otherPosition = otherBuffer._position;bool equalSoFar = true;while (equalSoFar && (myPosition < _limit)){double a = get(myPosition++);double b = otherBuffer.get(otherPosition++);equalSoFar = a == b || (a != a && b != b);}return equalSoFar;}" }, { "index": 6927, "before": "public int getSize() {return length;}", "after": "public virtual int GetSize(){return length;}" }, { "index": 6928, "before": "public FeatProtection() {securityDescriptor = new byte[0];}", "after": "public FeatProtection(){securityDescriptor = new byte[0];}" }, { "index": 6929, "before": "public DeleteNotificationConfigurationResult deleteNotificationConfiguration(DeleteNotificationConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteNotificationConfiguration(request);}", "after": "public virtual DeleteNotificationConfigurationResponse DeleteNotificationConfiguration(DeleteNotificationConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNotificationConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNotificationConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6930, "before": "public int get(int key) {return get(key, 0);}", "after": "public virtual int get(int key){return get(key, 0);}" }, { "index": 6931, "before": "public HSSFAnchor(int dx1, int dy1, int dx2, int dy2) {createEscherAnchor();setDx1(dx1);setDy1(dy1);setDx2(dx2);setDy2(dy2);}", "after": "public HSSFAnchor(int dx1, int dy1, int dx2, int dy2){CreateEscherAnchor();this.Dx1 = dx1;this.Dy1 = dy1;this.Dx2 = dx2;this.Dy2 = dy2;}" }, { "index": 6932, "before": "public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {switch (args.length) {case 3:return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], DEFAULT_ARG3, DEFAULT_ARG4);case 4: {ValueEval arg3 = args[3];if(arg3 == MissingArgEval.instance) {arg3 = DEFAULT_ARG3;}return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], arg3, DEFAULT_ARG4);}case 5: {ValueEval arg3 = args[3];if(arg3 == MissingArgEval.instance) {arg3 = DEFAULT_ARG3;}ValueEval arg4 = args[4];if(arg4 == MissingArgEval.instance) {arg4 = DEFAULT_ARG4;}return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], arg3, arg4);}default:return ErrorEval.VALUE_INVALID;}}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){switch (args.Length){case 3:return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], DEFAULT_ARG3, DEFAULT_ARG4);case 4:return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], args[3], DEFAULT_ARG4);case 5:return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], args[3], args[4]);}return ErrorEval.VALUE_INVALID;}" }, { "index": 6933, "before": "public Toffs( int startOffset, int endOffset ){this.startOffset = startOffset;this.endOffset = endOffset;}", "after": "public Toffs(int startOffset, int endOffset){this.startOffset = startOffset;this.endOffset = endOffset;}" }, { "index": 6934, "before": "public GetDocumentationVersionResult getDocumentationVersion(GetDocumentationVersionRequest request) {request = beforeClientExecution(request);return executeGetDocumentationVersion(request);}", "after": "public virtual GetDocumentationVersionResponse GetDocumentationVersion(GetDocumentationVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDocumentationVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDocumentationVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6935, "before": "public static T[] grow(T[] array, int minSize) {assert minSize >= 0 : \"size must be positive (got \" + minSize + \"): likely integer overflow?\";if (array.length < minSize) {final int newLength = oversize(minSize, RamUsageEstimator.NUM_BYTES_OBJECT_REF);return growExact(array, newLength);} elsereturn array;}", "after": "public static short[] Grow(short[] array, int minSize){Debug.Assert(minSize >= 0, \"size must be positive (got \" + minSize + \"): likely integer overflow?\");if (array.Length < minSize){short[] newArray = new short[Oversize(minSize, RamUsageEstimator.NUM_BYTES_INT16)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}" }, { "index": 6936, "before": "public PurchaseProvisionedCapacityResult purchaseProvisionedCapacity(PurchaseProvisionedCapacityRequest request) {request = beforeClientExecution(request);return executePurchaseProvisionedCapacity(request);}", "after": "public virtual PurchaseProvisionedCapacityResponse PurchaseProvisionedCapacity(PurchaseProvisionedCapacityRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurchaseProvisionedCapacityRequestMarshaller.Instance;options.ResponseUnmarshaller = PurchaseProvisionedCapacityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6937, "before": "public ListenerHandle addRefsChangedListener(RefsChangedListener listener) {return addListener(RefsChangedListener.class, listener);}", "after": "public virtual ListenerHandle AddRefsChangedListener(RefsChangedListener listener){return AddListener(listener);}" }, { "index": 6938, "before": "public void drawRect(int x, int y, int width, int height){if (logger.check( POILogger.WARN ))logger.log(POILogger.WARN,\"drawRect not supported\");}", "after": "public void DrawRect(int x, int y, int width, int height){if (Logger.Check(POILogger.WARN))Logger.Log(POILogger.WARN, \"DrawRect not supported\");}" }, { "index": 6939, "before": "public DeleteGcmChannelResult deleteGcmChannel(DeleteGcmChannelRequest request) {request = beforeClientExecution(request);return executeDeleteGcmChannel(request);}", "after": "public virtual DeleteGcmChannelResponse DeleteGcmChannel(DeleteGcmChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGcmChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGcmChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6940, "before": "public String toString() {return \"del=\" + item;}", "after": "public override string ToString(){return \"del=\" + item;}" }, { "index": 6941, "before": "public int read(byte[] b, int off, int len) {if (ptr == data.length)return -1;int n = Math.min(available(), len);System.arraycopy(data, ptr, b, off, n);ptr += n;return n;}", "after": "public override int Read(byte[] b, int off, int len){if (ptr == data.Length){return -1;}int n = Math.Min(Available(), len);System.Array.Copy(data, ptr, b, off, n);ptr += n;return n;}" }, { "index": 6942, "before": "public static String toHex(int value) {StringBuilder sb = new StringBuilder(8);writeHex(sb, value & 0xFFFFFFFFL, 8, \"\");return sb.toString();}", "after": "public static string ToHex(byte value){return ToHex((long)value, 2);}" }, { "index": 6943, "before": "public DeleteFieldLevelEncryptionConfigResult deleteFieldLevelEncryptionConfig(DeleteFieldLevelEncryptionConfigRequest request) {request = beforeClientExecution(request);return executeDeleteFieldLevelEncryptionConfig(request);}", "after": "public virtual DeleteFieldLevelEncryptionConfigResponse DeleteFieldLevelEncryptionConfig(DeleteFieldLevelEncryptionConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFieldLevelEncryptionConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFieldLevelEncryptionConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6944, "before": "public AmazonS3EncryptionClient(AWSCredentials credentials,EncryptionMaterials encryptionMaterials) {this(credentials, new StaticEncryptionMaterialsProvider(encryptionMaterials));}", "after": "public AmazonS3EncryptionClient(AWSCredentials credentials, EncryptionMaterials materials): base(credentials){this.EncryptionMaterials = materials;S3CryptoConfig = new AmazonS3CryptoConfiguration();}" }, { "index": 6945, "before": "public FontDetails( String fontName, int height ){_fontName = fontName;_height = height;}", "after": "public FontDetails(String fontName, int height){this.fontName = fontName;this.height = height;}" }, { "index": 6946, "before": "public String toFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.append(operands[ 0 ]);buffer.append(LESSTHAN);buffer.append(operands[ 1 ]);return buffer.toString();}", "after": "public override String ToFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.Append(operands[0]);buffer.Append(LESSTHAN);buffer.Append(operands[1]);return buffer.ToString();}" }, { "index": 6947, "before": "public String toString() {return new String(this.buffer, 0, this.len);}", "after": "public sealed override string ToString(){return Sharpen.StringHelper.CopyValueOf(backingArray, offset + _position, remaining());}" }, { "index": 6948, "before": "public WriteRequest(PutRequest putRequest) {setPutRequest(putRequest);}", "after": "public WriteRequest(PutRequest putRequest){_putRequest = putRequest;}" }, { "index": 6949, "before": "public static String toHex(byte value) {StringBuilder sb = new StringBuilder(2);writeHex(sb, value & 0xFF, 2, \"\");return sb.toString();}", "after": "public static string ToHex(byte value){return ToHex((long)value, 2);}" }, { "index": 6950, "before": "public int stem(char s[], int len) {return pluralStep.apply(s, len);}", "after": "public virtual int Stem(char[] s, int len){return pluralStep.Apply(s, len);}" }, { "index": 6951, "before": "public void write(byte[] b, int off, int len) {try {super.write(b, off, len);} catch (IOException e) {throw new RuntimeException(e);}}", "after": "public void Write(byte[] b, int off, int len){try{out1.Write(b, off, len);}catch (IOException e){throw new RuntimeException(e);}}" }, { "index": 6952, "before": "public Set idSet() {return Collections.unmodifiableSet(dictionary.keySet());}", "after": "public ICollection IdSet(){return dictionaryNameToID.Keys;}" }, { "index": 6953, "before": "public BatchGetDeploymentsResult batchGetDeployments(BatchGetDeploymentsRequest request) {request = beforeClientExecution(request);return executeBatchGetDeployments(request);}", "after": "public virtual BatchGetDeploymentsResponse BatchGetDeployments(BatchGetDeploymentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetDeploymentsRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetDeploymentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6954, "before": "public QueryScorer(Query query, String field, String defaultField) {this.defaultField = defaultField;init(query, field, null, true);}", "after": "public QueryScorer(Query query, string field, string defaultField){this.defaultField = defaultField.Intern();Init(query, field, null, true);}" }, { "index": 6955, "before": "public long next() throws IOException {current = fstEnum.next();if (current == null) {return -1;} else {return current.output;}}", "after": "public override long Next(){current = fstEnum.Next();if (current == null){return -1;}else{if (current.Output.HasValue){return current.Output.Value;}else{throw new NullReferenceException(\"_current.Output is null\"); }}}" }, { "index": 6956, "before": "public GetApplicationDateRangeKpiResult getApplicationDateRangeKpi(GetApplicationDateRangeKpiRequest request) {request = beforeClientExecution(request);return executeGetApplicationDateRangeKpi(request);}", "after": "public virtual GetApplicationDateRangeKpiResponse GetApplicationDateRangeKpi(GetApplicationDateRangeKpiRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApplicationDateRangeKpiRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApplicationDateRangeKpiResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6957, "before": "public TokenStream create(TokenStream input) {return new GalicianStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new GalicianStemFilter(input);}" }, { "index": 6958, "before": "public ListHostedZonesResult listHostedZones(ListHostedZonesRequest request) {request = beforeClientExecution(request);return executeListHostedZones(request);}", "after": "public virtual ListHostedZonesResponse ListHostedZones(ListHostedZonesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListHostedZonesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListHostedZonesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6959, "before": "public int getDepth() {return depth;}", "after": "public int GetDepth(){return depth;}" }, { "index": 6960, "before": "public WindowTwoRecord(RecordInputStream in) {int size = in.remaining();field_1_options = in.readShort();field_2_top_row = in.readShort();field_3_left_col = in.readShort();field_4_header_color = in.readInt();if (size > 10){field_5_page_break_zoom = in.readShort();field_6_normal_zoom = in.readShort();}if (size > 14){ field_7_reserved = in.readInt();}}", "after": "public WindowTwoRecord(RecordInputStream in1){int size = in1.Remaining;field_1_options = in1.ReadShort();field_2_top_row = in1.ReadShort();field_3_left_col = in1.ReadShort();field_4_header_color = in1.ReadInt();if (size > 10){field_5_page_break_zoom = in1.ReadShort();field_6_normal_zoom = in1.ReadShort();}if (size > 14){ field_7_reserved = in1.ReadInt();}}" }, { "index": 6961, "before": "public GetUsageResult getUsage(GetUsageRequest request) {request = beforeClientExecution(request);return executeGetUsage(request);}", "after": "public virtual GetUsageResponse GetUsage(GetUsageRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUsageRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUsageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6962, "before": "public void setConfig(Config config) {super.setConfig(config);keepImages = config.get(\"keep.image.only.docs\", true);String fileName = config.get(\"docs.file\", null);if (fileName != null) {file = Paths.get(fileName).toAbsolutePath();}}", "after": "public override void SetConfig(Config config){base.SetConfig(config);keepImages = config.Get(\"keep.image.only.docs\", true);string fileName = config.Get(\"docs.file\", null);if (fileName != null){file = new FileInfo(fileName);}}" }, { "index": 6963, "before": "public ListSubscriptionsByTopicRequest(String topicArn) {setTopicArn(topicArn);}", "after": "public ListSubscriptionsByTopicRequest(string topicArn){_topicArn = topicArn;}" }, { "index": 6964, "before": "public ListTablesRequest(String exclusiveStartTableName, Integer limit) {setExclusiveStartTableName(exclusiveStartTableName);setLimit(limit);}", "after": "public ListTablesRequest(string exclusiveStartTableName, int limit){_exclusiveStartTableName = exclusiveStartTableName;_limit = limit;}" }, { "index": 6965, "before": "public String toString() {return start + \" to \" + end;}", "after": "public override string ToString(){return Start + \" to \" + End;}" }, { "index": 6966, "before": "public final float get(int index) {checkIndex(index);return backingArray[offset + index];}", "after": "public sealed override float get(int index){checkIndex(index);return backingArray[offset + index];}" }, { "index": 6967, "before": "public LongBuffer duplicate() {return copy(this, mark);}", "after": "public override java.nio.LongBuffer duplicate(){return copy(this, _mark);}" }, { "index": 6968, "before": "public ListManagedSchemaArnsResult listManagedSchemaArns(ListManagedSchemaArnsRequest request) {request = beforeClientExecution(request);return executeListManagedSchemaArns(request);}", "after": "public virtual ListManagedSchemaArnsResponse ListManagedSchemaArns(ListManagedSchemaArnsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListManagedSchemaArnsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListManagedSchemaArnsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6969, "before": "public DescribeSpotPriceHistoryResult describeSpotPriceHistory(DescribeSpotPriceHistoryRequest request) {request = beforeClientExecution(request);return executeDescribeSpotPriceHistory(request);}", "after": "public virtual DescribeSpotPriceHistoryResponse DescribeSpotPriceHistory(DescribeSpotPriceHistoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSpotPriceHistoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSpotPriceHistoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6970, "before": "public ListDevelopmentSchemaArnsResult listDevelopmentSchemaArns(ListDevelopmentSchemaArnsRequest request) {request = beforeClientExecution(request);return executeListDevelopmentSchemaArns(request);}", "after": "public virtual ListDevelopmentSchemaArnsResponse ListDevelopmentSchemaArns(ListDevelopmentSchemaArnsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDevelopmentSchemaArnsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDevelopmentSchemaArnsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6971, "before": "public boolean equals(Object o) {if (!(o instanceof ATNConfig)) {return false;}return this.equals((ATNConfig)o);}", "after": "public override bool Equals(Object o){if (!(o is ATNConfig)) {return false;}return this.Equals((ATNConfig)o);}" }, { "index": 6972, "before": "public DeleteEventsConfigurationResult deleteEventsConfiguration(DeleteEventsConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteEventsConfiguration(request);}", "after": "public virtual DeleteEventsConfigurationResponse DeleteEventsConfiguration(DeleteEventsConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEventsConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEventsConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6973, "before": "public static short sign(double d) {return (short) ((d == 0)? 0: (d < 0)? -1: 1);}", "after": "public static short Sign(double d){return (short)((d == 0)? 0: (d < 0)? -1: 1);}" }, { "index": 6974, "before": "public void setFillerToken(String fillerToken) {this.fillerToken = null == fillerToken ? new char[0] : fillerToken.toCharArray();}", "after": "public void SetFillerToken(string fillerToken){this.fillerToken = null == fillerToken ? new char[0] : fillerToken.ToCharArray();}" }, { "index": 6975, "before": "public UpdateDestinationResult updateDestination(UpdateDestinationRequest request) {request = beforeClientExecution(request);return executeUpdateDestination(request);}", "after": "public virtual UpdateDestinationResponse UpdateDestination(UpdateDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDestinationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6976, "before": "public CreateEmailIdentityResult createEmailIdentity(CreateEmailIdentityRequest request) {request = beforeClientExecution(request);return executeCreateEmailIdentity(request);}", "after": "public virtual CreateEmailIdentityResponse CreateEmailIdentity(CreateEmailIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEmailIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEmailIdentityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6977, "before": "public PersonIdent getSourceAuthor() {return outCandidate.getAuthor();}", "after": "public virtual PersonIdent GetSourceAuthor(){return currentSource.GetAuthor();}" }, { "index": 6978, "before": "public StartMonitoringMembersResult startMonitoringMembers(StartMonitoringMembersRequest request) {request = beforeClientExecution(request);return executeStartMonitoringMembers(request);}", "after": "public virtual StartMonitoringMembersResponse StartMonitoringMembers(StartMonitoringMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartMonitoringMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = StartMonitoringMembersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6979, "before": "public void setLocalPatternChars(String data) {if (data == null) {throw new NullPointerException();}localPatternChars = data;}", "after": "public virtual void setLocalPatternChars(string data){throw new System.NotImplementedException();}" }, { "index": 6980, "before": "public PersianNormalizationFilter(TokenStream input) {super(input);}", "after": "public PersianNormalizationFilter(TokenStream input): base(input){termAtt = AddAttribute();}" }, { "index": 6981, "before": "public void liftUp(Row in, List nodes) {Iterator i = in.cells.values().iterator();for (; i.hasNext();) {Cell c = i.next();if (c.ref >= 0) {Row to = nodes.get(c.ref);int sum = to.uniformCmd(changeSkip);if (sum >= 0) {if (sum == c.cmd) {if (changeSkip) {if (c.skip != to.uniformSkip + 1) {continue;}c.skip = to.uniformSkip + 1;} else {c.skip = 0;}c.cnt += to.uniformCnt;c.ref = -1;} else if (c.cmd < 0) {c.cnt = to.uniformCnt;c.cmd = sum;c.ref = -1;if (changeSkip) {c.skip = to.uniformSkip + 1;} else {c.skip = 0;}}}}}}", "after": "public void LiftUp(Row @in, IList nodes){foreach (Cell c in @in.cells.Values){if (c.@ref >= 0){Row to = nodes[c.@ref];int sum = to.UniformCmd(changeSkip);if (sum >= 0){if (sum == c.cmd){if (changeSkip){if (c.skip != to.uniformSkip + 1){continue;}c.skip = to.uniformSkip + 1;}else{c.skip = 0;}c.cnt += to.uniformCnt;c.@ref = -1;}else if (c.cmd < 0){c.cnt = to.uniformCnt;c.cmd = sum;c.@ref = -1;if (changeSkip){c.skip = to.uniformSkip + 1;}else{c.skip = 0;}}}}}}" }, { "index": 6982, "before": "public String toString() {StringBuilder r = new StringBuilder();r.append(\"SymbolicRef[\");Ref cur = this;while (cur.isSymbolic()) {r.append(cur.getName());r.append(\" -> \");cur = cur.getTarget();}r.append(cur.getName());r.append('=');r.append(ObjectId.toString(cur.getObjectId()));r.append(\"(\");r.append(updateIndex); r.append(\")]\");return r.toString();}", "after": "public override string ToString(){StringBuilder r = new StringBuilder();r.Append(\"SymbolicRef[\");Ref cur = this;while (cur.IsSymbolic()){r.Append(cur.GetName());r.Append(\" -> \");cur = cur.GetTarget();}r.Append(cur.GetName());r.Append('=');r.Append(ObjectId.ToString(cur.GetObjectId()));r.Append(\"]\");return r.ToString();}" }, { "index": 6983, "before": "public RemoveAllResourcePermissionsResult removeAllResourcePermissions(RemoveAllResourcePermissionsRequest request) {request = beforeClientExecution(request);return executeRemoveAllResourcePermissions(request);}", "after": "public virtual RemoveAllResourcePermissionsResponse RemoveAllResourcePermissions(RemoveAllResourcePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveAllResourcePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveAllResourcePermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6984, "before": "public DescribeResourceGroupsResult describeResourceGroups(DescribeResourceGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeResourceGroups(request);}", "after": "public virtual DescribeResourceGroupsResponse DescribeResourceGroups(DescribeResourceGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeResourceGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeResourceGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6985, "before": "public SpatialArgs parse(String v, SpatialContext ctx) throws ParseException, InvalidShapeException {int idx = v.indexOf('(');int edx = v.lastIndexOf(')');if (idx < 0 || idx > edx) {throw new ParseException(\"missing parens: \" + v, -1);}SpatialOperation op = SpatialOperation.get(v.substring(0, idx).trim());String body = v.substring(idx + 1, edx).trim();if (body.length() < 1) {throw new ParseException(\"missing body : \" + v, idx + 1);}Shape shape = parseShape(body, ctx);SpatialArgs args = newSpatialArgs(op, shape);if (v.length() > (edx + 1)) {body = v.substring(edx + 1).trim();if (body.length() > 0) {Map aa = parseMap(body);readNameValuePairs(args, aa);if (!aa.isEmpty()) {throw new IllegalArgumentException(\"unused parameters: \" + aa);}}}args.validate();return args;}", "after": "public virtual SpatialArgs Parse(string v, SpatialContext ctx){int idx = v.IndexOf('(');int edx = v.LastIndexOf(')');if (idx < 0 || idx > edx){throw new ParseException(\"missing parens: \" + v, -1);}SpatialOperation op = SpatialOperation.Get(v.Substring(0, idx - 0).Trim());string body = v.Substring(idx + 1, edx - (idx + 1)).Trim();if (body.Length < 1){throw new ParseException(\"missing body : \" + v, idx + 1);}var shape = ParseShape(body, ctx);var args = NewSpatialArgs(op, shape);if (v.Length > (edx + 1)){body = v.Substring(edx + 1).Trim();if (body.Length > 0){IDictionary aa = ParseMap(body);ReadNameValuePairs(args, aa);if (!aa.Any()){throw new ArgumentException(\"unused parameters: \" + aa);}}}args.Validate();return args;}" }, { "index": 6986, "before": "public boolean wasDeltaAttempted() {int fmt = getFormat();return fmt == PACK_DELTA || fmt == PACK_WHOLE;}", "after": "public virtual bool WasDeltaAttempted(){int fmt = GetFormat();return fmt == PACK_DELTA || fmt == PACK_WHOLE;}" }, { "index": 6987, "before": "public PutModelResult putModel(PutModelRequest request) {request = beforeClientExecution(request);return executePutModel(request);}", "after": "public virtual PutModelResponse PutModel(PutModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutModelRequestMarshaller.Instance;options.ResponseUnmarshaller = PutModelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6988, "before": "public String toString() {return String.valueOf(stateNumber);}", "after": "public override string ToString(){return stateNumber.ToString();}" }, { "index": 6989, "before": "public CreatePlayerSessionResult createPlayerSession(CreatePlayerSessionRequest request) {request = beforeClientExecution(request);return executeCreatePlayerSession(request);}", "after": "public virtual CreatePlayerSessionResponse CreatePlayerSession(CreatePlayerSessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePlayerSessionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePlayerSessionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6990, "before": "public void serialize(LittleEndianOutput out) {out.writeByte(field_1_majorTickType);out.writeByte(field_2_minorTickType);out.writeByte(field_3_labelPosition);out.writeByte(field_4_background);out.writeInt(field_5_labelColorRgb);out.writeInt(field_6_zero1);out.writeInt(field_7_zero2);out.writeInt(field_8_zero3);out.writeInt(field_9_zero4);out.writeShort(field_10_options);out.writeShort(field_11_tickColor);out.writeShort(field_12_zero5);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteByte(field_1_majorTickType);out1.WriteByte(field_2_minorTickType);out1.WriteByte(field_3_labelPosition);out1.WriteByte(field_4_background);out1.WriteInt(field_5_labelColorRgb);out1.WriteInt(field_6_zero1);out1.WriteInt(field_7_zero2);out1.WriteInt(field_8_zero3);out1.WriteInt(field_9_zero4);out1.WriteShort(field_10_options);out1.WriteShort(field_11_tickColor);out1.WriteShort(field_12_zero5);}" }, { "index": 6991, "before": "public ModifyVpcTenancyResult modifyVpcTenancy(ModifyVpcTenancyRequest request) {request = beforeClientExecution(request);return executeModifyVpcTenancy(request);}", "after": "public virtual ModifyVpcTenancyResponse ModifyVpcTenancy(ModifyVpcTenancyRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpcTenancyRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpcTenancyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6992, "before": "public GetBasePathMappingsResult getBasePathMappings(GetBasePathMappingsRequest request) {request = beforeClientExecution(request);return executeGetBasePathMappings(request);}", "after": "public virtual GetBasePathMappingsResponse GetBasePathMappings(GetBasePathMappingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBasePathMappingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBasePathMappingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6993, "before": "public void add(BytesRef utf8) {if (closed) throw new IllegalStateException();buffer.append(utf8);}", "after": "public void Add(BytesRef utf8){if (closed){throw new InvalidOperationException();}buffer.Append(utf8);}" }, { "index": 6994, "before": "public void notifyUpdateCell(HSSFCell cell) {_bookEvaluator.notifyUpdateCell(new HSSFEvaluationCell(cell));}", "after": "public void NotifyUpdateCell(ICell cell){_bookEvaluator.NotifyUpdateCell(new HSSFEvaluationCell(cell));}" }, { "index": 6995, "before": "public AddApplicationReferenceDataSourceResult addApplicationReferenceDataSource(AddApplicationReferenceDataSourceRequest request) {request = beforeClientExecution(request);return executeAddApplicationReferenceDataSource(request);}", "after": "public virtual AddApplicationReferenceDataSourceResponse AddApplicationReferenceDataSource(AddApplicationReferenceDataSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddApplicationReferenceDataSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = AddApplicationReferenceDataSourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 6996, "before": "public NIOFSIndexInput(String resourceDesc, FileChannel fc, long off, long length, int bufferSize) {super(resourceDesc, bufferSize);this.channel = fc;this.off = off;this.end = off + length;this.isClone = true;}", "after": "public NIOFSIndexInput(string resourceDesc, FileStream fc, long off, long length, int bufferSize): base(resourceDesc, bufferSize){this.m_channel = fc;this.m_off = off;this.m_end = off + length;this.isClone = true;}" }, { "index": 6997, "before": "@Override public Iterator iterator() {final Iterator> iterator = filteredEntrySet.iterator();return new UnmodifiableIterator() {", "after": "public override java.util.Iterator iterator(){return new java.util.Hashtable.KeyIterator(this._enclosing);}" }, { "index": 6998, "before": "public TokenStream create(TokenStream input) {return new IndonesianStemFilter(input, stemDerivational);}", "after": "public override TokenStream Create(TokenStream input){return new IndonesianStemFilter(input, stemDerivational);}" }, { "index": 6999, "before": "public SubmoduleStatusCommand addPath(String path) {paths.add(path);return this;}", "after": "public virtual NGit.Api.SubmoduleStatusCommand AddPath(string path){paths.AddItem(path);return this;}" }, { "index": 7000, "before": "public PutInsightRuleResult putInsightRule(PutInsightRuleRequest request) {request = beforeClientExecution(request);return executePutInsightRule(request);}", "after": "public virtual PutInsightRuleResponse PutInsightRule(PutInsightRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutInsightRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = PutInsightRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7001, "before": "public JapaneseReadingFormFilterFactory(Map args) {super(args);useRomaji = getBoolean(args, ROMAJI_PARAM, false);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public JapaneseReadingFormFilterFactory(IDictionary args): base(args){useRomaji = GetBoolean(args, ROMAJI_PARAM, false);if (args.Count > 0){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 7002, "before": "public GetVpcLinkResult getVpcLink(GetVpcLinkRequest request) {request = beforeClientExecution(request);return executeGetVpcLink(request);}", "after": "public virtual GetVpcLinkResponse GetVpcLink(GetVpcLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVpcLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVpcLinkResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7003, "before": "public boolean evaluate(boolean cmpResult) {switch (_code) {case NONE:case EQ:return cmpResult;case NE:return !cmpResult;}throw new RuntimeException(\"Cannot call boolean evaluate on non-equality operator '\"+ _representation + \"'\");}", "after": "public bool Evaluate(bool cmpResult){switch (_code){case NONE:case EQ:return cmpResult;case NE:return !cmpResult;}throw new Exception(\"Cannot call bool Evaluate on non-equality operator '\"+ _representation + \"'\");}" }, { "index": 7004, "before": "public int getEnd() {return end;}", "after": "public virtual int GetEnd(){return end;}" }, { "index": 7005, "before": "@Override public String toString() {if (string != null) {return string;}StringBuilder result = new StringBuilder();if (scheme != null) {result.append(scheme);result.append(':');}if (opaque) {result.append(schemeSpecificPart);} else {if (authority != null) {result.append(\"result.append(authority);}if (path != null) {result.append(path);}if (query != null) {result.append('?');result.append(query);}}if (fragment != null) {result.append('#');result.append(fragment);}string = result.toString();return string;}", "after": "public override string ToString(){if (@string != null){return @string;}java.lang.StringBuilder result = new java.lang.StringBuilder();if (scheme != null){result.append(scheme);result.append(':');}if (opaque){result.append(schemeSpecificPart);}else{if (authority != null){result.append(\"result.append(authority);}if (path != null){result.append(path);}if (query != null){result.append('?');result.append(query);}}if (fragment != null){result.append('#');result.append(fragment);}@string = result.ToString();return @string;}" }, { "index": 7006, "before": "public static final ObjectId fromRaw(byte[] bs, int p) {final int a = NB.decodeInt32(bs, p);final int b = NB.decodeInt32(bs, p + 4);final int c = NB.decodeInt32(bs, p + 8);final int d = NB.decodeInt32(bs, p + 12);final int e = NB.decodeInt32(bs, p + 16);return new ObjectId(a, b, c, d, e);}", "after": "public static NGit.ObjectId FromRaw(byte[] bs, int p){int a = NB.DecodeInt32(bs, p);int b = NB.DecodeInt32(bs, p + 4);int c = NB.DecodeInt32(bs, p + 8);int d = NB.DecodeInt32(bs, p + 12);int e = NB.DecodeInt32(bs, p + 16);return new NGit.ObjectId(a, b, c, d, e);}" }, { "index": 7007, "before": "public int maxRecall(QualityQuery query) {QRelJudgement qrj = judgements.get(query.getQueryID());if (qrj!=null) {return qrj.maxRecall();}return 0;}", "after": "public virtual int MaxRecall(QualityQuery query){QRelJudgement qrj;if (judgements.TryGetValue(query.QueryID, out qrj) && qrj != null){return qrj.MaxRecall;}return 0;}" }, { "index": 7008, "before": "public static HashFunction hashFunctionForVersion(int version) {if (version < VERSION_START) {throw new IllegalArgumentException(\"Version \" + version + \" is too old, expected at least \" + VERSION_START);} else if (version > VERSION_CURRENT) {throw new IllegalArgumentException(\"Version \" + version + \" is too new, expected at most \" + VERSION_CURRENT);}return MurmurHash2.INSTANCE;}", "after": "public static HashFunction HashFunctionForVersion(int version){if (version < VERSION_START)throw new ArgumentException(\"Version \" + version + \" is too old, expected at least \" +VERSION_START);if (version > VERSION_CURRENT)throw new ArgumentException(\"Version \" + version + \" is too new, expected at most \" +VERSION_CURRENT);return MurmurHash2.INSTANCE;}" }, { "index": 7009, "before": "public void removeCell(Cell cell) {if(cell == null) {throw new IllegalArgumentException(\"cell must not be null\");}removeCell((HSSFCell)cell, true);}", "after": "public void RemoveCell(ICell cell){if (cell == null){throw new ArgumentException(\"cell must not be null\");}RemoveCell((HSSFCell)cell, true);}" }, { "index": 7010, "before": "public CreatePlacementGroupRequest(String groupName, PlacementStrategy strategy) {setGroupName(groupName);setStrategy(strategy.toString());}", "after": "public CreatePlacementGroupRequest(string groupName, PlacementStrategy strategy){_groupName = groupName;_strategy = strategy;}" }, { "index": 7011, "before": "public PutManagedScalingPolicyResult putManagedScalingPolicy(PutManagedScalingPolicyRequest request) {request = beforeClientExecution(request);return executePutManagedScalingPolicy(request);}", "after": "public virtual PutManagedScalingPolicyResponse PutManagedScalingPolicy(PutManagedScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutManagedScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = PutManagedScalingPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7012, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[SXVS]\\n\");buffer.append(\" .vs =\").append(HexDump.shortToHex(vs)).append('\\n');buffer.append(\"[/SXVS]\\n\");return buffer.toString();}", "after": "public override string ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[SXVS]\\n\");buffer.Append(\" .vs =\").Append(HexDump.ShortToHex(vs)).Append('\\n');buffer.Append(\"[/SXVS]\\n\");return buffer.ToString();}" }, { "index": 7013, "before": "public Trie reduce(Reduce by) {return by.optimize(this);}", "after": "public virtual Trie Reduce(Reduce by){return by.Optimize(this);}" }, { "index": 7014, "before": "public AbstractEscherHolderRecord clone() {return copy();}", "after": "public override object Clone(){return CloneViaReserialise();}" }, { "index": 7015, "before": "public void setParams(String params) {super.setParams(params);commitUserData = new HashMap<>();commitUserData.put(OpenReaderTask.USER_DATA, params);}", "after": "public override void SetParams(string @params){base.SetParams(@params);commitUserData = new Dictionary();commitUserData[OpenReaderTask.USER_DATA] = @params;}" }, { "index": 7016, "before": "public String getSrcRef() {return srcRef;}", "after": "public virtual string GetSrcRef(){return srcRef;}" }, { "index": 7017, "before": "public final String getShortMessage() {byte[] raw = buffer;int msgB = RawParseUtils.commitMessage(raw, 0);if (msgB < 0) {return \"\"; }int msgE = RawParseUtils.endOfParagraph(raw, msgB);String str = RawParseUtils.decode(guessEncoding(), raw, msgB, msgE);if (hasLF(raw, msgB, msgE)) {str = StringUtils.replaceLineBreaksWithSpace(str);}return str;}", "after": "public string GetShortMessage(){byte[] raw = buffer;int msgB = RawParseUtils.CommitMessage(raw, 0);if (msgB < 0){return string.Empty;}System.Text.Encoding enc = RawParseUtils.ParseEncoding(raw);int msgE = RawParseUtils.EndOfParagraph(raw, msgB);string str = RawParseUtils.Decode(enc, raw, msgB, msgE);if (HasLF(raw, msgB, msgE)){str = str.Replace('\\n', ' ');}return str;}" }, { "index": 7018, "before": "public static Boolean coerceValueToBoolean(ValueEval ve, boolean stringsAreBlanks) throws EvaluationException {if (ve == null || ve == BlankEval.instance) {return null;}if (ve instanceof BoolEval) {return Boolean.valueOf(((BoolEval) ve).getBooleanValue());}if (ve instanceof StringEval) {if (stringsAreBlanks) {return null;}String str = ((StringEval) ve).getStringValue();if (str.equalsIgnoreCase(\"true\")) {return Boolean.TRUE;}if (str.equalsIgnoreCase(\"false\")) {return Boolean.FALSE;}throw new EvaluationException(ErrorEval.VALUE_INVALID);}if (ve instanceof NumericValueEval) {NumericValueEval ne = (NumericValueEval) ve;double d = ne.getNumberValue();if (Double.isNaN(d)) {throw new EvaluationException(ErrorEval.VALUE_INVALID);}return Boolean.valueOf(d != 0);}if (ve instanceof ErrorEval) {throw new EvaluationException((ErrorEval) ve);}throw new RuntimeException(\"Unexpected eval (\" + ve.getClass().getName() + \")\");}", "after": "public static Boolean? CoerceValueToBoolean(ValueEval ve, bool stringsAreBlanks){if (ve == null || ve == BlankEval.instance){return null;}if (ve is BoolEval){return ((BoolEval)ve).BooleanValue;}if (ve is StringEval){if (stringsAreBlanks){return null;}String str = ((StringEval)ve).StringValue;if (str.Equals(\"true\", StringComparison.OrdinalIgnoreCase)){return true;}if (str.Equals(\"false\", StringComparison.OrdinalIgnoreCase)){return false;}throw new EvaluationException(ErrorEval.VALUE_INVALID);}if (ve is NumericValueEval){NumericValueEval ne = (NumericValueEval)ve;double d = ne.NumberValue;if (Double.IsNaN(d)){throw new EvaluationException(ErrorEval.VALUE_INVALID);}return d != 0;}if (ve is ErrorEval){throw new EvaluationException((ErrorEval)ve);}throw new InvalidOperationException(\"Unexpected eval (\" + ve.GetType().Name + \")\");}" }, { "index": 7019, "before": "public synchronized List getSnapshots() {return new ArrayList<>(indexCommits.values());}", "after": "public virtual IList GetSnapshots(){lock (this){return new List(m_indexCommits.Values);}}" }, { "index": 7020, "before": "public static int subIndex(int n, int[] docStarts) { int size = docStarts.length;int lo = 0; int hi = size - 1; while (hi >= lo) {int mid = (lo + hi) >>> 1;int midValue = docStarts[mid];if (n < midValue)hi = mid - 1;else if (n > midValue)lo = mid + 1;else { while (mid + 1 < size && docStarts[mid + 1] == midValue) {mid++; }return mid;}}return hi;}", "after": "public static int SubIndex(int n, int[] docStarts) {int size = docStarts.Length;int lo = 0; int hi = size - 1; while (hi >= lo){int mid = (int)((uint)(lo + hi) >> 1);int midValue = docStarts[mid];if (n < midValue){hi = mid - 1;}else if (n > midValue){lo = mid + 1;}else {while (mid + 1 < size && docStarts[mid + 1] == midValue){mid++; }return mid;}}return hi;}" }, { "index": 7021, "before": "public static Date getJavaDate(double date, boolean use1904windowing) {return getJavaDate(date, use1904windowing, null, false);}", "after": "public static DateTime GetJavaDate(double date, bool use1904windowing){return GetJavaCalendar(date, use1904windowing, false);}" }, { "index": 7022, "before": "public CharSequence getLastOnPath(CharSequence key) {Row now = getRow(root);int w;CharSequence last = null;StrEnum e = new StrEnum(key, forward);for (int i = 0; i < key.length() - 1; i++) {Character ch = e.next();w = now.getCmd(ch);if (w >= 0) {last = cmds.get(w);}w = now.getRef(ch);if (w >= 0) {now = getRow(w);} else {return last;}}w = now.getCmd(e.next());return (w >= 0) ? cmds.get(w) : last;}", "after": "public virtual string GetLastOnPath(string key){Row now = GetRow(root);int w;string last = null;StrEnum e = new StrEnum(key, forward);for (int i = 0; i < key.Length - 1; i++){char ch = e.Next();w = now.GetCmd(ch);if (w >= 0){last = cmds[w];}w = now.GetRef(ch);if (w >= 0){now = GetRow(w);}else{return last;}}w = now.GetCmd(e.Next());return (w >= 0) ? cmds[w] : last;}" }, { "index": 7023, "before": "public Hashtable(int capacity) {if (capacity < 0) {throw new IllegalArgumentException(\"Capacity: \" + capacity);}if (capacity == 0) {@SuppressWarnings(\"unchecked\")HashtableEntry[] tab = (HashtableEntry[]) EMPTY_TABLE;table = tab;threshold = -1; return;}if (capacity < MINIMUM_CAPACITY) {capacity = MINIMUM_CAPACITY;} else if (capacity > MAXIMUM_CAPACITY) {capacity = MAXIMUM_CAPACITY;} else {capacity = roundUpToPowerOfTwo(capacity);}makeTable(capacity);}", "after": "public Hashtable(int capacity){if (capacity < 0){throw new System.ArgumentException(\"Capacity: \" + capacity);}if (capacity == 0){java.util.Hashtable.HashtableEntry[] tab = (java.util.Hashtable.HashtableEntry[])EMPTY_TABLE;table = tab;threshold = -1;return;}if (capacity < java.util.Hashtable.MINIMUM_CAPACITY){capacity = java.util.Hashtable.MINIMUM_CAPACITY;}else{if (capacity > java.util.Hashtable.MAXIMUM_CAPACITY){capacity = java.util.Hashtable.MAXIMUM_CAPACITY;}else{capacity = roundUpToPowerOfTwo(capacity);}}makeTable(capacity);}" }, { "index": 7024, "before": "public void reset() {heads.clear();heads.addAll(headsStartValue);}", "after": "public virtual void Reset(){heads.Clear();Sharpen.Collections.AddAll(heads, headsStartValue);}" }, { "index": 7025, "before": "public CreatePlacementGroupResult createPlacementGroup(CreatePlacementGroupRequest request) {request = beforeClientExecution(request);return executeCreatePlacementGroup(request);}", "after": "public virtual CreatePlacementGroupResponse CreatePlacementGroup(CreatePlacementGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePlacementGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePlacementGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7026, "before": "public final float maxCharsPerByte() {return maxCharsPerByte;}", "after": "public float maxCharsPerByte(){return _maxCharsPerByte;}" }, { "index": 7027, "before": "public static String getRFC2616Date(Date date) {SimpleDateFormat df = new SimpleDateFormat(FORMAT_RFC2616, Locale.ENGLISH);df.setTimeZone(new SimpleTimeZone(0, TIME_ZONE));return df.format(date);}", "after": "public static string GetRFC2616Date(DateTime datetime){if (null == datetime){datetime = DateTime.UtcNow;}return datetime.ToUniversalTime().GetDateTimeFormats('r') [0];}" }, { "index": 7028, "before": "public ListContributorInsightsResult listContributorInsights(ListContributorInsightsRequest request) {request = beforeClientExecution(request);return executeListContributorInsights(request);}", "after": "public virtual ListContributorInsightsResponse ListContributorInsights(ListContributorInsightsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListContributorInsightsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListContributorInsightsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7029, "before": "public void setPackedGitOpenFiles(int fdLimit) {packedGitOpenFiles = fdLimit;}", "after": "public virtual void SetPackedGitOpenFiles(int fdLimit){packedGitOpenFiles = fdLimit;}" }, { "index": 7030, "before": "public DBCluster failoverDBCluster(FailoverDBClusterRequest request) {request = beforeClientExecution(request);return executeFailoverDBCluster(request);}", "after": "public virtual FailoverDBClusterResponse FailoverDBCluster(FailoverDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = FailoverDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = FailoverDBClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7031, "before": "public StringBuilder insert(int offset, double d) {insert0(offset, Double.toString(d));return this;}", "after": "public java.lang.StringBuilder insert(int offset, double d){insert0(offset, System.Convert.ToString(d));return this;}" }, { "index": 7032, "before": "public void serialize(LittleEndianOutput out) {futureHeader.serialize(out);out.writeShort(isf_sharedFeatureType);out.writeByte(reserved1);out.writeInt((int)reserved2);out.writeShort(cellRefs.length);out.writeInt((int)cbFeatData);out.writeShort(reserved3);for(int i=0; i(request, options);}" }, { "index": 7035, "before": "public final byte[] serialize() {byte[] retval = new byte[ getRecordSize() ];serialize(0, retval);return retval;}", "after": "public byte[] Serialize(){byte[] retval = new byte[RecordSize];Serialize(0, retval);return retval;}" }, { "index": 7036, "before": "public Cell next() {if (!hasNext()) {throw new NoSuchElementException(\"At last element\");}HSSFCell cell = cells[nextId];thisId = nextId;findNext();return cell;}", "after": "public ICell next(){if (hasNext())return _cells[pos++];elsethrow new NullReferenceException();}" }, { "index": 7037, "before": "public static double[] grow(double[] array) {return grow(array, 1 + array.length);}", "after": "public static short[] Grow(short[] array){return Grow(array, 1 + array.Length);}" }, { "index": 7038, "before": "public synchronized StringBuffer insert(int index, String string) {insert0(index, string);return this;}", "after": "public java.lang.StringBuffer insert(int index, string @string){lock (this){insert0(index, @string);return this;}}" }, { "index": 7039, "before": "public DomainDetail 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": 7040, "before": "public void reset() {this.reset(true, true);}", "after": "public void Reset(){this.Reset(true, true);}" }, { "index": 7041, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(_reserved);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(_reserved);}" }, { "index": 7042, "before": "public int getStartOffset() {return startOffset;}", "after": "public virtual int GetStartOffset(){return startOffset;}" }, { "index": 7043, "before": "public synchronized String[] listAll() throws IOException {final Set files = new HashSet<>();for (String f : cacheDirectory.listAll()) {files.add(f);}for (String f : in.listAll()) {files.add(f);}String[] result = files.toArray(new String[files.size()]);Arrays.sort(result);return result;}", "after": "public override string[] ListAll(){lock (this){ISet files = new JCG.HashSet();foreach (string f in cache.ListAll()){files.Add(f);}try{foreach (string f in @delegate.ListAll()){files.Add(f);}}catch (DirectoryNotFoundException ){if (files.Count == 0){throw; }}return files.ToArray();}}" }, { "index": 7044, "before": "public byte clearByte(final byte holder){return ( byte ) clear(holder);}", "after": "public byte ClearByte(byte holder){return (byte)this.Clear(holder);}" }, { "index": 7045, "before": "public ScenarioProtectRecord getHCenter() {return _scenarioProtectRecord;}", "after": "public ScenarioProtectRecord GetHCenter(){return _scenarioProtectRecord;}" }, { "index": 7046, "before": "public HSSFRow createRow(int rownum) {HSSFRow row = new HSSFRow(_workbook, this, rownum);row.setHeight(getDefaultRowHeight());row.getRowRecord().setBadFontHeight(false);addRow(row, true);return row;}", "after": "public NPOI.SS.UserModel.IRow CreateRow(int rownum){HSSFRow row = new HSSFRow(_workbook, this, rownum);row.Height = (DefaultRowHeight);row.RowRecord.BadFontHeight = (false);AddRow(row, true);return row;}" }, { "index": 7047, "before": "public ListQueryExecutionsResult listQueryExecutions(ListQueryExecutionsRequest request) {request = beforeClientExecution(request);return executeListQueryExecutions(request);}", "after": "public virtual ListQueryExecutionsResponse ListQueryExecutions(ListQueryExecutionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListQueryExecutionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListQueryExecutionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7048, "before": "public DeleteSuppressedDestinationResult deleteSuppressedDestination(DeleteSuppressedDestinationRequest request) {request = beforeClientExecution(request);return executeDeleteSuppressedDestination(request);}", "after": "public virtual DeleteSuppressedDestinationResponse DeleteSuppressedDestination(DeleteSuppressedDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSuppressedDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSuppressedDestinationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7049, "before": "public CharsRef subtract(CharsRef output, CharsRef inc) {assert output != null;assert inc != null;if (inc == NO_OUTPUT) {return output;} else if (inc.length == output.length) {return NO_OUTPUT;} else {assert inc.length < output.length: \"inc.length=\" + inc.length + \" vs output.length=\" + output.length;assert inc.length > 0;return new CharsRef(output.chars, output.offset + inc.length, output.length-inc.length);}}", "after": "public override CharsRef Subtract(CharsRef output, CharsRef inc){Debug.Assert(output != null);Debug.Assert(inc != null);if (inc == NO_OUTPUT){return output;}else if (inc.Length == output.Length){return NO_OUTPUT;}else{Debug.Assert(inc.Length < output.Length, \"inc.Length=\" + inc.Length + \" vs output.Length=\" + output.Length);Debug.Assert(inc.Length > 0);return new CharsRef(output.Chars, output.Offset + inc.Length, output.Length - inc.Length);}}" }, { "index": 7050, "before": "public void requestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest request) {request = beforeClientExecution(request);executeRequestCancelWorkflowExecution(request);}", "after": "public virtual RequestCancelWorkflowExecutionResponse RequestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = RequestCancelWorkflowExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = RequestCancelWorkflowExecutionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7051, "before": "public boolean equals(Object o) {if (this == o) {return true;}if (o == null || getClass() != o.getClass()) {return false;}Arn arn = (Arn) o;if (!partition.equals(arn.partition)) {return false;}if (!service.equals(arn.service)) {return false;}if (region != null ? !region.equals(arn.region) : arn.region != null) {return false;}if (accountId != null ? !accountId.equals(arn.accountId) : arn.accountId != null) {return false;}return resource.equals(arn.resource);}", "after": "public override bool Equals(object o){if (this == o){return true;}var arn = o as Arn;if(arn == null){return false;}if (!Partition.Equals(arn.Partition)){return false;}if (!Service.Equals(arn.Service)){return false;}if (Region != arn.Region){return false;}if (AccountId != arn.AccountId){return false;}return Resource.Equals(arn.Resource);}" }, { "index": 7052, "before": "public UpdateDataSetPermissionsResult updateDataSetPermissions(UpdateDataSetPermissionsRequest request) {request = beforeClientExecution(request);return executeUpdateDataSetPermissions(request);}", "after": "public virtual UpdateDataSetPermissionsResponse UpdateDataSetPermissions(UpdateDataSetPermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDataSetPermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDataSetPermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7053, "before": "public DeleteCloudFrontOriginAccessIdentityResult deleteCloudFrontOriginAccessIdentity(DeleteCloudFrontOriginAccessIdentityRequest request) {request = beforeClientExecution(request);return executeDeleteCloudFrontOriginAccessIdentity(request);}", "after": "public virtual DeleteCloudFrontOriginAccessIdentityResponse DeleteCloudFrontOriginAccessIdentity(DeleteCloudFrontOriginAccessIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCloudFrontOriginAccessIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCloudFrontOriginAccessIdentityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7054, "before": "public TokenStream create(TokenStream input) {return new PortugueseMinimalStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new PortugueseMinimalStemFilter(input);}" }, { "index": 7055, "before": "public PutDashboardResult putDashboard(PutDashboardRequest request) {request = beforeClientExecution(request);return executePutDashboard(request);}", "after": "public virtual PutDashboardResponse PutDashboard(PutDashboardRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutDashboardRequestMarshaller.Instance;options.ResponseUnmarshaller = PutDashboardResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7056, "before": "public void addChar( char c, int width ){charWidths.put(Character.valueOf(c), Integer.valueOf(width));}", "after": "public void AddChar(char c, int width){charWidths[c] = width;}" }, { "index": 7057, "before": "public DeleteRoomSkillParameterResult deleteRoomSkillParameter(DeleteRoomSkillParameterRequest request) {request = beforeClientExecution(request);return executeDeleteRoomSkillParameter(request);}", "after": "public virtual DeleteRoomSkillParameterResponse DeleteRoomSkillParameter(DeleteRoomSkillParameterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRoomSkillParameterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRoomSkillParameterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7058, "before": "public String get(String name, String dflt) {String vals[] = (String[]) valByRound.get(name);if (vals != null) {return vals[roundNumber % vals.length];}String sval = props.getProperty(name, dflt);if (sval == null) {return null;}if (sval.indexOf(\":\") < 0) {return sval;} else if (sval.indexOf(\":\\\\\") >= 0 || sval.indexOf(\":/\") >= 0) {return sval;}int k = sval.indexOf(\":\");String colName = sval.substring(0, k);sval = sval.substring(k + 1);colForValByRound.put(name, colName);vals = propToStringArray(sval);valByRound.put(name, vals);return vals[roundNumber % vals.length];}", "after": "public virtual string Get(string name, string dflt){string[] vals;object temp;if (valByRound.TryGetValue(name, out temp) && temp != null){vals = (string[])temp;return vals[roundNumber % vals.Length];}string sval;if (!props.TryGetValue(name, out sval)){sval = dflt;}if (sval == null){return null;}if (sval.IndexOf(':') < 0){return sval;}else if (sval.IndexOf(\":\\\\\", StringComparison.Ordinal) >= 0 || sval.IndexOf(\":/\", StringComparison.Ordinal) >= 0){return sval;}int k = sval.IndexOf(':');string colName = sval.Substring(0, k - 0);sval = sval.Substring(k + 1);colForValByRound[name] = colName;vals = PropToStringArray(sval);valByRound[name] = vals;return vals[roundNumber % vals.Length];}" }, { "index": 7059, "before": "public DBClusterSnapshotAttributesResult describeDBClusterSnapshotAttributes(DescribeDBClusterSnapshotAttributesRequest request) {request = beforeClientExecution(request);return executeDescribeDBClusterSnapshotAttributes(request);}", "after": "public virtual DescribeDBClusterSnapshotAttributesResponse DescribeDBClusterSnapshotAttributes(DescribeDBClusterSnapshotAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBClusterSnapshotAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBClusterSnapshotAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7060, "before": "public void addFile(FileHeader fh) {files.add(fh);}", "after": "public virtual void AddFile(FileHeader fh){files.AddItem(fh);}" }, { "index": 7061, "before": "public TokenStream create(TokenStream input) {return new ItalianLightStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new ItalianLightStemFilter(input);}" }, { "index": 7062, "before": "public LinkedHashMap() {init();accessOrder = false;}", "after": "public LinkedHashMap(){init();accessOrder = false;}" }, { "index": 7063, "before": "public DeleteStackInstancesResult deleteStackInstances(DeleteStackInstancesRequest request) {request = beforeClientExecution(request);return executeDeleteStackInstances(request);}", "after": "public virtual DeleteStackInstancesResponse DeleteStackInstances(DeleteStackInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteStackInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteStackInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7064, "before": "public String toString() {return \"(\" + a.toString() + \" AND \" + b.toString() + \")\"; }", "after": "public override string ToString(){return \"(\" + a.ToString() + \" OR \" + b.ToString() + \")\";}" }, { "index": 7065, "before": "public StringWriter() {buf = new StringBuffer(16);lock = buf;}", "after": "public StringWriter(){buf = new java.lang.StringBuffer(16);@lock = buf;}" }, { "index": 7066, "before": "public List getOriginalMatchingDocs() {return super.getMatchingDocs();}", "after": "public virtual IList GetOriginalMatchingDocs(){return base.GetMatchingDocs();}" }, { "index": 7067, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {double result;try {double d0 = singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = singleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);result = evaluate(d0, d1);checkValue(result);} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){double result;try{double d0 = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);result = Evaluate(d0, d1);NumericFunction.CheckValue(result);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}" }, { "index": 7068, "before": "public String toString() {return \"[HCENTER]\\n\" +\" .hcenter = \" + getHCenter() +\"\\n\" +\"[/HCENTER]\\n\";}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[HCENTER]\\n\");buffer.Append(\" .hcenter = \").Append(HCenter).Append(\"\\n\");buffer.Append(\"[/HCENTER]\\n\");return buffer.ToString();}" }, { "index": 7069, "before": "public GetEbsEncryptionByDefaultResult getEbsEncryptionByDefault(GetEbsEncryptionByDefaultRequest request) {request = beforeClientExecution(request);return executeGetEbsEncryptionByDefault(request);}", "after": "public virtual GetEbsEncryptionByDefaultResponse GetEbsEncryptionByDefault(GetEbsEncryptionByDefaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEbsEncryptionByDefaultRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEbsEncryptionByDefaultResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7070, "before": "public ParseException generateParseException() {jj_expentries.clear();boolean[] la1tokens = new boolean[34];if (jj_kind >= 0) {la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 25; i++) {if (jj_la1[i] == jj_gen) {for (int j = 0; j < 32; j++) {if ((jj_la1_0[i] & (1<= 0){la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 21; i++){if (jj_la1[i] == jj_gen){for (int j = 0; j < 32; j++){if ((jj_la1_0[i] & (1 << j)) != 0){la1tokens[j] = true;}if ((jj_la1_1[i] & (1 << j)) != 0){la1tokens[32 + j] = true;}}}}for (int i = 0; i < 33; i++){if (la1tokens[i]){jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.Add(jj_expentry);}}jj_endpos = 0;Jj_rescan_token();Jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.Count][];for (int i = 0; i < jj_expentries.Count; i++){exptokseq[i] = jj_expentries[i];}return new ParseException(Token, exptokseq, QueryParserConstants.TokenImage);}" }, { "index": 7071, "before": "public int getCharWidth( char c ){Integer widthInteger = charWidths.get(Character.valueOf(c));if (widthInteger == null) {return 'W' == c ? 0 : getCharWidth('W');}return widthInteger;}", "after": "public int GetCharWidth(char c){object widthInteger = charWidths[c];if (widthInteger == null)return 'W' == c ? 0 : GetCharWidth('W');elsereturn (int)widthInteger;}" }, { "index": 7072, "before": "public DescribeSecurityGroupReferencesResult describeSecurityGroupReferences(DescribeSecurityGroupReferencesRequest request) {request = beforeClientExecution(request);return executeDescribeSecurityGroupReferences(request);}", "after": "public virtual DescribeSecurityGroupReferencesResponse DescribeSecurityGroupReferences(DescribeSecurityGroupReferencesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSecurityGroupReferencesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSecurityGroupReferencesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7073, "before": "public final V getValue() {return value;}", "after": "public virtual V getValue(){return value;}" }, { "index": 7074, "before": "public EscherContainerRecord getEscherContainer() {for (EscherRecord er : escherRecords) {if(er instanceof EscherContainerRecord) {return (EscherContainerRecord)er;}}return null;}", "after": "public EscherContainerRecord GetEscherContainer(){for (IEnumerator it = escherRecords.GetEnumerator(); it.MoveNext(); ){Object er = it.Current;if (er is EscherContainerRecord){return (EscherContainerRecord)er;}}return null;}" }, { "index": 7075, "before": "public boolean removeShape(HSSFShape shape) {boolean isRemoved = getEscherContainer().removeChildRecord(shape.getEscherContainer());if (isRemoved){shape.afterRemove(this.getPatriarch());shapes.remove(shape);}return isRemoved;}", "after": "public bool RemoveShape(HSSFShape shape){bool isRemoved = GetEscherContainer().RemoveChildRecord(shape.GetEscherContainer());if (isRemoved){shape.AfterRemove(this.Patriarch);shapes.Remove(shape);}return isRemoved;}" }, { "index": 7076, "before": "public boolean changeExternalReference(String oldUrl, String newUrl) {return linkTable.changeExternalReference(oldUrl, newUrl);}", "after": "public bool ChangeExternalReference(String oldUrl, String newUrl){return linkTable.ChangeExternalReference(oldUrl, newUrl);}" }, { "index": 7077, "before": "public String toString() {return \"BLOCK: \" + brToString(prefix);}", "after": "public override string ToString(){return \"BLOCK: \" + Prefix.Utf8ToString();}" }, { "index": 7078, "before": "public static String pathToString(String[] path) {return pathToString(path, path.length);}", "after": "public static string PathToString(string[] path){return PathToString(path, path.Length);}" }, { "index": 7079, "before": "public final boolean isInRange(int rowIx, int colIx) {CellRangeAddress8Bit r = _range;return r.getFirstRow() <= rowIx&& r.getLastRow() >= rowIx&& r.getFirstColumn() <= colIx&& r.getLastColumn() >= colIx;}", "after": "public bool IsInRange(int rowIx, int colIx){CellRangeAddress8Bit r = _range;return r.FirstRow <= rowIx&& r.LastRow >= rowIx&& r.FirstColumn <= colIx&& r.LastColumn >= colIx;}" }, { "index": 7080, "before": "public RmCommand rm() {return new RmCommand(repo);}", "after": "public virtual RmCommand Rm(){return new RmCommand(repo);}" }, { "index": 7081, "before": "public static String[] parse(String line) {boolean insideQuote = false;ArrayList result = new ArrayList<>();int quoteCount = 0;StringBuilder sb = new StringBuilder();for(int i = 0; i < line.length(); i++) {char c = line.charAt(i);if(c == QUOTE) {insideQuote = !insideQuote;quoteCount++;}if(c == COMMA && !insideQuote) {String value = sb.toString();value = unQuoteUnEscape(value);result.add(value);sb.setLength(0);continue;}sb.append(c);}result.add(sb.toString());if(quoteCount % 2 != 0) {return new String[0];}return result.toArray(new String[0]);}", "after": "public static string[] Parse(string line){bool insideQuote = false;List result = new List();int quoteCount = 0;StringBuilder sb = new StringBuilder();for (int i = 0; i < line.Length; i++){char c = line[i];if (c == QUOTE){insideQuote = !insideQuote;quoteCount++;}if (c == COMMA && !insideQuote){string value = sb.ToString();value = UnQuoteUnEscape(value);result.Add(value);sb.Length = 0;continue;}sb.Append(c);}result.Add(sb.ToString());if (quoteCount % 2 != 0){return new string[0];}return result.ToArray();}" }, { "index": 7082, "before": "public long get(int index) {final int o = index / 3;final int b = index % 3;final int shift = b * 21;return (blocks[o] >>> shift) & 2097151L;}", "after": "public override long Get(int index){int o = index / 3;int b = index % 3;int shift = b * 21;return ((long)((ulong)blocks[o] >> shift)) & 2097151L;}" }, { "index": 7083, "before": "public void connect(PipedOutputStream src) throws IOException {src.connect(this);}", "after": "public virtual void connect(java.io.PipedOutputStream src){throw new System.NotImplementedException();}" }, { "index": 7084, "before": "public WeightedPhraseInfo( Collection< WeightedPhraseInfo > toMerge ) {Iterator< WeightedPhraseInfo > toMergeItr = toMerge.iterator();if ( !toMergeItr.hasNext() ) {throw new IllegalArgumentException( \"toMerge must contain at least one WeightedPhraseInfo.\" );}WeightedPhraseInfo first = toMergeItr.next();@SuppressWarnings( { \"rawtypes\", \"unchecked\" } )Iterator< Toffs >[] allToffs = new Iterator[ toMerge.size() ];termsInfos = new ArrayList<>();seqnum = first.seqnum;boost = first.boost;allToffs[ 0 ] = first.termsOffsets.iterator();int index = 1;while ( toMergeItr.hasNext() ) {WeightedPhraseInfo info = toMergeItr.next();boost += info.boost;termsInfos.addAll( info.termsInfos );allToffs[ index++ ] = info.termsOffsets.iterator();}MergedIterator< Toffs > itr = new MergedIterator<>( false, allToffs );termsOffsets = new ArrayList<>();if ( !itr.hasNext() ) {return;}Toffs work = itr.next();while ( itr.hasNext() ) {Toffs current = itr.next();if ( current.startOffset <= work.endOffset ) {work.endOffset = Math.max( work.endOffset, current.endOffset );} else {termsOffsets.add( work );work = current;}}termsOffsets.add( work );}", "after": "public WeightedPhraseInfo(ICollection toMerge){IEnumerator[] allToffs = new IEnumerator[toMerge.Count];try{using (IEnumerator toMergeItr = toMerge.GetEnumerator()){if (!toMergeItr.MoveNext()){throw new ArgumentException(\"toMerge must contain at least one WeightedPhraseInfo.\");}WeightedPhraseInfo first = toMergeItr.Current;termsInfos = new List();seqnum = first.seqnum;boost = first.boost;allToffs[0] = first.termsOffsets.GetEnumerator();int index = 1;while (toMergeItr.MoveNext()){WeightedPhraseInfo info = toMergeItr.Current;boost += info.boost;termsInfos.AddRange(info.termsInfos);allToffs[index++] = info.termsOffsets.GetEnumerator();}using (MergedIterator itr = new MergedIterator(false, allToffs)){termsOffsets = new List();if (!itr.MoveNext()){return;}Toffs work = itr.Current;while (itr.MoveNext()){Toffs current = itr.Current;if (current.StartOffset <= work.EndOffset){work.EndOffset = Math.Max(work.EndOffset, current.EndOffset);}else{termsOffsets.Add(work);work = current;}}termsOffsets.Add(work);}}}finally{foreach (var allToff in allToffs){allToff.Dispose();}}}" }, { "index": 7085, "before": "public DescribeLoadBalancerPolicyTypesResult describeLoadBalancerPolicyTypes(DescribeLoadBalancerPolicyTypesRequest request) {request = beforeClientExecution(request);return executeDescribeLoadBalancerPolicyTypes(request);}", "after": "public virtual DescribeLoadBalancerPolicyTypesResponse DescribeLoadBalancerPolicyTypes(DescribeLoadBalancerPolicyTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoadBalancerPolicyTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoadBalancerPolicyTypesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7086, "before": "public Entry next() {return nextEntry();}", "after": "public override java.util.MapClass.Entry next(){return this.nextEntry();}" }, { "index": 7087, "before": "public int getCmd(Character way) {Cell c = at(way);return (c == null) ? -1 : c.cmd;}", "after": "public int GetCmd(char way){Cell c = At(way);return (c == null) ? -1 : c.cmd;}" }, { "index": 7088, "before": "public int readInt(){int ch1 = _in.readUByte();int ch2 = _in.readUByte();int ch3 = _in.readUByte();int ch4 = _in.readUByte();return (ch4 << 24) + (ch3 << 16) + (ch2 << 8) + (ch1 << 0);}", "after": "public int ReadInt(){int ch1 = _in.ReadUByte();int ch2 = _in.ReadUByte();int ch3 = _in.ReadUByte();int ch4 = _in.ReadUByte();return (ch4 << 24) + (ch3 << 16) + (ch2 << 8) + (ch1 << 0);}" }, { "index": 7089, "before": "public String toString() {return \"Reverse\" + super.toString(); }", "after": "public override string ToString(){return \"Reverse\" + base.ToString();}" }, { "index": 7090, "before": "public Explanation explain(Explanation freq, long norm) {return SimilarityBase.this.explain(stats, freq, getLengthValue(norm));}", "after": "public override Explanation Explain(int doc, Explanation freq){return outerInstance.Explain(stats, doc, freq, norms == null ? 1F : outerInstance.DecodeNormValue((byte)norms.Get(doc)));}" }, { "index": 7091, "before": "public static ListenerList getGlobalListenerList() {return globalListeners;}", "after": "public static ListenerList GetGlobalListenerList(){return globalListeners;}" }, { "index": 7092, "before": "public GetInvitationsCountResult getInvitationsCount(GetInvitationsCountRequest request) {request = beforeClientExecution(request);return executeGetInvitationsCount(request);}", "after": "public virtual GetInvitationsCountResponse GetInvitationsCount(GetInvitationsCountRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInvitationsCountRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInvitationsCountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7093, "before": "public static boolean equals(float[] array1, float[] array2) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length != array2.length) {return false;}for (int i = 0; i < array1.length; i++) {if (Float.floatToIntBits(array1[i]) != Float.floatToIntBits(array2[i])) {return false;}}return true;}", "after": "public static bool equals(float[] array1, float[] array2){if (array1 == array2){return true;}if (array1 == null || array2 == null || array1.Length != array2.Length){return false;}{for (int i = 0; i < array1.Length; i++){if (Sharpen.Util.FloatToIntBits(array1[i]) != Sharpen.Util.FloatToIntBits(array2[i])){return false;}}}return true;}" }, { "index": 7094, "before": "public final V setValue(V value) {if (value == null) {throw new NullPointerException();}V oldValue = this.value;this.value = value;return oldValue;}", "after": "public virtual V setValue(V value){if ((object)value == null){throw new System.ArgumentNullException();}V oldValue = this.value;this.value = value;return oldValue;}" }, { "index": 7095, "before": "@Override public boolean isEmpty() {return Impl.this.isEmpty();}", "after": "public override bool isEmpty(){return this._enclosing._size == 0;}" }, { "index": 7096, "before": "public void setCategoryLabelsCellRange(CellRangeAddressBase range) {Integer count = setVerticalCellRange(dataCategoryLabels, range);if (count == null){return;}series.setNumCategories((short)(int)count);}", "after": "public void SetCategoryLabelsCellRange(CellRangeAddressBase range){int count = SetVerticalCellRange(dataCategoryLabels, range);series.NumCategories = (short)count;}" }, { "index": 7097, "before": "final public SrndQuery OrQuery() throws ParseException {SrndQuery q;ArrayList queries = null;Token oprt = null;q = AndQuery();label_2:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case OR:;break;default:jj_la1[0] = jj_gen;break label_2;}oprt = jj_consume_token(OR);if (queries == null) {queries = new ArrayList();queries.add(q);}q = AndQuery();queries.add(q);}{if (true) return (queries == null) ? q : getOrQuery(queries, true , oprt);}throw new Error(\"Missing return statement in function\");}", "after": "public SrndQuery OrQuery(){SrndQuery q;IList queries = null;Token oprt = null;q = AndQuery();while (true){switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.OR:;break;default:jj_la1[0] = jj_gen;goto label_2;}oprt = Jj_consume_token(RegexpToken.OR);if (queries == null){queries = new List();queries.Add(q);}q = AndQuery();queries.Add(q);}label_2:{ if (true) return (queries == null) ? q : GetOrQuery(queries, true , oprt); }throw new Exception(\"Missing return statement in function\");}" }, { "index": 7098, "before": "public DeleteScheduledActionResult deleteScheduledAction(DeleteScheduledActionRequest request) {request = beforeClientExecution(request);return executeDeleteScheduledAction(request);}", "after": "public virtual DeleteScheduledActionResponse DeleteScheduledAction(DeleteScheduledActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteScheduledActionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteScheduledActionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7099, "before": "public CharBuffer put(String str, int start, int end) {if (start < 0 || end < start || end > str.length()) {throw new IndexOutOfBoundsException(\"str.length()=\" + str.length() +\", start=\" + start + \", end=\" + end);}if (end - start > remaining()) {throw new BufferOverflowException();}for (int i = start; i < end; i++) {put(str.charAt(i));}return this;}", "after": "public virtual java.nio.CharBuffer put(string str, int start, int end){if (start < 0 || end < start || end > str.Length){throw new System.IndexOutOfRangeException(\"str.length()=\" + str.Length + \", start=\"+ start + \", end=\" + end);}if (end - start > remaining()){throw new java.nio.BufferOverflowException();}{for (int i = start; i < end; i++){put(str[i]);}}return this;}" }, { "index": 7100, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(rt);out.writeShort(grbitFrt);out.writeShort(iObjectKind);out.write(unused);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(rt);out1.WriteShort(grbitFrt);out1.WriteShort(iObjectKind);out1.Write(unused);}" }, { "index": 7101, "before": "public ChangeInfo(String id, ChangeStatus status, java.util.Date submittedAt) {setId(id);setStatus(status.toString());setSubmittedAt(submittedAt);}", "after": "public ChangeInfo(string id, ChangeStatus status, DateTime submittedAt){_id = id;_status = status;_submittedAt = submittedAt;}" }, { "index": 7102, "before": "public SwedishLightStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public SwedishLightStemFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 7103, "before": "public ErrorMatcher(int errorCode, CmpOp operator) {super(operator);_value = errorCode;}", "after": "public ErrorMatcher(int errorCode, CmpOp operator1): base(operator1){;_value = errorCode;}" }, { "index": 7104, "before": "public static Console getConsole() {return console;}", "after": "public static java.io.Console getConsole(){return console;}" }, { "index": 7105, "before": "public UpdateTrialComponentResult updateTrialComponent(UpdateTrialComponentRequest request) {request = beforeClientExecution(request);return executeUpdateTrialComponent(request);}", "after": "public virtual UpdateTrialComponentResponse UpdateTrialComponent(UpdateTrialComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTrialComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTrialComponentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7106, "before": "public AddCommand setWorkingTreeIterator(WorkingTreeIterator f) {workingTreeIterator = f;return this;}", "after": "public virtual NGit.Api.AddCommand SetWorkingTreeIterator(WorkingTreeIterator f){workingTreeIterator = f;return this;}" }, { "index": 7107, "before": "public RefWriter(Map refs) {if (refs instanceof RefMap)this.refs = refs.values();elsethis.refs = RefComparator.sort(refs.values());}", "after": "public RefWriter(IDictionary refs){if (refs is RefMap){this.refs = refs.Values;}else{this.refs = RefComparator.Sort(refs.Values);}}" }, { "index": 7108, "before": "public LazyAreaEval(int firstRowIndex, int firstColumnIndex, int lastRowIndex,int lastColumnIndex, SheetRangeEvaluator evaluator) {super(evaluator, firstRowIndex, firstColumnIndex, lastRowIndex, lastColumnIndex);_evaluator = evaluator;}", "after": "public LazyAreaEval(int firstRowIndex, int firstColumnIndex, int lastRowIndex,int lastColumnIndex, SheetRangeEvaluator evaluator) :base(evaluator, firstRowIndex, firstColumnIndex, lastRowIndex, lastColumnIndex){_evaluator = evaluator;}" }, { "index": 7109, "before": "public BatchSuspendUserResult batchSuspendUser(BatchSuspendUserRequest request) {request = beforeClientExecution(request);return executeBatchSuspendUser(request);}", "after": "public virtual BatchSuspendUserResponse BatchSuspendUser(BatchSuspendUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchSuspendUserRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchSuspendUserResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7110, "before": "public CreateVpnGatewayRequest(GatewayType type) {setType(type.toString());}", "after": "public CreateVpnGatewayRequest(GatewayType type){_type = type;}" }, { "index": 7111, "before": "public BundleInstanceResult bundleInstance(BundleInstanceRequest request) {request = beforeClientExecution(request);return executeBundleInstance(request);}", "after": "public virtual BundleInstanceResponse BundleInstance(BundleInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = BundleInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = BundleInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7112, "before": "public ListDeploymentsResult listDeployments(ListDeploymentsRequest request) {request = beforeClientExecution(request);return executeListDeployments(request);}", "after": "public virtual ListDeploymentsResponse ListDeployments(ListDeploymentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeploymentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeploymentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7113, "before": "public String toString() {return \"(FOLLOW(\" + path.toString() + \")\" + \" AND \" + ANY_DIFF.toString() + \")\";}", "after": "public override string ToString(){return \"(FOLLOW(\" + path.ToString() + \")\" + \" AND \" + ANY_DIFF.ToString() + \")\";}" }, { "index": 7114, "before": "public DetectFacesResult detectFaces(DetectFacesRequest request) {request = beforeClientExecution(request);return executeDetectFaces(request);}", "after": "public virtual DetectFacesResponse DetectFaces(DetectFacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectFacesRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectFacesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7115, "before": "public GetRegionsResult getRegions(GetRegionsRequest request) {request = beforeClientExecution(request);return executeGetRegions(request);}", "after": "public virtual GetRegionsResponse GetRegions(GetRegionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRegionsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRegionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7116, "before": "public WikipediaTokenizerFactory(Map args) {super(args);tokenOutput = getInt(args, TOKEN_OUTPUT, WikipediaTokenizer.TOKENS_ONLY);untokenizedTypes = getSet(args, UNTOKENIZED_TYPES);if (untokenizedTypes == null) {untokenizedTypes = Collections.emptySet();}if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public WikipediaTokenizerFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 7117, "before": "public int getSheetIndex(String name) {int retval = -1;final int size = boundsheets.size();for (int k = 0; k < size; k++) {String sheet = getSheetName(k);if (sheet.equalsIgnoreCase(name)) {retval = k;break;}}return retval;}", "after": "public int GetSheetIndex(String name){int retval = -1;for (int k = 0; k < boundsheets.Count; k++){String sheet = GetSheetName(k);if (sheet.Equals(name,StringComparison.OrdinalIgnoreCase)){retval = k;break;}}return retval;}" }, { "index": 7118, "before": "public PagedBytesDataInput getDataInput() {if (!frozen) {throw new IllegalStateException(\"must call freeze() before getDataInput\");}return new PagedBytesDataInput();}", "after": "public PagedBytesDataInput GetDataInput(){if (!frozen){throw new InvalidOperationException(\"must call Freeze() before GetDataInput()\");}return new PagedBytesDataInput(this);}" }, { "index": 7119, "before": "public AddTagsToResourceResult addTagsToResource(AddTagsToResourceRequest request) {request = beforeClientExecution(request);return executeAddTagsToResource(request);}", "after": "public virtual AddTagsToResourceResponse AddTagsToResource(AddTagsToResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddTagsToResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = AddTagsToResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7120, "before": "public static int oversize(int minTargetSize, int bytesPerElement) {if (minTargetSize < 0) {throw new IllegalArgumentException(\"invalid array size \" + minTargetSize);}if (minTargetSize == 0) {return 0;}if (minTargetSize > MAX_ARRAY_LENGTH) {throw new IllegalArgumentException(\"requested array size \" + minTargetSize + \" exceeds maximum array in java (\" + MAX_ARRAY_LENGTH + \")\");}int extra = minTargetSize >> 3;if (extra < 3) {extra = 3;}int newSize = minTargetSize + extra;if (newSize+7 < 0 || newSize+7 > MAX_ARRAY_LENGTH) {return MAX_ARRAY_LENGTH;}if (Constants.JRE_IS_64BIT) {switch(bytesPerElement) {case 4:return (newSize + 1) & 0x7ffffffe;case 2:return (newSize + 3) & 0x7ffffffc;case 1:return (newSize + 7) & 0x7ffffff8;case 8:default:return newSize;}} else {switch(bytesPerElement) {case 2:return (newSize + 1) & 0x7ffffffe;case 1:return (newSize + 3) & 0x7ffffffc;case 4:case 8:default:return newSize;}}}", "after": "public static int Oversize(int minTargetSize, int bytesPerElement){if (minTargetSize < 0){throw new System.ArgumentException(\"invalid array size \" + minTargetSize);}if (minTargetSize == 0){return 0;}int extra = minTargetSize >> 3;if (extra < 3){extra = 3;}int newSize = minTargetSize + extra;if (newSize + 7 < 0){return int.MaxValue;}if (Constants.RUNTIME_IS_64BIT){switch (bytesPerElement){case 4:return (newSize + 1) & 0x7ffffffe;case 2:return (newSize + 3) & 0x7ffffffc;case 1:return (newSize + 7) & 0x7ffffff8;case 8:default:return newSize;}}else{switch (bytesPerElement){case 2:return (newSize + 1) & 0x7ffffffe;case 1:return (newSize + 3) & 0x7ffffffc;case 4:case 8:default:return newSize;}}}" }, { "index": 7121, "before": "public IntervalSet complement(IntSet vocabulary) {if ( vocabulary==null || vocabulary.isNil() ) {return null; }IntervalSet vocabularyIS;if (vocabulary instanceof IntervalSet) {vocabularyIS = (IntervalSet)vocabulary;}else {vocabularyIS = new IntervalSet();vocabularyIS.addAll(vocabulary);}return vocabularyIS.subtract(this);}", "after": "public virtual Antlr4.Runtime.Misc.IntervalSet Complement(IIntSet vocabulary){if (vocabulary == null || vocabulary.IsNil){return null;}Antlr4.Runtime.Misc.IntervalSet vocabularyIS;if (vocabulary is Antlr4.Runtime.Misc.IntervalSet){vocabularyIS = (Antlr4.Runtime.Misc.IntervalSet)vocabulary;}else{vocabularyIS = new Antlr4.Runtime.Misc.IntervalSet();vocabularyIS.AddAll(vocabulary);}return vocabularyIS.Subtract(this);}" }, { "index": 7122, "before": "public BatchRefUpdate setRefLogMessage(String msg, boolean appendStatus) {if (msg == null && !appendStatus)disableRefLog();else if (msg == null && appendStatus) {refLogMessage = \"\"; refLogIncludeResult = true;} else {refLogMessage = msg;refLogIncludeResult = appendStatus;}return this;}", "after": "public virtual NGit.BatchRefUpdate 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;}}return this;}" }, { "index": 7123, "before": "public GetApnsVoipSandboxChannelResult getApnsVoipSandboxChannel(GetApnsVoipSandboxChannelRequest request) {request = beforeClientExecution(request);return executeGetApnsVoipSandboxChannel(request);}", "after": "public virtual GetApnsVoipSandboxChannelResponse GetApnsVoipSandboxChannel(GetApnsVoipSandboxChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApnsVoipSandboxChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApnsVoipSandboxChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7124, "before": "public TokenStream create(TokenStream input) {return new ArabicNormalizationFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new ArabicNormalizationFilter(input);}" }, { "index": 7125, "before": "@Override public boolean contains(Object o) {return Impl.this.containsValue(o);}", "after": "public override bool contains(object o){return this._enclosing.containsValue(o);}" }, { "index": 7126, "before": "@Override public boolean isEmpty() {synchronized (mutex) {return c.isEmpty();}}", "after": "public virtual bool isEmpty(){lock (mutex){return c.isEmpty();}}" }, { "index": 7127, "before": "public long get(int index) {return 0;}", "after": "public override long Get(int index){return 0;}" }, { "index": 7128, "before": "public DescribeSecurityGroupsResult describeSecurityGroups() {return describeSecurityGroups(new DescribeSecurityGroupsRequest());}", "after": "public virtual DescribeSecurityGroupsResponse DescribeSecurityGroups(){return DescribeSecurityGroups(new DescribeSecurityGroupsRequest());}" }, { "index": 7129, "before": "public ListPartsRequest(String accountId, String vaultName, String uploadId) {setAccountId(accountId);setVaultName(vaultName);setUploadId(uploadId);}", "after": "public ListPartsRequest(string accountId, string vaultName, string uploadId){_accountId = accountId;_vaultName = vaultName;_uploadId = uploadId;}" }, { "index": 7130, "before": "public GetCloudFrontOriginAccessIdentityRequest(String id) {setId(id);}", "after": "public GetCloudFrontOriginAccessIdentityRequest(string id){_id = id;}" }, { "index": 7131, "before": "public DescribeAlarmHistoryResult describeAlarmHistory(DescribeAlarmHistoryRequest request) {request = beforeClientExecution(request);return executeDescribeAlarmHistory(request);}", "after": "public virtual DescribeAlarmHistoryResponse DescribeAlarmHistory(DescribeAlarmHistoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAlarmHistoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAlarmHistoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7132, "before": "public DescribeJobRequest(String accountId, String vaultName, String jobId) {setAccountId(accountId);setVaultName(vaultName);setJobId(jobId);}", "after": "public DescribeJobRequest(string accountId, string vaultName, string jobId){_accountId = accountId;_vaultName = vaultName;_jobId = jobId;}" }, { "index": 7133, "before": "public DeleteTagCommand setTags(String... tags) {checkCallable();this.tags.clear();this.tags.addAll(Arrays.asList(tags));return this;}", "after": "public virtual NGit.Api.DeleteTagCommand SetTags(params string[] tags){CheckCallable();this.tags.Clear();foreach (string tagName in tags){this.tags.AddItem(tagName);}return this;}" }, { "index": 7134, "before": "public ListVoiceConnectorGroupsResult listVoiceConnectorGroups(ListVoiceConnectorGroupsRequest request) {request = beforeClientExecution(request);return executeListVoiceConnectorGroups(request);}", "after": "public virtual ListVoiceConnectorGroupsResponse ListVoiceConnectorGroups(ListVoiceConnectorGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListVoiceConnectorGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListVoiceConnectorGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7135, "before": "public Intercept() {func = new LinearRegressionFunction(FUNCTION.INTERCEPT);}", "after": "public Intercept(){func = new LinearRegressionFunction(LinearRegressionFunction.FUNCTION.INTERCEPT);}" }, { "index": 7136, "before": "public ProvisionByoipCidrResult provisionByoipCidr(ProvisionByoipCidrRequest request) {request = beforeClientExecution(request);return executeProvisionByoipCidr(request);}", "after": "public virtual ProvisionByoipCidrResponse ProvisionByoipCidr(ProvisionByoipCidrRequest request){var options = new InvokeOptions();options.RequestMarshaller = ProvisionByoipCidrRequestMarshaller.Instance;options.ResponseUnmarshaller = ProvisionByoipCidrResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7137, "before": "public BatchGetApplicationRevisionsResult batchGetApplicationRevisions(BatchGetApplicationRevisionsRequest request) {request = beforeClientExecution(request);return executeBatchGetApplicationRevisions(request);}", "after": "public virtual BatchGetApplicationRevisionsResponse BatchGetApplicationRevisions(BatchGetApplicationRevisionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetApplicationRevisionsRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetApplicationRevisionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7138, "before": "public void expandRow(int rowNumber) {if (rowNumber == -1)return;if (!isRowGroupCollapsed(rowNumber)) {return;}int startIdx = findStartOfRowOutlineGroup(rowNumber);RowRecord row = getRow(startIdx);int endIdx = findEndOfRowOutlineGroup(rowNumber);if (!isRowGroupHiddenByParent(rowNumber)) {for (int i = startIdx; i <= endIdx; i++) {RowRecord otherRow = getRow(i);if (row.getOutlineLevel() == otherRow.getOutlineLevel() || !isRowGroupCollapsed(i)) {otherRow.setZeroHeight(false);}}}getRow(endIdx + 1).setColapsed(false);}", "after": "public void ExpandRow(int rowNumber){int idx = rowNumber;if (idx == -1)return;if (!IsRowGroupCollapsed(idx))return;int startIdx = FindStartOfRowOutlineGroup(idx);RowRecord row = GetRow(startIdx);int endIdx = FindEndOfRowOutlineGroup(idx);if (!IsRowGroupHiddenByParent(idx)){for (int i = startIdx; i <= endIdx; i++){if (row.OutlineLevel == GetRow(i).OutlineLevel)GetRow(i).ZeroHeight = (false);else if (!IsRowGroupCollapsed(i))GetRow(i).ZeroHeight = (false);}}GetRow(endIdx + 1).Colapsed = (false);}" }, { "index": 7139, "before": "public GetSendQuotaResult getSendQuota(GetSendQuotaRequest request) {request = beforeClientExecution(request);return executeGetSendQuota(request);}", "after": "public virtual GetSendQuotaResponse GetSendQuota(GetSendQuotaRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSendQuotaRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSendQuotaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7140, "before": "public FeatFormulaErr2(RecordInputStream in) {errorCheck = in.readInt();}", "after": "public FeatFormulaErr2(RecordInputStream in1){errorCheck = in1.ReadInt();}" }, { "index": 7141, "before": "public DefineAnalysisSchemeResult defineAnalysisScheme(DefineAnalysisSchemeRequest request) {request = beforeClientExecution(request);return executeDefineAnalysisScheme(request);}", "after": "public virtual DefineAnalysisSchemeResponse DefineAnalysisScheme(DefineAnalysisSchemeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DefineAnalysisSchemeRequestMarshaller.Instance;options.ResponseUnmarshaller = DefineAnalysisSchemeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7142, "before": "public boolean equals( Object o ) {return o instanceof IrishStemmer;}", "after": "public override bool Equals(object o){return o is IrishStemmer;}" }, { "index": 7143, "before": "public UTF8Sequence() {bytes = new UTF8Byte[4];for(int i=0;i<4;i++) {bytes[i] = new UTF8Byte();}}", "after": "public UTF8Sequence(){bytes = new UTF8Byte[4];for (int i = 0; i < 4; i++){bytes[i] = new UTF8Byte();}}" }, { "index": 7144, "before": "public ListPhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"ListPhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public ListPhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"ListPhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 7145, "before": "public RegisterStreamConsumerResult registerStreamConsumer(RegisterStreamConsumerRequest request) {request = beforeClientExecution(request);return executeRegisterStreamConsumer(request);}", "after": "public virtual RegisterStreamConsumerResponse RegisterStreamConsumer(RegisterStreamConsumerRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterStreamConsumerRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterStreamConsumerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7146, "before": "public Formula copy() {return this;}", "after": "public Formula Copy(){return this;}" }, { "index": 7147, "before": "public boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;MergeInfo other = (MergeInfo) obj;if (estimatedMergeBytes != other.estimatedMergeBytes)return false;if (isExternal != other.isExternal)return false;if (mergeMaxNumSegments != other.mergeMaxNumSegments)return false;if (totalMaxDoc != other.totalMaxDoc)return false;return true;}", "after": "public override bool Equals(object obj){if (this == obj){return true;}if (obj == null){return false;}if (this.GetType() != obj.GetType()){return false;}MergeInfo other = (MergeInfo)obj;if (EstimatedMergeBytes != other.EstimatedMergeBytes){return false;}if (IsExternal != other.IsExternal){return false;}if (MergeMaxNumSegments != other.MergeMaxNumSegments){return false;}if (TotalDocCount != other.TotalDocCount){return false;}return true;}" }, { "index": 7148, "before": "public float score(float freq, long norm) {float sum = 0.0f;for (SimScorer subScorer : subScorers) {sum += subScorer.score(freq, norm);}return sum;}", "after": "public override float Score(int doc, float freq){float sum = 0.0f;foreach (SimScorer subScorer in subScorers){sum += subScorer.Score(doc, freq);}return sum;}" }, { "index": 7149, "before": "public AddTagsRequest(String resourceId, java.util.List tags) {setResourceId(resourceId);setTags(tags);}", "after": "public AddTagsRequest(string resourceId, List tags){_resourceId = resourceId;_tags = tags;}" }, { "index": 7150, "before": "public DescribeEC2InstanceLimitsResult describeEC2InstanceLimits(DescribeEC2InstanceLimitsRequest request) {request = beforeClientExecution(request);return executeDescribeEC2InstanceLimits(request);}", "after": "public virtual DescribeEC2InstanceLimitsResponse DescribeEC2InstanceLimits(DescribeEC2InstanceLimitsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEC2InstanceLimitsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEC2InstanceLimitsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7151, "before": "public BlameGenerator setFollowFileRenames(boolean follow) {if (follow)renameDetector = new RenameDetector(getRepository());elserenameDetector = null;return this;}", "after": "public virtual NGit.Blame.BlameGenerator SetFollowFileRenames(bool follow){if (follow){renameDetector = new RenameDetector(GetRepository());}else{renameDetector = null;}return this;}" }, { "index": 7152, "before": "public GetStagesResult getStages(GetStagesRequest request) {request = beforeClientExecution(request);return executeGetStages(request);}", "after": "public virtual GetStagesResponse GetStages(GetStagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetStagesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetStagesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7153, "before": "public void setParsedExpression(Ptg[] ptgs) {field_5_name_definition = Formula.create(ptgs);}", "after": "public void SetParsedExpression(Ptg[] ptgs){field_5_name_definition = Formula.Create(ptgs);}" }, { "index": 7154, "before": "public int getRightId(int wordId) {return rightIds[wordId];}", "after": "public int GetRightId(int wordId){return RIGHT_ID;}" }, { "index": 7155, "before": "public GetChangeRequest(String id) {setId(id);}", "after": "public GetChangeRequest(string id){_id = id;}" }, { "index": 7156, "before": "public RegisterPhotoRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"RegisterPhoto\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public RegisterPhotoRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"RegisterPhoto\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 7157, "before": "public void more() {_type = MORE;}", "after": "public virtual void More(){_type = TokenTypes.More;}" }, { "index": 7158, "before": "public final Buffer position(int newPosition) {positionImpl(newPosition);return this;}", "after": "public java.nio.Buffer position(int newPosition){positionImpl(newPosition);return this;}" }, { "index": 7159, "before": "public ScenarioProtectRecord(RecordInputStream in) {field_1_protect = in.readShort();}", "after": "public ScenarioProtectRecord(RecordInputStream in1){field_1_protect = in1.ReadShort();}" }, { "index": 7160, "before": "public static TopFieldDocs merge(Sort sort, int topN, TopFieldDocs[] shardHits) {return merge(sort, 0, topN, shardHits);}", "after": "public static TopDocs Merge(Sort sort, int topN, TopDocs[] shardHits){return Merge(sort, 0, topN, shardHits);}" }, { "index": 7161, "before": "public LexerModeAction(int mode) {this.mode = mode;}", "after": "public LexerModeAction(int mode){this.mode = mode;}" }, { "index": 7162, "before": "public boolean canExecute(File f) {return false;}", "after": "public override bool CanExecute(FilePath f){return false;}" }, { "index": 7163, "before": "public int preceding(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());currentSentence = 0;return DONE;} else if (pos < sentenceStarts[0]) {text.setIndex(text.getBeginIndex());currentSentence = 0;return DONE;} else {currentSentence = sentenceStarts.length / 2; moveToSentenceAt(pos, 0, sentenceStarts.length - 1);if (0 == currentSentence) {text.setIndex(text.getBeginIndex());return DONE;} else {text.setIndex(sentenceStarts[--currentSentence]);return current();}}}", "after": "public override int Preceding(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);currentSentence = 0;return Done;}else if (pos < sentenceStarts[0]){text.SetIndex(text.BeginIndex);currentSentence = 0;return Done;}else{currentSentence = sentenceStarts.Length / 2; MoveToSentenceAt(pos, 0, sentenceStarts.Length - 1);if (0 == currentSentence){text.SetIndex(text.BeginIndex);return Done;}else{text.SetIndex(sentenceStarts[--currentSentence]);return Current;}}}" }, { "index": 7164, "before": "public int serialize(int offset, byte[] data) {throw new RecordFormatException(\"Cannot serialize a dummy record\");}", "after": "public override int Serialize(int offset, byte[] data){throw new RecordFormatException(\"Cannot serialize a dummy record\");}" }, { "index": 7165, "before": "public DetachObjectResult detachObject(DetachObjectRequest request) {request = beforeClientExecution(request);return executeDetachObject(request);}", "after": "public virtual DetachObjectResponse DetachObject(DetachObjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachObjectRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachObjectResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7166, "before": "public WorkflowTypeDetail describeWorkflowType(DescribeWorkflowTypeRequest request) {request = beforeClientExecution(request);return executeDescribeWorkflowType(request);}", "after": "public virtual DescribeWorkflowTypeResponse DescribeWorkflowType(DescribeWorkflowTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkflowTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkflowTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7167, "before": "public static void clearModels() {sentenceModels.clear();tokenizerModels.clear();posTaggerModels.clear();chunkerModels.clear();nerModels.clear();lemmaDictionaries.clear();}", "after": "public static void ClearModels(){sentenceModels.Clear();tokenizerModels.Clear();posTaggerModels.Clear();chunkerModels.Clear();nerModels.Clear();lemmaDictionaries.Clear();}" }, { "index": 7168, "before": "public static String refLockFor(String name) {return name + LOCK_SUFFIX;}", "after": "public static string RefLockFor(string name){return name + LockFile.SUFFIX;}" }, { "index": 7169, "before": "public DeleteComponentResult deleteComponent(DeleteComponentRequest request) {request = beforeClientExecution(request);return executeDeleteComponent(request);}", "after": "public virtual DeleteComponentResponse DeleteComponent(DeleteComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteComponentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7170, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(\"[STYLE]\\n\");sb.append(\" .xf_index_raw =\").append(HexDump.shortToHex(field_1_xf_index)).append(\"\\n\");sb.append(\" .type =\").append(isBuiltin() ? \"built-in\" : \"user-defined\").append(\"\\n\");sb.append(\" .xf_index =\").append(HexDump.shortToHex(getXFIndex())).append(\"\\n\");if (isBuiltin()){sb.append(\" .builtin_style=\").append(HexDump.byteToHex(field_2_builtin_style)).append(\"\\n\");sb.append(\" .outline_level=\").append(HexDump.byteToHex(field_3_outline_style_level)).append(\"\\n\");} else {sb.append(\" .name =\").append(getName()).append(\"\\n\");}sb.append(\"[/STYLE]\\n\");return sb.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[STYLE]\\n\");buffer.Append(\" .xf_index_raw = \").Append(HexDump.ShortToHex(field_1_xf_index)).Append(\"\\n\");buffer.Append(\" .type = \").Append(IsBuiltin?\"built-in\":\"user-defined\").Append(\"\\n\");buffer.Append(\" .xf_index = \").Append(HexDump.ShortToHex(XFIndex)).Append(\"\\n\");if (IsBuiltin){buffer.Append(\" .builtin_style = \").Append(HexDump.ByteToHex(field_2_builtin_style)).Append(\"\\n\");buffer.Append(\" .outline_level = \").Append(HexDump.ByteToHex(field_3_outline_style_level)).Append(\"\\n\");}else{buffer.Append(\" .name = \").Append(Name).Append(\"\\n\");}buffer.Append(\"[/STYLE]\\n\");return buffer.ToString();}" }, { "index": 7171, "before": "public DescribeAuditStreamConfigurationResult describeAuditStreamConfiguration(DescribeAuditStreamConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeAuditStreamConfiguration(request);}", "after": "public virtual DescribeAuditStreamConfigurationResponse DescribeAuditStreamConfiguration(DescribeAuditStreamConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAuditStreamConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAuditStreamConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7172, "before": "public String toString() {if (getChildren() == null || getChildren().size() == 0)return \"\";StringBuilder sb = new StringBuilder();sb.append(\"');for (QueryNode clause : getChildren()) {sb.append(\"\\n\");sb.append(clause.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 clause in children){sb.Append(\"\\n\");sb.Append(clause.ToString());}sb.Append(\"\\n\");return sb.ToString();}" }, { "index": 7173, "before": "public AssociateSkillWithSkillGroupResult associateSkillWithSkillGroup(AssociateSkillWithSkillGroupRequest request) {request = beforeClientExecution(request);return executeAssociateSkillWithSkillGroup(request);}", "after": "public virtual AssociateSkillWithSkillGroupResponse AssociateSkillWithSkillGroup(AssociateSkillWithSkillGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateSkillWithSkillGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateSkillWithSkillGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7174, "before": "public String getFetchedFrom() {return this.fetchedFrom;}", "after": "public virtual string GetFetchedFrom(){return this.fetchedFrom;}" }, { "index": 7175, "before": "public static Counter newCounter(boolean threadSafe) {return threadSafe ? new AtomicCounter() : new SerialCounter();}", "after": "public static Counter NewCounter(bool threadSafe){return threadSafe ? (Counter)new AtomicCounter() : new SerialCounter();}" }, { "index": 7176, "before": "public FloatBuffer slice() {return new ReadWriteFloatArrayBuffer(remaining(), backingArray, offset + position);}", "after": "public override java.nio.FloatBuffer slice(){return new java.nio.ReadWriteFloatArrayBuffer(remaining(), backingArray, offset +_position);}" }, { "index": 7177, "before": "public ListProcessingJobsResult listProcessingJobs(ListProcessingJobsRequest request) {request = beforeClientExecution(request);return executeListProcessingJobs(request);}", "after": "public virtual ListProcessingJobsResponse ListProcessingJobs(ListProcessingJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListProcessingJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListProcessingJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7178, "before": "public void recover(RecognitionException re) {_input.consume();}", "after": "public virtual void Recover(RecognitionException re){_input.Consume();}" }, { "index": 7179, "before": "public CreateTemplateAliasResult createTemplateAlias(CreateTemplateAliasRequest request) {request = beforeClientExecution(request);return executeCreateTemplateAlias(request);}", "after": "public virtual CreateTemplateAliasResponse CreateTemplateAlias(CreateTemplateAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTemplateAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTemplateAliasResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7180, "before": "public final Buffer reset() {if (mark == UNSET_MARK) {throw new InvalidMarkException(\"Mark not set\");}position = mark;return this;}", "after": "public java.nio.Buffer reset(){if (_mark == UNSET_MARK){throw new java.nio.InvalidMarkException(\"Mark not set\");}_position = _mark;return this;}" }, { "index": 7181, "before": "@Override public synchronized boolean equals(Object object) {return (object instanceof Map) &&entrySet().equals(((Map)object).entrySet());}", "after": "public override bool Equals(object @object){lock (this){return (@object is java.util.Map) && entrySet().Equals(((java.util.Map)@object).entrySet());}}" }, { "index": 7182, "before": "public void tagResource(TagResourceRequest request) {request = beforeClientExecution(request);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": 7183, "before": "public BytesRef common(BytesRef output1, BytesRef output2) {assert output1 != null;assert output2 != null;int pos1 = output1.offset;int pos2 = output2.offset;int stopAt1 = pos1 + Math.min(output1.length, output2.length);while(pos1 < stopAt1) {if (output1.bytes[pos1] != output2.bytes[pos2]) {break;}pos1++;pos2++;}if (pos1 == output1.offset) {return NO_OUTPUT;} else if (pos1 == output1.offset + output1.length) {return output1;} else if (pos2 == output2.offset + output2.length) {return output2;} else {return new BytesRef(output1.bytes, output1.offset, pos1-output1.offset);}}", "after": "public override BytesRef Common(BytesRef output1, BytesRef output2){Debug.Assert(output1 != null);Debug.Assert(output2 != null);int pos1 = output1.Offset;int pos2 = output2.Offset;int stopAt1 = pos1 + Math.Min(output1.Length, output2.Length);while (pos1 < stopAt1){if (output1.Bytes[pos1] != output2.Bytes[pos2]){break;}pos1++;pos2++;}if (pos1 == output1.Offset){return NO_OUTPUT;}else if (pos1 == output1.Offset + output1.Length){return output1;}else if (pos2 == output2.Offset + output2.Length){return output2;}else{return new BytesRef(output1.Bytes, output1.Offset, pos1 - output1.Offset);}}" }, { "index": 7184, "before": "public E getFirst() {return getFirstImpl();}", "after": "public virtual E getFirst(){return getFirstImpl();}" }, { "index": 7185, "before": "public ObjectId computeId(ObjectInserter ins) {if (buf != null)return ins.idFor(OBJ_TREE, buf, 0, ptr);final long len = overflowBuffer.length();try {return ins.idFor(OBJ_TREE, len, overflowBuffer.openInputStream());} catch (IOException e) {throw new RuntimeException(e);}}", "after": "public virtual ObjectId ComputeId(ObjectInserter ins){if (buf != null){return ins.IdFor(Constants.OBJ_TREE, buf, 0, ptr);}long len = overflowBuffer.Length();try{return ins.IdFor(Constants.OBJ_TREE, len, overflowBuffer.OpenInputStream());}catch (IOException e){throw new RuntimeException(e);}}" }, { "index": 7186, "before": "public TransferDomainResult transferDomain(TransferDomainRequest request) {request = beforeClientExecution(request);return executeTransferDomain(request);}", "after": "public virtual TransferDomainResponse TransferDomain(TransferDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = TransferDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = TransferDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7187, "before": "public String toString() {synchronized (lock) {return new String(buf, 0, count);}}", "after": "public override string ToString(){lock (@lock){return new string(buf, 0, count);}}" }, { "index": 7188, "before": "public DescribeReservedNodeOfferingsResult describeReservedNodeOfferings(DescribeReservedNodeOfferingsRequest request) {request = beforeClientExecution(request);return executeDescribeReservedNodeOfferings(request);}", "after": "public virtual DescribeReservedNodeOfferingsResponse DescribeReservedNodeOfferings(DescribeReservedNodeOfferingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedNodeOfferingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedNodeOfferingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7189, "before": "public String toString(String field) {StringBuilder buffer = new StringBuilder();if (!term.field().equals(field)) {buffer.append(term.field());buffer.append(\":\");}buffer.append(term.text());return buffer.toString();}", "after": "public override string ToString(string field){StringBuilder buffer = new StringBuilder();if (!term.Field.Equals(field, StringComparison.Ordinal)){buffer.Append(term.Field);buffer.Append(\":\");}buffer.Append(term.Text());buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}" }, { "index": 7190, "before": "public IntBuffer duplicate() {ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());IntToByteBufferAdapter buf = new IntToByteBufferAdapter(bb);buf.limit = limit;buf.position = position;buf.mark = mark;return buf;}", "after": "public override java.nio.IntBuffer duplicate(){java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());java.nio.IntToByteBufferAdapter buf = new java.nio.IntToByteBufferAdapter(bb);buf._limit = _limit;buf._position = _position;buf._mark = _mark;return buf;}" }, { "index": 7191, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[SERTOCRT]\\n\");buffer.append(\" .chartGroupIndex = \").append(\"0x\").append(HexDump.toHex( getChartGroupIndex ())).append(\" (\").append( getChartGroupIndex() ).append(\" )\");buffer.append(System.getProperty(\"line.separator\"));buffer.append(\"[/SERTOCRT]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[SERTOCRT]\\n\");buffer.Append(\" .chartGroupIndex = \").Append(\"0x\").Append(HexDump.ToHex(ChartGroupIndex)).Append(\" (\").Append(ChartGroupIndex).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\"[/SERTOCRT]\\n\");return buffer.ToString();}" }, { "index": 7192, "before": "public boolean canHandle(URIish uri) {return canHandle(uri, null, null);}", "after": "public virtual bool CanHandle(URIish uri){return CanHandle(uri, null, null);}" }, { "index": 7193, "before": "public GetImportJobResult getImportJob(GetImportJobRequest request) {request = beforeClientExecution(request);return executeGetImportJob(request);}", "after": "public virtual GetImportJobResponse GetImportJob(GetImportJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetImportJobRequestMarshaller.Instance;options.ResponseUnmarshaller = GetImportJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7194, "before": "public LookupDeveloperIdentityResult lookupDeveloperIdentity(LookupDeveloperIdentityRequest request) {request = beforeClientExecution(request);return executeLookupDeveloperIdentity(request);}", "after": "public virtual LookupDeveloperIdentityResponse LookupDeveloperIdentity(LookupDeveloperIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = LookupDeveloperIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = LookupDeveloperIdentityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7195, "before": "public FloatBuffer put(float c) {if (position == limit) {throw new BufferOverflowException();}backingArray[offset + position++] = c;return this;}", "after": "public override java.nio.FloatBuffer put(float c){if (_position == _limit){throw new java.nio.BufferOverflowException();}backingArray[offset + _position++] = c;return this;}" }, { "index": 7196, "before": "public RefModeRecord(RecordInputStream in) {field_1_mode = in.readShort();}", "after": "public RefModeRecord(RecordInputStream in1){field_1_mode = in1.ReadShort();}" }, { "index": 7197, "before": "public BulkOperationPackedSingleBlock(int bitsPerValue) {this.bitsPerValue = bitsPerValue;this.valueCount = 64 / bitsPerValue;this.mask = (1L << bitsPerValue) - 1;}", "after": "public BulkOperationPackedSingleBlock(int bitsPerValue){this.bitsPerValue = bitsPerValue;this.valueCount = 64 / bitsPerValue;this.mask = (1L << bitsPerValue) - 1;}" }, { "index": 7198, "before": "public static String dateToString(Date date, Resolution resolution) {return timeToString(date.getTime(), resolution);}", "after": "public static string DateToString(DateTime date, Resolution resolution){return TimeToString(date.Ticks / TimeSpan.TicksPerMillisecond, resolution);}" }, { "index": 7199, "before": "public DescribeUserHierarchyStructureResult describeUserHierarchyStructure(DescribeUserHierarchyStructureRequest request) {request = beforeClientExecution(request);return executeDescribeUserHierarchyStructure(request);}", "after": "public virtual DescribeUserHierarchyStructureResponse DescribeUserHierarchyStructure(DescribeUserHierarchyStructureRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUserHierarchyStructureRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUserHierarchyStructureResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7200, "before": "public GetDomainsResult getDomains(GetDomainsRequest request) {request = beforeClientExecution(request);return executeGetDomains(request);}", "after": "public virtual GetDomainsResponse GetDomains(GetDomainsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDomainsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDomainsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7201, "before": "public int getStreamFileThreshold() {return streamFileThreshold;}", "after": "public virtual int GetStreamFileThreshold(){return streamFileThreshold;}" }, { "index": 7202, "before": "public BatchGetDeploymentInstancesResult batchGetDeploymentInstances(BatchGetDeploymentInstancesRequest request) {request = beforeClientExecution(request);return executeBatchGetDeploymentInstances(request);}", "after": "public virtual BatchGetDeploymentInstancesResponse BatchGetDeploymentInstances(BatchGetDeploymentInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetDeploymentInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetDeploymentInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7203, "before": "public GetIdentityVerificationAttributesResult getIdentityVerificationAttributes(GetIdentityVerificationAttributesRequest request) {request = beforeClientExecution(request);return executeGetIdentityVerificationAttributes(request);}", "after": "public virtual GetIdentityVerificationAttributesResponse GetIdentityVerificationAttributes(GetIdentityVerificationAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdentityVerificationAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdentityVerificationAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7204, "before": "public LittleEndianOutputStream(OutputStream out) {super(out);}", "after": "public LittleEndianOutputStream(Stream out1){this.out1 = out1;}" }, { "index": 7205, "before": "public GetDeploymentGroupResult getDeploymentGroup(GetDeploymentGroupRequest request) {request = beforeClientExecution(request);return executeGetDeploymentGroup(request);}", "after": "public virtual GetDeploymentGroupResponse GetDeploymentGroup(GetDeploymentGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDeploymentGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDeploymentGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7206, "before": "public boolean containsKey(char[] text, int off, int len) {if(text == null)throw new NullPointerException();return false;}", "after": "public override bool ContainsKey(char[] text, int offset, int length){if (text == null){throw new ArgumentNullException(\"text\");}return false;}" }, { "index": 7207, "before": "public void inform(ResourceLoader loader) throws IOException {clazz = registry.get(name.toUpperCase(Locale.ROOT));if( clazz == null ) {clazz = resolveEncoder(name, loader);}if (maxCodeLength != null) {try {setMaxCodeLenMethod = clazz.getMethod(\"setMaxCodeLen\", int.class);} catch (Exception e) {throw new IllegalArgumentException(\"Encoder \" + name + \" / \" + clazz + \" does not support \" + MAX_CODE_LENGTH, e);}}getEncoder();}", "after": "public virtual void Inform(IResourceLoader loader){registry.TryGetValue(name.ToUpperInvariant(), out clazz);if (clazz == null){clazz = ResolveEncoder(name, loader);}if (maxCodeLength != null){try{setMaxCodeLenMethod = clazz.GetMethod(\"set_MaxCodeLen\");}catch (Exception e){throw new ArgumentException(\"Encoder \" + name + \" / \" + clazz + \" does not support \" + MAX_CODE_LENGTH, e);}}GetEncoder();}" }, { "index": 7208, "before": "public DescribeOrganizationConfigurationResult describeOrganizationConfiguration(DescribeOrganizationConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeOrganizationConfiguration(request);}", "after": "public virtual DescribeOrganizationConfigurationResponse DescribeOrganizationConfiguration(DescribeOrganizationConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeOrganizationConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeOrganizationConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7209, "before": "public AbbreviatedObjectId getOldId() {return getOldId(0);}", "after": "public override AbbreviatedObjectId GetOldId(){return GetOldId(0);}" }, { "index": 7210, "before": "public UpdateRuleMetadataResult updateRuleMetadata(UpdateRuleMetadataRequest request) {request = beforeClientExecution(request);return executeUpdateRuleMetadata(request);}", "after": "public virtual UpdateRuleMetadataResponse UpdateRuleMetadata(UpdateRuleMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRuleMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRuleMetadataResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7211, "before": "public K lowerKey(K key) {Entry entry = findBounded(key, LOWER);return entry != null ? entry.getKey() : null;}", "after": "public K lowerKey(K key){java.util.MapClass.Entry entry = this.findBounded(key, java.util.TreeMap.Relation.LOWER);return entry != null ? entry.getKey() : default(K);}" }, { "index": 7212, "before": "public FtCfSubRecord clone() {return copy();}", "after": "public override Object Clone(){FtCfSubRecord rec = new FtCfSubRecord();rec.flags = this.flags;return rec;}" }, { "index": 7213, "before": "public HCenterRecord clone() {return copy();}", "after": "public override Object Clone(){HCenterRecord rec = new HCenterRecord();rec.field_1_hcenter = field_1_hcenter;return rec;}" }, { "index": 7214, "before": "public void serialize(LittleEndianOutput out) {out.writeInt(field_1_foregroundColor);out.writeInt(field_2_backgroundColor);out.writeShort(field_3_pattern);out.writeShort(field_4_formatFlags);out.writeShort(field_5_forecolorIndex);out.writeShort(field_6_backcolorIndex);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(field_1_foregroundColor);out1.WriteInt(field_2_backgroundColor);out1.WriteShort(field_3_pattern);out1.WriteShort(field_4_formatFlags);out1.WriteShort(field_5_forecolorIndex);out1.WriteShort(field_6_backcolorIndex);}" }, { "index": 7215, "before": "public GetDashboardEmbedUrlResult getDashboardEmbedUrl(GetDashboardEmbedUrlRequest request) {request = beforeClientExecution(request);return executeGetDashboardEmbedUrl(request);}", "after": "public virtual GetDashboardEmbedUrlResponse GetDashboardEmbedUrl(GetDashboardEmbedUrlRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDashboardEmbedUrlRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDashboardEmbedUrlResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7216, "before": "public BinaryDocValues getBinaryDocValues(String field) {return getSortedDocValues(field, DocValuesType.BINARY);}", "after": "public override BinaryDocValues GetBinaryDocValues(string field){return null;}" }, { "index": 7217, "before": "public TreeFilter clone() {final TreeFilter[] s = new TreeFilter[subfilters.length];for (int i = 0; i < s.length; i++)s[i] = subfilters[i].clone();return new List(s);}", "after": "public override RevFilter Clone(){RevFilter[] s = new RevFilter[subfilters.Length];for (int i = 0; i < s.Length; i++){s[i] = subfilters[i].Clone();}return new OrRevFilter.List(s);}" }, { "index": 7218, "before": "public DeleteApnsVoipSandboxChannelResult deleteApnsVoipSandboxChannel(DeleteApnsVoipSandboxChannelRequest request) {request = beforeClientExecution(request);return executeDeleteApnsVoipSandboxChannel(request);}", "after": "public virtual DeleteApnsVoipSandboxChannelResponse DeleteApnsVoipSandboxChannel(DeleteApnsVoipSandboxChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApnsVoipSandboxChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApnsVoipSandboxChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7219, "before": "public FreeRefFunction findFunction(String name) {return _functionsByName.get(name.toUpperCase(Locale.ROOT));}", "after": "public override FreeRefFunction FindFunction(String name){if (!_functionsByName.ContainsKey(name.ToUpper()))return null;return _functionsByName[name.ToUpper()];}" }, { "index": 7220, "before": "public Credentials(String accessKeyId, String secretAccessKey, String sessionToken, java.util.Date expiration) {setAccessKeyId(accessKeyId);setSecretAccessKey(secretAccessKey);setSessionToken(sessionToken);setExpiration(expiration);}", "after": "public Credentials(string accessKeyId, string secretAccessKey, string sessionToken, DateTime expiration){_accessKeyId = accessKeyId;_secretAccessKey = secretAccessKey;_sessionToken = sessionToken;_expiration = expiration;}" }, { "index": 7221, "before": "public ReadTask(PerfRunData runData) {super(runData);if (withSearch()) {queryMaker = getQueryMaker();} else {queryMaker = null;}}", "after": "public ReadTask(PerfRunData runData): base(runData){if (WithSearch){queryMaker = GetQueryMaker();}else{queryMaker = null;}}" }, { "index": 7222, "before": "public int getPositionIncrementGap(String fieldName) {return 0;}", "after": "public virtual int GetPositionIncrementGap(string fieldName){return 0;}" }, { "index": 7223, "before": "public void serialize(LittleEndianOutput out) {out.writeInt(_option_flags);serializeUnicodeString(_promptTitle, out);serializeUnicodeString(_errorTitle, out);serializeUnicodeString(_promptText, out);serializeUnicodeString(_errorText, out);out.writeShort(_formula1.getEncodedTokenSize());out.writeShort(_not_used_1);_formula1.serializeTokens(out);out.writeShort(_formula2.getEncodedTokenSize());out.writeShort(_not_used_2);_formula2.serializeTokens(out);_regions.serialize(out);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(_option_flags);SerializeUnicodeString(_promptTitle, out1);SerializeUnicodeString(_errorTitle, out1);SerializeUnicodeString(_promptText, out1);SerializeUnicodeString(_errorText, out1);out1.WriteShort(_formula1.EncodedTokenSize);out1.WriteShort(_not_used_1);_formula1.SerializeTokens(out1);out1.WriteShort(_formula2.EncodedTokenSize);out1.WriteShort(_not_used_2);_formula2.SerializeTokens(out1);_regions.Serialize(out1);}" }, { "index": 7224, "before": "public String toString() {return \"[PRINTHEADERS]\\n\" +\" .printheaders = \" + getPrintHeaders() +\"\\n\" +\"[/PRINTHEADERS]\\n\";}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[PRINTHEADERS]\\n\");buffer.Append(\" .printheaders = \").Append(PrintHeaders).Append(\"\\n\");buffer.Append(\"[/PRINTHEADERS]\\n\");return buffer.ToString();}" }, { "index": 7225, "before": "public GetConferencePreferenceResult getConferencePreference(GetConferencePreferenceRequest request) {request = beforeClientExecution(request);return executeGetConferencePreference(request);}", "after": "public virtual GetConferencePreferenceResponse GetConferencePreference(GetConferencePreferenceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetConferencePreferenceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetConferencePreferenceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7226, "before": "public static BitSet getAlts(Collection altsets) {BitSet all = new BitSet();for (BitSet alts : altsets) {all.or(alts);}return all;}", "after": "public static BitSet GetAlts(IEnumerable altsets){BitSet all = new BitSet();foreach (BitSet alts in altsets){all.Or(alts);}return all;}" }, { "index": 7227, "before": "public ListTrafficPolicyInstancesResult listTrafficPolicyInstances(ListTrafficPolicyInstancesRequest request) {request = beforeClientExecution(request);return executeListTrafficPolicyInstances(request);}", "after": "public virtual ListTrafficPolicyInstancesResponse ListTrafficPolicyInstances(ListTrafficPolicyInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTrafficPolicyInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTrafficPolicyInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7228, "before": "public void init(Repository src) {repository = src;}", "after": "public virtual void Init(Repository src){repository = src;}" }, { "index": 7229, "before": "public StandardSyntaxParser(StandardSyntaxParserTokenManager tm) {token_source = tm;token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 25; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();}", "after": "public StandardSyntaxParser(StandardSyntaxParserTokenManager tm){TokenSource = tm;Token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 28; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();}" }, { "index": 7230, "before": "public ModifyDBClusterEndpointResult modifyDBClusterEndpoint(ModifyDBClusterEndpointRequest request) {request = beforeClientExecution(request);return executeModifyDBClusterEndpoint(request);}", "after": "public virtual ModifyDBClusterEndpointResponse ModifyDBClusterEndpoint(ModifyDBClusterEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBClusterEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBClusterEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7231, "before": "public DescribeTransitGatewaysResult describeTransitGateways(DescribeTransitGatewaysRequest request) {request = beforeClientExecution(request);return executeDescribeTransitGateways(request);}", "after": "public virtual DescribeTransitGatewaysResponse DescribeTransitGateways(DescribeTransitGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTransitGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTransitGatewaysResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7232, "before": "public GetSimilarPhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"GetSimilarPhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetSimilarPhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"GetSimilarPhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 7233, "before": "public GetProposalResult getProposal(GetProposalRequest request) {request = beforeClientExecution(request);return executeGetProposal(request);}", "after": "public virtual GetProposalResponse GetProposal(GetProposalRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetProposalRequestMarshaller.Instance;options.ResponseUnmarshaller = GetProposalResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7234, "before": "public AddJobFlowStepsRequest(String jobFlowId) {setJobFlowId(jobFlowId);}", "after": "public AddJobFlowStepsRequest(string jobFlowId){_jobFlowId = jobFlowId;}" }, { "index": 7235, "before": "public StartInstancesRequest(java.util.List instanceIds) {setInstanceIds(instanceIds);}", "after": "public StartInstancesRequest(List instanceIds){_instanceIds = instanceIds;}" }, { "index": 7236, "before": "public GetRawMessageContentResult getRawMessageContent(GetRawMessageContentRequest request) {request = beforeClientExecution(request);return executeGetRawMessageContent(request);}", "after": "public virtual GetRawMessageContentResponse GetRawMessageContent(GetRawMessageContentRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRawMessageContentRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRawMessageContentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7237, "before": "public RevObject next() {return objItr.hasNext() ? objItr.next() : null;}", "after": "public virtual RevCommit Next(){return pending.Next();}" }, { "index": 7238, "before": "final public List FieldsQueryList() throws ParseException {SrndQuery q;ArrayList queries = new ArrayList();jj_consume_token(LPAREN);q = FieldsQuery();queries.add(q);label_7:while (true) {jj_consume_token(COMMA);q = FieldsQuery();queries.add(q);switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case COMMA:;break;default:jj_la1[7] = jj_gen;break label_7;}}jj_consume_token(RPAREN);{if (true) return queries;}throw new Error(\"Missing return statement in function\");}", "after": "public IList FieldsQueryList(){SrndQuery q;IList queries = new List();Jj_consume_token(RegexpToken.LPAREN);q = FieldsQuery();queries.Add(q);while (true){Jj_consume_token(RegexpToken.COMMA);q = FieldsQuery();queries.Add(q);switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.COMMA:;break;default:jj_la1[7] = jj_gen;goto label_7;}}label_7:Jj_consume_token(RegexpToken.RPAREN);{ if (true) return queries; }throw new Exception(\"Missing return statement in function\");}" }, { "index": 7239, "before": "public boolean contains(long value) {for (int i = 0; i < count; i++)if (entries[i] == value)return true;return false;}", "after": "public virtual bool Contains(long value){for (int i = 0; i < count; i++){if (entries[i] == value){return true;}}return false;}" }, { "index": 7240, "before": "public static boolean matchesExtension(String filename, String ext) {return filename.endsWith(\".\" + ext);}", "after": "public static bool MatchesExtension(string filename, string ext){return filename.EndsWith(\".\" + ext, StringComparison.Ordinal);}" }, { "index": 7241, "before": "public ObjectId idFor(int type, byte[] data, int off, int len) {return delegate().idFor(type, data, off, len);}", "after": "public override ObjectId IdFor(int type, byte[] data, int off, int len){return Delegate().IdFor(type, data, off, len);}" }, { "index": 7242, "before": "public void remove() {parent.remove(this);}", "after": "public virtual void Remove(){parent.Remove(this);}" }, { "index": 7243, "before": "public DisassociateDeviceFromRoomResult disassociateDeviceFromRoom(DisassociateDeviceFromRoomRequest request) {request = beforeClientExecution(request);return executeDisassociateDeviceFromRoom(request);}", "after": "public virtual DisassociateDeviceFromRoomResponse DisassociateDeviceFromRoom(DisassociateDeviceFromRoomRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateDeviceFromRoomRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateDeviceFromRoomResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7244, "before": "final public ModifierQueryNode.Modifier Modifiers() throws ParseException {ModifierQueryNode.Modifier ret = ModifierQueryNode.Modifier.MOD_NONE;switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case NOT:case PLUS:case MINUS:switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case PLUS:jj_consume_token(PLUS);ret = ModifierQueryNode.Modifier.MOD_REQ;break;case MINUS:jj_consume_token(MINUS);ret = ModifierQueryNode.Modifier.MOD_NOT;break;case NOT:jj_consume_token(NOT);ret = ModifierQueryNode.Modifier.MOD_NOT;break;default:jj_la1[0] = jj_gen;jj_consume_token(-1);throw new ParseException();}break;default:jj_la1[1] = jj_gen;;}{if (true) return ret;}throw new Error(\"Missing return statement in function\");}", "after": "public Modifier Modifiers(){Modifier ret = Modifier.MOD_NONE;switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.NOT:case RegexpToken.PLUS:case RegexpToken.MINUS:switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.PLUS:Jj_consume_token(RegexpToken.PLUS);ret = Modifier.MOD_REQ;break;case RegexpToken.MINUS:Jj_consume_token(RegexpToken.MINUS);ret = Modifier.MOD_NOT;break;case RegexpToken.NOT:Jj_consume_token(RegexpToken.NOT);ret = Modifier.MOD_NOT;break;default:jj_la1[2] = jj_gen;Jj_consume_token(-1);throw new ParseException();}break;default:jj_la1[3] = jj_gen;break;}{ if (true) return ret; }throw new Exception(\"Missing return statement in function\");}" }, { "index": 7245, "before": "public final RevCommit getParent(int nth) {return parents[nth];}", "after": "public NGit.Revwalk.RevCommit GetParent(int nth){return parents[nth];}" }, { "index": 7246, "before": "public boolean hasPrevious() {return iterator.previousIndex() >= start;}", "after": "public bool hasPrevious(){return iterator.previousIndex() >= start;}" }, { "index": 7247, "before": "public TerminateWorkspacesResult terminateWorkspaces(TerminateWorkspacesRequest request) {request = beforeClientExecution(request);return executeTerminateWorkspaces(request);}", "after": "public virtual TerminateWorkspacesResponse TerminateWorkspaces(TerminateWorkspacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = TerminateWorkspacesRequestMarshaller.Instance;options.ResponseUnmarshaller = TerminateWorkspacesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7248, "before": "public long getEntryLastModified() {return current().getLastModified();}", "after": "public virtual long GetEntryLastModified(){return Current().GetLastModified();}" }, { "index": 7249, "before": "public CancelConversionTaskResult cancelConversionTask(CancelConversionTaskRequest request) {request = beforeClientExecution(request);return executeCancelConversionTask(request);}", "after": "public virtual CancelConversionTaskResponse CancelConversionTask(CancelConversionTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelConversionTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelConversionTaskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7250, "before": "public InfoSubRecord(int streamPos, int bucketSstOffset) {field_1_stream_pos = streamPos;field_2_bucket_sst_offset = bucketSstOffset;}", "after": "public InfoSubRecord(int streamPos, int bucketSstOffset){field_1_stream_pos = streamPos;field_2_bucket_sst_offset = bucketSstOffset;}" }, { "index": 7251, "before": "public boolean contains(Object o) {return map.containsKey(o);}", "after": "public virtual bool Contains(char[] text){return map.ContainsKey(text, 0, text.Length);}" }, { "index": 7252, "before": "public String toString() {return \"'\" + ch + \"' @ \" + pos;}", "after": "public override String ToString(){return \"'\" + ch + \"' @ \" + pos;}" }, { "index": 7253, "before": "public Step(String name, Rule rules[], int min, String suffixes[]) {this.name = name;this.rules = rules;if (min == 0) {min = Integer.MAX_VALUE;for (Rule r : rules)min = Math.min(min, r.min + r.suffix.length);}this.min = min;if (suffixes == null || suffixes.length == 0) {this.suffixes = null;} else {this.suffixes = new char[suffixes.length][];for (int i = 0; i < suffixes.length; i++)this.suffixes[i] = suffixes[i].toCharArray();}}", "after": "public Step(string name, Rule[] rules, int min, string[] suffixes){this.m_name = name;this.m_rules = rules;if (min == 0){min = int.MaxValue;foreach (Rule r in rules){min = Math.Min(min, r.m_min + r.m_suffix.Length);}}this.m_min = min;if (suffixes == null || suffixes.Length == 0){this.m_suffixes = null;}else{this.m_suffixes = new char[suffixes.Length][];for (int i = 0; i < suffixes.Length; i++){this.m_suffixes[i] = suffixes[i].ToCharArray();}}}" }, { "index": 7254, "before": "public E get(int key, E valueIfKeyNotFound) {int i = binarySearch(mKeys, 0, mSize, key);if (i < 0 || mValues[i] == DELETED) {return valueIfKeyNotFound;} else {return (E) mValues[i];}}", "after": "public virtual E get(int key, E valueIfKeyNotFound){int i = binarySearch(mKeys, 0, mSize, key);if (i < 0 || mValues[i] == DELETED){return valueIfKeyNotFound;}else{return (E)mValues[i];}}" }, { "index": 7255, "before": "public final ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {if (args.length != 0) {return ErrorEval.VALUE_INVALID;}return evaluate(srcRowIndex, srcColumnIndex);}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){if (args.Length != 0){return ErrorEval.VALUE_INVALID;}return Evaluate(srcRowIndex, srcColumnIndex);}" }, { "index": 7256, "before": "public void enterRecursionRule(ParserRuleContext localctx, int state, int ruleIndex, int precedence) {setState(state);_precedenceStack.push(precedence);_ctx = localctx;_ctx.start = _input.LT(1);if (_parseListeners != null) {triggerEnterRuleEvent(); }}", "after": "public virtual void EnterRecursionRule(ParserRuleContext localctx, int state, int ruleIndex, int precedence){State = state;_precedenceStack.Add(precedence);_ctx = localctx;_ctx.Start = _input.LT(1);if (_parseListeners != null){TriggerEnterRuleEvent();}}" }, { "index": 7257, "before": "public GlobalReplicationGroup increaseNodeGroupsInGlobalReplicationGroup(IncreaseNodeGroupsInGlobalReplicationGroupRequest request) {request = beforeClientExecution(request);return executeIncreaseNodeGroupsInGlobalReplicationGroup(request);}", "after": "public virtual IncreaseNodeGroupsInGlobalReplicationGroupResponse IncreaseNodeGroupsInGlobalReplicationGroup(IncreaseNodeGroupsInGlobalReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = IncreaseNodeGroupsInGlobalReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = IncreaseNodeGroupsInGlobalReplicationGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7258, "before": "public static String format(String rawSheetName) {StringBuilder sb = new StringBuilder((rawSheetName == null ? 0 : rawSheetName.length()) + 2);appendFormat(sb, rawSheetName);return sb.toString();}", "after": "public static String Format(String rawSheetName){StringBuilder sb = new StringBuilder(rawSheetName.Length + 2);AppendFormat(sb, rawSheetName);return sb.ToString();}" }, { "index": 7259, "before": "public DescribeTerminationPolicyTypesResult describeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest request) {request = beforeClientExecution(request);return executeDescribeTerminationPolicyTypes(request);}", "after": "public virtual DescribeTerminationPolicyTypesResponse DescribeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTerminationPolicyTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTerminationPolicyTypesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7260, "before": "public DescribeScheduledActionsResult describeScheduledActions() {return describeScheduledActions(new DescribeScheduledActionsRequest());}", "after": "public virtual DescribeScheduledActionsResponse DescribeScheduledActions(){return DescribeScheduledActions(new DescribeScheduledActionsRequest());}" }, { "index": 7261, "before": "public boolean hasSourceData(int start, int end) {for (; start < end; start++)if (sourceLines[start] == 0)return false;return true;}", "after": "public virtual bool HasSourceData(int start, int end){for (; start < end; start++){if (sourceLines[start] == 0){return false;}}return true;}" }, { "index": 7262, "before": "public ListImportsResult listImports(ListImportsRequest request) {request = beforeClientExecution(request);return executeListImports(request);}", "after": "public virtual ListImportsResponse ListImports(ListImportsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListImportsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListImportsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7263, "before": "public DescribeInterconnectsResult describeInterconnects() {return describeInterconnects(new DescribeInterconnectsRequest());}", "after": "public virtual DescribeInterconnectsResponse DescribeInterconnects(){return DescribeInterconnects(new DescribeInterconnectsRequest());}" }, { "index": 7264, "before": "public DeleteEventSubscriptionResult deleteEventSubscription(DeleteEventSubscriptionRequest request) {request = beforeClientExecution(request);return executeDeleteEventSubscription(request);}", "after": "public virtual DeleteEventSubscriptionResponse DeleteEventSubscription(DeleteEventSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEventSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEventSubscriptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7265, "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());int remainingBytes = thedata.length;LittleEndian.putInt(data, offset+4, remainingBytes);System.arraycopy(thedata, 0, data, offset+8, thedata.length);int pos = offset+8+thedata.length;listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );int size = pos - offset;if (size != getRecordSize()) {throw new RecordFormatException(size + \" bytes written but getRecordSize() reports \" + getRecordSize());}return size;}", "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);int remainingBytes = _thedata.Length;LittleEndian.PutInt(data, offset + 4, remainingBytes);Array.Copy(_thedata, 0, data, offset + 8, _thedata.Length);int pos = offset + 8 + _thedata.Length;listener.AfterRecordSerialize(pos, RecordId, pos - offset, this);int size = pos - offset;if (size != RecordSize)throw new RecordFormatException(size + \" bytes written but RecordSize reports \" + RecordSize);return size;}" }, { "index": 7266, "before": "public void write(int oneChar) {synchronized (lock) {expand(1);buf[count++] = (char) oneChar;}}", "after": "public override void write(int oneChar){lock (@lock){expand(1);buf[count++] = (char)oneChar;}}" }, { "index": 7267, "before": "public DeletedRef3DPtg(int externSheetIndex) {field_1_index_extern_sheet = externSheetIndex;unused1 = 0;}", "after": "public DeletedRef3DPtg(int externSheetIndex){field_1_index_extern_sheet = externSheetIndex;unused1 = 0;}" }, { "index": 7268, "before": "public IndexUpgrader(Directory dir, IndexWriterConfig iwc, boolean deletePriorCommits) {this.dir = dir;this.iwc = iwc;this.deletePriorCommits = deletePriorCommits;}", "after": "public IndexUpgrader(Directory dir, IndexWriterConfig iwc, bool deletePriorCommits){this.dir = dir;this.iwc = iwc;this.deletePriorCommits = deletePriorCommits;}" }, { "index": 7269, "before": "public DetachVpnGatewayRequest(String vpnGatewayId, String vpcId) {setVpnGatewayId(vpnGatewayId);setVpcId(vpcId);}", "after": "public DetachVpnGatewayRequest(string vpnGatewayId, string vpcId){_vpnGatewayId = vpnGatewayId;_vpcId = vpcId;}" }, { "index": 7270, "before": "public RebootInstancesRequest(java.util.List instanceIds) {setInstanceIds(instanceIds);}", "after": "public RebootInstancesRequest(List instanceIds){_instanceIds = instanceIds;}" }, { "index": 7271, "before": "public E remove(int index) {synchronized (mutex) {return delegate().remove(index);}}", "after": "public virtual E remove(int location){lock (mutex){return list.remove(location);}}" }, { "index": 7272, "before": "public DescribeInstanceAttributeResult describeInstanceAttribute(DescribeInstanceAttributeRequest request) {request = beforeClientExecution(request);return executeDescribeInstanceAttribute(request);}", "after": "public virtual DescribeInstanceAttributeResponse DescribeInstanceAttribute(DescribeInstanceAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInstanceAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInstanceAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7273, "before": "public void cloneStyleFrom(CellStyle source) {if(source instanceof HSSFCellStyle) {this.cloneStyleFrom((HSSFCellStyle)source);} else {throw new IllegalArgumentException(\"Can only clone from one HSSFCellStyle to another, not between HSSFCellStyle and XSSFCellStyle\");}}", "after": "public void CloneStyleFrom(ICellStyle source){if (source is HSSFCellStyle){this.CloneStyleFrom((HSSFCellStyle)source);}else{throw new ArgumentException(\"Can only clone from one HSSFCellStyle to another, not between HSSFCellStyle and XSSFCellStyle\");}}" }, { "index": 7274, "before": "public final String readUTF() throws IOException {return decodeUTF(readUnsignedShort());}", "after": "public virtual string readUTF(){throw new System.NotImplementedException();}" }, { "index": 7275, "before": "public GetDataEndpointResult getDataEndpoint(GetDataEndpointRequest request) {request = beforeClientExecution(request);return executeGetDataEndpoint(request);}", "after": "public virtual GetDataEndpointResponse GetDataEndpoint(GetDataEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDataEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDataEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7276, "before": "public AddApplicationOutputResult addApplicationOutput(AddApplicationOutputRequest request) {request = beforeClientExecution(request);return executeAddApplicationOutput(request);}", "after": "public virtual AddApplicationOutputResponse AddApplicationOutput(AddApplicationOutputRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddApplicationOutputRequestMarshaller.Instance;options.ResponseUnmarshaller = AddApplicationOutputResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7277, "before": "public LargeObjectException(AnyObjectId id) {setObjectId(id);}", "after": "public LargeObjectException(AnyObjectId id){SetObjectId(id);}" }, { "index": 7278, "before": "public void trimToSize() {if (n < array.length) {char[] aux = new char[n];System.arraycopy(array, 0, aux, 0, n);array = aux;}}", "after": "public virtual void TrimToSize(){if (n < array.Length){char[] aux = new char[n];System.Array.Copy(array, 0, aux, 0, n);array = aux;}}" }, { "index": 7279, "before": "public UpdateFacetResult updateFacet(UpdateFacetRequest request) {request = beforeClientExecution(request);return executeUpdateFacet(request);}", "after": "public virtual UpdateFacetResponse UpdateFacet(UpdateFacetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFacetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFacetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7280, "before": "public DeleteDomainRequest(String domainName) {setDomainName(domainName);}", "after": "public DeleteDomainRequest(string domainName){_domainName = domainName;}" }, { "index": 7281, "before": "public String getReading() {return dictionary.getReading(wordId, surfaceForm, offset, length);}", "after": "public virtual string GetReading(){return dictionary.GetReading(wordId, surfaceForm, offset, length);}" }, { "index": 7282, "before": "public FloatBuffer compact() {System.arraycopy(backingArray, position + offset, backingArray, offset, remaining());position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}", "after": "public override java.nio.FloatBuffer compact(){System.Array.Copy(backingArray, _position + offset, backingArray, offset, remaining());_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}" }, { "index": 7283, "before": "public String toString() {return super.toString();}", "after": "public override string ToString(){return base.ToString();}" }, { "index": 7284, "before": "public void set(int index, long value) {ensureCapacity(value);current.set(index, value);}", "after": "public override void Set(int index, long value){EnsureCapacity(value);current.Set(index, value);}" }, { "index": 7285, "before": "public void serialize(LittleEndianOutput out) {String username = getUsername();boolean is16bit = StringUtil.hasMultibyte(username);out.writeShort(username.length());out.writeByte(is16bit ? 0x01 : 0x00);if (is16bit) {StringUtil.putUnicodeLE(username, out);} else {StringUtil.putCompressedUnicode(username, out);}int encodedByteCount = 3 + username.length() * (is16bit ? 2 : 1);int paddingSize = DATA_SIZE - encodedByteCount;out.write(PADDING, 0, paddingSize);}", "after": "public override void Serialize(ILittleEndianOutput out1){String username = Username;bool is16bit = StringUtil.HasMultibyte(username);out1.WriteShort(username.Length);out1.WriteByte(is16bit ? 0x01 : 0x00);if (is16bit){StringUtil.PutUnicodeLE(username, out1);}else{StringUtil.PutCompressedUnicode(username, out1);}int encodedByteCount = 3 + username.Length * (is16bit ? 2 : 1);int paddingSize = DATA_SIZE - encodedByteCount;out1.Write(PADDING, 0, paddingSize);}" }, { "index": 7286, "before": "public boolean isExpired() {return false;}", "after": "public new bool IsExpired(){return false;}" }, { "index": 7287, "before": "public ListJobsRequest(String accountId, String vaultName) {setAccountId(accountId);setVaultName(vaultName);}", "after": "public ListJobsRequest(string accountId, string vaultName){_accountId = accountId;_vaultName = vaultName;}" }, { "index": 7288, "before": "public SheetRefEvaluator getSheetEvaluator(int sheetIndex) {if (sheetIndex < _firstSheetIndex || sheetIndex > _lastSheetIndex) {throw new IllegalArgumentException(\"Invalid SheetIndex: \" + sheetIndex +\" - Outside range \" + _firstSheetIndex + \" : \" + _lastSheetIndex);}return _sheetEvaluators[sheetIndex-_firstSheetIndex];}", "after": "public SheetRefEvaluator GetSheetEvaluator(int sheetIndex){if (sheetIndex < _firstSheetIndex || sheetIndex > _lastSheetIndex){throw new ArgumentException(\"Invalid SheetIndex: \" + sheetIndex +\" - Outside range \" + _firstSheetIndex + \" : \" + _lastSheetIndex);}return _sheetEvaluators[sheetIndex - _firstSheetIndex];}" }, { "index": 7289, "before": "public static String[] stringToPath(String s) {List parts = new ArrayList<>();int length = s.length();if (length == 0) {return new String[0];}char[] buffer = new char[length];int upto = 0;boolean lastEscape = false;for(int i=0;i parts = new List();int length = s.Length;if (length == 0){return new string[0];}char[] buffer = new char[length];int upto = 0;bool lastEscape = false;for (int i = 0; i < length; i++){char ch = s[i];if (lastEscape){buffer[upto++] = ch;lastEscape = false;}else if (ch == ESCAPE_CHAR){lastEscape = true;}else if (ch == DELIM_CHAR){parts.Add(new string(buffer, 0, upto));upto = 0;}else{buffer[upto++] = ch;}}parts.Add(new string(buffer, 0, upto));Debug.Assert(!lastEscape);return parts.ToArray();}" }, { "index": 7290, "before": "public CreateDirectConnectGatewayResult createDirectConnectGateway(CreateDirectConnectGatewayRequest request) {request = beforeClientExecution(request);return executeCreateDirectConnectGateway(request);}", "after": "public virtual CreateDirectConnectGatewayResponse CreateDirectConnectGateway(CreateDirectConnectGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDirectConnectGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDirectConnectGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7291, "before": "public GetMLModelResult getMLModel(GetMLModelRequest request) {request = beforeClientExecution(request);return executeGetMLModel(request);}", "after": "public virtual GetMLModelResponse GetMLModel(GetMLModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMLModelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMLModelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7292, "before": "public boolean isValid() {if (bytes == null) {throw new IllegalStateException(\"bytes is null\");}if (length < 0) {throw new IllegalStateException(\"length is negative: \" + length);}if (length > bytes.length) {throw new IllegalStateException(\"length is out of bounds: \" + length + \",bytes.length=\" + bytes.length);}if (offset < 0) {throw new IllegalStateException(\"offset is negative: \" + offset);}if (offset > bytes.length) {throw new IllegalStateException(\"offset out of bounds: \" + offset + \",bytes.length=\" + bytes.length);}if (offset + length < 0) {throw new IllegalStateException(\"offset+length is negative: offset=\" + offset + \",length=\" + length);}if (offset + length > bytes.length) {throw new IllegalStateException(\"offset+length out of bounds: offset=\" + offset + \",length=\" + length + \",bytes.length=\" + bytes.length);}return true;}", "after": "public bool IsValid(){if (Bytes == null){throw new InvalidOperationException(\"bytes is null\");}if (Length < 0){throw new InvalidOperationException(\"length is negative: \" + Length);}if (Length > Bytes.Length){throw new InvalidOperationException(\"length is out of bounds: \" + Length + \",bytes.length=\" + Bytes.Length);}if (Offset < 0){throw new InvalidOperationException(\"offset is negative: \" + Offset);}if (Offset > Bytes.Length){throw new InvalidOperationException(\"offset out of bounds: \" + Offset + \",bytes.length=\" + Bytes.Length);}if (Offset + Length < 0){throw new InvalidOperationException(\"offset+length is negative: offset=\" + Offset + \",length=\" + Length);}if (Offset + Length > Bytes.Length){throw new InvalidOperationException(\"offset+length out of bounds: offset=\" + Offset + \",length=\" + Length + \",bytes.length=\" + Bytes.Length);}return true;}" }, { "index": 7293, "before": "public String toString() {return getName();}", "after": "public override string ToString(){return Name;}" }, { "index": 7294, "before": "public DescribeIAMPolicyAssignmentResult describeIAMPolicyAssignment(DescribeIAMPolicyAssignmentRequest request) {request = beforeClientExecution(request);return executeDescribeIAMPolicyAssignment(request);}", "after": "public virtual DescribeIAMPolicyAssignmentResponse DescribeIAMPolicyAssignment(DescribeIAMPolicyAssignmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIAMPolicyAssignmentRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIAMPolicyAssignmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7295, "before": "public boolean isRefLogIncludingResult() {return refLogIncludeResult;}", "after": "protected internal virtual bool IsRefLogIncludingResult(){return refLogIncludeResult;}" }, { "index": 7296, "before": "public DeleteStreamingDistributionResult deleteStreamingDistribution(DeleteStreamingDistributionRequest request) {request = beforeClientExecution(request);return executeDeleteStreamingDistribution(request);}", "after": "public virtual DeleteStreamingDistributionResponse DeleteStreamingDistribution(DeleteStreamingDistributionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteStreamingDistributionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteStreamingDistributionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7297, "before": "public RawSubStringPattern(String patternText) {if (patternText.length() == 0)throw new IllegalArgumentException(JGitText.get().cannotMatchOnEmptyString);needleString = patternText;final byte[] b = Constants.encode(patternText);needle = new byte[b.length];for (int i = 0; i < b.length; i++)needle[i] = lc(b[i]);}", "after": "public RawSubStringPattern(string patternText){if (patternText.Length == 0){throw new ArgumentException(JGitText.Get().cannotMatchOnEmptyString);}needleString = patternText;byte[] b = Constants.Encode(patternText);needle = new byte[b.Length];for (int i = 0; i < b.Length; i++){needle[i] = Lc(b[i]);}}" }, { "index": 7298, "before": "public ListRulesResult listRules(ListRulesRequest request) {request = beforeClientExecution(request);return executeListRules(request);}", "after": "public virtual ListRulesResponse ListRules(ListRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRulesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7299, "before": "@Override public Iterator> iterator() {final Iterator> iterator = esDelegate.iterator();return new Iterator>() {Entry entry;", "after": "public override java.util.Iterator> iterator(){return new java.util.Hashtable.EntryIterator(this._enclosing);}" }, { "index": 7300, "before": "public SendMessageResult sendMessage(String queueUrl, String messageBody) {return sendMessage(new SendMessageRequest().withQueueUrl(queueUrl).withMessageBody(messageBody));}", "after": "public virtual SendMessageResponse SendMessage(string queueUrl, string messageBody){var request = new SendMessageRequest();request.QueueUrl = queueUrl;request.MessageBody = messageBody;return SendMessage(request);}" }, { "index": 7301, "before": "public static double getExcelDate(Date date) {return getExcelDate(date, false);}", "after": "public static double GetExcelDate(DateTime date){return GetExcelDate(date, false);}" }, { "index": 7302, "before": "public String toString() {return markedUpText.subSequence(textStartPos, textEndPos).toString();}", "after": "public override string ToString(){return markedUpText.ToString(TextStartPos, TextEndPos - TextStartPos);}" }, { "index": 7303, "before": "public ModifyInstancePlacementResult modifyInstancePlacement(ModifyInstancePlacementRequest request) {request = beforeClientExecution(request);return executeModifyInstancePlacement(request);}", "after": "public virtual ModifyInstancePlacementResponse ModifyInstancePlacement(ModifyInstancePlacementRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyInstancePlacementRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyInstancePlacementResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7304, "before": "public static String replaceOccupiedParameters(String url, Map paths) {String result = url;for (Map.Entry entry : paths.entrySet()) {String key = entry.getKey();String value = entry.getValue();String target = \"[\" + key + \"]\";result = result.replace(target, value);}return result;}", "after": "public static string ReplaceOccupiedParameters(string url, Dictionary paths){var result = url;foreach (var entry in paths){var key = entry.Key;var value = entry.Value;var target = \"[\" + key + \"]\";result = result.Replace(target, value);}return result;}" }, { "index": 7305, "before": "public String toString() {return \"\";}", "after": "public override string ToString(){return \"\";}" }, { "index": 7306, "before": "public DeleteMetricFilterRequest(String logGroupName, String filterName) {setLogGroupName(logGroupName);setFilterName(filterName);}", "after": "public DeleteMetricFilterRequest(string logGroupName, string filterName){_logGroupName = logGroupName;_filterName = filterName;}" }, { "index": 7307, "before": "public char readChar() throws IOException {return primitiveTypes.readChar();}", "after": "public virtual char readChar(){throw new System.NotImplementedException();}" }, { "index": 7308, "before": "public DescribeInstanceStatusResult describeInstanceStatus(DescribeInstanceStatusRequest request) {request = beforeClientExecution(request);return executeDescribeInstanceStatus(request);}", "after": "public virtual DescribeInstanceStatusResponse DescribeInstanceStatus(DescribeInstanceStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInstanceStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInstanceStatusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7309, "before": "public BatchDeleteAttributesResult batchDeleteAttributes(BatchDeleteAttributesRequest request) {request = beforeClientExecution(request);return executeBatchDeleteAttributes(request);}", "after": "public virtual BatchDeleteAttributesResponse BatchDeleteAttributes(BatchDeleteAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDeleteAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDeleteAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7310, "before": "public String toString() {return \"\";}", "after": "public override string ToString(){return \"\";}" }, { "index": 7311, "before": "public ListDeploymentGroupsResult listDeploymentGroups(ListDeploymentGroupsRequest request) {request = beforeClientExecution(request);return executeListDeploymentGroups(request);}", "after": "public virtual ListDeploymentGroupsResponse ListDeploymentGroups(ListDeploymentGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeploymentGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeploymentGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7312, "before": "public CellGeneralFormatter() {this(LocaleUtil.getUserLocale());}", "after": "public CellGeneralFormatter(): base(\"General\"){;}" }, { "index": 7313, "before": "public BloomFilteredTerms(Terms terms, FuzzySet filter) {this.delegateTerms = terms;this.filter = filter;}", "after": "public BloomFilteredTerms(Terms terms, FuzzySet filter){_delegateTerms = terms;_filter = filter;}" }, { "index": 7314, "before": "public int numBits(int idx) {return bytes[idx].bits;}", "after": "public virtual int NumBits(int idx){return bytes[idx].Bits;}" }, { "index": 7315, "before": "public boolean equals(Object obj) {if (obj == this) {return true;}else if (!(obj instanceof LexerChannelAction)) {return false;}return channel == ((LexerChannelAction)obj).channel;}", "after": "public override bool Equals(object obj){if (obj == this){return true;}else{if (!(obj is Antlr4.Runtime.Atn.LexerChannelAction)){return false;}}return channel == ((Antlr4.Runtime.Atn.LexerChannelAction)obj).channel;}" }, { "index": 7316, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(getValue());}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(Value);}" }, { "index": 7317, "before": "public ExecuteChangeSetResult executeChangeSet(ExecuteChangeSetRequest request) {request = beforeClientExecution(request);return executeExecuteChangeSet(request);}", "after": "public virtual ExecuteChangeSetResponse ExecuteChangeSet(ExecuteChangeSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExecuteChangeSetRequestMarshaller.Instance;options.ResponseUnmarshaller = ExecuteChangeSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7318, "before": "public StartInstanceResult startInstance(StartInstanceRequest request) {request = beforeClientExecution(request);return executeStartInstance(request);}", "after": "public virtual StartInstanceResponse StartInstance(StartInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = StartInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7319, "before": "public CapitalizationFilterFactory(Map args) {super(args);boolean ignoreCase = getBoolean(args, KEEP_IGNORE_CASE, false);Set k = getSet(args, KEEP);if (k != null) {keep = new CharArraySet(10, ignoreCase);keep.addAll(k);}k = getSet(args, OK_PREFIX);if (k != null) {okPrefix = new ArrayList<>();for (String item : k) {okPrefix.add(item.toCharArray());}}minWordLength = getInt(args, MIN_WORD_LENGTH, 0);maxWordCount = getInt(args, MAX_WORD_COUNT, CapitalizationFilter.DEFAULT_MAX_WORD_COUNT);maxTokenLength = getInt(args, MAX_TOKEN_LENGTH, CapitalizationFilter.DEFAULT_MAX_TOKEN_LENGTH);onlyFirstWord = getBoolean(args, ONLY_FIRST_WORD, true);forceFirstLetter = getBoolean(args, FORCE_FIRST_LETTER, true);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public CapitalizationFilterFactory(IDictionary args): base(args){AssureMatchVersion();bool ignoreCase = GetBoolean(args, KEEP_IGNORE_CASE, false);ICollection k = GetSet(args, KEEP);if (k != null){keep = new CharArraySet(m_luceneMatchVersion, 10, ignoreCase);keep.UnionWith(k);}k = GetSet(args, OK_PREFIX);if (k != null){okPrefix = new List();foreach (string item in k){okPrefix.Add(item.ToCharArray());}}minWordLength = GetInt32(args, MIN_WORD_LENGTH, 0);maxWordCount = GetInt32(args, MAX_WORD_COUNT, CapitalizationFilter.DEFAULT_MAX_WORD_COUNT);maxTokenLength = GetInt32(args, MAX_TOKEN_LENGTH, CapitalizationFilter.DEFAULT_MAX_TOKEN_LENGTH);onlyFirstWord = GetBoolean(args, ONLY_FIRST_WORD, true);forceFirstLetter = GetBoolean(args, FORCE_FIRST_LETTER, true);culture = GetCulture(args, CULTURE, null);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 7320, "before": "public static long[] copyOf(long[] original, int newLength) {if (newLength < 0) {throw new NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}", "after": "public static long[] copyOf(long[] original, int newLength){if (newLength < 0){throw new java.lang.NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}" }, { "index": 7321, "before": "public String toString() {return ref.toString();}", "after": "public override string ToString(){return this.@ref.ToString();}" }, { "index": 7322, "before": "public ListNetworksResult listNetworks(ListNetworksRequest request) {request = beforeClientExecution(request);return executeListNetworks(request);}", "after": "public virtual ListNetworksResponse ListNetworks(ListNetworksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListNetworksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListNetworksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7323, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {ValueEval arg = arg0;if (arg instanceof RefEval) {RefEval re = (RefEval)arg;arg = re.getInnerValueEval(re.getFirstSheetIndex());} else if (arg instanceof AreaEval) {arg = ((AreaEval) arg).getRelativeValue(0, 0);}if (arg instanceof StringEval) {return arg;}if (arg instanceof ErrorEval) {return arg;}return StringEval.EMPTY_INSTANCE;}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){ValueEval arg = arg0;if (arg is RefEval){RefEval re = (RefEval)arg;arg = re.GetInnerValueEval(re.FirstSheetIndex);}else if (arg is AreaEval){arg = ((AreaEval)arg).GetRelativeValue(0, 0);}if (arg is StringEval){return arg;}if (arg is ErrorEval){return arg;}return StringEval.EMPTY_INSTANCE;}" }, { "index": 7324, "before": "public StopNotebookInstanceResult stopNotebookInstance(StopNotebookInstanceRequest request) {request = beforeClientExecution(request);return executeStopNotebookInstance(request);}", "after": "public virtual StopNotebookInstanceResponse StopNotebookInstance(StopNotebookInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopNotebookInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = StopNotebookInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7325, "before": "public void applyFont(int startIndex, int endIndex, short fontIndex) {if (startIndex > endIndex)throw new IllegalArgumentException(\"Start index must be less than end index.\");if (startIndex < 0 || endIndex > length())throw new IllegalArgumentException(\"Start and end index not in range.\");if (startIndex == endIndex)return;short currentFont = NO_FONT;if (endIndex != length()) {currentFont = this.getFontAtIndex(endIndex);}_string = cloneStringIfRequired();Iterator formatting = _string.formatIterator();if (formatting != null) {while (formatting.hasNext()) {FormatRun r = formatting.next();if ((r.getCharacterPos() >= startIndex) && (r.getCharacterPos() < endIndex))formatting.remove();}}_string.addFormatRun(new FormatRun((short)startIndex, fontIndex));if (endIndex != length())_string.addFormatRun(new FormatRun((short)endIndex, currentFont));addToSSTIfRequired();}", "after": "public void ApplyFont(int startIndex, int endIndex, short fontIndex){if (startIndex > endIndex)throw new ArgumentException(\"Start index must be less than end index.\");if (startIndex < 0 || endIndex > Length)throw new ArgumentException(\"Start and end index not in range.\");if (startIndex == endIndex)return;short currentFont = NO_FONT;if (endIndex != Length){currentFont = this.GetFontAtIndex(endIndex);}_string = CloneStringIfRequired();System.Collections.Generic.List formatting = _string.FormatIterator();ArrayList deletedFR = new ArrayList();if (formatting != null){IEnumerator formats = formatting.GetEnumerator();while (formats.MoveNext()){UnicodeString.FormatRun r = formats.Current;if ((r.CharacterPos >= startIndex) && (r.CharacterPos < endIndex)){deletedFR.Add(r);}}}foreach (UnicodeString.FormatRun fr in deletedFR){_string.RemoveFormatRun(fr);}_string.AddFormatRun(new UnicodeString.FormatRun((short)startIndex, fontIndex));if (endIndex != Length)_string.AddFormatRun(new UnicodeString.FormatRun((short)endIndex, currentFont));AddToSSTIfRequired();}" }, { "index": 7326, "before": "public int readInt() throws IOException {return primitiveTypes.readInt();}", "after": "public virtual int readInt(){throw new System.NotImplementedException();}" }, { "index": 7327, "before": "public Iterable call() throws GitAPIException, NoHeadException {checkCallable();List filters = new ArrayList<>();if (!pathFilters.isEmpty()) {filters.add(AndTreeFilter.create(PathFilterGroup.create(pathFilters), TreeFilter.ANY_DIFF));}if (!excludeTreeFilters.isEmpty()) {for (TreeFilter f : excludeTreeFilters) {filters.add(AndTreeFilter.create(f, TreeFilter.ANY_DIFF));}}if (!filters.isEmpty()) {if (filters.size() == 1) {filters.add(TreeFilter.ANY_DIFF);}walk.setTreeFilter(AndTreeFilter.create(filters));}if (skip > -1 && maxCount > -1)walk.setRevFilter(AndRevFilter.create(SkipRevFilter.create(skip),MaxCountRevFilter.create(maxCount)));else if (skip > -1)walk.setRevFilter(SkipRevFilter.create(skip));else if (maxCount > -1)walk.setRevFilter(MaxCountRevFilter.create(maxCount));if (!startSpecified) {try {ObjectId headId = repo.resolve(Constants.HEAD);if (headId == null)throw new NoHeadException(JGitText.get().noHEADExistsAndNoExplicitStartingRevisionWasSpecified);add(headId);} catch (IOException e) {throw new JGitInternalException(JGitText.get().anExceptionOccurredWhileTryingToAddTheIdOfHEAD,e);}}if (this.revFilter != null) {walk.setRevFilter(this.revFilter);}setCallable(false);return walk;}", "after": "public override Iterable Call(){CheckCallable();if (pathFilters.Count > 0){walk.SetTreeFilter(AndTreeFilter.Create(PathFilterGroup.Create(pathFilters), TreeFilter.ANY_DIFF));}if (skip > -1 && maxCount > -1){walk.SetRevFilter(AndRevFilter.Create(SkipRevFilter.Create(skip), MaxCountRevFilter.Create(maxCount)));}else{if (skip > -1){walk.SetRevFilter(SkipRevFilter.Create(skip));}else{if (maxCount > -1){walk.SetRevFilter(MaxCountRevFilter.Create(maxCount));}}}if (!startSpecified){try{ObjectId headId = repo.Resolve(Constants.HEAD);if (headId == null){throw new NoHeadException(JGitText.Get().noHEADExistsAndNoExplicitStartingRevisionWasSpecified);}Add(headId);}catch (IOException e){throw new JGitInternalException(JGitText.Get().anExceptionOccurredWhileTryingToAddTheIdOfHEAD, e);}}SetCallable(false);return walk;}" }, { "index": 7328, "before": "public HyphenationCompoundWordTokenFilterFactory(Map args) {super(args);dictFile = get(args, \"dictionary\");encoding = get(args, \"encoding\");hypFile = require(args, \"hyphenator\");minWordSize = getInt(args, \"minWordSize\", CompoundWordTokenFilterBase.DEFAULT_MIN_WORD_SIZE);minSubwordSize = getInt(args, \"minSubwordSize\", CompoundWordTokenFilterBase.DEFAULT_MIN_SUBWORD_SIZE);maxSubwordSize = getInt(args, \"maxSubwordSize\", CompoundWordTokenFilterBase.DEFAULT_MAX_SUBWORD_SIZE);onlyLongestMatch = getBoolean(args, \"onlyLongestMatch\", false);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public HyphenationCompoundWordTokenFilterFactory(IDictionary args) : base(args){AssureMatchVersion();dictFile = Get(args, \"dictionary\");encoding = Get(args, \"encoding\");hypFile = Require(args, \"hyphenator\");minWordSize = GetInt32(args, \"minWordSize\", CompoundWordTokenFilterBase.DEFAULT_MIN_WORD_SIZE);minSubwordSize = GetInt32(args, \"minSubwordSize\", CompoundWordTokenFilterBase.DEFAULT_MIN_SUBWORD_SIZE);maxSubwordSize = GetInt32(args, \"maxSubwordSize\", CompoundWordTokenFilterBase.DEFAULT_MAX_SUBWORD_SIZE);onlyLongestMatch = GetBoolean(args, \"onlyLongestMatch\", false);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 7329, "before": "public DeleteTerminologyResult deleteTerminology(DeleteTerminologyRequest request) {request = beforeClientExecution(request);return executeDeleteTerminology(request);}", "after": "public virtual DeleteTerminologyResponse DeleteTerminology(DeleteTerminologyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTerminologyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTerminologyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7330, "before": "public boolean remove(Object o) {if (!(o instanceof Entry))return false;Entry e = (Entry)o;return removeMapping(e.getKey(), e.getValue());}", "after": "public override bool remove(object o){if (!(o is java.util.MapClass.Entry)){return false;}java.util.MapClass.Entry e = (java.util.MapClass.Entry)o;return this._enclosing.removeMapping(e.getKey(), e.getValue());}" }, { "index": 7331, "before": "public GetObjectAttributesResult getObjectAttributes(GetObjectAttributesRequest request) {request = beforeClientExecution(request);return executeGetObjectAttributes(request);}", "after": "public virtual GetObjectAttributesResponse GetObjectAttributes(GetObjectAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetObjectAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetObjectAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7332, "before": "public RevWalk getRevWalk() {throw new UnsupportedOperationException(MessageFormat.format(JGitText.get().isAStaticFlagAndHasNorevWalkInstance, toString()));}", "after": "public override RevWalk GetRevWalk(){throw new NotSupportedException(MessageFormat.Format(JGitText.Get().isAStaticFlagAndHasNorevWalkInstance, ToString()));}" }, { "index": 7333, "before": "public DescribeKeyPairsResult describeKeyPairs(DescribeKeyPairsRequest request) {request = beforeClientExecution(request);return executeDescribeKeyPairs(request);}", "after": "public virtual DescribeKeyPairsResponse DescribeKeyPairs(DescribeKeyPairsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeKeyPairsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeKeyPairsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7334, "before": "public byte[] toByteArray() {return build();}", "after": "public virtual byte[] ToByteArray(){return Build();}" }, { "index": 7335, "before": "public void setIndexVersion(int version) {indexVersion = version;}", "after": "public virtual void SetIndexVersion(int version){indexVersion = version;}" }, { "index": 7336, "before": "public IgnoreNode() {rules = new ArrayList<>();}", "after": "public IgnoreNode(){rules = new AList();}" }, { "index": 7337, "before": "public TreeFilter negate() {return NotTreeFilter.create(this);}", "after": "public virtual TreeFilter Negate(){return NotTreeFilter.Create(this);}" }, { "index": 7338, "before": "public long ramBytesUsed() {return docs.ramBytesUsed()+ RamUsageEstimator.NUM_BYTES_OBJECT_HEADER+ 2 * Integer.BYTES+ 2 + 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": 7339, "before": "public String toString() {return exists() ? toObject().toString() : \"(null)\";}", "after": "public override string ToString(){return Exists ? ToObject().ToString() : \"(null)\";}" }, { "index": 7340, "before": "public int available() throws IOException {checkReadPrimitiveTypes();return primitiveData.available();}", "after": "public override int available(){throw new System.NotImplementedException();}" }, { "index": 7341, "before": "public UnicodeMapping(String pEntityName, String pResolvedValue) {entityName = \"&\" + pEntityName + \";\";resolvedValue = pResolvedValue;}", "after": "public UnicodeMapping(String pEntityName, String pResolvedValue){entityName = \"&\" + pEntityName + \";\";resolvedValue = pResolvedValue;}" }, { "index": 7342, "before": "public final void removeBreak(int main) {Integer rowKey = Integer.valueOf(main);Break region = _breakMap.get(rowKey);_breaks.remove(region);_breakMap.remove(rowKey);}", "after": "public void RemoveBreak(int main){int rowKey = main;Break region = (Break)_breakMap[rowKey];_breaks.Remove(region);_breakMap.Remove(rowKey);}" }, { "index": 7343, "before": "public void sort(int from, int to) {checkRange(from, to);if (to - from <= 1) {return;}reset(from, to);do {ensureInvariants();pushRunLen(nextRun());} while (runEnd(0) < to);exhaustStack();assert runEnd(0) == to;}", "after": "public override void Sort(int from, int to){CheckRange(from, to);if (to - from <= 1){return;}Reset(from, to);do{EnsureInvariants();PushRunLen(NextRun());} while (RunEnd(0) < to);ExhaustStack();Debug.Assert(RunEnd(0) == to);}" }, { "index": 7344, "before": "public File getDirectory() {return directory;}", "after": "public virtual FilePath GetDirectory(){return directory;}" }, { "index": 7345, "before": "public PositionTrackingVisitor(RecordVisitor rv, int initialPosition) {_rv = rv;_position = initialPosition;}", "after": "public PositionTrackingVisitor(RecordVisitor rv, int initialPosition){_rv = rv;_position = initialPosition;}" }, { "index": 7346, "before": "public T top() {return top;}", "after": "public T Top(){return top;}" }, { "index": 7347, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName());sb.append(\" [\");if (externalWorkbookNumber >= 0) {sb.append(\" [\");sb.append(\"workbook=\").append(getExternalWorkbookNumber());sb.append(\"] \");}sb.append(\"sheet=\").append(getSheetName());if (lastSheetName != null) {sb.append(\" : \");sb.append(\"sheet=\").append(lastSheetName);}sb.append(\" ! \");sb.append(formatReferenceAsString());sb.append(\"]\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(this.GetType().Name);sb.Append(\" [\");if (externalWorkbookNumber >= 0){sb.Append(\" [\");sb.Append(\"workbook=\").Append(ExternalWorkbookNumber);sb.Append(\"] \");}sb.Append(\"sheet=\").Append(SheetName);if (lastSheetName != null){sb.Append(\" : \");sb.Append(\"sheet=\").Append(lastSheetName);}sb.Append(\" ! \");sb.Append(FormatReferenceAsString());sb.Append(\"]\");return sb.ToString();}" }, { "index": 7348, "before": "public SubmoduleSyncCommand addPath(String path) {paths.add(path);return this;}", "after": "public virtual NGit.Api.SubmoduleSyncCommand AddPath(string path){paths.AddItem(path);return this;}" }, { "index": 7349, "before": "@Override public int size() {return map.size();}", "after": "public override int size(){return this._enclosing._size;}" }, { "index": 7350, "before": "public DeleteNamespaceRequest() {super(\"cr\", \"2016-06-07\", \"DeleteNamespace\", \"cr\");setUriPattern(\"/namespace/[Namespace]\");setMethod(MethodType.DELETE);}", "after": "public DeleteNamespaceRequest(): base(\"cr\", \"2016-06-07\", \"DeleteNamespace\", \"cr\", \"openAPI\"){UriPattern = \"/namespace/[Namespace]\";Method = MethodType.DELETE;}" }, { "index": 7351, "before": "public GeoRestriction(GeoRestrictionType restrictionType) {setRestrictionType(restrictionType.toString());}", "after": "public GeoRestriction(GeoRestrictionType restrictionType){_restrictionType = restrictionType;}" }, { "index": 7352, "before": "public RecognizeEntityRequest() {super(\"visionai-poc\", \"2020-04-08\", \"RecognizeEntity\");setMethod(MethodType.POST);}", "after": "public RecognizeEntityRequest(): base(\"visionai-poc\", \"2020-04-08\", \"RecognizeEntity\"){Method = MethodType.POST;}" }, { "index": 7353, "before": "public final int compareTo(byte[] bs, int p) {int cmp;cmp = NB.compareUInt32(w1, NB.decodeInt32(bs, p));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w2, NB.decodeInt32(bs, p + 4));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w3, NB.decodeInt32(bs, p + 8));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w4, NB.decodeInt32(bs, p + 12));if (cmp != 0)return cmp;return NB.compareUInt32(w5, NB.decodeInt32(bs, p + 16));}", "after": "public int CompareTo(byte[] bs, int p){int cmp;cmp = NB.CompareUInt32(w1, NB.DecodeInt32(bs, p));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w2, NB.DecodeInt32(bs, p + 4));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w3, NB.DecodeInt32(bs, p + 8));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w4, NB.DecodeInt32(bs, p + 12));if (cmp != 0){return cmp;}return NB.CompareUInt32(w5, NB.DecodeInt32(bs, p + 16));}" }, { "index": 7354, "before": "public SendMessageRequest() {super(\"OnsMqtt\", \"2019-12-11\", \"SendMessage\", \"onsmqtt\");setMethod(MethodType.POST);}", "after": "public SendMessageRequest(): base(\"OnsMqtt\", \"2019-12-11\", \"SendMessage\", \"onsmqtt\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 7355, "before": "public SelectRequest(String selectExpression) {setSelectExpression(selectExpression);}", "after": "public SelectRequest(string selectExpression){_selectExpression = selectExpression;}" }, { "index": 7356, "before": "public TopMarginRecord clone() {return copy();}", "after": "public override Object Clone(){TopMarginRecord rec = new TopMarginRecord();rec.field_1_margin = this.field_1_margin;return rec;}" }, { "index": 7357, "before": "public GetStaticIpsResult getStaticIps(GetStaticIpsRequest request) {request = beforeClientExecution(request);return executeGetStaticIps(request);}", "after": "public virtual GetStaticIpsResponse GetStaticIps(GetStaticIpsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetStaticIpsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetStaticIpsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7358, "before": "public String toString() {final StringBuilder b = new StringBuilder();final int sectionCount = getSectionCount();b.append(getClass().getName());b.append('[');b.append(\"byteOrder: \");b.append(getByteOrder());b.append(\", classID: \");b.append(getClassID());b.append(\", format: \");b.append(getFormat());b.append(\", OSVersion: \");b.append(getOSVersion());b.append(\", sectionCount: \");b.append(sectionCount);b.append(\", sections: [\\n\");for (Section section: getSections()) {b.append(section.toString(getPropertySetIDMap()));}b.append(']');b.append(']');return b.toString();}", "after": "public override String ToString(){StringBuilder b = new StringBuilder();int sectionCount = SectionCount;b.Append(GetType().Name);b.Append('[');b.Append(\"byteOrder: \");b.Append(ByteOrder);b.Append(\", classID: \");b.Append(ClassID);b.Append(\", format: \");b.Append(Format);b.Append(\", OSVersion: \");b.Append(OSVersion);b.Append(\", sectionCount: \");b.Append(sectionCount);b.Append(\", sections: [\\n\");foreach (Section section in Sections){b.Append(section.ToString());}b.Append(']');b.Append(']');return b.ToString();}" }, { "index": 7359, "before": "public int stem(char s[], int len) {if (len < 4) return len;final int origLen = len;len = rule0(s, len);len = rule1(s, len);len = rule2(s, len);len = rule3(s, len);len = rule4(s, len);len = rule5(s, len);len = rule6(s, len);len = rule7(s, len);len = rule8(s, len);len = rule9(s, len);len = rule10(s, len);len = rule11(s, len);len = rule12(s, len);len = rule13(s, len);len = rule14(s, len);len = rule15(s, len);len = rule16(s, len);len = rule17(s, len);len = rule18(s, len);len = rule19(s, len);len = rule20(s, len);if (len == origLen)len = rule21(s, len);return rule22(s, len);}", "after": "public virtual int Stem(char[] s, int len){if (len < 4) {return len;}int origLen = len;len = Rule0(s, len);len = Rule1(s, len);len = Rule2(s, len);len = Rule3(s, len);len = Rule4(s, len);len = Rule5(s, len);len = Rule6(s, len);len = Rule7(s, len);len = Rule8(s, len);len = Rule9(s, len);len = Rule10(s, len);len = Rule11(s, len);len = Rule12(s, len);len = Rule13(s, len);len = Rule14(s, len);len = Rule15(s, len);len = Rule16(s, len);len = Rule17(s, len);len = Rule18(s, len);len = Rule19(s, len);len = Rule20(s, len);if (len == origLen){len = Rule21(s, len);}return Rule22(s, len);}" }, { "index": 7360, "before": "public CreateStreamingURLResult createStreamingURL(CreateStreamingURLRequest request) {request = beforeClientExecution(request);return executeCreateStreamingURL(request);}", "after": "public virtual CreateStreamingURLResponse CreateStreamingURL(CreateStreamingURLRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStreamingURLRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStreamingURLResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7361, "before": "public IBSimilarity(Distribution distribution,Lambda lambda,Normalization normalization) {this.distribution = distribution;this.lambda = lambda;this.normalization = normalization;}", "after": "public IBSimilarity(Distribution distribution, Lambda lambda, Normalization normalization){this.m_distribution = distribution;this.m_lambda = lambda;this.m_normalization = normalization;}" }, { "index": 7362, "before": "public GetBatchPredictionResult getBatchPrediction(GetBatchPredictionRequest request) {request = beforeClientExecution(request);return executeGetBatchPrediction(request);}", "after": "public virtual GetBatchPredictionResponse GetBatchPrediction(GetBatchPredictionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBatchPredictionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBatchPredictionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7363, "before": "public StartInstancesResult startInstances(StartInstancesRequest request) {request = beforeClientExecution(request);return executeStartInstances(request);}", "after": "public virtual StartInstancesResponse StartInstances(StartInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = StartInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7364, "before": "public DescribeLoadBalancerAttributesResult describeLoadBalancerAttributes(DescribeLoadBalancerAttributesRequest request) {request = beforeClientExecution(request);return executeDescribeLoadBalancerAttributes(request);}", "after": "public virtual DescribeLoadBalancerAttributesResponse DescribeLoadBalancerAttributes(DescribeLoadBalancerAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoadBalancerAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoadBalancerAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7365, "before": "public Filter(int type, long size, InputStream in) {this.type = type;this.size = size;this.in = in;}", "after": "public Filter(int type, long size, InputStream @in){this.type = type;this.size = size;this.@in = @in;}" }, { "index": 7366, "before": "public String getBaseForm() {return dictionary.getBaseForm(wordId, surfaceForm, offset, length);}", "after": "public virtual string GetBaseForm(){return dictionary.GetBaseForm(wordId, surfaceForm, offset, length);}" }, { "index": 7367, "before": "public Query makeLuceneQueryNoBoost(BasicQueryFactory qf) {if (fieldNames.size() == 1) { return q.makeLuceneQueryFieldNoBoost(fieldNames.get(0), qf);} else { List queries = new ArrayList<>();Iterator fni = getFieldNames().listIterator();SrndQuery qc;while (fni.hasNext()) {qc = q.clone();queries.add( new FieldsQuery( qc, fni.next(), fieldOp));}OrQuery oq = new OrQuery(queries,true ,OR_OPERATOR_NAME);return oq.makeLuceneQueryField(null, qf);}}", "after": "public virtual Search.Query MakeLuceneQueryNoBoost(BasicQueryFactory qf){if (fieldNames.Count == 1){ return q.MakeLuceneQueryFieldNoBoost(fieldNames.FirstOrDefault(), qf);}else{ List queries = new List();foreach (var fieldName in fieldNames){var qc = (SrndQuery)q.Clone();queries.Add(new FieldsQuery(qc, fieldName, fieldOp));}OrQuery oq = new OrQuery(queries,true ,orOperatorName);return oq.MakeLuceneQueryField(null, qf);}}" }, { "index": 7368, "before": "public SetVisibleToAllUsersResult setVisibleToAllUsers(SetVisibleToAllUsersRequest request) {request = beforeClientExecution(request);return executeSetVisibleToAllUsers(request);}", "after": "public virtual SetVisibleToAllUsersResponse SetVisibleToAllUsers(SetVisibleToAllUsersRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetVisibleToAllUsersRequestMarshaller.Instance;options.ResponseUnmarshaller = SetVisibleToAllUsersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7369, "before": "public GetBotResult getBot(GetBotRequest request) {request = beforeClientExecution(request);return executeGetBot(request);}", "after": "public virtual GetBotResponse GetBot(GetBotRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBotRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7370, "before": "public UpdateApnsSandboxChannelResult updateApnsSandboxChannel(UpdateApnsSandboxChannelRequest request) {request = beforeClientExecution(request);return executeUpdateApnsSandboxChannel(request);}", "after": "public virtual UpdateApnsSandboxChannelResponse UpdateApnsSandboxChannel(UpdateApnsSandboxChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApnsSandboxChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApnsSandboxChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7371, "before": "public CreateRouteResult createRoute(CreateRouteRequest request) {request = beforeClientExecution(request);return executeCreateRoute(request);}", "after": "public virtual CreateRouteResponse CreateRoute(CreateRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRouteResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7372, "before": "public FreeRefFunction findFunction(String name) {FreeRefFunction func = super.findFunction(name);if (func != null) {int idx = getFunctionIndex(name);_funcMap.put(idx, name);}return func;}", "after": "public override FreeRefFunction FindFunction(String name){FreeRefFunction func = base.FindFunction(name);if (func != null){int idx = GetFunctionIndex(name);_funcMap[idx] = name;}return func;}" }, { "index": 7373, "before": "public boolean atMinValue() {return value == minValue;}", "after": "public virtual bool AtMinValue(){return value == minValue;}" }, { "index": 7374, "before": "public TerminateInstanceInAutoScalingGroupResult terminateInstanceInAutoScalingGroup(TerminateInstanceInAutoScalingGroupRequest request) {request = beforeClientExecution(request);return executeTerminateInstanceInAutoScalingGroup(request);}", "after": "public virtual TerminateInstanceInAutoScalingGroupResponse TerminateInstanceInAutoScalingGroup(TerminateInstanceInAutoScalingGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = TerminateInstanceInAutoScalingGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = TerminateInstanceInAutoScalingGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7375, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[DVAL]\\n\");buffer.append(\" .options = \").append(getOptions()).append('\\n');buffer.append(\" .horizPos = \").append(getHorizontalPos()).append('\\n');buffer.append(\" .vertPos = \").append(getVerticalPos()).append('\\n');buffer.append(\" .comboObjectID = \").append(Integer.toHexString(getObjectID())).append(\"\\n\");buffer.append(\" .DVRecordsNumber = \").append(Integer.toHexString(getDVRecNo())).append(\"\\n\");buffer.append(\"[/DVAL]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[DVAL]\\n\");buffer.Append(\" .options = \").Append(this.Options).Append('\\n');buffer.Append(\" .horizPos = \").Append(this.HorizontalPos).Append('\\n');buffer.Append(\" .vertPos = \").Append(this.VerticalPos).Append('\\n');buffer.Append(\" .comboObjectID = \").Append(StringUtil.ToHexString(this.ObjectID)).Append(\"\\n\");buffer.Append(\" .DVRecordsNumber = \").Append(StringUtil.ToHexString(this.DVRecNo)).Append(\"\\n\");buffer.Append(\"[/DVAL]\\n\");return buffer.ToString();}" }, { "index": 7376, "before": "public static Token newToken(int ofKind, String image){switch(ofKind){default : return new Token(ofKind, image);}}", "after": "public static Token NewToken(int ofKind, string image){switch (ofKind){default: return new Token(ofKind, image);}}" }, { "index": 7377, "before": "public ATNConfig(ATNState state,int alt,PredictionContext context,SemanticContext semanticContext){this.state = state;this.alt = alt;this.context = context;this.semanticContext = semanticContext;}", "after": "public ATNConfig(ATNState state,int alt,PredictionContext context,SemanticContext semanticContext){this.state = state;this.alt = alt;this.context = context;this.semanticContext = semanticContext;}" }, { "index": 7378, "before": "public DataValidationConstraint createFormulaListConstraint(String listFormula) {return DVConstraint.createFormulaListConstraint(listFormula);}", "after": "public IDataValidationConstraint CreateFormulaListConstraint(String listFormula){return DVConstraint.CreateFormulaListConstraint(listFormula);}" }, { "index": 7379, "before": "public GlobalReplicationGroup failoverGlobalReplicationGroup(FailoverGlobalReplicationGroupRequest request) {request = beforeClientExecution(request);return executeFailoverGlobalReplicationGroup(request);}", "after": "public virtual FailoverGlobalReplicationGroupResponse FailoverGlobalReplicationGroup(FailoverGlobalReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = FailoverGlobalReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = FailoverGlobalReplicationGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7380, "before": "public BatchPutAttributesResult batchPutAttributes(BatchPutAttributesRequest request) {request = beforeClientExecution(request);return executeBatchPutAttributes(request);}", "after": "public virtual BatchPutAttributesResponse BatchPutAttributes(BatchPutAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchPutAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchPutAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7381, "before": "public long get(int index) {final int o = index >>> 1;final int b = index & 1;final int shift = b << 5;return (blocks[o] >>> shift) & 4294967295L;}", "after": "public override long Get(int index){int o = (int)((uint)index >> 1);int b = index & 1;int shift = b << 5;return ((long)((ulong)blocks[o] >> shift)) & 4294967295L;}" }, { "index": 7382, "before": "public int execute(StringBuilder buf) {return index;}", "after": "public virtual int Execute(StringBuilder buf){return index;}" }, { "index": 7383, "before": "public int remove(Object key) {boolean hashedOk;int index, next, hash;int result;Object object;index = next = findIndex(key, keys);if (keys[index] != key) {return -1;}result = values[index];int length = keys.length;while (true) {next = (next + 2) % length;object = keys[next];if (object == null) {break;}hash = getModuloHash(object, length);hashedOk = hash > index;if (next < index) {hashedOk = hashedOk || (hash <= next);} else {hashedOk = hashedOk && (hash <= next);}if (!hashedOk) {keys[index] = object;values[index] = values[next];index = next;}}size--;keys[index] = null;values[index] = -1;return result;}", "after": "public int remove(object key){bool hashedOk;int index;int next;int hash;int result;object @object;index = next = findIndex(key, keys);if (keys[index] != key){return -1;}result = values[index];int length = keys.Length;while (true){next = (next + 2) % length;@object = keys[next];if (@object == null){break;}hash = getModuloHash(@object, length);hashedOk = hash > index;if (next < index){hashedOk = hashedOk || (hash <= next);}else{hashedOk = hashedOk && (hash <= next);}if (!hashedOk){keys[index] = @object;values[index] = values[next];index = next;}}size--;keys[index] = null;values[index] = -1;return result;}" }, { "index": 7384, "before": "public synchronized void setMaxMergesAndThreads(int maxMergeCount, int maxThreadCount) {if (maxMergeCount == AUTO_DETECT_MERGES_AND_THREADS && maxThreadCount == AUTO_DETECT_MERGES_AND_THREADS) {this.maxMergeCount = AUTO_DETECT_MERGES_AND_THREADS;this.maxThreadCount = AUTO_DETECT_MERGES_AND_THREADS;} else if (maxMergeCount == AUTO_DETECT_MERGES_AND_THREADS) {throw new IllegalArgumentException(\"both maxMergeCount and maxThreadCount must be AUTO_DETECT_MERGES_AND_THREADS\");} else if (maxThreadCount == AUTO_DETECT_MERGES_AND_THREADS) {throw new IllegalArgumentException(\"both maxMergeCount and maxThreadCount must be AUTO_DETECT_MERGES_AND_THREADS\");} else {if (maxThreadCount < 1) {throw new IllegalArgumentException(\"maxThreadCount should be at least 1\");}if (maxMergeCount < 1) {throw new IllegalArgumentException(\"maxMergeCount should be at least 1\");}if (maxThreadCount > maxMergeCount) {throw new IllegalArgumentException(\"maxThreadCount should be <= maxMergeCount (= \" + maxMergeCount + \")\");}this.maxThreadCount = maxThreadCount;this.maxMergeCount = maxMergeCount;}}", "after": "public virtual void SetMaxMergesAndThreads(int maxMergeCount, int maxThreadCount){if (maxThreadCount < 1){throw new System.ArgumentException(\"maxThreadCount should be at least 1\");}if (maxMergeCount < 1){throw new System.ArgumentException(\"maxMergeCount should be at least 1\");}if (maxThreadCount > maxMergeCount){throw new System.ArgumentException(\"maxThreadCount should be <= maxMergeCount (= \" + maxMergeCount + \")\");}this.maxThreadCount = maxThreadCount;this.maxMergeCount = maxMergeCount;}" }, { "index": 7385, "before": "public final DoubleBuffer put(double[] src) {return put(src, 0, src.length);}", "after": "public java.nio.DoubleBuffer put(double[] src){return put(src, 0, src.Length);}" }, { "index": 7386, "before": "public final Collection getRefs() {return advertisedRefs.values();}", "after": "public ICollection GetRefs(){return advertisedRefs.Values;}" }, { "index": 7387, "before": "public DocFreqValueSource(String field, String val, String indexedField, BytesRef indexedBytes) {this.field = field;this.val = val;this.indexedField = indexedField;this.indexedBytes = indexedBytes;}", "after": "public DocFreqValueSource(string field, string val, string indexedField, BytesRef indexedBytes){this.m_field = field;this.m_val = val;this.m_indexedField = indexedField;this.m_indexedBytes = indexedBytes;}" }, { "index": 7388, "before": "public String getSegmentsFileName() {return IndexFileNames.fileNameFromGeneration(IndexFileNames.SEGMENTS,\"\",lastGeneration);}", "after": "public string GetSegmentsFileName(){return IndexFileNames.FileNameFromGeneration(IndexFileNames.SEGMENTS, \"\", lastGeneration);}" }, { "index": 7389, "before": "public Listener(String protocol, Integer loadBalancerPort, Integer instancePort) {setProtocol(protocol);setLoadBalancerPort(loadBalancerPort);setInstancePort(instancePort);}", "after": "public Listener(string protocol, int loadBalancerPort, int instancePort){_protocol = protocol;_loadBalancerPort = loadBalancerPort;_instancePort = instancePort;}" }, { "index": 7390, "before": "public GetCurrentUserResult getCurrentUser(GetCurrentUserRequest request) {request = beforeClientExecution(request);return executeGetCurrentUser(request);}", "after": "public virtual GetCurrentUserResponse GetCurrentUser(GetCurrentUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCurrentUserRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCurrentUserResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7391, "before": "public String toString() {return \"ObjectDirectory[\" + getDirectory() + \"]\"; }", "after": "public override string ToString(){return \"ObjectDirectory[\" + GetDirectory() + \"]\";}" }, { "index": 7392, "before": "public IllegalFormatWidthException(int w) {this.w = w;}", "after": "public IllegalFormatWidthException(int w){this.w = w;}" }, { "index": 7393, "before": "public String toToken() {return this.token;}", "after": "public virtual string ToToken(){return this.token;}" }, { "index": 7394, "before": "public UpdatePhoneNumberResult updatePhoneNumber(UpdatePhoneNumberRequest request) {request = beforeClientExecution(request);return executeUpdatePhoneNumber(request);}", "after": "public virtual UpdatePhoneNumberResponse UpdatePhoneNumber(UpdatePhoneNumberRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePhoneNumberRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePhoneNumberResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7395, "before": "public final IndexableField getField(String name) {for (IndexableField field : fields) {if (field.name().equals(name)) {return field;}}return null;}", "after": "public IIndexableField GetField(string name){foreach (IIndexableField field in fields){if (field.Name.Equals(name, StringComparison.Ordinal)){return field;}}return null;}" }, { "index": 7396, "before": "public DisableDomainTransferLockResult disableDomainTransferLock(DisableDomainTransferLockRequest request) {request = beforeClientExecution(request);return executeDisableDomainTransferLock(request);}", "after": "public virtual DisableDomainTransferLockResponse DisableDomainTransferLock(DisableDomainTransferLockRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableDomainTransferLockRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableDomainTransferLockResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7397, "before": "public PrintHeadersRecord clone() {return copy();}", "after": "public override Object Clone(){PrintHeadersRecord rec = new PrintHeadersRecord();rec.field_1_print_headers = field_1_print_headers;return rec;}" }, { "index": 7398, "before": "public UpdateDataSourceResult updateDataSource(UpdateDataSourceRequest request) {request = beforeClientExecution(request);return executeUpdateDataSource(request);}", "after": "public virtual UpdateDataSourceResponse UpdateDataSource(UpdateDataSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDataSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDataSourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7399, "before": "public int popMode() {if ( _modeStack.isEmpty() ) throw new EmptyStackException();if ( LexerATNSimulator.debug ) System.out.println(\"popMode back to \"+ _modeStack.peek());mode( _modeStack.pop() );return _mode;}", "after": "public virtual int PopMode(){if (_modeStack.Count == 0){throw new InvalidOperationException();}int mode = _modeStack.Pop();Mode(mode);return _mode;}" }, { "index": 7400, "before": "public ExternalSheet getExternalSheet(int externSheetIndex) {ExternalSheet sheet = _iBook.getExternalSheet(externSheetIndex);if (sheet == null) {int localSheetIndex = convertFromExternSheetIndex(externSheetIndex);if (localSheetIndex == -1) {return null;}if (localSheetIndex == -2) {return null;}String sheetName = getSheetName(localSheetIndex);int lastLocalSheetIndex = _iBook.getLastSheetIndexFromExternSheetIndex(externSheetIndex);if (lastLocalSheetIndex == localSheetIndex) {sheet = new ExternalSheet(null, sheetName);} else {String lastSheetName = getSheetName(lastLocalSheetIndex);sheet = new ExternalSheetRange(null, sheetName, lastSheetName);}}return sheet;}", "after": "public ExternalSheet GetExternalSheet(int externSheetIndex){ExternalSheet sheet = _iBook.GetExternalSheet(externSheetIndex);if (sheet == null){int localSheetIndex = ConvertFromExternSheetIndex(externSheetIndex);if (localSheetIndex == -1){return null;}if (localSheetIndex == -2){return null;}String sheetName = GetSheetName(localSheetIndex);int lastLocalSheetIndex = _iBook.GetLastSheetIndexFromExternSheetIndex(externSheetIndex);if (lastLocalSheetIndex == localSheetIndex){sheet = new ExternalSheet(null, sheetName);}else{String lastSheetName = GetSheetName(lastLocalSheetIndex);sheet = new ExternalSheetRange(null, sheetName, lastSheetName);}}return sheet;}" }, { "index": 7401, "before": "public static NoteMap newEmptyMap() {NoteMap r = new NoteMap(null );r.root = new LeafBucket(0);return r;}", "after": "public static NGit.Notes.NoteMap NewEmptyMap(){NGit.Notes.NoteMap r = new NGit.Notes.NoteMap(null);r.root = new LeafBucket(0);return r;}" }, { "index": 7402, "before": "@Override public java.lang.Object[] toArray() {synchronized (mutex) {return c.toArray();}}", "after": "public virtual object[] toArray(){lock (mutex){return c.toArray();}}" }, { "index": 7403, "before": "public TagCommand setObjectId(RevObject id) {this.id = id;return this;}", "after": "public virtual NGit.Api.TagCommand SetObjectId(RevObject id){this.id = id;return this;}" }, { "index": 7404, "before": "public static void clear() {cache.clearAll();}", "after": "public static void Clear(){cache.ClearAll();}" }, { "index": 7405, "before": "public final int prefixCompare(int[] bs, int p) {int cmp;cmp = NB.compareUInt32(w1, mask(1, bs[p]));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w2, mask(2, bs[p + 1]));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w3, mask(3, bs[p + 2]));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w4, mask(4, bs[p + 3]));if (cmp != 0)return cmp;return NB.compareUInt32(w5, mask(5, bs[p + 4]));}", "after": "public int PrefixCompare(int[] bs, int p){int cmp;cmp = NB.CompareUInt32(w1, Mask(1, bs[p]));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w2, Mask(2, bs[p + 1]));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w3, Mask(3, bs[p + 2]));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w4, Mask(4, bs[p + 3]));if (cmp != 0){return cmp;}return NB.CompareUInt32(w5, Mask(5, bs[p + 4]));}" }, { "index": 7406, "before": "public LongBuffer put(long[] src, int srcOffset, int longCount) {byteBuffer.limit(limit * SizeOf.LONG);byteBuffer.position(position * SizeOf.LONG);if (byteBuffer instanceof ReadWriteDirectByteBuffer) {((ReadWriteDirectByteBuffer) byteBuffer).put(src, srcOffset, longCount);} else {((ReadWriteHeapByteBuffer) byteBuffer).put(src, srcOffset, longCount);}this.position += longCount;return this;}", "after": "public override java.nio.LongBuffer put(long[] src, int srcOffset, int longCount){byteBuffer.limit(_limit * libcore.io.SizeOf.LONG);byteBuffer.position(_position * libcore.io.SizeOf.LONG);if (byteBuffer is java.nio.ReadWriteDirectByteBuffer){((java.nio.ReadWriteDirectByteBuffer)byteBuffer).put(src, srcOffset, longCount);}else{((java.nio.ReadWriteHeapByteBuffer)byteBuffer).put(src, srcOffset, longCount);}this._position += longCount;return this;}" }, { "index": 7407, "before": "public MoPenDeleteGroupRequest() {super(\"MoPen\", \"2018-02-11\", \"MoPenDeleteGroup\", \"mopen\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public MoPenDeleteGroupRequest(): base(\"MoPen\", \"2018-02-11\", \"MoPenDeleteGroup\", \"mopen\", \"openAPI\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 7408, "before": "public ApplyResult addUpdatedFile(File f) {updatedFiles.add(f);return this;}", "after": "public virtual ApplyResult AddUpdatedFile(FilePath f){updatedFiles.AddItem(f);return this;}" }, { "index": 7409, "before": "public T insertWithOverflow(T element) {if (size < maxSize) {add(element);return null;} else if (size > 0 && !lessThan(element, heap[1])) {T ret = heap[1];heap[1] = element;updateTop();return ret;} else {return element;}}", "after": "public virtual T InsertWithOverflow(T element){if (size < maxSize){Add(element);return default(T);}else if (size > 0 && !LessThan(element, heap[1])){T ret = heap[1];heap[1] = element;UpdateTop();return ret;}else{return element;}}" }, { "index": 7410, "before": "public boolean contains(Object object) {Iterator it = iterator();if (object != null) {while (it.hasNext()) {if (object.equals(it.next())) {return true;}}} else {while (it.hasNext()) {if (it.next() == null) {return true;}}}return false;}", "after": "public virtual bool contains(object @object){java.util.Iterator it = iterator();if (@object != null){while (it.hasNext()){if (@object.Equals(it.next())){return true;}}}else{while (it.hasNext()){if ((object)it.next() == null){return true;}}}return false;}" }, { "index": 7411, "before": "public UploadDocumentsResult uploadDocuments(UploadDocumentsRequest request) {request = beforeClientExecution(request);return executeUploadDocuments(request);}", "after": "public virtual UploadDocumentsResponse UploadDocuments(UploadDocumentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UploadDocumentsRequestMarshaller.Instance;options.ResponseUnmarshaller = UploadDocumentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7412, "before": "public String getAccessKeyId() {return legacyCredential.getAccessKeyId();}", "after": "public string GetAccessKeyId(){return legacyCredential.AccessKeyId;}" }, { "index": 7413, "before": "public static String toHex(String value) {return (value == null || value.length() == 0)? \"[]\": toHex(value.getBytes(LocaleUtil.CHARSET_1252));}", "after": "public static string ToHex(short value){return ToHex((long)value, 4);}" }, { "index": 7414, "before": "public String getText(Token start, Token stop) {if ( start!=null && stop!=null ) {return getText(Interval.of(start.getTokenIndex(), stop.getTokenIndex()));}return \"\";}", "after": "public virtual string GetText(IToken start, IToken stop){if (start != null && stop != null){return GetText(Interval.Of(start.TokenIndex, stop.TokenIndex));}return string.Empty;}" }, { "index": 7415, "before": "public static ValueVector createColumnVector(TwoDEval tableArray, int relativeColumnIndex) {return new ColumnVector(tableArray, relativeColumnIndex);}", "after": "public static ValueVector CreateColumnVector(TwoDEval tableArray, int relativeColumnIndex){return new ColumnVector((AreaEval)tableArray, relativeColumnIndex);}" }, { "index": 7416, "before": "public AcceptDomainTransferFromAnotherAwsAccountResult acceptDomainTransferFromAnotherAwsAccount(AcceptDomainTransferFromAnotherAwsAccountRequest request) {request = beforeClientExecution(request);return executeAcceptDomainTransferFromAnotherAwsAccount(request);}", "after": "public virtual AcceptDomainTransferFromAnotherAwsAccountResponse AcceptDomainTransferFromAnotherAwsAccount(AcceptDomainTransferFromAnotherAwsAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptDomainTransferFromAnotherAwsAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptDomainTransferFromAnotherAwsAccountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7417, "before": "public StartDeviceSyncResult startDeviceSync(StartDeviceSyncRequest request) {request = beforeClientExecution(request);return executeStartDeviceSync(request);}", "after": "public virtual StartDeviceSyncResponse StartDeviceSync(StartDeviceSyncRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDeviceSyncRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDeviceSyncResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7418, "before": "@Override public boolean containsKey(Object key) {return isInBounds(key) && TreeMap.this.containsKey(key);}", "after": "public override bool containsKey(object key){return this.isInBounds(key) && this._enclosing.containsKey(key);}" }, { "index": 7419, "before": "public static int idealObjectArraySize(int need) {return idealByteArraySize(need * 4) / 4;}", "after": "public static int idealObjectArraySize(int need){return idealByteArraySize(need * 4) / 4;}" }, { "index": 7420, "before": "public DescribeWorkspacesResult describeWorkspaces() {return describeWorkspaces(new DescribeWorkspacesRequest());}", "after": "public virtual DescribeWorkspacesResponse DescribeWorkspaces(){var request = new DescribeWorkspacesRequest();return DescribeWorkspaces(request);}" }, { "index": 7421, "before": "@Override public Iterator> iterator() {return new EntryIterator();}", "after": "public override java.util.Iterator> iterator(){return new java.util.Hashtable.EntryIterator(this._enclosing);}" }, { "index": 7422, "before": "public GlobalCluster removeFromGlobalCluster(RemoveFromGlobalClusterRequest request) {request = beforeClientExecution(request);return executeRemoveFromGlobalCluster(request);}", "after": "public virtual RemoveFromGlobalClusterResponse RemoveFromGlobalCluster(RemoveFromGlobalClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveFromGlobalClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveFromGlobalClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7423, "before": "public Map> getMergeResults() {return mergeResults;}", "after": "public virtual IDictionary> GetMergeResults(){return mergeResults;}" }, { "index": 7424, "before": "public static final int parseTimeZoneOffset(byte[] b, int ptr) {return parseTimeZoneOffset(b, ptr, null);}", "after": "public static int ParseTimeZoneOffset(byte[] b, int ptr){int v = ParseBase10(b, ptr, null);int tzMins = v % 100;int tzHours = v / 100;return tzHours * 60 + tzMins;}" }, { "index": 7425, "before": "public String toString() {synchronized (Hashtable.this) {return super.toString();}}", "after": "public override string ToString(){lock (this._enclosing){return base.ToString();}}" }, { "index": 7426, "before": "public void reset() throws IOException {in.reset();lineNumber = markedLineNumber;lastChar = markedLastChar;}", "after": "public override void reset(){throw new System.NotImplementedException();}" }, { "index": 7427, "before": "public FS newInstance() {return new FS_Win32(this);}", "after": "public override FS NewInstance(){return new NGit.Util.FS_Win32(this);}" }, { "index": 7428, "before": "public byte[] toByteArray() {if (buf != null) {byte[] r = new byte[ptr];System.arraycopy(buf, 0, r, 0, ptr);return r;}try {return overflowBuffer.toByteArray();} catch (IOException err) {throw new RuntimeException(err);}}", "after": "public virtual byte[] ToByteArray(){if (buf != null){byte[] r = new byte[ptr];System.Array.Copy(buf, 0, r, 0, ptr);return r;}try{return overflowBuffer.ToByteArray();}catch (IOException err){throw new RuntimeException(err);}}" }, { "index": 7429, "before": "public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx) {AreaI area = new OffsetArea(getFirstRow(), getFirstColumn(),relFirstRowIx, relLastRowIx, relFirstColIx, relLastColIx);return new LazyAreaEval(area, _evaluator);}", "after": "public override AreaEval Offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx){AreaI area = new OffsetArea(FirstRow, FirstColumn,relFirstRowIx, relLastRowIx, relFirstColIx, relLastColIx);return new LazyAreaEval(area, _evaluator);}" }, { "index": 7430, "before": "public TerminateJobFlowsResult terminateJobFlows(TerminateJobFlowsRequest request) {request = beforeClientExecution(request);return executeTerminateJobFlows(request);}", "after": "public virtual TerminateJobFlowsResponse TerminateJobFlows(TerminateJobFlowsRequest request){var options = new InvokeOptions();options.RequestMarshaller = TerminateJobFlowsRequestMarshaller.Instance;options.ResponseUnmarshaller = TerminateJobFlowsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7431, "before": "public CreateTopicRequest(String name) {setName(name);}", "after": "public CreateTopicRequest(string name){_name = name;}" }, { "index": 7432, "before": "public void freeBefore(int pos) {final int toFree = count - (nextPos - pos);assert toFree >= 0;assert toFree <= count;int index = nextWrite - count;if (index < 0) {index += positions.length;}for(int i=0;i= 0);Debug.Assert(toFree <= count);int index = nextWrite - count;if (index < 0){index += positions.Length;}for (int i = 0; i < toFree; i++){if (index == positions.Length){index = 0;}positions[index].Reset();index++;}count -= toFree;}" }, { "index": 7433, "before": "public LengthFilter create(TokenStream input) {final LengthFilter filter = new LengthFilter(input,min,max);return filter;}", "after": "public override TokenStream Create(TokenStream input){#pragma warning disable 612, 618var filter = new LengthFilter(m_luceneMatchVersion, enablePositionIncrements, input, min, max);#pragma warning restore 612, 618return filter;}" }, { "index": 7434, "before": "public StandardQueryParser() {super(new StandardQueryConfigHandler(), new StandardSyntaxParser(),new StandardQueryNodeProcessorPipeline(null),new StandardQueryTreeBuilder());setEnablePositionIncrements(true);}", "after": "public StandardQueryParser(): base(new StandardQueryConfigHandler(), new StandardSyntaxParser(),new StandardQueryNodeProcessorPipeline(null),new StandardQueryTreeBuilder()){EnablePositionIncrements = true;}" }, { "index": 7435, "before": "public GetUserSourceRepoRefListRequest() {super(\"cr\", \"2016-06-07\", \"GetUserSourceRepoRefList\", \"cr\");setUriPattern(\"/users/sourceAccount/[SourceAccountId]/repos/[SourceRepoNamespace]/[SourceRepoName]/refs\");setMethod(MethodType.GET);}", "after": "public GetUserSourceRepoRefListRequest(): base(\"cr\", \"2016-06-07\", \"GetUserSourceRepoRefList\", \"cr\", \"openAPI\"){UriPattern = \"/users/sourceAccount/[SourceAccountId]/repos/[SourceRepoNamespace]/[SourceRepoName]/refs\";Method = MethodType.GET;}" }, { "index": 7436, "before": "public static LongBuffer wrap(long[] array, int start, int longCount) {Arrays.checkOffsetAndCount(array.length, start, longCount);LongBuffer buf = new ReadWriteLongArrayBuffer(array);buf.position = start;buf.limit = start + longCount;return buf;}", "after": "public static java.nio.LongBuffer wrap(long[] array_1, int start, int longCount){java.util.Arrays.checkOffsetAndCount(array_1.Length, start, longCount);java.nio.LongBuffer buf = new java.nio.ReadWriteLongArrayBuffer(array_1);buf._position = start;buf._limit = start + longCount;return buf;}" }, { "index": 7437, "before": "public UpperCaseFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public UpperCaseFilterFactory(IDictionary args): base(args){AssureMatchVersion();if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 7438, "before": "public ListNotesCommand notesList() {return new ListNotesCommand(repo);}", "after": "public virtual ListNotesCommand NotesList(){return new ListNotesCommand(repo);}" }, { "index": 7439, "before": "public boolean isMissingNewlineAtEnd() {final int end = lines.get(lines.size() - 1);if (end == 0)return true;return content[end - 1] != '\\n';}", "after": "public virtual bool IsMissingNewlineAtEnd(){int end = lines.Get(lines.Size() - 1);if (end == 0){return true;}return content[end - 1] != '\\n';}" }, { "index": 7440, "before": "public CreateDashboardResult createDashboard(CreateDashboardRequest request) {request = beforeClientExecution(request);return executeCreateDashboard(request);}", "after": "public virtual CreateDashboardResponse CreateDashboard(CreateDashboardRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDashboardRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDashboardResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7441, "before": "public void write(String str, int offset, int count) {write(str.substring(offset, offset + count).toCharArray());}", "after": "public override void write(string str, int offset, int count){write(Sharpen.StringHelper.Substring(str, offset, offset + count).ToCharArray());}" }, { "index": 7442, "before": "public UpdateNamespaceAuthorizationRequest() {super(\"cr\", \"2016-06-07\", \"UpdateNamespaceAuthorization\", \"cr\");setUriPattern(\"/namespace/[Namespace]/authorizations/[AuthorizeId]\");setMethod(MethodType.POST);}", "after": "public UpdateNamespaceAuthorizationRequest(): base(\"cr\", \"2016-06-07\", \"UpdateNamespaceAuthorization\", \"cr\", \"openAPI\"){UriPattern = \"/namespace/[Namespace]/authorizations/[AuthorizeId]\";Method = MethodType.POST;}" }, { "index": 7443, "before": "public DescribeStreamResult describeStream(DescribeStreamRequest request) {request = beforeClientExecution(request);return executeDescribeStream(request);}", "after": "public virtual DescribeStreamResponse DescribeStream(DescribeStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7444, "before": "public void mark(int markLimit) throws IOException {if (markLimit < 0) {throw new IllegalArgumentException();}synchronized (lock) {checkNotClosed();this.markLimit = markLimit;mark = pos;}}", "after": "public override void mark(int markLimit){if (markLimit < 0){throw new System.ArgumentException();}lock (@lock){checkNotClosed();this.markLimit = markLimit;_mark = pos;}}" }, { "index": 7445, "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;final long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 16) | (byte1 << 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;int byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 16) | (byte1 << 8) | byte2;}}" }, { "index": 7446, "before": "public String toString() {return String.format(\"channel(%d)\", channel);}", "after": "public override string ToString(){return string.Format(\"channel({0})\", channel);}" }, { "index": 7447, "before": "public String getName() {int separatorIndex = path.lastIndexOf(separator);return (separatorIndex < 0) ? path : path.substring(separatorIndex + 1, path.length());}", "after": "public string getName(){int separatorIndex = path.LastIndexOf(separator);return (separatorIndex < 0) ? path : Sharpen.StringHelper.Substring(path, separatorIndex+ 1, path.Length);}" }, { "index": 7448, "before": "public TestInvokeMethodResult testInvokeMethod(TestInvokeMethodRequest request) {request = beforeClientExecution(request);return executeTestInvokeMethod(request);}", "after": "public virtual TestInvokeMethodResponse TestInvokeMethod(TestInvokeMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = TestInvokeMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = TestInvokeMethodResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7449, "before": "public final void clearAttributes() {for (State state = getCurrentState(); state != null; state = state.next) {state.attribute.clear();}}", "after": "public void ClearAttributes(){for (State state = GetCurrentState(); state != null; state = state.next){state.attribute.Clear();}}" }, { "index": 7450, "before": "public ListRecipesResult listRecipes(ListRecipesRequest request) {request = beforeClientExecution(request);return executeListRecipes(request);}", "after": "public virtual ListRecipesResponse ListRecipes(ListRecipesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRecipesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRecipesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7451, "before": "public void setText(CharacterIterator newText) {text = newText;text.setIndex(text.getBeginIndex());currentSentence = 0;Span[] spans = sentenceOp.splitSentences(characterIteratorToString());sentenceStarts = new int[spans.length];for (int i = 0; i < spans.length; ++i) {sentenceStarts[i] = spans[i].getStart() + text.getBeginIndex();}}", "after": "public override void SetText(CharacterIterator newText){text = newText;text.SetIndex(text.BeginIndex);currentSentence = 0;Span[] spans = sentenceOp.SplitSentences(CharacterIteratorToString());sentenceStarts = new int[spans.Length];for (int i = 0; i < spans.Length; ++i){sentenceStarts[i] = spans[i].getStart() + text.BeginIndex;}}" }, { "index": 7452, "before": "public String formatWithConflicts(String message,List conflictingPaths) {StringBuilder sb = new StringBuilder();String[] lines = message.split(\"\\n\"); int firstFooterLine = ChangeIdUtil.indexOfFirstFooterLine(lines);for (int i = 0; i < firstFooterLine; i++)sb.append(lines[i]).append('\\n');if (firstFooterLine == lines.length && message.length() != 0)sb.append('\\n');addConflictsMessage(conflictingPaths, sb);if (firstFooterLine < lines.length)sb.append('\\n');for (int i = firstFooterLine; i < lines.length; i++)sb.append(lines[i]).append('\\n');return sb.toString();}", "after": "public virtual string FormatWithConflicts(string message, IList conflictingPaths){StringBuilder sb = new StringBuilder(message);if (!message.EndsWith(\"\\n\") && message.Length != 0){sb.Append(\"\\n\");}sb.Append(\"\\n\");sb.Append(\"Conflicts:\\n\");foreach (string conflictingPath in conflictingPaths){sb.Append('\\t').Append(conflictingPath).Append('\\n');}return sb.ToString();}" }, { "index": 7453, "before": "public boolean get(int index) {return bits.get(index);}", "after": "public virtual bool Get(int index){return bits.SafeGet(index);}" }, { "index": 7454, "before": "public DescribeTaskSetsResult describeTaskSets(DescribeTaskSetsRequest request) {request = beforeClientExecution(request);return executeDescribeTaskSets(request);}", "after": "public virtual DescribeTaskSetsResponse DescribeTaskSets(DescribeTaskSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTaskSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTaskSetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7455, "before": "public void add(FormulaRecordAggregate agg) {if (_numberOfFormulas == 0) {if (_firstCell.getRow() != agg.getRow() || _firstCell.getCol() != agg.getColumn()) {throw new IllegalStateException(\"shared formula coding error: \"+_firstCell.getCol()+'/'+_firstCell.getRow()+\" != \"+agg.getColumn()+'/'+agg.getRow());}}if (_numberOfFormulas >= _frAggs.length) {throw new RuntimeException(\"Too many formula records for shared formula group\");}_frAggs[_numberOfFormulas++] = agg;}", "after": "public void Add(FormulaRecordAggregate agg){if (_numberOfFormulas == 0){if (_firstCell.Row != agg.Row || _firstCell.Col != agg.Column){throw new InvalidOperationException(\"shared formula coding error\");}}if (_numberOfFormulas >= _frAggs.Length){throw new Exception(\"Too many formula records for shared formula group\");}_frAggs[_numberOfFormulas++] = agg;}" }, { "index": 7456, "before": "public PacketLineOutRefAdvertiser(PacketLineOut out) {pckOut = out;}", "after": "public PacketLineOutRefAdvertiser(PacketLineOut @out){pckOut = @out;}" }, { "index": 7457, "before": "public UpdateDataSetResult updateDataSet(UpdateDataSetRequest request) {request = beforeClientExecution(request);return executeUpdateDataSet(request);}", "after": "public virtual UpdateDataSetResponse UpdateDataSet(UpdateDataSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDataSetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDataSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7458, "before": "public ListKeyPhrasesDetectionJobsResult listKeyPhrasesDetectionJobs(ListKeyPhrasesDetectionJobsRequest request) {request = beforeClientExecution(request);return executeListKeyPhrasesDetectionJobs(request);}", "after": "public virtual ListKeyPhrasesDetectionJobsResponse ListKeyPhrasesDetectionJobs(ListKeyPhrasesDetectionJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListKeyPhrasesDetectionJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListKeyPhrasesDetectionJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7459, "before": "@Override public void clear() {Impl.this.clear();}", "after": "public override void clear(){this._enclosing.clear();}" }, { "index": 7460, "before": "public VaultNotificationConfig(String sNSTopic, java.util.List events) {setSNSTopic(sNSTopic);setEvents(events);}", "after": "public VaultNotificationConfig(string snsTopic, List events){_snsTopic = snsTopic;_events = events;}" }, { "index": 7461, "before": "public String[] lemmatize(String[] words, String[] postags) {String[] lemmas = null;String[] maxEntLemmas = null;if (dictionaryLemmatizer != null) {lemmas = dictionaryLemmatizer.lemmatize(words, postags);for (int i = 0; i < lemmas.length; ++i) {if (lemmas[i].equals(\"O\")) { if (lemmatizerME != null) { if (maxEntLemmas == null) {maxEntLemmas = lemmatizerME.lemmatize(words, postags);}if (\"_\".equals(maxEntLemmas[i])) {lemmas[i] = words[i]; } else {lemmas[i] = maxEntLemmas[i];}} else { lemmas[i] = words[i]; }}}} else { maxEntLemmas = lemmatizerME.lemmatize(words, postags);for (int i = 0 ; i < maxEntLemmas.length ; ++i) {if (\"_\".equals(maxEntLemmas[i])) {maxEntLemmas[i] = words[i]; }}lemmas = maxEntLemmas;}return lemmas;}", "after": "public virtual string[] Lemmatize(string[] words, string[] postags){string[] lemmas = null;string[] maxEntLemmas = null;if (dictionaryLemmatizer != null){lemmas = dictionaryLemmatizer.lemmatize(words, postags);for (int i = 0; i < lemmas.Length; ++i){if (lemmas[i].Equals(\"O\")){ if (lemmatizerME != null){ if (maxEntLemmas == null){maxEntLemmas = lemmatizerME.lemmatize(words, postags);}if (\"_\".Equals(maxEntLemmas[i])){lemmas[i] = words[i]; }else{lemmas[i] = maxEntLemmas[i];}}else{ lemmas[i] = words[i]; }}}}else{ maxEntLemmas = lemmatizerME.lemmatize(words, postags);for (int i = 0; i < maxEntLemmas.Length; ++i){if (\"_\".Equals(maxEntLemmas[i])){maxEntLemmas[i] = words[i]; }}lemmas = maxEntLemmas;}return lemmas;}" }, { "index": 7462, "before": "public PaletteRecord(RecordInputStream in) {int field_1_numcolors = in.readShort();_colors.ensureCapacity(field_1_numcolors);for (int k = 0; k < field_1_numcolors; k++) {_colors.add(new PColor(in));}}", "after": "public PaletteRecord(RecordInputStream in1){short field_1_numcolors = in1.ReadShort();field_2_colors = new List(field_1_numcolors);for (int k = 0; k < field_1_numcolors; k++){field_2_colors.Add(new PColor(in1));}}" }, { "index": 7463, "before": "public GetJobOutputRequest(String accountId, String vaultName, String jobId, String range) {setAccountId(accountId);setVaultName(vaultName);setJobId(jobId);setRange(range);}", "after": "public GetJobOutputRequest(string accountId, string vaultName, string jobId, string range){_accountId = accountId;_vaultName = vaultName;_jobId = jobId;_range = range;}" }, { "index": 7464, "before": "public ISigner getSigner() {return null;}", "after": "public ISigner GetSigner(){return null;}" }, { "index": 7465, "before": "public static int codePointCount(BytesRef utf8) {int pos = utf8.offset;final int limit = pos + utf8.length;final byte[] bytes = utf8.bytes;int codePointCount = 0;for (; pos < limit; codePointCount++) {int v = bytes[pos] & 0xFF;if (v < 0x80) { pos += 1; continue; }if (v >= 0xc0) {if (v < 0xe0) { pos += 2; continue; }if (v < 0xf0) { pos += 3; continue; }if (v < 0xf8) { pos += 4; continue; }}throw new IllegalArgumentException();}if (pos > limit) throw new IllegalArgumentException();return codePointCount;}", "after": "public static int CodePointCount(BytesRef utf8){int pos = utf8.Offset;int limit = pos + utf8.Length;var bytes = utf8.Bytes;int codePointCount = 0;for (; pos < limit; codePointCount++){int v = bytes[pos] & 0xFF;if (v < 0x80) { pos += 1; continue; }if (v >= 0xc0){if (v < 0xe0) { pos += 2; continue; }if (v < 0xf0) { pos += 3; continue; }if (v < 0xf8) { pos += 4; continue; }}throw new ArgumentException();}if (pos > limit) throw new ArgumentException();return codePointCount;}" }, { "index": 7466, "before": "public static Class getRecordClass(int sid) {I_RecordCreator rc = _recordCreatorsById.get(Integer.valueOf(sid));if (rc == null) {return null;}return rc.getRecordClass();}", "after": "public static Type GetRecordClass(int sid){I_RecordCreator rc = _recordCreatorsById[(short)sid];if (rc == null){return null;}return rc.GetRecordClass();}" }, { "index": 7467, "before": "public WriteAccessRecord(RecordInputStream in) {if (in.remaining() > DATA_SIZE) {throw new RecordFormatException(\"Expected data size (\" + DATA_SIZE + \") but got (\"+ in.remaining() + \")\");}int nChars = in.readUShort();int is16BitFlag = in.readUByte();if (nChars > DATA_SIZE || (is16BitFlag & 0xFE) != 0) {byte[] data = new byte[3 + in.remaining()];LittleEndian.putUShort(data, 0, nChars);LittleEndian.putByte(data, 2, is16BitFlag);in.readFully(data, 3, data.length-3);String rawValue = new String(data, StringUtil.UTF8);setUsername(rawValue.trim());return;}String rawText;if ((is16BitFlag & 0x01) == 0x00) {rawText = StringUtil.readCompressedUnicode(in, nChars);} else {rawText = StringUtil.readUnicodeLE(in, nChars);}field_1_username = rawText.trim();int padSize = in.remaining();while (padSize > 0) {in.readUByte();padSize--;}}", "after": "public WriteAccessRecord(RecordInputStream in1){if (in1.Remaining > DATA_SIZE){throw new RecordFormatException(\"Expected data size (\" + DATA_SIZE + \") but got (\"+ in1.Remaining + \")\");}int nChars = in1.ReadUShort();int is16BitFlag = in1.ReadUByte();if (nChars > DATA_SIZE || (is16BitFlag & 0xFE) != 0){byte[] data = new byte[3 + in1.Remaining];LittleEndian.PutUShort(data, 0, nChars);LittleEndian.PutByte(data, 2, is16BitFlag);in1.ReadFully(data, 3, data.Length - 3);char[] data1=new char[data.Length];for (int i = 0; i < data.Length; i++){data1[i] = (char)data[i];}String rawValue = new String(data1);Username = rawValue.Trim();return;}String rawText;if ((is16BitFlag & 0x01) == 0x00){rawText = StringUtil.ReadCompressedUnicode(in1, nChars);}else{rawText = StringUtil.ReadUnicodeLE(in1, nChars);}field_1_username = rawText.Trim();int padSize = in1.Remaining;while (padSize > 0){in1.ReadUByte();padSize--;}}" }, { "index": 7468, "before": "public FontBasisRecord(RecordInputStream in){field_1_xBasis = in.readShort();field_2_yBasis = in.readShort();field_3_heightBasis = in.readShort();field_4_scale = in.readShort();field_5_indexToFontTable = in.readShort();}", "after": "public FontBasisRecord(RecordInputStream in1){field_1_xBasis = in1.ReadShort();field_2_yBasis = in1.ReadShort();field_3_heightBasis = in1.ReadShort();field_4_scale = in1.ReadShort();field_5_indexToFontTable = in1.ReadShort();}" }, { "index": 7469, "before": "public String encodeText(String originalText) {return originalText;}", "after": "public virtual string EncodeText(string originalText){return originalText;}" }, { "index": 7470, "before": "public PathEdit(String entryPath) {path = Constants.encode(entryPath);}", "after": "public PathEdit(string entryPath){path = Constants.Encode(entryPath);}" }, { "index": 7471, "before": "public boolean add(char[] text) {return map.put(text, PLACEHOLDER) == null;}", "after": "public virtual bool Add(char[] text){return map.Put(text);}" }, { "index": 7472, "before": "public ResolveAliasResult resolveAlias(ResolveAliasRequest request) {request = beforeClientExecution(request);return executeResolveAlias(request);}", "after": "public virtual ResolveAliasResponse ResolveAlias(ResolveAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResolveAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = ResolveAliasResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7473, "before": "public TokenStream create(TokenStream input) {return new GreekStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new GreekStemFilter(input);}" }, { "index": 7474, "before": "public DescribeCacheSecurityGroupsRequest(String cacheSecurityGroupName) {setCacheSecurityGroupName(cacheSecurityGroupName);}", "after": "public DescribeCacheSecurityGroupsRequest(string cacheSecurityGroupName){_cacheSecurityGroupName = cacheSecurityGroupName;}" }, { "index": 7475, "before": "public void readFully(byte[] buf, int off, int len) {if (shouldSkipEncryptionOnCurrentRecord) {readPlain(buf, off, buf.length);} else {ccis.readFully(buf, off, len);}}", "after": "public void ReadFully(byte[] buf, int off, int len){_le.ReadFully(buf, off, len);_rc4.Xor(buf, off, len);}" }, { "index": 7476, "before": "public static byte[] copyOf(byte[] original, int newLength) {if (newLength < 0) {throw new NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}", "after": "public static byte[] copyOf(byte[] original, int newLength){if (newLength < 0){throw new java.lang.NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}" }, { "index": 7477, "before": "public DeleteDomainNameResult deleteDomainName(DeleteDomainNameRequest request) {request = beforeClientExecution(request);return executeDeleteDomainName(request);}", "after": "public virtual DeleteDomainNameResponse DeleteDomainName(DeleteDomainNameRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDomainNameRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDomainNameResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7478, "before": "public GlobalReplicationGroup decreaseNodeGroupsInGlobalReplicationGroup(DecreaseNodeGroupsInGlobalReplicationGroupRequest request) {request = beforeClientExecution(request);return executeDecreaseNodeGroupsInGlobalReplicationGroup(request);}", "after": "public virtual DecreaseNodeGroupsInGlobalReplicationGroupResponse DecreaseNodeGroupsInGlobalReplicationGroup(DecreaseNodeGroupsInGlobalReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DecreaseNodeGroupsInGlobalReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DecreaseNodeGroupsInGlobalReplicationGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7479, "before": "public SelectRequest(String selectExpression, Boolean consistentRead) {setSelectExpression(selectExpression);setConsistentRead(consistentRead);}", "after": "public SelectRequest(string selectExpression, bool consistentRead){_selectExpression = selectExpression;_consistentRead = consistentRead;}" }, { "index": 7480, "before": "public SubmoduleAddCommand setURI(String uri) {this.uri = uri;return this;}", "after": "public virtual NGit.Api.SubmoduleAddCommand SetURI(string uri){this.uri = uri;return this;}" }, { "index": 7481, "before": "public PutRestApiResult putRestApi(PutRestApiRequest request) {request = beforeClientExecution(request);return executePutRestApi(request);}", "after": "public virtual PutRestApiResponse PutRestApi(PutRestApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutRestApiRequestMarshaller.Instance;options.ResponseUnmarshaller = PutRestApiResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7482, "before": "public Ptg get3DReferencePtg(AreaReference areaRef, SheetIdentifier sheet) {int extIx = getSheetExtIx(sheet);return new Area3DPtg(areaRef, extIx);}", "after": "public Ptg Get3DReferencePtg(CellReference cr, SheetIdentifier sheet){int extIx = GetSheetExtIx(sheet);return new Ref3DPtg(cr, extIx);}" }, { "index": 7483, "before": "public CreateRequestValidatorResult createRequestValidator(CreateRequestValidatorRequest request) {request = beforeClientExecution(request);return executeCreateRequestValidator(request);}", "after": "public virtual CreateRequestValidatorResponse CreateRequestValidator(CreateRequestValidatorRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRequestValidatorRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRequestValidatorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7484, "before": "public ByteBuffer duplicate() {return copy(this, mark);}", "after": "public override java.nio.ByteBuffer duplicate(){return copy(this, _mark);}" }, { "index": 7485, "before": "public void setPackedGitWindowSize(int newSize) {packedGitWindowSize = newSize;}", "after": "public virtual void SetPackedGitWindowSize(int newSize){packedGitWindowSize = newSize;}" }, { "index": 7486, "before": "public DisassociateMembershipResult disassociateMembership(DisassociateMembershipRequest request) {request = beforeClientExecution(request);return executeDisassociateMembership(request);}", "after": "public virtual DisassociateMembershipResponse DisassociateMembership(DisassociateMembershipRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateMembershipRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateMembershipResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7487, "before": "public void parse(Reader in) throws IOException, ParseException {LineNumberReader br = new LineNumberReader(in);try {String line = null;String lastSynSetID = \"\";CharsRef synset[] = new CharsRef[8];int synsetSize = 0;while ((line = br.readLine()) != null) {String synSetID = line.substring(2, 11);if (!synSetID.equals(lastSynSetID)) {addInternal(synset, synsetSize);synsetSize = 0;}synset = ArrayUtil.grow(synset, synsetSize + 1);synset[synsetSize] = parseSynonym(line, new CharsRefBuilder());synsetSize++;lastSynSetID = synSetID;}addInternal(synset, synsetSize);} catch (IllegalArgumentException e) {ParseException ex = new ParseException(\"Invalid synonym rule at line \" + br.getLineNumber(), 0);ex.initCause(e);throw ex;} finally {br.close();}}", "after": "public override void Parse(TextReader @in){int lineNumber = 0;TextReader br = @in;try{string line = null;string lastSynSetID = \"\";CharsRef[] synset = new CharsRef[8];int synsetSize = 0;while ((line = br.ReadLine()) != null){lineNumber++;string synSetID = line.Substring(2, 9);if (!synSetID.Equals(lastSynSetID, StringComparison.Ordinal)){AddInternal(synset, synsetSize);synsetSize = 0;}if (synset.Length <= synsetSize + 1){CharsRef[] larger = new CharsRef[synset.Length * 2];Array.Copy(synset, 0, larger, 0, synsetSize);synset = larger;}synset[synsetSize] = ParseSynonym(line, synset[synsetSize]);synsetSize++;lastSynSetID = synSetID;}AddInternal(synset, synsetSize);}catch (System.ArgumentException e){throw new Exception(\"Invalid synonym rule at line \" + lineNumber.ToString(), e);}finally{br.Dispose();}}" }, { "index": 7488, "before": "public String[] list() {return listImpl(path);}", "after": "public string[] list(){return listImpl(path);}" }, { "index": 7489, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[ENDOBJECT]\\n\");buffer.append(\" .rt =\").append(HexDump.shortToHex(rt)).append('\\n');buffer.append(\" .grbitFrt =\").append(HexDump.shortToHex(grbitFrt)).append('\\n');buffer.append(\" .iObjectKind=\").append(HexDump.shortToHex(iObjectKind)).append('\\n');buffer.append(\" .reserved =\").append(HexDump.toHex(reserved)).append('\\n');buffer.append(\"[/ENDOBJECT]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[ENDOBJECT]\\n\");buffer.Append(\" .rt =\").Append(HexDump.ShortToHex(rt)).Append('\\n');buffer.Append(\" .grbitFrt =\").Append(HexDump.ShortToHex(grbitFrt)).Append('\\n');buffer.Append(\" .iObjectKind=\").Append(HexDump.ShortToHex(iObjectKind)).Append('\\n');buffer.Append(\" .unused =\").Append(HexDump.ToHex(reserved)).Append('\\n');buffer.Append(\"[/ENDOBJECT]\\n\");return buffer.ToString();}" }, { "index": 7490, "before": "public static final RevFilter after(Date ts) {return after(ts.getTime());}", "after": "public static RevFilter After(DateTime ts){return After(ts.GetTime());}" }, { "index": 7491, "before": "public static Element getFirstChildElement(Element element) {for (Node kid = element.getFirstChild(); kid != null; kid = kid.getNextSibling()) {if (kid.getNodeType() == Node.ELEMENT_NODE) {return (Element) kid;}}return null;}", "after": "public static XmlElement GetFirstChildElement(XmlElement element){for (XmlNode kid = element.FirstChild; kid != null; kid = kid.NextSibling){if (kid.NodeType == XmlNodeType.Element){return (XmlElement)kid;}}return null;}" }, { "index": 7492, "before": "@Override public boolean add(E object) {synchronized (mutex) {return c.add(object);}}", "after": "public virtual bool add(E @object){lock (mutex){return c.add(@object);}}" }, { "index": 7493, "before": "public LongMap() {table = createArray(64);growAt = (int) (table.length * LOAD_FACTOR);}", "after": "public LongMap(){table = CreateArray(64);growAt = (int)(table.Length * LOAD_FACTOR);}" }, { "index": 7494, "before": "public ClaimGameServerResult claimGameServer(ClaimGameServerRequest request) {request = beforeClientExecution(request);return executeClaimGameServer(request);}", "after": "public virtual ClaimGameServerResponse ClaimGameServer(ClaimGameServerRequest request){var options = new InvokeOptions();options.RequestMarshaller = ClaimGameServerRequestMarshaller.Instance;options.ResponseUnmarshaller = ClaimGameServerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7495, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval venumerator, ValueEval vedenominator) {double enumerator = 0;try {enumerator = OperandResolver.coerceValueToDouble(venumerator);} catch (EvaluationException e) {return ErrorEval.VALUE_INVALID;}double denominator = 0;try {denominator = OperandResolver.coerceValueToDouble(vedenominator);} catch (EvaluationException e) {return ErrorEval.VALUE_INVALID;}if (denominator == 0) {return ErrorEval.DIV_ZERO;}return new NumberEval((int)(enumerator / denominator));}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval venumerator, ValueEval vedenominator){double enumerator = 0;try{enumerator = OperandResolver.CoerceValueToDouble(venumerator);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}double denominator = 0;try{denominator = OperandResolver.CoerceValueToDouble(vedenominator);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}if (denominator == 0){return ErrorEval.DIV_ZERO;}return new NumberEval(((int)(enumerator / denominator)));}" }, { "index": 7496, "before": "public synchronized V put(K key, V value) {if (value == null) {throw new NullPointerException();}int hash = secondaryHash(key.hashCode());HashtableEntry[] tab = table;int index = hash & (tab.length - 1);HashtableEntry first = tab[index];for (HashtableEntry e = first; e != null; e = e.next) {if (e.hash == hash && key.equals(e.key)) {V oldValue = e.value;e.value = value;return oldValue;}}modCount++;if (size++ > threshold) {rehash(); tab = doubleCapacity();index = hash & (tab.length - 1);first = tab[index];}tab[index] = new HashtableEntry(key, value, hash, first);return null;}", "after": "public override V put(K key, V value){lock (this){if ((object)value == null){throw new System.ArgumentNullException();}int hash = secondaryHash(key.GetHashCode());java.util.Hashtable.HashtableEntry[] tab = table;int index = hash & (tab.Length - 1);java.util.Hashtable.HashtableEntry first = tab[index];{for (java.util.Hashtable.HashtableEntry e = first; e != null; e = e.next){if (e.hash == hash && key.Equals(e.key)){V oldValue = e.value;e.value = value;return oldValue;}}}modCount++;if (_size++ > threshold){rehash();tab = doubleCapacity();index = hash & (tab.Length - 1);first = tab[index];}tab[index] = new java.util.Hashtable.HashtableEntry(key, value, hash, first);return default(V);}}" }, { "index": 7497, "before": "public DescribeAutoScalingNotificationTypesResult describeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest request) {request = beforeClientExecution(request);return executeDescribeAutoScalingNotificationTypes(request);}", "after": "public virtual DescribeAutoScalingNotificationTypesResponse DescribeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAutoScalingNotificationTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAutoScalingNotificationTypesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7498, "before": "public ScandinavianFoldingFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public ScandinavianFoldingFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 7499, "before": "public ContentHandler getContentHandler () {return (theContentHandler == this) ? null : theContentHandler;}", "after": "public void close (){lock (this.mBlock) {if (this.mParseState != null) {this.mParseState.Dispose ();this.mParseState = null;this.mBlock.decOpenCountLocked ();}}}" }, { "index": 7500, "before": "public String toString() {return \"$\";}", "after": "public override string ToString(){return \"$\";}" }, { "index": 7501, "before": "public ListAssessmentRunsResult listAssessmentRuns(ListAssessmentRunsRequest request) {request = beforeClientExecution(request);return executeListAssessmentRuns(request);}", "after": "public virtual ListAssessmentRunsResponse ListAssessmentRuns(ListAssessmentRunsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAssessmentRunsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAssessmentRunsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7502, "before": "public ShortBuffer compact() {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ShortBuffer compact(){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 7503, "before": "public DeleteAssessmentRunResult deleteAssessmentRun(DeleteAssessmentRunRequest request) {request = beforeClientExecution(request);return executeDeleteAssessmentRun(request);}", "after": "public virtual DeleteAssessmentRunResponse DeleteAssessmentRun(DeleteAssessmentRunRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAssessmentRunRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAssessmentRunResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7504, "before": "public GetAppsResult getApps(GetAppsRequest request) {request = beforeClientExecution(request);return executeGetApps(request);}", "after": "public virtual GetAppsResponse GetApps(GetAppsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAppsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAppsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7505, "before": "public String highlightTerm(String originalText, TokenGroup tokenGroup){if (tokenGroup.getTotalScore() == 0)return originalText;float score = tokenGroup.getTotalScore();if (score == 0){return originalText;}StringBuilder sb = new StringBuilder();sb.append(\"\");sb.append(originalText);sb.append(\"\");return sb.toString();}", "after": "public virtual string HighlightTerm(string originalText, TokenGroup tokenGroup){if (tokenGroup.TotalScore == 0)return originalText;float score = tokenGroup.TotalScore;if (score == 0){return originalText;}var sb = new StringBuilder();sb.Append(\"\");sb.Append(originalText);sb.Append(\"\");return sb.ToString();}" }, { "index": 7506, "before": "public PendingTerm(BytesRef term, BlockTermState state) {super(true);this.termBytes = new byte[term.length];System.arraycopy(term.bytes, term.offset, termBytes, 0, term.length);this.state = state;}", "after": "public PendingTerm(BytesRef term, BlockTermState state): base(true){this.Term = term;this.State = state;}" }, { "index": 7507, "before": "public IntBuffer asReadOnlyBuffer() {IntToByteBufferAdapter buf = new IntToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf.limit = limit;buf.position = position;buf.mark = mark;buf.byteBuffer.order = byteBuffer.order;return buf;}", "after": "public override java.nio.IntBuffer asReadOnlyBuffer(){java.nio.IntToByteBufferAdapter buf = new java.nio.IntToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf._limit = _limit;buf._position = _position;buf._mark = _mark;buf.byteBuffer._order = byteBuffer._order;return buf;}" }, { "index": 7508, "before": "public final void addParents(RevCommit c, RevFlag queueControl) {final RevCommit[] pList = c.parents;if (pList == null) {return;}for (int i = 0; i < pList.length; i++) {if (firstParent && i > 0) {break;}add(pList[i], queueControl);}}", "after": "public void AddParents(RevCommit c, RevFlag queueControl){RevCommit[] pList = c.parents;if (pList == null){return;}foreach (RevCommit p in pList){Add(p, queueControl);}}" }, { "index": 7509, "before": "public IndicNormalizationFilter(TokenStream input) {super(input);}", "after": "public IndicNormalizationFilter(TokenStream input): base(input){termAtt = AddAttribute();}" }, { "index": 7510, "before": "public ListTasksResult listTasks(ListTasksRequest request) {request = beforeClientExecution(request);return executeListTasks(request);}", "after": "public virtual ListTasksResponse ListTasks(ListTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTasksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7511, "before": "public ListTemplateAliasesResult listTemplateAliases(ListTemplateAliasesRequest request) {request = beforeClientExecution(request);return executeListTemplateAliases(request);}", "after": "public virtual ListTemplateAliasesResponse ListTemplateAliases(ListTemplateAliasesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTemplateAliasesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTemplateAliasesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7512, "before": "public DescribeEventCategoriesResult describeEventCategories() {return describeEventCategories(new DescribeEventCategoriesRequest());}", "after": "public virtual DescribeEventCategoriesResponse DescribeEventCategories(){return DescribeEventCategories(new DescribeEventCategoriesRequest());}" }, { "index": 7513, "before": "public static File createTempFile(String prefix, String suffix) throws IOException {return createTempFile(prefix, suffix, null);}", "after": "public static java.io.File createTempFile(string prefix, string suffix){throw new System.NotImplementedException();}" }, { "index": 7514, "before": "public LabelAndValue(String label, Number value) {this.label = label;this.value = value;}", "after": "public LabelAndValue(string label, float value){this.Label = label;this.Value = value;this.TypeOfValue = typeof(float);}" }, { "index": 7515, "before": "public String getReading(int wordId, char surface[], int off, int len) {return getFeature(wordId, 0);}", "after": "public string GetReading(int wordId, char[] surface, int off, int len){return GetFeature(wordId, 0);}" }, { "index": 7516, "before": "public CodepointCountFilter create(TokenStream input) {return new CodepointCountFilter(input, min, max);}", "after": "public override TokenStream Create(TokenStream input){return new CodepointCountFilter(m_luceneMatchVersion, input, min, max);}" }, { "index": 7517, "before": "public String toString() {StringBuilder res = new StringBuilder(task.getName());res.append(\" \");res.append(count);res.append(\" \");res.append(elapsed);return res.toString();}", "after": "public override string ToString(){StringBuilder res = new StringBuilder(task.GetName());res.Append(\" \");res.Append(count);res.Append(\" \");res.Append(elapsed);return res.ToString();}" }, { "index": 7518, "before": "public void build(InputIterator iterator) throws IOException {if (iterator.hasPayloads()) {throw new IllegalArgumentException(\"this suggester doesn't support payloads\");}if (iterator.hasContexts()) {throw new IllegalArgumentException(\"this suggester doesn't support contexts\");}root = new TernaryTreeNode();iterator = new SortedInputIterator(tempDir, tempFileNamePrefix, iterator, utf8SortedAsUTF16SortOrder);count = 0;ArrayList tokens = new ArrayList<>();ArrayList vals = new ArrayList<>();BytesRef spare;CharsRefBuilder charsSpare = new CharsRefBuilder();while ((spare = iterator.next()) != null) {charsSpare.copyUTF8Bytes(spare);tokens.add(charsSpare.toString());vals.add(Long.valueOf(iterator.weight()));count++;}autocomplete.balancedTree(tokens.toArray(), vals.toArray(), 0, tokens.size() - 1, root);}", "after": "public override void Build(IInputIterator tfit){if (tfit.HasPayloads){throw new System.ArgumentException(\"this suggester doesn't support payloads\");}if (tfit.HasContexts){throw new System.ArgumentException(\"this suggester doesn't support contexts\");}root = new TernaryTreeNode();#pragma warning disable 612, 618if (tfit.Comparer != BytesRef.UTF8SortedAsUTF16Comparer){tfit = new SortedInputIterator(tfit, BytesRef.UTF8SortedAsUTF16Comparer);}#pragma warning restore 612, 618List tokens = new List();List vals = new List();BytesRef spare;CharsRef charsSpare = new CharsRef();while ((spare = tfit.Next()) != null){charsSpare.Grow(spare.Length);UnicodeUtil.UTF8toUTF16(spare.Bytes, spare.Offset, spare.Length, charsSpare);tokens.Add(charsSpare.ToString());vals.Add(tfit.Weight);}autocomplete.BalancedTree(tokens.ToArray(), vals.ToArray(), 0, tokens.Count - 1, root);}" }, { "index": 7519, "before": "public void setAllowThin(boolean allow) {allowThin = allow;}", "after": "public virtual void SetAllowThin(bool allow){allowThin = allow;}" }, { "index": 7520, "before": "public PhRun(int phoneticTextFirstCharacterOffset,int realTextFirstCharacterOffset, int realTextLength) {this.phoneticTextFirstCharacterOffset = phoneticTextFirstCharacterOffset;this.realTextFirstCharacterOffset = realTextFirstCharacterOffset;this.realTextLength = realTextLength;}", "after": "public PhRun(int phoneticTextFirstCharacterOffset,int realTextFirstCharacterOffset, int realTextLength){this.phoneticTextFirstCharacterOffset = phoneticTextFirstCharacterOffset;this.realTextFirstCharacterOffset = realTextFirstCharacterOffset;this.realTextLength = realTextLength;}" }, { "index": 7521, "before": "public void append(String name, RevBlob blob) {append(name, REGULAR_FILE, blob);}", "after": "public virtual void Append(string name, RevBlob blob){Append(name, FileMode.REGULAR_FILE, blob);}" }, { "index": 7522, "before": "public CreateHostedZoneResult createHostedZone(CreateHostedZoneRequest request) {request = beforeClientExecution(request);return executeCreateHostedZone(request);}", "after": "public virtual CreateHostedZoneResponse CreateHostedZone(CreateHostedZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateHostedZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateHostedZoneResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7523, "before": "public ListFacetAttributesResult listFacetAttributes(ListFacetAttributesRequest request) {request = beforeClientExecution(request);return executeListFacetAttributes(request);}", "after": "public virtual ListFacetAttributesResponse ListFacetAttributes(ListFacetAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFacetAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFacetAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7524, "before": "public GetTrafficPolicyInstanceCountResult getTrafficPolicyInstanceCount(GetTrafficPolicyInstanceCountRequest request) {request = beforeClientExecution(request);return executeGetTrafficPolicyInstanceCount(request);}", "after": "public virtual GetTrafficPolicyInstanceCountResponse GetTrafficPolicyInstanceCount(GetTrafficPolicyInstanceCountRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTrafficPolicyInstanceCountRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTrafficPolicyInstanceCountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7525, "before": "public ModifyTrafficMirrorSessionResult modifyTrafficMirrorSession(ModifyTrafficMirrorSessionRequest request) {request = beforeClientExecution(request);return executeModifyTrafficMirrorSession(request);}", "after": "public virtual ModifyTrafficMirrorSessionResponse ModifyTrafficMirrorSession(ModifyTrafficMirrorSessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyTrafficMirrorSessionRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyTrafficMirrorSessionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7526, "before": "public DefaultClusterParameters describeDefaultClusterParameters(DescribeDefaultClusterParametersRequest request) {request = beforeClientExecution(request);return executeDescribeDefaultClusterParameters(request);}", "after": "public virtual DescribeDefaultClusterParametersResponse DescribeDefaultClusterParameters(DescribeDefaultClusterParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDefaultClusterParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDefaultClusterParametersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7527, "before": "public ConsoleWriter(OutputStream out) {super(out, true);lock = CONSOLE_LOCK;}", "after": "public ConsoleWriter(java.io.OutputStream @out) : base(@out, true){@lock = CONSOLE_LOCK;}" }, { "index": 7528, "before": "public MutableValue duplicate() {MutableValueBool v = new MutableValueBool();v.value = this.value;v.exists = this.exists;return v;}", "after": "public override MutableValue Duplicate(){MutableValueBool v = new MutableValueBool();v.Value = this.Value;v.Exists = this.Exists;return v;}" }, { "index": 7529, "before": "public PatternTokenizerFactory(Map args) {super(args);pattern = getPattern(args, PATTERN);group = getInt(args, GROUP, -1);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public PatternTokenizerFactory(IDictionary args): base(args){m_pattern = GetPattern(args, PATTERN);m_group = GetInt32(args, GROUP, -1);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 7530, "before": "public int addConditionalFormatting(CellRangeAddress[] regions,ConditionalFormattingRule rule1,ConditionalFormattingRule rule2) {return addConditionalFormatting(regions,(HSSFConditionalFormattingRule)rule1,(HSSFConditionalFormattingRule)rule2);}", "after": "public int AddConditionalFormatting(CellRangeAddress[] regions,IConditionalFormattingRule rule1,IConditionalFormattingRule rule2){return AddConditionalFormatting(regions,new HSSFConditionalFormattingRule[]{(HSSFConditionalFormattingRule)rule1, (HSSFConditionalFormattingRule)rule2});}" }, { "index": 7531, "before": "public Credential(String keyId, String secret, String securityToken) {this.accessKeyId = keyId;this.accessSecret = secret;this.securityToken = securityToken;this.refreshDate = new Date();}", "after": "public Credential(string keyId, string secret, string securityToken){AccessKeyId = keyId;AccessSecret = secret;SecurityToken = securityToken;RefreshDate = new DateTime();}" }, { "index": 7532, "before": "public void reset(int point) {this.point = point;ends.next = 0;starts.next = 0;}", "after": "public void Reset(int point){this.point = point;ends.count = 0;starts.count = 0;}" }, { "index": 7533, "before": "public BottomMarginRecord( RecordInputStream in ) {field_1_margin = in.readDouble();}", "after": "public BottomMarginRecord(RecordInputStream in1){field_1_margin = in1.ReadDouble();}" }, { "index": 7534, "before": "public final void removeFields(String name) {Iterator it = fields.iterator();while (it.hasNext()) {IndexableField field = it.next();if (field.name().equals(name)) {it.remove();}}}", "after": "public void RemoveFields(string name){for (int i = fields.Count - 1; i >= 0; i--){IIndexableField field = fields[i];if (field.Name.Equals(name, StringComparison.Ordinal)){fields.Remove(field);}}}" }, { "index": 7535, "before": "public Token LT(int k) {lazyInit();if ( k == 0 ) return null;if ( k < 0 ) return LB(-k);int i = p;int n = 1; while ( n(request, options);}" }, { "index": 7539, "before": "public String getResultPath() {return resultPath.getPath();}", "after": "public virtual string GetResultPath(){return resultPath.GetPath();}" }, { "index": 7540, "before": "public RefWriter(RefList refs) {this.refs = refs.asList();}", "after": "public RefWriter(ICollection refs){this.refs = RefComparator.Sort(refs);}" }, { "index": 7541, "before": "public HSSFWorkbook getStubHSSFWorkbook() {HSSFWorkbook wb = HSSFWorkbook.create(getStubWorkbook());for (BoundSheetRecord bsr : boundSheetRecords) {wb.createSheet(bsr.getSheetname());}return wb;}", "after": "public HSSFWorkbook GetStubHSSFWorkbook(){HSSFWorkbook wb = HSSFWorkbook.Create(GetStubWorkbook());foreach (BoundSheetRecord bsr in boundSheetRecords) {wb.CreateSheet(bsr.Sheetname);}return wb;}" }, { "index": 7542, "before": "public static SupBookRecord createExternalReferences(String url, String[] sheetNames) {return new SupBookRecord(url, sheetNames);}", "after": "public static SupBookRecord CreateExternalReferences(String url, String[] sheetNames){return new SupBookRecord(url, sheetNames);}" }, { "index": 7543, "before": "public int getLevelForDistance(double dist) {if (dist == 0)return maxLevels;final int level = GeohashUtils.lookupHashLenForWidthHeight(dist, dist);return Math.max(Math.min(level, maxLevels), 1);}", "after": "public override int GetLevelForDistance(double dist){if (dist == 0){return m_maxLevels;}for (int i = 0; i < m_maxLevels - 1; i++){if (dist > levelW[i] && dist > levelH[i]){return i + 1;}}return m_maxLevels;}" }, { "index": 7544, "before": "public MissingCellDummyRecord(int row, int column) {this.row = row;this.column = column;}", "after": "public MissingCellDummyRecord(int row, int column){this.row = row;this.column = column;}" }, { "index": 7545, "before": "public static TokenizerFactory forName(String name, Map args) {return loader.newInstance(name, args);}", "after": "public static TokenizerFactory ForName(string name, IDictionary args){return loader.NewInstance(name, args);}" }, { "index": 7546, "before": "public final ByteBuffer encode(CharBuffer in) throws CharacterCodingException {if (in.remaining() == 0) {return ByteBuffer.allocate(0);}reset();int length = (int) (in.remaining() * averageBytesPerChar);ByteBuffer output = ByteBuffer.allocate(length);CoderResult result = null;while (true) {result = encode(in, output, false);if (result==CoderResult.UNDERFLOW) {break;} else if (result==CoderResult.OVERFLOW) {output = allocateMore(output);continue;}checkCoderResult(result);}result = encode(in, output, true);checkCoderResult(result);while (true) {result = flush(output);if (result==CoderResult.UNDERFLOW) {output.flip();break;} else if (result==CoderResult.OVERFLOW) {output = allocateMore(output);continue;}checkCoderResult(result);output.flip();if (result.isMalformed()) {throw new MalformedInputException(result.length());} else if (result.isUnmappable()) {throw new UnmappableCharacterException(result.length());}break;}status = READY;finished = true;return output;}", "after": "public java.nio.ByteBuffer encode(java.nio.CharBuffer @in){if (@in.remaining() == 0){return java.nio.ByteBuffer.allocate(0);}reset();int length = (int)(@in.remaining() * _averageBytesPerChar);java.nio.ByteBuffer output = java.nio.ByteBuffer.allocate(length);java.nio.charset.CoderResult result = null;while (true){result = encode(@in, output, false);if (result == java.nio.charset.CoderResult.UNDERFLOW){break;}else{if (result == java.nio.charset.CoderResult.OVERFLOW){output = allocateMore(output);continue;}}checkCoderResult(result);}result = encode(@in, output, true);checkCoderResult(result);while (true){result = flush(output);if (result == java.nio.charset.CoderResult.UNDERFLOW){output.flip();break;}else{if (result == java.nio.charset.CoderResult.OVERFLOW){output = allocateMore(output);continue;}}checkCoderResult(result);output.flip();if (result.isMalformed()){throw new java.nio.charset.MalformedInputException(result.length());}else{if (result.isUnmappable()){throw new java.nio.charset.UnmappableCharacterException(result.length());}}break;}status = READY;finished = true;return output;}" }, { "index": 7547, "before": "public TextProgressMonitor(Writer out) {this.out = out;this.write = true;}", "after": "public TextProgressMonitor(TextWriter @out){this.@out = @out;this.write = true;}" }, { "index": 7548, "before": "public double get(String name, double dflt) {double vals[] = (double[]) valByRound.get(name);if (vals != null) {return vals[roundNumber % vals.length];}String sval = props.getProperty(name, \"\" + dflt);if (sval.indexOf(\":\") < 0) {return Double.parseDouble(sval);}int k = sval.indexOf(\":\");String colName = sval.substring(0, k);sval = sval.substring(k + 1);colForValByRound.put(name, colName);vals = propToDoubleArray(sval);valByRound.put(name, vals);return vals[roundNumber % vals.length];}", "after": "public virtual string Get(string name, string dflt){string[] vals;object temp;if (valByRound.TryGetValue(name, out temp) && temp != null){vals = (string[])temp;return vals[roundNumber % vals.Length];}string sval;if (!props.TryGetValue(name, out sval)){sval = dflt;}if (sval == null){return null;}if (sval.IndexOf(':') < 0){return sval;}else if (sval.IndexOf(\":\\\\\", StringComparison.Ordinal) >= 0 || sval.IndexOf(\":/\", StringComparison.Ordinal) >= 0){return sval;}int k = sval.IndexOf(':');string colName = sval.Substring(0, k - 0);sval = sval.Substring(k + 1);colForValByRound[name] = colName;vals = PropToStringArray(sval);valByRound[name] = vals;return vals[roundNumber % vals.Length];}" }, { "index": 7549, "before": "public LooseRef peel(ObjectIdRef newLeaf) {ObjectId peeledObjectId = newLeaf.getPeeledObjectId();ObjectId objectId = getObjectId();if (peeledObjectId != null) {return new LoosePeeledTag(snapShot, getName(),objectId, peeledObjectId);}return new LooseNonTag(snapShot, getName(), objectId);}", "after": "public RefDirectory.LooseRef Peel(ObjectIdRef newLeaf){if (newLeaf.GetPeeledObjectId() != null){return new RefDirectory.LoosePeeledTag(snapShot, GetName(), GetObjectId(), newLeaf.GetPeeledObjectId());}else{return new RefDirectory.LooseNonTag(snapShot, GetName(), GetObjectId());}}" }, { "index": 7550, "before": "public List call() throws GitAPIException {checkCallable();List resultRefs;try {Collection refs = new ArrayList<>();Ref head = repo.exactRef(HEAD);if (head != null && head.getLeaf().getName().equals(HEAD)) {refs.add(head);}if (listMode == null) {refs.addAll(repo.getRefDatabase().getRefsByPrefix(R_HEADS));} else if (listMode == ListMode.REMOTE) {refs.addAll(repo.getRefDatabase().getRefsByPrefix(R_REMOTES));} else {refs.addAll(repo.getRefDatabase().getRefsByPrefix(R_HEADS,R_REMOTES));}resultRefs = new ArrayList<>(filterRefs(refs));} catch (IOException e) {throw new JGitInternalException(e.getMessage(), e);}Collections.sort(resultRefs,(Ref o1, Ref o2) -> o1.getName().compareTo(o2.getName()));setCallable(false);return resultRefs;}", "after": "public override IList Call(){CheckCallable();IDictionary refList;try{if (listMode == ListMode.HEAD){refList = repo.RefDatabase.GetRefs(Constants.R_HEADS);}else{if (listMode == ListBranchCommand.ListMode.REMOTE){refList = repo.RefDatabase.GetRefs(Constants.R_REMOTES);}else{refList = new Dictionary(repo.RefDatabase.GetRefs(Constants.R_HEADS));refList.PutAll(repo.RefDatabase.GetRefs(Constants.R_REMOTES));}}}catch (IOException e){throw new JGitInternalException(e.Message, e);}IList resultRefs = new AList();Sharpen.Collections.AddAll(resultRefs, refList.Values);resultRefs.Sort(new _IComparer_111());SetCallable(false);return resultRefs;}" }, { "index": 7551, "before": "public void writeLong(long v) {writeContinueIfRequired(8);_ulrOutput.writeLong(v);}", "after": "public void WriteLong(long v){WriteContinueIfRequired(8);_ulrOutput.WriteLong(v);}" }, { "index": 7552, "before": "public UpdateSmsTemplateResult updateSmsTemplate(UpdateSmsTemplateRequest request) {request = beforeClientExecution(request);return executeUpdateSmsTemplate(request);}", "after": "public virtual UpdateSmsTemplateResponse UpdateSmsTemplate(UpdateSmsTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSmsTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSmsTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7553, "before": "public DeletePlacementGroupResult deletePlacementGroup(DeletePlacementGroupRequest request) {request = beforeClientExecution(request);return executeDeletePlacementGroup(request);}", "after": "public virtual DeletePlacementGroupResponse DeletePlacementGroup(DeletePlacementGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeletePlacementGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeletePlacementGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7554, "before": "public StartApplicationResult startApplication(StartApplicationRequest request) {request = beforeClientExecution(request);return executeStartApplication(request);}", "after": "public virtual StartApplicationResponse StartApplication(StartApplicationRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartApplicationRequestMarshaller.Instance;options.ResponseUnmarshaller = StartApplicationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7555, "before": "public void mark(int readlimit) throws IOException {synchronized (lock) {super.mark(readlimit);markedLineNumber = lineNumber;markedLastWasCR = lastWasCR;}}", "after": "public override void mark(int readlimit){throw new System.NotImplementedException();}" }, { "index": 7556, "before": "public int getPort() {return port;}", "after": "public virtual int GetPort(){return port;}" }, { "index": 7557, "before": "public int get() {if (position == limit) {throw new BufferUnderflowException();}return byteBuffer.getInt(position++ * SizeOf.INT);}", "after": "public override int get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return byteBuffer.getInt(_position++ * libcore.io.SizeOf.INT);}" }, { "index": 7558, "before": "public Entry pollLastEntry() {Node result = endpoint(false);if (result != null) {removeInternal(result);}return immutableCopy(result);}", "after": "public java.util.MapClass.Entry pollLastEntry(){java.util.TreeMap.Node result = this.endpoint(false);if (result != null){this._enclosing.removeInternal(result);}return this._enclosing.immutableCopy(result);}" }, { "index": 7559, "before": "public RebootRelationalDatabaseResult rebootRelationalDatabase(RebootRelationalDatabaseRequest request) {request = beforeClientExecution(request);return executeRebootRelationalDatabase(request);}", "after": "public virtual RebootRelationalDatabaseResponse RebootRelationalDatabase(RebootRelationalDatabaseRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebootRelationalDatabaseRequestMarshaller.Instance;options.ResponseUnmarshaller = RebootRelationalDatabaseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7560, "before": "public String toString() {return getClass().getName() + \" [\" + asFormulaString() + \"]\";}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(this.GetType().Name);sb.Append(\" [\");AsFormulaString(sb);sb.Append(\"]\");return sb.ToString();}" }, { "index": 7561, "before": "public BulkPublishResult bulkPublish(BulkPublishRequest request) {request = beforeClientExecution(request);return executeBulkPublish(request);}", "after": "public virtual BulkPublishResponse BulkPublish(BulkPublishRequest request){var options = new InvokeOptions();options.RequestMarshaller = BulkPublishRequestMarshaller.Instance;options.ResponseUnmarshaller = BulkPublishResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7562, "before": "public static String getNewRoleSessionName() {return \"aliyun-java-sdk-\" + System.currentTimeMillis();}", "after": "public static string GetNewRoleSessionName(){return \"aliyun-net-sdk-\" + DateTime.UtcNow.currentTimeMillis();}" }, { "index": 7563, "before": "public CompleteLifecycleActionResult completeLifecycleAction(CompleteLifecycleActionRequest request) {request = beforeClientExecution(request);return executeCompleteLifecycleAction(request);}", "after": "public virtual CompleteLifecycleActionResponse CompleteLifecycleAction(CompleteLifecycleActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CompleteLifecycleActionRequestMarshaller.Instance;options.ResponseUnmarshaller = CompleteLifecycleActionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7564, "before": "public ParseException generateParseException() {jj_expentries.clear();boolean[] la1tokens = new boolean[34];if (jj_kind >= 0) {la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 25; i++) {if (jj_la1[i] == jj_gen) {for (int j = 0; j < 32; j++) {if ((jj_la1_0[i] & (1<= 0){la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 28; i++){if (jj_la1[i] == jj_gen){for (int j = 0; j < 32; j++){if ((jj_la1_0[i] & (1 << j)) != 0){la1tokens[j] = true;}if ((jj_la1_1[i] & (1 << j)) != 0){la1tokens[32 + j] = true;}}}}for (int i = 0; i < 34; i++){if (la1tokens[i]){jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.Add(jj_expentry);}}jj_endpos = 0;Jj_rescan_token();Jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.Count][];for (int i = 0; i < jj_expentries.Count; i++){exptokseq[i] = jj_expentries[i];}return new ParseException(Token, exptokseq, StandardSyntaxParserConstants.TokenImage);}" }, { "index": 7565, "before": "public final ObjectToPack getDeltaBase() {if (deltaBase instanceof ObjectToPack)return (ObjectToPack) deltaBase;return null;}", "after": "public virtual NGit.Storage.Pack.ObjectToPack GetDeltaBase(){if (deltaBase is NGit.Storage.Pack.ObjectToPack){return (NGit.Storage.Pack.ObjectToPack)deltaBase;}return null;}" }, { "index": 7566, "before": "public GetQueryExecutionResult getQueryExecution(GetQueryExecutionRequest request) {request = beforeClientExecution(request);return executeGetQueryExecution(request);}", "after": "public virtual GetQueryExecutionResponse GetQueryExecution(GetQueryExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetQueryExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetQueryExecutionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7567, "before": "public int getFontIndex(FontRecord font) {for(int i=0; i<=numfonts; i++) {FontRecord thisFont =( FontRecord ) records.get((records.getFontpos() - (numfonts - 1)) + i);if(thisFont == font) {return (i > 3) ? i+1 : i;}}throw new IllegalArgumentException(\"Could not find that font!\");}", "after": "public int GetFontIndex(FontRecord font){for (int i = 0; i <= numfonts; i++){FontRecord thisFont =(FontRecord)records[(records.Fontpos - (numfonts - 1)) + i];if (thisFont == font){if (i > 3){return (i + 1);}return i;}}throw new ArgumentException(\"Could not find that font!\");}" }, { "index": 7568, "before": "public FieldInfo add(FieldInfo fi) {return add(fi, -1);}", "after": "public void Add(FieldInfos other){foreach (FieldInfo fieldInfo in other){Add(fieldInfo);}}" }, { "index": 7569, "before": "public DescribeDominantLanguageDetectionJobResult describeDominantLanguageDetectionJob(DescribeDominantLanguageDetectionJobRequest request) {request = beforeClientExecution(request);return executeDescribeDominantLanguageDetectionJob(request);}", "after": "public virtual DescribeDominantLanguageDetectionJobResponse DescribeDominantLanguageDetectionJob(DescribeDominantLanguageDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDominantLanguageDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDominantLanguageDetectionJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7570, "before": "public DescribeReservedInstancesModificationsResult describeReservedInstancesModifications() {return describeReservedInstancesModifications(new DescribeReservedInstancesModificationsRequest());}", "after": "public virtual DescribeReservedInstancesModificationsResponse DescribeReservedInstancesModifications(){return DescribeReservedInstancesModifications(new DescribeReservedInstancesModificationsRequest());}" }, { "index": 7571, "before": "public DiffCommand setOutputStream(OutputStream out) {this.out = out;return this;}", "after": "public virtual NGit.Api.DiffCommand SetOutputStream(OutputStream @out){this.@out = @out;return this;}" }, { "index": 7572, "before": "public ObjectId toObjectId() {return new ObjectId(this);}", "after": "public override ObjectId ToObjectId(){return new ObjectId(this);}" }, { "index": 7573, "before": "public static short[] getAllKnownRecordSIDs() {if (_allKnownRecordSIDs == null) {short[] results = new short[ _recordCreatorsById.size() ];int i = 0;for (Integer sid : _recordCreatorsById.keySet()) {results[i++] = sid.shortValue();}Arrays.sort(results);_allKnownRecordSIDs = results;}return _allKnownRecordSIDs.clone();}", "after": "public static short[] GetAllKnownRecordSIDs(){if (_allKnownRecordSIDs == null){short[] results = new short[_recordCreatorsById.Count];int i = 0;foreach (KeyValuePair kv in _recordCreatorsById){results[i++] = kv.Key;}Array.Sort(results);_allKnownRecordSIDs = results;}return (short[])_allKnownRecordSIDs.Clone();}" }, { "index": 7574, "before": "public PredictionContext getCachedContext(PredictionContext context) {if ( sharedContextCache==null ) return context;synchronized (sharedContextCache) {IdentityHashMap visited =new IdentityHashMap();return PredictionContext.getCachedContext(context,sharedContextCache,visited);}}", "after": "public PredictionContext getCachedContext(PredictionContext context){if (sharedContextCache == null) return context;lock (sharedContextCache){PredictionContext.IdentityHashMap visited =new PredictionContext.IdentityHashMap();return PredictionContext.GetCachedContext(context,sharedContextCache,visited);}}" }, { "index": 7575, "before": "public CreateStageResult createStage(CreateStageRequest request) {request = beforeClientExecution(request);return executeCreateStage(request);}", "after": "public virtual CreateStageResponse CreateStage(CreateStageRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStageRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7576, "before": "public static EditList singleton(Edit edit) {EditList res = new EditList(1);res.add(edit);return res;}", "after": "public static NGit.Diff.EditList Singleton(Edit edit){NGit.Diff.EditList res = new NGit.Diff.EditList(1);res.AddItem(edit);return res;}" }, { "index": 7577, "before": "public ModifySnapshotScheduleResult modifySnapshotSchedule(ModifySnapshotScheduleRequest request) {request = beforeClientExecution(request);return executeModifySnapshotSchedule(request);}", "after": "public virtual ModifySnapshotScheduleResponse ModifySnapshotSchedule(ModifySnapshotScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifySnapshotScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifySnapshotScheduleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7578, "before": "public boolean isEmpty() {return elements.length == 0;}", "after": "public virtual bool isEmpty(){return elements.Length == 0;}" }, { "index": 7579, "before": "public void copy(BytesRef bytes, BytesRef out) {int left = blockSize - upto;if (bytes.length > left || currentBlock==null) {if (currentBlock != null) {addBlock(currentBlock);didSkipBytes = true;}currentBlock = new byte[blockSize];upto = 0;left = blockSize;assert bytes.length <= blockSize;}out.bytes = currentBlock;out.offset = upto;out.length = bytes.length;System.arraycopy(bytes.bytes, bytes.offset, currentBlock, upto, bytes.length);upto += bytes.length;}", "after": "public void Copy(BytesRef bytes, BytesRef @out){int left = blockSize - upto;if (bytes.Length > left || currentBlock == null){if (currentBlock != null){blocks.Add(currentBlock);blockEnd.Add(upto);didSkipBytes = true;}currentBlock = new byte[blockSize];upto = 0;left = blockSize;Debug.Assert(bytes.Length <= blockSize);}@out.Bytes = currentBlock;@out.Offset = upto;@out.Length = bytes.Length;Array.Copy(bytes.Bytes, bytes.Offset, currentBlock, upto, bytes.Length);upto += bytes.Length;}" }, { "index": 7580, "before": "public void add(int location, E object) {listIterator(location).add(object);}", "after": "public override void add(int location, E @object){listIterator(location).add(@object);}" }, { "index": 7581, "before": "public CreateKeyPairRequest(String keyName) {setKeyName(keyName);}", "after": "public CreateKeyPairRequest(string keyName){_keyName = keyName;}" }, { "index": 7582, "before": "public boolean removeLastOccurrence(Object o) {Iterator iter = new ReverseLinkIterator(this);return removeOneOccurrence(o, iter);}", "after": "public virtual bool removeLastOccurrence(object o){java.util.Iterator iter = new java.util.LinkedList.ReverseLinkIterator(this, this);return removeOneOccurrence(o, iter);}" }, { "index": 7583, "before": "public int keyAt(int index) {return mKeys[index];}", "after": "public virtual int keyAt(int index){return mKeys[index];}" }, { "index": 7584, "before": "public synchronized void setHierarchical(String dimName, boolean v) {DimConfig ft = fieldTypes.get(dimName);if (ft == null) {ft = new DimConfig();fieldTypes.put(dimName, ft);}ft.hierarchical = v;}", "after": "public virtual void SetHierarchical(string dimName, bool v){lock (this){if (!fieldTypes.TryGetValue(dimName, out DimConfig fieldType)){fieldTypes[dimName] = new DimConfig { IsHierarchical = v };}else{fieldType.IsHierarchical = v;}}}" }, { "index": 7585, "before": "public ObjectId getOldObjectId() {return oldObjectId;}", "after": "public virtual ObjectId GetOldObjectId(){return oldObjectId;}" }, { "index": 7586, "before": "public static String toStringTree(final Tree t, final List ruleNames) {String s = Utils.escapeWhitespace(getNodeText(t, ruleNames), false);if ( t.getChildCount()==0 ) return s;StringBuilder buf = new StringBuilder();buf.append(\"(\");s = Utils.escapeWhitespace(getNodeText(t, ruleNames), false);buf.append(s);buf.append(' ');for (int i = 0; i0 ) buf.append(' ');buf.append(toStringTree(t.getChild(i), ruleNames));}buf.append(\")\");return buf.toString();}", "after": "public static string ToStringTree(ITree t, IList ruleNames){string s = Utils.EscapeWhitespace(GetNodeText(t, ruleNames), false);if (t.ChildCount == 0){return s;}StringBuilder buf = new StringBuilder();buf.Append(\"(\");s = Utils.EscapeWhitespace(GetNodeText(t, ruleNames), false);buf.Append(s);buf.Append(' ');for (int i = 0; i < t.ChildCount; i++){if (i > 0){buf.Append(' ');}buf.Append(ToStringTree(t.GetChild(i), ruleNames));}buf.Append(\")\");return buf.ToString();}" }, { "index": 7587, "before": "public NavigableSet headSet(E end, boolean endInclusive) {Comparator c = backingMap.comparator();if (c == null) {((Comparable) end).compareTo(end);} else {c.compare(end, end);}return new TreeSet(backingMap.headMap(end, endInclusive));}", "after": "public virtual java.util.NavigableSet headSet(E end, bool endInclusive){java.util.Comparator c = backingMap.comparator();if (c == null){((java.lang.Comparable)end).compareTo(end);}else{c.compare(end, end);}return new java.util.TreeSet(backingMap.headMap(end, endInclusive));}" }, { "index": 7588, "before": "public static ContentSource create(ObjectReader reader) {return new ObjectReaderSource(reader);}", "after": "public static ContentSource Create(ObjectReader reader){return new ContentSource.ObjectReaderSource(reader);}" }, { "index": 7589, "before": "public void setReuseDeltas(boolean reuseDeltas) {this.reuseDeltas = reuseDeltas;}", "after": "public virtual void SetReuseDeltas(bool reuseDeltas){this.reuseDeltas = reuseDeltas;}" }, { "index": 7590, "before": "public ListSkillsStoreSkillsByCategoryResult listSkillsStoreSkillsByCategory(ListSkillsStoreSkillsByCategoryRequest request) {request = beforeClientExecution(request);return executeListSkillsStoreSkillsByCategory(request);}", "after": "public virtual ListSkillsStoreSkillsByCategoryResponse ListSkillsStoreSkillsByCategory(ListSkillsStoreSkillsByCategoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSkillsStoreSkillsByCategoryRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSkillsStoreSkillsByCategoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7591, "before": "public final Ref getRef(String name) {return advertisedRefs.get(name);}", "after": "public Ref GetRef(string name){return advertisedRefs.Get(name);}" }, { "index": 7592, "before": "public ModifyInstanceGroupsResult modifyInstanceGroups(ModifyInstanceGroupsRequest request) {request = beforeClientExecution(request);return executeModifyInstanceGroups(request);}", "after": "public virtual ModifyInstanceGroupsResponse ModifyInstanceGroups(ModifyInstanceGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyInstanceGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyInstanceGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7593, "before": "public Object toObject() {return exists ? new Date(value) : null;}", "after": "public override object ToObject(){return Exists ? new DateTime(Value) as object : null;}" }, { "index": 7594, "before": "public DescribeDBInstanceAutomatedBackupsResult describeDBInstanceAutomatedBackups(DescribeDBInstanceAutomatedBackupsRequest request) {request = beforeClientExecution(request);return executeDescribeDBInstanceAutomatedBackups(request);}", "after": "public virtual DescribeDBInstanceAutomatedBackupsResponse DescribeDBInstanceAutomatedBackups(DescribeDBInstanceAutomatedBackupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBInstanceAutomatedBackupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBInstanceAutomatedBackupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7595, "before": "public PreviewAgentsResult previewAgents(PreviewAgentsRequest request) {request = beforeClientExecution(request);return executePreviewAgents(request);}", "after": "public virtual PreviewAgentsResponse PreviewAgents(PreviewAgentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PreviewAgentsRequestMarshaller.Instance;options.ResponseUnmarshaller = PreviewAgentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7596, "before": "public QueryGroupUsersRequest() {super(\"LinkFace\", \"2018-07-20\", \"QueryGroupUsers\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public QueryGroupUsersRequest(): base(\"LinkFace\", \"2018-07-20\", \"QueryGroupUsers\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 7597, "before": "public DescribeOptionGroupsResult describeOptionGroups(DescribeOptionGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeOptionGroups(request);}", "after": "public virtual DescribeOptionGroupsResponse DescribeOptionGroups(DescribeOptionGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeOptionGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeOptionGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7598, "before": "public UpdateGroupResult updateGroup(UpdateGroupRequest request) {request = beforeClientExecution(request);return executeUpdateGroup(request);}", "after": "public virtual UpdateGroupResponse UpdateGroup(UpdateGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7599, "before": "public UpdateSigningCertificateRequest(String certificateId, StatusType status) {setCertificateId(certificateId);setStatus(status.toString());}", "after": "public UpdateSigningCertificateRequest(string certificateId, StatusType status){_certificateId = certificateId;_status = status;}" }, { "index": 7600, "before": "public CreateInstancesResult createInstances(CreateInstancesRequest request) {request = beforeClientExecution(request);return executeCreateInstances(request);}", "after": "public virtual CreateInstancesResponse CreateInstances(CreateInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7601, "before": "public static int getRecordSizeForBlockCount(int blockCount) {return 20 + 4 * blockCount;}", "after": "public static int GetRecordSizeForBlockCount(int blockCount){return 20 + (4 * blockCount);}" }, { "index": 7602, "before": "public StopStreamEncryptionResult stopStreamEncryption(StopStreamEncryptionRequest request) {request = beforeClientExecution(request);return executeStopStreamEncryption(request);}", "after": "public virtual StopStreamEncryptionResponse StopStreamEncryption(StopStreamEncryptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopStreamEncryptionRequestMarshaller.Instance;options.ResponseUnmarshaller = StopStreamEncryptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7603, "before": "public GetPredictionResult getPrediction(GetPredictionRequest request) {request = beforeClientExecution(request);return executeGetPrediction(request);}", "after": "public virtual GetPredictionResponse GetPrediction(GetPredictionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPredictionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPredictionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7604, "before": "public ModifyWorkspacePropertiesResult modifyWorkspaceProperties(ModifyWorkspacePropertiesRequest request) {request = beforeClientExecution(request);return executeModifyWorkspaceProperties(request);}", "after": "public virtual ModifyWorkspacePropertiesResponse ModifyWorkspaceProperties(ModifyWorkspacePropertiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyWorkspacePropertiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyWorkspacePropertiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7605, "before": "public void copyFrom(TermState _other) {assert _other instanceof BlockTermState : \"can not copy from \" + _other.getClass().getName();BlockTermState other = (BlockTermState) _other;super.copyFrom(_other);docFreq = other.docFreq;totalTermFreq = other.totalTermFreq;termBlockOrd = other.termBlockOrd;blockFilePointer = other.blockFilePointer;}", "after": "public override void CopyFrom(TermState other){Debug.Assert(other is BlockTermState, \"can not copy from \" + other.GetType().Name);BlockTermState other2 = (BlockTermState)other;base.CopyFrom(other);DocFreq = other2.DocFreq;TotalTermFreq = other2.TotalTermFreq;TermBlockOrd = other2.TermBlockOrd;BlockFilePointer = other2.BlockFilePointer;}" }, { "index": 7606, "before": "public String getLine() {return command.getLine();}", "after": "public virtual string GetLine(){return line;}" }, { "index": 7607, "before": "public static void release(Inflater i) {if (i != null) {i.reset();if (releaseImpl(i))i.end();}}", "after": "public static void Release(Inflater i){if (i != null){i.Reset();if (ReleaseImpl(i)){i.Finish();}}}" }, { "index": 7608, "before": "public EnumSet getRevSort() {return sorting.clone();}", "after": "public virtual EnumSet GetRevSort(){return sorting.Clone();}" }, { "index": 7609, "before": "public boolean removeFetchRefSpec(RefSpec s) {return fetch.remove(s);}", "after": "public virtual bool RemoveFetchRefSpec(RefSpec s){return fetch.Remove(s);}" }, { "index": 7610, "before": "public CharBuffer put(char c) {if (position == limit) {throw new BufferOverflowException();}backingArray[offset + position++] = c;return this;}", "after": "public override java.nio.CharBuffer put(char c){if (_position == _limit){throw new java.nio.BufferOverflowException();}backingArray[offset + _position++] = c;return this;}" }, { "index": 7611, "before": "public int getRate() {return (perMin ? rate : 60*rate);}", "after": "public virtual int GetRate(){return (perMin ? rate : 60 * rate);}" }, { "index": 7612, "before": "public DescribeDBParametersRequest(String dBParameterGroupName) {setDBParameterGroupName(dBParameterGroupName);}", "after": "public DescribeDBParametersRequest(string dbParameterGroupName){_dbParameterGroupName = dbParameterGroupName;}" }, { "index": 7613, "before": "public DeleteNodeResult deleteNode(DeleteNodeRequest request) {request = beforeClientExecution(request);return executeDeleteNode(request);}", "after": "public virtual DeleteNodeResponse DeleteNode(DeleteNodeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNodeRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNodeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7614, "before": "@Override public List subList(int from, int to) {Slice slice = this.slice;if (from < 0 || from > to || to > size()) {throw new IndexOutOfBoundsException(\"from=\" + from + \", to=\" + to +\", list size=\" + size());}return new CowSubList(slice.expectedElements, slice.from + from, slice.from + to);}", "after": "public virtual java.util.List subList(int from, int to){object[] snapshot = elements;if (from < 0 || from > to || to > snapshot.Length){throw new System.IndexOutOfRangeException(\"from=\" + from + \", to=\" + to + \", list size=\"+ snapshot.Length);}return new java.util.concurrent.CopyOnWriteArrayList.CowSubList(this, snapshot, from, to);}" }, { "index": 7615, "before": "public CompositeReaderContext build() {return (CompositeReaderContext) build(null, reader, 0, 0);}", "after": "public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}" }, { "index": 7616, "before": "public Cluster rebootCluster(RebootClusterRequest request) {request = beforeClientExecution(request);return executeRebootCluster(request);}", "after": "public virtual RebootClusterResponse RebootCluster(RebootClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebootClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = RebootClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7617, "before": "public void setBorder(boolean value){field_1_options = border.setShortBoolean(field_1_options, value);}", "after": "public void SetBorder(bool value){field_1_options = border.SetShortBoolean(field_1_options, value);}" }, { "index": 7618, "before": "public DescribeExportTasksResult describeExportTasks(DescribeExportTasksRequest request) {request = beforeClientExecution(request);return executeDescribeExportTasks(request);}", "after": "public virtual DescribeExportTasksResponse DescribeExportTasks(DescribeExportTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeExportTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeExportTasksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7619, "before": "public SeriesLabelsRecord clone() {return copy();}", "after": "public override Object Clone(){SeriesLabelsRecord rec = new SeriesLabelsRecord();rec.field_1_formatFlags = field_1_formatFlags;return rec;}" }, { "index": 7620, "before": "public final String getShortMessage() {byte[] raw = buffer;int msgB = RawParseUtils.tagMessage(raw, 0);if (msgB < 0) {return \"\"; }int msgE = RawParseUtils.endOfParagraph(raw, msgB);String str = RawParseUtils.decode(guessEncoding(), raw, msgB, msgE);if (RevCommit.hasLF(raw, msgB, msgE)) {str = StringUtils.replaceLineBreaksWithSpace(str);}return str;}", "after": "public string GetShortMessage(){byte[] raw = buffer;int msgB = RawParseUtils.TagMessage(raw, 0);if (msgB < 0){return string.Empty;}Encoding enc = RawParseUtils.ParseEncoding(raw);int msgE = RawParseUtils.EndOfParagraph(raw, msgB);string str = RawParseUtils.Decode(enc, raw, msgB, msgE);if (RevCommit.HasLF(raw, msgB, msgE)){str = str.Replace('\\n', ' ');}return str;}" }, { "index": 7621, "before": "public String toString() {StringBuilder r = new StringBuilder();if (isOperatorInfix()) {infixToString(r);} else {prefixToString(r);}weightToString(r);return r.toString();}", "after": "public override string ToString(){StringBuilder r = new StringBuilder();if (IsOperatorInfix){InfixToString(r);}else{PrefixToString(r);}WeightToString(r);return r.ToString();}" }, { "index": 7622, "before": "public String getPreferredAuthentications() {return preferredAuthentications;}", "after": "public virtual string GetPreferredAuthentications(){return preferredAuthentications;}" }, { "index": 7623, "before": "public int size() {return elements.length;}", "after": "public virtual int size(){return elements.Length;}" }, { "index": 7624, "before": "public ListPartnerEventSourcesResult listPartnerEventSources(ListPartnerEventSourcesRequest request) {request = beforeClientExecution(request);return executeListPartnerEventSources(request);}", "after": "public virtual ListPartnerEventSourcesResponse ListPartnerEventSources(ListPartnerEventSourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPartnerEventSourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPartnerEventSourcesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7625, "before": "public void write(byte[] buffer, int offset, int length) {Arrays.checkOffsetAndCount(buffer.length, offset, length);synchronized (this) {if (out == null) {setError();return;}try {out.write(buffer, offset, length);if (autoFlush) {flush();}} catch (IOException e) {setError();}}}", "after": "public override void write(byte[] buffer, int offset, int length){java.util.Arrays.checkOffsetAndCount(buffer.Length, offset, length);lock (this){if (@out == null){setError();return;}try{@out.write(buffer, offset, length);if (autoFlush){flush();}}catch (System.IO.IOException){setError();}}}" }, { "index": 7626, "before": "public ListRegisteredTagsRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"ListRegisteredTags\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public ListRegisteredTagsRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"ListRegisteredTags\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 7627, "before": "public DeleteDBSubnetGroupResult deleteDBSubnetGroup(DeleteDBSubnetGroupRequest request) {request = beforeClientExecution(request);return executeDeleteDBSubnetGroup(request);}", "after": "public virtual DeleteDBSubnetGroupResponse DeleteDBSubnetGroup(DeleteDBSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBSubnetGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7628, "before": "public PacketLineOut(OutputStream outputStream) {out = outputStream;lenbuffer = new byte[5];flushOnEnd = true;}", "after": "public PacketLineOut(OutputStream outputStream){@out = outputStream;lenbuffer = new byte[5];flushOnEnd = true;}" }, { "index": 7629, "before": "public void appendDebugInfo(StringBuilder sb) {sb.append('(');sb.append( \"isxvi=\").append(HexDump.shortToHex(_isxvi));sb.append(\" isxvd=\").append(HexDump.shortToHex(_isxvd));sb.append(\" idObj=\").append(HexDump.shortToHex(_idObj));sb.append(')');}", "after": "public void AppendDebugInfo(StringBuilder sb){sb.Append('(');sb.Append(\"isxvi=\").Append(HexDump.ShortToHex(_isxvi));sb.Append(\" isxvd=\").Append(HexDump.ShortToHex(_isxvd));sb.Append(\" idObj=\").Append(HexDump.ShortToHex(_idObj));sb.Append(')');}" }, { "index": 7630, "before": "public InterfaceHdrRecord(RecordInputStream in) {_codepage = in.readShort();}", "after": "public InterfaceHdrRecord(RecordInputStream in1){_codepage = in1.ReadShort();}" }, { "index": 7631, "before": "public DescribeVaultRequest(String accountId, String vaultName) {setAccountId(accountId);setVaultName(vaultName);}", "after": "public DescribeVaultRequest(string accountId, string vaultName){_accountId = accountId;_vaultName = vaultName;}" }, { "index": 7632, "before": "public void add(String match, String replacement) {if (match.length() == 0 ){throw new IllegalArgumentException(\"cannot match the empty string\");}if (pendingPairs.containsKey(match)) {throw new IllegalArgumentException(\"match \\\"\" + match + \"\\\" was already added\");}pendingPairs.put(match, replacement);}", "after": "public virtual void Add(string match, string replacement){if (match.Length == 0){throw new System.ArgumentException(\"cannot match the empty string\");}if (pendingPairs.ContainsKey(match)){throw new System.ArgumentException(\"match \\\"\" + match + \"\\\" was already added\");}pendingPairs[match] = replacement;}" }, { "index": 7633, "before": "public boolean equals(Object o) {if (this == o) {return true;}else if ( !(o instanceof ArrayPredictionContext) ) {return false;}if ( this.hashCode() != o.hashCode() ) {return false; }ArrayPredictionContext a = (ArrayPredictionContext)o;return Arrays.equals(returnStates, a.returnStates) &&Arrays.equals(parents, a.parents);}", "after": "public override bool Equals(Object o){if (this == o){return true;}else if (!(o is ArrayPredictionContext)){return false;}if (this.GetHashCode() != o.GetHashCode()){return false; }ArrayPredictionContext a = (ArrayPredictionContext)o;return Arrays.Equals(returnStates, a.returnStates) &&Arrays.Equals(parents, a.parents);}" }, { "index": 7634, "before": "public byte[] toArray() {if (arrays.isEmpty()) {return null;} else if (arrays.size() > 1) {int totalLength = 0;for (byte[] array : arrays) {totalLength += array.length;}byte[] concatenated = new byte[totalLength];int destPos = 0;for (byte[] array : arrays) {System.arraycopy(array, 0, concatenated, destPos, array.length);destPos += array.length;}arrays.clear();arrays.add(concatenated);}return arrays.get(0);}", "after": "public byte[] ToArray(){if (arrays.Count==0){return null;}else if (arrays.Count > 1){int totalLength = 0;foreach (byte[] array in arrays){totalLength += array.Length;}byte[] concatenated = new byte[totalLength];int destPos = 0;foreach (byte[] array in arrays){Array.Copy(array, 0, concatenated, destPos, array.Length);destPos += array.Length;}arrays.Clear();arrays.Add(concatenated);}return arrays[(0)];}" }, { "index": 7635, "before": "public void serialize(LittleEndianOutput out) {int nItems = field_1_seriesNumbers.length;out.writeShort(nItems);for (int i = 0; i < nItems; i++) {out.writeShort(field_1_seriesNumbers[i]);}}", "after": "public override void Serialize(ILittleEndianOutput out1){int nItems = field_1_seriesNumbers.Length;out1.WriteShort(nItems);for (int i = 0; i < nItems; i++){out1.WriteShort(field_1_seriesNumbers[i]);}}" }, { "index": 7636, "before": "public boolean removePushURI(URIish toRemove) {return pushURIs.remove(toRemove);}", "after": "public virtual bool RemovePushURI(URIish toRemove){return pushURIs.Remove(toRemove);}" }, { "index": 7637, "before": "public StringBuilder append(String str) {append0(str);return this;}", "after": "public java.lang.StringBuilder append(string str){append0(str);return this;}" }, { "index": 7638, "before": "public synchronized void close() {flush();if (out != null) {try {out.close();out = null;} catch (IOException e) {setError();}}}", "after": "public override void close(){lock (this){flush();if (@out != null){try{@out.close();@out = null;}catch (System.IO.IOException){setError();}}}}" }, { "index": 7639, "before": "public final BytesRef[] getBinaryValues(String name) {final List result = new ArrayList<>();for (IndexableField field : fields) {if (field.name().equals(name)) {final BytesRef bytes = field.binaryValue();if (bytes != null) {result.add(bytes);}}}return result.toArray(new BytesRef[result.size()]);}", "after": "public BytesRef[] GetBinaryValues(string name){var result = new List();foreach (IIndexableField field in fields){if (field.Name.Equals(name, StringComparison.Ordinal)){BytesRef bytes = field.GetBinaryValue();if (bytes != null){result.Add(bytes);}}}return result.ToArray();}" }, { "index": 7640, "before": "public final void backup(int amount) {bufferPosition -= amount;}", "after": "public void BackUp(int amount){bufferPosition -= amount;}" }, { "index": 7641, "before": "public void addChildRecord(EscherRecord childRecord) {getChildRecords().add( childRecord );}", "after": "public void AddChildRecord(EscherRecord childRecord){ChildRecords.Add(childRecord);}" }, { "index": 7642, "before": "public DeleteExpressionResult deleteExpression(DeleteExpressionRequest request) {request = beforeClientExecution(request);return executeDeleteExpression(request);}", "after": "public virtual DeleteExpressionResponse DeleteExpression(DeleteExpressionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteExpressionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteExpressionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7643, "before": "public ReorderReceiptRuleSetResult reorderReceiptRuleSet(ReorderReceiptRuleSetRequest request) {request = beforeClientExecution(request);return executeReorderReceiptRuleSet(request);}", "after": "public virtual ReorderReceiptRuleSetResponse ReorderReceiptRuleSet(ReorderReceiptRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReorderReceiptRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = ReorderReceiptRuleSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7644, "before": "public FtrHeader(RecordInputStream in) {recordType = in.readShort();grbitFrt = in.readShort();associatedRange = new CellRangeAddress(in);}", "after": "public FtrHeader(RecordInputStream in1){recordType = in1.ReadShort();grbitFrt = in1.ReadShort();reserved = new byte[8];in1.Read(reserved, 0, 8);}" }, { "index": 7645, "before": "public PutVoiceConnectorProxyResult putVoiceConnectorProxy(PutVoiceConnectorProxyRequest request) {request = beforeClientExecution(request);return executePutVoiceConnectorProxy(request);}", "after": "public virtual PutVoiceConnectorProxyResponse PutVoiceConnectorProxy(PutVoiceConnectorProxyRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutVoiceConnectorProxyRequestMarshaller.Instance;options.ResponseUnmarshaller = PutVoiceConnectorProxyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7646, "before": "public DescribeDataSourcePermissionsResult describeDataSourcePermissions(DescribeDataSourcePermissionsRequest request) {request = beforeClientExecution(request);return executeDescribeDataSourcePermissions(request);}", "after": "public virtual DescribeDataSourcePermissionsResponse DescribeDataSourcePermissions(DescribeDataSourcePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDataSourcePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDataSourcePermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7647, "before": "public final char get(int index) {checkIndex(index);return backingArray[offset + index];}", "after": "public sealed override char get(int index){checkIndex(index);return backingArray[offset + index];}" }, { "index": 7648, "before": "public final void writeByte(int val) throws IOException {out.write(val);written++;}", "after": "public virtual void writeByte(int val){throw new System.NotImplementedException();}" }, { "index": 7649, "before": "public ListTablesResult listTables(String exclusiveStartTableName) {return listTables(new ListTablesRequest().withExclusiveStartTableName(exclusiveStartTableName));}", "after": "public virtual ListTablesResponse ListTables(string exclusiveStartTableName){var request = new ListTablesRequest();request.ExclusiveStartTableName = exclusiveStartTableName;return ListTables(request);}" }, { "index": 7650, "before": "public String toString() {return \"Cell(readerIndex=\" + readerIndex + \" nodeID=\" + index.getNodeID()+ \" isLeaf=\" + index.isLeafNode() + \" distanceSquared=\" + distanceSquared + \")\";}", "after": "public override string ToString(){return TokenString + (IsLeaf ? ((char)LEAF_BYTE).ToString() : string.Empty);}" }, { "index": 7651, "before": "public Result getResult() {return status;}", "after": "public virtual RefUpdate.Result GetResult(){return result;}" }, { "index": 7652, "before": "public int addConditionalFormatting(CellRangeAddress[] regions,HSSFConditionalFormattingRule rule1,HSSFConditionalFormattingRule rule2) {return addConditionalFormatting(regions,new HSSFConditionalFormattingRule[] { rule1, rule2 });}", "after": "public int AddConditionalFormatting(CellRangeAddress[] regions,IConditionalFormattingRule rule1,IConditionalFormattingRule rule2){return AddConditionalFormatting(regions,new HSSFConditionalFormattingRule[]{(HSSFConditionalFormattingRule)rule1, (HSSFConditionalFormattingRule)rule2});}" }, { "index": 7653, "before": "public DescribeImageBuildersResult describeImageBuilders(DescribeImageBuildersRequest request) {request = beforeClientExecution(request);return executeDescribeImageBuilders(request);}", "after": "public virtual DescribeImageBuildersResponse DescribeImageBuilders(DescribeImageBuildersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeImageBuildersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeImageBuildersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7654, "before": "public DescribeMountTargetsResult describeMountTargets(DescribeMountTargetsRequest request) {request = beforeClientExecution(request);return executeDescribeMountTargets(request);}", "after": "public virtual DescribeMountTargetsResponse DescribeMountTargets(DescribeMountTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeMountTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeMountTargetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7655, "before": "public UpdateClientCertificateResult updateClientCertificate(UpdateClientCertificateRequest request) {request = beforeClientExecution(request);return executeUpdateClientCertificate(request);}", "after": "public virtual UpdateClientCertificateResponse UpdateClientCertificate(UpdateClientCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateClientCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateClientCertificateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7656, "before": "public String getFormatString(CellValueRecordInterface cell) {int formatIndex = getFormatIndex(cell);if (formatIndex == -1) {return null;}return getFormatString(formatIndex);}", "after": "public String GetFormatString(CellValueRecordInterface cell){int formatIndex = GetFormatIndex(cell);if (formatIndex == -1){return null;}return GetFormatString(formatIndex);}" }, { "index": 7657, "before": "public void clear() {w1 = 0;w2 = 0;w3 = 0;w4 = 0;w5 = 0;}", "after": "public virtual void Clear(){w1 = 0;w2 = 0;w3 = 0;w4 = 0;w5 = 0;}" }, { "index": 7658, "before": "public boolean equals( Object o ) {return o instanceof TurkishStemmer;}", "after": "public override bool Equals(object o){return o is TurkishStemmer;}" }, { "index": 7659, "before": "public void disableRefLog() {customRefLog = true;refLogMessage = null;refLogIncludeResult = false;}", "after": "public virtual void DisableRefLog(){refLogMessage = null;refLogIncludeResult = false;}" }, { "index": 7660, "before": "public ListPublicKeysResult listPublicKeys(ListPublicKeysRequest request) {request = beforeClientExecution(request);return executeListPublicKeys(request);}", "after": "public virtual ListPublicKeysResponse ListPublicKeys(ListPublicKeysRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPublicKeysRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPublicKeysResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7661, "before": "public CreateDhcpOptionsResult createDhcpOptions(CreateDhcpOptionsRequest request) {request = beforeClientExecution(request);return executeCreateDhcpOptions(request);}", "after": "public virtual CreateDhcpOptionsResponse CreateDhcpOptions(CreateDhcpOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDhcpOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDhcpOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7662, "before": "public TokenStream create(TokenStream input) {return new ASCIIFoldingFilter(input, preserveOriginal);}", "after": "public override TokenStream Create(TokenStream input){return new ASCIIFoldingFilter(input, preserveOriginal);}" }, { "index": 7663, "before": "public BlockList(int capacity) {int dirSize = toDirectoryIndex(capacity);if ((capacity & BLOCK_MASK) != 0 || dirSize == 0)dirSize++;directory = BlockList. newDirectory(dirSize);directory[0] = BlockList. newBlock();tailBlock = directory[0];}", "after": "public BlockList(int capacity){int dirSize = ToDirectoryIndex(capacity);if ((capacity & BLOCK_MASK) != 0 || dirSize == 0){dirSize++;}directory = NGit.Util.BlockList.NewDirectory(dirSize);directory[0] = NGit.Util.BlockList.NewBlock();tailBlock = directory[0];}" }, { "index": 7664, "before": "@Override public int size() {return Impl.this.size();}", "after": "public override int size(){return this._enclosing._size;}" }, { "index": 7665, "before": "public void addCellRangeAddress(int firstRow, int firstCol, int lastRow, int lastCol) {CellRangeAddress region = new CellRangeAddress(firstRow, lastRow, firstCol, lastCol);addCellRangeAddress(region);}", "after": "public void AddCellRangeAddress(int firstRow, int firstCol, int lastRow, int lastCol){CellRangeAddress region = new CellRangeAddress(firstRow, lastRow, firstCol, lastCol);AddCellRangeAddress(region);}" }, { "index": 7666, "before": "public DescribeCacheEngineVersionsResult describeCacheEngineVersions() {return describeCacheEngineVersions(new DescribeCacheEngineVersionsRequest());}", "after": "public virtual DescribeCacheEngineVersionsResponse DescribeCacheEngineVersions(){return DescribeCacheEngineVersions(new DescribeCacheEngineVersionsRequest());}" }, { "index": 7667, "before": "public DeleteEndpointConfigResult deleteEndpointConfig(DeleteEndpointConfigRequest request) {request = beforeClientExecution(request);return executeDeleteEndpointConfig(request);}", "after": "public virtual DeleteEndpointConfigResponse DeleteEndpointConfig(DeleteEndpointConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEndpointConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEndpointConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7668, "before": "public String findSheetFirstNameFromExternSheet(int externSheetIndex){int indexToSheet = linkTable.getFirstInternalSheetIndexForExtIndex(externSheetIndex);return findSheetNameFromIndex(indexToSheet);}", "after": "public String FindSheetFirstNameFromExternSheet(int externSheetIndex){int indexToSheet = linkTable.GetFirstInternalSheetIndexForExtIndex(externSheetIndex);return FindSheetNameFromIndex(indexToSheet);}" }, { "index": 7669, "before": "public void copy(MutableValue source) {MutableValueBool s = (MutableValueBool) source;value = s.value;exists = s.exists;}", "after": "public override void Copy(MutableValue source){MutableValueBool s = (MutableValueBool)source;Value = s.Value;Exists = s.Exists;}" }, { "index": 7670, "before": "public void setChild(QueryNode child) {List list = new ArrayList<>();list.add(child);this.set(list);}", "after": "public virtual void SetChild(IQueryNode child){List list = new List();list.Add(child);this.Set(list);}" }, { "index": 7671, "before": "public void setDateResolution(DateTools.Resolution dateResolution) {getQueryConfigHandler().set(ConfigurationKeys.DATE_RESOLUTION, dateResolution);}", "after": "public virtual void SetDateResolution(DateTools.Resolution dateResolution){QueryConfigHandler.Set(ConfigurationKeys.DATE_RESOLUTION, dateResolution);}" }, { "index": 7672, "before": "public static boolean contains(T[] array, T value) {for (T element : array) {if (element == null) {if (value == null) return true;} else {if (value != null && element.equals(value)) return true;}}return false;}", "after": "public static bool contains(int[] array, int value){foreach (int element in array){if (element == value){return true;}}return false;}" }, { "index": 7673, "before": "public ListLogPatternsResult listLogPatterns(ListLogPatternsRequest request) {request = beforeClientExecution(request);return executeListLogPatterns(request);}", "after": "public virtual ListLogPatternsResponse ListLogPatterns(ListLogPatternsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListLogPatternsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListLogPatternsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7674, "before": "public BatchDeleteImageResult batchDeleteImage(BatchDeleteImageRequest request) {request = beforeClientExecution(request);return executeBatchDeleteImage(request);}", "after": "public virtual BatchDeleteImageResponse BatchDeleteImage(BatchDeleteImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDeleteImageRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDeleteImageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7675, "before": "public void seekExact(long ord) {throw new UnsupportedOperationException();}", "after": "public override void SeekExact(long ord){throw new NotSupportedException();}" }, { "index": 7676, "before": "public RightMarginRecord( RecordInputStream in ) {field_1_margin = in.readDouble();}", "after": "public RightMarginRecord(RecordInputStream in1){field_1_margin = in1.ReadDouble();}" }, { "index": 7677, "before": "public boolean isAutoDetecting() {return false;}", "after": "public virtual bool isAutoDetecting(){return false;}" }, { "index": 7678, "before": "public RestorePhoneNumberResult restorePhoneNumber(RestorePhoneNumberRequest request) {request = beforeClientExecution(request);return executeRestorePhoneNumber(request);}", "after": "public virtual RestorePhoneNumberResponse RestorePhoneNumber(RestorePhoneNumberRequest request){var options = new InvokeOptions();options.RequestMarshaller = RestorePhoneNumberRequestMarshaller.Instance;options.ResponseUnmarshaller = RestorePhoneNumberResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7679, "before": "public TestRenderTemplateResult testRenderTemplate(TestRenderTemplateRequest request) {request = beforeClientExecution(request);return executeTestRenderTemplate(request);}", "after": "public virtual TestRenderTemplateResponse TestRenderTemplate(TestRenderTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = TestRenderTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = TestRenderTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7680, "before": "public RevTag lookupTag(AnyObjectId id) {RevTag c = (RevTag) objects.get(id);if (c == null) {c = new RevTag(id);objects.add(c);}return c;}", "after": "public virtual RevTag LookupTag(AnyObjectId id){RevTag c = (RevTag)objects.Get(id);if (c == null){c = new RevTag(id);objects.Add(c);}return c;}" }, { "index": 7681, "before": "public Query getQuery(Element e) throws ParserException {String text = DOMUtils.getText(e);try {Query q = null;if (unSafeParser != null) {synchronized (unSafeParser) {q = unSafeParser.parse(text);}} else {String fieldName = DOMUtils.getAttribute(e, \"fieldName\", defaultField);QueryParser parser = createQueryParser(fieldName, analyzer);q = parser.parse(text);}float boost = DOMUtils.getAttribute(e, \"boost\", 1.0f);return new BoostQuery(q, boost);} catch (ParseException e1) {throw new ParserException(e1.getMessage());}}", "after": "public virtual Query GetQuery(XmlElement e){string text = DOMUtils.GetText(e);try{Query q = null;if (unSafeParser != null){lock (unSafeParser){q = unSafeParser.Parse(text);}}else{string fieldName = DOMUtils.GetAttribute(e, \"fieldName\", defaultField);QueryParser parser = CreateQueryParser(fieldName, analyzer);q = parser.Parse(text);}q.Boost = DOMUtils.GetAttribute(e, \"boost\", 1.0f);return q;}catch (ParseException e1){throw new ParserException(e1.Message);}}" }, { "index": 7682, "before": "public CreateNetworkAclResult createNetworkAcl(CreateNetworkAclRequest request) {request = beforeClientExecution(request);return executeCreateNetworkAcl(request);}", "after": "public virtual CreateNetworkAclResponse CreateNetworkAcl(CreateNetworkAclRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNetworkAclRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNetworkAclResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7683, "before": "public ThreeWayMerger newMerger(Repository db, boolean inCore) {return newMerger(db);}", "after": "public override Merger NewMerger(Repository db, bool inCore){return ((ThreeWayMerger)NewMerger(db));}" }, { "index": 7684, "before": "public BufferedWriter(Writer out, int size) {super(out);if (size <= 0) {throw new IllegalArgumentException(\"size <= 0\");}this.out = out;this.buf = new char[size];}", "after": "public BufferedWriter(java.io.Writer @out, int size) : base(@out){if (size <= 0){throw new System.ArgumentException(\"size <= 0\");}this.@out = @out;this.buf = new char[size];}" }, { "index": 7685, "before": "public ListConfigurationHistoryResult listConfigurationHistory(ListConfigurationHistoryRequest request) {request = beforeClientExecution(request);return executeListConfigurationHistory(request);}", "after": "public virtual ListConfigurationHistoryResponse ListConfigurationHistory(ListConfigurationHistoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListConfigurationHistoryRequestMarshaller.Instance;options.ResponseUnmarshaller = ListConfigurationHistoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7686, "before": "public Request marshall(GetChangeRequest getChangeRequest) {if (getChangeRequest == null) {throw new SdkClientException(\"Invalid argument passed to marshall(...)\");}Request request = new DefaultRequest(getChangeRequest, \"AmazonRoute53\");request.setHttpMethod(HttpMethodName.GET);String uriResourcePath = \"/2013-04-01/change/{Id}\";uriResourcePath = com.amazonaws.transform.PathMarshallers.NON_GREEDY.marshall(uriResourcePath, \"Id\", getChangeRequest.getId());request.setResourcePath(uriResourcePath);return request;}", "after": "public IRequest Marshall(GetChangeRequest publicRequest){var request = new DefaultRequest(publicRequest, \"Amazon.Route53\");request.HttpMethod = \"GET\";if (!publicRequest.IsSetId())throw new AmazonRoute53Exception(\"Request object does not have required field Id set\");request.AddPathResource(\"{Id}\", StringUtils.FromString(publicRequest.Id));request.ResourcePath = \"/2013-04-01/change/{Id}\";request.MarshallerVersion = 2;return request;}" }, { "index": 7687, "before": "public byte[] getCachedBytes() throws LargeObjectException {throw new LargeObjectException(id);}", "after": "public override byte[] GetCachedBytes(){throw new LargeObjectException(id);}" }, { "index": 7688, "before": "public ModifyInstanceCreditSpecificationResult modifyInstanceCreditSpecification(ModifyInstanceCreditSpecificationRequest request) {request = beforeClientExecution(request);return executeModifyInstanceCreditSpecification(request);}", "after": "public virtual ModifyInstanceCreditSpecificationResponse ModifyInstanceCreditSpecification(ModifyInstanceCreditSpecificationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyInstanceCreditSpecificationRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyInstanceCreditSpecificationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7689, "before": "public void add(RevCommit c) {Block b = head;if (b == null || !b.canUnpop()) {b = free.newBlock();b.resetToEnd();b.next = head;head = b;}b.unpop(c);}", "after": "public override void Add(RevCommit c){BlockRevQueue.Block b = head;if (b == null || !b.CanUnpop()){b = free.NewBlock();b.ResetToEnd();b.next = head;head = b;}b.Unpop(c);}" }, { "index": 7690, "before": "public SpanTermQuery newSpanTermQuery(Term term) throws TooManyBasicQueries {checkMax();return new SpanTermQuery(term);}", "after": "public virtual SpanTermQuery NewSpanTermQuery(Term term){CheckMax();return new SpanTermQuery(term);}" }, { "index": 7691, "before": "public StringWriter(int initialSize) {if (initialSize < 0) {throw new IllegalArgumentException();}buf = new StringBuffer(initialSize);lock = buf;}", "after": "public StringWriter(int initialSize){if (initialSize < 0){throw new System.ArgumentException();}buf = new java.lang.StringBuffer(initialSize);@lock = buf;}" }, { "index": 7692, "before": "public String toString() {return super.toString() + \"(\\\"\" + patternText + \"\\\")\";}", "after": "public override string ToString(){return base.ToString() + \"(\\\"\" + patternText + \"\\\")\";}" }, { "index": 7693, "before": "public ATNConfig precedenceTransition(ATNConfig config,PrecedencePredicateTransition pt,boolean collectPredicates,boolean inContext,boolean fullCtx){if ( debug ) {System.out.println(\"PRED (collectPredicates=\"+collectPredicates+\") \"+pt.precedence+\">=_p\"+\", ctx dependent=true\");if ( parser != null ) {System.out.println(\"context surrounding pred is \"+parser.getRuleInvocationStack());}}ATNConfig c = null;if (collectPredicates && inContext) {if ( fullCtx ) {int currentPosition = _input.index();_input.seek(_startIndex);boolean predSucceeds = evalSemanticContext(pt.getPredicate(), _outerContext, config.alt, fullCtx);_input.seek(currentPosition);if ( predSucceeds ) {c = new ATNConfig(config, pt.target); }}else {SemanticContext newSemCtx =SemanticContext.and(config.semanticContext, pt.getPredicate());c = new ATNConfig(config, pt.target, newSemCtx);}}else {c = new ATNConfig(config, pt.target);}if ( debug ) System.out.println(\"config from pred transition=\"+c);return c;}", "after": "public ATNConfig PrecedenceTransition(ATNConfig config,PrecedencePredicateTransition pt,bool collectPredicates,bool inContext,bool fullCtx){if (debug){ConsoleWriteLine(\"PRED (collectPredicates=\" + collectPredicates + \") \" +pt.precedence + \">=_p\" +\", ctx dependent=true\");if (parser != null){ConsoleWriteLine(\"context surrounding pred is \" +parser.GetRuleInvocationStack());}}ATNConfig c = null;if (collectPredicates && inContext){if (fullCtx){int currentPosition = input.Index;input.Seek(startIndex);bool predSucceeds = EvalSemanticContext(pt.Predicate, context, config.alt, fullCtx);input.Seek(currentPosition);if (predSucceeds){c = new ATNConfig(config, pt.target); }}else {SemanticContext newSemCtx = SemanticContext.AndOp(config.semanticContext, pt.Predicate);c = new ATNConfig(config, pt.target, newSemCtx);}}else {c = new ATNConfig(config, pt.target);}if (debug) ConsoleWriteLine(\"config from pred transition=\" + c);return c;}" }, { "index": 7694, "before": "public GetDomainStatisticsReportResult getDomainStatisticsReport(GetDomainStatisticsReportRequest request) {request = beforeClientExecution(request);return executeGetDomainStatisticsReport(request);}", "after": "public virtual GetDomainStatisticsReportResponse GetDomainStatisticsReport(GetDomainStatisticsReportRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDomainStatisticsReportRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDomainStatisticsReportResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7695, "before": "public boolean equals(Object obj) {if (this == obj)return true;if (!super.equals(obj))return false;if (getClass() != obj.getClass())return false;TermRangeQuery other = (TermRangeQuery) obj;if (includeLower != other.includeLower)return false;if (includeUpper != other.includeUpper)return false;if (lowerTerm == null) {if (other.lowerTerm != null)return false;} else if (!lowerTerm.equals(other.lowerTerm))return false;if (upperTerm == null) {if (other.upperTerm != null)return false;} else if (!upperTerm.equals(other.upperTerm))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;}TermRangeQuery other = (TermRangeQuery)obj;if (includeLower != other.includeLower){return false;}if (includeUpper != other.includeUpper){return false;}if (lowerTerm == null){if (other.lowerTerm != null){return false;}}else if (!lowerTerm.Equals(other.lowerTerm)){return false;}if (upperTerm == null){if (other.upperTerm != null){return false;}}else if (!upperTerm.Equals(other.upperTerm)){return false;}return true;}" }, { "index": 7696, "before": "public DescribeTransitGatewayRouteTablesResult describeTransitGatewayRouteTables(DescribeTransitGatewayRouteTablesRequest request) {request = beforeClientExecution(request);return executeDescribeTransitGatewayRouteTables(request);}", "after": "public virtual DescribeTransitGatewayRouteTablesResponse DescribeTransitGatewayRouteTables(DescribeTransitGatewayRouteTablesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTransitGatewayRouteTablesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTransitGatewayRouteTablesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7697, "before": "public BootstrapActionConfig build() {if (replace) {args.add(\"--replace\");}return new BootstrapActionConfig().withName(\"Configure Daemons\").withScriptBootstrapAction(new ScriptBootstrapActionConfig().withPath(\"s3:.withArgs(args));}", "after": "public BootstrapActionConfig Build(){if (replace){args.Add(\"--replace\");}return new BootstrapActionConfig{Name = \"Configure Daemons\",ScriptBootstrapAction = new ScriptBootstrapActionConfig{Path = string.Format(CultureInfo.InvariantCulture, \"s3:Args = args}};}" }, { "index": 7698, "before": "public boolean isLegalReplacement(byte[] replacement) {if (decoder == null) {decoder = cs.newDecoder();decoder.onMalformedInput(CodingErrorAction.REPORT);decoder.onUnmappableCharacter(CodingErrorAction.REPORT);}ByteBuffer in = ByteBuffer.wrap(replacement);CharBuffer out = CharBuffer.allocate((int) (replacement.length * decoder.maxCharsPerByte()));CoderResult result = decoder.decode(in, out, true);return !result.isError();}", "after": "public virtual bool isLegalReplacement(byte[] replacement_1){if (decoder == null){decoder = cs.newDecoder();decoder.onMalformedInput(java.nio.charset.CodingErrorAction.REPORT);decoder.onUnmappableCharacter(java.nio.charset.CodingErrorAction.REPORT);}java.nio.ByteBuffer @in = java.nio.ByteBuffer.wrap(replacement_1);java.nio.CharBuffer @out = java.nio.CharBuffer.allocate((int)(replacement_1.Length* decoder.maxCharsPerByte()));java.nio.charset.CoderResult result = decoder.decode(@in, @out, true);return !result.isError();}" }, { "index": 7699, "before": "public UpdatePipelineResult updatePipeline(UpdatePipelineRequest request) {request = beforeClientExecution(request);return executeUpdatePipeline(request);}", "after": "public virtual UpdatePipelineResponse UpdatePipeline(UpdatePipelineRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePipelineRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePipelineResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7700, "before": "public boolean isAboveMinRep() {int sc = _significand.bitLength() - C_64;return _significand.compareTo(BI_MIN_BASE.shiftLeft(sc)) > 0;}", "after": "public bool IsAboveMinRep(){int sc = _significand.BitLength() - C_64;return _significand.CompareTo(BI_MIN_BASE.ShiftLeft(sc)) > 0;}" }, { "index": 7701, "before": "public AssociateContactWithAddressBookResult associateContactWithAddressBook(AssociateContactWithAddressBookRequest request) {request = beforeClientExecution(request);return executeAssociateContactWithAddressBook(request);}", "after": "public virtual AssociateContactWithAddressBookResponse AssociateContactWithAddressBook(AssociateContactWithAddressBookRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateContactWithAddressBookRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateContactWithAddressBookResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7702, "before": "public DeleteFolderResult deleteFolder(DeleteFolderRequest request) {request = beforeClientExecution(request);return executeDeleteFolder(request);}", "after": "public virtual DeleteFolderResponse DeleteFolder(DeleteFolderRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFolderRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFolderResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7703, "before": "public PhraseWildcardQuery build() {return new PhraseWildcardQuery(field, phraseTerms, slop, maxMultiTermExpansions, segmentOptimizationEnabled);}", "after": "public override WAH8DocIdSet Build(){if (this.wordNum != -1){AddWord(wordNum, (byte)word);}return base.Build();}" }, { "index": 7704, "before": "public DescribeJobFlowsResult describeJobFlows() {return describeJobFlows(new DescribeJobFlowsRequest());}", "after": "public virtual DescribeJobFlowsResponse DescribeJobFlows(){return DescribeJobFlows(new DescribeJobFlowsRequest());}" }, { "index": 7705, "before": "public float tf(float freq) {return baselineTf(freq);}", "after": "public override float Tf(float freq){return BaselineTf(freq);}" }, { "index": 7706, "before": "public DescribePublishingDestinationResult describePublishingDestination(DescribePublishingDestinationRequest request) {request = beforeClientExecution(request);return executeDescribePublishingDestination(request);}", "after": "public virtual DescribePublishingDestinationResponse DescribePublishingDestination(DescribePublishingDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePublishingDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePublishingDestinationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7707, "before": "public int getLeftId(int wordId) {return LEFT_ID;}", "after": "public int GetLeftId(int wordId){return LEFT_ID;}" }, { "index": 7708, "before": "public static NormalisedDecimal create(BigInteger frac, int binaryExponent) {int pow10;if (binaryExponent > 49 || binaryExponent < 46) {int x = (29 << 19) - binaryExponent * LOG_BASE_10_OF_2_TIMES_2_POW_20;x += C_2_POW_19; pow10 = -(x >> 20);} else {pow10 = 0;}MutableFPNumber cc = new MutableFPNumber(frac, binaryExponent);if (pow10 != 0) {cc.multiplyByPowerOfTen(-pow10);}switch (cc.get64BitNormalisedExponent()) {case 46:if (cc.isAboveMinRep()) {break;}case 44:case 45:cc.multiplyByPowerOfTen(1);pow10--;break;case 47:case 48:break;case 49:if (cc.isBelowMaxRep()) {break;}case 50:cc.multiplyByPowerOfTen(-1);pow10++;break;default:throw new IllegalStateException(\"Bad binary exp \" + cc.get64BitNormalisedExponent() + \".\");}cc.normalise64bit();return cc.createNormalisedDecimal(pow10);}", "after": "public static NormalisedDecimal Create(BigInteger frac, int binaryExponent){int pow10;if (binaryExponent > 49 || binaryExponent < 46){int x = (29 << 19) - binaryExponent * LOG_BASE_10_OF_2_TIMES_2_POW_20;x += C_2_POW_19; pow10 = -(x >> 20);}else{pow10 = 0;}MutableFPNumber cc = new MutableFPNumber(frac, binaryExponent);if (pow10 != 0){cc.multiplyByPowerOfTen(-pow10);}switch (cc.Get64BitNormalisedExponent()){case 46:if (cc.IsAboveMinRep()){break;}goto case 44;case 44:case 45:cc.multiplyByPowerOfTen(1);pow10--;break;case 47:case 48:break;case 49:if (cc.IsBelowMaxRep()){break;}goto case 50;case 50:cc.multiplyByPowerOfTen(-1);pow10++;break;default:throw new InvalidOperationException(\"Bad binary exp \" + cc.Get64BitNormalisedExponent() + \".\");}cc.Normalise64bit();return cc.CreateNormalisedDecimal(pow10);}" }, { "index": 7709, "before": "public String toString() {return \"DoubleRange(\" + label + \": \" + min + \" to \" + max + \")\";}", "after": "public override string ToString(){return \"DoubleRange(\" + minIncl + \" to \" + maxIncl + \")\";}" }, { "index": 7710, "before": "public void setRefLogIdent(PersonIdent pi) {destination.setRefLogIdent(pi);}", "after": "public virtual void SetRefLogIdent(PersonIdent pi){destination.SetRefLogIdent(pi);}" }, { "index": 7711, "before": "public final void yybegin(int newState) {zzLexicalState = newState;}", "after": "public void YyBegin(int newState){zzLexicalState = newState;}" }, { "index": 7712, "before": "public Trie(boolean forward) {rows.add(new Row());root = 0;this.forward = forward;}", "after": "public Trie(bool forward){rows.Add(new Row());root = 0;this.forward = forward;}" }, { "index": 7713, "before": "public DeleteTagsRequest(java.util.List resources) {setResources(resources);}", "after": "public DeleteTagsRequest(List resources){_resources = resources;}" }, { "index": 7714, "before": "public ObjectProtectRecord clone() {return copy();}", "after": "public override Object Clone(){ObjectProtectRecord rec = new ObjectProtectRecord();rec.field_1_protect = field_1_protect;return rec;}" }, { "index": 7715, "before": "public static FuncVarPtg create(String pName, int numArgs) {return create(numArgs, lookupIndex(pName));}", "after": "public static FuncVarPtg Create(String pName, int numArgs){return Create(numArgs, LookupIndex(pName));}" }, { "index": 7716, "before": "public void clear() {this.processors.clear();}", "after": "public virtual void Clear(){this.processors.Clear();}" }, { "index": 7717, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeDouble(getValue());}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteDouble(Value);}" }, { "index": 7718, "before": "public NullReader(int valueCount) {this.valueCount = valueCount;}", "after": "public NullReader(int valueCount){this.valueCount = valueCount;}" }, { "index": 7719, "before": "public CreateVaultResult createVault(CreateVaultRequest request) {request = beforeClientExecution(request);return executeCreateVault(request);}", "after": "public virtual CreateVaultResponse CreateVault(CreateVaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVaultRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVaultResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7720, "before": "@Override public void add(int index, E object) {Object[] a = array;int s = size;if (index > s || index < 0) {throwIndexOutOfBoundsException(index, s);}if (s < a.length) {System.arraycopy(a, index, a, index + 1, s - index);} else {Object[] newArray = new Object[newCapacity(s)];System.arraycopy(a, 0, newArray, 0, index);System.arraycopy(a, index, newArray, index + 1, s - index);array = a = newArray;}a[index] = object;size = s + 1;modCount++;}", "after": "public override void add(int index, E @object){object[] a = array;int s = _size;if (index > s || index < 0){throwIndexOutOfBoundsException(index, s);}if (s < a.Length){System.Array.Copy(a, index, a, index + 1, s - index);}else{object[] newArray = new object[newCapacity(s)];System.Array.Copy(a, 0, newArray, 0, index);System.Array.Copy(a, index, newArray, index + 1, s - index);array = a = newArray;}a[index] = @object;_size = s + 1;modCount++;}" }, { "index": 7721, "before": "public int read(char[] c, int off, int len) {if (left > len) {s.getChars(upto, upto+len, c, off);upto += len;left -= len;return len;} else if (0 == left) {return -1;} else {s.getChars(upto, upto+left, c, off);int r = left;left = 0;upto = s.length();return r;}}", "after": "public override int Read(char[] c, int off, int len){if (pos < size){len = Math.Min(len, size - pos);s.CopyTo(pos, c, off, pos + len - pos);pos += len;return len;}else{s = null;return -1;}}" }, { "index": 7722, "before": "public DeleteDeploymentResult deleteDeployment(DeleteDeploymentRequest request) {request = beforeClientExecution(request);return executeDeleteDeployment(request);}", "after": "public virtual DeleteDeploymentResponse DeleteDeployment(DeleteDeploymentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDeploymentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDeploymentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7723, "before": "public String toString() {return getClass().getSimpleName() + \"(bitsPerValue=\" + bitsPerValue+ \",size=\" + size() + \",blocks=\" + blocks.length + \")\";}", "after": "public override string ToString(){return this.GetType().Name + \"(bitsPerValue=\" + m_bitsPerValue + \", size=\" + Count + \", elements.length=\" + blocks.Length + \")\";}" }, { "index": 7724, "before": "public VectorValueSource(List sources) {this.sources = sources;}", "after": "public VectorValueSource(IList sources){this.m_sources = sources;}" }, { "index": 7725, "before": "public HSSFShape(HSSFShape parent, HSSFAnchor anchor) {this.parent = parent;this.anchor = anchor;this._escherContainer = createSpContainer();_optRecord = _escherContainer.getChildById(EscherOptRecord.RECORD_ID);_objRecord = createObjRecord();}", "after": "public HSSFShape(HSSFShape parent, HSSFAnchor anchor){this.parent = parent;this.anchor = anchor;this._escherContainer = CreateSpContainer();_optRecord = (EscherOptRecord)_escherContainer.GetChildById(EscherOptRecord.RECORD_ID);_objRecord = CreateObjRecord();}" }, { "index": 7726, "before": "public GalicianMinimalStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public GalicianMinimalStemFilterFactory(IDictionary args) : base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 7727, "before": "public DescribeFpgaImageAttributeResult describeFpgaImageAttribute(DescribeFpgaImageAttributeRequest request) {request = beforeClientExecution(request);return executeDescribeFpgaImageAttribute(request);}", "after": "public virtual DescribeFpgaImageAttributeResponse DescribeFpgaImageAttribute(DescribeFpgaImageAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFpgaImageAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFpgaImageAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7728, "before": "public ValueFiller getValueFiller() {return new ValueFiller() {private final MutableValueBool mval = new MutableValueBool();@Override", "after": "public override ValueFiller GetValueFiller(){return new ValueFillerAnonymousInnerClassHelper(this);}" }, { "index": 7729, "before": "public static int update(int hash, Object value) {return update(hash, value != null ? value.hashCode() : 0);}", "after": "public static int Update(int hash, object value){return Update(hash, value != null ? value.GetHashCode() : 0);}" }, { "index": 7730, "before": "public DescribeModelVersionsResult describeModelVersions(DescribeModelVersionsRequest request) {request = beforeClientExecution(request);return executeDescribeModelVersions(request);}", "after": "public virtual DescribeModelVersionsResponse DescribeModelVersions(DescribeModelVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeModelVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeModelVersionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7731, "before": "public static IndexCommit findIndexCommit(Directory dir, String userData) throws IOException {Collection commits = DirectoryReader.listCommits(dir);for (final IndexCommit ic : commits) {Map map = ic.getUserData();String ud = null;if (map != null) {ud = map.get(USER_DATA);}if (ud != null && ud.equals(userData)) {return ic;}}throw new IOException(\"index does not contain commit with userData: \" + userData);}", "after": "public static IndexCommit FindIndexCommit(Store.Directory dir, string userData){IList commits = DirectoryReader.ListCommits(dir);foreach (IndexCommit ic in commits){IDictionary map = ic.UserData;string ud = null;if (map != null){map.TryGetValue(USER_DATA, out ud);}if (ud != null && ud.Equals(userData, StringComparison.Ordinal)){return ic;}}throw new IOException(\"index does not contain commit with userData: \" + userData);}" }, { "index": 7732, "before": "public IndexEnum(FST fst) {fstEnum = new BytesRefFSTEnum<>(fst);}", "after": "public IndexEnum(FST fst){fstEnum = new BytesRefFSTEnum(fst);}" }, { "index": 7733, "before": "public HSSFEvaluationSheet(HSSFSheet hs) {_hs = hs;}", "after": "public HSSFEvaluationSheet(HSSFSheet hs){_hs = hs;}" }, { "index": 7734, "before": "public void update(int b) {if (upto == buffer.length) {flush();}buffer[upto++] = (byte) b;}", "after": "public virtual void Update(int b){if (upto == buffer.Length){Flush();}buffer[upto++] = (byte)b;}" }, { "index": 7735, "before": "public PutPartnerEventsResult putPartnerEvents(PutPartnerEventsRequest request) {request = beforeClientExecution(request);return executePutPartnerEvents(request);}", "after": "public virtual PutPartnerEventsResponse PutPartnerEvents(PutPartnerEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutPartnerEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutPartnerEventsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7736, "before": "public boolean isThin() {return thin;}", "after": "public virtual bool IsThin(){return thin;}" }, { "index": 7737, "before": "public String toStringTree() {return toString();}", "after": "public virtual string ToStringTree(){return ToString();}" }, { "index": 7738, "before": "public PackConfig(Repository db) {fromConfig(db.getConfig());}", "after": "public PackConfig(Repository db){FromConfig(db.GetConfig());}" }, { "index": 7739, "before": "public void setDeltaCompress(boolean deltaCompress) {this.deltaCompress = deltaCompress;}", "after": "public virtual void SetDeltaCompress(bool deltaCompress){this.deltaCompress = deltaCompress;}" }, { "index": 7740, "before": "public ListTrafficPolicyInstancesByHostedZoneResult listTrafficPolicyInstancesByHostedZone(ListTrafficPolicyInstancesByHostedZoneRequest request) {request = beforeClientExecution(request);return executeListTrafficPolicyInstancesByHostedZone(request);}", "after": "public virtual ListTrafficPolicyInstancesByHostedZoneResponse ListTrafficPolicyInstancesByHostedZone(ListTrafficPolicyInstancesByHostedZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTrafficPolicyInstancesByHostedZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTrafficPolicyInstancesByHostedZoneResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7741, "before": "public EscherRecord findFirstWithId(short id) {return findFirstWithId(id, getEscherRecords());}", "after": "public EscherRecord FindFirstWithId(short id){return FindFirstWithId(id, EscherRecords);}" }, { "index": 7742, "before": "public byte[] getEntryPathBuffer() {return path;}", "after": "public virtual byte[] GetEntryPathBuffer(){return path;}" }, { "index": 7743, "before": "public void setFont(Font f){font = f;}", "after": "public void SetFont(Font f){font = f;}" }, { "index": 7744, "before": "public void decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final int byte0 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = byte0 >>> 2;final int byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte0 & 3) << 4) | (byte1 >>> 4);final int 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": 7745, "before": "public boolean hasAnchoringBounds() {return anchoringBounds;}", "after": "public bool hasAnchoringBounds(){return anchoringBounds;}" }, { "index": 7746, "before": "public void drawPolygon(int[] xPoints, int[] yPoints,int nPoints){int right = findBiggest(xPoints);int bottom = findBiggest(yPoints);int left = findSmallest(xPoints);int top = findSmallest(yPoints);HSSFPolygon shape = escherGroup.createPolygon(new HSSFChildAnchor(left,top,right,bottom) );shape.setPolygonDrawArea(right - left, bottom - top);shape.setPoints(addToAll(xPoints, -left), addToAll(yPoints, -top));shape.setLineStyleColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());shape.setLineWidth(0);shape.setNoFill(true);}", "after": "public void DrawPolygon(int[] xPoints, int[] yPoints, int nPoints){int right = FindBiggest(xPoints);int bottom = FindBiggest(yPoints);int left = FindSmallest(xPoints);int top = FindSmallest(yPoints);HSSFPolygon shape = escherGroup.CreatePolygon(new HSSFChildAnchor(left, top, right, bottom));shape.SetPolygonDrawArea(right - left, bottom - top);shape.SetPoints(AddToAll(xPoints, -left), AddToAll(yPoints, -top));shape.SetLineStyleColor(foreground.R, foreground.G, foreground.B);shape.LineWidth = (0);shape.IsNoFill = (true);}" }, { "index": 7747, "before": "public String getAccessKeyId() {return getCredentials().getAccessKeyId();}", "after": "public new string GetAccessKeyId(){return GetCredentials().GetAccessKeyId();}" }, { "index": 7748, "before": "public PutDedicatedIpWarmupAttributesResult putDedicatedIpWarmupAttributes(PutDedicatedIpWarmupAttributesRequest request) {request = beforeClientExecution(request);return executePutDedicatedIpWarmupAttributes(request);}", "after": "public virtual PutDedicatedIpWarmupAttributesResponse PutDedicatedIpWarmupAttributes(PutDedicatedIpWarmupAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutDedicatedIpWarmupAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutDedicatedIpWarmupAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7749, "before": "public void print(char ch) {print(String.valueOf(ch));}", "after": "public virtual void print(char ch){print(ch.ToString());}" }, { "index": 7750, "before": "public String buildExtensionField(String extensionKey) {return buildExtensionField(extensionKey, \"\");}", "after": "public virtual string BuildExtensionField(string extensionKey){return BuildExtensionField(extensionKey, \"\");}" }, { "index": 7751, "before": "public CompareFacesResult compareFaces(CompareFacesRequest request) {request = beforeClientExecution(request);return executeCompareFaces(request);}", "after": "public virtual CompareFacesResponse CompareFaces(CompareFacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = CompareFacesRequestMarshaller.Instance;options.ResponseUnmarshaller = CompareFacesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7752, "before": "public PatchFormatException(List errors) {super(MessageFormat.format(JGitText.get().patchFormatException, errors));this.errors = errors;}", "after": "public PatchFormatException(IList errors) : base(MessageFormat.Format(JGitText.Get().patchFormatException, errors)){this.errors = errors;}" }, { "index": 7753, "before": "public String finish() {sb.append(formatTrailer());return sb.toString();}", "after": "public virtual string Finish(){sb.Append(FormatTrailer());return sb.ToString();}" }, { "index": 7754, "before": "public int getLevelForDistance(double dist) {if (dist == 0)return maxLevels;for (int i = 0; i < maxLevels-1; i++) {if(dist > levelW[i] && dist > levelH[i]) {return i+1;}}return maxLevels;}", "after": "public override int GetLevelForDistance(double dist){if (dist == 0){return m_maxLevels;}for (int i = 0; i < m_maxLevels - 1; i++){if (dist > levelW[i] && dist > levelH[i]){return i + 1;}}return m_maxLevels;}" }, { "index": 7755, "before": "public int[] init() {final int[] ord = super.init();boost = new float[ArrayUtil.oversize(ord.length, Float.BYTES)];termState = new TermStates[ArrayUtil.oversize(ord.length, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];assert termState.length >= ord.length && boost.length >= ord.length;return ord;}", "after": "public override int[] Init(){int[] ord = base.Init();boost = new float[ArrayUtil.Oversize(ord.Length, RamUsageEstimator.NUM_BYTES_SINGLE)];termState = new TermContext[ArrayUtil.Oversize(ord.Length, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];Debug.Assert(termState.Length >= ord.Length && boost.Length >= ord.Length);return ord;}" }, { "index": 7756, "before": "public final void yyreset(java.io.Reader reader) {zzReader = reader;zzAtBOL = true;zzAtEOF = false;zzEOFDone = false;zzEndRead = zzStartRead = 0;zzCurrentPos = zzMarkedPos = 0;zzFinalHighSurrogate = 0;yyline = yychar = yycolumn = 0;zzLexicalState = YYINITIAL;if (zzBuffer.length > ZZ_BUFFERSIZE)zzBuffer = new char[ZZ_BUFFERSIZE];}", "after": "public void YyReset(TextReader reader){zzReader = reader;zzAtBOL = true;zzAtEOF = false;zzEOFDone = false;zzEndRead = zzStartRead = 0;zzCurrentPos = zzMarkedPos = 0;yyline = yyChar = yycolumn = 0;zzLexicalState = YYINITIAL;if (zzBuffer.Length > ZZ_BUFFERSIZE){zzBuffer = new char[ZZ_BUFFERSIZE];}}" }, { "index": 7757, "before": "public void deleteFile(String name) {throw new UnsupportedOperationException();}", "after": "public override void DeleteFile(string name){throw new NotSupportedException();}" }, { "index": 7758, "before": "public StopTrainingDocumentClassifierResult stopTrainingDocumentClassifier(StopTrainingDocumentClassifierRequest request) {request = beforeClientExecution(request);return executeStopTrainingDocumentClassifier(request);}", "after": "public virtual StopTrainingDocumentClassifierResponse StopTrainingDocumentClassifier(StopTrainingDocumentClassifierRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopTrainingDocumentClassifierRequestMarshaller.Instance;options.ResponseUnmarshaller = StopTrainingDocumentClassifierResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7759, "before": "public TermStats(int docFreq, long totalTermFreq) {this.docFreq = docFreq;this.totalTermFreq = totalTermFreq;}", "after": "public TermStats(int docFreq, long totalTermFreq){this.DocFreq = docFreq;this.TotalTermFreq = totalTermFreq;}" }, { "index": 7760, "before": "public GetAuthorizersResult getAuthorizers(GetAuthorizersRequest request) {request = beforeClientExecution(request);return executeGetAuthorizers(request);}", "after": "public virtual GetAuthorizersResponse GetAuthorizers(GetAuthorizersRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAuthorizersRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAuthorizersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7761, "before": "public void dispatch(RepositoryEvent event) {List list = lists.get(event.getListenerType());if (list != null) {for (ListenerHandle handle : list)event.dispatch(handle.listener);}}", "after": "public virtual void Dispatch(RepositoryEvent @event){IList list = lists.Get(@event.GetListenerType());if (list != null){foreach (ListenerHandle handle in list){@event.Dispatch(handle.listener);}}}" }, { "index": 7762, "before": "public String toString(String field) {StringBuilder buffer = new StringBuilder();buffer.append(\"spanNot(\");buffer.append(include.toString(field));buffer.append(\", \");buffer.append(exclude.toString(field));buffer.append(\", \");buffer.append(Integer.toString(pre));buffer.append(\", \");buffer.append(Integer.toString(post));buffer.append(\")\");return buffer.toString();}", "after": "public override string ToString(string field){StringBuilder buffer = new StringBuilder();buffer.Append(\"spanNot(\");buffer.Append(include.ToString(field));buffer.Append(\", \");buffer.Append(exclude.ToString(field));buffer.Append(\", \");buffer.Append(Convert.ToString(pre));buffer.Append(\", \");buffer.Append(Convert.ToString(post));buffer.Append(\")\");buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}" }, { "index": 7763, "before": "public SearchGameSessionsResult searchGameSessions(SearchGameSessionsRequest request) {request = beforeClientExecution(request);return executeSearchGameSessions(request);}", "after": "public virtual SearchGameSessionsResponse SearchGameSessions(SearchGameSessionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchGameSessionsRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchGameSessionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7764, "before": "public int stem(char s[], int len) {if (len < 4)return len;for (int i = 0; i < len; i++)switch(s[i]) {case 'ä':case 'å': s[i] = 'a'; break;case 'ö': s[i] = 'o'; break;}len = step1(s, len);len = step2(s, len);len = step3(s, len);len = norm1(s, len);len = norm2(s, len);return len;}", "after": "public virtual int Stem(char[] s, int len){if (len < 4){return len;}for (int i = 0; i < len; i++){switch (s[i]){case 'ä':case 'å':s[i] = 'a';break;case 'ö':s[i] = 'o';break;}}len = Step1(s, len);len = Step2(s, len);len = Step3(s, len);len = Norm1(s, len);len = Norm2(s, len);return len;}" }, { "index": 7765, "before": "public PutConfigurationSetReputationOptionsResult putConfigurationSetReputationOptions(PutConfigurationSetReputationOptionsRequest request) {request = beforeClientExecution(request);return executePutConfigurationSetReputationOptions(request);}", "after": "public virtual PutConfigurationSetReputationOptionsResponse PutConfigurationSetReputationOptions(PutConfigurationSetReputationOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutConfigurationSetReputationOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutConfigurationSetReputationOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7766, "before": "public ListAttendeeTagsResult listAttendeeTags(ListAttendeeTagsRequest request) {request = beforeClientExecution(request);return executeListAttendeeTags(request);}", "after": "public virtual ListAttendeeTagsResponse ListAttendeeTags(ListAttendeeTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAttendeeTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAttendeeTagsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7767, "before": "public static void validateSheetName(String sheetName) {if (sheetName == null) {throw new IllegalArgumentException(\"sheetName must not be null\");}int len = sheetName.length();if (len < 1 || len > 31) {throw new IllegalArgumentException(\"sheetName '\" + sheetName+ \"' is invalid - character count MUST be greater than or equal to 1 and less than or equal to 31\");}for (int i=0; i 31) {throw new ArgumentException(\"sheetName '\" + sheetName+ \"' is invalid - character count MUST be greater than or equal to 1 and less than or equal to 31\");}for (int i=0; i(request, options);}" }, { "index": 7773, "before": "public void append(String stringToMatch) {for (int i = 0; i < stringToMatch.length(); i++) {final char c = stringToMatch.charAt(i);if (!extendStringToMatchByOneCharacter(c))break;}}", "after": "public virtual void Append(string stringToMatch){for (int i = 0; i < stringToMatch.Length; i++){char c = stringToMatch[i];ExtendStringToMatchByOneCharacter(c);}}" }, { "index": 7774, "before": "public StopTrainingJobResult stopTrainingJob(StopTrainingJobRequest request) {request = beforeClientExecution(request);return executeStopTrainingJob(request);}", "after": "public virtual StopTrainingJobResponse StopTrainingJob(StopTrainingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopTrainingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopTrainingJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7775, "before": "public IndexInput openInput(String name, IOContext context) throws IOException {ensureOpen();final String id = IndexFileNames.stripSegmentName(name);final FileEntry entry = entries.get(id);if (entry == null) {String datFileName = IndexFileNames.segmentFileName(segmentName, \"\", Lucene50CompoundFormat.DATA_EXTENSION);throw new FileNotFoundException(\"No sub-file with id \" + id + \" found in compound file \\\"\" + datFileName + \"\\\" (fileName=\" + name + \" files: \" + entries.keySet() + \")\");}return handle.slice(name, entry.offset, entry.length);}", "after": "public override IndexInput OpenInput(string name, IOContext context){lock (this){EnsureOpen();Debug.Assert(!openForWrite);string id = IndexFileNames.StripSegmentName(name);if (!entries.TryGetValue(id, out FileEntry entry) || entry == null){throw new FileNotFoundException(\"No sub-file with id \" + id +\" found (fileName=\" + name + \" files: \" +string.Format(J2N.Text.StringFormatter.InvariantCulture, \"{0}\", entries.Keys) + \")\");}return handle.OpenSlice(name, entry.Offset, entry.Length);}}" }, { "index": 7776, "before": "public GetSnowballUsageResult getSnowballUsage(GetSnowballUsageRequest request) {request = beforeClientExecution(request);return executeGetSnowballUsage(request);}", "after": "public virtual GetSnowballUsageResponse GetSnowballUsage(GetSnowballUsageRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSnowballUsageRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSnowballUsageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7777, "before": "public DeleteUserProfileResult deleteUserProfile(DeleteUserProfileRequest request) {request = beforeClientExecution(request);return executeDeleteUserProfile(request);}", "after": "public virtual DeleteUserProfileResponse DeleteUserProfile(DeleteUserProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUserProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUserProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7778, "before": "public int compare(ConfigLine a, ConfigLine b) {return compare2(a.section, a.subsection, a.name,b.section, b.subsection, b.name);}", "after": "public virtual int Compare(ConfigLine a, ConfigLine b){var value = Compare2(a.section, a.subsection, a.name, b.section, b.subsection, b.name);return value != 0 ? value : string.CompareOrdinal (a.value, b.value);}" }, { "index": 7779, "before": "public LongBuffer asReadOnlyBuffer() {return duplicate();}", "after": "public override java.nio.LongBuffer asReadOnlyBuffer(){return duplicate();}" }, { "index": 7780, "before": "public HSSFComment createCellComment(ClientAnchor anchor) {return createComment((HSSFAnchor) anchor);}", "after": "public IComment CreateCellComment(IClientAnchor anchor){return CreateComment((HSSFAnchor)anchor);}" }, { "index": 7781, "before": "public CollatedTermAttributeImpl(Collator collator) {this.collator = (Collator) collator.clone();}", "after": "public CollatedTermAttributeImpl(Collator collator){this.collator = (Collator)collator.Clone();}" }, { "index": 7782, "before": "public UpdatePipelineStatusResult updatePipelineStatus(UpdatePipelineStatusRequest request) {request = beforeClientExecution(request);return executeUpdatePipelineStatus(request);}", "after": "public virtual UpdatePipelineStatusResponse UpdatePipelineStatus(UpdatePipelineStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePipelineStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePipelineStatusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7783, "before": "public void copyTo(char[] tmp, StringBuilder w) {toHexCharArray(tmp);w.append(tmp, 0, Constants.OBJECT_ID_STRING_LENGTH);}", "after": "public virtual void CopyTo(char[] tmp, StringBuilder w){ToHexCharArray(tmp);w.Append(tmp, 0, Constants.OBJECT_ID_STRING_LENGTH);}" }, { "index": 7784, "before": "public BytesReader getBytesReader() {if (fst == null) {return null;} else {return fst.getBytesReader();}}", "after": "public FST.BytesReader GetBytesReader(){if (fst == null){return null;}else{return fst.GetBytesReader();}}" }, { "index": 7785, "before": "public CreateRouteTableResult createRouteTable(CreateRouteTableRequest request) {request = beforeClientExecution(request);return executeCreateRouteTable(request);}", "after": "public virtual CreateRouteTableResponse CreateRouteTable(CreateRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRouteTableResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7786, "before": "public String toString(String field) {return \"ToParentBlockJoinQuery (\"+childQuery.toString()+\")\";}", "after": "public override string ToString(string field){return \"ToParentBlockJoinQuery (\" + _childQuery + \")\";}" }, { "index": 7787, "before": "public DisassociateClientVpnTargetNetworkResult disassociateClientVpnTargetNetwork(DisassociateClientVpnTargetNetworkRequest request) {request = beforeClientExecution(request);return executeDisassociateClientVpnTargetNetwork(request);}", "after": "public virtual DisassociateClientVpnTargetNetworkResponse DisassociateClientVpnTargetNetwork(DisassociateClientVpnTargetNetworkRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateClientVpnTargetNetworkRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateClientVpnTargetNetworkResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7788, "before": "public String toString() {return \"\" + \"\\n\"+ getChild().toString() + \"\\n\";}", "after": "public override string ToString(){return \"\" + \"\\n\"+ GetChild().ToString() + \"\\n\";}" }, { "index": 7789, "before": "public GetExportJobsResult getExportJobs(GetExportJobsRequest request) {request = beforeClientExecution(request);return executeGetExportJobs(request);}", "after": "public virtual GetExportJobsResponse GetExportJobs(GetExportJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetExportJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetExportJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7790, "before": "public UpdateBaiduChannelResult updateBaiduChannel(UpdateBaiduChannelRequest request) {request = beforeClientExecution(request);return executeUpdateBaiduChannel(request);}", "after": "public virtual UpdateBaiduChannelResponse UpdateBaiduChannel(UpdateBaiduChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBaiduChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBaiduChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7791, "before": "public ImportApiResult importApi(ImportApiRequest request) {request = beforeClientExecution(request);return executeImportApi(request);}", "after": "public virtual ImportApiResponse ImportApi(ImportApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportApiRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportApiResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7792, "before": "public synchronized int read() {return pos < count ? buffer.charAt(pos++) & 0xFF : -1;}", "after": "public override int read(){lock (this){return pos < count ? buffer[pos++] & unchecked((int)(0xFF)) : -1;}}" }, { "index": 7793, "before": "public GetUserResult getUser(GetUserRequest request) {request = beforeClientExecution(request);return executeGetUser(request);}", "after": "public virtual GetUserResponse GetUser(GetUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUserRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUserResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7794, "before": "public GetHealthCheckLastFailureReasonResult getHealthCheckLastFailureReason(GetHealthCheckLastFailureReasonRequest request) {request = beforeClientExecution(request);return executeGetHealthCheckLastFailureReason(request);}", "after": "public virtual GetHealthCheckLastFailureReasonResponse GetHealthCheckLastFailureReason(GetHealthCheckLastFailureReasonRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHealthCheckLastFailureReasonRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHealthCheckLastFailureReasonResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7795, "before": "public String getRawQuery() {return query;}", "after": "public string getRawQuery(){return query;}" }, { "index": 7796, "before": "public static void fill(long[] array, int start, int end, long value) {Arrays.checkStartAndEnd(array.length, start, end);for (int i = start; i < end; i++) {array[i] = value;}}", "after": "public static void fill(long[] array, int start, int end, long value){java.util.Arrays.checkStartAndEnd(array.Length, start, end);{for (int i = start; i < end; i++){array[i] = value;}}}" }, { "index": 7797, "before": "public boolean equals(Object obj) {if (obj instanceof StatePair) {StatePair p = (StatePair) obj;return p.s1 == s1 && p.s2 == s2;} else return false;}", "after": "public override bool Equals(object obj){if (obj is StatePair){StatePair p = (StatePair)obj;return p.S1 == S1 && p.S2 == S2;}else{return false;}}" }, { "index": 7798, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[OLD STRING]\\n\");buffer.append(\" .string = \").append(getString()).append(\"\\n\");buffer.append(\"[/OLD STRING]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[OLD STRING]\\n\");buffer.Append(\" .string = \").Append(GetString()).Append(\"\\n\");buffer.Append(\"[/OLD STRING]\\n\");return buffer.ToString();}" }, { "index": 7799, "before": "public ExecutePolicyResult executePolicy(ExecutePolicyRequest request) {request = beforeClientExecution(request);return executeExecutePolicy(request);}", "after": "public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExecutePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = ExecutePolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7800, "before": "public UpdateEmailTemplateResult updateEmailTemplate(UpdateEmailTemplateRequest request) {request = beforeClientExecution(request);return executeUpdateEmailTemplate(request);}", "after": "public virtual UpdateEmailTemplateResponse UpdateEmailTemplate(UpdateEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateEmailTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7801, "before": "public boolean equalsContents(final Object o) {final CustomProperty c = (CustomProperty) o;final String name1 = c.getName();final String name2 = this.getName();boolean equalNames = true;if (name1 == null) {equalNames = name2 == null;} else {equalNames = name1.equals(name2);}return equalNames && c.getID() == this.getID()&& c.getType() == this.getType()&& c.getValue().equals(this.getValue());}", "after": "public bool EqualsContents(Object o){CustomProperty c = (CustomProperty)o;String name1 = c.Name;String name2 = this.Name;bool equalNames = true;if (name1 == null)equalNames = name2 == null;elseequalNames = name1.Equals(name2);return equalNames && c.ID == this.ID&& c.Type == this.Type&& c.Value.Equals(this.Value);}" }, { "index": 7802, "before": "public DuplicateFormatFlagsException(String f) {if (f == null) {throw new NullPointerException();}flags = f;}", "after": "public DuplicateFormatFlagsException(string f){if (f == null){throw new System.ArgumentNullException();}flags = f;}" }, { "index": 7803, "before": "public synchronized void mark(int readlimit) {marklimit = readlimit;markpos = pos;}", "after": "public override void mark(int readlimit){lock (this){marklimit = readlimit;markpos = pos;}}" }, { "index": 7804, "before": "public final int prefixCompare(AnyObjectId other) {int cmp;cmp = NB.compareUInt32(w1, mask(1, other.w1));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w2, mask(2, other.w2));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w3, mask(3, other.w3));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w4, mask(4, other.w4));if (cmp != 0)return cmp;return NB.compareUInt32(w5, mask(5, other.w5));}", "after": "public int PrefixCompare(AnyObjectId other){int cmp;cmp = NB.CompareUInt32(w1, Mask(1, other.w1));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w2, Mask(2, other.w2));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w3, Mask(3, other.w3));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w4, Mask(4, other.w4));if (cmp != 0){return cmp;}return NB.CompareUInt32(w5, Mask(5, other.w5));}" }, { "index": 7805, "before": "public UpdateRequestValidatorResult updateRequestValidator(UpdateRequestValidatorRequest request) {request = beforeClientExecution(request);return executeUpdateRequestValidator(request);}", "after": "public virtual UpdateRequestValidatorResponse UpdateRequestValidator(UpdateRequestValidatorRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRequestValidatorRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRequestValidatorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7806, "before": "public Extensions(char extensionFieldDelimiter) {this.extensionFieldDelimiter = extensionFieldDelimiter;}", "after": "public Extensions(char extensionFieldDelimiter){this.extensionFieldDelimiter = extensionFieldDelimiter;}" }, { "index": 7807, "before": "public TokenStream create(TokenStream input) {return new EnglishMinimalStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new EnglishMinimalStemFilter(input);}" }, { "index": 7808, "before": "public QueryText getPathElement(int index) {return values.get(index);}", "after": "public virtual QueryText GetPathElement(int index){return values[index];}" }, { "index": 7809, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(_sid);out.writeShort(_data.length);out.write(_data);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(_sid);out1.WriteShort(_data.Length);out1.Write(_data);}" }, { "index": 7810, "before": "public void setQueryConfigHandler(QueryConfigHandler queryConfigHandler) {this.queryConfig = queryConfigHandler;for (QueryNodeProcessor processor : this.processors) {processor.setQueryConfigHandler(this.queryConfig);}}", "after": "public virtual void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler){this.queryConfig = queryConfigHandler;foreach (IQueryNodeProcessor processor in this.processors){processor.SetQueryConfigHandler(this.queryConfig);}}" }, { "index": 7811, "before": "public DeleteGameSessionQueueResult deleteGameSessionQueue(DeleteGameSessionQueueRequest request) {request = beforeClientExecution(request);return executeDeleteGameSessionQueue(request);}", "after": "public virtual DeleteGameSessionQueueResponse DeleteGameSessionQueue(DeleteGameSessionQueueRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGameSessionQueueRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGameSessionQueueResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7812, "before": "public List getStates() {List result = new ArrayList(states.keySet());Collections.sort(result, new Comparator() {@Override", "after": "public List GetStates(){List result = new List(states.Keys);result.Sort((x, y) => x.stateNumber - y.stateNumber);return result;}" }, { "index": 7813, "before": "public static CmpOp getOperator(String value) {int len = value.length();if (len < 1) {return OP_NONE;}char firstChar = value.charAt(0);switch(firstChar) {case '=':return OP_EQ;case '>':if (len > 1) {switch(value.charAt(1)) {case '=':return OP_GE;}}return OP_GT;case '<':if (len > 1) {switch(value.charAt(1)) {case '=':return OP_LE;case '>':return OP_NE;}}return OP_LT;}return OP_NONE;}", "after": "public static CmpOp GetOperator(String value){int len = value.Length;if (len < 1){return OP_NONE;}char firstChar = value[0];switch (firstChar){case '=':return OP_EQ;case '>':if (len > 1){switch (value[1]){case '=':return OP_GE;}}return OP_GT;case '<':if (len > 1){switch (value[1]){case '=':return OP_LE;case '>':return OP_NE;}}return OP_LT;}return OP_NONE;}" }, { "index": 7814, "before": "public void addChars( char[] characters, int[] widths ){for ( int i = 0; i < characters.length; i++ ){charWidths.put( Character.valueOf(characters[i]), Integer.valueOf(widths[i]));}}", "after": "public void AddChars(char[] Chars, int[] widths){for (int i = 0; i < Chars.Length; i++){if (Chars[i] != ' '){charWidths[Chars[i]] = widths[i];}}}" }, { "index": 7815, "before": "public ShortBuffer duplicate() {return copy(this, mark);}", "after": "public override java.nio.ShortBuffer duplicate(){return copy(this, _mark);}" }, { "index": 7816, "before": "public void setValidating(boolean validating) {features.put (XmlPullParser.FEATURE_VALIDATION, validating);}", "after": "public virtual void setValidating(bool validating){features.put(org.xmlpull.v1.XmlPullParserClass.FEATURE_VALIDATION, validating);}" }, { "index": 7817, "before": "public DedicatedCapacityInner create(String resourceGroupName, String dedicatedCapacityName, DedicatedCapacityInner capacityParameters) {return createWithServiceResponseAsync(resourceGroupName, dedicatedCapacityName, capacityParameters).toBlocking().last().body();}", "after": "public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string dedicatedCapacityName, DedicatedCapacity capacityParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)){return await innerCapacityOperations.CreateWithHttpMessagesAsync(resourceGroupName, dedicatedCapacityName, capacityParameters, customHeaders, cancellationToken).ConfigureAwait(false);}" }, { "index": 7818, "before": "public CancelIngestionResult cancelIngestion(CancelIngestionRequest request) {request = beforeClientExecution(request);return executeCancelIngestion(request);}", "after": "public virtual CancelIngestionResponse CancelIngestion(CancelIngestionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelIngestionRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelIngestionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7819, "before": "public void setEncoding(String encodingName) {encoding = Charset.forName(encodingName);}", "after": "public virtual void SetEncoding(string encodingName){encoding = Sharpen.Extensions.GetEncoding(encodingName);}" }, { "index": 7820, "before": "public DeleteTemplateAliasResult deleteTemplateAlias(DeleteTemplateAliasRequest request) {request = beforeClientExecution(request);return executeDeleteTemplateAlias(request);}", "after": "public virtual DeleteTemplateAliasResponse DeleteTemplateAlias(DeleteTemplateAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTemplateAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTemplateAliasResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7821, "before": "public String resolveNameXText(int refIndex, int definedNameIndex, InternalWorkbook workbook) {int extBookIndex = _externSheetRecord.getExtbookIndexFromRefIndex(refIndex);int firstTabIndex = _externSheetRecord.getFirstSheetIndexFromRefIndex(refIndex);if (firstTabIndex == -1) {throw new RuntimeException(\"Referenced sheet could not be found\");}ExternalBookBlock externalBook = _externalBookBlocks[extBookIndex];if (externalBook._externalNameRecords.length > definedNameIndex) {return _externalBookBlocks[extBookIndex].getNameText(definedNameIndex);} else if (firstTabIndex == -2) {NameRecord nr = getNameRecord(definedNameIndex);int sheetNumber = nr.getSheetNumber();StringBuilder text = new StringBuilder(64);if (sheetNumber > 0) {String sheetName = workbook.getSheetName(sheetNumber - 1);SheetNameFormatter.appendFormat(text, sheetName);text.append(\"!\");}text.append(nr.getNameText());return text.toString();} else {throw new ArrayIndexOutOfBoundsException(\"Ext Book Index relative but beyond the supported length, was \" +extBookIndex + \" but maximum is \" + _externalBookBlocks.length);}}", "after": "public String ResolveNameXText(int refIndex, int definedNameIndex, InternalWorkbook workbook){int extBookIndex = _externSheetRecord.GetExtbookIndexFromRefIndex(refIndex);int firstTabIndex = _externSheetRecord.GetFirstSheetIndexFromRefIndex(refIndex);if (firstTabIndex == -1){throw new RuntimeException(\"Referenced sheet could not be found\");}ExternalBookBlock externalBook = _externalBookBlocks[extBookIndex];if (externalBook._externalNameRecords.Length > definedNameIndex){return _externalBookBlocks[extBookIndex].GetNameText(definedNameIndex);}else if (firstTabIndex == -2){NameRecord nr = GetNameRecord(definedNameIndex);int sheetNumber = nr.SheetNumber;StringBuilder text = new StringBuilder();if (sheetNumber > 0){String sheetName = workbook.GetSheetName(sheetNumber - 1);SheetNameFormatter.AppendFormat(text, sheetName);text.Append(\"!\");}text.Append(nr.NameText);return text.ToString();}else{throw new IndexOutOfRangeException(\"Ext Book Index relative but beyond the supported length, was \" +extBookIndex + \" but maximum is \" + _externalBookBlocks.Length);}}" }, { "index": 7822, "before": "public InetAddress getRemoteAddress() {return peer;}", "after": "public virtual IPAddress GetRemoteAddress(){return peer;}" }, { "index": 7823, "before": "public boolean equals(Object obj) {if (obj == this) {return true;}else if (!(obj instanceof LexerTypeAction)) {return false;}return type == ((LexerTypeAction)obj).type;}", "after": "public override bool Equals(object obj){if (obj == this){return true;}else{if (!(obj is Antlr4.Runtime.Atn.LexerTypeAction)){return false;}}return type == ((Antlr4.Runtime.Atn.LexerTypeAction)obj).type;}" }, { "index": 7824, "before": "public RefValueArray(RefEval ref) {super(ref.getNumberOfSheets());_ref = ref;_width = ref.getNumberOfSheets();}", "after": "public RefValueArray(RefEval ref1): base(ref1.NumberOfSheets){_ref = ref1;_width = ref1.NumberOfSheets;}" }, { "index": 7825, "before": "public static Git wrap(Repository repo) {return new Git(repo);}", "after": "public static NGit.Api.Git Wrap(Repository repo){return new NGit.Api.Git(repo);}" }, { "index": 7826, "before": "public int get64BitNormalisedExponent() {return _binaryExponent + _significand.bitLength() - C_64;}", "after": "public int Get64BitNormalisedExponent(){return _binaryExponent + _significand.BitLength() - C_64;}" }, { "index": 7827, "before": "public GetRepoWebhookRequest() {super(\"cr\", \"2016-06-07\", \"GetRepoWebhook\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/webhooks\");setMethod(MethodType.GET);}", "after": "public GetRepoWebhookRequest(): base(\"cr\", \"2016-06-07\", \"GetRepoWebhook\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/webhooks\";Method = MethodType.GET;}" }, { "index": 7828, "before": "public Object merge(Object first, Object second) {List outputList = new ArrayList<>();if (!(first instanceof List)) {outputList.add((T) first);} else {outputList.addAll((List) first);}if (!(second instanceof List)) {outputList.add((T) second);} else {outputList.addAll((List) second);}return outputList;}", "after": "public override object Merge(object first, object second){IList outputList = new JCG.List();if (!(first is IList firstList)){outputList.Add((T)first);}else{foreach (T value in firstList){outputList.Add(value);}}if (!(second is IList secondList)){outputList.Add((T)second);}else{foreach (T value in secondList){outputList.Add(value);}}return outputList;}" }, { "index": 7829, "before": "public UpdateThreatIntelSetResult updateThreatIntelSet(UpdateThreatIntelSetRequest request) {request = beforeClientExecution(request);return executeUpdateThreatIntelSet(request);}", "after": "public virtual UpdateThreatIntelSetResponse UpdateThreatIntelSet(UpdateThreatIntelSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateThreatIntelSetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateThreatIntelSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7830, "before": "public final float getFloat(int index) {return Float.intBitsToFloat(getInt(index));}", "after": "public sealed override float getFloat(int index){return Sharpen.Util.IntBitsToFloat(getInt(index));}" }, { "index": 7831, "before": "public SortingFields(final Fields in, FieldInfos infos, Sorter.DocMap docMap) {super(in);this.docMap = docMap;this.infos = infos;}", "after": "public SortingFields(Fields input, FieldInfos infos, Sorter.DocMap docMap): base(input){this.docMap = docMap;this.infos = infos;}" }, { "index": 7832, "before": "public static SupBookRecord createAddInFunctions() {return new SupBookRecord(true, (short)1 );}", "after": "public static SupBookRecord CreateAddInFunctions(){return new SupBookRecord(true, (short)1);}" }, { "index": 7833, "before": "public ImportClientVpnClientCertificateRevocationListResult importClientVpnClientCertificateRevocationList(ImportClientVpnClientCertificateRevocationListRequest request) {request = beforeClientExecution(request);return executeImportClientVpnClientCertificateRevocationList(request);}", "after": "public virtual ImportClientVpnClientCertificateRevocationListResponse ImportClientVpnClientCertificateRevocationList(ImportClientVpnClientCertificateRevocationListRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportClientVpnClientCertificateRevocationListRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportClientVpnClientCertificateRevocationListResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7834, "before": "public GetVoiceConnectorOriginationResult getVoiceConnectorOrigination(GetVoiceConnectorOriginationRequest request) {request = beforeClientExecution(request);return executeGetVoiceConnectorOrigination(request);}", "after": "public virtual GetVoiceConnectorOriginationResponse GetVoiceConnectorOrigination(GetVoiceConnectorOriginationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceConnectorOriginationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceConnectorOriginationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7835, "before": "public GetTypedLinkFacetInformationResult getTypedLinkFacetInformation(GetTypedLinkFacetInformationRequest request) {request = beforeClientExecution(request);return executeGetTypedLinkFacetInformation(request);}", "after": "public virtual GetTypedLinkFacetInformationResponse GetTypedLinkFacetInformation(GetTypedLinkFacetInformationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTypedLinkFacetInformationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTypedLinkFacetInformationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7836, "before": "public PhraseSlopQueryNode(QueryNode query, int value) {if (query == null) {throw new QueryNodeError(new MessageImpl(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED, \"query\", \"null\"));}this.value = value;setLeaf(false);allocate();add(query);}", "after": "public PhraseSlopQueryNode(IQueryNode query, int value){if (query == null){throw new QueryNodeError(new Message(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED, \"query\", \"null\"));}this.value = value;IsLeaf = false;Allocate();Add(query);}" }, { "index": 7837, "before": "public UpdateDeploymentGroupResult updateDeploymentGroup(UpdateDeploymentGroupRequest request) {request = beforeClientExecution(request);return executeUpdateDeploymentGroup(request);}", "after": "public virtual UpdateDeploymentGroupResponse UpdateDeploymentGroup(UpdateDeploymentGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDeploymentGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDeploymentGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7838, "before": "public DeleteVaultNotificationsRequest(String accountId, String vaultName) {setAccountId(accountId);setVaultName(vaultName);}", "after": "public DeleteVaultNotificationsRequest(string accountId, string vaultName){_accountId = accountId;_vaultName = vaultName;}" }, { "index": 7839, "before": "@Override public boolean contains(Object key) {return subMap.containsKey(key);}", "after": "public override bool contains(object o){return this._enclosing.containsKey(o);}" }, { "index": 7840, "before": "public int get(String name, int dflt) {int vals[] = (int[]) valByRound.get(name);if (vals != null) {return vals[roundNumber % vals.length];}String sval = props.getProperty(name, \"\" + dflt);if (sval.indexOf(\":\") < 0) {return Integer.parseInt(sval);}int k = sval.indexOf(\":\");String colName = sval.substring(0, k);sval = sval.substring(k + 1);colForValByRound.put(name, colName);vals = propToIntArray(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": 7841, "before": "public DeleteGitHubAccountTokenResult deleteGitHubAccountToken(DeleteGitHubAccountTokenRequest request) {request = beforeClientExecution(request);return executeDeleteGitHubAccountToken(request);}", "after": "public virtual DeleteGitHubAccountTokenResponse DeleteGitHubAccountToken(DeleteGitHubAccountTokenRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGitHubAccountTokenRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGitHubAccountTokenResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7842, "before": "public GetPasswordDataRequest(String instanceId) {setInstanceId(instanceId);}", "after": "public GetPasswordDataRequest(string instanceId){_instanceId = instanceId;}" }, { "index": 7843, "before": "public GetCloudFrontOriginAccessIdentityConfigRequest(String id) {setId(id);}", "after": "public GetCloudFrontOriginAccessIdentityConfigRequest(string id){_id = id;}" }, { "index": 7844, "before": "public STSAssumeRoleSessionCredentialsProvider withRoleSessionDurationSeconds(long roleSessionDurationSeconds) {if (roleSessionDurationSeconds < 900 || roleSessionDurationSeconds > 3600) {throw new IllegalArgumentException(\"Assume Role session duration should be in the range of 15min - 1Hr\");}this.roleSessionDurationSeconds = roleSessionDurationSeconds;return this;}", "after": "public void WithRoleSessionDurationSeconds(long roleSessionDurationSeconds){if (roleSessionDurationSeconds < 180 || roleSessionDurationSeconds > 3600){throw new ArgumentOutOfRangeException(\"Assume Role session duration should be in the range of 3min - 1Hr\");}this.roleSessionDurationSeconds = roleSessionDurationSeconds;}" }, { "index": 7845, "before": "final public QueryNode ModClause(CharSequence field) throws ParseException {QueryNode q;ModifierQueryNode.Modifier mods;mods = Modifiers();q = Clause(field);if (mods != ModifierQueryNode.Modifier.MOD_NONE) {q = new ModifierQueryNode(q, mods);}{if (true) return q;}throw new Error(\"Missing return statement in function\");}", "after": "public IQueryNode ModClause(string field){IQueryNode q;Modifier mods;mods = Modifiers();q = Clause(field);if (mods != Modifier.MOD_NONE){q = new ModifierQueryNode(q, mods);}{ if (true) return q; }throw new Exception(\"Missing return statement in function\");}" }, { "index": 7846, "before": "public AbbreviatedObjectId getOldId(int nthParent) {return oldIds[nthParent];}", "after": "public virtual AbbreviatedObjectId GetOldId(int nthParent){return oldIds[nthParent];}" }, { "index": 7847, "before": "public HttpRequest(String strUrl, Map tmpHeaders) {super(strUrl);if (null != tmpHeaders) {this.headers = tmpHeaders;}}", "after": "public HttpRequest(string strUrl, Dictionary tmpHeaders){Url = strUrl;if (null != tmpHeaders){Headers = tmpHeaders;}}" }, { "index": 7848, "before": "public AcceptInvitationResult acceptInvitation(AcceptInvitationRequest request) {request = beforeClientExecution(request);return executeAcceptInvitation(request);}", "after": "public virtual AcceptInvitationResponse AcceptInvitation(AcceptInvitationRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptInvitationRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptInvitationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7849, "before": "public int getFormatIndex(CellValueRecordInterface cell) {ExtendedFormatRecord xfr = _xfRecords.get(cell.getXFIndex());if (xfr == null) {logger.log( POILogger.ERROR, \"Cell \" + cell.getRow() + \",\" + cell.getColumn()+ \" uses XF with index \" + cell.getXFIndex() + \", but we don't have that\");return -1;}return xfr.getFormatIndex();}", "after": "public int GetFormatIndex(CellValueRecordInterface cell){ExtendedFormatRecord xfr = (ExtendedFormatRecord)xfRecords[cell.XFIndex];if (xfr == null){logger.Log(POILogger.ERROR, \"Cell \" + cell.Row + \",\" + cell.Column + \" uses XF with index \" + cell.XFIndex + \", but we don't have that\");return -1;}return xfr.FormatIndex;}" }, { "index": 7850, "before": "public final File getFile() {return path;}", "after": "public FilePath GetFile(){return path;}" }, { "index": 7851, "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 >>> 4) & 15;values[valuesOffset++] = block & 15;}}", "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 >> 4)) & 15;values[valuesOffset++] = block & 15;}}" }, { "index": 7852, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName());sb.append(\" [\");if (externalWorkbookNumber >= 0) {sb.append(\" [\");sb.append(\"workbook=\").append(getExternalWorkbookNumber());sb.append(\"] \");}sb.append(\"sheet=\").append(firstSheetName);if (lastSheetName != null) {sb.append(\" : \");sb.append(\"sheet=\").append(lastSheetName);}sb.append(\" ! \");sb.append(formatReferenceAsString());sb.append(\"]\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(this.GetType().Name);sb.Append(\" [\");if (externalWorkbookNumber >= 0){sb.Append(\" [\");sb.Append(\"workbook=\").Append(ExternalWorkbookNumber);sb.Append(\"] \");}sb.Append(\"sheet=\").Append(firstSheetName);if (lastSheetName != null){sb.Append(\" : \");sb.Append(\"sheet=\").Append(lastSheetName);}sb.Append(\" ! \");sb.Append(FormatReferenceAsString());sb.Append(\"]\");return sb.ToString();}" }, { "index": 7853, "before": "public PushCommand setRefSpecs(List specs) {checkCallable();this.refSpecs.clear();this.refSpecs.addAll(specs);return this;}", "after": "public virtual NGit.Api.PushCommand SetRefSpecs(IList specs){CheckCallable();this.refSpecs.Clear();Sharpen.Collections.AddAll(this.refSpecs, specs);return this;}" }, { "index": 7854, "before": "public static boolean isBinary(byte[] raw, int length) {if (length > FIRST_FEW_BYTES)length = FIRST_FEW_BYTES;for (int ptr = 0; ptr < length; ptr++)if (raw[ptr] == '\\0')return true;return false;}", "after": "public static bool IsBinary(byte[] raw, int length){if (length > FIRST_FEW_BYTES){length = FIRST_FEW_BYTES;}for (int ptr = 0; ptr < length; ptr++){if (raw[ptr] == '\\0'){return true;}}return false;}" }, { "index": 7855, "before": "@Override public void clear() {AbstractBiMap.this.clear();}", "after": "public override void clear(){this._enclosing.clear();}" }, { "index": 7856, "before": "public PackingPhase getPhase() {return phase;}", "after": "public virtual PackWriter.PackingPhase GetPhase(){return this.phase;}" }, { "index": 7857, "before": "public State clone() {State clone = new State();clone.attribute = attribute.clone();if (next != null) {clone.next = next.clone();}return clone;}", "after": "public object Clone(){State clone = new State();clone.attribute = (Attribute)attribute.Clone();if (next != null){clone.next = (State)next.Clone();}return clone;}" }, { "index": 7858, "before": "public static double acosh(double a) {return Math.log(Math.sqrt(a * a - 1.0d) + a);}", "after": "public static double Acosh(double a){return Math.Log(Math.Sqrt(a * a - 1.0d) + a);}" }, { "index": 7859, "before": "public GetSearchSuggestionsResult getSearchSuggestions(GetSearchSuggestionsRequest request) {request = beforeClientExecution(request);return executeGetSearchSuggestions(request);}", "after": "public virtual GetSearchSuggestionsResponse GetSearchSuggestions(GetSearchSuggestionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSearchSuggestionsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSearchSuggestionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7860, "before": "public static Date getJavaDate(double date, boolean use1904windowing, TimeZone tz) {return getJavaDate(date, use1904windowing, tz, false);}", "after": "public static DateTime getJavaDate(double date, bool use1904windowing, TimeZone tz){return GetJavaCalendar(date, use1904windowing, false);}" }, { "index": 7861, "before": "public ListVerifiedEmailAddressesResult listVerifiedEmailAddresses(ListVerifiedEmailAddressesRequest request) {request = beforeClientExecution(request);return executeListVerifiedEmailAddresses(request);}", "after": "public virtual ListVerifiedEmailAddressesResponse ListVerifiedEmailAddresses(ListVerifiedEmailAddressesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListVerifiedEmailAddressesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListVerifiedEmailAddressesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7862, "before": "public int compareTo(QualityQuery other) {try {int n = Integer.parseInt(queryID);int nOther = Integer.parseInt(other.queryID);return n - nOther;} catch (NumberFormatException e) {return queryID.compareTo(other.queryID);}}", "after": "public virtual int CompareTo(QualityQuery other){try{int n = int.Parse(queryID, CultureInfo.InvariantCulture);int nOther = int.Parse(other.queryID, CultureInfo.InvariantCulture);return n - nOther;}catch (FormatException ){return queryID.CompareToOrdinal(other.queryID);}}" }, { "index": 7863, "before": "public void setExportAll(boolean export) {exportAll = export;}", "after": "public virtual void SetExportAll(bool export){exportAll = export;}" }, { "index": 7864, "before": "public LexerATNConfig(LexerATNConfig c, ATNState state,PredictionContext context) {super(c, state, context, c.semanticContext);this.lexerActionExecutor = c.lexerActionExecutor;this.passedThroughNonGreedyDecision = checkNonGreedyDecision(c, state);}", "after": "public LexerATNConfig(LexerATNConfig c, ATNState state,PredictionContext context): base(c, state, context, c.semanticContext){this.lexerActionExecutor = c.lexerActionExecutor;this.passedThroughNonGreedyDecision = checkNonGreedyDecision(c, state);}" }, { "index": 7865, "before": "public DescribeScheduledActionsResult describeScheduledActions(DescribeScheduledActionsRequest request) {request = beforeClientExecution(request);return executeDescribeScheduledActions(request);}", "after": "public virtual DescribeScheduledActionsResponse DescribeScheduledActions(DescribeScheduledActionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScheduledActionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScheduledActionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7866, "before": "public boolean isAdjacentBefore(ColumnInfoRecord other) {return _lastCol == other._firstCol - 1;}", "after": "public bool IsAdjacentBefore(ColumnInfoRecord other){return _last_col == other._first_col - 1;}" }, { "index": 7867, "before": "public QueryScorer(Query query, IndexReader reader, String field, String defaultField) {this.defaultField = defaultField;init(query, field, reader, true);}", "after": "public QueryScorer(Query query, IndexReader reader, string field, string defaultField){this.defaultField = defaultField.Intern();Init(query, field, reader, true);}" }, { "index": 7868, "before": "public CreateConfigurationSetTrackingOptionsResult createConfigurationSetTrackingOptions(CreateConfigurationSetTrackingOptionsRequest request) {request = beforeClientExecution(request);return executeCreateConfigurationSetTrackingOptions(request);}", "after": "public virtual CreateConfigurationSetTrackingOptionsResponse CreateConfigurationSetTrackingOptions(CreateConfigurationSetTrackingOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConfigurationSetTrackingOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateConfigurationSetTrackingOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7869, "before": "public synchronized int offsetByCodePoints(int index, int codePointOffset) {return super.offsetByCodePoints(index, codePointOffset);}", "after": "public override int offsetByCodePoints(int index, int codePointOffset){lock (this){return base.offsetByCodePoints(index, codePointOffset);}}" }, { "index": 7870, "before": "public void write(char[] buf) {write(buf, 0, buf.length);}", "after": "public override void write(char[] buf){write(buf, 0, buf.Length);}" }, { "index": 7871, "before": "public GetSdkResult getSdk(GetSdkRequest request) {request = beforeClientExecution(request);return executeGetSdk(request);}", "after": "public virtual GetSdkResponse GetSdk(GetSdkRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSdkRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSdkResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7872, "before": "public PutEmailIdentityDkimAttributesResult putEmailIdentityDkimAttributes(PutEmailIdentityDkimAttributesRequest request) {request = beforeClientExecution(request);return executePutEmailIdentityDkimAttributes(request);}", "after": "public virtual PutEmailIdentityDkimAttributesResponse PutEmailIdentityDkimAttributes(PutEmailIdentityDkimAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutEmailIdentityDkimAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutEmailIdentityDkimAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7873, "before": "public WorkflowExecutionDetail describeWorkflowExecution(DescribeWorkflowExecutionRequest request) {request = beforeClientExecution(request);return executeDescribeWorkflowExecution(request);}", "after": "public virtual DescribeWorkflowExecutionResponse DescribeWorkflowExecution(DescribeWorkflowExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkflowExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkflowExecutionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7874, "before": "public CloudFrontOriginAccessIdentityConfig(String callerReference) {setCallerReference(callerReference);}", "after": "public CloudFrontOriginAccessIdentityConfig(string callerReference){_callerReference = callerReference;}" }, { "index": 7875, "before": "public final String validate(String uri, int start, int end, String name)throws URISyntaxException {for (int i = start; i < end; ) {char ch = uri.charAt(i);if ((ch >= 'a' && ch <= 'z')|| (ch >= 'A' && ch <= 'Z')|| (ch >= '0' && ch <= '9')|| isRetained(ch)) {i++;} else if (ch == '%') {if (i + 2 >= end) {throw new URISyntaxException(uri, \"Incomplete % sequence in \" + name, i);}int d1 = hexToInt(uri.charAt(i + 1));int d2 = hexToInt(uri.charAt(i + 2));if (d1 == -1 || d2 == -1) {throw new URISyntaxException(uri, \"Invalid % sequence: \"+ uri.substring(i, i + 3) + \" in \" + name, i);}i += 3;} else {throw new URISyntaxException(uri, \"Illegal character in \" + name, i);}}return uri.substring(start, end);}", "after": "public string validate(string uri, int start, int end, string name){{for (int i = start; i < end; ){char ch = uri[i];if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9') || isRetained(ch)){i++;}else{if (ch == '%'){if (i + 2 >= end){throw new java.net.URISyntaxException(uri, \"Incomplete % sequence in \" + name, i);}int d1 = hexToInt(uri[i + 1]);int d2 = hexToInt(uri[i + 2]);if (d1 == -1 || d2 == -1){throw new java.net.URISyntaxException(uri, \"Invalid % sequence: \" + Sharpen.StringHelper.Substring(uri, i, i + 3) + \" in \" + name, i);}i += 3;}else{throw new java.net.URISyntaxException(uri, \"Illegal character in \" + name, i);}}}}return Sharpen.StringHelper.Substring(uri, start, end);}" }, { "index": 7876, "before": "public UnbufferedCharStream(Reader input, int bufferSize) {this(bufferSize);this.input = input;fill(1); }", "after": "public UnbufferedCharStream(TextReader input, int bufferSize): this(bufferSize){this.input = input;Fill(1);}" }, { "index": 7877, "before": "public ContinuableRecordInput(RecordInputStream in){_in = in;}", "after": "public ContinuableRecordInput(RecordInputStream in1){_in = in1;}" }, { "index": 7878, "before": "public StoredFieldsReader clone() {if (in == null) {throw new AlreadyClosedException(\"this FieldsReader is closed\");}return new SimpleTextStoredFieldsReader(offsets, in.clone(), fieldInfos);}", "after": "public override object Clone(){if (_input == null){throw new ObjectDisposedException(this.GetType().GetTypeInfo().FullName, \"this FieldsReader is closed\");}return new SimpleTextStoredFieldsReader(_offsets, (IndexInput) _input.Clone(), _fieldInfos);}" }, { "index": 7879, "before": "public Initial(LittleEndianInput in) {_reserved0 = in.readInt();_reserved1 = in.readUShort();_reserved2 = in.readUByte();}", "after": "public Initial(ILittleEndianInput in1){_reserved0 = in1.ReadInt();_reserved1 = in1.ReadUShort();_reserved2 = in1.ReadUByte();}" }, { "index": 7880, "before": "public synchronized int getProgress() {return mIndeterminate ? 0 : mProgress;}", "after": "public virtual int getProgress(){lock (this){return mIndeterminate ? 0 : mProgress;}}" }, { "index": 7881, "before": "public CreateNamedQueryResult createNamedQuery(CreateNamedQueryRequest request) {request = beforeClientExecution(request);return executeCreateNamedQuery(request);}", "after": "public virtual CreateNamedQueryResponse CreateNamedQuery(CreateNamedQueryRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNamedQueryRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNamedQueryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7882, "before": "public static DoubleBuffer allocate(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}return new ReadWriteDoubleArrayBuffer(capacity);}", "after": "public static java.nio.DoubleBuffer allocate(int capacity_1){if (capacity_1 < 0){throw new System.ArgumentException();}return new java.nio.ReadWriteDoubleArrayBuffer(capacity_1);}" }, { "index": 7883, "before": "public final String toString() {return getClass().getName() + \" [\" + _operator.getRepresentation() + getValueText() + \"]\";}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(this.GetType().Name).Append(\" [\");sb.Append(_operator.Representation);sb.Append(ValueText);sb.Append(\"]\");return sb.ToString();}" }, { "index": 7884, "before": "public LongBuffer asReadOnlyBuffer() {return ReadOnlyLongArrayBuffer.copy(this, mark);}", "after": "public override java.nio.LongBuffer asReadOnlyBuffer(){return java.nio.ReadOnlyLongArrayBuffer.copy(this, _mark);}" }, { "index": 7885, "before": "public CreateFlowDefinitionResult createFlowDefinition(CreateFlowDefinitionRequest request) {request = beforeClientExecution(request);return executeCreateFlowDefinition(request);}", "after": "public virtual CreateFlowDefinitionResponse CreateFlowDefinition(CreateFlowDefinitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFlowDefinitionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFlowDefinitionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7886, "before": "public GetOpenIdTokenResult getOpenIdToken(GetOpenIdTokenRequest request) {request = beforeClientExecution(request);return executeGetOpenIdToken(request);}", "after": "public virtual GetOpenIdTokenResponse GetOpenIdToken(GetOpenIdTokenRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOpenIdTokenRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOpenIdTokenResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7887, "before": "public GetDocumentationPartResult getDocumentationPart(GetDocumentationPartRequest request) {request = beforeClientExecution(request);return executeGetDocumentationPart(request);}", "after": "public virtual GetDocumentationPartResponse GetDocumentationPart(GetDocumentationPartRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDocumentationPartRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDocumentationPartResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7888, "before": "public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {int nArgs = args.length;if (nArgs < 2) {return ErrorEval.VALUE_INVALID;}try {double rate = NumericFunction.singleOperandEvaluate(args[0], srcRowIndex, srcColumnIndex);ValueEval[] vargs = new ValueEval[args.length-1];System.arraycopy(args, 1, vargs, 0, vargs.length);double[] values = AggregateFunction.ValueCollector.collectValues(vargs);double result = FinanceLib.npv(rate, values);NumericFunction.checkValue(result);return new NumberEval(result);} catch (EvaluationException e) {return e.getErrorEval();}}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){int nArgs = args.Length;if (nArgs < 2){return ErrorEval.VALUE_INVALID;}try{double rate = NumericFunction.SingleOperandEvaluate(args[0], srcRowIndex, srcColumnIndex);ValueEval[] vargs = new ValueEval[args.Length - 1];Array.Copy(args, 1, vargs, 0, vargs.Length);double[] values = AggregateFunction.ValueCollector.CollectValues(vargs);double result = FinanceLib.npv(rate, values);NumericFunction.CheckValue(result);return new NumberEval(result);}catch (EvaluationException e){return e.GetErrorEval();}}" }, { "index": 7889, "before": "public String suggestFileExtension() {switch (EscherRecordTypes.forTypeID(blip.getRecordId())) {case BLIP_WMF:return \"wmf\";case BLIP_EMF:return \"emf\";case BLIP_PICT:return \"pict\";case BLIP_PNG:return \"png\";case BLIP_JPEG:return \"jpeg\";case BLIP_DIB:return \"dib\";default:return \"\";}}", "after": "public String SuggestFileExtension(){switch (blip.RecordId){case EscherMetafileBlip.RECORD_ID_WMF:return \"wmf\";case EscherMetafileBlip.RECORD_ID_EMF:return \"emf\";case EscherMetafileBlip.RECORD_ID_PICT:return \"pict\";case EscherBitmapBlip.RECORD_ID_PNG:return \"png\";case EscherBitmapBlip.RECORD_ID_JPEG:return \"jpeg\";case EscherBitmapBlip.RECORD_ID_DIB:return \"dib\";default:return \"\";}}" }, { "index": 7890, "before": "public AsyncResponsePostRequest() {super(\"industry-brain\", \"2018-07-12\", \"AsyncResponsePost\");setMethod(MethodType.POST);}", "after": "public AsyncResponsePostRequest(): base(\"industry-brain\", \"2018-07-12\", \"AsyncResponsePost\"){Method = MethodType.POST;}" }, { "index": 7891, "before": "public static final RevFilter between(long since, long until) {return new Between(since, until);}", "after": "public static RevFilter Between(long since, long until){return new CommitTimeRevFilterBetween(since, until);}" }, { "index": 7892, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1) {double val;double d1;try {val = singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);d1 = singleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {return e.getErrorEval();}int nPlaces = (int)d1;if (nPlaces > 127) {return ErrorEval.VALUE_INVALID;}return new NumberEval(val);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){double result;try{double d0 = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);result = Evaluate(d0, d1);NumericFunction.CheckValue(result);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}" }, { "index": 7893, "before": "public Iterator iterator() {return new MyIterator();}", "after": "public override Sharpen.Iterator Iterator(){return new BlockList.MyIterator(this);}" }, { "index": 7894, "before": "public void reset(int[] docs, long[] offsets) {this.docs = docs;this.offsets = offsets;}", "after": "public void Reset(int[] docs, long[] offsets){this.docs = docs;this.offsets = offsets;}" }, { "index": 7895, "before": "public ObjectId getObjectId() {return object;}", "after": "public virtual ObjectId GetObjectId(){return @object;}" }, { "index": 7896, "before": "public String toString() {return \"fileName=\" + fileName + \" size=\" + size;}", "after": "public override string ToString(){return string.Format(\"fileName={0} length={1}\", FileName, Length);}" }, { "index": 7897, "before": "public boolean isSubTotal(int rowIndex, int columnIndex){SheetRefEvaluator _sre = _evaluator.getSheetEvaluator(_evaluator.getFirstSheetIndex());return _sre.isSubTotal(getFirstRow() + rowIndex, getFirstColumn() + columnIndex);}", "after": "public override bool IsSubTotal(int rowIndex, int columnIndex){SheetRefEvaluator _sre = _evaluator.GetSheetEvaluator(_evaluator.FirstSheetIndex);return _sre.IsSubTotal(FirstRow + rowIndex, FirstColumn + columnIndex);}" }, { "index": 7898, "before": "public DeleteCollectionResult deleteCollection(DeleteCollectionRequest request) {request = beforeClientExecution(request);return executeDeleteCollection(request);}", "after": "public virtual DeleteCollectionResponse DeleteCollection(DeleteCollectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCollectionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCollectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7899, "before": "public void write(byte[] b) {writeContinueIfRequired(b.length);_ulrOutput.write(b);}", "after": "public void Write(byte[] b){_out.Write(b);_size += b.Length;}" }, { "index": 7900, "before": "public Drawable getIndeterminateDrawable() {return mIndeterminateDrawable;}", "after": "public virtual android.graphics.drawable.Drawable getIndeterminateDrawable(){return mIndeterminateDrawable;}" }, { "index": 7901, "before": "public void write(byte[] b, int offset, int len) {checkPosition(len);System.arraycopy(b, offset, _buf, _writeIndex, len);_writeIndex += len;}", "after": "public void Write(byte[] b, int offset, int len){CheckPosition(len);System.Array.Copy(b, offset, _buf, _writeIndex, len);_writeIndex += len;}" }, { "index": 7902, "before": "public ListWebsiteCertificateAuthoritiesResult listWebsiteCertificateAuthorities(ListWebsiteCertificateAuthoritiesRequest request) {request = beforeClientExecution(request);return executeListWebsiteCertificateAuthorities(request);}", "after": "public virtual ListWebsiteCertificateAuthoritiesResponse ListWebsiteCertificateAuthorities(ListWebsiteCertificateAuthoritiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListWebsiteCertificateAuthoritiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListWebsiteCertificateAuthoritiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7903, "before": "public RevWalk(ObjectReader or, int depth) {super(or);this.depth = depth;this.deepenNots = Collections.emptyList();this.UNSHALLOW = newFlag(\"UNSHALLOW\"); this.REINTERESTING = newFlag(\"REINTERESTING\"); this.DEEPEN_NOT = newFlag(\"DEEPEN_NOT\"); }", "after": "public RevWalk(ObjectReader or, int depth) : base(or){this.depth = depth;this.UNSHALLOW = NewFlag(\"UNSHALLOW\");this.REINTERESTING = NewFlag(\"REINTERESTING\");}" }, { "index": 7904, "before": "public DeleteLogStreamRequest(String logGroupName, String logStreamName) {setLogGroupName(logGroupName);setLogStreamName(logStreamName);}", "after": "public DeleteLogStreamRequest(string logGroupName, string logStreamName){_logGroupName = logGroupName;_logStreamName = logStreamName;}" }, { "index": 7905, "before": "public PrintWriter append(CharSequence csq) {if (csq == null) {csq = \"null\";}append(csq, 0, csq.length());return this;}", "after": "public override java.io.Writer append(java.lang.CharSequence csq){if (csq == null){csq = java.lang.CharSequenceProxy.Wrap(\"null\");}append(csq, 0, csq.Length);return this;}" }, { "index": 7906, "before": "public boolean include(TreeWalk walker)throws MissingObjectException,IncorrectObjectTypeException, IOException {count++;if (count % stepSize == 0) {if (count <= total)monitor.update(stepSize);if (monitor.isCancelled())throw StopWalkException.INSTANCE;}return true;}", "after": "public override bool Include(TreeWalk walker){count++;if (count % stepSize == 0){if (count <= total){monitor.Update(stepSize);}if (monitor.IsCancelled()){throw StopWalkException.INSTANCE;}}return true;}" }, { "index": 7907, "before": "public RevObject getObjectId() {return id;}", "after": "public virtual RevObject GetObjectId(){return id;}" }, { "index": 7908, "before": "public void setFlushOnEnd(boolean flushOnEnd) {this.flushOnEnd = flushOnEnd;}", "after": "public virtual void SetFlushOnEnd(bool flushOnEnd){this.flushOnEnd = flushOnEnd;}" }, { "index": 7909, "before": "public ListAutoMLJobsResult listAutoMLJobs(ListAutoMLJobsRequest request) {request = beforeClientExecution(request);return executeListAutoMLJobs(request);}", "after": "public virtual ListAutoMLJobsResponse ListAutoMLJobs(ListAutoMLJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAutoMLJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAutoMLJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7910, "before": "public void addBuilder(String nodeName, SpanQueryBuilder builder) {builders.put(nodeName, builder);}", "after": "public virtual void AddBuilder(string nodeName, ISpanQueryBuilder builder){builders[nodeName] = builder;}" }, { "index": 7911, "before": "public DescribeReplicationGroupsResult describeReplicationGroups() {return describeReplicationGroups(new DescribeReplicationGroupsRequest());}", "after": "public virtual DescribeReplicationGroupsResponse DescribeReplicationGroups(){return DescribeReplicationGroups(new DescribeReplicationGroupsRequest());}" }, { "index": 7912, "before": "public void removeAllCellsValuesForRow(int rowIndex) {if (rowIndex < 0 || rowIndex > MAX_ROW_INDEX) {throw new IllegalArgumentException(\"Specified rowIndex \" + rowIndex+ \" is outside the allowable range (0..\" +MAX_ROW_INDEX + \")\");}if (rowIndex >= records.length) {return;}records[rowIndex] = null;}", "after": "public void RemoveAllCellsValuesForRow(int rowIndex){if (rowIndex < 0 || rowIndex > MAX_ROW_INDEX){throw new ArgumentException(\"Specified rowIndex \" + rowIndex+ \" is outside the allowable range (0..\" + MAX_ROW_INDEX + \")\");}if (rowIndex >= records.Length){return;}records[rowIndex] = null;}" }, { "index": 7913, "before": "public DeleteProxySessionResult deleteProxySession(DeleteProxySessionRequest request) {request = beforeClientExecution(request);return executeDeleteProxySession(request);}", "after": "public virtual DeleteProxySessionResponse DeleteProxySession(DeleteProxySessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteProxySessionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteProxySessionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7914, "before": "public DescribePoliciesResult describePolicies() {return describePolicies(new DescribePoliciesRequest());}", "after": "public virtual DescribePoliciesResponse DescribePolicies(){return DescribePolicies(new DescribePoliciesRequest());}" }, { "index": 7915, "before": "public NumberFormatIndexRecord(RecordInputStream in) {field_1_formatIndex = in.readShort();}", "after": "public NumberFormatIndexRecord(RecordInputStream in1){field_1_formatIndex = in1.ReadShort();}" }, { "index": 7916, "before": "public CreatePrivateVirtualInterfaceResult createPrivateVirtualInterface(CreatePrivateVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeCreatePrivateVirtualInterface(request);}", "after": "public virtual CreatePrivateVirtualInterfaceResponse CreatePrivateVirtualInterface(CreatePrivateVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePrivateVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePrivateVirtualInterfaceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7917, "before": "@Override public E get(int location) {return list.get(location);}", "after": "public virtual E get(int location){return list.get(location);}" }, { "index": 7918, "before": "public String getPath() {return decode(path);}", "after": "public string getPath(){return decode(path);}" }, { "index": 7919, "before": "public static String longToHex(long value) {StringBuilder sb = new StringBuilder(18);writeHex(sb, value, 16, \"0x\");return sb.toString();}", "after": "public static char[] LongToHex(long value){return ToHexChars(value, 8);}" }, { "index": 7920, "before": "public RevFilter clone() {return new Binary(a.clone(), b.clone());}", "after": "public override RevFilter Clone(){return new OrRevFilter.Binary(a.Clone(), b.Clone());}" }, { "index": 7921, "before": "public int compareTo( Toffs other ) {int diff = getStartOffset() - other.getStartOffset();if ( diff != 0 ) {return diff;}return getEndOffset() - other.getEndOffset();}", "after": "public virtual int CompareTo(Toffs other){int diff = StartOffset - other.StartOffset;if (diff != 0){return diff;}return EndOffset - other.EndOffset;}" }, { "index": 7922, "before": "public UpdateNetworkProfileResult updateNetworkProfile(UpdateNetworkProfileRequest request) {request = beforeClientExecution(request);return executeUpdateNetworkProfile(request);}", "after": "public virtual UpdateNetworkProfileResponse UpdateNetworkProfile(UpdateNetworkProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateNetworkProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateNetworkProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7923, "before": "public GetRelationalDatabaseParametersResult getRelationalDatabaseParameters(GetRelationalDatabaseParametersRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseParameters(request);}", "after": "public virtual GetRelationalDatabaseParametersResponse GetRelationalDatabaseParameters(GetRelationalDatabaseParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseParametersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7924, "before": "public boolean contains(Object object) {return indexOf(object, 0) != -1;}", "after": "public override bool contains(object @object){return indexOf(@object, 0) != -1;}" }, { "index": 7925, "before": "public boolean remove(Object object) {return removeFirstOccurrenceImpl(object);}", "after": "public override bool remove(object @object){return removeFirstOccurrenceImpl(@object);}" }, { "index": 7926, "before": "public DConRefRecord(RecordInputStream inStream) {if (inStream.getSid() != sid) {throw new RecordFormatException(\"Wrong sid: \" + inStream.getSid());}firstRow = inStream.readUShort();lastRow = inStream.readUShort();firstCol = inStream.readUByte();lastCol = inStream.readUByte();charCount = inStream.readUShort();charType = inStream.readUByte() & 0x01;final int byteLength = charCount * (charType + 1);path = IOUtils.safelyAllocate(byteLength, MAX_RECORD_LENGTH);inStream.readFully(path);if (path[0] == 0x02) {_unused = inStream.readRemainder();}}", "after": "public DConRefRecord(RecordInputStream inStream){if (inStream.Sid != sid)throw new RecordFormatException(\"Wrong sid: \" + inStream.Sid);firstRow = inStream.ReadUShort();lastRow = inStream.ReadUShort();firstCol = inStream.ReadUByte();lastCol = inStream.ReadUByte();charCount = inStream.ReadUShort();charType = inStream.ReadUByte() & 0x01; int byteLength = charCount * (charType + 1);path = new byte[byteLength];inStream.ReadFully(path);if (path[0] == 0x02)_unused = inStream.ReadRemainder();}" }, { "index": 7927, "before": "public int getSheetIndex(EvaluationSheet evalSheet) {HSSFSheet sheet = ((HSSFEvaluationSheet)evalSheet).getHSSFSheet();return _uBook.getSheetIndex(sheet);}", "after": "public int GetSheetIndex(IEvaluationSheet evalSheet){HSSFSheet sheet = ((HSSFEvaluationSheet)evalSheet).HSSFSheet;return _uBook.GetSheetIndex(sheet);}" }, { "index": 7928, "before": "public synchronized int codePointAt(int index) {return super.codePointAt(index);}", "after": "public override int codePointAt(int index){lock (this){return base.codePointAt(index);}}" }, { "index": 7929, "before": "public DeleteRepoBuildRuleRequest() {super(\"cr\", \"2016-06-07\", \"DeleteRepoBuildRule\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]\");setMethod(MethodType.DELETE);}", "after": "public DeleteRepoBuildRuleRequest(): base(\"cr\", \"2016-06-07\", \"DeleteRepoBuildRule\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]\";Method = MethodType.DELETE;}" }, { "index": 7930, "before": "public UpdateEmailChannelResult updateEmailChannel(UpdateEmailChannelRequest request) {request = beforeClientExecution(request);return executeUpdateEmailChannel(request);}", "after": "public virtual UpdateEmailChannelResponse UpdateEmailChannel(UpdateEmailChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateEmailChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateEmailChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7931, "before": "public TabIdRecord(RecordInputStream in) {int nTabs = in.remaining() / 2;_tabids = new short[nTabs];for (int i = 0; i < _tabids.length; i++) {_tabids[i] = in.readShort();}}", "after": "public TabIdRecord(RecordInputStream in1){_tabids = new short[in1.Remaining / 2];for (int k = 0; k < _tabids.Length; k++){_tabids[k] = in1.ReadShort();}}" }, { "index": 7932, "before": "public String toFormulaString(){return \",\";}", "after": "public override String ToFormulaString(){return \",\";}" }, { "index": 7933, "before": "public CreateConnectionResult createConnection(CreateConnectionRequest request) {request = beforeClientExecution(request);return executeCreateConnection(request);}", "after": "public virtual CreateConnectionResponse CreateConnection(CreateConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateConnectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7934, "before": "public int calculateWorkdays(double start, double end, double[] holidays) {int saturdaysPast = this.pastDaysOfWeek(start, end, Calendar.SATURDAY);int sundaysPast = this.pastDaysOfWeek(start, end, Calendar.SUNDAY);int nonWeekendHolidays = this.calculateNonWeekendHolidays(start, end, holidays);return (int) (end - start + 1) - saturdaysPast - sundaysPast - nonWeekendHolidays;}", "after": "public int CalculateWorkdays(double start, double end, double[] holidays){int saturdaysPast = this.PastDaysOfWeek(start, end, DayOfWeek.Saturday);int sundaysPast = this.PastDaysOfWeek(start, end, DayOfWeek.Sunday);int nonWeekendHolidays = this.CalculateNonWeekendHolidays(start, end, holidays);return (int)(end - start + 1) - saturdaysPast - sundaysPast - nonWeekendHolidays;}" }, { "index": 7935, "before": "public IndexFormatTooNewException(String resourceDescription, int version, int minVersion, int maxVersion) {super(\"Format version is not supported (resource \" + resourceDescription + \"): \"+ version + \" (needs to be between \" + minVersion + \" and \" + maxVersion + \")\");this.resourceDescription = resourceDescription;this.version = version;this.minVersion = minVersion;this.maxVersion = maxVersion;}", "after": "public IndexFormatTooNewException(string resourceDesc, int version, int minVersion, int maxVersion): base(\"Format version is not supported (resource: \" + resourceDesc + \"): \" + version + \" (needs to be between \" + minVersion + \" and \" + maxVersion + \")\"){Debug.Assert(resourceDesc != null);}" }, { "index": 7936, "before": "public void apply(DirCacheEntry ent) {throw new UnsupportedOperationException(JGitText.get().noApplyInDelete);}", "after": "public override void Apply(DirCacheEntry ent){throw new NotSupportedException(JGitText.Get().noApplyInDelete);}" }, { "index": 7937, "before": "public boolean isNewFragment() {position += posIncAtt.getPositionIncrement();if (waitForPos <= position) {waitForPos = -1;} else if (waitForPos != -1) {return false;}WeightedSpanTerm wSpanTerm = queryScorer.getWeightedSpanTerm(termAtt.toString());if (wSpanTerm != null) {List positionSpans = wSpanTerm.getPositionSpans();for (PositionSpan positionSpan : positionSpans) {if (positionSpan.start == position) {waitForPos = positionSpan.end + 1;break;}}}boolean isNewFrag = offsetAtt.endOffset() >= (fragmentSize * currentNumFrags)&& (textSize - offsetAtt.endOffset()) >= (fragmentSize >>> 1);if (isNewFrag) {currentNumFrags++;}return isNewFrag;}", "after": "public virtual bool IsNewFragment(){position += posIncAtt.PositionIncrement;if (waitForPos == position){waitForPos = -1;}else if (waitForPos != -1){return false;}WeightedSpanTerm wSpanTerm = queryScorer.GetWeightedSpanTerm(termAtt.ToString());if (wSpanTerm != null){IList positionSpans = wSpanTerm.PositionSpans;for (int i = 0; i < positionSpans.Count; i++){if (positionSpans[i].Start == position){waitForPos = positionSpans[i].End + 1;break;}}}bool isNewFrag = offsetAtt.EndOffset >= (fragmentSize * currentNumFrags)&& (textSize - offsetAtt.EndOffset) >= (int)((uint)fragmentSize >> 1);if (isNewFrag){currentNumFrags++;}return isNewFrag;}" }, { "index": 7938, "before": "public StopMatchmakingResult stopMatchmaking(StopMatchmakingRequest request) {request = beforeClientExecution(request);return executeStopMatchmaking(request);}", "after": "public virtual StopMatchmakingResponse StopMatchmaking(StopMatchmakingRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopMatchmakingRequestMarshaller.Instance;options.ResponseUnmarshaller = StopMatchmakingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7939, "before": "public DescribeClientVpnTargetNetworksResult describeClientVpnTargetNetworks(DescribeClientVpnTargetNetworksRequest request) {request = beforeClientExecution(request);return executeDescribeClientVpnTargetNetworks(request);}", "after": "public virtual DescribeClientVpnTargetNetworksResponse DescribeClientVpnTargetNetworks(DescribeClientVpnTargetNetworksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClientVpnTargetNetworksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClientVpnTargetNetworksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7940, "before": "public FloatBuffer put(FloatBuffer buf) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.FloatBuffer put(java.nio.FloatBuffer buf){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 7941, "before": "public final IntBuffer asIntBuffer() {return IntToByteBufferAdapter.asIntBuffer(this);}", "after": "public sealed override java.nio.IntBuffer asIntBuffer(){return java.nio.IntToByteBufferAdapter.asIntBuffer(this);}" }, { "index": 7942, "before": "public RemovePermissionResult removePermission(String queueUrl, String label) {return removePermission(new RemovePermissionRequest().withQueueUrl(queueUrl).withLabel(label));}", "after": "public virtual RemovePermissionResponse RemovePermission(string queueUrl, string label){var request = new RemovePermissionRequest();request.QueueUrl = queueUrl;request.Label = label;return RemovePermission(request);}" }, { "index": 7943, "before": "public void inform(ResourceLoader loader) {if (encoderClass.equals(\"float\")){encoder = new FloatEncoder();} else if (encoderClass.equals(\"integer\")){encoder = new IntegerEncoder();} else if (encoderClass.equals(\"identity\")){encoder = new IdentityEncoder();} else {encoder = loader.newInstance(encoderClass, PayloadEncoder.class);}}", "after": "public virtual void Inform(IResourceLoader loader){if (encoderClass.Equals(\"float\", StringComparison.Ordinal)){encoder = new SingleEncoder();}else if (encoderClass.Equals(\"integer\", StringComparison.Ordinal)){encoder = new IntegerEncoder();}else if (encoderClass.Equals(\"identity\", StringComparison.Ordinal)){encoder = new IdentityEncoder();}else{encoder = loader.NewInstance(encoderClass );}}" }, { "index": 7944, "before": "public GetHealthCheckResult getHealthCheck(GetHealthCheckRequest request) {request = beforeClientExecution(request);return executeGetHealthCheck(request);}", "after": "public virtual GetHealthCheckResponse GetHealthCheck(GetHealthCheckRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHealthCheckRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHealthCheckResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7945, "before": "public ListNotebookInstanceLifecycleConfigsResult listNotebookInstanceLifecycleConfigs(ListNotebookInstanceLifecycleConfigsRequest request) {request = beforeClientExecution(request);return executeListNotebookInstanceLifecycleConfigs(request);}", "after": "public virtual ListNotebookInstanceLifecycleConfigsResponse ListNotebookInstanceLifecycleConfigs(ListNotebookInstanceLifecycleConfigsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListNotebookInstanceLifecycleConfigsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListNotebookInstanceLifecycleConfigsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7946, "before": "public int next(int n) {if (n < 0) {for (int i = 0; i < -n; i++) {previous();}} else {for (int i = 0; i < n; i++) {next();}}return current();}", "after": "public override int Next(int n){if (n < 0){for (int i = 0; i < -n; i++){Previous();}}else{for (int i = 0; i < n; i++){Next();}}return Current;}" }, { "index": 7947, "before": "public static long calculateMaximumSize(final HeaderBlock header){return calculateMaximumSize(header.getBigBlockSize(), header.getBATCount());}", "after": "public static long CalculateMaximumSize(HeaderBlock header){return CalculateMaximumSize(header.BigBlockSize, header.BATCount);}" }, { "index": 7948, "before": "public String toString() {return \"character=\" + _character + \",fontIndex=\" + _fontIndex;}", "after": "public override String ToString(){return \"character=\" + _character + \",fontIndex=\" + _fontIndex;}" }, { "index": 7949, "before": "public static float[] grow(float[] array, int minSize) {assert minSize >= 0: \"size must be positive (got \" + minSize + \"): likely integer overflow?\";if (array.length < minSize) {float[] copy = new float[oversize(minSize, Float.BYTES)];System.arraycopy(array, 0, copy, 0, array.length);return copy;} elsereturn array;}", "after": "public static float[] Grow(float[] array, int minSize){Debug.Assert(minSize >= 0, \"size must be positive (got \" + minSize + \"): likely integer overflow?\");if (array.Length < minSize){float[] newArray = new float[Oversize(minSize, RamUsageEstimator.NUM_BYTES_SINGLE)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}" }, { "index": 7950, "before": "public String getDataFormatString() {if (getDataFormatStringCache.get() != null) {if (lastDateFormat.get() == getDataFormat() && _workbook.getFormats().equals(lastFormats.get())) {return getDataFormatStringCache.get();}}lastFormats.set(_workbook.getFormats());lastDateFormat.set(getDataFormat());getDataFormatStringCache.set(getDataFormatString(_workbook));return getDataFormatStringCache.get();}", "after": "public String GetDataFormatString(){if (getDataFormatStringCache != null){if (lastDateFormat == DataFormat && _workbook.Formats.Equals(lastFormats)){return getDataFormatStringCache;}}lastFormats = _workbook.Formats;lastDateFormat = DataFormat;getDataFormatStringCache = GetDataFormatString(_workbook);return getDataFormatStringCache;}" }, { "index": 7951, "before": "public UpdateSignalingChannelResult updateSignalingChannel(UpdateSignalingChannelRequest request) {request = beforeClientExecution(request);return executeUpdateSignalingChannel(request);}", "after": "public virtual UpdateSignalingChannelResponse UpdateSignalingChannel(UpdateSignalingChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSignalingChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSignalingChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7952, "before": "public MoPenSendMqttMessageRequest() {super(\"MoPen\", \"2018-02-11\", \"MoPenSendMqttMessage\", \"mopen\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public MoPenSendMqttMessageRequest(): base(\"MoPen\", \"2018-02-11\", \"MoPenSendMqttMessage\", \"mopen\", \"openAPI\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 7953, "before": "public TreeSet(SortedSet set) {this(set.comparator());Iterator it = set.iterator();while (it.hasNext()) {add(it.next());}}", "after": "public TreeSet(java.util.SortedSet set) : this(set.comparator()){java.util.Iterator it = set.iterator();while (it.hasNext()){add(it.next());}}" }, { "index": 7954, "before": "public DisassociateMembersResult disassociateMembers(DisassociateMembersRequest request) {request = beforeClientExecution(request);return executeDisassociateMembers(request);}", "after": "public virtual DisassociateMembersResponse DisassociateMembers(DisassociateMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateMembersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7955, "before": "public DeleteVpcLinkResult deleteVpcLink(DeleteVpcLinkRequest request) {request = beforeClientExecution(request);return executeDeleteVpcLink(request);}", "after": "public virtual DeleteVpcLinkResponse DeleteVpcLink(DeleteVpcLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpcLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpcLinkResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7956, "before": "public DescribeDBSnapshotsResult describeDBSnapshots() {return describeDBSnapshots(new DescribeDBSnapshotsRequest());}", "after": "public virtual DescribeDBSnapshotsResponse DescribeDBSnapshots(){return DescribeDBSnapshots(new DescribeDBSnapshotsRequest());}" }, { "index": 7957, "before": "public void clear() {if(_evaluationListener != null) {_evaluationListener.onClearWholeCache();}_plainCellCache.clear();_formulaCellCache.clear();}", "after": "public void Clear(){if (_evaluationListener != null){_evaluationListener.OnClearWholeCache();}_plainCellCache.Clear();_formulaCellCache.Clear();}" }, { "index": 7958, "before": "public void setDiffAlgorithm(DiffAlgorithm alg) {diffAlgorithm = alg;}", "after": "public virtual void SetDiffAlgorithm(DiffAlgorithm alg){diffAlgorithm = alg;}" }, { "index": 7959, "before": "public DVALRecord(RecordInputStream in) {field_1_options = in.readShort();field_2_horiz_pos = in.readInt();field_3_vert_pos = in.readInt();field_cbo_id = in.readInt();field_5_dv_no = in.readInt();}", "after": "public DVALRecord(RecordInputStream in1){this.field_1_options = in1.ReadShort();this.field_2_horiz_pos = in1.ReadInt();this.field_3_vert_pos = in1.ReadInt();this.field_cbo_id = in1.ReadInt();this.field_5_dv_no = in1.ReadInt();}" }, { "index": 7960, "before": "public IndexInput clone() {throw new UnsupportedOperationException();}", "after": "public override object Clone(){throw new NotSupportedException();}" }, { "index": 7961, "before": "public Appendable append(CharSequence csq, int start, int end) {reserve(end-start);for (int i=start; i(request, options);}" }, { "index": 7963, "before": "public LowerCaseFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public LowerCaseFilterFactory(IDictionary args): base(args){AssureMatchVersion();if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 7964, "before": "public int compareTo(Revision o) {IndexRevision other = (IndexRevision) o;return commit.compareTo(other.commit);}", "after": "public virtual int CompareTo(string version){long gen = long.Parse(version, NumberStyles.HexNumber);long commitGen = commit.Generation;return commitGen < gen ? -1 : (commitGen > gen ? 1 : 0);}" }, { "index": 7965, "before": "public DisassociateResolverRuleResult disassociateResolverRule(DisassociateResolverRuleRequest request) {request = beforeClientExecution(request);return executeDisassociateResolverRule(request);}", "after": "public virtual DisassociateResolverRuleResponse DisassociateResolverRule(DisassociateResolverRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateResolverRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateResolverRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7966, "before": "public static boolean isUnicodeString(final String value) {return !value.equals(new String(value.getBytes(ISO_8859_1), ISO_8859_1));}", "after": "public static bool IsUnicodeString(String value){return !value.Equals(ISO_8859_1.GetString(ISO_8859_1.GetBytes(value)));}" }, { "index": 7967, "before": "public DeleteApplicationCloudWatchLoggingOptionResult deleteApplicationCloudWatchLoggingOption(DeleteApplicationCloudWatchLoggingOptionRequest request) {request = beforeClientExecution(request);return executeDeleteApplicationCloudWatchLoggingOption(request);}", "after": "public virtual DeleteApplicationCloudWatchLoggingOptionResponse DeleteApplicationCloudWatchLoggingOption(DeleteApplicationCloudWatchLoggingOptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApplicationCloudWatchLoggingOptionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApplicationCloudWatchLoggingOptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7968, "before": "public FreqProxPostingsArray(int size, boolean writeFreqs, boolean writeProx, boolean writeOffsets) {super(size);if (writeFreqs) {termFreqs = new int[size];}lastDocIDs = new int[size];lastDocCodes = new int[size];if (writeProx) {lastPositions = new int[size];if (writeOffsets) {lastOffsets = new int[size];}} else {assert !writeOffsets;}}", "after": "public FreqProxPostingsArray(int size, bool writeFreqs, bool writeProx, bool writeOffsets): base(size){if (writeFreqs){termFreqs = new int[size];}lastDocIDs = new int[size];lastDocCodes = new int[size];if (writeProx){lastPositions = new int[size];if (writeOffsets){lastOffsets = new int[size];}}else{Debug.Assert(!writeOffsets);}}" }, { "index": 7969, "before": "public List matchPrefix(String prefix) {return matchPrefix(prefix, defaultNumReturnValues);}", "after": "public virtual IList MatchPrefix(string prefix){return MatchPrefix(prefix, defaultNumReturnValues);}" }, { "index": 7970, "before": "public DescribeScalingPoliciesResult describeScalingPolicies(DescribeScalingPoliciesRequest request) {request = beforeClientExecution(request);return executeDescribeScalingPolicies(request);}", "after": "public virtual DescribeScalingPoliciesResponse DescribeScalingPolicies(DescribeScalingPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScalingPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScalingPoliciesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7971, "before": "public void serialize(LittleEndianOutput out) {out.writeInt(field_1_row_offset);for (short field_2_cell_offset : field_2_cell_offsets) {out.writeShort(field_2_cell_offset);}}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(field_1_row_offset);for (int k = 0; k < field_2_cell_offsets.Length; k++){out1.WriteShort(field_2_cell_offsets[k]);}}" }, { "index": 7972, "before": "public UserSViewBegin(RecordInputStream in) {_rawData = in.readRemainder();}", "after": "public UserSViewBegin(RecordInputStream in1){_rawData = in1.ReadRemainder();}" }, { "index": 7973, "before": "public static RevFilter create(String pattern) {if (pattern.length() == 0)throw new IllegalArgumentException(JGitText.get().cannotMatchOnEmptyString);if (SubStringRevFilter.safe(pattern))return new SubStringSearch(pattern);return new PatternSearch(pattern);}", "after": "public static RevFilter Create(string pattern){if (pattern.Length == 0){throw new ArgumentException(JGitText.Get().cannotMatchOnEmptyString);}if (SubStringRevFilter.Safe(pattern)){return new CommitterRevFilter.SubStringSearch(pattern);}return new CommitterRevFilter.PatternSearch(pattern);}" }, { "index": 7974, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getFontHeight());out.writeShort(getAttributes());out.writeShort(getColorPaletteIndex());out.writeShort(getBoldWeight());out.writeShort(getSuperSubScript());out.writeByte(getUnderline());out.writeByte(getFamily());out.writeByte(getCharset());out.writeByte(field_9_zero);int fontNameLen = field_11_font_name.length();out.writeByte(fontNameLen);boolean hasMultibyte = StringUtil.hasMultibyte(field_11_font_name);out.writeByte(hasMultibyte ? 0x01 : 0x00);if (fontNameLen > 0) {if (hasMultibyte) {StringUtil.putUnicodeLE(field_11_font_name, out);} else {StringUtil.putCompressedUnicode(field_11_font_name, out);}}}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(FontHeight);out1.WriteShort(Attributes);out1.WriteShort(ColorPaletteIndex);out1.WriteShort(BoldWeight);out1.WriteShort((int) SuperSubScript);out1.WriteByte((int) Underline);out1.WriteByte(Family);out1.WriteByte(Charset);out1.WriteByte(field_9_zero);int fontNameLen = field_11_font_name.Length;out1.WriteByte(fontNameLen);bool hasMultibyte = StringUtil.HasMultibyte(field_11_font_name);out1.WriteByte(hasMultibyte ? 0x01 : 0x00);if (fontNameLen > 0){if (hasMultibyte){StringUtil.PutUnicodeLE(field_11_font_name, out1);}else{StringUtil.PutCompressedUnicode(field_11_font_name, out1);}}}" }, { "index": 7975, "before": "public DescribeLaunchConfigurationsResult describeLaunchConfigurations(DescribeLaunchConfigurationsRequest request) {request = beforeClientExecution(request);return executeDescribeLaunchConfigurations(request);}", "after": "public virtual DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations(DescribeLaunchConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLaunchConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLaunchConfigurationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7976, "before": "public PathEdit(DirCacheEntry ent) {path = ent.path;}", "after": "public PathEdit(DirCacheEntry ent){path = ent.path;}" }, { "index": 7977, "before": "public static int toCodePoints(char[] src, int srcOff, int srcLen, int[] dest, int destOff) {if (srcLen < 0) {throw new IllegalArgumentException(\"srcLen must be >= 0\");}int codePointCount = 0;for (int i = 0; i < srcLen; ) {final int cp = Character.codePointAt(src, srcOff + i, srcOff + srcLen);final int charCount = Character.charCount(cp);dest[destOff + codePointCount++] = cp;i += charCount;}return codePointCount;}", "after": "public int ToCodePoints(char[] src, int srcOff, int srcLen, int[] dest, int destOff){if (srcLen < 0){throw new ArgumentException(\"srcLen must be >= 0\");}int codePointCount = 0;for (int i = 0; i < srcLen; ){int cp = CodePointAt(src, srcOff + i, srcOff + srcLen);int charCount = Character.CharCount(cp);dest[destOff + codePointCount++] = cp;i += charCount;}return codePointCount;}" }, { "index": 7978, "before": "public boolean hasNext() {return remaining != 0;}", "after": "public virtual bool hasNext(){return this.remaining != 0;}" }, { "index": 7979, "before": "public void consume() {if (LA(1) == IntStream.EOF) {throw new IllegalStateException(\"cannot consume EOF\");}lastChar = data[p]; if (p == n-1 && numMarkers==0) {n = 0;p = -1; lastCharBufferStart = lastChar;}p++;currentCharIndex++;sync(1);}", "after": "public virtual void Consume(){if (LA(1) == IntStreamConstants.EOF){throw new InvalidOperationException(\"cannot consume EOF\");}lastChar = data[p];if (p == n - 1 && numMarkers == 0){n = 0;p = -1;lastCharBufferStart = lastChar;}p++;currentCharIndex++;Sync(1);}" }, { "index": 7980, "before": "public FileOutputStream(String path) throws FileNotFoundException {this(path, false);}", "after": "public FileOutputStream(string path) : this(path, false){throw new System.NotImplementedException();}" }, { "index": 7981, "before": "public FieldConfig(String fieldName) {if (fieldName == null) {throw new IllegalArgumentException(\"field name must not be null!\");}this.fieldName = fieldName;}", "after": "public FieldConfig(string fieldName){if (fieldName == null){throw new ArgumentException(\"field name should not be null!\");}this.fieldName = fieldName;}" }, { "index": 7982, "before": "public TokenFilter create(TokenStream input) {return new NGramTokenFilter(input, minGramSize, maxGramSize, preserveOriginal);}", "after": "public override TokenStream Create(TokenStream input){return new NGramTokenFilter(m_luceneMatchVersion, input, minGramSize, maxGramSize);}" }, { "index": 7983, "before": "public DescribeCacheParameterGroupsResult describeCacheParameterGroups(DescribeCacheParameterGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeCacheParameterGroups(request);}", "after": "public virtual DescribeCacheParameterGroupsResponse DescribeCacheParameterGroups(DescribeCacheParameterGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCacheParameterGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCacheParameterGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7984, "before": "public ApostropheFilter(TokenStream in) {super(in);}", "after": "public ApostropheFilter(TokenStream @in): base(@in){termAtt = AddAttribute();}" }, { "index": 7985, "before": "public void writeShort(int v) {writeContinueIfRequired(2);_ulrOutput.writeShort(v);}", "after": "public void WriteShort(int v){WriteContinueIfRequired(2);_ulrOutput.WriteShort(v);}" }, { "index": 7986, "before": "public StringBuilder append(Object obj) {if (obj == null) {appendNull();} else {append0(obj.toString());}return this;}", "after": "public java.lang.StringBuilder append(object obj){if (obj == null){appendNull();}else{append0(obj.ToString());}return this;}" }, { "index": 7987, "before": "public ListGatewayGroupsResult listGatewayGroups(ListGatewayGroupsRequest request) {request = beforeClientExecution(request);return executeListGatewayGroups(request);}", "after": "public virtual ListGatewayGroupsResponse ListGatewayGroups(ListGatewayGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGatewayGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGatewayGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7988, "before": "public AlibabaCloudCredentials getCredentials() throws ClientException {if (credentials == null || credentials.isExpired()) {ecsMetadataServiceFetchCount += 1;int maxRetryTimes = MAX_ECS_METADATA_FETCH_RETRY_TIMES;credentials = fetcher.fetch(maxRetryTimes);} else if (credentials.willSoonExpire() && credentials.shouldRefresh()) {try {ecsMetadataServiceFetchCount += 1;credentials = fetcher.fetch();} catch (ClientException e) {credentials.setLastFailedRefreshTime();}}return credentials;}", "after": "public virtual AlibabaCloudCredentials GetCredentials(){try{if (credentials == null){credentials = fetcher.Fetch(maxRetryTimes);}if (credentials.IsExpired()){throw new ClientException(\"SDK.SessionTokenExpired\", \"Current session token has expired.\");}if (!credentials.WillSoonExpire() || !credentials.ShouldRefresh()){return credentials;}credentials = fetcher.Fetch();return credentials;}catch (ClientException ex){if (ex.ErrorCode.Equals(\"SDK.SessionTokenExpired\") &&ex.ErrorMessage.Equals(\"Current session token has expired.\")){CommonLog.LogException(ex, ex.ErrorCode, ex.ErrorMessage);throw new ClientException(ex.ErrorCode, ex.ErrorMessage);}credentials.SetLastFailedRefreshTime();}return credentials;}" }, { "index": 7989, "before": "public DescribeVpnConnectionsResult describeVpnConnections(DescribeVpnConnectionsRequest request) {request = beforeClientExecution(request);return executeDescribeVpnConnections(request);}", "after": "public virtual DescribeVpnConnectionsResponse DescribeVpnConnections(DescribeVpnConnectionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpnConnectionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpnConnectionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7990, "before": "public ByteBuffer put(byte[] src, int srcOffset, int byteCount) {checkPutBounds(1, src.length, srcOffset, byteCount);System.arraycopy(src, srcOffset, backingArray, offset + position, byteCount);position += byteCount;return this;}", "after": "public override java.nio.ByteBuffer put(byte[] src, int srcOffset, int byteCount){checkPutBounds(1, src.Length, srcOffset, byteCount);System.Array.Copy(src, srcOffset, backingArray, offset + _position, byteCount);_position += byteCount;return this;}" }, { "index": 7991, "before": "public ListDistributionsResult listDistributions(ListDistributionsRequest request) {request = beforeClientExecution(request);return executeListDistributions(request);}", "after": "public virtual ListDistributionsResponse ListDistributions(ListDistributionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDistributionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDistributionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7992, "before": "public String getName() {if (params==null) {return name;}return new StringBuilder(name).append('(').append(params).append(')').toString();}", "after": "public virtual string GetName(){if (m_params == null){return name;}return new StringBuilder(name).Append('(').Append(m_params).Append(')').ToString();}" }, { "index": 7993, "before": "public DescribeTasksResult describeTasks(DescribeTasksRequest request) {request = beforeClientExecution(request);return executeDescribeTasks(request);}", "after": "public virtual DescribeTasksResponse DescribeTasks(DescribeTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTasksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7994, "before": "public DescribeCacheSubnetGroupsResult describeCacheSubnetGroups() {return describeCacheSubnetGroups(new DescribeCacheSubnetGroupsRequest());}", "after": "public virtual DescribeCacheSubnetGroupsResponse DescribeCacheSubnetGroups(){return DescribeCacheSubnetGroups(new DescribeCacheSubnetGroupsRequest());}" }, { "index": 7995, "before": "public float get() {if (position == limit) {throw new BufferUnderflowException();}return byteBuffer.getFloat(position++ * SizeOf.FLOAT);}", "after": "public override float get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return byteBuffer.getFloat(_position++ * libcore.io.SizeOf.FLOAT);}" }, { "index": 7996, "before": "public ShowNoteCommand setNotesRef(String notesRef) {checkCallable();this.notesRef = notesRef;return this;}", "after": "public virtual NGit.Api.ShowNoteCommand SetNotesRef(string notesRef){CheckCallable();this.notesRef = notesRef;return this;}" }, { "index": 7997, "before": "public UpdateAuthorizerResult updateAuthorizer(UpdateAuthorizerRequest request) {request = beforeClientExecution(request);return executeUpdateAuthorizer(request);}", "after": "public virtual UpdateAuthorizerResponse UpdateAuthorizer(UpdateAuthorizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAuthorizerRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAuthorizerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 7998, "before": "public int ordVal(int doc) throws IOException {throw new UnsupportedOperationException();}", "after": "public virtual int OrdVal(int doc){throw new System.NotSupportedException();}" }, { "index": 7999, "before": "public UnknownRecord(RecordInputStream in) {_sid = in.getSid();_rawData = in.readRemainder();}", "after": "public UnknownRecord(RecordInputStream in1){_sid = in1.Sid;_rawData = in1.ReadRemainder();}" }, { "index": 8000, "before": "public Matcher reset() {return reset(input, 0, input.length());}", "after": "public java.util.regex.Matcher reset(){return reset(java.lang.CharSequenceProxy.Wrap(input), 0, input.Length);}" }, { "index": 8001, "before": "public UpdateApnsVoipSandboxChannelResult updateApnsVoipSandboxChannel(UpdateApnsVoipSandboxChannelRequest request) {request = beforeClientExecution(request);return executeUpdateApnsVoipSandboxChannel(request);}", "after": "public virtual UpdateApnsVoipSandboxChannelResponse UpdateApnsVoipSandboxChannel(UpdateApnsVoipSandboxChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApnsVoipSandboxChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApnsVoipSandboxChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8002, "before": "public IntervalSet nextTokens(ATNState s, RuleContext ctx) {LL1Analyzer anal = new LL1Analyzer(this);IntervalSet next = anal.LOOK(s, ctx);return next;}", "after": "public virtual IntervalSet NextTokens(ATNState s, RuleContext ctx){LL1Analyzer anal = new LL1Analyzer(this);IntervalSet next = anal.Look(s, ctx);return next;}" }, { "index": 8003, "before": "public ListTablesResult listTables(String exclusiveStartTableName, Integer limit) {return listTables(new ListTablesRequest().withExclusiveStartTableName(exclusiveStartTableName).withLimit(limit));}", "after": "public virtual ListTablesResponse ListTables(string exclusiveStartTableName, int limit){var request = new ListTablesRequest();request.ExclusiveStartTableName = exclusiveStartTableName;request.Limit = limit;return ListTables(request);}" }, { "index": 8004, "before": "public DescribeIdentityResult describeIdentity(DescribeIdentityRequest request) {request = beforeClientExecution(request);return executeDescribeIdentity(request);}", "after": "public virtual DescribeIdentityResponse DescribeIdentity(DescribeIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIdentityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8005, "before": "final public ArrayList OptionalFields() throws ParseException {Token fieldName;ArrayList fieldNames = null;label_1:while (true) {if (jj_2_1(2)) {;} else {break label_1;}fieldName = jj_consume_token(TERM);jj_consume_token(COLON);if (fieldNames == null) {fieldNames = new ArrayList();}fieldNames.add(fieldName.image);}{if (true) return fieldNames;}throw new Error(\"Missing return statement in function\");}", "after": "public IList OptionalFields(){Token fieldName;IList fieldNames = null;while (true){if (Jj_2_1(2)){;}else{goto label_1;}fieldName = Jj_consume_token(RegexpToken.TERM);Jj_consume_token(RegexpToken.COLON);if (fieldNames == null){fieldNames = new List();}fieldNames.Add(fieldName.Image);}label_1:{ if (true) return fieldNames; }throw new Exception(\"Missing return statement in function\");}" }, { "index": 8006, "before": "public SubmoduleAddCommand submoduleAdd() {return new SubmoduleAddCommand(repo);}", "after": "public virtual SubmoduleAddCommand SubmoduleAdd(){return new SubmoduleAddCommand(repo);}" }, { "index": 8007, "before": "public DescribeTypeResult describeType(DescribeTypeRequest request) {request = beforeClientExecution(request);return executeDescribeType(request);}", "after": "public virtual DescribeTypeResponse DescribeType(DescribeTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8008, "before": "public UpdateCompanyNetworkConfigurationResult updateCompanyNetworkConfiguration(UpdateCompanyNetworkConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateCompanyNetworkConfiguration(request);}", "after": "public virtual UpdateCompanyNetworkConfigurationResponse UpdateCompanyNetworkConfiguration(UpdateCompanyNetworkConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateCompanyNetworkConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateCompanyNetworkConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8009, "before": "public final String get(String name) {for (IndexableField field : fields) {if (field.name().equals(name) && field.stringValue() != null) {return field.stringValue();}}return null;}", "after": "public string Get(string name){foreach (IIndexableField field in fields){if (field.Name.Equals(name, StringComparison.Ordinal) && field.GetStringValue() != null){return field.GetStringValue();}}return null;}" }, { "index": 8010, "before": "public boolean equalsSameType(Object other) {assert exists || 0 == value.length();MutableValueStr b = (MutableValueStr)other;return value.get().equals(b.value.get()) && exists == b.exists;}", "after": "public override bool EqualsSameType(object other){MutableValueStr b = (MutableValueStr)other;return Value.Equals(b.Value) && Exists == b.Exists;}" }, { "index": 8011, "before": "public void read(RecordStream rs) {while (rs.peekNextClass() == MergeCellsRecord.class) {MergeCellsRecord mcr = (MergeCellsRecord) rs.getNext();int nRegions = mcr.getNumAreas();for (int i = 0; i < nRegions; i++) {CellRangeAddress cra = mcr.getAreaAt(i);_mergedRegions.add(cra);}}}", "after": "public void Read(RecordStream rs){while (rs.PeekNextClass() == typeof(MergeCellsRecord)){MergeCellsRecord mcr = (MergeCellsRecord)rs.GetNext();int nRegions = mcr.NumAreas;for (int i = 0; i < nRegions; i++){_mergedRegions.Add(mcr.GetAreaAt(i));}}}" }, { "index": 8012, "before": "public int available() throws IOException {return in.available() / 2 + (lastChar == -1 ? 0 : 1);}", "after": "public override int available(){throw new System.NotImplementedException();}" }, { "index": 8013, "before": "public Status getStatus() {return status;}", "after": "public virtual RemoteRefUpdate.Status GetStatus(){return status;}" }, { "index": 8014, "before": "public CharSequence[] decompose(CharSequence cmd) {int parts = 0;for (int i = 0; 0 <= i && i < cmd.length();) {int next = dashEven(cmd, i);if (i == next) {parts++;i = next + 2;} else {parts++;i = next;}}CharSequence part[] = new CharSequence[parts];int x = 0;for (int i = 0; 0 <= i && i < cmd.length();) {int next = dashEven(cmd, i);if (i == next) {part[x++] = cmd.subSequence(i, i + 2);i = next + 2;} else {part[x++] = (next < 0) ? cmd.subSequence(i, cmd.length()) : cmd.subSequence(i, next);i = next;}}return part;}", "after": "public virtual string[] Decompose(string cmd){int parts = 0;for (int i = 0; 0 <= i && i < cmd.Length;){int next = DashEven(cmd, i);if (i == next){parts++;i = next + 2;}else{parts++;i = next;}}string[] part = new string[parts];int x = 0;for (int i = 0; 0 <= i && i < cmd.Length;){int next = DashEven(cmd, i);if (i == next){part[x++] = cmd.Substring(i, 2);i = next + 2;}else{part[x++] = (next < 0) ? cmd.Substring(i, cmd.Length - i) : cmd.Substring(i, next - i);i = next;}}return part;}" }, { "index": 8015, "before": "public RevokeSecurityGroupIngressRequest(String groupName, java.util.List ipPermissions) {setGroupName(groupName);setIpPermissions(ipPermissions);}", "after": "public RevokeSecurityGroupIngressRequest(string groupName, List ipPermissions){_groupName = groupName;_ipPermissions = ipPermissions;}" }, { "index": 8016, "before": "public Ref remove(Object key) {String name = toRefName((String) key);Ref res = null;int idx;if (0 <= (idx = packed.find(name))) {res = packed.get(name);packed = packed.remove(idx);sizeIsValid = false;}if (0 <= (idx = loose.find(name))) {res = loose.get(name);loose = loose.remove(idx);sizeIsValid = false;}if (0 <= (idx = resolved.find(name))) {res = resolved.get(name);resolved = resolved.remove(idx);sizeIsValid = false;}return res;}", "after": "public override Ref Remove(object key){string name = ToRefName((string)key);Ref res = null;int idx;if (0 <= (idx = packed.Find(name))){res = packed.Get(name);packed = packed.Remove(idx);sizeIsValid = false;}if (0 <= (idx = loose.Find(name))){res = loose.Get(name);loose = loose.Remove(idx);sizeIsValid = false;}if (0 <= (idx = resolved.Find(name))){res = resolved.Get(name);resolved = resolved.Remove(idx);sizeIsValid = false;}return res;}" }, { "index": 8017, "before": "public DescribeMLModelsResult describeMLModels(DescribeMLModelsRequest request) {request = beforeClientExecution(request);return executeDescribeMLModels(request);}", "after": "public virtual DescribeMLModelsResponse DescribeMLModels(DescribeMLModelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeMLModelsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeMLModelsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8018, "before": "public String getInflectionType(int wordId) {return null; }", "after": "public string GetInflectionType(int wordId){return null; }" }, { "index": 8019, "before": "public CreateVolumeRequest(String snapshotId, String availabilityZone) {setSnapshotId(snapshotId);setAvailabilityZone(availabilityZone);}", "after": "public CreateVolumeRequest(string availabilityZone, string snapshotId){_availabilityZone = availabilityZone;_snapshotId = snapshotId;}" }, { "index": 8020, "before": "public DataValidationConstraint createDateConstraint(int operatorType, String formula1, String formula2, String dateFormat) {return DVConstraint.createDateConstraint(operatorType, formula1, formula2, dateFormat);}", "after": "public IDataValidationConstraint CreateDateConstraint(int operatorType, String formula1, String formula2, String dateFormat){return DVConstraint.CreateDateConstraint(operatorType, formula1, formula2, dateFormat);}" }, { "index": 8021, "before": "public CloneReceiptRuleSetResult cloneReceiptRuleSet(CloneReceiptRuleSetRequest request) {request = beforeClientExecution(request);return executeCloneReceiptRuleSet(request);}", "after": "public virtual CloneReceiptRuleSetResponse CloneReceiptRuleSet(CloneReceiptRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CloneReceiptRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CloneReceiptRuleSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8022, "before": "public int getOffsetGap(String fieldName) {return 1;}", "after": "public virtual int GetOffsetGap(string fieldName){return 1;}" }, { "index": 8023, "before": "public long hash1(char c) {final long p = 1099511628211L;long hash = 0xcbf29ce484222325L;hash = (hash ^ (c & 0x00FF)) * p;hash = (hash ^ (c >> 8)) * p;hash += hash << 13;hash ^= hash >> 7;hash += hash << 3;hash ^= hash >> 17;hash += hash << 5;return hash;}", "after": "public virtual long Hash1(char c){long p = 1099511628211L;long hash = unchecked((long)0xcbf29ce484222325L);hash = (hash ^ (c & 0x00FF)) * p;hash = (hash ^ (c >> 8)) * p;hash += hash << 13;hash ^= hash >> 7;hash += hash << 3;hash ^= hash >> 17;hash += hash << 5;return hash;}" }, { "index": 8024, "before": "public final ByteBuffer order(ByteOrder byteOrder) {orderImpl(byteOrder);return this;}", "after": "public java.nio.ByteBuffer order(java.nio.ByteOrder byteOrder){orderImpl(byteOrder);return this;}" }, { "index": 8025, "before": "public DescribeAlarmsForMetricResult describeAlarmsForMetric(DescribeAlarmsForMetricRequest request) {request = beforeClientExecution(request);return executeDescribeAlarmsForMetric(request);}", "after": "public virtual DescribeAlarmsForMetricResponse DescribeAlarmsForMetric(DescribeAlarmsForMetricRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAlarmsForMetricRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAlarmsForMetricResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8026, "before": "public void terminateWorkflowExecution(TerminateWorkflowExecutionRequest request) {request = beforeClientExecution(request);executeTerminateWorkflowExecution(request);}", "after": "public virtual TerminateWorkflowExecutionResponse TerminateWorkflowExecution(TerminateWorkflowExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = TerminateWorkflowExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = TerminateWorkflowExecutionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8027, "before": "public DistanceValueSource(PointVectorStrategy strategy, Point from, double multiplier) {this.strategy = strategy;this.from = from;this.multiplier = multiplier;this.nullValue = 180 * multiplier;}", "after": "public DistanceValueSource(PointVectorStrategy strategy, IPoint from, double multiplier){this.strategy = strategy;this.from = from;this.multiplier = multiplier;}" }, { "index": 8028, "before": "public RenameBranchCommand branchRename() {return new RenameBranchCommand(repo);}", "after": "public virtual RenameBranchCommand BranchRename(){return new RenameBranchCommand(repo);}" }, { "index": 8029, "before": "public IntBuffer get(int[] dst, int dstOffset, int intCount) {byteBuffer.limit(limit * SizeOf.INT);byteBuffer.position(position * SizeOf.INT);if (byteBuffer instanceof DirectByteBuffer) {((DirectByteBuffer) byteBuffer).get(dst, dstOffset, intCount);} else {((HeapByteBuffer) byteBuffer).get(dst, dstOffset, intCount);}this.position += intCount;return this;}", "after": "public override java.nio.IntBuffer get(int[] dst, int dstOffset, int intCount){byteBuffer.limit(_limit * libcore.io.SizeOf.INT);byteBuffer.position(_position * libcore.io.SizeOf.INT);if (byteBuffer is java.nio.DirectByteBuffer){((java.nio.DirectByteBuffer)byteBuffer).get(dst, dstOffset, intCount);}else{((java.nio.HeapByteBuffer)byteBuffer).get(dst, dstOffset, intCount);}this._position += intCount;return this;}" }, { "index": 8030, "before": "public DescribeInstanceEventNotificationAttributesResult describeInstanceEventNotificationAttributes(DescribeInstanceEventNotificationAttributesRequest request) {request = beforeClientExecution(request);return executeDescribeInstanceEventNotificationAttributes(request);}", "after": "public virtual DescribeInstanceEventNotificationAttributesResponse DescribeInstanceEventNotificationAttributes(DescribeInstanceEventNotificationAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInstanceEventNotificationAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInstanceEventNotificationAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8031, "before": "public void appendUserAgent(String key, String value) {this.userAgentConfig.append(key, value);}", "after": "public void AppendUserAgent(string key, string value){userAgentConfig.AppendUserAgent(key, value);}" }, { "index": 8032, "before": "public String getErrorDisplay(int c) {String s = String.valueOf((char)c);switch ( c ) {case Token.EOF :s = \"\";break;case '\\n' :s = \"\\\\n\";break;case '\\t' :s = \"\\\\t\";break;case '\\r' :s = \"\\\\r\";break;}return s;}", "after": "public virtual string GetErrorDisplay(string s){StringBuilder buf = new StringBuilder();for (var i = 0; i < s.Length; ) {var codePoint = Char.ConvertToUtf32(s, i);buf.Append(GetErrorDisplay(codePoint));i += (codePoint > 0xFFFF) ? 2 : 1;}return buf.ToString();}" }, { "index": 8033, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[CHARTFORMAT]\\n\");buffer.append(\" .xPosition = \").append(getXPosition()).append(\"\\n\");buffer.append(\" .yPosition = \").append(getYPosition()).append(\"\\n\");buffer.append(\" .width = \").append(getWidth()).append(\"\\n\");buffer.append(\" .height = \").append(getHeight()).append(\"\\n\");buffer.append(\" .grBit = \").append(HexDump.intToHex(field5_grbit)).append(\"\\n\");buffer.append(\"[/CHARTFORMAT]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[CHARTFORMAT]\\n\");buffer.Append(\" .xPosition = \").Append(XPosition).Append(\"\\n\");buffer.Append(\" .yPosition = \").Append(YPosition).Append(\"\\n\");buffer.Append(\" .width = \").Append(Width).Append(\"\\n\");buffer.Append(\" .height = \").Append(Height).Append(\"\\n\");buffer.Append(\" .grBit = \").Append(StringUtil.ToHexString(field5_grbit)).Append(\"\\n\");buffer.Append(\"[/CHARTFORMAT]\\n\");return buffer.ToString();}" }, { "index": 8034, "before": "public GetQuotaRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"GetQuota\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetQuotaRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"GetQuota\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 8035, "before": "public DeleteEventStreamResult deleteEventStream(DeleteEventStreamRequest request) {request = beforeClientExecution(request);return executeDeleteEventStream(request);}", "after": "public virtual DeleteEventStreamResponse DeleteEventStream(DeleteEventStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEventStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEventStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8036, "before": "public GetPhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"GetPhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetPhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"GetPhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 8037, "before": "public int getBegin() {return begin;}", "after": "public virtual int GetBegin(){return begin;}" }, { "index": 8038, "before": "public void decRef() throws IOException {if (refCount.get() <= 0) {throw new IllegalStateException(\"this revision is already released\");}final int rc = refCount.decrementAndGet();if (rc == 0) {boolean success = false;try {revision.release();success = true;} finally {if (!success) {refCount.incrementAndGet();}}} else if (rc < 0) {throw new IllegalStateException(\"too many decRef calls: refCount is \" + rc + \" after decrement\");}}", "after": "public virtual void DecRef(){if (refCount <= 0){throw new InvalidOperationException(\"this revision is already released\");}var rc = refCount.DecrementAndGet();if (rc == 0){bool success = false;try{Revision.Release();success = true;}finally{if (!success){refCount.IncrementAndGet();}}}else if (rc < 0){throw new InvalidOperationException(string.Format(\"too many decRef calls: refCount is {0} after decrement\", rc));}}" }, { "index": 8039, "before": "public DescribeDataSetPermissionsResult describeDataSetPermissions(DescribeDataSetPermissionsRequest request) {request = beforeClientExecution(request);return executeDescribeDataSetPermissions(request);}", "after": "public virtual DescribeDataSetPermissionsResponse DescribeDataSetPermissions(DescribeDataSetPermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDataSetPermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDataSetPermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8040, "before": "public SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest() {super(\"Domain\", \"2018-01-29\", \"SaveTaskForUpdatingRegistrantInfoByIdentityCredential\");setMethod(MethodType.POST);}", "after": "public SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest(): base(\"Domain-intl\", \"2017-12-18\", \"SaveTaskForUpdatingRegistrantInfoByIdentityCredential\", \"domain\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 8041, "before": "public TokenStreamToAutomaton() {this.preservePositionIncrements = true;}", "after": "public TokenStreamToAutomaton(){this.preservePositionIncrements = true;}" }, { "index": 8042, "before": "public NameXPtg addNameXPtg(String name) {int extBlockIndex = -1;ExternalBookBlock extBlock = null;for (int i = 0; i < _externalBookBlocks.length; i++) {SupBookRecord ebr = _externalBookBlocks[i].getExternalBookRecord();if (ebr.isAddInFunctions()) {extBlock = _externalBookBlocks[i];extBlockIndex = i;break;}}if (extBlock == null) {extBlock = new ExternalBookBlock();extBlockIndex = extendExternalBookBlocks(extBlock);int idx = findFirstRecordLocBySid(ExternSheetRecord.sid);_workbookRecordList.add(idx, extBlock.getExternalBookRecord());_externSheetRecord.addRef(_externalBookBlocks.length - 1, -2, -2);}ExternalNameRecord extNameRecord = new ExternalNameRecord();extNameRecord.setText(name);extNameRecord.setParsedExpression(new Ptg[]{ErrPtg.REF_INVALID});int nameIndex = extBlock.addExternalName(extNameRecord);int supLinkIndex = 0;for (org.apache.poi.hssf.record.Record record : _workbookRecordList.getRecords()) {if (record instanceof SupBookRecord && ((SupBookRecord) record).isAddInFunctions()) {break;}supLinkIndex++;}int numberOfNames = extBlock.getNumberOfNames();_workbookRecordList.add(supLinkIndex + numberOfNames, extNameRecord);int fakeSheetIdx = -2; int ix = _externSheetRecord.getRefIxForSheet(extBlockIndex, fakeSheetIdx, fakeSheetIdx);return new NameXPtg(ix, nameIndex);}", "after": "public NameXPtg AddNameXPtg(String name){int extBlockIndex = -1;ExternalBookBlock extBlock = null;for (int i = 0; i < _externalBookBlocks.Length; i++){SupBookRecord ebr = _externalBookBlocks[i].GetExternalBookRecord();if (ebr.IsAddInFunctions){extBlock = _externalBookBlocks[i];extBlockIndex = i;break;}}if (extBlock == null){extBlock = new ExternalBookBlock();extBlockIndex = ExtendExternalBookBlocks(extBlock);int idx = FindFirstRecordLocBySid(ExternSheetRecord.sid);_workbookRecordList.Add(idx, extBlock.GetExternalBookRecord());_externSheetRecord.AddRef(_externalBookBlocks.Length - 1, -2, -2);}ExternalNameRecord extNameRecord = new ExternalNameRecord();extNameRecord.Text = (name);extNameRecord.SetParsedExpression(new Ptg[] { ErrPtg.REF_INVALID });int nameIndex = extBlock.AddExternalName(extNameRecord);int supLinkIndex = 0;for (IEnumerator iterator = _workbookRecordList.GetEnumerator(); iterator.MoveNext(); supLinkIndex++){Record record = (Record)iterator.Current;if (record is SupBookRecord){if (((SupBookRecord)record).IsAddInFunctions) break;}}int numberOfNames = extBlock.NumberOfNames;_workbookRecordList.Add(supLinkIndex + numberOfNames, extNameRecord);int fakeSheetIdx = -2; int ix = _externSheetRecord.GetRefIxForSheet(extBlockIndex, fakeSheetIdx, fakeSheetIdx);return new NameXPtg(ix, nameIndex);}" }, { "index": 8043, "before": "public static IndexReaderContext getTopLevelContext(IndexReaderContext context) {while (context.parent != null) {context = context.parent;}return context;}", "after": "public static IndexReaderContext GetTopLevelContext(IndexReaderContext context){while (context.Parent != null){context = context.Parent;}return context;}" }, { "index": 8044, "before": "public final CharBuffer put(CharBuffer src) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.CharBuffer put(char c){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 8045, "before": "public DeleteLabelsResult deleteLabels(DeleteLabelsRequest request) {request = beforeClientExecution(request);return executeDeleteLabels(request);}", "after": "public virtual DeleteLabelsResponse DeleteLabels(DeleteLabelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLabelsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLabelsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8046, "before": "public ListAlgorithmsResult listAlgorithms(ListAlgorithmsRequest request) {request = beforeClientExecution(request);return executeListAlgorithms(request);}", "after": "public virtual ListAlgorithmsResponse ListAlgorithms(ListAlgorithmsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAlgorithmsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAlgorithmsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8047, "before": "public DiffCommand setShowNameAndStatusOnly(boolean showNameAndStatusOnly) {this.showNameAndStatusOnly = showNameAndStatusOnly;return this;}", "after": "public virtual NGit.Api.DiffCommand SetShowNameAndStatusOnly(bool showNameAndStatusOnly){this.showNameAndStatusOnly = showNameAndStatusOnly;return this;}" }, { "index": 8048, "before": "public boolean isForceUpdate() {return force;}", "after": "public virtual bool IsForceUpdate(){return force;}" }, { "index": 8049, "before": "public DeleteVpcEndpointServiceConfigurationsResult deleteVpcEndpointServiceConfigurations(DeleteVpcEndpointServiceConfigurationsRequest request) {request = beforeClientExecution(request);return executeDeleteVpcEndpointServiceConfigurations(request);}", "after": "public virtual DeleteVpcEndpointServiceConfigurationsResponse DeleteVpcEndpointServiceConfigurations(DeleteVpcEndpointServiceConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpcEndpointServiceConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpcEndpointServiceConfigurationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8050, "before": "public Field(String name, TokenStream tokenStream, IndexableFieldType type) {if (name == null) {throw new IllegalArgumentException(\"name must not be null\");}if (tokenStream == null) {throw new NullPointerException(\"tokenStream must not be null\");}if (type.indexOptions() == IndexOptions.NONE || !type.tokenized()) {throw new IllegalArgumentException(\"TokenStream fields must be indexed and tokenized\");}if (type.stored()) {throw new IllegalArgumentException(\"TokenStream fields cannot be stored\");}this.name = name;this.fieldsData = null;this.tokenStream = tokenStream;this.type = type;}", "after": "public Field(string name, TokenStream tokenStream, FieldType type){if (name == null){throw new System.ArgumentNullException(\"name\", \"name cannot be null\");}if (tokenStream == null){throw new System.ArgumentNullException(\"tokenStream\", \"tokenStream cannot be null\");}if (type == null){throw new System.ArgumentNullException(\"type\", \"type cannot be null\");}if (!type.IsIndexed || !type.IsTokenized){throw new System.ArgumentException(\"TokenStream fields must be indexed and tokenized\");}if (type.IsStored){throw new System.ArgumentException(\"TokenStream fields cannot be stored\");}this.m_name = name;this.FieldsData = null;this.m_tokenStream = tokenStream;this.m_type = type;}" }, { "index": 8051, "before": "public ListDeadLetterSourceQueuesResult listDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest request) {request = beforeClientExecution(request);return executeListDeadLetterSourceQueues(request);}", "after": "public virtual ListDeadLetterSourceQueuesResponse ListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeadLetterSourceQueuesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8052, "before": "public BinaryDocValuesField(String name, BytesRef value) {super(name, TYPE);fieldsData = value;}", "after": "public BinaryDocValuesField(string name, BytesRef value): base(name, fType){FieldsData = value;}" }, { "index": 8053, "before": "public CreateVpnConnectionRequest(String type, String customerGatewayId, String vpnGatewayId) {setType(type);setCustomerGatewayId(customerGatewayId);setVpnGatewayId(vpnGatewayId);}", "after": "public CreateVpnConnectionRequest(string type, string customerGatewayId, string vpnGatewayId){_type = type;_customerGatewayId = customerGatewayId;_vpnGatewayId = vpnGatewayId;}" }, { "index": 8054, "before": "public OpenInstancePublicPortsResult openInstancePublicPorts(OpenInstancePublicPortsRequest request) {request = beforeClientExecution(request);return executeOpenInstancePublicPorts(request);}", "after": "public virtual OpenInstancePublicPortsResponse OpenInstancePublicPorts(OpenInstancePublicPortsRequest request){var options = new InvokeOptions();options.RequestMarshaller = OpenInstancePublicPortsRequestMarshaller.Instance;options.ResponseUnmarshaller = OpenInstancePublicPortsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8055, "before": "public Builder() {this.similarity = new BM25Similarity();}", "after": "public Builder(): base(){lastDocID = -1;wordNum = -1;word = 0;}" }, { "index": 8056, "before": "public InputIteratorWrapper(BytesRefIterator wrapped) {this.wrapped = wrapped;}", "after": "public InputIteratorWrapper(IBytesRefIterator wrapped){this.wrapped = wrapped;}" }, { "index": 8057, "before": "public CreateUserProfileResult createUserProfile(CreateUserProfileRequest request) {request = beforeClientExecution(request);return executeCreateUserProfile(request);}", "after": "public virtual CreateUserProfileResponse CreateUserProfile(CreateUserProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateUserProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateUserProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8058, "before": "public ImportWorkspaceImageResult importWorkspaceImage(ImportWorkspaceImageRequest request) {request = beforeClientExecution(request);return executeImportWorkspaceImage(request);}", "after": "public virtual ImportWorkspaceImageResponse ImportWorkspaceImage(ImportWorkspaceImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportWorkspaceImageRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportWorkspaceImageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8059, "before": "public void finish() {mState = STATE_IDLE;}", "after": "public virtual void finish(){mState = STATE_IDLE;}" }, { "index": 8060, "before": "public DescribeFleetHistoryResult describeFleetHistory(DescribeFleetHistoryRequest request) {request = beforeClientExecution(request);return executeDescribeFleetHistory(request);}", "after": "public virtual DescribeFleetHistoryResponse DescribeFleetHistory(DescribeFleetHistoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFleetHistoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFleetHistoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8061, "before": "public ListGatewaysResult listGateways(ListGatewaysRequest request) {request = beforeClientExecution(request);return executeListGateways(request);}", "after": "public virtual ListGatewaysResponse ListGateways(ListGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGatewaysResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8062, "before": "public CreateTrafficMirrorFilterResult createTrafficMirrorFilter(CreateTrafficMirrorFilterRequest request) {request = beforeClientExecution(request);return executeCreateTrafficMirrorFilter(request);}", "after": "public virtual CreateTrafficMirrorFilterResponse CreateTrafficMirrorFilter(CreateTrafficMirrorFilterRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTrafficMirrorFilterRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTrafficMirrorFilterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8063, "before": "public BytesRef(byte[] bytes, int offset, int length) {this.bytes = bytes;this.offset = offset;this.length = length;assert isValid();}", "after": "public BytesRef(byte[] bytes, int offset, int length){this.bytes = bytes;this.Offset = offset;this.Length = length;Debug.Assert(IsValid());}" }, { "index": 8064, "before": "public void write(LittleEndianOutput out) {out.writeByte(getSid());}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(Sid + PtgClass);}" }, { "index": 8065, "before": "public BufferedChecksum(Checksum in, int bufferSize) {this.in = in;this.buffer = new byte[bufferSize];}", "after": "public BufferedChecksum(IChecksum @in, int bufferSize){this.@in = @in;this.buffer = new byte[bufferSize];}" }, { "index": 8066, "before": "public String toFormulaString(String[] operands) {StringBuilder buffer = new StringBuilder();buffer.append(operands[ 0 ]);buffer.append(ADD);buffer.append(operands[ 1 ]);return buffer.toString();}", "after": "public override String ToFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.Append(operands[0]);buffer.Append(Add);buffer.Append(operands[1]);return buffer.ToString();}" }, { "index": 8067, "before": "public TagCommand tag() {return new TagCommand(repo);}", "after": "public virtual TagCommand Tag(){return new TagCommand(repo);}" }, { "index": 8068, "before": "public DescribeClusterDbRevisionsResult describeClusterDbRevisions(DescribeClusterDbRevisionsRequest request) {request = beforeClientExecution(request);return executeDescribeClusterDbRevisions(request);}", "after": "public virtual DescribeClusterDbRevisionsResponse DescribeClusterDbRevisions(DescribeClusterDbRevisionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterDbRevisionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterDbRevisionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8069, "before": "public StartImageScanResult startImageScan(StartImageScanRequest request) {request = beforeClientExecution(request);return executeStartImageScan(request);}", "after": "public virtual StartImageScanResponse StartImageScan(StartImageScanRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartImageScanRequestMarshaller.Instance;options.ResponseUnmarshaller = StartImageScanResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8070, "before": "public final String toFormulaString() {throw new RuntimeException(\"toFormulaString(String[] operands) should be used for subclasses of OperationPtgs\");}", "after": "public override String ToFormulaString(){throw new NotImplementedException(\"ToFormulaString(String[] operands) should be used for subclasses of OperationPtgs\");}" }, { "index": 8071, "before": "public DBInstance restoreDBInstanceToPointInTime(RestoreDBInstanceToPointInTimeRequest request) {request = beforeClientExecution(request);return executeRestoreDBInstanceToPointInTime(request);}", "after": "public virtual RestoreDBInstanceToPointInTimeResponse RestoreDBInstanceToPointInTime(RestoreDBInstanceToPointInTimeRequest request){var options = new InvokeOptions();options.RequestMarshaller = RestoreDBInstanceToPointInTimeRequestMarshaller.Instance;options.ResponseUnmarshaller = RestoreDBInstanceToPointInTimeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8072, "before": "public boolean removeShape(HSSFShape shape) {boolean isRemoved = _mainSpgrContainer.removeChildRecord(shape.getEscherContainer());if (isRemoved){shape.afterRemove(this);_shapes.remove(shape);}return isRemoved;}", "after": "public bool RemoveShape(HSSFShape shape){bool isRemoved = _mainSpgrContainer.RemoveChildRecord(shape.GetEscherContainer());if (isRemoved){shape.AfterRemove(this);_shapes.Remove(shape);}return isRemoved;}" }, { "index": 8073, "before": "public static void fill(boolean[] array, boolean value) {for (int i = 0; i < array.length; i++) {array[i] = value;}}", "after": "public static void fill(bool[] array, bool value){{for (int i = 0; i < array.Length; i++){array[i] = value;}}}" }, { "index": 8074, "before": "public DeleteAssessmentTemplateResult deleteAssessmentTemplate(DeleteAssessmentTemplateRequest request) {request = beforeClientExecution(request);return executeDeleteAssessmentTemplate(request);}", "after": "public virtual DeleteAssessmentTemplateResponse DeleteAssessmentTemplate(DeleteAssessmentTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAssessmentTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAssessmentTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8075, "before": "public StartMonitoringScheduleResult startMonitoringSchedule(StartMonitoringScheduleRequest request) {request = beforeClientExecution(request);return executeStartMonitoringSchedule(request);}", "after": "public virtual StartMonitoringScheduleResponse StartMonitoringSchedule(StartMonitoringScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartMonitoringScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = StartMonitoringScheduleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8076, "before": "public void println(int i) {println(String.valueOf(i));}", "after": "public virtual void println(int i){println(i.ToString());}" }, { "index": 8077, "before": "public PutRoomSkillParameterResult putRoomSkillParameter(PutRoomSkillParameterRequest request) {request = beforeClientExecution(request);return executePutRoomSkillParameter(request);}", "after": "public virtual PutRoomSkillParameterResponse PutRoomSkillParameter(PutRoomSkillParameterRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutRoomSkillParameterRequestMarshaller.Instance;options.ResponseUnmarshaller = PutRoomSkillParameterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8078, "before": "public DeleteDomainResult deleteDomain(DeleteDomainRequest request) {request = beforeClientExecution(request);return executeDeleteDomain(request);}", "after": "public virtual DeleteDomainResponse DeleteDomain(DeleteDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8079, "before": "public ModifyLaunchTemplateResult modifyLaunchTemplate(ModifyLaunchTemplateRequest request) {request = beforeClientExecution(request);return executeModifyLaunchTemplate(request);}", "after": "public virtual ModifyLaunchTemplateResponse ModifyLaunchTemplate(ModifyLaunchTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyLaunchTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyLaunchTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8080, "before": "public final float overheadRatio(int bitsPerValue) {assert isSupported(bitsPerValue);return overheadPerValue(bitsPerValue) / bitsPerValue;}", "after": "public virtual float OverheadRatio(int bitsPerValue){Debug.Assert(IsSupported(bitsPerValue));return OverheadPerValue(bitsPerValue) / bitsPerValue;}" }, { "index": 8081, "before": "public ObjectId getIndexId() {return indexId;}", "after": "public virtual ObjectId GetIndexId(){return indexId;}" }, { "index": 8082, "before": "public String toString(String field) {return \"like:\" + likeText;}", "after": "public override string ToString(string field){return \"like:\" + LikeText;}" }, { "index": 8083, "before": "public long ramBytesUsed() {long sizeInBytes = BASE_RAM_BYTES_USED;sizeInBytes += (docIDs!=null)? RamUsageEstimator.sizeOf(docIDs) : 0;sizeInBytes += (freqs!=null)? RamUsageEstimator.sizeOf(freqs) : 0;if(positions != null) {sizeInBytes += RamUsageEstimator.shallowSizeOf(positions);for(int[] position : positions) {sizeInBytes += (position!=null) ? RamUsageEstimator.sizeOf(position) : 0;}}if (payloads != null) {sizeInBytes += RamUsageEstimator.shallowSizeOf(payloads);for(byte[][] payload : payloads) {if(payload != null) {sizeInBytes += RamUsageEstimator.shallowSizeOf(payload);for(byte[] pload : payload) {sizeInBytes += (pload!=null) ? RamUsageEstimator.sizeOf(pload) : 0;}}}}return sizeInBytes;}", "after": "public override long RamBytesUsed(){long sizeInBytes = 0;sizeInBytes += (docIDs != null) ? RamUsageEstimator.SizeOf(docIDs) : 0;sizeInBytes += (freqs != null) ? RamUsageEstimator.SizeOf(freqs) : 0;if (positions != null){foreach (int[] position in positions){sizeInBytes += (position != null) ? RamUsageEstimator.SizeOf(position) : 0;}}if (payloads != null){foreach (var payload in payloads){if (payload != null){foreach (var pload in payload){sizeInBytes += (pload != null) ? RamUsageEstimator.SizeOf(pload) : 0;}}}}return sizeInBytes;}" }, { "index": 8084, "before": "public void setNeedBaseObjectIds(boolean b) {this.needBaseObjectIds = b;}", "after": "public virtual void SetNeedBaseObjectIds(bool b){this.needBaseObjectIds = b;}" }, { "index": 8085, "before": "public int getNextOrdinal() {return this.counter++;}", "after": "public virtual int GetNextOrdinal(){return this.m_counter++;}" }, { "index": 8086, "before": "public FloatBuffer compact() {throw new ReadOnlyBufferException();}", "after": "public override java.nio.FloatBuffer compact(){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 8087, "before": "public final int getLengthA() {return endA - beginA;}", "after": "public int GetLengthA(){return endA - beginA;}" }, { "index": 8088, "before": "public SearchDevicesResult searchDevices(SearchDevicesRequest request) {request = beforeClientExecution(request);return executeSearchDevices(request);}", "after": "public virtual SearchDevicesResponse SearchDevices(SearchDevicesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchDevicesRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchDevicesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8089, "before": "public String getInflectionForm() {return dictionary.getInflectionForm(wordId);}", "after": "public virtual string GetInflectionForm(){return dictionary.GetInflectionForm(wordId);}" }, { "index": 8090, "before": "public RevFilter clone() {return this;}", "after": "public override TreeFilter Clone(){return this;}" }, { "index": 8091, "before": "public ReservedDBInstance purchaseReservedDBInstancesOffering(PurchaseReservedDBInstancesOfferingRequest request) {request = beforeClientExecution(request);return executePurchaseReservedDBInstancesOffering(request);}", "after": "public virtual PurchaseReservedDBInstancesOfferingResponse PurchaseReservedDBInstancesOffering(PurchaseReservedDBInstancesOfferingRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurchaseReservedDBInstancesOfferingRequestMarshaller.Instance;options.ResponseUnmarshaller = PurchaseReservedDBInstancesOfferingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8092, "before": "public String getReason() {return super.getMessage();}", "after": "public virtual string getReason(){return base.Message;}" }, { "index": 8093, "before": "public ParseException generateParseException() {jj_expentries.clear();boolean[] la1tokens = new boolean[24];if (jj_kind >= 0) {la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 10; i++) {if (jj_la1[i] == jj_gen) {for (int j = 0; j < 32; j++) {if ((jj_la1_0[i] & (1<= 0){la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 28; i++){if (jj_la1[i] == jj_gen){for (int j = 0; j < 32; j++){if ((jj_la1_0[i] & (1 << j)) != 0){la1tokens[j] = true;}if ((jj_la1_1[i] & (1 << j)) != 0){la1tokens[32 + j] = true;}}}}for (int i = 0; i < 34; i++){if (la1tokens[i]){jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.Add(jj_expentry);}}jj_endpos = 0;Jj_rescan_token();Jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.Count][];for (int i = 0; i < jj_expentries.Count; i++){exptokseq[i] = jj_expentries[i];}return new ParseException(Token, exptokseq, StandardSyntaxParserConstants.TokenImage);}" }, { "index": 8094, "before": "public int [] toArray(){int[] rval = new int[ _limit ];System.arraycopy(_array, 0, rval, 0, _limit);return rval;}", "after": "public int[] ToArray(){int[] rval = new int[_limit];Array.Copy(_array, 0, rval, 0, _limit);return rval;}" }, { "index": 8095, "before": "public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {if (args.length == 1) {return evaluate(ec.getRowIndex(), ec.getColumnIndex(), args[0]);}if (args.length == 2) {return evaluate(ec.getRowIndex(), ec.getColumnIndex(), args[0], args[1]);}return ErrorEval.VALUE_INVALID;}", "after": "public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){if (args.Length == 1){return Evaluate(ec.RowIndex, ec.ColumnIndex, args[0]);}if (args.Length == 2){return Evaluate(ec.RowIndex, ec.ColumnIndex, args[0], args[1]);}return ErrorEval.VALUE_INVALID;}" }, { "index": 8096, "before": "public DescribeCustomerGatewaysResult describeCustomerGateways(DescribeCustomerGatewaysRequest request) {request = beforeClientExecution(request);return executeDescribeCustomerGateways(request);}", "after": "public virtual DescribeCustomerGatewaysResponse DescribeCustomerGateways(DescribeCustomerGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCustomerGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCustomerGatewaysResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8097, "before": "public String toString() {return utf8.utf8ToString() + \"/\" + bucket;}", "after": "public override string ToString(){return Utf8.Utf8ToString() + \"/\" + Bucket.ToString(\"0.0\", CultureInfo.InvariantCulture);}" }, { "index": 8098, "before": "public void clipRect(int x, int y, int width, int height){if (logger.check( POILogger.WARN ))logger.log(POILogger.WARN,\"clipRect not supported\");}", "after": "public void ClipRect(int x, int y, int width, int height){if (Logger.Check(POILogger.WARN))Logger.Log(POILogger.WARN, \"clipRect not supported\");}" }, { "index": 8099, "before": "public void startFragment(TextFragment newFragment) {uniqueTermsInFragment = new HashSet<>();currentTextFragment = newFragment;totalScore = 0;}", "after": "public virtual void StartFragment(TextFragment newFragment){uniqueTermsInFragment = new JCG.HashSet();currentTextFragment = newFragment;totalScore = 0;}" }, { "index": 8100, "before": "public void setPolygonDrawArea(int width, int height) {setPropertyValue(new EscherSimpleProperty(EscherPropertyTypes.GEOMETRY__RIGHT, width));setPropertyValue(new EscherSimpleProperty(EscherPropertyTypes.GEOMETRY__BOTTOM, height));}", "after": "public void SetPolygonDrawArea(int width, int height){SetPropertyValue(new EscherSimpleProperty(EscherProperties.GEOMETRY__RIGHT, width));SetPropertyValue(new EscherSimpleProperty(EscherProperties.GEOMETRY__BOTTOM, height));}" }, { "index": 8101, "before": "public DeleteRouteSettingsResult deleteRouteSettings(DeleteRouteSettingsRequest request) {request = beforeClientExecution(request);return executeDeleteRouteSettings(request);}", "after": "public virtual DeleteRouteSettingsResponse DeleteRouteSettings(DeleteRouteSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRouteSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRouteSettingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8102, "before": "public CherryPickCommand include(String name, AnyObjectId commit) {return include(new ObjectIdRef.Unpeeled(Storage.LOOSE, name,commit.copy()));}", "after": "public virtual NGit.Api.CherryPickCommand Include(string name, AnyObjectId commit){return Include(new ObjectIdRef.Unpeeled(RefStorage.LOOSE, name, commit.Copy()));}" }, { "index": 8103, "before": "public short getFormat(String format, boolean createIfNotFound) {for (FormatRecord r : formats) {if (r.getFormatString().equals(format)) {return (short)r.getIndexCode();}}if (createIfNotFound) {return (short)createFormat(format);}return -1;}", "after": "public short GetFormat(String format, bool CreateIfNotFound){IEnumerator iterator;for (iterator = formats.GetEnumerator(); iterator.MoveNext(); ){FormatRecord r = (FormatRecord)iterator.Current;if (r.FormatString.Equals(format)){return (short)r.IndexCode;}}if (CreateIfNotFound){return (short)CreateFormat(format);}return -1;}" }, { "index": 8104, "before": "public SpanNearQuery build() {return new SpanNearQuery(clauses.toArray(new SpanQuery[clauses.size()]), slop, ordered);}", "after": "public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}" }, { "index": 8105, "before": "public int getRowCellBlockSize(int startRow, int endRow) {int result = 0;for(int rowIx=startRow; rowIx<=endRow && rowIx endRow)break;if ((row >= startRow) && (row <= endRow))size += ((RecordBase)cell).RecordSize;}return size;}" }, { "index": 8106, "before": "public final boolean incrementToken() {if (!it.hasNext()) {return false;}AttributeSource.State state = it.next();restoreState(state);return true;}", "after": "public override sealed bool IncrementToken(){if (it == null){it = cachedStates.GetEnumerator();}if (!it.MoveNext())return false;var state = it.Current;RestoreState(state);return true;}" }, { "index": 8107, "before": "public DeleteTemplateResult deleteTemplate(DeleteTemplateRequest request) {request = beforeClientExecution(request);return executeDeleteTemplate(request);}", "after": "public virtual DeleteTemplateResponse DeleteTemplate(DeleteTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8108, "before": "public StartFaceSearchResult startFaceSearch(StartFaceSearchRequest request) {request = beforeClientExecution(request);return executeStartFaceSearch(request);}", "after": "public virtual StartFaceSearchResponse StartFaceSearch(StartFaceSearchRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartFaceSearchRequestMarshaller.Instance;options.ResponseUnmarshaller = StartFaceSearchResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8109, "before": "public static int formatBase10(final byte[] b, int o, int value) {if (value == 0) {b[--o] = '0';return o;}final boolean isneg = value < 0;if (isneg)value = -value;while (value != 0) {b[--o] = base10byte[value % 10];value /= 10;}if (isneg)b[--o] = '-';return o;}", "after": "public static int FormatBase10(byte[] b, int o, int value){if (value == 0){b[--o] = (byte)('0');return o;}bool isneg = value < 0;if (isneg){value = -value;}while (value != 0){b[--o] = base10byte[value % 10];value /= 10;}if (isneg){b[--o] = (byte)('-');}return o;}" }, { "index": 8110, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[SINDEX]\\n\");buffer.append(\" .index = \").append(\"0x\").append(HexDump.toHex( getIndex ())).append(\" (\").append( getIndex() ).append(\" )\");buffer.append(System.getProperty(\"line.separator\"));buffer.append(\"[/SINDEX]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[SINDEX]\\n\");buffer.Append(\" .index = \").Append(\"0x\").Append(HexDump.ToHex(Index)).Append(\" (\").Append(Index).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\"[/SINDEX]\\n\");return buffer.ToString();}" }, { "index": 8111, "before": "public DescribeDBSecurityGroupsResult describeDBSecurityGroups(DescribeDBSecurityGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeDBSecurityGroups(request);}", "after": "public virtual DescribeDBSecurityGroupsResponse DescribeDBSecurityGroups(DescribeDBSecurityGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBSecurityGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBSecurityGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8112, "before": "public DeleteTrafficMirrorSessionResult deleteTrafficMirrorSession(DeleteTrafficMirrorSessionRequest request) {request = beforeClientExecution(request);return executeDeleteTrafficMirrorSession(request);}", "after": "public virtual DeleteTrafficMirrorSessionResponse DeleteTrafficMirrorSession(DeleteTrafficMirrorSessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTrafficMirrorSessionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTrafficMirrorSessionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8113, "before": "public void stopWalk() {final int cur = ptr;final int cnt = cache.getEntryCount();if (cur < cnt)builder.keep(cur, cnt - cur);}", "after": "public override void StopWalk(){int cur = ptr;int cnt = cache.GetEntryCount();if (cur < cnt){builder.Keep(cur, cnt - cur);}}" }, { "index": 8114, "before": "public ExpandedDouble normaliseBaseTwo() {MutableFPNumber cc = new MutableFPNumber(composeFrac(), 39);cc.multiplyByPowerOfTen(_relativeDecimalExponent);cc.normalise64bit();return cc.createExpandedDouble();}", "after": "public ExpandedDouble NormaliseBaseTwo(){MutableFPNumber cc = new MutableFPNumber(ComposeFrac(), 39);cc.multiplyByPowerOfTen(_relativeDecimalExponent);cc.Normalise64bit();return cc.CreateExpandedDouble();}" }, { "index": 8115, "before": "public PutLexiconResult putLexicon(PutLexiconRequest request) {request = beforeClientExecution(request);return executePutLexicon(request);}", "after": "public virtual PutLexiconResponse PutLexicon(PutLexiconRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutLexiconRequestMarshaller.Instance;options.ResponseUnmarshaller = PutLexiconResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8116, "before": "public int[] init() {if (perField.postingsArray == null) {perField.postingsArray = perField.createPostingsArray(2);perField.newPostingsArray();bytesUsed.addAndGet(perField.postingsArray.size * perField.postingsArray.bytesPerPosting());}return perField.postingsArray.textStarts;}", "after": "public override int[] Init(){if (perField.postingsArray == null){perField.postingsArray = perField.consumer.CreatePostingsArray(2);bytesUsed.AddAndGet(perField.postingsArray.size * perField.postingsArray.BytesPerPosting());}return perField.postingsArray.textStarts;}" }, { "index": 8117, "before": "public DirCacheEntry getDirCacheEntry() {return entry;}", "after": "public virtual DirCacheEntry GetDirCacheEntry(){return entry;}" }, { "index": 8118, "before": "public boolean include(TreeWalk walker) {return matchFilter(walker) <= 0;}", "after": "public override bool Include(TreeWalk walker){return walker.IsPathPrefix(pathRaw, pathRaw.Length) == 0;}" }, { "index": 8119, "before": "public void open(String closer) {if (closer == null) {throw new NullPointerException(\"closer == null\");}if (this == NOOP || !ENABLED) {return;}String message = \"Explicit termination method '\" + closer + \"' not called\";allocationSite = new Throwable(message);}", "after": "public void open(string closer){if (closer == null){throw new System.ArgumentNullException(\"closer == null\");}if (this == NOOP || !ENABLED){return;}string message = \"Explicit termination method '\" + closer + \"' not called\";allocationSite = new System.Exception(message);}" }, { "index": 8120, "before": "public List findAll(ParseTree tree, String xpath) {Collection subtrees = XPath.findAll(tree, xpath, matcher.getParser());List matches = new ArrayList();for (ParseTree t : subtrees) {ParseTreeMatch match = match(t);if ( match.succeeded() ) {matches.add(match);}}return matches;}", "after": "public virtual IList FindAll(IParseTree tree, string xpath){ICollection subtrees = XPath.FindAll(tree, xpath, matcher.Parser);IList matches = new List();foreach (IParseTree t in subtrees){ParseTreeMatch match = Match(t);if (match.Succeeded){matches.Add(match);}}return matches;}" }, { "index": 8121, "before": "public static boolean hasSLLConflictTerminatingPrediction(PredictionMode mode, ATNConfigSet configs) {if (allConfigsInRuleStopStates(configs)) {return true;}if ( mode == PredictionMode.SLL ) {if ( configs.hasSemanticContext ) {ATNConfigSet dup = new ATNConfigSet();for (ATNConfig c : configs) {c = new ATNConfig(c,SemanticContext.NONE);dup.add(c);}configs = dup;}}Collection altsets = getConflictingAltSubsets(configs);boolean heuristic =hasConflictingAltSet(altsets) && !hasStateAssociatedWithOneAlt(configs);return heuristic;}", "after": "public static bool HasSLLConflictTerminatingPrediction(PredictionMode mode, ATNConfigSet configSet){if (AllConfigsInRuleStopStates(configSet.configs)){return true;}if (mode == PredictionMode.SLL){if (configSet.hasSemanticContext){ATNConfigSet dup = new ATNConfigSet();foreach (ATNConfig c in configSet.configs){dup.Add(new ATNConfig(c, SemanticContext.NONE));}configSet = dup;}}ICollection altsets = GetConflictingAltSubsets(configSet.configs);bool heuristic = HasConflictingAltSet(altsets) && !HasStateAssociatedWithOneAlt(configSet.configs);return heuristic;}" }, { "index": 8122, "before": "public DescribeUpdateActionsResult describeUpdateActions(DescribeUpdateActionsRequest request) {request = beforeClientExecution(request);return executeDescribeUpdateActions(request);}", "after": "public virtual DescribeUpdateActionsResponse DescribeUpdateActions(DescribeUpdateActionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUpdateActionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUpdateActionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8123, "before": "public HashMap() {table = (HashMapEntry[]) EMPTY_TABLE;threshold = -1; }", "after": "public HashMap(){table = (java.util.HashMap.HashMapEntry[])EMPTY_TABLE;threshold = -1;}" }, { "index": 8124, "before": "public Trie optimize(Trie orig) {List cmds = orig.cmds;List rows = new ArrayList<>();List orows = orig.rows;int remap[] = new int[orows.size()];Arrays.fill(remap, -1);rows = removeGaps(orig.root, rows, new ArrayList(), remap);return new Trie(orig.forward, remap[orig.root], cmds, rows);}", "after": "public virtual Trie Optimize(Trie orig){IList cmds = orig.cmds;IList rows = new List();IList orows = orig.rows;int[] remap = new int[orows.Count];Arrays.Fill(remap, -1);rows = RemoveGaps(orig.root, rows, new List(), remap);return new Trie(orig.forward, remap[orig.root], cmds, rows);}" }, { "index": 8125, "before": "public CreateLifecyclePolicyResult createLifecyclePolicy(CreateLifecyclePolicyRequest request) {request = beforeClientExecution(request);return executeCreateLifecyclePolicy(request);}", "after": "public virtual CreateLifecyclePolicyResponse CreateLifecyclePolicy(CreateLifecyclePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLifecyclePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLifecyclePolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8126, "before": "public void writeLong(long v) {writeInt((int)(v));writeInt((int)(v >> 32));}", "after": "public void WriteLong(long v){WriteInt((int)(v >> 0));WriteInt((int)(v >> 32));}" }, { "index": 8127, "before": "public void set(char[] arr, int end) {this.buf = arr;this.len = end;}", "after": "public virtual void Set(char[] arr, int end){this.m_buf = arr;this.m_len = end;}" }, { "index": 8128, "before": "public HMMChineseTokenizerFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public HMMChineseTokenizerFactory(IDictionary args): base(args){if (args.Any()){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 8129, "before": "public String toString() {return getClass().getSimpleName()+\" field:\"+fieldName+\" ctx=\"+ctx;}", "after": "public override string ToString(){return GetType().Name + \" field:\" + fieldName + \" ctx=\" + m_ctx;}" }, { "index": 8130, "before": "public ResendContactReachabilityEmailResult resendContactReachabilityEmail(ResendContactReachabilityEmailRequest request) {request = beforeClientExecution(request);return executeResendContactReachabilityEmail(request);}", "after": "public virtual ResendContactReachabilityEmailResponse ResendContactReachabilityEmail(ResendContactReachabilityEmailRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResendContactReachabilityEmailRequestMarshaller.Instance;options.ResponseUnmarshaller = ResendContactReachabilityEmailResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8131, "before": "public GetApiKeyResult getApiKey(GetApiKeyRequest request) {request = beforeClientExecution(request);return executeGetApiKey(request);}", "after": "public virtual GetApiKeyResponse GetApiKey(GetApiKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApiKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApiKeyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8132, "before": "public void advance() {previousValue = value;if (value == 1) {value = minShingleSize;} else if (value == maxShingleSize) {reset();} else {++value;}}", "after": "public virtual void Advance(){previousValue = value;if (value == 1){value = outerInstance.minShingleSize;}else if (value == outerInstance.maxShingleSize){Reset();}else{++value;}}" }, { "index": 8133, "before": "public int addConditionalFormatting(CellRangeAddress[] regions,ConditionalFormattingRule rule1) {return addConditionalFormatting(regions, (HSSFConditionalFormattingRule)rule1);}", "after": "public int AddConditionalFormatting(CellRangeAddress[] regions,HSSFConditionalFormattingRule rule1){return AddConditionalFormatting(regions,rule1 == null ? null : new HSSFConditionalFormattingRule[]{rule1});}" }, { "index": 8134, "before": "public RebaseCommand setUpstream(RevCommit upstream) {this.upstreamCommit = upstream;this.upstreamCommitName = upstream.name();return this;}", "after": "public virtual NGit.Api.RebaseCommand SetUpstream(RevCommit upstream){this.upstreamCommit = upstream;this.upstreamCommitName = upstream.Name;return this;}" }, { "index": 8135, "before": "public GetDocumentTextDetectionResult getDocumentTextDetection(GetDocumentTextDetectionRequest request) {request = beforeClientExecution(request);return executeGetDocumentTextDetection(request);}", "after": "public virtual GetDocumentTextDetectionResponse GetDocumentTextDetection(GetDocumentTextDetectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDocumentTextDetectionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDocumentTextDetectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8136, "before": "public CreateDBSecurityGroupRequest(String dBSecurityGroupName, String dBSecurityGroupDescription) {setDBSecurityGroupName(dBSecurityGroupName);setDBSecurityGroupDescription(dBSecurityGroupDescription);}", "after": "public CreateDBSecurityGroupRequest(string dbSecurityGroupName, string dbSecurityGroupDescription){_dbSecurityGroupName = dbSecurityGroupName;_dbSecurityGroupDescription = dbSecurityGroupDescription;}" }, { "index": 8137, "before": "public Reader create(Reader input) {return new ICUNormalizer2CharFilter(input, normalizer);}", "after": "public override TextReader Create(TextReader input){return new ICUNormalizer2CharFilter(input, normalizer);}" }, { "index": 8138, "before": "static public double pmt(double r, int nper, double pv) {return pmt(r, nper, pv, 0);}", "after": "static public double PMT(double r, int nper, double pv){return PMT(r, nper, pv, 0);}" }, { "index": 8139, "before": "public void set(String name, String value) throws Exception {if (valByRound.get(name) != null) {throw new Exception(\"Cannot modify a multi value property!\");}props.setProperty(name, value);}", "after": "public virtual void Set(string name, string value){object temp;if (valByRound.TryGetValue(name, out temp) && temp != null){throw new Exception(\"Cannot modify a multi value property!\");}props[name] = value;}" }, { "index": 8140, "before": "public DescribeFastSnapshotRestoresResult describeFastSnapshotRestores(DescribeFastSnapshotRestoresRequest request) {request = beforeClientExecution(request);return executeDescribeFastSnapshotRestores(request);}", "after": "public virtual DescribeFastSnapshotRestoresResponse DescribeFastSnapshotRestores(DescribeFastSnapshotRestoresRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFastSnapshotRestoresRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFastSnapshotRestoresResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8141, "before": "public DescribeScheduledInstanceAvailabilityResult describeScheduledInstanceAvailability(DescribeScheduledInstanceAvailabilityRequest request) {request = beforeClientExecution(request);return executeDescribeScheduledInstanceAvailability(request);}", "after": "public virtual DescribeScheduledInstanceAvailabilityResponse DescribeScheduledInstanceAvailability(DescribeScheduledInstanceAvailabilityRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScheduledInstanceAvailabilityRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScheduledInstanceAvailabilityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8142, "before": "public SendBonusResult sendBonus(SendBonusRequest request) {request = beforeClientExecution(request);return executeSendBonus(request);}", "after": "public virtual SendBonusResponse SendBonus(SendBonusRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendBonusRequestMarshaller.Instance;options.ResponseUnmarshaller = SendBonusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8143, "before": "public UnpackException(Throwable why) {super(JGitText.get().unpackException);initCause(why);}", "after": "public UnpackException(Exception why) : base(JGitText.Get().unpackException, why){Sharpen.Extensions.InitCause(this, why);}" }, { "index": 8144, "before": "public boolean remove(Object o) {if (!(o instanceof Map.Entry))return false;Map.Entry e = (Map.Entry)o;return ConcurrentHashMap.this.remove(e.getKey(), e.getValue());}", "after": "public override bool remove(object o){if (!(o is java.util.MapClass.Entry)){return false;}java.util.MapClass.Entry e = (java.util.MapClass.Entry)o;return this._enclosing.removeMapping(e.getKey(), e.getValue());}" }, { "index": 8145, "before": "public Iterator iterator() {return newValueIterator();}", "after": "public override java.util.Iterator iterator(){return new java.util.Hashtable.ValueIterator(this._enclosing);}" }, { "index": 8146, "before": "public DescribeVpcEndpointServiceConfigurationsResult describeVpcEndpointServiceConfigurations(DescribeVpcEndpointServiceConfigurationsRequest request) {request = beforeClientExecution(request);return executeDescribeVpcEndpointServiceConfigurations(request);}", "after": "public virtual DescribeVpcEndpointServiceConfigurationsResponse DescribeVpcEndpointServiceConfigurations(DescribeVpcEndpointServiceConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcEndpointServiceConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcEndpointServiceConfigurationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8147, "before": "public void setDiffComparator(RawTextComparator cmp) {comparator = cmp;}", "after": "public virtual void SetDiffComparator(RawTextComparator cmp){comparator = cmp;}" }, { "index": 8148, "before": "public FilePassRecord clone() {return copy();}", "after": "public override Object Clone(){return this;}" }, { "index": 8149, "before": "public DeleteServiceResult deleteService(DeleteServiceRequest request) {request = beforeClientExecution(request);return executeDeleteService(request);}", "after": "public virtual DeleteServiceResponse DeleteService(DeleteServiceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteServiceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteServiceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8150, "before": "public FormulaRecord() {field_8_parsed_expr = Formula.create(Ptg.EMPTY_PTG_ARRAY);}", "after": "public FormulaRecord(){field_8_parsed_expr = NPOI.SS.Formula.Formula.Create(Ptg.EMPTY_PTG_ARRAY);}" }, { "index": 8151, "before": "public DescribeHsmClientCertificatesResult describeHsmClientCertificates(DescribeHsmClientCertificatesRequest request) {request = beforeClientExecution(request);return executeDescribeHsmClientCertificates(request);}", "after": "public virtual DescribeHsmClientCertificatesResponse DescribeHsmClientCertificates(DescribeHsmClientCertificatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeHsmClientCertificatesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeHsmClientCertificatesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8152, "before": "public ICUTokenizerFactory(Map args) {super(args);tailored = new HashMap<>();String rulefilesArg = get(args, RULEFILES);if (rulefilesArg != null) {List scriptAndResourcePaths = splitFileNames(rulefilesArg);for (String scriptAndResourcePath : scriptAndResourcePaths) {int colonPos = scriptAndResourcePath.indexOf(\":\");String scriptCode = scriptAndResourcePath.substring(0, colonPos).trim();String resourcePath = scriptAndResourcePath.substring(colonPos+1).trim();tailored.put(UCharacter.getPropertyValueEnum(UProperty.SCRIPT, scriptCode), resourcePath);}}cjkAsWords = getBoolean(args, \"cjkAsWords\", true);myanmarAsWords = getBoolean(args, \"myanmarAsWords\", true);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public ICUTokenizerFactory(IDictionary args): base(args){tailored = new Dictionary();string rulefilesArg = Get(args, RULEFILES);if (rulefilesArg != null){IList scriptAndResourcePaths = SplitFileNames(rulefilesArg);foreach (string scriptAndResourcePath in scriptAndResourcePaths){int colonPos = scriptAndResourcePath.IndexOf(':');string scriptCode = scriptAndResourcePath.Substring(0, colonPos - 0).Trim();string resourcePath = scriptAndResourcePath.Substring(colonPos + 1).Trim();tailored[UChar.GetPropertyValueEnum(UProperty.Script, scriptCode)] = resourcePath;}}cjkAsWords = GetBoolean(args, \"cjkAsWords\", true);myanmarAsWords = GetBoolean(args, \"myanmarAsWords\", true);if (args.Count != 0){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 8153, "before": "public SuspendProcessesResult suspendProcesses(SuspendProcessesRequest request) {request = beforeClientExecution(request);return executeSuspendProcesses(request);}", "after": "public virtual SuspendProcessesResponse SuspendProcesses(SuspendProcessesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SuspendProcessesRequestMarshaller.Instance;options.ResponseUnmarshaller = SuspendProcessesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8154, "before": "public DescribeConfigurationRevisionResult describeConfigurationRevision(DescribeConfigurationRevisionRequest request) {request = beforeClientExecution(request);return executeDescribeConfigurationRevision(request);}", "after": "public virtual DescribeConfigurationRevisionResponse DescribeConfigurationRevision(DescribeConfigurationRevisionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeConfigurationRevisionRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeConfigurationRevisionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8155, "before": "public RevFilter clone() {final RevFilter[] s = new RevFilter[subfilters.length];for (int i = 0; i < s.length; i++)s[i] = subfilters[i].clone();return new List(s);}", "after": "public override RevFilter Clone(){RevFilter[] s = new RevFilter[subfilters.Length];for (int i = 0; i < s.Length; i++){s[i] = subfilters[i].Clone();}return new AndRevFilter.List(s);}" }, { "index": 8156, "before": "public TabIdRecord() {_tabids = EMPTY_SHORT_ARRAY;}", "after": "public TabIdRecord(){_tabids = EMPTY_SHORT_ARRAY;}" }, { "index": 8157, "before": "public List getConflictingPaths() {return conflictingPaths;}", "after": "public virtual IList GetConflictingPaths(){return conflictingPaths;}" }, { "index": 8158, "before": "public void reset() {inDegree = 0;}", "after": "public virtual void Reset(){inDegree = 0;}" }, { "index": 8159, "before": "public DescribeJobFlowsRequest(java.util.List jobFlowIds) {setJobFlowIds(jobFlowIds);}", "after": "public DescribeJobFlowsRequest(List jobFlowIds){_jobFlowIds = jobFlowIds;}" }, { "index": 8160, "before": "public final void decRef() throws IOException {final int rc = refCount.decrementAndGet();if (rc == 0) {boolean success = false;try {release();success = true;} finally {if (!success) {refCount.incrementAndGet();}}} else if (rc < 0) {throw new IllegalStateException(\"too many decRef calls: refCount is \" + rc + \" after decrement\");}}", "after": "public void DecRef(){int rc = refCount.DecrementAndGet();if (rc == 0){bool success = false;try{Release();success = true;}finally{if (!success){refCount.IncrementAndGet();}}}else if (rc < 0){throw new InvalidOperationException(\"too many DecRef() calls: refCount is \" + rc + \" after decrement\");}}" }, { "index": 8161, "before": "public DeleteMountTargetResult deleteMountTarget(DeleteMountTargetRequest request) {request = beforeClientExecution(request);return executeDeleteMountTarget(request);}", "after": "public virtual DeleteMountTargetResponse DeleteMountTarget(DeleteMountTargetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMountTargetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMountTargetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8162, "before": "public void println(double d) {println(String.valueOf(d));}", "after": "public virtual void println(double d){println(d.ToString());}" }, { "index": 8163, "before": "public DescribeDBProxyTargetsResult describeDBProxyTargets(DescribeDBProxyTargetsRequest request) {request = beforeClientExecution(request);return executeDescribeDBProxyTargets(request);}", "after": "public virtual DescribeDBProxyTargetsResponse DescribeDBProxyTargets(DescribeDBProxyTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBProxyTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBProxyTargetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8164, "before": "final public SrndQuery PrefixOperatorQuery() throws ParseException {Token oprt;List queries;switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case OR:oprt = jj_consume_token(OR);queries = FieldsQueryList();{if (true) return getOrQuery(queries, false , oprt);}break;case AND:oprt = jj_consume_token(AND);queries = FieldsQueryList();{if (true) return getAndQuery(queries, false , oprt);}break;case N:oprt = jj_consume_token(N);queries = FieldsQueryList();{if (true) return getDistanceQuery(queries, false , oprt, false );}break;case W:oprt = jj_consume_token(W);queries = FieldsQueryList();{if (true) return getDistanceQuery(queries, false , oprt, true );}break;default:jj_la1[6] = jj_gen;jj_consume_token(-1);throw new ParseException();}throw new Error(\"Missing return statement in function\");}", "after": "public SrndQuery PrefixOperatorQuery(){Token oprt;IList queries;switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.OR:oprt = Jj_consume_token(RegexpToken.OR);queries = FieldsQueryList();{ if (true) return GetOrQuery(queries, false , oprt); }case RegexpToken.AND:oprt = Jj_consume_token(RegexpToken.AND);queries = FieldsQueryList();{ if (true) return GetAndQuery(queries, false , oprt); }case RegexpToken.N:oprt = Jj_consume_token(RegexpToken.N);queries = FieldsQueryList();{ if (true) return GetDistanceQuery(queries, false , oprt, false ); }case RegexpToken.W:oprt = Jj_consume_token(RegexpToken.W);queries = FieldsQueryList();{ if (true) return GetDistanceQuery(queries, false , oprt, true ); }default:jj_la1[6] = jj_gen;Jj_consume_token(-1);throw new ParseException();}throw new Exception(\"Missing return statement in function\");}" }, { "index": 8165, "before": "public DeleteInstanceSnapshotResult deleteInstanceSnapshot(DeleteInstanceSnapshotRequest request) {request = beforeClientExecution(request);return executeDeleteInstanceSnapshot(request);}", "after": "public virtual DeleteInstanceSnapshotResponse DeleteInstanceSnapshot(DeleteInstanceSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteInstanceSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteInstanceSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8166, "before": "public Entry firstEntry() {return immutableCopy(endpoint(true));}", "after": "public java.util.MapClass.Entry firstEntry(){return this._enclosing.immutableCopy(this.endpoint(true));}" }, { "index": 8167, "before": "public DeregisterTransitGatewayMulticastGroupSourcesResult deregisterTransitGatewayMulticastGroupSources(DeregisterTransitGatewayMulticastGroupSourcesRequest request) {request = beforeClientExecution(request);return executeDeregisterTransitGatewayMulticastGroupSources(request);}", "after": "public virtual DeregisterTransitGatewayMulticastGroupSourcesResponse DeregisterTransitGatewayMulticastGroupSources(DeregisterTransitGatewayMulticastGroupSourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterTransitGatewayMulticastGroupSourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterTransitGatewayMulticastGroupSourcesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8168, "before": "public ImportTerminologyResult importTerminology(ImportTerminologyRequest request) {request = beforeClientExecution(request);return executeImportTerminology(request);}", "after": "public virtual ImportTerminologyResponse ImportTerminology(ImportTerminologyRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportTerminologyRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportTerminologyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8169, "before": "public int serialize(int offset, byte[] data){byte[] rawData = getRawData();if (getEscherRecords().size() == 0 && rawData != null){return writeData( offset, data, rawData );}byte[] buffer = new byte[getRawDataSize()];int pos = 0;for ( Iterator iterator = getEscherRecords().iterator(); iterator.hasNext(); ){EscherRecord r = iterator.next();pos += r.serialize(pos, buffer, new NullEscherSerializationListener() );}return writeData( offset, data, buffer );}", "after": "public override int Serialize(int offset, byte [] data){byte[] rawData = RawData;if (EscherRecords.Count == 0 && rawData != null){return WriteData(offset, data, rawData);}else{byte[] buffer = new byte[RawDataSize];int pos = 0;for (IEnumerator iterator = EscherRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord r = (EscherRecord)iterator.Current;pos += r.Serialize(pos, buffer, new NullEscherSerializationListener());}return WriteData(offset, data, buffer);}}" }, { "index": 8170, "before": "public DescribeDBParameterGroupsResult describeDBParameterGroups(DescribeDBParameterGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeDBParameterGroups(request);}", "after": "public virtual DescribeDBParameterGroupsResponse DescribeDBParameterGroups(DescribeDBParameterGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBParameterGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBParameterGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8171, "before": "public static FuzzySet createSetBasedOnMaxMemory(int maxNumBytes){int setSize=getNearestSetSize(maxNumBytes);return new FuzzySet(new FixedBitSet(setSize+1),setSize, hashFunctionForVersion(VERSION_CURRENT));}", "after": "public static FuzzySet CreateSetBasedOnMaxMemory(int maxNumBytes){var setSize = GetNearestSetSize(maxNumBytes);return new FuzzySet(new FixedBitSet(setSize + 1), setSize, HashFunctionForVersion(VERSION_CURRENT));}" }, { "index": 8172, "before": "public BundleWriter(Repository repo) {db = repo;reader = null;include = new TreeMap<>();assume = new HashSet<>();tagTargets = new HashSet<>();}", "after": "public BundleWriter(Repository repo){db = repo;include = new SortedDictionary();assume = new HashSet();tagTargets = new HashSet();}" }, { "index": 8173, "before": "public AssociateDomainResult associateDomain(AssociateDomainRequest request) {request = beforeClientExecution(request);return executeAssociateDomain(request);}", "after": "public virtual AssociateDomainResponse AssociateDomain(AssociateDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8174, "before": "public GetInstancePortStatesResult getInstancePortStates(GetInstancePortStatesRequest request) {request = beforeClientExecution(request);return executeGetInstancePortStates(request);}", "after": "public virtual GetInstancePortStatesResponse GetInstancePortStates(GetInstancePortStatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInstancePortStatesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInstancePortStatesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8175, "before": "public SrndTruncQuery(String truncated, char unlimited, char mask) {super(false); this.truncated = truncated;this.unlimited = unlimited;this.mask = mask;truncatedToPrefixAndPattern();}", "after": "public SrndTruncQuery(string truncated, char unlimited, char mask): base(false) {this.truncated = truncated;this.unlimited = unlimited;this.mask = mask;TruncatedToPrefixAndPattern();}" }, { "index": 8176, "before": "public final Explanation explain(BasicStats stats) {return Explanation.match(lambda(stats),getClass().getSimpleName()+ \", computed as (n + 1) / (N + 1) from:\",Explanation.match(stats.getDocFreq(),\"n, number of documents containing term\"),Explanation.match(stats.getNumberOfDocuments(),\"N, total number of documents with field\"));}", "after": "public override sealed Explanation Explain(BasicStats stats){Explanation result = new Explanation();result.Description = this.GetType().Name + \", computed from: \";result.Value = CalculateLambda(stats);result.AddDetail(new Explanation(stats.DocFreq, \"docFreq\"));result.AddDetail(new Explanation(stats.NumberOfDocuments, \"numberOfDocuments\"));return result;}" }, { "index": 8177, "before": "public DeleteBaiduChannelResult deleteBaiduChannel(DeleteBaiduChannelRequest request) {request = beforeClientExecution(request);return executeDeleteBaiduChannel(request);}", "after": "public virtual DeleteBaiduChannelResponse DeleteBaiduChannel(DeleteBaiduChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteBaiduChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteBaiduChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8178, "before": "public UnlinkDeveloperIdentityResult unlinkDeveloperIdentity(UnlinkDeveloperIdentityRequest request) {request = beforeClientExecution(request);return executeUnlinkDeveloperIdentity(request);}", "after": "public virtual UnlinkDeveloperIdentityResponse UnlinkDeveloperIdentity(UnlinkDeveloperIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = UnlinkDeveloperIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = UnlinkDeveloperIdentityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8179, "before": "public SimpleBoundaryScanner( int maxScan, Character[] boundaryChars ){this.maxScan = maxScan;this.boundaryChars = new HashSet<>();this.boundaryChars.addAll(Arrays.asList(boundaryChars));}", "after": "public SimpleBoundaryScanner(int maxScan, char[] boundaryChars){this.m_maxScan = maxScan;this.m_boundaryChars = new JCG.HashSet();this.m_boundaryChars.UnionWith(boundaryChars);}" }, { "index": 8180, "before": "public CreateLogGroupRequest(String logGroupName) {setLogGroupName(logGroupName);}", "after": "public CreateLogGroupRequest(string logGroupName){_logGroupName = logGroupName;}" }, { "index": 8181, "before": "public static Set getDefaultStopTags(){return DefaultSetHolder.DEFAULT_STOP_TAGS;}", "after": "public static ISet GetDefaultStopTags(){return DefaultSetHolder.DEFAULT_STOP_TAGS;}" }, { "index": 8182, "before": "public ModifyInstanceFleetResult modifyInstanceFleet(ModifyInstanceFleetRequest request) {request = beforeClientExecution(request);return executeModifyInstanceFleet(request);}", "after": "public virtual ModifyInstanceFleetResponse ModifyInstanceFleet(ModifyInstanceFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyInstanceFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyInstanceFleetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8183, "before": "public void addRule(ConditionalFormattingRule cfRule){addRule((HSSFConditionalFormattingRule)cfRule);}", "after": "public void AddRule(IConditionalFormattingRule cfRule){AddRule((HSSFConditionalFormattingRule)cfRule);}" }, { "index": 8184, "before": "public void SwitchTo(int lexState){if (lexState >= 3 || lexState < 0)throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);elsecurLexState = lexState;}", "after": "public virtual void SwitchTo(int lexState){if (lexState >= 3 || lexState < 0)throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);elsecurLexState = lexState;}" }, { "index": 8185, "before": "public void removeCharCount() {remove1stProperty(PropertyIDMap.PID_CHARCOUNT);}", "after": "public void RemoveCharCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_CHARCOUNT);}" }, { "index": 8186, "before": "public CreateCapacityReservationResult createCapacityReservation(CreateCapacityReservationRequest request) {request = beforeClientExecution(request);return executeCreateCapacityReservation(request);}", "after": "public virtual CreateCapacityReservationResponse CreateCapacityReservation(CreateCapacityReservationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCapacityReservationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCapacityReservationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8187, "before": "public StoredField(String name, long value) {super(name, TYPE);fieldsData = value;}", "after": "public StoredField(string name, long value): base(name, TYPE){FieldsData = new Int64(value);}" }, { "index": 8188, "before": "public void sync(Parser recognizer) throws RecognitionException {ATNState s = recognizer.getInterpreter().atn.states.get(recognizer.getState());if (inErrorRecoveryMode(recognizer)) {return;}TokenStream tokens = recognizer.getInputStream();int la = tokens.LA(1);IntervalSet nextTokens = recognizer.getATN().nextTokens(s);if (nextTokens.contains(la)) {nextTokensContext = null;nextTokensState = ATNState.INVALID_STATE_NUMBER;return;}if (nextTokens.contains(Token.EPSILON)) {if (nextTokensContext == null) {nextTokensContext = recognizer.getContext();nextTokensState = recognizer.getState();}return;}switch (s.getStateType()) {case ATNState.BLOCK_START:case ATNState.STAR_BLOCK_START:case ATNState.PLUS_BLOCK_START:case ATNState.STAR_LOOP_ENTRY:if ( singleTokenDeletion(recognizer)!=null ) {return;}throw new InputMismatchException(recognizer);case ATNState.PLUS_LOOP_BACK:case ATNState.STAR_LOOP_BACK:reportUnwantedToken(recognizer);IntervalSet expecting = recognizer.getExpectedTokens();IntervalSet whatFollowsLoopIterationOrRule =expecting.or(getErrorRecoverySet(recognizer));consumeUntil(recognizer, whatFollowsLoopIterationOrRule);break;default:break;}}", "after": "public virtual void Sync(Parser recognizer){ATNState s = recognizer.Interpreter.atn.states[recognizer.State];if (InErrorRecoveryMode(recognizer)){return;}ITokenStream tokens = ((ITokenStream)recognizer.InputStream);int la = tokens.LA(1);var nextTokens = recognizer.Atn.NextTokens(s);if (nextTokens.Contains(TokenConstants.EPSILON) || nextTokens.Contains(la)){return;}switch (s.StateType){case StateType.BlockStart:case StateType.StarBlockStart:case StateType.PlusBlockStart:case StateType.StarLoopEntry:{if (SingleTokenDeletion(recognizer) != null){return;}throw new InputMismatchException(recognizer);}case StateType.PlusLoopBack:case StateType.StarLoopBack:{ReportUnwantedToken(recognizer);IntervalSet expecting = recognizer.GetExpectedTokens();IntervalSet whatFollowsLoopIterationOrRule = expecting.Or(GetErrorRecoverySet(recognizer));ConsumeUntil(recognizer, whatFollowsLoopIterationOrRule);break;}default:{break;}}}" }, { "index": 8189, "before": "public int nextDoc() {if (!didNext) {didNext = true;return (doc = 0);} else {return (doc = NO_MORE_DOCS);}}", "after": "public override int NextDoc(){if (_didNext || (_liveDocs != null && !_liveDocs.Get(0))) return (_doc = NO_MORE_DOCS);_didNext = true;return (_doc = 0);}" }, { "index": 8190, "before": "public static Charset parseEncoding(byte[] b) {String enc = parseEncodingName(b);if (enc == null) {return UTF_8;}String name = enc.trim();try {return Charset.forName(name);} catch (IllegalCharsetNameException| UnsupportedCharsetException badName) {Charset aliased = charsetForAlias(name);if (aliased != null) {return aliased;}throw badName;}}", "after": "public static System.Text.Encoding ParseEncoding(byte[] b){int enc = Encoding(b, 0);if (enc < 0){return Constants.CHARSET;}int lf = NextLF(b, enc);string decoded = Decode(Constants.CHARSET, b, enc, lf - 1);try{return Sharpen.Extensions.GetEncoding(decoded);}catch (IllegalCharsetNameException badName){System.Text.Encoding aliased = CharsetForAlias(decoded);if (aliased != null){return aliased;}throw;}catch (UnsupportedCharsetException badName){System.Text.Encoding aliased = CharsetForAlias(decoded);if (aliased != null){return aliased;}throw;}}" }, { "index": 8191, "before": "public FloatBuffer put(float[] src, int srcOffset, int floatCount) {Arrays.checkOffsetAndCount(src.length, srcOffset, floatCount);if (floatCount > remaining()) {throw new BufferOverflowException();}for (int i = srcOffset; i < srcOffset + floatCount; ++i) {put(src[i]);}return this;}", "after": "public virtual java.nio.FloatBuffer put(float[] src, int srcOffset, int floatCount){java.util.Arrays.checkOffsetAndCount(src.Length, srcOffset, floatCount);if (floatCount > remaining()){throw new java.nio.BufferOverflowException();}{for (int i = srcOffset; i < srcOffset + floatCount; ++i){put(src[i]);}}return this;}" }, { "index": 8192, "before": "public BatchGetVariableResult batchGetVariable(BatchGetVariableRequest request) {request = beforeClientExecution(request);return executeBatchGetVariable(request);}", "after": "public virtual BatchGetVariableResponse BatchGetVariable(BatchGetVariableRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetVariableRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetVariableResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8193, "before": "public void setRepetitions(int repetitions) throws Exception {fixedTime = false;this.repetitions = repetitions;if (repetitions==REPEAT_EXHAUST) {if (isParallel()) {throw new Exception(\"REPEAT_EXHAUST is not allowed for parallel tasks\");}}setSequenceName();}", "after": "public virtual void SetRepetitions(int repetitions){fixedTime = false;this.repetitions = repetitions;if (repetitions == REPEAT_EXHAUST){if (IsParallel){throw new Exception(\"REPEAT_EXHAUST is not allowed for parallel tasks\");}}SetSequenceName();}" }, { "index": 8194, "before": "public synchronized static DefaultProfile getProfile() {if (null == profile) {profile = new DefaultProfile();}return profile;}", "after": "public static DefaultProfile GetProfile(){if (null == _profile){_profile = new DefaultProfile();}return _profile;}" }, { "index": 8195, "before": "public String dequote(byte[] in, int inPtr, int inEnd) {if (2 <= inEnd - inPtr && in[inPtr] == '\"' && in[inEnd - 1] == '\"')return dq(in, inPtr + 1, inEnd - 1);return RawParseUtils.decode(UTF_8, in, inPtr, inEnd);}", "after": "public override string Dequote(byte[] @in, int inPtr, int inEnd){if (2 <= inEnd - inPtr && @in[inPtr] == '\"' && @in[inEnd - 1] == '\"'){return Dq(@in, inPtr + 1, inEnd - 1);}return RawParseUtils.Decode(Constants.CHARSET, @in, inPtr, inEnd);}" }, { "index": 8196, "before": "public CacheCluster modifyCacheCluster(ModifyCacheClusterRequest request) {request = beforeClientExecution(request);return executeModifyCacheCluster(request);}", "after": "public virtual ModifyCacheClusterResponse ModifyCacheCluster(ModifyCacheClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyCacheClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyCacheClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8197, "before": "public TreeFormatter(int size) {buf = new byte[size];}", "after": "public TreeFormatter(int size){buf = new byte[size];}" }, { "index": 8198, "before": "public void setMaxDeltaDepth(int maxDeltaDepth) {this.maxDeltaDepth = maxDeltaDepth;}", "after": "public virtual void SetMaxDeltaDepth(int maxDeltaDepth){this.maxDeltaDepth = maxDeltaDepth;}" }, { "index": 8199, "before": "public int serialize(int offset, byte[] data, EscherSerializationListener listener) {listener.beforeRecordSerialize( offset, getRecordId(), this );int pos = offset;LittleEndian.putShort( data, pos, getOptions() ); pos += 2;LittleEndian.putShort( data, pos, getRecordId() ); pos += 2;int remainingBytes = getRecordSize() - 8;LittleEndian.putInt( data, pos, remainingBytes ); pos += 4;LittleEndian.putInt( data, pos, field_1_shapeIdMax ); pos += 4;LittleEndian.putInt( data, pos, getNumIdClusters() ); pos += 4;LittleEndian.putInt( data, pos, field_3_numShapesSaved ); pos += 4;LittleEndian.putInt( data, pos, field_4_drawingsSaved ); pos += 4;for (FileIdCluster fic : field_5_fileIdClusters) {LittleEndian.putInt( data, pos, fic.getDrawingGroupId() ); pos += 4;LittleEndian.putInt( data, pos, fic.getNumShapeIdsUsed() ); pos += 4;}listener.afterRecordSerialize( pos, getRecordId(), getRecordSize(), this );return getRecordSize();}", "after": "public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);int pos = offset;LittleEndian.PutShort(data, pos, Options); pos += 2;LittleEndian.PutShort(data, pos, RecordId); pos += 2;int remainingBytes = RecordSize - 8;LittleEndian.PutInt(data, pos, remainingBytes); pos += 4;LittleEndian.PutInt(data, pos, field_1_shapeIdMax); pos += 4;LittleEndian.PutInt(data, pos, NumIdClusters); pos += 4;LittleEndian.PutInt(data, pos, field_3_numShapesSaved); pos += 4;LittleEndian.PutInt(data, pos, field_4_drawingsSaved); pos += 4;for (int i = 0; i < field_5_fileIdClusters.Length; i++){LittleEndian.PutInt(data, pos, field_5_fileIdClusters[i].DrawingGroupId); pos += 4;LittleEndian.PutInt(data, pos, field_5_fileIdClusters[i].NumShapeIdsUsed); pos += 4;}listener.AfterRecordSerialize(pos, RecordId, RecordSize, this);return RecordSize;}" }, { "index": 8200, "before": "public LogDocMergePolicy() {minMergeSize = DEFAULT_MIN_MERGE_DOCS;maxMergeSize = Long.MAX_VALUE;maxMergeSizeForForcedMerge = Long.MAX_VALUE;}", "after": "public LogDocMergePolicy(){m_minMergeSize = DEFAULT_MIN_MERGE_DOCS;m_maxMergeSize = long.MaxValue;m_maxMergeSizeForForcedMerge = long.MaxValue;}" }, { "index": 8201, "before": "public BM25Similarity() {this(1.2f, 0.75f);}", "after": "public BM25Similarity(){this.k1 = 1.2f;this.b = 0.75f;}" }, { "index": 8202, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(getExternSheetIndex());writeCoordinates(out);}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(ExternSheetIndex);WriteCoordinates(out1);}" }, { "index": 8203, "before": "public String getAccessKeyId() {return accessKeyId;}", "after": "public string GetAccessKeyId(){return AccessKeyId;}" }, { "index": 8204, "before": "public PutLifecycleHookResult putLifecycleHook(PutLifecycleHookRequest request) {request = beforeClientExecution(request);return executePutLifecycleHook(request);}", "after": "public virtual PutLifecycleHookResponse PutLifecycleHook(PutLifecycleHookRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutLifecycleHookRequestMarshaller.Instance;options.ResponseUnmarshaller = PutLifecycleHookResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8205, "before": "public String toString() {return \"[GRIDSET]\\n\" +\" .gridset = \" + getGridset() +\"\\n\" +\"[/GRIDSET]\\n\";}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[GRIDSET]\\n\");buffer.Append(\" .gridset = \").Append(Gridset).Append(\"\\n\");buffer.Append(\"[/GRIDSET]\\n\");return buffer.ToString();}" }, { "index": 8206, "before": "public static int idealLongArraySize(int need) {return idealByteArraySize(need * 8) / 8;}", "after": "public static int idealLongArraySize(int need){return idealByteArraySize(need * 8) / 8;}" }, { "index": 8207, "before": "public int size() {return mSize;}", "after": "public virtual int size(){return mSize;}" }, { "index": 8208, "before": "public String toString() {String biffName = getBiffName(_sid);if (biffName == null) {biffName = \"UNKNOWNRECORD\";}StringBuilder sb = new StringBuilder();sb.append('[').append(biffName).append(\"] (0x\");sb.append(Integer.toHexString(_sid).toUpperCase(Locale.ROOT)).append(\")\\n\");if (_rawData.length > 0) {sb.append(\" rawData=\").append(HexDump.toHex(_rawData)).append(\"\\n\");}sb.append(\"[/\").append(biffName).append(\"]\\n\");return sb.toString();}", "after": "public override String ToString(){String biffName = GetBiffName(_sid);if (biffName == null){biffName = \"UNKNOWNRECORD\";}StringBuilder sb = new StringBuilder();sb.Append(\"[\").Append(biffName).Append(\"] (0x\");sb.Append(StringUtil.ToHexString(_sid).ToUpper() + \")\\n\");if (_rawData.Length > 0){sb.Append(\" rawData=\").Append(HexDump.ToHex(_rawData)).Append(\"\\n\");}sb.Append(\"[/\").Append(biffName).Append(\"]\\n\");return sb.ToString();}" }, { "index": 8209, "before": "public int nextPosition() throws IOException {if (doc != 0) {throw new IllegalStateException();} else if (i >= termFreq - 1) {throw new IllegalStateException(\"Read past last position\");}++i;if (payloadIndex != null) {payload.offset = basePayloadOffset + payloadIndex[positionIndex + i];payload.length = payloadIndex[positionIndex + i + 1] - payloadIndex[positionIndex + i];}if (positions == null) {return -1;} else {return positions[positionIndex + i];}}", "after": "public override int NextPosition(){if (doc != 0){throw new Exception();}else if (i >= termFreq - 1){throw new Exception(\"Read past last position\");}++i;if (payloadIndex != null){payload.Offset = basePayloadOffset + payloadIndex[positionIndex + i];payload.Length = payloadIndex[positionIndex + i + 1] - payloadIndex[positionIndex + i];}if (positions == null){return -1;}else{return positions[positionIndex + i];}}" }, { "index": 8210, "before": "public MergeDeveloperIdentitiesResult mergeDeveloperIdentities(MergeDeveloperIdentitiesRequest request) {request = beforeClientExecution(request);return executeMergeDeveloperIdentities(request);}", "after": "public virtual MergeDeveloperIdentitiesResponse MergeDeveloperIdentities(MergeDeveloperIdentitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = MergeDeveloperIdentitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = MergeDeveloperIdentitiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8211, "before": "public CreateUserRequest(String userName) {setUserName(userName);}", "after": "public CreateUserRequest(string userName){_userName = userName;}" }, { "index": 8212, "before": "public ReplaceNetworkAclEntryResult replaceNetworkAclEntry(ReplaceNetworkAclEntryRequest request) {request = beforeClientExecution(request);return executeReplaceNetworkAclEntry(request);}", "after": "public virtual ReplaceNetworkAclEntryResponse ReplaceNetworkAclEntry(ReplaceNetworkAclEntryRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReplaceNetworkAclEntryRequestMarshaller.Instance;options.ResponseUnmarshaller = ReplaceNetworkAclEntryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8213, "before": "public boolean isFastForward() {return fastForward;}", "after": "public virtual bool IsFastForward(){return fastForward;}" }, { "index": 8214, "before": "public List getLLDecisions() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();List LL = new ArrayList();for (int i=0; i0 ) LL.add(i);}return LL;}", "after": "public List getLLDecisions(){DecisionInfo[] decisions = atnSimulator.getDecisionInfo();List LL = new List();for (int i = 0; i < decisions.Length; i++){long fallBack = decisions[i].LL_Fallback;if (fallBack > 0) LL.Add(i);}return LL;}" }, { "index": 8215, "before": "public UpdateModelResult updateModel(UpdateModelRequest request) {request = beforeClientExecution(request);return executeUpdateModel(request);}", "after": "public virtual UpdateModelResponse UpdateModel(UpdateModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateModelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateModelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8216, "before": "public int getEndIndex() {return end;}", "after": "public int getEndIndex(){return end;}" }, { "index": 8217, "before": "public DeleteVPCAssociationAuthorizationResult deleteVPCAssociationAuthorization(DeleteVPCAssociationAuthorizationRequest request) {request = beforeClientExecution(request);return executeDeleteVPCAssociationAuthorization(request);}", "after": "public virtual DeleteVPCAssociationAuthorizationResponse DeleteVPCAssociationAuthorization(DeleteVPCAssociationAuthorizationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVPCAssociationAuthorizationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVPCAssociationAuthorizationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8218, "before": "public GetMediaResult getMedia(GetMediaRequest request) {request = beforeClientExecution(request);return executeGetMedia(request);}", "after": "public virtual GetMediaResponse GetMedia(GetMediaRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMediaRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMediaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8219, "before": "public DeltaRecord clone() {return copy();}", "after": "public override Object Clone(){return this;}" }, { "index": 8220, "before": "public TableRestoreStatus restoreTableFromClusterSnapshot(RestoreTableFromClusterSnapshotRequest request) {request = beforeClientExecution(request);return executeRestoreTableFromClusterSnapshot(request);}", "after": "public virtual RestoreTableFromClusterSnapshotResponse RestoreTableFromClusterSnapshot(RestoreTableFromClusterSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = RestoreTableFromClusterSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = RestoreTableFromClusterSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8221, "before": "public void writeInt(int v) {int b3 = (v >>> 24) & 0xFF;int b2 = (v >>> 16) & 0xFF;int b1 = (v >>> 8) & 0xFF;int b0 = (v) & 0xFF;try {out.write(b0);out.write(b1);out.write(b2);out.write(b3);} catch (IOException e) {throw new RuntimeException(e);}}", "after": "public void WriteInt(int v){int b3 = (v >> 24) & 0xFF;int b2 = (v >> 16) & 0xFF;int b1 = (v >> 8) & 0xFF;int b0 = (v >> 0) & 0xFF;try{out1.WriteByte((byte)b0);out1.WriteByte((byte)b1);out1.WriteByte((byte)b2);out1.WriteByte((byte)b3);}catch (IOException e){throw new RuntimeException(e);}}" }, { "index": 8222, "before": "public static Query parse(String[] queries, String[] fields, Analyzer analyzer)throws QueryNodeException {if (queries.length != fields.length)throw new IllegalArgumentException(\"queries.length != fields.length\");BooleanQuery.Builder bQuery = new BooleanQuery.Builder();StandardQueryParser qp = new StandardQueryParser();qp.setAnalyzer(analyzer);for (int i = 0; i < fields.length; i++) {Query q = qp.parse(queries[i], fields[i]);if (q != null) { bQuery.add(q, BooleanClause.Occur.SHOULD);}}return bQuery.build();}", "after": "public static Query Parse(string[] queries, string[] fields, Analyzer analyzer){if (queries.Length != fields.Length)throw new ArgumentException(\"queries.length != fields.length\");BooleanQuery bQuery = new BooleanQuery();StandardQueryParser qp = new StandardQueryParser();qp.Analyzer = analyzer;for (int i = 0; i < fields.Length; i++){Query q = qp.Parse(queries[i], fields[i]);if (q != null && (!(q is BooleanQuery) || ((BooleanQuery)q).Clauses.Count > 0)){bQuery.Add(q, Occur.SHOULD);}}return bQuery;}" }, { "index": 8223, "before": "public UpdateQualificationTypeResult updateQualificationType(UpdateQualificationTypeRequest request) {request = beforeClientExecution(request);return executeUpdateQualificationType(request);}", "after": "public virtual UpdateQualificationTypeResponse UpdateQualificationType(UpdateQualificationTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateQualificationTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateQualificationTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8224, "before": "public void removeTemplate() {remove1stProperty(PropertyIDMap.PID_TEMPLATE);}", "after": "public void RemoveTemplate(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_TEMPLATE);}" }, { "index": 8225, "before": "public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {int nInnerArgs = args.length-1; if (nInnerArgs < 1) {return ErrorEval.VALUE_INVALID;}final Function innerFunc;int functionCode = 0;try {ValueEval ve = OperandResolver.getSingleValue(args[0], srcRowIndex, srcColumnIndex);functionCode = OperandResolver.coerceValueToInt(ve);innerFunc = findFunction(functionCode);} catch (EvaluationException e) {return e.getErrorEval();}final List list = new ArrayList<>(Arrays.asList(args).subList(1, args.length));Iterator it = list.iterator();while(it.hasNext()) {ValueEval eval = it.next();if(eval instanceof LazyRefEval) {LazyRefEval lazyRefEval = (LazyRefEval) eval;if(lazyRefEval.isSubTotal()) {it.remove();}if (functionCode > 100 && lazyRefEval.isRowHidden()) {it.remove();}}}return innerFunc.evaluate(list.toArray(new ValueEval[0]), srcRowIndex, srcColumnIndex);}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){int nInnerArgs = args.Length - 1; if (nInnerArgs < 1){return ErrorEval.VALUE_INVALID;}Function innerFunc;try{ValueEval ve = OperandResolver.GetSingleValue(args[0], srcRowIndex, srcColumnIndex);int functionCode = OperandResolver.CoerceValueToInt(ve);innerFunc = FindFunction(functionCode);}catch (EvaluationException e){return e.GetErrorEval();}ValueEval[] innerArgs = new ValueEval[nInnerArgs];Array.Copy(args, 1, innerArgs, 0, nInnerArgs);return innerFunc.Evaluate(innerArgs, srcRowIndex, srcColumnIndex);}" }, { "index": 8226, "before": "public InstanceGroupConfig(InstanceRoleType instanceRole, String instanceType, Integer instanceCount) {setInstanceRole(instanceRole.toString());setInstanceType(instanceType);setInstanceCount(instanceCount);}", "after": "public InstanceGroupConfig(InstanceRoleType instanceRole, string instanceType, int instanceCount){_instanceRole = instanceRole;_instanceType = instanceType;_instanceCount = instanceCount;}" }, { "index": 8227, "before": "public LeftMarginRecord(RecordInputStream in) {field_1_margin = in.readDouble();}", "after": "public LeftMarginRecord(RecordInputStream in1){field_1_margin = in1.ReadDouble();}" }, { "index": 8228, "before": "public DescribeTrialComponentResult describeTrialComponent(DescribeTrialComponentRequest request) {request = beforeClientExecution(request);return executeDescribeTrialComponent(request);}", "after": "public virtual DescribeTrialComponentResponse DescribeTrialComponent(DescribeTrialComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTrialComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTrialComponentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8229, "before": "public AssociateSubnetCidrBlockResult associateSubnetCidrBlock(AssociateSubnetCidrBlockRequest request) {request = beforeClientExecution(request);return executeAssociateSubnetCidrBlock(request);}", "after": "public virtual AssociateSubnetCidrBlockResponse AssociateSubnetCidrBlock(AssociateSubnetCidrBlockRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateSubnetCidrBlockRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateSubnetCidrBlockResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8230, "before": "@Override public Iterator iterator() {return new MapBasedMultisetIterator();}", "after": "public override java.util.Iterator> iterator(){return new java.util.Hashtable.EntryIterator(this._enclosing);}" }, { "index": 8231, "before": "public GetQueueAttributesResult getQueueAttributes(String queueUrl, java.util.List attributeNames) {return getQueueAttributes(new GetQueueAttributesRequest().withQueueUrl(queueUrl).withAttributeNames(attributeNames));}", "after": "public virtual GetQueueAttributesResponse GetQueueAttributes(string queueUrl, List attributeNames){var request = new GetQueueAttributesRequest();request.QueueUrl = queueUrl;request.AttributeNames = attributeNames;return GetQueueAttributes(request);}" }, { "index": 8232, "before": "public final int getBeginA() {return beginA;}", "after": "public int GetBeginA(){return beginA;}" }, { "index": 8233, "before": "public String toString() {return \"NoLock\";}", "after": "public override string ToString(){return \"NoLock\";}" }, { "index": 8234, "before": "public boolean contains(Object object) {return backingMap.containsKey(object);}", "after": "public override bool contains(object @object){return backingMap.containsKey(@object);}" }, { "index": 8235, "before": "public String toString() {return \"arc=\" + fstArc + \" state=\" + fsaState;}", "after": "public override string ToString(){return \"arc=\" + arc + \" state=\" + state;}" }, { "index": 8236, "before": "public void clear() {ArrayList copy = new ArrayList<>(shapes);for (HSSFShape shape: copy){removeShape(shape);}}", "after": "public void Clear(){List copy = new List(shapes);foreach (HSSFShape shape in copy){RemoveShape(shape);}}" }, { "index": 8237, "before": "public String toString() {return \"PerFieldAnalyzerWrapper(\" + fieldAnalyzers + \", default=\" + defaultAnalyzer + \")\";}", "after": "public override string ToString(){return \"PerFieldAnalyzerWrapper(\" + fieldAnalyzers + \", default=\" + defaultAnalyzer + \")\";}" }, { "index": 8238, "before": "public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {int bytesRemaining = readHeader( data, offset );int available = data.length - (offset + 8);if (bytesRemaining > available) {bytesRemaining = available;}if (isContainerRecord()) {int bytesWritten = 0;thedata = new byte[0];offset += 8;bytesWritten += 8;while ( bytesRemaining > 0 ) {EscherRecord child = recordFactory.createRecord( data, offset );int childBytesWritten = child.fillFields( data, offset, recordFactory );bytesWritten += childBytesWritten;offset += childBytesWritten;bytesRemaining -= childBytesWritten;getChildRecords().add( child );}return bytesWritten;}if (bytesRemaining < 0) {bytesRemaining = 0;}thedata = IOUtils.safelyAllocate(bytesRemaining, MAX_RECORD_LENGTH);System.arraycopy( data, offset + 8, thedata, 0, bytesRemaining );return bytesRemaining + 8;}", "after": "public override int FillFields(byte[] data, int offset, IEscherRecordFactory recordFactory){int bytesRemaining = ReadHeader(data, offset);int avaliable = data.Length - (offset + 8);if (bytesRemaining > avaliable){bytesRemaining = avaliable;}if (IsContainerRecord){int bytesWritten = 0;_thedata = new byte[0];offset += 8;bytesWritten += 8;while (bytesRemaining > 0){EscherRecord child = recordFactory.CreateRecord(data, offset);int childBytesWritten = child.FillFields(data, offset, recordFactory);bytesWritten += childBytesWritten;offset += childBytesWritten;bytesRemaining -= childBytesWritten;ChildRecords.Add(child);}return bytesWritten;}else{_thedata = new byte[bytesRemaining];Array.Copy(data, offset + 8, _thedata, 0, bytesRemaining);return bytesRemaining + 8;}}" }, { "index": 8239, "before": "public AssociatePhoneNumberWithUserResult associatePhoneNumberWithUser(AssociatePhoneNumberWithUserRequest request) {request = beforeClientExecution(request);return executeAssociatePhoneNumberWithUser(request);}", "after": "public virtual AssociatePhoneNumberWithUserResponse AssociatePhoneNumberWithUser(AssociatePhoneNumberWithUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociatePhoneNumberWithUserRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociatePhoneNumberWithUserResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8240, "before": "public FieldQuery getFieldQuery( Query query ) {try {return getFieldQuery(query, null);} catch (IOException e) {throw new RuntimeException (e);}}", "after": "public virtual FieldQuery GetFieldQuery(Query query){try{return new FieldQuery(query, null, phraseHighlight, fieldMatch);}catch (IOException e){throw new Exception(e.ToString(), e);}}" }, { "index": 8241, "before": "public int getXBATEntriesPerBlock() {return getBATEntriesPerBlock() - 1;}", "after": "public int GetXBATEntriesPerBlock(){return GetBATEntriesPerBlock() - 1;}" }, { "index": 8242, "before": "public static CellRangeAddress createEnclosingCellRange(CellRangeAddress crA, CellRangeAddress crB) {if( crB == null) {return crA.copy();}int minRow = lt(crB.getFirstRow(), crA.getFirstRow()) ?crB.getFirstRow() :crA.getFirstRow();int maxRow = gt(crB.getLastRow(), crA.getLastRow()) ?crB.getLastRow() :crA.getLastRow();int minCol = lt(crB.getFirstColumn(),crA.getFirstColumn())?crB.getFirstColumn():crA.getFirstColumn();int maxCol = gt(crB.getLastColumn(), crA.getLastColumn()) ?crB.getLastColumn() :crA.getLastColumn();return new CellRangeAddress(minRow, maxRow, minCol, maxCol);}", "after": "public static CellRangeAddress CreateEnclosingCellRange(CellRangeAddress crA, CellRangeAddress crB){if (crB == null){return crA.Copy();}returnnew CellRangeAddress(lt(crB.FirstRow, crA.FirstRow) ? crB.FirstRow : crA.FirstRow,gt(crB.LastRow, crA.LastRow) ? crB.LastRow : crA.LastRow,lt(crB.FirstColumn, crA.FirstColumn) ? crB.FirstColumn : crA.FirstColumn,gt(crB.LastColumn, crA.LastColumn) ? crB.LastColumn : crA.LastColumn);}" }, { "index": 8243, "before": "public static char[] grow(char[] array, int minSize) {assert minSize >= 0: \"size must be positive (got \" + minSize + \"): likely integer overflow?\";if (array.length < minSize) {return growExact(array, oversize(minSize, Character.BYTES));} elsereturn array;}", "after": "public static char[] Grow(char[] array, int minSize){Debug.Assert(minSize >= 0, \"size must be positive (got \" + minSize + \"): likely integer overflow?\");if (array.Length < minSize){char[] newArray = new char[Oversize(minSize, RamUsageEstimator.NUM_BYTES_CHAR)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}" }, { "index": 8244, "before": "public void setLineStyleColor(int red, int green, int blue) {int lineStyleColor = ((blue) << 16) | ((green) << 8) | red;setPropertyValue(new EscherRGBProperty(EscherPropertyTypes.LINESTYLE__COLOR, lineStyleColor));}", "after": "public void SetLineStyleColor(int red, int green, int blue){int lineStyleColor = ((blue) << 16) | ((green) << 8) | red;SetPropertyValue(new EscherRGBProperty(EscherProperties.LINESTYLE__COLOR, lineStyleColor));}" }, { "index": 8245, "before": "public CreateFileSystemResult createFileSystem(CreateFileSystemRequest request) {request = beforeClientExecution(request);return executeCreateFileSystem(request);}", "after": "public virtual CreateFileSystemResponse CreateFileSystem(CreateFileSystemRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFileSystemRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFileSystemResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8246, "before": "public DeleteVaultRequest(String accountId, String vaultName) {setAccountId(accountId);setVaultName(vaultName);}", "after": "public DeleteVaultRequest(string accountId, string vaultName){_accountId = accountId;_vaultName = vaultName;}" }, { "index": 8247, "before": "public ByteBuffer read(int length, long position) {if(position >= size) {throw new IndexOutOfBoundsException(\"Unable to read \" + length + \" bytes from \" +position + \" in stream of length \" + size);}int toRead = (int)Math.min(length, size - position);return ByteBuffer.wrap(buffer, (int)position, toRead);}", "after": "public override ByteBuffer Read(int length, long position){if (position >= size){throw new IndexOutOfRangeException(\"Unable to read \" + length + \" bytes from \" +position + \" in stream of length \" + size);}int toRead = (int)Math.Min(length, size - position);return ByteBuffer.CreateBuffer(buffer, (int)position, toRead);}" }, { "index": 8248, "before": "public boolean addPushRefSpec(RefSpec s) {if (push.contains(s))return false;return push.add(s);}", "after": "public virtual bool AddPushRefSpec(RefSpec s){if (push.Contains(s)){return false;}return push.AddItem(s);}" }, { "index": 8249, "before": "public ViewBillingResult viewBilling(ViewBillingRequest request) {request = beforeClientExecution(request);return executeViewBilling(request);}", "after": "public virtual ViewBillingResponse ViewBilling(ViewBillingRequest request){var options = new InvokeOptions();options.RequestMarshaller = ViewBillingRequestMarshaller.Instance;options.ResponseUnmarshaller = ViewBillingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8250, "before": "public final char getChar() {int newPosition = position + SizeOf.CHAR;if (newPosition > limit) {throw new BufferUnderflowException();}char result = (char) Memory.peekShort(backingArray, offset + position, order);position = newPosition;return result;}", "after": "public sealed override char getChar(){int newPosition = _position + libcore.io.SizeOf.CHAR;if (newPosition > _limit){throw new java.nio.BufferUnderflowException();}char result = (char)libcore.io.Memory.peekShort(backingArray, offset + _position,_order);_position = newPosition;return result;}" }, { "index": 8251, "before": "public SpanQuery getSpanQuery(Element e) throws ParserException {String fieldName = DOMUtils.getAttributeWithInheritanceOrFail(e, \"fieldName\");String value = DOMUtils.getNonBlankTextOrFail(e);List clausesList = new ArrayList<>();try (TokenStream ts = analyzer.tokenStream(fieldName, value)) {TermToBytesRefAttribute termAtt = ts.addAttribute(TermToBytesRefAttribute.class);ts.reset();while (ts.incrementToken()) {SpanTermQuery stq = new SpanTermQuery(new Term(fieldName, BytesRef.deepCopyOf(termAtt.getBytesRef())));clausesList.add(stq);}ts.end();SpanOrQuery soq = new SpanOrQuery(clausesList.toArray(new SpanQuery[clausesList.size()]));float boost = DOMUtils.getAttribute(e, \"boost\", 1.0f);return new SpanBoostQuery(soq, boost);}catch (IOException ioe) {throw new ParserException(\"IOException parsing value:\" + value);}}", "after": "public override SpanQuery GetSpanQuery(XmlElement e){string fieldName = DOMUtils.GetAttributeWithInheritanceOrFail(e, \"fieldName\");string value = DOMUtils.GetNonBlankTextOrFail(e);List clausesList = new List();TokenStream ts = null;try{ts = analyzer.GetTokenStream(fieldName, value);ITermToBytesRefAttribute termAtt = ts.AddAttribute();BytesRef bytes = termAtt.BytesRef;ts.Reset();while (ts.IncrementToken()){termAtt.FillBytesRef();SpanTermQuery stq = new SpanTermQuery(new Term(fieldName, BytesRef.DeepCopyOf(bytes)));clausesList.Add(stq);}ts.End();SpanOrQuery soq = new SpanOrQuery(clausesList.ToArray());soq.Boost = DOMUtils.GetAttribute(e, \"boost\", 1.0f);return soq;}#pragma warning disable 168catch (IOException ioe)#pragma warning restore 168{throw new ParserException(\"IOException parsing value:\" + value);}finally{IOUtils.DisposeWhileHandlingException(ts);}}" }, { "index": 8252, "before": "public UpdateGatewayResult updateGateway(UpdateGatewayRequest request) {request = beforeClientExecution(request);return executeUpdateGateway(request);}", "after": "public virtual UpdateGatewayResponse UpdateGateway(UpdateGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8253, "before": "public boolean getCachedBooleanValue() {return specialCachedValue.getBooleanValue();}", "after": "public bool GetCachedBooleanValue(){return specialCachedValue.GetBooleanValue();}" }, { "index": 8254, "before": "public DeleteIdentityPoolResult deleteIdentityPool(DeleteIdentityPoolRequest request) {request = beforeClientExecution(request);return executeDeleteIdentityPool(request);}", "after": "public virtual DeleteIdentityPoolResponse DeleteIdentityPool(DeleteIdentityPoolRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIdentityPoolRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIdentityPoolResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8255, "before": "public PutSuppressedDestinationResult putSuppressedDestination(PutSuppressedDestinationRequest request) {request = beforeClientExecution(request);return executePutSuppressedDestination(request);}", "after": "public virtual PutSuppressedDestinationResponse PutSuppressedDestination(PutSuppressedDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutSuppressedDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutSuppressedDestinationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8256, "before": "public PutEventsResult putEvents(PutEventsRequest request) {request = beforeClientExecution(request);return executePutEvents(request);}", "after": "public virtual PutEventsResponse PutEvents(PutEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutEventsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8257, "before": "public GetRecommendationsResult getRecommendations(GetRecommendationsRequest request) {request = beforeClientExecution(request);return executeGetRecommendations(request);}", "after": "public virtual GetRecommendationsResponse GetRecommendations(GetRecommendationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRecommendationsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRecommendationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8258, "before": "public boolean equals(Object obj) {if (this == obj) return true;if (obj instanceof SegmentInfo) {final SegmentInfo other = (SegmentInfo) obj;return other.dir == dir && other.name.equals(name);} else {return false;}}", "after": "public override bool Equals(object obj){if (this == obj){return true;}if (obj is SegmentInfo){SegmentInfo other = (SegmentInfo)obj;return other.Dir == Dir && other.Name.Equals(Name, StringComparison.Ordinal);}else{return false;}}" }, { "index": 8259, "before": "public HSSFDataFormat createDataFormat() {if (formatter == null) {formatter = new HSSFDataFormat(workbook);}return formatter;}", "after": "public NPOI.SS.UserModel.IDataFormat CreateDataFormat(){if (formatter == null)formatter = new HSSFDataFormat(workbook);return formatter;}" }, { "index": 8260, "before": "public UpdateFaceRequest() {super(\"LinkFace\", \"2018-07-20\", \"UpdateFace\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public UpdateFaceRequest(): base(\"LinkFace\", \"2018-07-20\", \"UpdateFace\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 8261, "before": "public void serialize(LittleEndianOutput out) {out.writeDouble(getMaxChange());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteDouble(MaxChange);}" }, { "index": 8262, "before": "public ModifyVpcEndpointServicePermissionsResult modifyVpcEndpointServicePermissions(ModifyVpcEndpointServicePermissionsRequest request) {request = beforeClientExecution(request);return executeModifyVpcEndpointServicePermissions(request);}", "after": "public virtual ModifyVpcEndpointServicePermissionsResponse ModifyVpcEndpointServicePermissions(ModifyVpcEndpointServicePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpcEndpointServicePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpcEndpointServicePermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8263, "before": "public IntervalSet nextTokens(ATNState s) {if ( s.nextTokenWithinRule != null ) return s.nextTokenWithinRule;s.nextTokenWithinRule = nextTokens(s, null);s.nextTokenWithinRule.setReadonly(true);return s.nextTokenWithinRule;}", "after": "public virtual IntervalSet NextTokens(ATNState s){if (s.nextTokenWithinRule != null){return s.nextTokenWithinRule;}s.nextTokenWithinRule = NextTokens(s, null);s.nextTokenWithinRule.SetReadonly(true);return s.nextTokenWithinRule;}" }, { "index": 8264, "before": "public GetResourceResult getResource(GetResourceRequest request) {request = beforeClientExecution(request);return executeGetResource(request);}", "after": "public virtual GetResourceResponse GetResource(GetResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8265, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[HYPERLINK RECORD]\\n\");buffer.append(\" .range = \").append(_range.formatAsString()).append(\"\\n\");buffer.append(\" .guid = \").append(_guid.toString()).append(\"\\n\");buffer.append(\" .linkOpts= \").append(HexDump.intToHex(_linkOpts)).append(\"\\n\");buffer.append(\" .label = \").append(getLabel()).append(\"\\n\");if ((_linkOpts & HLINK_TARGET_FRAME) != 0) {buffer.append(\" .targetFrame= \").append(getTargetFrame()).append(\"\\n\");}if((_linkOpts & HLINK_URL) != 0 && _moniker != null) {buffer.append(\" .moniker = \").append(_moniker.toString()).append(\"\\n\");}if ((_linkOpts & HLINK_PLACE) != 0) {buffer.append(\" .textMark= \").append(getTextMark()).append(\"\\n\");}buffer.append(\" .address = \").append(getAddress()).append(\"\\n\");buffer.append(\"[/HYPERLINK RECORD]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[HYPERLINK RECORD]\\n\");buffer.Append(\" .range = \").Append(_range.FormatAsString()).Append(\"\\n\");buffer.Append(\" .guid = \").Append(_guid.FormatAsString()).Append(\"\\n\");buffer.Append(\" .linkOpts = \").Append(HexDump.IntToHex(this._linkOpts)).Append(\"\\n\");buffer.Append(\" .label = \").Append(Label).Append(\"\\n\");if ((_linkOpts & HLINK_TARGET_FRAME) != 0){buffer.Append(\" .targetFrame= \").Append(TargetFrame).Append(\"\\n\");}if((_linkOpts & HLINK_URL) != 0 && _moniker != null){buffer.Append(\" .moniker = \").Append(_moniker.FormatAsString()).Append(\"\\n\");}if ((_linkOpts & HLINK_PLACE) != 0){buffer.Append(\" .targetFrame= \").Append(TextMark).Append(\"\\n\");}buffer.Append(\" .address = \").Append(Address).Append(\"\\n\");buffer.Append(\"[/HYPERLINK RECORD]\\n\");return buffer.ToString();}" }, { "index": 8266, "before": "public CreateFacetResult createFacet(CreateFacetRequest request) {request = beforeClientExecution(request);return executeCreateFacet(request);}", "after": "public virtual CreateFacetResponse CreateFacet(CreateFacetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFacetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFacetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8267, "before": "@Override public int indexOf(Object object) {final int size;final Object[] array;synchronized (mutex) {size = list.size();array = new Object[size];list.toArray(array);}if (object != null) {for (int i = 0; i < size; i++) {if (object.equals(array[i])) {return i;}}} else {for (int i = 0; i < size; i++) {if (array[i] == null) {return i;}}}return -1;}", "after": "public virtual int indexOf(object @object){int size_1;object[] array;lock (mutex){size_1 = list.size();array = new object[size_1];list.toArray(array);}if (@object != null){{for (int i = 0; i < size_1; i++){if (@object.Equals(array[i])){return i;}}}}else{{for (int i = 0; i < size_1; i++){if (array[i] == null){return i;}}}}return -1;}" }, { "index": 8268, "before": "public static PrintOrientation valueOf(int value){return _table[value];}", "after": "public static PrintOrientation ValueOf(int value){return _table[value];}" }, { "index": 8269, "before": "public DefineExpressionResult defineExpression(DefineExpressionRequest request) {request = beforeClientExecution(request);return executeDefineExpression(request);}", "after": "public virtual DefineExpressionResponse DefineExpression(DefineExpressionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DefineExpressionRequestMarshaller.Instance;options.ResponseUnmarshaller = DefineExpressionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8270, "before": "public long getLastModified() {return attributes.getLastModifiedInstant().toEpochMilli();}", "after": "public override long GetLastModified(){if (lastModified == 0){lastModified = file.LastModified();}return lastModified;}" }, { "index": 8271, "before": "public void close() {buffer = null;size = -1;}", "after": "public override void Close(){buffer = null;size = -1;}" }, { "index": 8272, "before": "public StartEntitiesDetectionJobResult startEntitiesDetectionJob(StartEntitiesDetectionJobRequest request) {request = beforeClientExecution(request);return executeStartEntitiesDetectionJob(request);}", "after": "public virtual StartEntitiesDetectionJobResponse StartEntitiesDetectionJob(StartEntitiesDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartEntitiesDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StartEntitiesDetectionJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8273, "before": "public boolean processMatch(ValueEval eval) {if(result == null) {result = eval;}else {if(result instanceof BlankEval) {result = eval;}else {if(!(eval instanceof BlankEval)) {result = ErrorEval.NUM_ERROR;return false;}}}return true;}", "after": "public bool ProcessMatch(ValueEval eval){if (result == null) {result = eval;}else {result = ErrorEval.NUM_ERROR;return false;}return true;}" }, { "index": 8274, "before": "public TokenTagToken(String tokenName, int type, String label) {super(type);this.tokenName = tokenName;this.label = label;}", "after": "public TokenTagToken(string tokenName, int type, string label): base(type){this.tokenName = tokenName;this.label = label;}" }, { "index": 8275, "before": "public void reset(boolean zeroFillBuffers, boolean reuseFirst) {if (bufferUpto != -1) {if (zeroFillBuffers) {for(int i=0;i 0 || !reuseFirst) {final int offset = reuseFirst ? 1 : 0;allocator.recycleByteBlocks(buffers, offset, 1+bufferUpto);Arrays.fill(buffers, offset, 1+bufferUpto, null);}if (reuseFirst) {bufferUpto = 0;byteUpto = 0;byteOffset = 0;buffer = buffers[0];} else {bufferUpto = -1;byteUpto = BYTE_BLOCK_SIZE;byteOffset = -BYTE_BLOCK_SIZE;buffer = null;}}}", "after": "public void Reset(bool zeroFillBuffers, bool reuseFirst){if (bufferUpto != -1){if (zeroFillBuffers){for (int i = 0; i < bufferUpto; i++){Arrays.Fill(buffers[i], (byte)0);}Arrays.Fill(buffers[bufferUpto], 0, ByteUpto, (byte)0);}if (bufferUpto > 0 || !reuseFirst){int offset = reuseFirst ? 1 : 0;allocator.RecycleByteBlocks(buffers, offset, 1 + bufferUpto);Arrays.Fill(buffers, offset, 1 + bufferUpto, null);}if (reuseFirst){bufferUpto = 0;ByteUpto = 0;ByteOffset = 0;buffer = buffers[0];}else{bufferUpto = -1;ByteUpto = BYTE_BLOCK_SIZE;ByteOffset = -BYTE_BLOCK_SIZE;buffer = null;}}}" }, { "index": 8276, "before": "public UpdateExpirationForHITResult updateExpirationForHIT(UpdateExpirationForHITRequest request) {request = beforeClientExecution(request);return executeUpdateExpirationForHIT(request);}", "after": "public virtual UpdateExpirationForHITResponse UpdateExpirationForHIT(UpdateExpirationForHITRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateExpirationForHITRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateExpirationForHITResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8277, "before": "public Policy(String id) {this.id = id;}", "after": "public Policy(string id){this.id = id;}" }, { "index": 8278, "before": "public UpdateApplicationVersionRequest(String applicationName, String versionLabel) {setApplicationName(applicationName);setVersionLabel(versionLabel);}", "after": "public UpdateApplicationVersionRequest(string applicationName, string versionLabel){_applicationName = applicationName;_versionLabel = versionLabel;}" }, { "index": 8279, "before": "public String getEmailAddress() {final int lt = RawParseUtils.nextLF(buffer, valStart, '<');if (valEnd <= lt) {final int at = RawParseUtils.nextLF(buffer, valStart, '@');if (valStart < at && at < valEnd)return getValue();return null;}final int gt = RawParseUtils.nextLF(buffer, lt, '>');if (valEnd < gt)return null;return RawParseUtils.decode(enc, buffer, lt, gt - 1);}", "after": "public string GetEmailAddress(){int lt = RawParseUtils.NextLF(buffer, valStart, '<');if (valEnd <= lt){int at = RawParseUtils.NextLF(buffer, valStart, '@');if (valStart < at && at < valEnd){return GetValue();}return null;}int gt = RawParseUtils.NextLF(buffer, lt, '>');if (valEnd < gt){return null;}return RawParseUtils.Decode(enc, buffer, lt, gt - 1);}" }, { "index": 8280, "before": "public String simpleFormat(Object value) {StringBuffer sb = new StringBuffer();simpleValue(sb, value);return sb.toString();}", "after": "public String SimpleFormat(Object value){StringBuilder sb = new StringBuilder();SimpleValue(sb, value);return sb.ToString();}" }, { "index": 8281, "before": "public RevFilter clone() {return new NotRevFilter(a.clone());}", "after": "public override RevFilter Clone(){return new NGit.Revwalk.Filter.NotRevFilter(a.Clone());}" }, { "index": 8282, "before": "public static int finish(int hash, int numberOfWords) {hash = hash ^ (numberOfWords * 4);hash = hash ^ (hash >>> 16);hash = hash * 0x85EBCA6B;hash = hash ^ (hash >>> 13);hash = hash * 0xC2B2AE35;hash = hash ^ (hash >>> 16);return hash;}", "after": "public static int Finish(int hash, int numberOfWords){hash = hash ^ (numberOfWords * 4);hash = hash ^ ((int)(((uint)hash) >> 16));hash = hash * unchecked((int)(0x85EBCA6B));hash = hash ^ ((int)(((uint)hash) >> 13));hash = hash * unchecked((int)(0xC2B2AE35));hash = hash ^ ((int)(((uint)hash) >> 16));return hash;}" }, { "index": 8283, "before": "public StempelFilter(TokenStream in, StempelStemmer stemmer, int minLength) {super(in);this.stemmer = stemmer;this.minLength = minLength;}", "after": "public StempelFilter(TokenStream @in, StempelStemmer stemmer, int minLength): base(@in){this.stemmer = stemmer;this.minLength = minLength;this.termAtt = AddAttribute();this.keywordAtt = AddAttribute();}" }, { "index": 8284, "before": "public GetIntegrationResponseResult getIntegrationResponse(GetIntegrationResponseRequest request) {request = beforeClientExecution(request);return executeGetIntegrationResponse(request);}", "after": "public virtual GetIntegrationResponseResponse GetIntegrationResponse(GetIntegrationResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIntegrationResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIntegrationResponseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8285, "before": "public PostToConnectionResult postToConnection(PostToConnectionRequest request) {request = beforeClientExecution(request);return executePostToConnection(request);}", "after": "public virtual PostToConnectionResponse PostToConnection(PostToConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = PostToConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = PostToConnectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8286, "before": "public TermRangeQueryNode(FieldQueryNode lower, FieldQueryNode upper,boolean lowerInclusive, boolean upperInclusive) {setBounds(lower, upper, lowerInclusive, upperInclusive);}", "after": "public TermRangeQueryNode(FieldQueryNode lower, FieldQueryNode upper,bool lowerInclusive, bool upperInclusive){SetBounds(lower, upper, lowerInclusive, upperInclusive);}" }, { "index": 8287, "before": "public QueryParser(CharStream stream) {token_source = new QueryParserTokenManager(stream);token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 10; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();}", "after": "protected internal QueryParser(ICharStream stream){TokenSource = new QueryParserTokenManager(stream);Token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 21; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();}" }, { "index": 8288, "before": "public CreateSchemaResult createSchema(CreateSchemaRequest request) {request = beforeClientExecution(request);return executeCreateSchema(request);}", "after": "public virtual CreateSchemaResponse CreateSchema(CreateSchemaRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSchemaRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSchemaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8289, "before": "public V get(char[] text, int off, int len) {if(text == null)throw new NullPointerException();return null;}", "after": "public override V Get(char[] text, int offset, int length){if (text == null){throw new ArgumentNullException(\"text\");}return default(V);}" }, { "index": 8290, "before": "public List stem(String word) {return stem(word.toCharArray(), word.length());}", "after": "public IList Stem(string word){return Stem(word.ToCharArray(), word.Length);}" }, { "index": 8291, "before": "public DeleteSmsTemplateResult deleteSmsTemplate(DeleteSmsTemplateRequest request) {request = beforeClientExecution(request);return executeDeleteSmsTemplate(request);}", "after": "public virtual DeleteSmsTemplateResponse DeleteSmsTemplate(DeleteSmsTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSmsTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSmsTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8292, "before": "public void setPassword(short pw) {field_1_password = pw;}", "after": "public void SetPassword(short pw){field_1_password = pw;}" }, { "index": 8293, "before": "public CharBuffer append(char c) {return put(c);}", "after": "public virtual java.nio.CharBuffer append(char c){return put(c);}" }, { "index": 8294, "before": "public PutVoiceConnectorLoggingConfigurationResult putVoiceConnectorLoggingConfiguration(PutVoiceConnectorLoggingConfigurationRequest request) {request = beforeClientExecution(request);return executePutVoiceConnectorLoggingConfiguration(request);}", "after": "public virtual PutVoiceConnectorLoggingConfigurationResponse PutVoiceConnectorLoggingConfiguration(PutVoiceConnectorLoggingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutVoiceConnectorLoggingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutVoiceConnectorLoggingConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8295, "before": "public boolean isAbsolute() {return path.length() > 0 && path.charAt(0) == separatorChar;}", "after": "public bool isAbsolute(){return path.Length > 0 && path[0] == separatorChar;}" }, { "index": 8296, "before": "public CreateSnapshotRequest(String volumeId, String description) {setVolumeId(volumeId);setDescription(description);}", "after": "public CreateSnapshotRequest(string volumeId, string description){_volumeId = volumeId;_description = description;}" }, { "index": 8297, "before": "public static ReaderIterator getReaderIteratorNoHeader(DataInput in, Format format, int version,int valueCount, int bitsPerValue, int mem) {checkVersion(version);return new PackedReaderIterator(format, version, valueCount, bitsPerValue, in, mem);}", "after": "public static IReaderIterator GetReaderIteratorNoHeader(DataInput @in, Format format, int version, int valueCount, int bitsPerValue, int mem){CheckVersion(version);return new PackedReaderIterator(format, version, valueCount, bitsPerValue, @in, mem);}" }, { "index": 8298, "before": "public DoubleBuffer put(int index, double c) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.DoubleBuffer put(int index, double c){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 8299, "before": "public StashDropCommand stashDrop() {return new StashDropCommand(repo);}", "after": "public virtual StashDropCommand StashDrop(){return new StashDropCommand(repo);}" }, { "index": 8300, "before": "public boolean isUnmappable() {return this.type == TYPE_UNMAPPABLE_CHAR;}", "after": "public virtual bool isUnmappable(){return this.type == TYPE_UNMAPPABLE_CHAR;}" }, { "index": 8301, "before": "public byte readByte() {checkPosition(1);return (byte)read();}", "after": "public int ReadByte(){CheckPosition(1);return _buf[_ReadIndex++];}" }, { "index": 8302, "before": "public void decode(long[] 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 = blocks[blocksOffset++];valuesOffset = decode(block, values, valuesOffset);}}", "after": "public override void Decode(long[] 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 = blocks[blocksOffset++];valuesOffset = Decode(block, values, valuesOffset);}}" }, { "index": 8303, "before": "public CustomAnalyzerConfig build() {return new CustomAnalyzerConfig(this);}", "after": "public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}" }, { "index": 8304, "before": "public UpdateAddressBookResult updateAddressBook(UpdateAddressBookRequest request) {request = beforeClientExecution(request);return executeUpdateAddressBook(request);}", "after": "public virtual UpdateAddressBookResponse UpdateAddressBook(UpdateAddressBookRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAddressBookRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAddressBookResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8305, "before": "public String toString() {return String.format(\"Point [%dx%d]\", x, y);}", "after": "public override string ToString(){return \"Point(\" + x + \", \" + y + \")\";}" }, { "index": 8306, "before": "public DescribeAccountAttributesResult describeAccountAttributes(DescribeAccountAttributesRequest request) {request = beforeClientExecution(request);return executeDescribeAccountAttributes(request);}", "after": "public virtual DescribeAccountAttributesResponse DescribeAccountAttributes(DescribeAccountAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAccountAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAccountAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8307, "before": "public static final RevFilter before(long ts) {return new Before(ts);}", "after": "public static RevFilter Before(long ts){return new CommitTimeRevFilterBefore(ts);}" }, { "index": 8308, "before": "public void seekExact(BytesRef target, TermState otherState) {if (!target.equals(term)) {state.copyFrom(otherState);term = BytesRef.deepCopyOf(target);seekPending = true;}}", "after": "public override void SeekExact(BytesRef target, TermState otherState){Debug.Assert(otherState != null && otherState is BlockTermState);Debug.Assert(!doOrd || ((BlockTermState)otherState).Ord < outerInstance.numTerms);state.CopyFrom(otherState);seekPending = true;indexIsCurrent = false;term.CopyBytes(target);}" }, { "index": 8309, "before": "public DescribeClusterParameterGroupsResult describeClusterParameterGroups(DescribeClusterParameterGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeClusterParameterGroups(request);}", "after": "public virtual DescribeClusterParameterGroupsResponse DescribeClusterParameterGroups(DescribeClusterParameterGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterParameterGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterParameterGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8310, "before": "public BatchGetApplicationsResult batchGetApplications(BatchGetApplicationsRequest request) {request = beforeClientExecution(request);return executeBatchGetApplications(request);}", "after": "public virtual BatchGetApplicationsResponse BatchGetApplications(BatchGetApplicationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetApplicationsRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetApplicationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8311, "before": "public String toString() {return \"dels=\" + Arrays.toString(item);}", "after": "public override string ToString(){return \"dels=\" + Arrays.ToString((Term[])item);}" }, { "index": 8312, "before": "public FreeRefFunction findFunction(String name) {FreeRefFunction evaluatorForFunction;for (UDFFinder pack : _usedToolPacks) {evaluatorForFunction = pack.findFunction(name);if (evaluatorForFunction != null) {return evaluatorForFunction;}}return null;}", "after": "public override FreeRefFunction FindFunction(String name){FreeRefFunction evaluatorForFunction;foreach (UDFFinder pack in _usedToolPacks){evaluatorForFunction = pack.FindFunction(name);if (evaluatorForFunction != null){return evaluatorForFunction;}}return null;}" }, { "index": 8313, "before": "public String toString(){StringBuilder sb = new StringBuilder();sb.append(\"[LABEL]\\n\");sb.append(\" .row = \").append(HexDump.shortToHex(getRow())).append(\"\\n\");sb.append(\" .column = \").append(HexDump.shortToHex(getColumn())).append(\"\\n\");sb.append(\" .xfindex = \").append(HexDump.shortToHex(getXFIndex())).append(\"\\n\");sb.append(\" .string_len= \").append(HexDump.shortToHex(field_4_string_len)).append(\"\\n\");sb.append(\" .unicode_flag= \").append(HexDump.byteToHex(field_5_unicode_flag)).append(\"\\n\");sb.append(\" .value = \").append(getValue()).append(\"\\n\");sb.append(\"[/LABEL]\\n\");return sb.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[LABEL]\\n\");buffer.Append(\" .row = \").Append(StringUtil.ToHexString(Row)).Append(\"\\n\");buffer.Append(\" .column = \").Append(StringUtil.ToHexString(Column)).Append(\"\\n\");buffer.Append(\" .xfindex = \").Append(StringUtil.ToHexString(XFIndex)).Append(\"\\n\");buffer.Append(\" .string_len = \").Append(StringUtil.ToHexString(field_4_string_len)).Append(\"\\n\");buffer.Append(\" .unicode_flag = \").Append(StringUtil.ToHexString(field_5_unicode_flag)).Append(\"\\n\");buffer.Append(\" .value = \").Append(Value).Append(\"\\n\");buffer.Append(\"[/LABEL]\\n\");return buffer.ToString();}" }, { "index": 8314, "before": "public static void verifyLabel(String label) {if (label == null || label.isEmpty()) {throw new IllegalArgumentException(\"empty or null components not allowed; got: \" + label);}}", "after": "public static void VerifyLabel(string label){if (string.IsNullOrEmpty(label)){throw new System.ArgumentException(\"empty or null components not allowed; got: \" + label);}}" }, { "index": 8315, "before": "public boolean setReadOnly() {return setWritable(false, false);}", "after": "public bool setReadOnly(){return setWritable(false, false);}" }, { "index": 8316, "before": "public CopyImageResult copyImage(CopyImageRequest request) {request = beforeClientExecution(request);return executeCopyImage(request);}", "after": "public virtual CopyImageResponse CopyImage(CopyImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopyImageRequestMarshaller.Instance;options.ResponseUnmarshaller = CopyImageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8317, "before": "public CreateTrainingJobResult createTrainingJob(CreateTrainingJobRequest request) {request = beforeClientExecution(request);return executeCreateTrainingJob(request);}", "after": "public virtual CreateTrainingJobResponse CreateTrainingJob(CreateTrainingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTrainingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTrainingJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8318, "before": "public DescribeDomainsResult describeDomains(DescribeDomainsRequest request) {request = beforeClientExecution(request);return executeDescribeDomains(request);}", "after": "public virtual DescribeDomainsResponse DescribeDomains(DescribeDomainsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDomainsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDomainsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8319, "before": "public String toString() {return \"ngram(\" + n + \")\";}", "after": "public override string ToString(){return \"ngram(\" + n + \")\";}" }, { "index": 8320, "before": "public boolean formatMatches(ColumnInfoRecord other) {if (_xfIndex != other._xfIndex) {return false;}if (_options != other._options) {return false;}if (_colWidth != other._colWidth) {return false;}return true;}", "after": "public bool FormatMatches(ColumnInfoRecord other){if (_xf_index != other._xf_index){return false;}if (_options != other._options){return false;}if (_col_width != other._col_width){return false;}return true;}" }, { "index": 8321, "before": "public AddCommand add() {return new AddCommand(repo);}", "after": "public virtual AddCommand Add(){return new AddCommand(repo);}" }, { "index": 8322, "before": "public final int limit() {return limit;}", "after": "public int limit(){return _limit;}" }, { "index": 8323, "before": "public CharBuffer asReadOnlyBuffer() {return ReadOnlyCharArrayBuffer.copy(this, mark);}", "after": "public override java.nio.CharBuffer asReadOnlyBuffer(){return java.nio.ReadOnlyCharArrayBuffer.copy(this, _mark);}" }, { "index": 8324, "before": "public synchronized boolean add(E object) {if (elementCount == elementData.length) {growByOne();}elementData[elementCount++] = object;modCount++;return true;}", "after": "public override bool add(E @object){lock (this){if (elementCount == elementData.Length){growByOne();}elementData[elementCount++] = @object;modCount++;return true;}}" }, { "index": 8325, "before": "public TSTNode getNode(CharSequence key) {return getNode(key, rootNode);}", "after": "public virtual TSTNode GetNode(string key){return GetNode(key, rootNode);}" }, { "index": 8326, "before": "public GetEventStreamResult getEventStream(GetEventStreamRequest request) {request = beforeClientExecution(request);return executeGetEventStream(request);}", "after": "public virtual GetEventStreamResponse GetEventStream(GetEventStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEventStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEventStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8327, "before": "public SendMessageBatchResult sendMessageBatch(SendMessageBatchRequest request) {request = beforeClientExecution(request);return executeSendMessageBatch(request);}", "after": "public virtual SendMessageBatchResponse SendMessageBatch(SendMessageBatchRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendMessageBatchRequestMarshaller.Instance;options.ResponseUnmarshaller = SendMessageBatchResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8328, "before": "public DescribeDirectConnectGatewayAttachmentsResult describeDirectConnectGatewayAttachments(DescribeDirectConnectGatewayAttachmentsRequest request) {request = beforeClientExecution(request);return executeDescribeDirectConnectGatewayAttachments(request);}", "after": "public virtual DescribeDirectConnectGatewayAttachmentsResponse DescribeDirectConnectGatewayAttachments(DescribeDirectConnectGatewayAttachmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDirectConnectGatewayAttachmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDirectConnectGatewayAttachmentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8329, "before": "public Object add(Object prefix, Object output) {assert !(prefix instanceof List);if (!(output instanceof List)) {return outputs.add((T) prefix, (T) output);} else {List outputList = (List) output;List addedList = new ArrayList<>(outputList.size());for(T _output : outputList) {addedList.add(outputs.add((T) prefix, _output));}return addedList;}}", "after": "public override object Add(object prefix, object output){Debug.Assert(!(prefix is IList));if (!(output is IList)){return outputs.Add((T)prefix, (T)output);}else{IList outputList = (IList)output;IList addedList = new JCG.List(outputList.Count);foreach (object _output in outputList){addedList.Add(outputs.Add((T)prefix, (T)_output));}return addedList;}}" }, { "index": 8330, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2, ValueEval arg3) {return evaluate(srcRowIndex, srcColumnIndex, arg0, arg1, arg2, arg3, DEFAULT_ARG4);}", "after": "public ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2, ValueEval arg3){return Evaluate(srcRowIndex, srcColumnIndex, arg0, arg1, arg2, arg3, DEFAULT_ARG4);}" }, { "index": 8331, "before": "public static List findAllNodes(ParseTree t, int index, boolean findTokens) {List nodes = new ArrayList();_findAllNodes(t, index, findTokens, nodes);return nodes;}", "after": "public static IList FindAllNodes(IParseTree t, int index, bool findTokens){IList nodes = new List();_findAllNodes(t, index, findTokens, nodes);return nodes;}" }, { "index": 8332, "before": "public boolean containsChart() {EscherOptRecord optRecord = (EscherOptRecord)_boundAggregate.findFirstWithId(EscherOptRecord.RECORD_ID);if (optRecord == null) {return false;}for (EscherProperty prop : optRecord.getEscherProperties()) {if (prop.getPropertyNumber() == 896 && prop.isComplex()) {EscherComplexProperty cp = (EscherComplexProperty) prop;String str = StringUtil.getFromUnicodeLE(cp.getComplexData());if (str.equals(\"Chart 1\\0\")) {return true;}}}return false;}", "after": "public bool ContainsChart(){EscherOptRecord optRecord = (EscherOptRecord)_boundAggregate.FindFirstWithId(EscherOptRecord.RECORD_ID);if (optRecord == null){return false;}for (IEnumerator it = optRecord.EscherProperties.GetEnumerator(); it.MoveNext(); ){EscherProperty prop = (EscherProperty)it.Current;if (prop.PropertyNumber == 896 && prop.IsComplex){EscherComplexProperty cp = (EscherComplexProperty)prop;String str = StringUtil.GetFromUnicodeLE(cp.ComplexData);if (str.Equals(\"Chart 1\\0\")){return true;}}}return false;}" }, { "index": 8333, "before": "public int getWidth() {return w;}", "after": "public virtual int getWidth(){return w;}" }, { "index": 8334, "before": "public StopInstanceResult stopInstance(StopInstanceRequest request) {request = beforeClientExecution(request);return executeStopInstance(request);}", "after": "public virtual StopInstanceResponse StopInstance(StopInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = StopInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8335, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[TABLE]\\n\");buffer.append(\" .range = \").append(getRange()).append(\"\\n\");buffer.append(\" .flags = \") .append(HexDump.byteToHex(field_5_flags)).append(\"\\n\");buffer.append(\" .alwaysClc= \").append(isAlwaysCalc()).append(\"\\n\");buffer.append(\" .reserved = \").append(HexDump.intToHex(field_6_res)).append(\"\\n\");CellReference crRowInput = cr(field_7_rowInputRow, field_8_colInputRow);CellReference crColInput = cr(field_9_rowInputCol, field_10_colInputCol);buffer.append(\" .rowInput = \").append(crRowInput.formatAsString()).append(\"\\n\");buffer.append(\" .colInput = \").append(crColInput.formatAsString()).append(\"\\n\");buffer.append(\"[/TABLE]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[TABLE]\\n\");buffer.Append(\" .range = \").Append(Range.ToString()).Append(\"\\n\");buffer.Append(\" .flags = \").Append(HexDump.ByteToHex(field_5_flags)).Append(\"\\n\");buffer.Append(\" .alwaysClc= \").Append(IsAlwaysCalc).Append(\"\\n\");buffer.Append(\" .reserved = \").Append(HexDump.IntToHex(field_6_res)).Append(\"\\n\");CellReference crRowInput = cr(field_7_rowInputRow, field_8_colInputRow);CellReference crColInput = cr(field_9_rowInputCol, field_10_colInputCol);buffer.Append(\" .rowInput = \").Append(crRowInput.FormatAsString()).Append(\"\\n\");buffer.Append(\" .colInput = \").Append(crColInput.FormatAsString()).Append(\"\\n\");buffer.Append(\"[/TABLE]\\n\");return buffer.ToString();}" }, { "index": 8336, "before": "public RemoveTagsResult removeTags(RemoveTagsRequest request) {request = beforeClientExecution(request);return executeRemoveTags(request);}", "after": "public virtual RemoveTagsResponse RemoveTags(RemoveTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveTagsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8337, "before": "public boolean hasNext() {if (next == null)next = peek();return next != null;}", "after": "public override bool HasNext(){if (this.next == null){this.next = this.Peek();}return this.next != null;}" }, { "index": 8338, "before": "public long byteCount(int packedIntsVersion, int valueCount, int bitsPerValue) {return (long) Math.ceil((double) valueCount * bitsPerValue / 8);}", "after": "public virtual long ByteCount(int packedIntsVersion, int valueCount, int bitsPerValue){return 8L * Int64Count(packedIntsVersion, valueCount, bitsPerValue);}" }, { "index": 8339, "before": "public GetQueueUrlRequest(String queueName) {setQueueName(queueName);}", "after": "public GetQueueUrlRequest(string queueName){_queueName = queueName;}" }, { "index": 8340, "before": "public void addEscherRecord(int index, EscherRecord element){escherRecords.add( index, element );}", "after": "public void AddEscherRecord(int index, EscherRecord element){escherRecords.Insert(index, element);}" }, { "index": 8341, "before": "public ListInstanceGroupsResult listInstanceGroups(ListInstanceGroupsRequest request) {request = beforeClientExecution(request);return executeListInstanceGroups(request);}", "after": "public virtual ListInstanceGroupsResponse ListInstanceGroups(ListInstanceGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListInstanceGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListInstanceGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8342, "before": "public TruncateTokenFilterFactory(Map args) {super(args);prefixLength = Byte.parseByte(get(args, PREFIX_LENGTH_KEY, \"5\"));if (prefixLength < 1)throw new IllegalArgumentException(PREFIX_LENGTH_KEY + \" parameter must be a positive number: \" + prefixLength);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameter(s): \" + args);}}", "after": "public TruncateTokenFilterFactory(IDictionary args): base(args){var prefixLengthString = Get(args, PREFIX_LENGTH_KEY, \"5\");prefixLength = sbyte.Parse(prefixLengthString, NumberStyles.Integer, CultureInfo.InvariantCulture);if (prefixLength < 1){throw new System.ArgumentException(PREFIX_LENGTH_KEY + \" parameter must be a positive number: \" + prefixLengthString);}if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameter(s): \" + args);}}" }, { "index": 8343, "before": "public GetDetectorResult getDetector(GetDetectorRequest request) {request = beforeClientExecution(request);return executeGetDetector(request);}", "after": "public virtual GetDetectorResponse GetDetector(GetDetectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDetectorRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDetectorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8344, "before": "public void set(int index, int n) {if (count < index)throw new ArrayIndexOutOfBoundsException(index);else if (count == index)add(n);elseentries[index] = n;}", "after": "public virtual void Set(int index, int n){if (count < index){throw Sharpen.Extensions.CreateIndexOutOfRangeException(index);}else{if (count == index){Add(n);}else{entries[index] = n;}}}" }, { "index": 8345, "before": "public StatePair(int s1, int s2) {this.s1 = s1;this.s2 = s2;this.s = -1;}", "after": "public StatePair(State s1, State s2){this.S1 = s1;this.S2 = s2;}" }, { "index": 8346, "before": "public DetachDiskResult detachDisk(DetachDiskRequest request) {request = beforeClientExecution(request);return executeDetachDisk(request);}", "after": "public virtual DetachDiskResponse DetachDisk(DetachDiskRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachDiskRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachDiskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8347, "before": "public void clear() {count = 0;}", "after": "public virtual void Clear(){count = 0;}" }, { "index": 8348, "before": "public ListIterator listIterator() {return delegate().listIterator(); }", "after": "public virtual java.util.ListIterator listIterator(){lock (mutex){return list.listIterator();}}" }, { "index": 8349, "before": "public FieldDoc(int doc, float score, Object[] fields, int shardIndex) {super(doc, score, shardIndex);this.fields = fields;}", "after": "public FieldDoc(int doc, float score, object[] fields, int shardIndex): base(doc, score, shardIndex){this.fields = fields;}" }, { "index": 8350, "before": "public ResourceRecord(String value) {setValue(value);}", "after": "public ResourceRecord(string value){_value = value;}" }, { "index": 8351, "before": "public String getAuthority() {return decode(authority);}", "after": "public string getAuthority(){return decode(authority);}" }, { "index": 8352, "before": "public void flush() throws IOException {drain();output.flush();}", "after": "public override void flush(){throw new System.NotImplementedException();}" }, { "index": 8353, "before": "public ListMultipartUploadsRequest(String accountId, String vaultName) {setAccountId(accountId);setVaultName(vaultName);}", "after": "public ListMultipartUploadsRequest(string accountId, string vaultName){_accountId = accountId;_vaultName = vaultName;}" }, { "index": 8354, "before": "public UpdateRouteResponseResult updateRouteResponse(UpdateRouteResponseRequest request) {request = beforeClientExecution(request);return executeUpdateRouteResponse(request);}", "after": "public virtual UpdateRouteResponseResponse UpdateRouteResponse(UpdateRouteResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRouteResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRouteResponseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8355, "before": "public boolean containsKey(Object name) {return get(name) != null;}", "after": "public override bool ContainsKey(object name){return Get(name) != null;}" }, { "index": 8356, "before": "public SimpleRateLimiter(double mbPerSec) {setMBPerSec(mbPerSec);lastNS = System.nanoTime();}", "after": "public SimpleRateLimiter(double mbPerSec){SetMbPerSec(mbPerSec);}" }, { "index": 8357, "before": "public void releaseSession(RemoteSession session) {session.disconnect();}", "after": "public virtual void ReleaseSession(RemoteSession session){session.Disconnect();}" }, { "index": 8358, "before": "public SetQuotaRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"SetQuota\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public SetQuotaRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"SetQuota\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 8359, "before": "public ParserATNSimulator(Parser parser, ATN atn,DFA[] decisionToDFA,PredictionContextCache sharedContextCache){super(atn, sharedContextCache);this.parser = parser;this.decisionToDFA = decisionToDFA;}", "after": "public ParserATNSimulator(Parser parser, ATN atn,DFA[] decisionToDFA,PredictionContextCache sharedContextCache): base(atn, sharedContextCache){this.parser = parser;this.decisionToDFA = decisionToDFA;}" }, { "index": 8360, "before": "public void remove() {Object[] a = array;int removalIdx = removalIndex;if (modCount != expectedModCount) {throw new ConcurrentModificationException();}if (removalIdx < 0) {throw new IllegalStateException();}System.arraycopy(a, removalIdx + 1, a, removalIdx, remaining);a[--size] = null; removalIndex = -1;expectedModCount = ++modCount;}", "after": "public virtual void remove(){object[] a = this._enclosing.array;int removalIdx = this.removalIndex;if (this._enclosing.modCount != this.expectedModCount){throw new java.util.ConcurrentModificationException();}if (removalIdx < 0){throw new System.InvalidOperationException();}System.Array.Copy(a, removalIdx + 1, a, removalIdx, this.remaining);a[--this._enclosing._size] = null;this.removalIndex = -1;this.expectedModCount = ++this._enclosing.modCount;}" }, { "index": 8361, "before": "public T getPointAt(int index) {return elements[index];}", "after": "public T GetPointAt(int index) {return elements[index];}" }, { "index": 8362, "before": "public StatusCommand setWorkingTreeIt(WorkingTreeIterator workingTreeIt) {this.workingTreeIt = workingTreeIt;return this;}", "after": "public virtual NGit.Api.StatusCommand SetWorkingTreeIt(WorkingTreeIterator workingTreeIt){this.workingTreeIt = workingTreeIt;return this;}" }, { "index": 8363, "before": "public CharBlockArray append(CharSequence chars) {return append(chars, 0, chars.length());}", "after": "public virtual CharBlockArray Append(ICharSequence chars){return Append(chars, 0, chars.Length);}" }, { "index": 8364, "before": "public void clear() {current.clear();}", "after": "public override void Clear(){current.Clear();}" }, { "index": 8365, "before": "public String toFormulaString() {return FormulaError.forInt(field_1_error_code).getString();}", "after": "public override String ToFormulaString(){return HSSFErrorConstants.GetText(field_1_error_code);}" }, { "index": 8366, "before": "public FtPioGrbitSubRecord clone() {return copy();}", "after": "public override Object Clone(){FtPioGrbitSubRecord rec = new FtPioGrbitSubRecord();rec.flags = this.flags;return rec;}" }, { "index": 8367, "before": "public PositionSpan(int start, int end) {this.start = start;this.end = end;}", "after": "public PositionSpan(int start, int end){this.Start = start;this.End = end;}" }, { "index": 8368, "before": "public void setParams(String params) {super.setParams(params);StringTokenizer st = new StringTokenizer(params, \",\");while (st.hasMoreTokens()) {String param = st.nextToken();StringTokenizer expr = new StringTokenizer(param, \":\");String key = expr.nextToken();String value = expr.nextToken();if (key.equals(\"impl\")) {if (value.equalsIgnoreCase(\"icu\"))impl = Implementation.ICU;else if (value.equalsIgnoreCase(\"jdk\"))impl = Implementation.JDK;elsethrow new RuntimeException(\"Unknown parameter \" + param);} else {throw new RuntimeException(\"Unknown parameter \" + param);}}}", "after": "public override void SetParams(string @params){base.SetParams(@params);StringTokenizer st = new StringTokenizer(@params, \",\");while (st.MoveNext()){string param = st.Current;StringTokenizer expr = new StringTokenizer(param, \":\");string key = expr.MoveNext() ? expr.Current : string.Empty;string value = expr.MoveNext() ? expr.Current : string.Empty;if (key.Equals(\"impl\", StringComparison.Ordinal)){if (value.Equals(\"icu\", StringComparison.OrdinalIgnoreCase))impl = Implementation.ICU;elsethrow new Exception(\"Unknown parameter \" + param);}else{throw new Exception(\"Unknown parameter \" + param);}}}" }, { "index": 8369, "before": "public DeleteBuildResult deleteBuild(DeleteBuildRequest request) {request = beforeClientExecution(request);return executeDeleteBuild(request);}", "after": "public virtual DeleteBuildResponse DeleteBuild(DeleteBuildRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteBuildRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteBuildResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8370, "before": "public DescribeVolumeStatusResult describeVolumeStatus() {return describeVolumeStatus(new DescribeVolumeStatusRequest());}", "after": "public virtual DescribeVolumeStatusResponse DescribeVolumeStatus(){return DescribeVolumeStatus(new DescribeVolumeStatusRequest());}" }, { "index": 8371, "before": "public String getFlags() {return f;}", "after": "public virtual string getFlags(){return f;}" }, { "index": 8372, "before": "public ShowNoteCommand setObjectId(RevObject id) {checkCallable();this.id = id;return this;}", "after": "public virtual NGit.Api.ShowNoteCommand SetObjectId(RevObject id){CheckCallable();this.id = id;return this;}" }, { "index": 8373, "before": "public PatternReplaceFilter create(TokenStream input) {return new PatternReplaceFilter(input, pattern, replacement, replaceAll);}", "after": "public override TokenStream Create(TokenStream input){return new PatternReplaceFilter(input, pattern, replacement, replaceAll);}" }, { "index": 8374, "before": "public void reset() throws IOException {drain();output.writeByte(TC_RESET);resetState();}", "after": "public virtual void reset(){throw new System.NotImplementedException();}" }, { "index": 8375, "before": "public Ptg get3DReferencePtg(CellReference cr, SheetIdentifier sheet) {int extIx = getSheetExtIx(sheet);return new Ref3DPtg(cr, extIx);}", "after": "public Ptg Get3DReferencePtg(CellReference cr, SheetIdentifier sheet){int extIx = GetSheetExtIx(sheet);return new Ref3DPtg(cr, extIx);}" }, { "index": 8376, "before": "public static void fill(boolean[] array, int start, int end, boolean value) {Arrays.checkStartAndEnd(array.length, start, end);for (int i = start; i < end; i++) {array[i] = value;}}", "after": "public static void fill(bool[] array, int start, int end, bool value){java.util.Arrays.checkStartAndEnd(array.Length, start, end);{for (int i = start; i < end; i++){array[i] = value;}}}" }, { "index": 8377, "before": "public TokenStream create(TokenStream input) {return new ICUFoldingFilter(input, normalizer);}", "after": "public override TokenStream Create(TokenStream input){return new ICUFoldingFilter(input);}" }, { "index": 8378, "before": "public CharSequence toQueryString(EscapeQuerySyntax escaper) {return \"[NTF]\";}", "after": "public override string ToQueryString(IEscapeQuerySyntax escaper){return \"[NTF]\";}" }, { "index": 8379, "before": "public StashCreateCommand setWorkingDirectoryMessage(String message) {workingDirectoryMessage = message;return this;}", "after": "public virtual NGit.Api.StashCreateCommand SetWorkingDirectoryMessage(string message){workingDirectoryMessage = message;return this;}" }, { "index": 8380, "before": "public SheetRangeEvaluator(int onlySheetIndex, SheetRefEvaluator sheetEvaluator) {this(onlySheetIndex, onlySheetIndex, new SheetRefEvaluator[] {sheetEvaluator});}", "after": "public SheetRangeEvaluator(int onlySheetIndex, SheetRefEvaluator sheetEvaluator): this(onlySheetIndex, onlySheetIndex, new SheetRefEvaluator[] { sheetEvaluator }" }, { "index": 8381, "before": "public static long[] grow(long[] array, int minSize) {assert minSize >= 0: \"size must be positive (got \" + minSize + \"): likely integer overflow?\";if (array.length < minSize) {return growExact(array, oversize(minSize, Long.BYTES));} elsereturn array;}", "after": "public static int[] Grow(int[] array, int minSize){Debug.Assert(minSize >= 0, \"size must be positive (got \" + minSize + \"): likely integer overflow?\");if (array.Length < minSize){int[] newArray = new int[Oversize(minSize, RamUsageEstimator.NUM_BYTES_INT32)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}" }, { "index": 8382, "before": "public static RevFilter create(Collection list) {if (list.size() < 2)throw new IllegalArgumentException(JGitText.get().atLeastTwoFiltersNeeded);final RevFilter[] subfilters = new RevFilter[list.size()];list.toArray(subfilters);if (subfilters.length == 2)return create(subfilters[0], subfilters[1]);return new List(subfilters);}", "after": "public static RevFilter Create(ICollection list){if (list.Count < 2){throw new ArgumentException(JGitText.Get().atLeastTwoFiltersNeeded);}RevFilter[] subfilters = new RevFilter[list.Count];Sharpen.Collections.ToArray(list, subfilters);if (subfilters.Length == 2){return Create(subfilters[0], subfilters[1]);}return new OrRevFilter.List(subfilters);}" }, { "index": 8383, "before": "public DeregisterOnPremisesInstanceResult deregisterOnPremisesInstance(DeregisterOnPremisesInstanceRequest request) {request = beforeClientExecution(request);return executeDeregisterOnPremisesInstance(request);}", "after": "public virtual DeregisterOnPremisesInstanceResponse DeregisterOnPremisesInstance(DeregisterOnPremisesInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterOnPremisesInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterOnPremisesInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8384, "before": "public ListDeliverabilityTestReportsResult listDeliverabilityTestReports(ListDeliverabilityTestReportsRequest request) {request = beforeClientExecution(request);return executeListDeliverabilityTestReports(request);}", "after": "public virtual ListDeliverabilityTestReportsResponse ListDeliverabilityTestReports(ListDeliverabilityTestReportsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeliverabilityTestReportsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeliverabilityTestReportsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8385, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1) {double dn;try {ValueEval ve1 = OperandResolver.getSingleValue(arg1, srcRowIndex, srcColumnIndex);dn = OperandResolver.coerceValueToDouble(ve1);} catch (EvaluationException e1) {return ErrorEval.VALUE_INVALID;}if (dn < 1.0) {return ErrorEval.NUM_ERROR;}int k = (int) Math.ceil(dn);double result;try {double[] ds = ValueCollector.collectValues(arg0);if (k > ds.length) {return ErrorEval.NUM_ERROR;}result = _isLarge ? StatsLib.kthLargest(ds, k) : StatsLib.kthSmallest(ds, k);NumericFunction.checkValue(result);} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1){double dn;try{ValueEval ve1 = OperandResolver.GetSingleValue(arg1, srcRowIndex, srcColumnIndex);dn = OperandResolver.CoerceValueToDouble(ve1);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}if (dn < 1.0){return ErrorEval.NUM_ERROR;}int k = (int)Math.Ceiling(dn);double result;try{double[] ds = NPOI.SS.Formula.Functions.AggregateFunction.ValueCollector.CollectValues(arg0);if (k > ds.Length){return ErrorEval.NUM_ERROR;}result = _isLarge ? StatsLib.kthLargest(ds, k) : StatsLib.kthSmallest(ds, k);NumericFunction.CheckValue(result);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}" }, { "index": 8386, "before": "public ByteArrayDataInput() {reset(BytesRef.EMPTY_BYTES);}", "after": "public ByteArrayDataInput(){Reset(BytesRef.EMPTY_BYTES);}" }, { "index": 8387, "before": "public ByteBuffer putDouble(double value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putDouble(double value){throw new System.NotImplementedException();}" }, { "index": 8388, "before": "public ChangeMessageVisibilityResult changeMessageVisibility(ChangeMessageVisibilityRequest request) {request = beforeClientExecution(request);return executeChangeMessageVisibility(request);}", "after": "public virtual ChangeMessageVisibilityResponse ChangeMessageVisibility(ChangeMessageVisibilityRequest request){var options = new InvokeOptions();options.RequestMarshaller = ChangeMessageVisibilityRequestMarshaller.Instance;options.ResponseUnmarshaller = ChangeMessageVisibilityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8389, "before": "public UpdateWorkGroupResult updateWorkGroup(UpdateWorkGroupRequest request) {request = beforeClientExecution(request);return executeUpdateWorkGroup(request);}", "after": "public virtual UpdateWorkGroupResponse UpdateWorkGroup(UpdateWorkGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateWorkGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateWorkGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8390, "before": "public NavigableMap tailMap(K fromInclusive) {return subMap(fromInclusive, INCLUSIVE, null, NO_BOUND);}", "after": "public java.util.NavigableMap tailMap(K fromInclusive){return this.subMap(fromInclusive, java.util.TreeMap.Bound.INCLUSIVE, default(K),java.util.TreeMap.Bound.NO_BOUND);}" }, { "index": 8391, "before": "public String toString() {return \"2\";}", "after": "public override string ToString(){return \"2\";}" }, { "index": 8392, "before": "public BlameCommand setStartCommit(AnyObjectId commit) {this.startCommit = commit.toObjectId();return this;}", "after": "public virtual NGit.Api.BlameCommand SetStartCommit(AnyObjectId commit){this.startCommit = commit.ToObjectId();return this;}" }, { "index": 8393, "before": "public ModifyEbsDefaultKmsKeyIdResult modifyEbsDefaultKmsKeyId(ModifyEbsDefaultKmsKeyIdRequest request) {request = beforeClientExecution(request);return executeModifyEbsDefaultKmsKeyId(request);}", "after": "public virtual ModifyEbsDefaultKmsKeyIdResponse ModifyEbsDefaultKmsKeyId(ModifyEbsDefaultKmsKeyIdRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyEbsDefaultKmsKeyIdRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyEbsDefaultKmsKeyIdResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8394, "before": "public void removeAuthor() {remove1stProperty(PropertyIDMap.PID_AUTHOR);}", "after": "public void RemoveAuthor(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_AUTHOR);}" }, { "index": 8395, "before": "public Ref get(Object key) {String name = toRefName((String) key);Ref ref = resolved.get(name);if (ref == null)ref = loose.get(name);if (ref == null)ref = packed.get(name);return ref;}", "after": "public override Ref Get(object key){string name = ToRefName((string)key);Ref @ref = resolved.Get(name);if (@ref == null){@ref = loose.Get(name);}if (@ref == null){@ref = packed.Get(name);}return @ref;}" }, { "index": 8396, "before": "public int addConditionalFormatting( HSSFConditionalFormatting cf ) {CFRecordsAggregate cfraClone = cf.getCFRecordsAggregate().cloneCFAggregate();return _conditionalFormattingTable.add(cfraClone);}", "after": "public int AddConditionalFormatting(IConditionalFormatting cf){CFRecordsAggregate cfraClone = ((HSSFConditionalFormatting)cf).CFRecordsAggregate.CloneCFAggregate();return _conditionalFormattingTable.Add(cfraClone);}" }, { "index": 8397, "before": "public final String toString() {return getClass().getName() + \"[\" + this.canonicalName + \"]\";}", "after": "public sealed override string ToString(){return GetType().FullName + \"[\" + this.canonicalName + \"]\";}" }, { "index": 8398, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getIterations());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Iterations);}" }, { "index": 8399, "before": "public MatchAllDocsQuery build(QueryNode queryNode) throws QueryNodeException {if (!(queryNode instanceof MatchAllDocsQueryNode)) {throw new QueryNodeException(new MessageImpl(QueryParserMessages.LUCENE_QUERY_CONVERSION_ERROR, queryNode.toQueryString(new EscapeQuerySyntaxImpl()), queryNode.getClass().getName()));}return new MatchAllDocsQuery();}", "after": "public virtual Query Build(IQueryNode queryNode){if (!(queryNode is MatchAllDocsQueryNode)){throw new QueryNodeException(new Message(QueryParserMessages.LUCENE_QUERY_CONVERSION_ERROR, queryNode.ToQueryString(new EscapeQuerySyntax()), queryNode.GetType().Name));}return new MatchAllDocsQuery();}" }, { "index": 8400, "before": "public LongBuffer get(long[] dst) {return get(dst, 0, dst.length);}", "after": "public virtual java.nio.LongBuffer get(long[] dst){return get(dst, 0, dst.Length);}" }, { "index": 8401, "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": 8402, "before": "@Override public void clear() {countMap.clear();}", "after": "public override void clear(){this._enclosing.clear();}" }, { "index": 8403, "before": "public SpatialArgs(SpatialOperation operation, Shape shape) {if (operation == null || shape == null)throw new NullPointerException(\"operation and shape are required\");this.operation = operation;this.shape = shape;}", "after": "public SpatialArgs(SpatialOperation operation, IShape shape){if (operation == null || shape == null)throw new ArgumentException(\"operation and shape are required\");this.Operation = operation;this.Shape = shape;}" }, { "index": 8404, "before": "public int compareTo(Completion o) {return this.utf8.compareTo(o.utf8);}", "after": "public int CompareTo(Completion o){return this.Utf8.CompareTo(o.Utf8);}" }, { "index": 8405, "before": "public GetInstancesResult getInstances(GetInstancesRequest request) {request = beforeClientExecution(request);return executeGetInstances(request);}", "after": "public virtual GetInstancesResponse GetInstances(GetInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8406, "before": "public int next() {if (text.getIndex() == text.getEndIndex() || 0 == sentenceStarts.length) {return DONE;} else if (currentSentence < sentenceStarts.length - 1) {text.setIndex(sentenceStarts[++currentSentence]);return current();} else {return last();}}", "after": "public override int Next(){if (text.Index == text.EndIndex || 0 == sentenceStarts.Length){return Done;}else if (currentSentence < sentenceStarts.Length - 1){text.SetIndex(sentenceStarts[++currentSentence]);return Current;}else{return Last();}}" }, { "index": 8407, "before": "public HSSFClientAnchor getPreferredSize(double scaleX, double scaleY){ImageUtils.setPreferredSize(this, scaleX, scaleY);return getClientAnchor();}", "after": "public IClientAnchor GetPreferredSize(double scaleX, double scaleY){ImageUtils.SetPreferredSize(this, scaleX, scaleY);return ClientAnchor;}" }, { "index": 8408, "before": "public CreateTaskSetResult createTaskSet(CreateTaskSetRequest request) {request = beforeClientExecution(request);return executeCreateTaskSet(request);}", "after": "public virtual CreateTaskSetResponse CreateTaskSet(CreateTaskSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTaskSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTaskSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8409, "before": "public ByteBuffer putFloat(int index, float value) {return putInt(index, Float.floatToRawIntBits(value));}", "after": "public override java.nio.ByteBuffer putFloat(int index, float value){return putInt(index, Sharpen.Util.FloatToRawIntBits(value));}" }, { "index": 8410, "before": "public static void main(String[] args) throws Exception {String field = null;int numTerms = DEFAULT_NUMTERMS;if (args.length == 0 || args.length > 4) {usage();System.exit(1);}Directory dir = FSDirectory.open(Paths.get(args[0]));Comparator comparator = new DocFreqComparator();for (int i = 1; i < args.length; i++) {if (args[i].equals(\"-t\")) {comparator = new TotalTermFreqComparator();}else{try {numTerms = Integer.parseInt(args[i]);} catch (NumberFormatException e) {field=args[i];}}}IndexReader reader = DirectoryReader.open(dir);TermStats[] terms = getHighFreqTerms(reader, numTerms, field, comparator);for (int i = 0; i < terms.length; i++) {System.out.printf(Locale.ROOT, \"%s:%s \\t totalTF = %,d \\t docFreq = %,d \\n\",terms[i].field, terms[i].termtext.utf8ToString(), terms[i].totalTermFreq, terms[i].docFreq);}reader.close();}", "after": "public static void Main(string[] args){string field = null;int numTerms = DEFAULT_NUMTERMS;if (args.Length == 0 || args.Length > 4){throw new ArgumentException();}Store.Directory dir = FSDirectory.Open(new DirectoryInfo(args[0]));IComparer comparer = new DocFreqComparer();for (int i = 1; i < args.Length; i++){if (args[i].Equals(\"-t\", StringComparison.Ordinal)){comparer = new TotalTermFreqComparer();}else{if (!int.TryParse(args[i], NumberStyles.Integer, CultureInfo.InvariantCulture, out numTerms))field = args[i];}}using (IndexReader reader = DirectoryReader.Open(dir)){TermStats[] terms = GetHighFreqTerms(reader, numTerms, field, comparer);for (int i = 0; i < terms.Length; i++){Console.WriteLine(\"{0}:{1} \\t totalTF = {2:#,##0} \\t doc freq = {3:#,##0} \\n\", terms[i].Field, terms[i].GetTermText(), terms[i].TotalTermFreq, terms[i].DocFreq);}}}" }, { "index": 8411, "before": "public static Collection getNotSupportedFunctionNames(){Collection lst = new TreeSet<>();lst.addAll(FunctionEval.getNotSupportedFunctionNames());lst.addAll(AnalysisToolPak.getNotSupportedFunctionNames());return Collections.unmodifiableCollection(lst);}", "after": "public static List GetNotSupportedFunctionNames(){List lst = new List();lst.AddRange(FunctionEval.GetNotSupportedFunctionNames());lst.AddRange(AnalysisToolPak.GetNotSupportedFunctionNames());return lst;}" }, { "index": 8412, "before": "public CreateMeetingResult createMeeting(CreateMeetingRequest request) {request = beforeClientExecution(request);return executeCreateMeeting(request);}", "after": "public virtual CreateMeetingResponse CreateMeeting(CreateMeetingRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateMeetingRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateMeetingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8413, "before": "public char get(int index) {checkIndex(index);return byteBuffer.getChar(index * SizeOf.CHAR);}", "after": "public override char get(int index){checkIndex(index);return byteBuffer.getChar(index * libcore.io.SizeOf.CHAR);}" }, { "index": 8414, "before": "public GetInstanceSnapshotResult getInstanceSnapshot(GetInstanceSnapshotRequest request) {request = beforeClientExecution(request);return executeGetInstanceSnapshot(request);}", "after": "public virtual GetInstanceSnapshotResponse GetInstanceSnapshot(GetInstanceSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInstanceSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInstanceSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8415, "before": "public static Map toMap(String[] keys) {Map m = new HashMap();for (int i=0; i ToMap(string[] keys){IDictionary m = new Dictionary();for (int i = 0; i < keys.Length; i++){m[keys[i]] = i;}return m;}" }, { "index": 8416, "before": "public GetHealthCheckStatusResult getHealthCheckStatus(GetHealthCheckStatusRequest request) {request = beforeClientExecution(request);return executeGetHealthCheckStatus(request);}", "after": "public virtual GetHealthCheckStatusResponse GetHealthCheckStatus(GetHealthCheckStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHealthCheckStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHealthCheckStatusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8417, "before": "public GetReusableDelegationSetResult getReusableDelegationSet(GetReusableDelegationSetRequest request) {request = beforeClientExecution(request);return executeGetReusableDelegationSet(request);}", "after": "public virtual GetReusableDelegationSetResponse GetReusableDelegationSet(GetReusableDelegationSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetReusableDelegationSetRequestMarshaller.Instance;options.ResponseUnmarshaller = GetReusableDelegationSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8418, "before": "public final ValueEval getAbsoluteValue(int row, int col) {int rowOffsetIx = row - _firstRow;int colOffsetIx = col - _firstColumn;if(rowOffsetIx < 0 || rowOffsetIx >= _nRows) {throw new IllegalArgumentException(\"Specified row index (\" + row+ \") is outside the allowed range (\" + _firstRow + \"..\" + _lastRow + \")\");}if(colOffsetIx < 0 || colOffsetIx >= _nColumns) {throw new IllegalArgumentException(\"Specified column index (\" + col+ \") is outside the allowed range (\" + _firstColumn + \"..\" + col + \")\");}return getRelativeValue(rowOffsetIx, colOffsetIx);}", "after": "public ValueEval GetAbsoluteValue(int row, int col){int rowOffsetIx = row - _firstRow;int colOffsetIx = col - _firstColumn;if (rowOffsetIx < 0 || rowOffsetIx >= _nRows){throw new ArgumentException(\"Specified row index (\" + row+ \") is outside the allowed range (\" + _firstRow + \"..\" + _lastRow + \")\");}if (colOffsetIx < 0 || colOffsetIx >= _nColumns){throw new ArgumentException(\"Specified column index (\" + col+ \") is outside the allowed range (\" + _firstColumn + \"..\" + col + \")\");}return GetRelativeValue(rowOffsetIx, colOffsetIx);}" }, { "index": 8419, "before": "public final LongBuffer put(long[] src, int srcOffset, int longCount) {throw new ReadOnlyBufferException();}", "after": "public sealed override java.nio.LongBuffer put(long[] src, int srcOffset, int longCount){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 8420, "before": "public final String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"Document<\");for (int i = 0; i < fields.size(); i++) {IndexableField field = fields.get(i);buffer.append(field.toString());if (i != fields.size()-1) {buffer.append(\" \");}}buffer.append(\">\");return buffer.toString();}", "after": "public override string ToString(){var buffer = new StringBuilder();buffer.Append(\"Document<\");for (int i = 0; i < fields.Count; i++){IIndexableField field = fields[i];buffer.Append(field.ToString());if (i != fields.Count - 1){buffer.Append(\" \");}}buffer.Append(\">\");return buffer.ToString();}" }, { "index": 8421, "before": "public StartMatchBackfillResult startMatchBackfill(StartMatchBackfillRequest request) {request = beforeClientExecution(request);return executeStartMatchBackfill(request);}", "after": "public virtual StartMatchBackfillResponse StartMatchBackfill(StartMatchBackfillRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartMatchBackfillRequestMarshaller.Instance;options.ResponseUnmarshaller = StartMatchBackfillResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8422, "before": "public FeatRecord clone() {return copy();}", "after": "public override Object Clone(){return CloneViaReserialise();}" }, { "index": 8423, "before": "public DeleteEmailTemplateResult deleteEmailTemplate(DeleteEmailTemplateRequest request) {request = beforeClientExecution(request);return executeDeleteEmailTemplate(request);}", "after": "public virtual DeleteEmailTemplateResponse DeleteEmailTemplate(DeleteEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEmailTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8424, "before": "public ListReceiptRuleSetsResult listReceiptRuleSets(ListReceiptRuleSetsRequest request) {request = beforeClientExecution(request);return executeListReceiptRuleSets(request);}", "after": "public virtual ListReceiptRuleSetsResponse ListReceiptRuleSets(ListReceiptRuleSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListReceiptRuleSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListReceiptRuleSetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8425, "before": "public boolean isRowGroupCollapsed(int row) {int collapseRow = findEndOfRowOutlineGroup(row) + 1;return getRow(collapseRow) != null && getRow(collapseRow).getColapsed();}", "after": "public bool IsRowGroupCollapsed(int row){int collapseRow = FindEndOfRowOutlineGroup(row) + 1;if (GetRow(collapseRow) == null)return false;elsereturn GetRow(collapseRow).Colapsed;}" }, { "index": 8426, "before": "public void setPathFilter(TreeFilter filter) {pathFilter = filter != null ? filter : TreeFilter.ALL;}", "after": "public virtual void SetPathFilter(TreeFilter filter){pathFilter = filter != null ? filter : TreeFilter.ALL;}" }, { "index": 8427, "before": "public int getReturnState(int index) {assert index == 0;return returnState;}", "after": "public override int GetReturnState(int index){System.Diagnostics.Debug.Assert(index == 0);return returnState;}" }, { "index": 8428, "before": "public GroupingSearch setGroupDocsLimit(int groupDocsLimit) {this.groupDocsLimit = groupDocsLimit;return this;}", "after": "public virtual GroupingSearch SetGroupDocsLimit(int groupDocsLimit){this.groupDocsLimit = groupDocsLimit;return this;}" }, { "index": 8429, "before": "public final void removeField(String name) {Iterator it = fields.iterator();while (it.hasNext()) {IndexableField field = it.next();if (field.name().equals(name)) {it.remove();return;}}}", "after": "public void RemoveField(string name){for (int i = 0; i < fields.Count; i++){IIndexableField field = fields[i];if (field.Name.Equals(name, StringComparison.Ordinal)){fields.Remove(field);return;}}}" }, { "index": 8430, "before": "public Double doubleValue(String key) {String value = responseMap.get(key);if (null == value || 0 == value.length()) {return null;}return Double.valueOf(responseMap.get(key));}", "after": "public double? DoubleValue(string key){if (null != DictionaryUtil.Get(ResponseDictionary, key)){return double.Parse(DictionaryUtil.Get(ResponseDictionary, key));}return null;}" }, { "index": 8431, "before": "public DescribeLoadBalancersResult describeLoadBalancers(DescribeLoadBalancersRequest request) {request = beforeClientExecution(request);return executeDescribeLoadBalancers(request);}", "after": "public virtual DescribeLoadBalancersResponse DescribeLoadBalancers(DescribeLoadBalancersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoadBalancersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoadBalancersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8432, "before": "public SpanQuery[] getClauses() {return clauses.toArray(new SpanQuery[clauses.size()]);}", "after": "public virtual SpanQuery[] GetClauses(){return clauses.ToArray();}" }, { "index": 8433, "before": "public MulBlankRecord clone() {return copy();}", "after": "public override Object Clone(){return this;}" }, { "index": 8434, "before": "public final PersonIdent getTaggerIdent() {final byte[] raw = buffer;final int nameB = RawParseUtils.tagger(raw, 0);if (nameB < 0)return null;return RawParseUtils.parsePersonIdent(raw, nameB);}", "after": "public PersonIdent GetTaggerIdent(){byte[] raw = buffer;int nameB = RawParseUtils.Tagger(raw, 0);if (nameB < 0){return null;}return RawParseUtils.ParsePersonIdent(raw, nameB);}" }, { "index": 8435, "before": "public NameRecord createName(){return addName(new NameRecord());}", "after": "public NameRecord CreateName(){return AddName(new NameRecord());}" }, { "index": 8436, "before": "public void setCacheMissesUntilFill(int i) {ensureOpen();cacheMissesUntilFill = i;}", "after": "public virtual void SetCacheMissesUntilFill(int i){EnsureOpen();cacheMissesUntilFill = i;}" }, { "index": 8437, "before": "public final int hash(BytesRef br) {return hash32(br.bytes, br.offset, br.length);}", "after": "public override int Hash(BytesRef br){return Hash32(br.Bytes, br.Offset, br.Length);}" }, { "index": 8438, "before": "public DoubleBuffer get(double[] dst, int dstOffset, int doubleCount) {byteBuffer.limit(limit * SizeOf.DOUBLE);byteBuffer.position(position * SizeOf.DOUBLE);if (byteBuffer instanceof DirectByteBuffer) {((DirectByteBuffer) byteBuffer).get(dst, dstOffset, doubleCount);} else {((HeapByteBuffer) byteBuffer).get(dst, dstOffset, doubleCount);}this.position += doubleCount;return this;}", "after": "public override java.nio.DoubleBuffer get(double[] dst, int dstOffset, int doubleCount){byteBuffer.limit(_limit * libcore.io.SizeOf.DOUBLE);byteBuffer.position(_position * libcore.io.SizeOf.DOUBLE);if (byteBuffer is java.nio.DirectByteBuffer){((java.nio.DirectByteBuffer)byteBuffer).get(dst, dstOffset, doubleCount);}else{((java.nio.HeapByteBuffer)byteBuffer).get(dst, dstOffset, doubleCount);}this._position += doubleCount;return this;}" }, { "index": 8439, "before": "public void append(int key, int value) {if (mSize != 0 && key <= mKeys[mSize - 1]) {put(key, value);return;}int pos = mSize;if (pos >= mKeys.length) {int n = ArrayUtils.idealIntArraySize(pos + 1);int[] nkeys = new int[n];int[] nvalues = new int[n];System.arraycopy(mKeys, 0, nkeys, 0, mKeys.length);System.arraycopy(mValues, 0, nvalues, 0, mValues.length);mKeys = nkeys;mValues = nvalues;}mKeys[pos] = key;mValues[pos] = value;mSize = pos + 1;}", "after": "public virtual void append(int key, int value){if (mSize != 0 && key <= mKeys[mSize - 1]){put(key, value);return;}int pos = mSize;if (pos >= mKeys.Length){int n = android.util.@internal.ArrayUtils.idealIntArraySize(pos + 1);int[] nkeys = new int[n];int[] nvalues = new int[n];System.Array.Copy(mKeys, 0, nkeys, 0, mKeys.Length);System.Array.Copy(mValues, 0, nvalues, 0, mValues.Length);mKeys = nkeys;mValues = nvalues;}mKeys[pos] = key;mValues[pos] = value;mSize = pos + 1;}" }, { "index": 8440, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2) {try {double d0 = NumericFunction.singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.singleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);ValueEval ve = OperandResolver.getSingleValue(arg2, srcRowIndex, srcColumnIndex);Boolean method = OperandResolver.coerceValueToBoolean(ve, false);return new NumberEval(evaluate(d0, d1, method != null && method.booleanValue()));} catch (EvaluationException e) {return e.getErrorEval();}}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1, ValueEval arg2){double result;try{double d0 = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);ValueEval ve = OperandResolver.GetSingleValue(arg2, srcRowIndex, srcColumnIndex);bool? method = OperandResolver.CoerceValueToBoolean(ve, false);result = Evaluate(d0, d1);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}" }, { "index": 8441, "before": "public QueryAllGroupsRequest() {super(\"LinkFace\", \"2018-07-20\", \"QueryAllGroups\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public QueryAllGroupsRequest(): base(\"LinkFace\", \"2018-07-20\", \"QueryAllGroups\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 8442, "before": "public int replace(char s[], int len) {if (replacement.length > 0) {System.arraycopy(replacement, 0, s, len - suffix.length, replacement.length);}return len - suffix.length + replacement.length;}", "after": "public virtual int Replace(char[] s, int len){if (m_replacement.Length > 0){Array.Copy(m_replacement, 0, s, len - m_suffix.Length, m_replacement.Length);}return len - m_suffix.Length + m_replacement.Length;}" }, { "index": 8443, "before": "public StandardSyntaxParserTokenManager(CharStream stream){input_stream = stream;}", "after": "public StandardSyntaxParserTokenManager(ICharStream stream){m_input_stream = stream;}" }, { "index": 8444, "before": "public final String getFullMessage() {byte[] raw = buffer;int msgB = RawParseUtils.commitMessage(raw, 0);if (msgB < 0) {return \"\"; }return RawParseUtils.decode(guessEncoding(), raw, msgB, raw.length);}", "after": "public string GetFullMessage(){byte[] raw = buffer;int msgB = RawParseUtils.CommitMessage(raw, 0);if (msgB < 0){return string.Empty;}System.Text.Encoding enc = RawParseUtils.ParseEncoding(raw);return RawParseUtils.Decode(enc, raw, msgB, raw.Length);}" }, { "index": 8445, "before": "public Request marshall(GetPublicAccessBlockRequest getPublicAccessBlockRequest) {if (getPublicAccessBlockRequest == null) {throw new SdkClientException(\"Invalid argument passed to marshall(...)\");}Request request = new DefaultRequest(getPublicAccessBlockRequest, \"AWSS3Control\");request.setHttpMethod(HttpMethodName.GET);if (getPublicAccessBlockRequest.getAccountId() != null) {request.addHeader(\"x-amz-account-id\", StringUtils.fromString(getPublicAccessBlockRequest.getAccountId()));}String uriResourcePath = \"/v20180820/configuration/publicAccessBlock\";request.setResourcePath(uriResourcePath);return request;}", "after": "public IRequest Marshall(GetPublicAccessBlockRequest getPublicAccessBlockRequest){IRequest request = new DefaultRequest(getPublicAccessBlockRequest, \"AmazonS3\");request.HttpMethod = \"GET\";if (string.IsNullOrEmpty(getPublicAccessBlockRequest.BucketName))throw new System.ArgumentException(\"BucketName is a required property and must be set before making this call.\", \"getPublicAccessBlockRequest.BucketName\");request.MarshallerVersion = 2;request.ResourcePath = string.Concat(\"/\", S3Transforms.ToStringValue(getPublicAccessBlockRequest.BucketName));request.AddSubResource(\"publicAccessBlock\");request.UseQueryString = true;return request;}" }, { "index": 8446, "before": "public ChangeTagsForResourceResult changeTagsForResource(ChangeTagsForResourceRequest request) {request = beforeClientExecution(request);return executeChangeTagsForResource(request);}", "after": "public virtual ChangeTagsForResourceResponse ChangeTagsForResource(ChangeTagsForResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ChangeTagsForResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = ChangeTagsForResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8447, "before": "public void println(char c) {println(String.valueOf(c));}", "after": "public virtual void println(char c){println(c.ToString());}" }, { "index": 8448, "before": "public RefUpdate.Result getResult() {return result;}", "after": "public virtual RefUpdate.Result GetResult(){return result;}" }, { "index": 8449, "before": "public HSSFRow getRow(int rowIndex) {return _rows.get(Integer.valueOf(rowIndex));}", "after": "public NPOI.SS.UserModel.IRow GetRow(int rowIndex){if (!rows.ContainsKey(rowIndex))return null;return (HSSFRow)rows[rowIndex];}" }, { "index": 8450, "before": "public LongBuffer slice() {byteBuffer.limit(limit * SizeOf.LONG);byteBuffer.position(position * SizeOf.LONG);ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());LongBuffer result = new LongToByteBufferAdapter(bb);byteBuffer.clear();return result;}", "after": "public override java.nio.LongBuffer slice(){byteBuffer.limit(_limit * libcore.io.SizeOf.LONG);byteBuffer.position(_position * libcore.io.SizeOf.LONG);java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());java.nio.LongBuffer result = new java.nio.LongToByteBufferAdapter(bb);byteBuffer.clear();return result;}" }, { "index": 8451, "before": "public void append(byte[] name, FileMode mode, AnyObjectId id) {append(name, 0, name.length, mode, id);}", "after": "public virtual void Append(byte[] name, FileMode mode, AnyObjectId id){Append(name, 0, name.Length, mode, id);}" }, { "index": 8452, "before": "public String toString() {return String.format(\"mode(%d)\", mode);}", "after": "public override string ToString(){return string.Format(\"mode({0})\", mode);}" }, { "index": 8453, "before": "public DescribeScriptResult describeScript(DescribeScriptRequest request) {request = beforeClientExecution(request);return executeDescribeScript(request);}", "after": "public virtual DescribeScriptResponse DescribeScript(DescribeScriptRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScriptRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScriptResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8454, "before": "public String toString() {return \"NoMergePolicy\";}", "after": "public override string ToString(){return \"NoMergePolicy\";}" }, { "index": 8455, "before": "public CacheSecurityGroup revokeCacheSecurityGroupIngress(RevokeCacheSecurityGroupIngressRequest request) {request = beforeClientExecution(request);return executeRevokeCacheSecurityGroupIngress(request);}", "after": "public virtual RevokeCacheSecurityGroupIngressResponse RevokeCacheSecurityGroupIngress(RevokeCacheSecurityGroupIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeCacheSecurityGroupIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeCacheSecurityGroupIngressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8456, "before": "public final double get(int index) {checkIndex(index);return backingArray[offset + index];}", "after": "public sealed override double get(int index){checkIndex(index);return backingArray[offset + index];}" }, { "index": 8457, "before": "public DeleteVoiceConnectorTerminationResult deleteVoiceConnectorTermination(DeleteVoiceConnectorTerminationRequest request) {request = beforeClientExecution(request);return executeDeleteVoiceConnectorTermination(request);}", "after": "public virtual DeleteVoiceConnectorTerminationResponse DeleteVoiceConnectorTermination(DeleteVoiceConnectorTerminationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVoiceConnectorTerminationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVoiceConnectorTerminationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8458, "before": "public FileTreeIterator(Repository repo) {this(repo,repo.getConfig().get(WorkingTreeOptions.KEY).isDirNoGitLinks() ?NoGitlinksStrategy.INSTANCE :DefaultFileModeStrategy.INSTANCE);}", "after": "public FileTreeIterator(Repository repo) : this(repo.WorkTree, repo.FileSystem, repo.GetConfig().Get(WorkingTreeOptions.KEY)){InitRootIterator(repo);}" }, { "index": 8459, "before": "public ASCIIFoldingFilter(TokenStream input, boolean preserveOriginal){super(input);this.preserveOriginal = preserveOriginal;}", "after": "public ASCIIFoldingFilter(TokenStream input, bool preserveOriginal): base(input){this.preserveOriginal = preserveOriginal;termAtt = AddAttribute();posIncAttr = AddAttribute();}" }, { "index": 8460, "before": "public final CharBuffer asCharBuffer() {return CharToByteBufferAdapter.asCharBuffer(this);}", "after": "public sealed override java.nio.CharBuffer asCharBuffer(){return java.nio.CharToByteBufferAdapter.asCharBuffer(this);}" }, { "index": 8461, "before": "public EmbeddedObjectRefSubRecord clone() {return copy();}", "after": "public override Object Clone(){return this; }" }, { "index": 8462, "before": "public DescribeLifecycleHookTypesResult describeLifecycleHookTypes(DescribeLifecycleHookTypesRequest request) {request = beforeClientExecution(request);return executeDescribeLifecycleHookTypes(request);}", "after": "public virtual DescribeLifecycleHookTypesResponse DescribeLifecycleHookTypes(DescribeLifecycleHookTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLifecycleHookTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLifecycleHookTypesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8463, "before": "public String getEncoding() {if (!isOpen()) {return null;}return HistoricalCharsetNames.get(decoder.charset());}", "after": "public virtual string getEncoding(){if (!isOpen()){return null;}return java.io.HistoricalCharsetNames.get(decoder.charset());}" }, { "index": 8464, "before": "public void respondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest request) {request = beforeClientExecution(request);executeRespondDecisionTaskCompleted(request);}", "after": "public virtual RespondDecisionTaskCompletedResponse RespondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest request){var options = new InvokeOptions();options.RequestMarshaller = RespondDecisionTaskCompletedRequestMarshaller.Instance;options.ResponseUnmarshaller = RespondDecisionTaskCompletedResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8465, "before": "public void close() {delegate().close();}", "after": "public override void Close(){@in.Close();}" }, { "index": 8466, "before": "public GetStreamingDistributionRequest(String id) {setId(id);}", "after": "public GetStreamingDistributionRequest(string id){_id = id;}" }, { "index": 8467, "before": "@Override public boolean equals(Object object) {return object instanceof Name&& ((Name) object).name.equalsIgnoreCase(name);}", "after": "public sealed override bool Equals(object o){return base.Equals(o);}" }, { "index": 8468, "before": "public String toString() {return snapshot().toString();}", "after": "public override string ToString(){return \"PackWriter.State[\" + this.phase + \", memory=\" + this.bytesUsed + \"]\";}" }, { "index": 8469, "before": "public GetDirectoryResult getDirectory(GetDirectoryRequest request) {request = beforeClientExecution(request);return executeGetDirectory(request);}", "after": "public virtual GetDirectoryResponse GetDirectory(GetDirectoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDirectoryRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDirectoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8470, "before": "public SoraniNormalizationFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public SoraniNormalizationFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 8471, "before": "public CreateSolutionVersionResult createSolutionVersion(CreateSolutionVersionRequest request) {request = beforeClientExecution(request);return executeCreateSolutionVersion(request);}", "after": "public virtual CreateSolutionVersionResponse CreateSolutionVersion(CreateSolutionVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSolutionVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSolutionVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8472, "before": "public UpdateWorkteamResult updateWorkteam(UpdateWorkteamRequest request) {request = beforeClientExecution(request);return executeUpdateWorkteam(request);}", "after": "public virtual UpdateWorkteamResponse UpdateWorkteam(UpdateWorkteamRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateWorkteamRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateWorkteamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8473, "before": "public Matcher region(int start, int end) {return reset(input, start, end);}", "after": "public java.util.regex.Matcher region(int start_1, int end_1){return reset(java.lang.CharSequenceProxy.Wrap(input), start_1, end_1);}" }, { "index": 8474, "before": "public boolean containsKey(Object o) {if(o == null)throw new NullPointerException();return false;}", "after": "public override bool ContainsKey(object o){if (o == null){throw new ArgumentNullException(\"o\");}return false;}" }, { "index": 8475, "before": "public UpdateServerCertificateRequest(String serverCertificateName) {setServerCertificateName(serverCertificateName);}", "after": "public UpdateServerCertificateRequest(string serverCertificateName){_serverCertificateName = serverCertificateName;}" }, { "index": 8476, "before": "public int valueAt(int index) {return mValues[index];}", "after": "public virtual int valueAt(int index){return mValues[index];}" }, { "index": 8477, "before": "public byte getCharacterClass(char c) {return characterCategoryMap[c];}", "after": "public byte GetCharacterClass(char c){return characterCategoryMap[c];}" }, { "index": 8478, "before": "public int getBinaryExponent() {return _binaryExponent;}", "after": "public int GetBinaryExponent(){return _binaryExponent;}" }, { "index": 8479, "before": "public long getOffset() {return offset;}", "after": "public virtual long GetOffset(){return offset;}" }, { "index": 8480, "before": "public DescribeStackSetResult describeStackSet(DescribeStackSetRequest request) {request = beforeClientExecution(request);return executeDescribeStackSet(request);}", "after": "public virtual DescribeStackSetResponse DescribeStackSet(DescribeStackSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStackSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStackSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8481, "before": "public E get(int location) {try {return listIterator(location).next();} catch (NoSuchElementException e) {throw new IndexOutOfBoundsException();}}", "after": "public override E get(int location){try{return listIterator(location).next();}catch (java.util.NoSuchElementException){throw new System.IndexOutOfRangeException();}}" }, { "index": 8482, "before": "public static boolean isComponentRecord(int sid) {switch (sid) {case ProtectRecord.sid:case ObjectProtectRecord.sid:case ScenarioProtectRecord.sid:case PasswordRecord.sid:return true;}return false;}", "after": "public static bool IsComponentRecord(int sid){switch (sid){case ProtectRecord.sid:case ObjectProtectRecord.sid:case ScenarioProtectRecord.sid:case PasswordRecord.sid:return true;}return false;}" }, { "index": 8483, "before": "public long getFilePointer() {return main.getFilePointer();}", "after": "public override long GetFilePointer(){return main.GetFilePointer();}" }, { "index": 8484, "before": "public String toFormulaString() {return \"\"; }", "after": "public override String ToFormulaString(){return \"\"; }" }, { "index": 8485, "before": "public boolean run(String s) {int p = 0;int l = s.length();for (int i = 0, cp = 0; i < l; i += Character.charCount(cp)) {p = step(p, cp = s.codePointAt(i));if (p == -1) return false;}return accept.get(p);}", "after": "public virtual bool Run(string s){int p = m_initial;int l = s.Length;for (int i = 0, cp = 0; i < l; i += Character.CharCount(cp)){p = Step(p, cp = Character.CodePointAt(s, i));if (p == -1) return false;}return m_accept[p];}" }, { "index": 8486, "before": "public GetSchemaAsJsonResult getSchemaAsJson(GetSchemaAsJsonRequest request) {request = beforeClientExecution(request);return executeGetSchemaAsJson(request);}", "after": "public virtual GetSchemaAsJsonResponse GetSchemaAsJson(GetSchemaAsJsonRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSchemaAsJsonRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSchemaAsJsonResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8487, "before": "public T set(int index, T element) {if (index < 0 || size <= index)throw new IndexOutOfBoundsException(String.valueOf(index));T[] blockRef = directory[toDirectoryIndex(index)];int blockIdx = toBlockIndex(index);T old = blockRef[blockIdx];blockRef[blockIdx] = element;return old;}", "after": "public override T Set(int index, T element){if (index < 0 || size <= index){throw new IndexOutOfRangeException(index.ToString());}T[] blockRef = directory[ToDirectoryIndex(index)];int blockIdx = ToBlockIndex(index);T old = blockRef[blockIdx];blockRef[blockIdx] = element;return old;}" }, { "index": 8488, "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 < size();assert off + len <= arr.length;final int gets = Math.min(size() - index, len);for (int i = index, o = off, end = index + gets; i < end; ++i, ++o) {arr[o] = get(i);}return gets;}", "after": "public virtual 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 < Count);Debug.Assert(off + len <= arr.Length);int gets = Math.Min(Count - index, len);for (int i = index, o = off, end = index + gets; i < end; ++i, ++o){arr[o] = Get(i);}return gets;}" }, { "index": 8489, "before": "public void addParseListener(ParseTreeListener listener) {if (listener == null) {throw new NullPointerException(\"listener\");}if (_parseListeners == null) {_parseListeners = new ArrayList();}this._parseListeners.add(listener);}", "after": "public virtual void AddParseListener(IParseTreeListener listener){if (listener == null){throw new ArgumentNullException(\"listener\");}if (_parseListeners == null){_parseListeners = new List();}this._parseListeners.Add(listener);}" }, { "index": 8490, "before": "public CreateQueryLoggingConfigResult createQueryLoggingConfig(CreateQueryLoggingConfigRequest request) {request = beforeClientExecution(request);return executeCreateQueryLoggingConfig(request);}", "after": "public virtual CreateQueryLoggingConfigResponse CreateQueryLoggingConfig(CreateQueryLoggingConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateQueryLoggingConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateQueryLoggingConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8491, "before": "public SetIdentityFeedbackForwardingEnabledResult setIdentityFeedbackForwardingEnabled(SetIdentityFeedbackForwardingEnabledRequest request) {request = beforeClientExecution(request);return executeSetIdentityFeedbackForwardingEnabled(request);}", "after": "public virtual SetIdentityFeedbackForwardingEnabledResponse SetIdentityFeedbackForwardingEnabled(SetIdentityFeedbackForwardingEnabledRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetIdentityFeedbackForwardingEnabledRequestMarshaller.Instance;options.ResponseUnmarshaller = SetIdentityFeedbackForwardingEnabledResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8492, "before": "public int getValueAt(int relativeOffset) {if(relativeOffset >= _values.length) {throw new ArrayIndexOutOfBoundsException(\"Unable to fetch offset \" + relativeOffset + \" as the \" +\"BAT only contains \" + _values.length + \" entries\");}return _values[relativeOffset];}", "after": "public int GetValueAt(int relativeOffset){if (relativeOffset >= _values.Length){throw new IndexOutOfRangeException(\"Unable to fetch offset \" + relativeOffset + \" as the \" +\"BAT only contains \" + _values.Length + \" entries\");}return _values[relativeOffset];}" }, { "index": 8493, "before": "@Override public boolean equals(Object o) {if (o == this) {return true;}if (!(o instanceof List)) {return false;}List that = (List) o;int s = size;if (that.size() != s) {return false;}Object[] a = array;if (that instanceof RandomAccess) {for (int i = 0; i < s; i++) {Object eThis = a[i];Object ethat = that.get(i);if (eThis == null ? ethat != null : !eThis.equals(ethat)) {return false;}}} else { Iterator it = that.iterator();for (int i = 0; i < s; i++) {Object eThis = a[i];Object eThat = it.next();if (eThis == null ? eThat != null : !eThis.equals(eThat)) {return false;}}}return true;}", "after": "public override bool Equals(object o){if (o == this){return true;}if (!(o is java.util.List)){return false;}java.util.List that = (java.util.List)o;int s = _size;if (that.size() != s){return false;}object[] a = array;if (that is java.util.RandomAccess){{for (int i = 0; i < s; i++){object eThis = a[i];object ethat = that.get(i);if (eThis == null ? ethat != null : !eThis.Equals(ethat)){return false;}}}}else{java.util.Iterator it = that.iterator();{for (int i = 0; i < s; i++){object eThis = a[i];object eThat = it.next();if (eThis == null ? eThat != null : !eThis.Equals(eThat)){return false;}}}}return true;}" }, { "index": 8494, "before": "public boolean equals(Object o) {if ( o instanceof ATNState ) return stateNumber==((ATNState)o).stateNumber;return false;}", "after": "public override bool Equals(object o){return o==this ||(o is ATNState && stateNumber == ((ATNState)o).stateNumber);}" }, { "index": 8495, "before": "public EmptyTreeIterator createEmptyTreeIterator() {final byte[] n = new byte[Math.max(pathLen + 1, DEFAULT_PATH_SIZE)];System.arraycopy(path, 0, n, 0, pathLen);n[pathLen] = '/';return new EmptyTreeIterator(this, n, pathLen + 1);}", "after": "public override EmptyTreeIterator CreateEmptyTreeIterator(){byte[] n = new byte[Math.Max(pathLen + 1, DEFAULT_PATH_SIZE)];System.Array.Copy(path, 0, n, 0, pathLen);n[pathLen] = (byte)('/');return new EmptyTreeIterator(this, n, pathLen + 1);}" }, { "index": 8496, "before": "public boolean isOverflow() {return this.type == TYPE_OVERFLOW;}", "after": "public virtual bool isOverflow(){return this.type == TYPE_OVERFLOW;}" }, { "index": 8497, "before": "public ListQueueTagsResult listQueueTags(ListQueueTagsRequest request) {request = beforeClientExecution(request);return executeListQueueTags(request);}", "after": "public virtual ListQueueTagsResponse ListQueueTags(ListQueueTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListQueueTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListQueueTagsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8498, "before": "public BuyOriginPicturesRequest() {super(\"lubancloud\", \"2018-05-09\", \"BuyOriginPictures\", \"luban\");setMethod(MethodType.POST);}", "after": "public BuyOriginPicturesRequest(): base(\"lubancloud\", \"2018-05-09\", \"BuyOriginPictures\", \"luban\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 8499, "before": "public static String createSafeSheetName(final String nameProposal, char replaceChar) {if (nameProposal == null) {return \"null\";}if (nameProposal.length() < 1) {return \"empty\";}final int length = Math.min(31, nameProposal.length());final String shortenname = nameProposal.substring(0, length);final StringBuilder result = new StringBuilder(shortenname);for (int i=0; i();termAtt = tokenStream.AddAttribute();}" }, { "index": 8508, "before": "public String getString(int i) {return getString(i, i + 1, true);}", "after": "public virtual string GetString(int i){return GetString(i, i + 1, true);}" }, { "index": 8509, "before": "public int getCountRead() {return _countRead;}", "after": "public int GetCountRead(){return _countRead;}" }, { "index": 8510, "before": "public CreateNetworkAclEntryResult createNetworkAclEntry(CreateNetworkAclEntryRequest request) {request = beforeClientExecution(request);return executeCreateNetworkAclEntry(request);}", "after": "public virtual CreateNetworkAclEntryResponse CreateNetworkAclEntry(CreateNetworkAclEntryRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNetworkAclEntryRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNetworkAclEntryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8511, "before": "public BreakIteratorBoundaryScanner(BreakIterator bi){this.bi = bi;}", "after": "public BreakIteratorBoundaryScanner(BreakIterator bi){this.bi = bi;}" }, { "index": 8512, "before": "public int getOffsetGap(String fieldName) {return getWrappedAnalyzer(fieldName).getOffsetGap(fieldName);}", "after": "public override int GetOffsetGap(string fieldName){return GetWrappedAnalyzer(fieldName).GetOffsetGap(fieldName);}" }, { "index": 8513, "before": "public static double[] grow(double[] array) {return grow(array, 1 + array.length);}", "after": "public static float[] Grow(float[] array){return Grow(array, 1 + array.Length);}" }, { "index": 8514, "before": "public ParseException(Token currentTokenVal,int[][] expectedTokenSequencesVal,String[] tokenImageVal){super(initialise(currentTokenVal, expectedTokenSequencesVal, tokenImageVal));currentToken = currentTokenVal;expectedTokenSequences = expectedTokenSequencesVal;tokenImage = tokenImageVal;}", "after": "public ParseException(Token currentTokenVal,int[][] expectedTokenSequencesVal, string[] tokenImageVal): base(new Message(QueryParserMessages.INVALID_SYNTAX, Initialize(currentTokenVal, expectedTokenSequencesVal, tokenImageVal))){this.CurrentToken = currentTokenVal;this.ExpectedTokenSequences = expectedTokenSequencesVal;this.TokenImage = tokenImageVal;}" }, { "index": 8515, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[PLOTAREA]\\n\");buffer.append(\"[/PLOTAREA]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[PLOTAREA]\\n\");buffer.Append(\"[/PLOTAREA]\\n\");return buffer.ToString();}" }, { "index": 8516, "before": "public DescribeClustersResult describeClusters() {return describeClusters(new DescribeClustersRequest());}", "after": "public virtual DescribeClustersResponse DescribeClusters(){return DescribeClusters(new DescribeClustersRequest());}" }, { "index": 8517, "before": "public void setDoubleValue(double value) {super.setLongValue(Double.doubleToRawLongBits(value));}", "after": "public override void SetDoubleValue(double value){base.SetInt64Value(J2N.BitConversion.DoubleToRawInt64Bits(value));}" }, { "index": 8518, "before": "public CreateSolutionResult createSolution(CreateSolutionRequest request) {request = beforeClientExecution(request);return executeCreateSolution(request);}", "after": "public virtual CreateSolutionResponse CreateSolution(CreateSolutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSolutionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSolutionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8519, "before": "public static Packed64SingleBlock create(int valueCount, int bitsPerValue) {switch (bitsPerValue) {case 1:return new Packed64SingleBlock1(valueCount);case 2:return new Packed64SingleBlock2(valueCount);case 3:return new Packed64SingleBlock3(valueCount);case 4:return new Packed64SingleBlock4(valueCount);case 5:return new Packed64SingleBlock5(valueCount);case 6:return new Packed64SingleBlock6(valueCount);case 7:return new Packed64SingleBlock7(valueCount);case 8:return new Packed64SingleBlock8(valueCount);case 9:return new Packed64SingleBlock9(valueCount);case 10:return new Packed64SingleBlock10(valueCount);case 12:return new Packed64SingleBlock12(valueCount);case 16:return new Packed64SingleBlock16(valueCount);case 21:return new Packed64SingleBlock21(valueCount);case 32:return new Packed64SingleBlock32(valueCount);default:throw new IllegalArgumentException(\"Unsupported number of bits per value: \" + 32);}}", "after": "public static Packed64SingleBlock Create(int valueCount, int bitsPerValue){switch (bitsPerValue){case 1:return new Packed64SingleBlock1(valueCount);case 2:return new Packed64SingleBlock2(valueCount);case 3:return new Packed64SingleBlock3(valueCount);case 4:return new Packed64SingleBlock4(valueCount);case 5:return new Packed64SingleBlock5(valueCount);case 6:return new Packed64SingleBlock6(valueCount);case 7:return new Packed64SingleBlock7(valueCount);case 8:return new Packed64SingleBlock8(valueCount);case 9:return new Packed64SingleBlock9(valueCount);case 10:return new Packed64SingleBlock10(valueCount);case 12:return new Packed64SingleBlock12(valueCount);case 16:return new Packed64SingleBlock16(valueCount);case 21:return new Packed64SingleBlock21(valueCount);case 32:return new Packed64SingleBlock32(valueCount);default:throw new System.ArgumentException(\"Unsupported number of bits per value: \" + 32);}}" }, { "index": 8520, "before": "public FieldAndTerm clone() {return new FieldAndTerm(this);}", "after": "public override object Clone(){return new FieldAndTerm(this);}" }, { "index": 8521, "before": "public DescribeAlgorithmResult describeAlgorithm(DescribeAlgorithmRequest request) {request = beforeClientExecution(request);return executeDescribeAlgorithm(request);}", "after": "public virtual DescribeAlgorithmResponse DescribeAlgorithm(DescribeAlgorithmRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAlgorithmRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAlgorithmResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8522, "before": "public InvalidClassException(String className, String detailMessage) {super(detailMessage);this.classname = className;}", "after": "public InvalidClassException(string className, string detailMessage) : base(detailMessage){this.classname = className;}" }, { "index": 8523, "before": "public ExportTransitGatewayRoutesResult exportTransitGatewayRoutes(ExportTransitGatewayRoutesRequest request) {request = beforeClientExecution(request);return executeExportTransitGatewayRoutes(request);}", "after": "public virtual ExportTransitGatewayRoutesResponse ExportTransitGatewayRoutes(ExportTransitGatewayRoutesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExportTransitGatewayRoutesRequestMarshaller.Instance;options.ResponseUnmarshaller = ExportTransitGatewayRoutesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8524, "before": "public TokenStream create(TokenStream input) {final TokenStream filter = new TypeTokenFilter(input, stopTypes, useWhitelist);return filter;}", "after": "public override TokenStream Create(TokenStream input){#pragma warning disable 612, 618TokenStream filter = new TypeTokenFilter(m_luceneMatchVersion, enablePositionIncrements, input, stopTypes, useWhitelist);#pragma warning restore 612, 618return filter;}" }, { "index": 8525, "before": "public final void yyreset(java.io.Reader reader) {zzReader = reader;zzAtBOL = true;zzAtEOF = false;zzEOFDone = false;zzEndRead = zzStartRead = 0;zzCurrentPos = zzMarkedPos = 0;zzFinalHighSurrogate = 0;yyline = yychar = yycolumn = 0;zzLexicalState = YYINITIAL;if (zzBuffer.length > ZZ_BUFFERSIZE)zzBuffer = new char[ZZ_BUFFERSIZE];}", "after": "public void YyReset(TextReader reader){zzReader = reader;zzAtBOL = true;zzAtEOF = false;zzEOFDone = false;zzEndRead = zzStartRead = 0;zzCurrentPos = zzMarkedPos = 0;yyline = yychar = yycolumn = 0;zzLexicalState = YYINITIAL;if (zzBuffer.Length > ZZ_BUFFERSIZE)zzBuffer = new char[ZZ_BUFFERSIZE];}" }, { "index": 8526, "before": "public int compareTo(SegmentInfoAndLevel other) {return Float.compare(other.level, level);}", "after": "public virtual int CompareTo(SegmentInfoAndLevel other){return other.level.CompareTo(level);}" }, { "index": 8527, "before": "public FrenchMinimalStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public FrenchMinimalStemFilterFactory(IDictionary args) : base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 8528, "before": "public AreaErrPtg(LittleEndianInput in) {unused1 = in.readInt();unused2 = in.readInt();}", "after": "public AreaErrPtg(ILittleEndianInput in1){unused1 = in1.ReadInt();unused2 = in1.ReadInt();}" }, { "index": 8529, "before": "public String getRemoteTrackingBranch() {return remoteTrackingBranch;}", "after": "public virtual string GetRemoteTrackingBranch(){return remoteTrackingBranch;}" }, { "index": 8530, "before": "public boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;FieldVals other = (FieldVals) obj;if (fieldName == null) {if (other.fieldName != null)return false;} else if (!fieldName.equals(other.fieldName))return false;if (maxEdits != other.maxEdits) {return false;}if (prefixLength != other.prefixLength)return false;if (queryString == null) {return other.queryString == null;} else return queryString.equals(other.queryString);}", "after": "public override bool Equals(object obj){if (this == obj)return true;if (obj == null)return false;if (GetType() != obj.GetType())return false;FieldVals other = (FieldVals)obj;if (fieldName == null){if (other.fieldName != null)return false;}else if (!fieldName.Equals(other.fieldName, StringComparison.Ordinal))return false;if (J2N.BitConversion.SingleToInt32Bits(minSimilarity) != J2N.BitConversion.SingleToInt32Bits(other.minSimilarity))return false;if (prefixLength != other.prefixLength)return false;if (queryString == null){if (other.queryString != null)return false;}else if (!queryString.Equals(other.queryString, StringComparison.Ordinal))return false;return true;}" }, { "index": 8531, "before": "public void setMaxChainLength(int maxLen) {maxChainLength = maxLen;}", "after": "public virtual void SetMaxChainLength(int maxLen){maxChainLength = maxLen;}" }, { "index": 8532, "before": "public DeleteReusableDelegationSetResult deleteReusableDelegationSet(DeleteReusableDelegationSetRequest request) {request = beforeClientExecution(request);return executeDeleteReusableDelegationSet(request);}", "after": "public virtual DeleteReusableDelegationSetResponse DeleteReusableDelegationSet(DeleteReusableDelegationSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteReusableDelegationSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteReusableDelegationSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8533, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[HEADER]\\n\");buffer.append(\" .header = \").append(getText()).append(\"\\n\");buffer.append(\"[/HEADER]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[HEADER]\\n\");buffer.Append(\" .header = \").Append(Text).Append(\"\\n\");buffer.Append(\"[/HEADER]\\n\");return buffer.ToString();}" }, { "index": 8534, "before": "public void writeStringData(String text) {boolean is16bitEncoded = StringUtil.hasMultibyte(text);int keepTogetherSize = 1 + 1; int optionFlags = 0x00;if (is16bitEncoded) {optionFlags |= 0x01;keepTogetherSize += 1; }writeContinueIfRequired(keepTogetherSize);writeByte(optionFlags);writeCharacterData(text, is16bitEncoded);}", "after": "public void WriteStringData(String text){bool is16bitEncoded = StringUtil.HasMultibyte(text);int keepTogetherSize = 1 + 1; int optionFlags = 0x00;if (is16bitEncoded){optionFlags |= 0x01;keepTogetherSize += 1; }WriteContinueIfRequired(keepTogetherSize);WriteByte(optionFlags);WriteCharacterData(text, is16bitEncoded);}" }, { "index": 8535, "before": "public void nextBuffer() {if (1+bufferUpto == buffers.length) {byte[][] newBuffers = new byte[ArrayUtil.oversize(buffers.length+1,NUM_BYTES_OBJECT_REF)][];System.arraycopy(buffers, 0, newBuffers, 0, buffers.length);buffers = newBuffers;}buffer = buffers[1+bufferUpto] = allocator.getByteBlock();bufferUpto++;byteUpto = 0;byteOffset += BYTE_BLOCK_SIZE;}", "after": "public void NextBuffer(){if (1 + bufferUpto == buffers.Length){var newBuffers = new byte[ArrayUtil.Oversize(buffers.Length + 1, RamUsageEstimator.NUM_BYTES_OBJECT_REF)][];Array.Copy(buffers, 0, newBuffers, 0, buffers.Length);buffers = newBuffers;}buffer = buffers[1 + bufferUpto] = allocator.GetByteBlock();bufferUpto++;ByteUpto = 0;ByteOffset += BYTE_BLOCK_SIZE;}" }, { "index": 8536, "before": "public LruTaxonomyWriterCache(int cacheSize, LRUType lruType) {if (lruType == LRUType.LRU_HASHED) {this.cache = new NameHashIntCacheLRU(cacheSize);} else {this.cache = new NameIntCacheLRU(cacheSize);}}", "after": "public LruTaxonomyWriterCache(int cacheSize, LRUType lruType){if (lruType == LRUType.LRU_HASHED){this.cache = new NameHashInt32CacheLRU(cacheSize);}else{this.cache = new NameInt32CacheLRU(cacheSize);}}" }, { "index": 8537, "before": "public boolean isShowSeriesKey(){return showSeriesKey.isSet(field_1_options);}", "after": "public bool IsShowSeriesKey(){return showSeriesKey.IsSet(field_1_options);}" }, { "index": 8538, "before": "public static String toHex(final byte[] value){StringBuilder retVal = new StringBuilder();retVal.append('[');if (value != null && value.length > 0){for(int x = 0; x < value.length; x++){if (x>0) {retVal.append(\", \");}retVal.append(toHex(value[x]));}}retVal.append(']');return retVal.toString();}", "after": "public static string ToHex(byte[] value){StringBuilder buffer = new StringBuilder();buffer.Append('[');for (int i = 0; i < value.Length; i++){if (i > 0){buffer.Append(\", \");}buffer.Append(ToHex(value[i]));}buffer.Append(']');return buffer.ToString();}" }, { "index": 8539, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(field_1_index_extern_sheet);writeCoordinates(out);}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(field_1_index_extern_sheet);WriteCoordinates(out1);}" }, { "index": 8540, "before": "public void flush() {writer.flush();}", "after": "public void flush(){_writer.flush();}" }, { "index": 8541, "before": "public UsernamePasswordCredentialsProvider(String username, char[] password) {this.username = username;this.password = password;}", "after": "public UsernamePasswordCredentialsProvider(string username, char[] password){this.username = username;this.password = password;}" }, { "index": 8542, "before": "public final List getFooterLines(FooterKey keyName) {final List src = getFooterLines();if (src.isEmpty())return Collections.emptyList();final ArrayList r = new ArrayList<>(src.size());for (FooterLine f : src) {if (f.matches(keyName))r.add(f.getValue());}return r;}", "after": "public IList GetFooterLines(FooterKey keyName){IList src = GetFooterLines();if (src.IsEmpty()){return Sharpen.Collections.EmptyList();}AList r = new AList(src.Count);foreach (FooterLine f in src){if (f.Matches(keyName)){r.AddItem(f.GetValue());}}return r;}" }, { "index": 8543, "before": "public ActivityTaskStatus recordActivityTaskHeartbeat(RecordActivityTaskHeartbeatRequest request) {request = beforeClientExecution(request);return executeRecordActivityTaskHeartbeat(request);}", "after": "public virtual RecordActivityTaskHeartbeatResponse RecordActivityTaskHeartbeat(RecordActivityTaskHeartbeatRequest request){var options = new InvokeOptions();options.RequestMarshaller = RecordActivityTaskHeartbeatRequestMarshaller.Instance;options.ResponseUnmarshaller = RecordActivityTaskHeartbeatResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8544, "before": "public DescribeStepResult describeStep(DescribeStepRequest request) {request = beforeClientExecution(request);return executeDescribeStep(request);}", "after": "public virtual DescribeStepResponse DescribeStep(DescribeStepRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStepRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStepResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8545, "before": "public DeleteMessageBatchResult deleteMessageBatch(String queueUrl, java.util.List entries) {return deleteMessageBatch(new DeleteMessageBatchRequest().withQueueUrl(queueUrl).withEntries(entries));}", "after": "public virtual DeleteMessageBatchResponse DeleteMessageBatch(string queueUrl, List entries){var request = new DeleteMessageBatchRequest();request.QueueUrl = queueUrl;request.Entries = entries;return DeleteMessageBatch(request);}" }, { "index": 8546, "before": "public QueryScorer(Query query, IndexReader reader, String field) {init(query, field, reader, true);}", "after": "public QueryScorer(Query query, IndexReader reader, string field){Init(query, field, reader, true);}" }, { "index": 8547, "before": "public CreateVpcPeeringAuthorizationResult createVpcPeeringAuthorization(CreateVpcPeeringAuthorizationRequest request) {request = beforeClientExecution(request);return executeCreateVpcPeeringAuthorization(request);}", "after": "public virtual CreateVpcPeeringAuthorizationResponse CreateVpcPeeringAuthorization(CreateVpcPeeringAuthorizationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVpcPeeringAuthorizationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVpcPeeringAuthorizationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8548, "before": "public boolean contains(Object object) {if (object != null) {for (E element : a) {if (object.equals(element)) {return true;}}} else {for (E element : a) {if (element == null) {return true;}}}return false;}", "after": "public override bool contains(object @object){if (@object != null){foreach (E element in a){if (@object.Equals(element)){return true;}}}else{foreach (E element in a){if ((object)element == null){return true;}}}return false;}" }, { "index": 8549, "before": "public DescribeDBSubnetGroupsResult describeDBSubnetGroups(DescribeDBSubnetGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeDBSubnetGroups(request);}", "after": "public virtual DescribeDBSubnetGroupsResponse DescribeDBSubnetGroups(DescribeDBSubnetGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBSubnetGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBSubnetGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8550, "before": "public JobFlowExecutionStatusDetail(JobFlowExecutionState state, java.util.Date creationDateTime) {setState(state.toString());setCreationDateTime(creationDateTime);}", "after": "public JobFlowExecutionStatusDetail(JobFlowExecutionState state, DateTime creationDateTime){_state = state;_creationDateTime = creationDateTime;}" }, { "index": 8551, "before": "public String toString() {return \"more\";}", "after": "public override string ToString(){return \"more\";}" }, { "index": 8552, "before": "public KeyValue(String key, String value) {setKey(key);setValue(value);}", "after": "public KeyValue(string key, string value){_key = key;_value = value;}" }, { "index": 8553, "before": "public void balancedTree(Object[] tokens, Object[] vals, int lo, int hi,TernaryTreeNode root) {if (lo > hi) return;int mid = (lo + hi) / 2;root = insert(root, (String) tokens[mid], vals[mid], 0);balancedTree(tokens, vals, lo, mid - 1, root);balancedTree(tokens, vals, mid + 1, hi, root);}", "after": "public virtual void BalancedTree(object[] tokens, object[] vals, int lo, int hi, TernaryTreeNode root){if (lo > hi){return;}int mid = (lo + hi) / 2;root = Insert(root, (string)tokens[mid], vals[mid], 0);BalancedTree(tokens, vals, lo, mid - 1, root);BalancedTree(tokens, vals, mid + 1, hi, root);}" }, { "index": 8554, "before": "public PlotAreaRecord clone() {return copy();}", "after": "public override Object Clone(){PlotAreaRecord rec = new PlotAreaRecord();return rec;}" }, { "index": 8555, "before": "public DeleteSecurityConfigurationResult deleteSecurityConfiguration(DeleteSecurityConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteSecurityConfiguration(request);}", "after": "public virtual DeleteSecurityConfigurationResponse DeleteSecurityConfiguration(DeleteSecurityConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSecurityConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSecurityConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8556, "before": "@Override public String toString() {return mapEntry.toString();}", "after": "public override string ToString(){return mapEntry.ToString();}" }, { "index": 8557, "before": "public byte[] getCachedBytes(int sizeLimit) throws LargeObjectException,MissingObjectException, IOException {if (!isLarge())return getCachedBytes();try (ObjectStream in = openStream()) {long sz = in.getSize();if (sizeLimit < sz)throw new LargeObjectException.ExceedsLimit(sizeLimit, sz);if (Integer.MAX_VALUE < sz)throw new LargeObjectException.ExceedsByteArrayLimit();byte[] buf;try {buf = new byte[(int) sz];} catch (OutOfMemoryError notEnoughHeap) {throw new LargeObjectException.OutOfMemory(notEnoughHeap);}IO.readFully(in, buf, 0, buf.length);return buf;}}", "after": "public virtual byte[] GetCachedBytes(int sizeLimit){if (!IsLarge()){return GetCachedBytes();}ObjectStream @in = OpenStream();try{long sz = @in.GetSize();if (sizeLimit < sz){throw new LargeObjectException.ExceedsLimit(sizeLimit, sz);}if (int.MaxValue < sz){throw new LargeObjectException.ExceedsByteArrayLimit();}byte[] buf;try{buf = new byte[(int)sz];}catch (OutOfMemoryException notEnoughHeap){throw new LargeObjectException.OutOfMemory(notEnoughHeap);}IOUtil.ReadFully(@in, buf, 0, buf.Length);return buf;}finally{@in.Close();}}" }, { "index": 8558, "before": "public ListJobsByStatusResult listJobsByStatus(ListJobsByStatusRequest request) {request = beforeClientExecution(request);return executeListJobsByStatus(request);}", "after": "public virtual ListJobsByStatusResponse ListJobsByStatus(ListJobsByStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListJobsByStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = ListJobsByStatusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8559, "before": "public UpdateClusterVersionResult updateClusterVersion(UpdateClusterVersionRequest request) {request = beforeClientExecution(request);return executeUpdateClusterVersion(request);}", "after": "public virtual UpdateClusterVersionResponse UpdateClusterVersion(UpdateClusterVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateClusterVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateClusterVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8560, "before": "public PushCommand setForce(boolean force) {checkCallable();this.force = force;return this;}", "after": "public virtual NGit.Api.PushCommand SetForce(bool force){CheckCallable();this.force = force;return this;}" }, { "index": 8561, "before": "public ListStreamsResult listStreams(ListStreamsRequest request) {request = beforeClientExecution(request);return executeListStreams(request);}", "after": "public virtual ListStreamsResponse ListStreams(ListStreamsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStreamsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStreamsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8562, "before": "public boolean wasEscaped(int index) {return this.wasEscaped[index];}", "after": "public bool WasEscaped(int index){return this.wasEscaped[index];}" }, { "index": 8563, "before": "public void setNewObjectId(AnyObjectId id) {newValue = id.copy();}", "after": "public virtual void SetNewObjectId(AnyObjectId id){newValue = id.Copy();}" }, { "index": 8564, "before": "public BatchRefUpdate newBatchUpdate() {return new BatchRefUpdate(this);}", "after": "public virtual BatchRefUpdate NewBatchUpdate(){return new BatchRefUpdate(this);}" }, { "index": 8565, "before": "public String toString() {return getClass().getSimpleName() + \"(fields=\" + fields.size() + \",delegate=\" + postingsReader + \")\";}", "after": "public override string ToString(){return \"arc=\" + arc + \" state=\" + state;}" }, { "index": 8566, "before": "public CreateTrafficMirrorFilterRuleResult createTrafficMirrorFilterRule(CreateTrafficMirrorFilterRuleRequest request) {request = beforeClientExecution(request);return executeCreateTrafficMirrorFilterRule(request);}", "after": "public virtual CreateTrafficMirrorFilterRuleResponse CreateTrafficMirrorFilterRule(CreateTrafficMirrorFilterRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTrafficMirrorFilterRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTrafficMirrorFilterRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8567, "before": "public SendEventResult sendEvent(SendEventRequest request) {request = beforeClientExecution(request);return executeSendEvent(request);}", "after": "public virtual SendEventResponse SendEvent(SendEventRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendEventRequestMarshaller.Instance;options.ResponseUnmarshaller = SendEventResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8568, "before": "public MissingRowDummyRecord(int rowNumber) {this.rowNumber = rowNumber;}", "after": "public MissingRowDummyRecord(int rowNumber){this.rowNumber = rowNumber;}" }, { "index": 8569, "before": "public final int getLengthB() {return endB - beginB;}", "after": "public int GetLengthB(){return endB - beginB;}" }, { "index": 8570, "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 = 63; shift >= 0; shift -= 1) {values[valuesOffset++] = (int) ((block >>> shift) & 1);}}}", "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 = 63; shift >= 0; shift -= 1){values[valuesOffset++] = (int)(((long)((ulong)block >> shift)) & 1);}}}" }, { "index": 8571, "before": "public void writeInt(int value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeInt(value);}", "after": "public virtual void writeInt(int value){throw new System.NotImplementedException();}" }, { "index": 8572, "before": "public ByteBuffer putInt(int index, int value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putInt(int index, int value){throw new System.NotImplementedException();}" }, { "index": 8573, "before": "public K next() {return super.nextEntry().getKey();}", "after": "public override K next(){return this.nextEntry().key;}" }, { "index": 8574, "before": "public RenameDetectionType getRenameDetectionType() {return renameDetectionType;}", "after": "public virtual DiffConfig.RenameDetectionType GetRenameDetectionType(){return renameDetectionType;}" }, { "index": 8575, "before": "public ReplaceNetworkAclAssociationResult replaceNetworkAclAssociation(ReplaceNetworkAclAssociationRequest request) {request = beforeClientExecution(request);return executeReplaceNetworkAclAssociation(request);}", "after": "public virtual ReplaceNetworkAclAssociationResponse ReplaceNetworkAclAssociation(ReplaceNetworkAclAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReplaceNetworkAclAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = ReplaceNetworkAclAssociationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8576, "before": "public String getFontName(){return _fontName;}", "after": "public String GetFontName(){return fontName;}" }, { "index": 8577, "before": "public ViewSourceRecord(RecordInputStream in) {vs = in.readShort();}", "after": "public ViewSourceRecord(RecordInputStream in1){vs = in1.ReadShort();}" }, { "index": 8578, "before": "public boolean hasTrackingRefUpdate() {return trackingRefUpdate != null;}", "after": "public virtual bool HasTrackingRefUpdate(){return trackingRefUpdate != null;}" }, { "index": 8579, "before": "public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol) {return set.contains(symbol);}", "after": "public override bool Matches(int symbol, int minVocabSymbol, int maxVocabSymbol){return set.Contains(symbol);}" }, { "index": 8580, "before": "public ValueEval evaluate(EvaluationCell srcCell) {int sheetIndex = getSheetIndex(srcCell.getSheet());return evaluateAny(srcCell, sheetIndex, srcCell.getRowIndex(), srcCell.getColumnIndex(), new EvaluationTracker(_cache));}", "after": "public ValueEval Evaluate(IEvaluationCell srcCell){int sheetIndex = GetSheetIndex(srcCell.Sheet);return EvaluateAny(srcCell, sheetIndex, srcCell.RowIndex, srcCell.ColumnIndex, new EvaluationTracker(_cache));}" }, { "index": 8581, "before": "public AcceptTransitGatewayVpcAttachmentResult acceptTransitGatewayVpcAttachment(AcceptTransitGatewayVpcAttachmentRequest request) {request = beforeClientExecution(request);return executeAcceptTransitGatewayVpcAttachment(request);}", "after": "public virtual AcceptTransitGatewayVpcAttachmentResponse AcceptTransitGatewayVpcAttachment(AcceptTransitGatewayVpcAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptTransitGatewayVpcAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptTransitGatewayVpcAttachmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8582, "before": "public String toString() {return \"\";}", "after": "public override string ToString(){return \"\";}" }, { "index": 8583, "before": "public static FuzzySet createSetBasedOnQuality(int maxNumUniqueValues, float desiredMaxSaturation){int setSize=getNearestSetSize(maxNumUniqueValues,desiredMaxSaturation);return new FuzzySet(new FixedBitSet(setSize+1),setSize, hashFunctionForVersion(VERSION_CURRENT));}", "after": "public static FuzzySet CreateSetBasedOnQuality(int maxNumUniqueValues, float desiredMaxSaturation){var setSize = GetNearestSetSize(maxNumUniqueValues, desiredMaxSaturation);return new FuzzySet(new FixedBitSet(setSize + 1), setSize, HashFunctionForVersion(VERSION_CURRENT));}" }, { "index": 8584, "before": "public DeregisterInstancesFromLoadBalancerRequest(String loadBalancerName, java.util.List instances) {setLoadBalancerName(loadBalancerName);setInstances(instances);}", "after": "public DeregisterInstancesFromLoadBalancerRequest(string loadBalancerName, List instances){_loadBalancerName = loadBalancerName;_instances = instances;}" }, { "index": 8585, "before": "public DeleteIntegrationResult deleteIntegration(DeleteIntegrationRequest request) {request = beforeClientExecution(request);return executeDeleteIntegration(request);}", "after": "public virtual DeleteIntegrationResponse DeleteIntegration(DeleteIntegrationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIntegrationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIntegrationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8586, "before": "public Ref3DPtg(LittleEndianInput in) {field_1_index_extern_sheet = in.readShort();readCoordinates(in);}", "after": "public Ref3DPtg(ILittleEndianInput in1){field_1_index_extern_sheet = in1.ReadShort();ReadCoordinates(in1);}" }, { "index": 8587, "before": "public synchronized E peek() {try {return (E) elementData[elementCount - 1];} catch (IndexOutOfBoundsException e) {throw new EmptyStackException();}}", "after": "public virtual E peek(){lock (this){try{return (E)elementData[elementCount - 1];}catch (System.IndexOutOfRangeException){throw new java.util.EmptyStackException();}}}" }, { "index": 8588, "before": "public CheckDomainTransferabilityResult checkDomainTransferability(CheckDomainTransferabilityRequest request) {request = beforeClientExecution(request);return executeCheckDomainTransferability(request);}", "after": "public virtual CheckDomainTransferabilityResponse CheckDomainTransferability(CheckDomainTransferabilityRequest request){var options = new InvokeOptions();options.RequestMarshaller = CheckDomainTransferabilityRequestMarshaller.Instance;options.ResponseUnmarshaller = CheckDomainTransferabilityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8589, "before": "@Override public Iterator iterator() {return new MultisetKeyIterator();}", "after": "public override java.util.Iterator> iterator(){return new java.util.Hashtable.EntryIterator(this._enclosing);}" }, { "index": 8590, "before": "public InitiateJobResult initiateJob(InitiateJobRequest request) {request = beforeClientExecution(request);return executeInitiateJob(request);}", "after": "public virtual InitiateJobResponse InitiateJob(InitiateJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = InitiateJobRequestMarshaller.Instance;options.ResponseUnmarshaller = InitiateJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8591, "before": "public StempelPolishStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public StempelPolishStemFilterFactory(IDictionary args): base(args){if (args.Any()){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 8592, "before": "public void removeLastAuthor() {remove1stProperty(PropertyIDMap.PID_LASTAUTHOR);}", "after": "public void RemoveLastAuthor(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_LASTAUTHOR);}" }, { "index": 8593, "before": "public void decRef() {final int rc = refCount.decrementAndGet();assert rc >= 0: \"seg=\" + info;}", "after": "public virtual void DecRef(){int rc = refCount.DecrementAndGet();Debug.Assert(rc >= 0);}" }, { "index": 8594, "before": "public String toString() {return \"\";}", "after": "public override string ToString(){return \"\";}" }, { "index": 8595, "before": "public static void putCompressedUnicode(String input, LittleEndianOutput out) {byte[] bytes = input.getBytes(ISO_8859_1);out.write(bytes);}", "after": "public static void PutCompressedUnicode(String input, ILittleEndianOutput out1){byte[] bytes = ISO_8859_1.GetBytes(input);out1.Write(bytes);}" }, { "index": 8596, "before": "public void append(final BytesRef bytes) {int bytesLeft = bytes.length;int offset = bytes.offset;while (bytesLeft > 0) {int bufferLeft = BYTE_BLOCK_SIZE - byteUpto;if (bytesLeft < bufferLeft) {System.arraycopy(bytes.bytes, offset, buffer, byteUpto, bytesLeft);byteUpto += bytesLeft;break;} else {if (bufferLeft > 0) {System.arraycopy(bytes.bytes, offset, buffer, byteUpto, bufferLeft);}nextBuffer();bytesLeft -= bufferLeft;offset += bufferLeft;}}}", "after": "public void Append(BytesRef bytes){var length = bytes.Length;if (length == 0){return;}int offset = bytes.Offset;int overflow = (length + ByteUpto) - BYTE_BLOCK_SIZE;do{if (overflow <= 0){Array.Copy(bytes.Bytes, offset, buffer, ByteUpto, length);ByteUpto += length;break;}else{int bytesToCopy = length - overflow;if (bytesToCopy > 0){Array.Copy(bytes.Bytes, offset, buffer, ByteUpto, bytesToCopy);offset += bytesToCopy;length -= bytesToCopy;}NextBuffer();overflow = overflow - BYTE_BLOCK_SIZE;}} while (true);}" }, { "index": 8597, "before": "public GetBundlesResult getBundles(GetBundlesRequest request) {request = beforeClientExecution(request);return executeGetBundles(request);}", "after": "public virtual GetBundlesResponse GetBundles(GetBundlesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBundlesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBundlesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8598, "before": "public StopAssessmentRunResult stopAssessmentRun(StopAssessmentRunRequest request) {request = beforeClientExecution(request);return executeStopAssessmentRun(request);}", "after": "public virtual StopAssessmentRunResponse StopAssessmentRun(StopAssessmentRunRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopAssessmentRunRequestMarshaller.Instance;options.ResponseUnmarshaller = StopAssessmentRunResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8599, "before": "public CreateFolderResult createFolder(CreateFolderRequest request) {request = beforeClientExecution(request);return executeCreateFolder(request);}", "after": "public virtual CreateFolderResponse CreateFolder(CreateFolderRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFolderRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFolderResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8600, "before": "public ChangeResourceRecordSetsRequest(String hostedZoneId, ChangeBatch changeBatch) {setHostedZoneId(hostedZoneId);setChangeBatch(changeBatch);}", "after": "public ChangeResourceRecordSetsRequest(string hostedZoneId, ChangeBatch changeBatch){_hostedZoneId = hostedZoneId;_changeBatch = changeBatch;}" }, { "index": 8601, "before": "public CreateDeploymentStrategyResult createDeploymentStrategy(CreateDeploymentStrategyRequest request) {request = beforeClientExecution(request);return executeCreateDeploymentStrategy(request);}", "after": "public virtual CreateDeploymentStrategyResponse CreateDeploymentStrategy(CreateDeploymentStrategyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDeploymentStrategyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDeploymentStrategyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8602, "before": "public DeleteCacheClusterRequest(String cacheClusterId) {setCacheClusterId(cacheClusterId);}", "after": "public DeleteCacheClusterRequest(string cacheClusterId){_cacheClusterId = cacheClusterId;}" }, { "index": 8603, "before": "public final ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {switch (args.length) {case 2:return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1]);case 3:return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2]);}return ErrorEval.VALUE_INVALID;}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){switch (args.Length){case 2:return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1]);case 3:return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2]);}return ErrorEval.VALUE_INVALID;}" }, { "index": 8604, "before": "public GroupingSearch setAllGroupHeads(boolean allGroupHeads) {this.allGroupHeads = allGroupHeads;return this;}", "after": "public virtual GroupingSearch SetAllGroupHeads(bool allGroupHeads){this.allGroupHeads = allGroupHeads;return this;}" }, { "index": 8605, "before": "public String dequote(String in) {final byte[] b = Constants.encode(in);return dequote(b, 0, b.length);}", "after": "public virtual string Dequote(string @in){byte[] b = Constants.Encode(@in);return Dequote(b, 0, b.Length);}" }, { "index": 8606, "before": "public boolean isEmpty() {return entrySet().isEmpty();}", "after": "public override bool IsEmpty(){return EntrySet().IsEmpty();}" }, { "index": 8607, "before": "public Query makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf) {return SrndBooleanQuery.makeBooleanQuery( makeLuceneSubQueriesField(fieldName, qf), BooleanClause.Occur.MUST);}", "after": "public override Search.Query MakeLuceneQueryFieldNoBoost(string fieldName, BasicQueryFactory qf){return SrndBooleanQuery.MakeBooleanQuery( MakeLuceneSubQueriesField(fieldName, qf), Occur.MUST);}" }, { "index": 8608, "before": "public long getSize() {return data.length;}", "after": "public override long GetSize(){return data.Length;}" }, { "index": 8609, "before": "public CreatePhoneNumberOrderResult createPhoneNumberOrder(CreatePhoneNumberOrderRequest request) {request = beforeClientExecution(request);return executeCreatePhoneNumberOrder(request);}", "after": "public virtual CreatePhoneNumberOrderResponse CreatePhoneNumberOrder(CreatePhoneNumberOrderRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePhoneNumberOrderRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePhoneNumberOrderResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8610, "before": "public ShortBuffer get(short[] dst, int dstOffset, int shortCount) {byteBuffer.limit(limit * SizeOf.SHORT);byteBuffer.position(position * SizeOf.SHORT);if (byteBuffer instanceof DirectByteBuffer) {((DirectByteBuffer) byteBuffer).get(dst, dstOffset, shortCount);} else {((HeapByteBuffer) byteBuffer).get(dst, dstOffset, shortCount);}this.position += shortCount;return this;}", "after": "public override java.nio.ShortBuffer get(short[] dst, int dstOffset, int shortCount){byteBuffer.limit(_limit * libcore.io.SizeOf.SHORT);byteBuffer.position(_position * libcore.io.SizeOf.SHORT);if (byteBuffer is java.nio.DirectByteBuffer){((java.nio.DirectByteBuffer)byteBuffer).get(dst, dstOffset, shortCount);}else{((java.nio.HeapByteBuffer)byteBuffer).get(dst, dstOffset, shortCount);}this._position += shortCount;return this;}" }, { "index": 8611, "before": "public DetectModerationLabelsResult detectModerationLabels(DetectModerationLabelsRequest request) {request = beforeClientExecution(request);return executeDetectModerationLabels(request);}", "after": "public virtual DetectModerationLabelsResponse DetectModerationLabels(DetectModerationLabelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectModerationLabelsRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectModerationLabelsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8612, "before": "public UncalcedRecord(RecordInputStream in) {_reserved = in.readShort(); }", "after": "public UncalcedRecord(RecordInputStream in1){_reserved = in1.ReadShort();}" }, { "index": 8613, "before": "public String handlePart(Matcher m, String part, CellFormatType type,StringBuffer desc) {int pos = desc.length();char firstCh = part.charAt(0);switch (firstCh) {case '[':if (part.length() < 3)break;if (topmost != null)throw new IllegalArgumentException(\"Duplicate '[' times in format\");part = part.toLowerCase(Locale.ROOT);int specLen = part.length() - 2;topmost = assignSpec(part.charAt(1), pos, specLen);return part.substring(1, 1 + specLen);case 'h':case 'm':case 's':case '0':part = part.toLowerCase(Locale.ROOT);assignSpec(part.charAt(0), pos, part.length());return part;case '\\n':return \"%n\";case '\\\"':part = part.substring(1, part.length() - 1);break;case '\\\\':part = part.substring(1);break;case '*':if (part.length() > 1)part = CellFormatPart.expandChar(part);break;case '_':return null;}return PERCENTS.matcher(part).replaceAll(\"%%\");}", "after": "public String HandlePart(Match m, String part, CellFormatType type,StringBuilder desc){int pos = desc.Length;char firstCh = part[0];switch (firstCh){case '[':if (part.Length < 3)break;if (_formatter.topmost != null)throw new ArgumentException(\"Duplicate '[' times in format\");part = part.ToLower();int specLen = part.Length - 2;_formatter.topmost = _formatter.AssignSpec(part[1], pos, specLen);return part.Substring(1, specLen);case 'h':case 'm':case 's':case '0':part = part.ToLower();_formatter.AssignSpec(part[0], pos, part.Length);return part;case '\\n':return \"%n\";case '\\\"':part = part.Substring(1, part.Length - 2);break;case '\\\\':part = part.Substring(1);break;case '*':if (part.Length > 1)part = CellFormatPart.ExpandChar(part);break;case '_':return null;}return part;}" }, { "index": 8614, "before": "public long ramBytesUsed() {long sizeInBytes = ((delegateFieldsProducer!=null) ? delegateFieldsProducer.ramBytesUsed() : 0);for(Map.Entry entry: bloomsByFieldName.entrySet()) {sizeInBytes += entry.getKey().length() * Character.BYTES;sizeInBytes += entry.getValue().ramBytesUsed();}return sizeInBytes;}", "after": "public override long RamBytesUsed(){var sizeInBytes = ((_delegateFieldsProducer != null) ? _delegateFieldsProducer.RamBytesUsed() : 0);foreach (var entry in _bloomsByFieldName){sizeInBytes += entry.Key.Length * RamUsageEstimator.NUM_BYTES_CHAR;sizeInBytes += entry.Value.RamBytesUsed();}return sizeInBytes;}" }, { "index": 8615, "before": "public CreateImageRequest(String instanceId, String name) {setInstanceId(instanceId);setName(name);}", "after": "public CreateImageRequest(string instanceId, string name){_instanceId = instanceId;_name = name;}" }, { "index": 8616, "before": "public SendDiagnosticInterruptResult sendDiagnosticInterrupt(SendDiagnosticInterruptRequest request) {request = beforeClientExecution(request);return executeSendDiagnosticInterrupt(request);}", "after": "public virtual SendDiagnosticInterruptResponse SendDiagnosticInterrupt(SendDiagnosticInterruptRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendDiagnosticInterruptRequestMarshaller.Instance;options.ResponseUnmarshaller = SendDiagnosticInterruptResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8617, "before": "public int lastIndexOf(Object object) {Object[] snapshot = elements;return lastIndexOf(object, snapshot, 0, snapshot.length);}", "after": "public virtual int lastIndexOf(object @object){object[] snapshot = elements;return lastIndexOf(@object, snapshot, 0, snapshot.Length);}" }, { "index": 8618, "before": "public AbortDocumentVersionUploadResult abortDocumentVersionUpload(AbortDocumentVersionUploadRequest request) {request = beforeClientExecution(request);return executeAbortDocumentVersionUpload(request);}", "after": "public virtual AbortDocumentVersionUploadResponse AbortDocumentVersionUpload(AbortDocumentVersionUploadRequest request){var options = new InvokeOptions();options.RequestMarshaller = AbortDocumentVersionUploadRequestMarshaller.Instance;options.ResponseUnmarshaller = AbortDocumentVersionUploadResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8619, "before": "public PaneInformation(short x, short y, short top, short left, byte active, boolean frozen) {this.x = x;this.y = y;this.topRow = top;this.leftColumn = left;this.activePane = active;this.frozen = frozen;}", "after": "public PaneInformation(short x, short y, short top, short left, byte active, bool frozen){this.x = x;this.y = y;this.topRow = top;this.leftColumn = left;this.activePane = active;this.frozen = frozen;}" }, { "index": 8620, "before": "public DescribeScalingProcessTypesResult describeScalingProcessTypes(DescribeScalingProcessTypesRequest request) {request = beforeClientExecution(request);return executeDescribeScalingProcessTypes(request);}", "after": "public virtual DescribeScalingProcessTypesResponse DescribeScalingProcessTypes(DescribeScalingProcessTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScalingProcessTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScalingProcessTypesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8621, "before": "public static boolean endsWith(char s[], int len, char suffix[]) {final int suffixLen = suffix.length;if (suffixLen > len)return false;for (int i = suffixLen - 1; i >= 0; i--)if (s[len -(suffixLen - i)] != suffix[i])return false;return true;}", "after": "public static bool EndsWith(char[] s, int len, char[] suffix){int suffixLen = suffix.Length;if (suffixLen > len){return false;}for (int i = suffixLen - 1; i >= 0; i--){if (s[len - (suffixLen - i)] != suffix[i]){return false;}}return true;}" }, { "index": 8622, "before": "public void warnIfOpen() {if (allocationSite == null || !ENABLED) {return;}String message =(\"A resource was acquired at attached stack trace but never released. \"+ \"See java.io.Closeable for information on avoiding resource leaks.\");REPORTER.report(message, allocationSite);}", "after": "public void warnIfOpen(){if (allocationSite == null || !ENABLED){return;}string message = (\"A resource was acquired at attached stack trace but never released. \"+ \"See java.io.Closeable for information on avoiding resource leaks.\");REPORTER.report(message, allocationSite);}" }, { "index": 8623, "before": "public GetImageScanRequest() {super(\"cr\", \"2016-06-07\", \"GetImageScan\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scan\");setMethod(MethodType.GET);}", "after": "public GetImageScanRequest(): base(\"cr\", \"2016-06-07\", \"GetImageScan\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scan\";Method = MethodType.GET;}" }, { "index": 8624, "before": "public ListSkillsStoreCategoriesResult listSkillsStoreCategories(ListSkillsStoreCategoriesRequest request) {request = beforeClientExecution(request);return executeListSkillsStoreCategories(request);}", "after": "public virtual ListSkillsStoreCategoriesResponse ListSkillsStoreCategories(ListSkillsStoreCategoriesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSkillsStoreCategoriesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSkillsStoreCategoriesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8625, "before": "public int getHeight() {return mImage.getHeight();}", "after": "public virtual int getHeight(){return mBitmap.getHeight();}" }, { "index": 8626, "before": "public void applyFont(Font font) {applyFont(0, _string.getCharCount(), font);}", "after": "public void ApplyFont(short fontIndex){ApplyFont(0, _string.CharCount, fontIndex);}" }, { "index": 8627, "before": "public DetectEntitiesResult detectEntities(DetectEntitiesRequest request) {request = beforeClientExecution(request);return executeDetectEntities(request);}", "after": "public virtual DetectEntitiesResponse DetectEntities(DetectEntitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectEntitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectEntitiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8628, "before": "public void copyRawTo(ByteBuffer w) {w.putInt(w1);w.putInt(w2);w.putInt(w3);w.putInt(w4);w.putInt(w5);}", "after": "public virtual void CopyRawTo(ByteBuffer w){w.PutInt(w1);w.PutInt(w2);w.PutInt(w3);w.PutInt(w4);w.PutInt(w5);}" }, { "index": 8629, "before": "public final char[] array() {return protectedArray();}", "after": "public sealed override object array(){return protectedArray();}" }, { "index": 8630, "before": "public void seekExact(long ord) throws IOException {if (indexEnum == null) {throw new IllegalStateException(\"terms index was not loaded\");}assert ord < numTerms;in.seek(indexEnum.seek(ord));boolean result = nextBlock();assert result;indexIsCurrent = true;didIndexNext = false;seekPending = false;state.ord = indexEnum.ord()-1;assert state.ord >= -1: \"ord=\" + state.ord;term.copyBytes(indexEnum.term());int left = (int) (ord - state.ord);while(left > 0) {final BytesRef term = _next();assert term != null;left--;assert indexIsCurrent;}}", "after": "public override void SeekExact(long ord){if (indexEnum == null){throw new InvalidOperationException(\"terms index was not loaded\");}Debug.Assert(ord < outerInstance.numTerms);input.Seek(indexEnum.Seek(ord));bool result = NextBlock();Debug.Assert(result);indexIsCurrent = true;didIndexNext = false;blocksSinceSeek = 0;seekPending = false;state.Ord = indexEnum.Ord - 1;Debug.Assert(state.Ord >= -1, \"Ord=\" + state.Ord);term.CopyBytes(indexEnum.Term);int left = (int)(ord - state.Ord);while (left > 0){BytesRef term = _next();Debug.Assert(term != null);left--;Debug.Assert(indexIsCurrent);}}" }, { "index": 8631, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append('[');final int end = offset + length;for(int i=offset;i offset) {sb.append(' ');}sb.append(Integer.toHexString(bytes[i]&0xff));}sb.append(']');return sb.toString();}", "after": "public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append('[');int end = Offset + Length;for (int i = Offset; i < end; i++){if (i > Offset){sb.Append(' ');}sb.Append((bytes[i] & 0xff).ToString(\"x\"));}sb.Append(']');return sb.ToString();}" }, { "index": 8632, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\" [FEATURE PROTECTION]\\n\");buffer.append(\" Self Relative = \" + fSD);buffer.append(\" Password Verifier = \" + passwordVerifier);buffer.append(\" Title = \" + title);buffer.append(\" Security Descriptor Size = \" + securityDescriptor.length);buffer.append(\" [/FEATURE PROTECTION]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\" [FEATURE PROTECTION]\\n\");buffer.Append(\" Self Relative = \" + fSD);buffer.Append(\" Password Verifier = \" + passwordVerifier);buffer.Append(\" Title = \" + title);buffer.Append(\" Security Descriptor Size = \" + securityDescriptor.Length);buffer.Append(\" [/FEATURE PROTECTION]\\n\");return buffer.ToString();}" }, { "index": 8633, "before": "public void setCRC(int crc32) {crc = crc32;}", "after": "public virtual void SetCRC(int crc32){crc = crc32;}" }, { "index": 8634, "before": "public DoubleRange(String label, double minIn, boolean minInclusive, double maxIn, boolean maxInclusive) {super(label);if (Double.isNaN(minIn)) {throw new IllegalArgumentException(\"min cannot be NaN\");}if (!minInclusive) {minIn = Math.nextUp(minIn);}if (Double.isNaN(maxIn)) {throw new IllegalArgumentException(\"max cannot be NaN\");}if (!maxInclusive) {maxIn = Math.nextAfter(maxIn, Double.NEGATIVE_INFINITY);}if (minIn > maxIn) {failNoMatch();}this.min = minIn;this.max = maxIn;}", "after": "public DoubleRange(string label, double minIn, bool minInclusive, double maxIn, bool maxInclusive): base(label){this.Min = minIn;this.Max = maxIn;this.MinInclusive = minInclusive;this.MaxInclusive = maxInclusive;if (double.IsNaN(Min)){throw new System.ArgumentException(\"min cannot be NaN\");}if (!minInclusive){minIn += EPSILON;}if (double.IsNaN(Max)){throw new System.ArgumentException(\"max cannot be NaN\");}if (!maxInclusive){maxIn = maxIn -= EPSILON;}if (minIn > maxIn){FailNoMatch();}this.minIncl = minIn;this.maxIncl = maxIn;}" }, { "index": 8635, "before": "public int getBATEntriesPerBlock() {return bigBlockSize / LittleEndianConsts.INT_SIZE;}", "after": "public int GetBATEntriesPerBlock(){return bigBlockSize / LittleEndianConsts.INT_SIZE;}" }, { "index": 8636, "before": "public CreatePublishingDestinationResult createPublishingDestination(CreatePublishingDestinationRequest request) {request = beforeClientExecution(request);return executeCreatePublishingDestination(request);}", "after": "public virtual CreatePublishingDestinationResponse CreatePublishingDestination(CreatePublishingDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePublishingDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePublishingDestinationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8637, "before": "public void skipBytes(long count) {pos += count;}", "after": "public override void SkipBytes(long count){pos += (int)count;}" }, { "index": 8638, "before": "public String toString() {return \"jarowinkler(\" + threshold + \")\";}", "after": "public override string ToString(){return \"jarowinkler(\" + threshold + \")\";}" }, { "index": 8639, "before": "public DeleteInvitationsResult deleteInvitations(DeleteInvitationsRequest request) {request = beforeClientExecution(request);return executeDeleteInvitations(request);}", "after": "public virtual DeleteInvitationsResponse DeleteInvitations(DeleteInvitationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteInvitationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteInvitationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8640, "before": "public DelimitedPayloadTokenFilterFactory(Map args) {super(args);encoderClass = require(args, ENCODER_ATTR);delimiter = getChar(args, DELIMITER_ATTR, '|');if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public DelimitedPayloadTokenFilterFactory(IDictionary args): base(args){encoderClass = Require(args, ENCODER_ATTR);delimiter = GetChar(args, DELIMITER_ATTR, '|');if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 8641, "before": "public ListSmartHomeAppliancesResult listSmartHomeAppliances(ListSmartHomeAppliancesRequest request) {request = beforeClientExecution(request);return executeListSmartHomeAppliances(request);}", "after": "public virtual ListSmartHomeAppliancesResponse ListSmartHomeAppliances(ListSmartHomeAppliancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSmartHomeAppliancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSmartHomeAppliancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8642, "before": "public void dispatch(ConfigChangedListener listener) {listener.onConfigChanged(this);}", "after": "public override void Dispatch(ConfigChangedListener listener){listener.OnConfigChanged(this);}" }, { "index": 8643, "before": "public File[] listFiles() {return filenamesToFiles(list());}", "after": "public java.io.File[] listFiles(){return filenamesToFiles(list());}" }, { "index": 8644, "before": "public DedicatedCapacityInner getByResourceGroup(String resourceGroupName, String dedicatedCapacityName) {return getByResourceGroupWithServiceResponseAsync(resourceGroupName, dedicatedCapacityName).toBlocking().single().body();}", "after": "public async Task> GetDetailsWithHttpMessagesAsync(string resourceGroupName, string dedicatedCapacityName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)){return await innerCapacityOperations.GetDetailsWithHttpMessagesAsync(resourceGroupName, dedicatedCapacityName, customHeaders, cancellationToken).ConfigureAwait(false);}" }, { "index": 8645, "before": "public void seekExact(long ord) {assert ord < info.terms.size();termUpto = (int) ord;info.terms.get(info.sortedTerms[termUpto], br);}", "after": "public override void SeekExact(long ord){Debug.Assert(ord < info.terms.Count);termUpto = (int)ord;}" }, { "index": 8646, "before": "public CreateTrialComponentResult createTrialComponent(CreateTrialComponentRequest request) {request = beforeClientExecution(request);return executeCreateTrialComponent(request);}", "after": "public virtual CreateTrialComponentResponse CreateTrialComponent(CreateTrialComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTrialComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTrialComponentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8647, "before": "public UpdateResourceResult updateResource(UpdateResourceRequest request) {request = beforeClientExecution(request);return executeUpdateResource(request);}", "after": "public virtual UpdateResourceResponse UpdateResource(UpdateResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8648, "before": "public long length() {try {return channel.size();} catch (IOException ioe) {throw new RuntimeException(\"IOException during length(): \" + this, ioe);}}", "after": "public long length(){try{return channel.size();}catch (IOException ioe){throw new Exception(\"IOException during length(): \" + this, ioe);}}" }, { "index": 8649, "before": "public char setIndex(int position) {if (position < getBeginIndex() || position > getEndIndex())throw new IllegalArgumentException(\"Illegal Position: \" + position);index = start + position;return current();}", "after": "public override char SetIndex(int position){if (position < BeginIndex || position > EndIndex){throw new ArgumentException(\"Illegal Position: \" + position);}index = start + position;return Current;}" }, { "index": 8650, "before": "public static boolean isContainer(short options, short recordId){if(recordId >= EscherContainerRecord.DGG_CONTAINER && recordId<= EscherContainerRecord.SOLVER_CONTAINER){return true;} else {if (recordId == EscherTextboxRecord.RECORD_ID) {return false;} else {return ( options & (short) 0x000F ) == (short) 0x000F;}}}", "after": "public static bool IsContainer(short options, short recordId){if (recordId >= EscherContainerRecord.DGG_CONTAINER && recordId<= EscherContainerRecord.SOLVER_CONTAINER){return true;}else{if (recordId == EscherTextboxRecord.RECORD_ID){return false;}else{return (options & (short)0x000F) == (short)0x000F;}}}" }, { "index": 8651, "before": "public boolean exists(String fileName) {assert locked();if (!refCounts.containsKey(fileName)) {return false;} else {return getRefCount(fileName).count > 0;}}", "after": "public bool Exists(string fileName){Debug.Assert(IsLocked);return refCounts.TryGetValue(fileName, out RefCount value) ? value.count > 0 : false;}" }, { "index": 8652, "before": "public STSAssumeRoleSessionCredentialsProvider withSTSClient(IAcsClient client) {this.stsClient = client;return this;}", "after": "public void WithSTSClient(IAcsClient client){stsClient = client;}" }, { "index": 8653, "before": "public AcceptMatchResult acceptMatch(AcceptMatchRequest request) {request = beforeClientExecution(request);return executeAcceptMatch(request);}", "after": "public virtual AcceptMatchResponse AcceptMatch(AcceptMatchRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptMatchRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptMatchResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8654, "before": "public static RevFilter create(int skip) {if (skip < 0)throw new IllegalArgumentException(JGitText.get().skipMustBeNonNegative);return new SkipRevFilter(skip);}", "after": "public static RevFilter Create(int skip){if (skip < 0){throw new ArgumentException(JGitText.Get().skipMustBeNonNegative);}return new NGit.Revwalk.Filter.SkipRevFilter(skip);}" }, { "index": 8655, "before": "public GetHITResult getHIT(GetHITRequest request) {request = beforeClientExecution(request);return executeGetHIT(request);}", "after": "public virtual GetHITResponse GetHIT(GetHITRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHITRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHITResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8656, "before": "public StopStreamProcessorResult stopStreamProcessor(StopStreamProcessorRequest request) {request = beforeClientExecution(request);return executeStopStreamProcessor(request);}", "after": "public virtual StopStreamProcessorResponse StopStreamProcessor(StopStreamProcessorRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopStreamProcessorRequestMarshaller.Instance;options.ResponseUnmarshaller = StopStreamProcessorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8657, "before": "public static AttrPtg createIf(int dist) {return new AttrPtg(optiIf.set(0), dist, null, -1);}", "after": "public static AttrPtg CreateIf(int dist){return new AttrPtg(optiIf.Set(0), dist, null, -1);}" }, { "index": 8658, "before": "public DeleteIAMPolicyAssignmentResult deleteIAMPolicyAssignment(DeleteIAMPolicyAssignmentRequest request) {request = beforeClientExecution(request);return executeDeleteIAMPolicyAssignment(request);}", "after": "public virtual DeleteIAMPolicyAssignmentResponse DeleteIAMPolicyAssignment(DeleteIAMPolicyAssignmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIAMPolicyAssignmentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIAMPolicyAssignmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8659, "before": "public UpdateCampaignResult updateCampaign(UpdateCampaignRequest request) {request = beforeClientExecution(request);return executeUpdateCampaign(request);}", "after": "public virtual UpdateCampaignResponse UpdateCampaign(UpdateCampaignRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateCampaignRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateCampaignResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8660, "before": "public LexerActionExecutor fixOffsetBeforeMatch(int offset) {LexerAction[] updatedLexerActions = null;for (int i = 0; i < lexerActions.length; i++) {if (lexerActions[i].isPositionDependent() && !(lexerActions[i] instanceof LexerIndexedCustomAction)) {if (updatedLexerActions == null) {updatedLexerActions = lexerActions.clone();}updatedLexerActions[i] = new LexerIndexedCustomAction(offset, lexerActions[i]);}}if (updatedLexerActions == null) {return this;}return new LexerActionExecutor(updatedLexerActions);}", "after": "public virtual Antlr4.Runtime.Atn.LexerActionExecutor FixOffsetBeforeMatch(int offset){ILexerAction[] updatedLexerActions = null;for (int i = 0; i < lexerActions.Length; i++){if (lexerActions[i].IsPositionDependent && !(lexerActions[i] is LexerIndexedCustomAction)){if (updatedLexerActions == null){updatedLexerActions = (ILexerAction[])lexerActions.Clone();}updatedLexerActions[i] = new LexerIndexedCustomAction(offset, lexerActions[i]);}}if (updatedLexerActions == null){return this;}return new Antlr4.Runtime.Atn.LexerActionExecutor(updatedLexerActions);}" }, { "index": 8661, "before": "public void protectSheet(String password, boolean shouldProtectObjects,boolean shouldProtectScenarios) {if (password == null) {_passwordRecord = null;_protectRecord = null;_objectProtectRecord = null;_scenarioProtectRecord = null;return;}ProtectRecord prec = getProtect();PasswordRecord pass = getPassword();prec.setProtect(true);pass.setPassword((short)CryptoFunctions.createXorVerifier1(password));if (_objectProtectRecord == null && shouldProtectObjects) {ObjectProtectRecord rec = createObjectProtect();rec.setProtect(true);_objectProtectRecord = rec;}if (_scenarioProtectRecord == null && shouldProtectScenarios) {ScenarioProtectRecord srec = createScenarioProtect();srec.setProtect(true);_scenarioProtectRecord = srec;}}", "after": "public void ProtectSheet(String password, bool shouldProtectObjects,bool shouldProtectScenarios){if (password == null){_passwordRecord = null;_protectRecord = null;_objectProtectRecord = null;_scenarioProtectRecord = null;return;}ProtectRecord prec = this.Protect;PasswordRecord pass = this.Password;prec.Protect = true;pass.Password = (PasswordRecord.HashPassword(password));if (_objectProtectRecord == null && shouldProtectObjects){ObjectProtectRecord rec = CreateObjectProtect();rec.Protect = (true);_objectProtectRecord = rec;}if (_scenarioProtectRecord == null && shouldProtectScenarios){ScenarioProtectRecord srec = CreateScenarioProtect();srec.Protect = (true);_scenarioProtectRecord = srec;}}" }, { "index": 8662, "before": "public PackedDataOutput(DataOutput out) {this.out = out;current = 0;remainingBits = 8;}", "after": "public PackedDataOutput(DataOutput @out){this.@out = @out;current = 0;remainingBits = 8;}" }, { "index": 8663, "before": "public CFRuleBase getRule(int idx) {checkRuleIndex(idx);return rules.get(idx);}", "after": "public CFRuleRecord GetRule(int idx){CheckRuleIndex(idx);return rules[idx];}" }, { "index": 8664, "before": "public FieldCacheSource(String field) {this.field=field;}", "after": "public FieldCacheSource(string field){this.m_field = field;}" }, { "index": 8665, "before": "public IndonesianStemFilterFactory(Map args) {super(args);stemDerivational = getBoolean(args, \"stemDerivational\", true);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public IndonesianStemFilterFactory(IDictionary args): base(args){stemDerivational = GetBoolean(args, \"stemDerivational\", true);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 8666, "before": "public boolean isOffsetOverlap( WeightedPhraseInfo other ){int so = getStartOffset();int eo = getEndOffset();int oso = other.getStartOffset();int oeo = other.getEndOffset();if( so <= oso && oso < eo ) return true;if( so < oeo && oeo <= eo ) return true;if( oso <= so && so < oeo ) return true;if( oso < eo && eo <= oeo ) return true;return false;}", "after": "public virtual bool IsOffsetOverlap(WeightedPhraseInfo other){int so = StartOffset;int eo = EndOffset;int oso = other.StartOffset;int oeo = other.EndOffset;if (so <= oso && oso < eo) return true;if (so < oeo && oeo <= eo) return true;if (oso <= so && so < oeo) return true;if (oso < eo && eo <= oeo) return true;return false;}" }, { "index": 8667, "before": "public MergeAlgorithm(DiffAlgorithm diff) {this.diffAlg = diff;}", "after": "public MergeAlgorithm(DiffAlgorithm diff){this.diffAlg = diff;}" }, { "index": 8668, "before": "public void serialize(LittleEndianOutput out) {out.writeInt(field_1_xAxisUpperLeft);out.writeInt(field_2_yAxisUpperLeft);out.writeInt(field_3_xSize);out.writeInt(field_4_ySize);out.writeByte(field_5_type);out.writeByte(field_6_spacing);out.writeShort(field_7_options);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(field_1_xAxisUpperLeft);out1.WriteInt(field_2_yAxisUpperLeft);out1.WriteInt(field_3_xSize);out1.WriteInt(field_4_ySize);out1.WriteByte(field_5_type);out1.WriteByte(field_6_spacing);out1.WriteShort(field_7_options);}" }, { "index": 8669, "before": "public long get(int index) {final int o = index / 21;final int b = index % 21;final int shift = b * 3;return (blocks[o] >>> shift) & 7L;}", "after": "public override long Get(int index){int o = index / 21;int b = index % 21;int shift = b * 3;return ((long)((ulong)blocks[o] >> shift)) & 7L;}" }, { "index": 8670, "before": "public CodingErrorAction unmappableCharacterAction() {return unmappableCharacterAction;}", "after": "public virtual java.nio.charset.CodingErrorAction unmappableCharacterAction(){return _unmappableCharacterAction;}" }, { "index": 8671, "before": "public Set getSet(Map args, String name) {String s = args.remove(name);if (s == null) {return null;} else {Set set = null;Matcher matcher = ITEM_PATTERN.matcher(s);if (matcher.find()) {set = new HashSet<>();set.add(matcher.group(0));while (matcher.find()) {set.add(matcher.group(0));}}return set;}}", "after": "public virtual ISet GetSet(IDictionary args, string name){string s;if (args.TryGetValue(name, out s)){args.Remove(name);ISet set = null;Match matcher = ITEM_PATTERN.Match(s);if (matcher.Success){set = new JCG.HashSet{matcher.Groups[0].Value};matcher = matcher.NextMatch();while (matcher.Success){set.Add(matcher.Groups[0].Value);matcher = matcher.NextMatch();}}return set;}return null;}" }, { "index": 8672, "before": "public AbstractTreeIterator createSubtreeIterator(ObjectReader reader)throws IncorrectObjectTypeException, IOException {if (currentSubtree == null)throw new IncorrectObjectTypeException(getEntryObjectId(),Constants.TYPE_TREE);return new DirCacheIterator(this, currentSubtree);}", "after": "public override AbstractTreeIterator CreateSubtreeIterator(ObjectReader reader){if (currentSubtree == null){throw new IncorrectObjectTypeException(EntryObjectId, Constants.TYPE_TREE);}return new NGit.Dircache.DirCacheIterator(this, currentSubtree);}" }, { "index": 8673, "before": "public Explanation[] getDetails() {return details.toArray(new Explanation[0]);}", "after": "public virtual Explanation[] GetDetails(){if (details == null){return null;}return details.ToArray();}" }, { "index": 8674, "before": "public String toString() {if ( text==null ) {return \"\";}return \"\";}", "after": "public override string ToString(){string opName = GetType().FullName;int index = opName.IndexOf('$');opName = Sharpen.Runtime.Substring(opName, index + 1, opName.Length);return \"<\" + opName + \"@\" + tokens.Get(this.index) + \":\\\"\" + text + \"\\\">\";}" }, { "index": 8675, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append( \"[TopMargin]\\n\" );buffer.append( \" .margin = \" ).append( \" (\" ).append( getMargin() ).append( \" )\\n\" );buffer.append( \"[/TopMargin]\\n\" );return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[TopMargin]\\n\");buffer.Append(\" .margin = \").Append(\" (\").Append(Margin).Append(\" )\\n\");buffer.Append(\"[/TopMargin]\\n\");return buffer.ToString();}" }, { "index": 8676, "before": "static public double fv(double r, int nper, double c, double pv) {return fv(r, nper, c, pv, 0);}", "after": "static public double FV(double r, int nper, double c, double pv){return FV(r, nper, c, pv, 0);}" }, { "index": 8677, "before": "@Override public boolean remove(Object object) {Object[] a = array;int s = size;if (object != null) {for (int i = 0; i < s; i++) {if (object.equals(a[i])) {System.arraycopy(a, i + 1, a, i, --s - i);a[s] = null; size = s;modCount++;return true;}}} else {for (int i = 0; i < s; i++) {if (a[i] == null) {System.arraycopy(a, i + 1, a, i, --s - i);a[s] = null; size = s;modCount++;return true;}}}return false;}", "after": "public override bool remove(object @object){object[] a = array;int s = _size;if (@object != null){{for (int i = 0; i < s; i++){if (@object.Equals(a[i])){System.Array.Copy(a, i + 1, a, i, --s - i);a[s] = null;_size = s;modCount++;return true;}}}}else{{for (int i = 0; i < s; i++){if (a[i] == null){System.Array.Copy(a, i + 1, a, i, --s - i);a[s] = null;_size = s;modCount++;return true;}}}}return false;}" }, { "index": 8678, "before": "public MergeCellsRecord(CellRangeAddress[] regions, int startIndex, int numberOfRegions) {_regions = regions;_startIndex = startIndex;_numberOfRegions = numberOfRegions;}", "after": "public MergeCellsRecord(CellRangeAddress[] regions, int startIndex, int numberOfRegions){_regions = regions;_startIndex = startIndex;_numberOfRegions = numberOfRegions;}" }, { "index": 8679, "before": "public Cluster resizeCluster(ResizeClusterRequest request) {request = beforeClientExecution(request);return executeResizeCluster(request);}", "after": "public virtual ResizeClusterResponse ResizeCluster(ResizeClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResizeClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = ResizeClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8680, "before": "public int getParent(int ordinal) throws IOException {ensureOpen();Objects.checkIndex(ordinal, nextID);int[] parents = getTaxoArrays().parents();assert ordinal < parents.length : \"requested ordinal (\" + ordinal + \"); parents.length (\" + parents.length + \") !\";return parents[ordinal];}", "after": "public virtual int GetParent(int ordinal){EnsureOpen();if (ordinal >= nextID){throw new System.IndexOutOfRangeException(\"requested ordinal is bigger than the largest ordinal in the taxonomy\");}int[] parents = GetTaxoArrays().Parents;Debug.Assert(ordinal < parents.Length, \"requested ordinal (\" + ordinal + \"); parents.length (\" + parents.Length + \") !\");return parents[ordinal];}" }, { "index": 8681, "before": "@Override public Iterator> iterator() {final Iterator> backingEntries= backingMap.entrySet().iterator();return new Iterator>() {Map.Entry toRemove;", "after": "public override java.util.Iterator> iterator(){return new java.util.Hashtable.EntryIterator(this._enclosing);}" }, { "index": 8682, "before": "public int alloc(int size) {int index = n;int len = array.length;if (n + size >= len) {char[] aux = new char[len + blockSize];System.arraycopy(array, 0, aux, 0, len);array = aux;}n += size;return index;}", "after": "public virtual int Alloc(int size){int index = n;int len = array.Length;if (n + size >= len){char[] aux = new char[len + blockSize];System.Array.Copy(array, 0, aux, 0, len);array = aux;}n += size;return index;}" }, { "index": 8683, "before": "public static String getInflectionTypeTranslation(String s) {return inflTypeTranslations.get(s);}", "after": "public static string GetInflectionTypeTranslation(string s){string result;inflTypeTranslations.TryGetValue(s, out result);return result;}" }, { "index": 8684, "before": "public Note call() throws GitAPIException {checkCallable();try (RevWalk walk = new RevWalk(repo);ObjectInserter inserter = repo.newObjectInserter()) {NoteMap map = NoteMap.newEmptyMap();RevCommit notesCommit = null;Ref ref = repo.exactRef(notesRef);if (ref != null) {notesCommit = walk.parseCommit(ref.getObjectId());map = NoteMap.read(walk.getObjectReader(), notesCommit);}map.set(id, null, inserter);AddNoteCommand.commitNoteMap(repo, notesRef, walk, map, notesCommit,inserter,\"Notes removed by 'git notes remove'\"); return map.getNote(id);} catch (IOException e) {throw new JGitInternalException(e.getMessage(), e);}}", "after": "public override Note Call(){CheckCallable();RevWalk walk = new RevWalk(repo);ObjectInserter inserter = repo.NewObjectInserter();NoteMap map = NoteMap.NewEmptyMap();RevCommit notesCommit = null;try{Ref @ref = repo.GetRef(notesRef);if (@ref != null){notesCommit = walk.ParseCommit(@ref.GetObjectId());map = NoteMap.Read(walk.GetObjectReader(), notesCommit);}map.Set(id, null, inserter);CommitNoteMap(walk, map, notesCommit, inserter, \"Notes removed by 'git notes remove'\");return map.GetNote(id);}catch (IOException e){throw new JGitInternalException(e.Message, e);}finally{inserter.Release();walk.Release();}}" }, { "index": 8685, "before": "public String getNewPath() {return newPath;}", "after": "public virtual string GetNewPath(){return newPath;}" }, { "index": 8686, "before": "public UserSViewBegin(byte[] data) {_rawData = data;}", "after": "public UserSViewBegin(byte[] data){_rawData = data;}" }, { "index": 8687, "before": "public CreateMountTargetResult createMountTarget(CreateMountTargetRequest request) {request = beforeClientExecution(request);return executeCreateMountTarget(request);}", "after": "public virtual CreateMountTargetResponse CreateMountTarget(CreateMountTargetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateMountTargetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateMountTargetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8688, "before": "public DeleteSubnetRequest(String subnetId) {setSubnetId(subnetId);}", "after": "public DeleteSubnetRequest(string subnetId){_subnetId = subnetId;}" }, { "index": 8689, "before": "public void setTitle(String title) {this.title = title;}", "after": "public void SetTitle(String title){this.title = title;}" }, { "index": 8690, "before": "public char current() {if (offset == end) {return DONE;}return string.charAt(offset);}", "after": "public char current(){if (offset == end){return java.text.CharacterIteratorClass.DONE;}return @string[offset];}" }, { "index": 8691, "before": "public void add(long n) {if (count == entries.length)grow();entries[count++] = n;}", "after": "public virtual void Add(long n){if (count == entries.Length){Grow();}entries[count++] = n;}" }, { "index": 8692, "before": "public FloatBuffer put(int index, float c) {checkIndex(index);backingArray[offset + index] = c;return this;}", "after": "public override java.nio.FloatBuffer put(int index, float c){checkIndex(index);backingArray[offset + index] = c;return this;}" }, { "index": 8693, "before": "public ListGroupPoliciesRequest(String groupName) {setGroupName(groupName);}", "after": "public ListGroupPoliciesRequest(string groupName){_groupName = groupName;}" }, { "index": 8694, "before": "public void setDeltaSearchWindowSize(int objectCount) {if (objectCount <= 2)setDeltaCompress(false);elsedeltaSearchWindowSize = objectCount;}", "after": "public virtual void SetDeltaSearchWindowSize(int objectCount){if (objectCount <= 2){SetDeltaCompress(false);}else{deltaSearchWindowSize = objectCount;}}" }, { "index": 8695, "before": "public int nextDoc() {while (true) {if (queue.size() == 0) {doc = NO_MORE_DOCS;break;}int newDoc = queue.top().docID();if (newDoc != doc) {assert newDoc > doc: \"doc=\" + doc + \" newDoc=\" + newDoc;doc = newDoc;break;}if (queue.top().nextDoc() == NO_MORE_DOCS) {queue.pop();} else {queue.updateTop();}}return doc;}", "after": "public override int NextDoc(){if (idx >= size){value = null;return doc = DocIdSetIterator.NO_MORE_DOCS;}doc = (int)docs.Get(idx);++idx;while (idx < size && docs.Get(idx) == doc){++idx;}if (!docsWithField.Get((int)(idx - 1))){value = null;}else{value = values.Get(idx - 1);}return doc;}" }, { "index": 8696, "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 >>> 4) & 15;values[valuesOffset++] = block & 15;}}", "after": "public override void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int j = 0; j < iterations; ++j){var block = blocks[blocksOffset++];values[valuesOffset++] = ((int)((uint)block >> 4)) & 15;values[valuesOffset++] = block & 15;}}" }, { "index": 8697, "before": "public int getNameIndex(String name) {for (int k = 0; k < names.size(); k++) {String nameName = getNameName(k);if (nameName.equalsIgnoreCase(name)) {return k;}}return -1;}", "after": "public int GetNameIndex(String name){int retval = -1;for (int k = 0; k < names.Count; k++){String nameName = GetNameName(k);if (nameName.Equals(name, StringComparison.OrdinalIgnoreCase)){retval = k;break;}}return retval;}" }, { "index": 8698, "before": "public void seek(int index) {if (index == currentCharIndex) {return;}if (index > currentCharIndex) {sync(index - currentCharIndex);index = Math.min(index, getBufferStartIndex() + n - 1);}int i = index - getBufferStartIndex();if ( i < 0 ) {throw new IllegalArgumentException(\"cannot seek to negative index \" + index);}else if (i >= n) {throw new UnsupportedOperationException(\"seek to index outside buffer: \"+index+\" not in \"+getBufferStartIndex()+\"..\"+(getBufferStartIndex()+n));}p = i;currentCharIndex = index;if (p == 0) {lastChar = lastCharBufferStart;}else {lastChar = data[p-1];}}", "after": "public virtual void Seek(int index){if (index == currentCharIndex){return;}if (index > currentCharIndex){Sync(index - currentCharIndex);index = Math.Min(index, BufferStartIndex + n - 1);}int i = index - BufferStartIndex;if (i < 0){throw new ArgumentException(\"cannot seek to negative index \" + index);}else{if (i >= n){throw new NotSupportedException(\"seek to index outside buffer: \" + index + \" not in \" + BufferStartIndex + \"..\" + (BufferStartIndex + n));}}p = i;currentCharIndex = index;if (p == 0){lastChar = lastCharBufferStart;}else{lastChar = data[p - 1];}}" }, { "index": 8699, "before": "public void readBytes(byte[] b, int offset, int len) {System.arraycopy(data, pos, b, offset, len);pos += len;}", "after": "public override void ReadBytes(byte[] b, int offset, int len){Array.Copy(data, pos, b, offset, len);pos += len;}" }, { "index": 8700, "before": "public ListGraphsResult listGraphs(ListGraphsRequest request) {request = beforeClientExecution(request);return executeListGraphs(request);}", "after": "public virtual ListGraphsResponse ListGraphs(ListGraphsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGraphsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGraphsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8701, "before": "public ATNDeserializer(ATNDeserializationOptions deserializationOptions) {if (deserializationOptions == null) {deserializationOptions = ATNDeserializationOptions.getDefaultOptions();}this.deserializationOptions = deserializationOptions;}", "after": "public ATNDeserializer(ATNDeserializationOptions deserializationOptions){if (deserializationOptions == null){deserializationOptions = ATNDeserializationOptions.Default;}this.deserializationOptions = deserializationOptions;}" }, { "index": 8702, "before": "public void decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {for (int j = 0; j < iterations; ++j) {values[valuesOffset++] = ((blocks[blocksOffset++] & 0xFF) << 8) | (blocks[blocksOffset++] & 0xFF);}}", "after": "public override void Decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations){for (int j = 0; j < iterations; ++j){values[valuesOffset++] = ((blocks[blocksOffset++] & 0xFF) << 8) | (blocks[blocksOffset++] & 0xFF);}}" }, { "index": 8703, "before": "public CanonicalTreeParser getParent() {return (CanonicalTreeParser) parent;}", "after": "public virtual NGit.Treewalk.CanonicalTreeParser GetParent(){return (NGit.Treewalk.CanonicalTreeParser)parent;}" }, { "index": 8704, "before": "public DetectDominantLanguageResult detectDominantLanguage(DetectDominantLanguageRequest request) {request = beforeClientExecution(request);return executeDetectDominantLanguage(request);}", "after": "public virtual DetectDominantLanguageResponse DetectDominantLanguage(DetectDominantLanguageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectDominantLanguageRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectDominantLanguageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8705, "before": "public void removePageCount() {remove1stProperty(PropertyIDMap.PID_PAGECOUNT);}", "after": "public void RemovePageCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_PAGECOUNT);}" }, { "index": 8706, "before": "public E previous() {if (expectedModCount == modCount) {try {E result = get(pos);lastPosition = pos;pos--;return result;} catch (IndexOutOfBoundsException e) {throw new NoSuchElementException();}}throw new ConcurrentModificationException();}", "after": "public E previous(){if (this.expectedModCount == this._enclosing.modCount){try{E result = this._enclosing.get(this.pos);this.lastPosition = this.pos;this.pos--;return result;}catch (System.IndexOutOfRangeException){throw new java.util.NoSuchElementException();}}throw new java.util.ConcurrentModificationException();}" }, { "index": 8707, "before": "public String toString() {final StringBuilder r = new StringBuilder();r.append(\"(\");for (int i = 0; i < subfilters.length; i++) {if (i > 0)r.append(\" AND \");r.append(subfilters[i].toString());}r.append(\")\");return r.toString();}", "after": "public override string ToString(){StringBuilder r = new StringBuilder();r.Append(\"(\");for (int i = 0; i < subfilters.Length; i++){if (i > 0){r.Append(\" AND \");}r.Append(subfilters[i].ToString());}r.Append(\")\");return r.ToString();}" }, { "index": 8708, "before": "public FooterRecord clone() {return copy();}", "after": "public override Object Clone(){return new FooterRecord(this.Text);}" }, { "index": 8709, "before": "public int stem(final char s[], int len) {if (len < 4) return len;if (len > 5 && endsWith(s, len, \"ища\"))return len - 3;len = removeArticle(s, len);len = removePlural(s, len);if (len > 3) {if (endsWith(s, len, \"я\"))len--;if (endsWith(s, len, \"а\") ||endsWith(s, len, \"о\") ||endsWith(s, len, \"е\"))len--;}if (len > 4 && endsWith(s, len, \"ен\")) {s[len - 2] = 'н'; len--;}if (len > 5 && s[len - 2] == 'ъ') {s[len - 2] = s[len - 1]; len--;}return len;}", "after": "public virtual int Stem(char[] s, int len){if (len < 4) {return len;}if (len > 5 && StemmerUtil.EndsWith(s, len, \"ища\")){return len - 3;}len = RemoveArticle(s, len);len = RemovePlural(s, len);if (len > 3){if (StemmerUtil.EndsWith(s, len, \"я\")){len--;}if (StemmerUtil.EndsWith(s, len, \"а\") || StemmerUtil.EndsWith(s, len, \"о\") || StemmerUtil.EndsWith(s, len, \"е\")){len--;}}if (len > 4 && StemmerUtil.EndsWith(s, len, \"ен\")){s[len - 2] = 'н'; len--;}if (len > 5 && s[len - 2] == 'ъ'){s[len - 2] = s[len - 1]; len--;}return len;}" }, { "index": 8710, "before": "public synchronized CharSequence subSequence(int start, int end) {return super.substring(start, end);}", "after": "public override java.lang.CharSequence SubSequence(int start, int end){lock (this){return java.lang.CharSequenceProxy.Wrap(base.substring(start, end));}}" }, { "index": 8711, "before": "public DisableVpcClassicLinkDnsSupportResult disableVpcClassicLinkDnsSupport(DisableVpcClassicLinkDnsSupportRequest request) {request = beforeClientExecution(request);return executeDisableVpcClassicLinkDnsSupport(request);}", "after": "public virtual DisableVpcClassicLinkDnsSupportResponse DisableVpcClassicLinkDnsSupport(DisableVpcClassicLinkDnsSupportRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableVpcClassicLinkDnsSupportRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableVpcClassicLinkDnsSupportResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8712, "before": "public static FormulaError forInt(byte type) throws IllegalArgumentException {FormulaError err = bmap.get(type);if(err == null) throw new IllegalArgumentException(\"Unknown error type: \" + type);return err;}", "after": "public static FormulaError ForInt(byte type){if (bmap.ContainsKey(type))return bmap[type];throw new ArgumentException(\"Unknown error type: \" + type);}" }, { "index": 8713, "before": "public void remove() {if (index == 0)throw new IllegalStateException();BlockList.this.remove(--index);dirIdx = toDirectoryIndex(index);blkIdx = toBlockIndex(index);block = directory[dirIdx];}", "after": "public override void Remove(){if (this.index == 0){throw new InvalidOperationException();}this._enclosing.Remove(--this.index);this.dirIdx = BlockList.ToDirectoryIndex(this.index);this.blkIdx = BlockList.ToBlockIndex(this.index);this.block = this._enclosing.directory[this.dirIdx];}" }, { "index": 8714, "before": "public String formatNumberDateCell(CellValueRecordInterface cell) {double value;if (cell instanceof NumberRecord) {value = ((NumberRecord) cell).getValue();} else if (cell instanceof FormulaRecord) {value = ((FormulaRecord) cell).getValue();} else {throw new IllegalArgumentException(\"Unsupported CellValue Record passed in \" + cell);}int formatIndex = getFormatIndex(cell);String formatString = getFormatString(cell);if (formatString == null) {return _defaultFormat.format(value);}return _formatter.formatRawCellContents(value, formatIndex, formatString);}", "after": "public String FormatNumberDateCell(CellValueRecordInterface cell){double value;if (cell is NumberRecord){value = ((NumberRecord)cell).Value;}else if (cell is FormulaRecord){value = ((FormulaRecord)cell).Value;}else{throw new ArgumentException(\"Unsupported CellValue Record passed in \" + cell);}int formatIndex = GetFormatIndex(cell);String formatString = GetFormatString(cell);if (formatString == null){return value.ToString(CultureInfo.InvariantCulture);}else{return formatter.FormatRawCellContents(value, formatIndex, formatString);}}" }, { "index": 8715, "before": "public synchronized StringBuffer append(Object obj) {if (obj == null) {appendNull();} else {append0(obj.toString());}return this;}", "after": "public java.lang.StringBuffer append(object obj){lock (this){if (obj == null){appendNull();}else{append0(obj.ToString());}return this;}}" }, { "index": 8716, "before": "public String getUser() {return user;}", "after": "public virtual string GetUser(){return user;}" }, { "index": 8717, "before": "public CreateGraphResult createGraph(CreateGraphRequest request) {request = beforeClientExecution(request);return executeCreateGraph(request);}", "after": "public virtual CreateGraphResponse CreateGraph(CreateGraphRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateGraphRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateGraphResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8718, "before": "public static BytesRef toBytesRef(IntsRef input, BytesRefBuilder scratch) {scratch.grow(input.length);for(int i=0;i= Byte.MIN_VALUE && value <= 255: \"value \" + value + \" doesn't fit into byte\";scratch.setByteAt(i, (byte) value);}scratch.setLength(input.length);return scratch.get();}", "after": "public static BytesRef ToBytesRef(Int32sRef input, BytesRef scratch){scratch.Grow(input.Length);for (int i = 0; i < input.Length; i++){int value = input.Int32s[i + input.Offset];Debug.Assert(value >= sbyte.MinValue && value <= 255, \"value \" + value + \" doesn't fit into byte\");scratch.Bytes[i] = (byte)value;}scratch.Length = input.Length;return scratch;}" }, { "index": 8719, "before": "public final DoubleBuffer asDoubleBuffer() {return DoubleToByteBufferAdapter.asDoubleBuffer(this);}", "after": "public sealed override java.nio.DoubleBuffer asDoubleBuffer(){return java.nio.DoubleToByteBufferAdapter.asDoubleBuffer(this);}" }, { "index": 8720, "before": "public static final RevFilter between(Date since, Date until) {return between(since.getTime(), until.getTime());}", "after": "public static RevFilter Between(long since, long until){return new CommitTimeRevFilterBetween(since, until);}" }, { "index": 8721, "before": "public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx) {AreaI area = new OffsetArea(getRow(), getColumn(),relFirstRowIx, relLastRowIx, relFirstColIx, relLastColIx);return new LazyAreaEval(area, _evaluator);}", "after": "public override AreaEval Offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx){AreaI area = new OffsetArea(Row, Column,relFirstRowIx, relLastRowIx, relFirstColIx, relLastColIx);return new LazyAreaEval(area, _evaluator);}" }, { "index": 8722, "before": "public static void registerFunction(String name, FreeRefFunction func){AnalysisToolPak.registerFunction(name, func);}", "after": "public static void RegisterFunction(String name, FreeRefFunction func){AnalysisToolPak.RegisterFunction(name, func);}" }, { "index": 8723, "before": "public CreateAutoMLJobResult createAutoMLJob(CreateAutoMLJobRequest request) {request = beforeClientExecution(request);return executeCreateAutoMLJob(request);}", "after": "public virtual CreateAutoMLJobResponse CreateAutoMLJob(CreateAutoMLJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAutoMLJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAutoMLJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8724, "before": "public DefineIndexFieldResult defineIndexField(DefineIndexFieldRequest request) {request = beforeClientExecution(request);return executeDefineIndexField(request);}", "after": "public virtual DefineIndexFieldResponse DefineIndexField(DefineIndexFieldRequest request){var options = new InvokeOptions();options.RequestMarshaller = DefineIndexFieldRequestMarshaller.Instance;options.ResponseUnmarshaller = DefineIndexFieldResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8725, "before": "public ListDomainNamesResult listDomainNames(ListDomainNamesRequest request) {request = beforeClientExecution(request);return executeListDomainNames(request);}", "after": "public virtual ListDomainNamesResponse ListDomainNames(ListDomainNamesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDomainNamesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDomainNamesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8726, "before": "public CharBuffer put(char c) {if (position == limit) {throw new BufferOverflowException();}byteBuffer.putChar(position++ * SizeOf.CHAR, c);return this;}", "after": "public override java.nio.CharBuffer put(char c){if (_position == _limit){throw new java.nio.BufferOverflowException();}byteBuffer.putChar(_position++ * libcore.io.SizeOf.CHAR, c);return this;}" }, { "index": 8727, "before": "public static PathFilter create(String path) {while (path.endsWith(\"/\")) path = path.substring(0, path.length() - 1);if (path.length() == 0)throw new IllegalArgumentException(JGitText.get().emptyPathNotPermitted);return new PathFilter(path);}", "after": "public static NGit.Treewalk.Filter.PathFilter Create(string path){while (path.EndsWith(\"/\")){path = Sharpen.Runtime.Substring(path, 0, path.Length - 1);}if (path.Length == 0){throw new ArgumentException(JGitText.Get().emptyPathNotPermitted);}return new NGit.Treewalk.Filter.PathFilter(path);}" }, { "index": 8728, "before": "public final String toString() {return String.copyValueOf(backingArray, offset + position, remaining());}", "after": "public sealed override string ToString(){return Sharpen.StringHelper.CopyValueOf(backingArray, offset + _position, remaining());}" }, { "index": 8729, "before": "public char first() {index = start;return current();}", "after": "public override char First(){index = start;return Current;}" }, { "index": 8730, "before": "public void growForward() {forwardPos = ArrayUtil.grow(forwardPos, 1+forwardCount);forwardID = ArrayUtil.grow(forwardID, 1+forwardCount);forwardIndex = ArrayUtil.grow(forwardIndex, 1+forwardCount);final Type[] newForwardType = new Type[forwardPos.length];System.arraycopy(forwardType, 0, newForwardType, 0, forwardType.length);forwardType = newForwardType;}", "after": "public void GrowForward(){forwardPos = ArrayUtil.Grow(forwardPos, 1 + forwardCount);forwardID = ArrayUtil.Grow(forwardID, 1 + forwardCount);forwardIndex = ArrayUtil.Grow(forwardIndex, 1 + forwardCount);JapaneseTokenizerType[] newForwardType = new JapaneseTokenizerType[forwardPos.Length];System.Array.Copy(forwardType, 0, newForwardType, 0, forwardType.Length);forwardType = newForwardType;}" }, { "index": 8731, "before": "public DescribeReplicationGroupsResult describeReplicationGroups(DescribeReplicationGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeReplicationGroups(request);}", "after": "public virtual DescribeReplicationGroupsResponse DescribeReplicationGroups(DescribeReplicationGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReplicationGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReplicationGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8732, "before": "public int getIndex(T o) {return valueKeyMap.getOrDefault(o, -1);}", "after": "public int GetIndex(T o){if (!valueKeyMap.ContainsKey(o))return -1;return valueKeyMap[o];}" }, { "index": 8733, "before": "public String toString() {return \"(\"+pred+\", \"+alt+ \")\";}", "after": "public override String ToString(){return \"(\" + pred + \", \" + alt + \")\";}" }, { "index": 8734, "before": "public DescribeRegionsResult describeRegions() {return describeRegions(new DescribeRegionsRequest());}", "after": "public virtual DescribeRegionsResponse DescribeRegions(){return DescribeRegions(new DescribeRegionsRequest());}" }, { "index": 8735, "before": "public ModifyVpcEndpointConnectionNotificationResult modifyVpcEndpointConnectionNotification(ModifyVpcEndpointConnectionNotificationRequest request) {request = beforeClientExecution(request);return executeModifyVpcEndpointConnectionNotification(request);}", "after": "public virtual ModifyVpcEndpointConnectionNotificationResponse ModifyVpcEndpointConnectionNotification(ModifyVpcEndpointConnectionNotificationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpcEndpointConnectionNotificationRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpcEndpointConnectionNotificationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8736, "before": "public QueryPhraseMap( FieldQuery fieldQuery ){this.fieldQuery = fieldQuery;}", "after": "public QueryPhraseMap(FieldQuery fieldQuery){this.fieldQuery = fieldQuery;}" }, { "index": 8737, "before": "public DescribeAssessmentTemplatesResult describeAssessmentTemplates(DescribeAssessmentTemplatesRequest request) {request = beforeClientExecution(request);return executeDescribeAssessmentTemplates(request);}", "after": "public virtual DescribeAssessmentTemplatesResponse DescribeAssessmentTemplates(DescribeAssessmentTemplatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAssessmentTemplatesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAssessmentTemplatesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8738, "before": "public HunspellStemFilter(TokenStream input, Dictionary dictionary, boolean dedup, boolean longestOnly) {super(input);this.dedup = dedup && longestOnly == false; this.stemmer = new Stemmer(dictionary);this.longestOnly = longestOnly;}", "after": "public HunspellStemFilter(TokenStream input, Dictionary dictionary, bool dedup, bool longestOnly): base(input){this.dedup = dedup && longestOnly == false; this.stemmer = new Stemmer(dictionary);this.longestOnly = longestOnly;termAtt = AddAttribute();posIncAtt = AddAttribute();keywordAtt = AddAttribute();}" }, { "index": 8739, "before": "public NameCommentRecord getNameCommentRecord(final NameRecord nameRecord){return commentRecords.get(nameRecord.getNameText());}", "after": "public NameCommentRecord GetNameCommentRecord(NameRecord nameRecord){if (commentRecords.ContainsKey(nameRecord.NameText))return commentRecords[nameRecord.NameText];elsereturn null;}" }, { "index": 8740, "before": "public ScanRequest(String tableName) {setTableName(tableName);}", "after": "public ScanRequest(string tableName){_tableName = tableName;}" }, { "index": 8741, "before": "public AliasTarget(String hostedZoneId, String dNSName) {setHostedZoneId(hostedZoneId);setDNSName(dNSName);}", "after": "public AliasTarget(string hostedZoneId, string dnsName){_hostedZoneId = hostedZoneId;_dnsName = dnsName;}" }, { "index": 8742, "before": "public ListOutgoingTypedLinksResult listOutgoingTypedLinks(ListOutgoingTypedLinksRequest request) {request = beforeClientExecution(request);return executeListOutgoingTypedLinks(request);}", "after": "public virtual ListOutgoingTypedLinksResponse ListOutgoingTypedLinks(ListOutgoingTypedLinksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListOutgoingTypedLinksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListOutgoingTypedLinksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8743, "before": "public HsmConfiguration createHsmConfiguration(CreateHsmConfigurationRequest request) {request = beforeClientExecution(request);return executeCreateHsmConfiguration(request);}", "after": "public virtual CreateHsmConfigurationResponse CreateHsmConfiguration(CreateHsmConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateHsmConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateHsmConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8744, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[BEGIN]\\n\");buffer.append(\"[/BEGIN]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[BEGIN]\\n\");buffer.Append(\"[/BEGIN]\\n\");return buffer.ToString();}" }, { "index": 8745, "before": "public DisableDomainAutoRenewResult disableDomainAutoRenew(DisableDomainAutoRenewRequest request) {request = beforeClientExecution(request);return executeDisableDomainAutoRenew(request);}", "after": "public virtual DisableDomainAutoRenewResponse DisableDomainAutoRenew(DisableDomainAutoRenewRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableDomainAutoRenewRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableDomainAutoRenewResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8746, "before": "@Override public boolean remove(Object o) {if (!(o instanceof Entry)) {return false;}Entry e = (Entry) o;Object key = e.getKey();return key != null && Impl.this.remove(key, e.getValue());}", "after": "public override bool remove(object o){if (!(o is java.util.MapClass.Entry)){return false;}java.util.MapClass.Entry e = (java.util.MapClass.Entry)o;return this._enclosing.removeMapping(e.getKey(), e.getValue());}" }, { "index": 8747, "before": "public UpdateFindingsFeedbackResult updateFindingsFeedback(UpdateFindingsFeedbackRequest request) {request = beforeClientExecution(request);return executeUpdateFindingsFeedback(request);}", "after": "public virtual UpdateFindingsFeedbackResponse UpdateFindingsFeedback(UpdateFindingsFeedbackRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFindingsFeedbackRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFindingsFeedbackResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8748, "before": "public void setColorAtIndex(short index, byte red, byte green, byte blue){_palette.setColor(index, red, green, blue);}", "after": "public void SetColorAtIndex(short index, byte red, byte green, byte blue){palette.SetColor(index, red, green, blue);}" }, { "index": 8749, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(rt);out.writeShort(grbitFrt);out.writeByte(verOriginator);out.writeByte(verWriter);out.writeShort(rgCFRTID.length);for (CFRTID cfrtid : rgCFRTID) {cfrtid.serialize(out);}}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(rt);out1.WriteShort(grbitFrt);out1.WriteByte(verOriginator);out1.WriteByte(verWriter);int nCFRTIDs = rgCFRTID.Length;out1.WriteShort(nCFRTIDs);for (int i = 0; i < nCFRTIDs; i++){rgCFRTID[i].Serialize(out1);}}" }, { "index": 8750, "before": "public RevokeInvitationResult revokeInvitation(RevokeInvitationRequest request) {request = beforeClientExecution(request);return executeRevokeInvitation(request);}", "after": "public virtual RevokeInvitationResponse RevokeInvitation(RevokeInvitationRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeInvitationRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeInvitationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8751, "before": "public GetTextDetectionResult getTextDetection(GetTextDetectionRequest request) {request = beforeClientExecution(request);return executeGetTextDetection(request);}", "after": "public virtual GetTextDetectionResponse GetTextDetection(GetTextDetectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTextDetectionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTextDetectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8752, "before": "public void ensureCapacity(int min) {if (min > value.length) {int ourMin = value.length*2 + 2;enlargeBuffer(Math.max(ourMin, min));}}", "after": "public virtual void ensureCapacity(int min){if (min > value.Length){int ourMin = value.Length * 2 + 2;enlargeBuffer(System.Math.Max(ourMin, min));}}" }, { "index": 8753, "before": "public void write(byte[] buffer, int byteOffset, int byteCount) throws IOException {IoBridge.write(fd, buffer, byteOffset, byteCount);}", "after": "public override void write(byte[] buffer, int byteOffset, int byteCount){throw new System.NotImplementedException();}" }, { "index": 8754, "before": "public DisassociateAddressResult disassociateAddress(DisassociateAddressRequest request) {request = beforeClientExecution(request);return executeDisassociateAddress(request);}", "after": "public virtual DisassociateAddressResponse DisassociateAddress(DisassociateAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateAddressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8755, "before": "public TagCommand setForceUpdate(boolean forceUpdate) {this.forceUpdate = forceUpdate;return this;}", "after": "public virtual NGit.Api.TagCommand SetForceUpdate(bool forceUpdate){this.forceUpdate = forceUpdate;return this;}" }, { "index": 8756, "before": "public PageItemRecord(RecordInputStream in) {int dataSize = in.remaining();if (dataSize % FieldInfo.ENCODED_SIZE != 0) {throw new RecordFormatException(\"Bad data size \" + dataSize);}int nItems = dataSize / FieldInfo.ENCODED_SIZE;FieldInfo[] fis = new FieldInfo[nItems];for (int i = 0; i < fis.length; i++) {fis[i] = new FieldInfo(in);}_fieldInfos = fis;}", "after": "public PageItemRecord(RecordInputStream in1){int dataSize = in1.Remaining;if (dataSize % FieldInfo.ENCODED_SIZE != 0){throw new RecordFormatException(\"Bad data size \" + dataSize);}int nItems = dataSize / FieldInfo.ENCODED_SIZE;FieldInfo[] fis = new FieldInfo[nItems];for (int i = 0; i < fis.Length; i++){fis[i] = new FieldInfo(in1);}_fieldInfos = fis;}" }, { "index": 8757, "before": "public XPathTokenElement(String tokenName, int tokenType) {super(tokenName);this.tokenType = tokenType;}", "after": "public XPathTokenElement(string tokenName, int tokenType): base(tokenName){this.tokenType = tokenType;}" }, { "index": 8758, "before": "@Override public boolean contains(Object object) {return indexOf(object) != -1;}", "after": "public virtual bool contains(object o){return indexOf(o) != -1;}" }, { "index": 8759, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_x);out.writeShort(field_2_y);out.writeShort(field_3_topRow);out.writeShort(field_4_leftColumn);out.writeShort(field_5_activePane);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_x);out1.WriteShort(field_2_y);out1.WriteShort(field_3_topRow);out1.WriteShort(field_4_leftColumn);out1.WriteShort(field_5_activePane);}" }, { "index": 8760, "before": "public StepExecutionStatusDetail(StepExecutionState state, java.util.Date creationDateTime) {setState(state.toString());setCreationDateTime(creationDateTime);}", "after": "public StepExecutionStatusDetail(StepExecutionState state, DateTime creationDateTime){_state = state;_creationDateTime = creationDateTime;}" }, { "index": 8761, "before": "public EditEventRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"EditEvent\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public EditEventRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"EditEvent\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 8762, "before": "public PurchaseHostReservationResult purchaseHostReservation(PurchaseHostReservationRequest request) {request = beforeClientExecution(request);return executePurchaseHostReservation(request);}", "after": "public virtual PurchaseHostReservationResponse PurchaseHostReservation(PurchaseHostReservationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurchaseHostReservationRequestMarshaller.Instance;options.ResponseUnmarshaller = PurchaseHostReservationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8763, "before": "public ConfirmPrivateVirtualInterfaceResult confirmPrivateVirtualInterface(ConfirmPrivateVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeConfirmPrivateVirtualInterface(request);}", "after": "public virtual ConfirmPrivateVirtualInterfaceResponse ConfirmPrivateVirtualInterface(ConfirmPrivateVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ConfirmPrivateVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = ConfirmPrivateVirtualInterfaceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8764, "before": "public static int getVariantLength(final long variantType) {final Integer length = numberToLength.get(variantType);return (length != null) ? length : LENGTH_UNKNOWN;}", "after": "public static int GetVariantLength(long variantType){long key = (int)variantType;if (numberToLength.Contains(key))return -2;long Length = (long)numberToLength[key];return Convert.ToInt32(Length);}" }, { "index": 8765, "before": "public UnknownFormatFlagsException(String f) {if (f == null) {throw new NullPointerException();}flags = f;}", "after": "public UnknownFormatFlagsException(string f){if (f == null){throw new System.ArgumentNullException();}flags = f;}" }, { "index": 8766, "before": "public boolean isFreezePane() {return frozen;}", "after": "public bool IsFreezePane(){return frozen;}" }, { "index": 8767, "before": "public PurchaseReservedDBInstancesOfferingRequest(String reservedDBInstancesOfferingId) {setReservedDBInstancesOfferingId(reservedDBInstancesOfferingId);}", "after": "public PurchaseReservedDBInstancesOfferingRequest(string reservedDBInstancesOfferingId){_reservedDBInstancesOfferingId = reservedDBInstancesOfferingId;}" }, { "index": 8768, "before": "public HeaderBlock(POIFSBigBlockSize bigBlockSize){this.bigBlockSize = bigBlockSize;_data = new byte[ POIFSConstants.SMALLER_BIG_BLOCK_SIZE ];Arrays.fill(_data, _default_value);new LongField(_signature_offset, _signature, _data);new IntegerField(0x08, 0, _data);new IntegerField(0x0c, 0, _data);new IntegerField(0x10, 0, _data);new IntegerField(0x14, 0, _data);new ShortField(0x18, ( short ) 0x3b, _data);new ShortField(0x1a, ( short ) 0x3, _data);new ShortField(0x1c, ( short ) -2, _data);new ShortField(0x1e, bigBlockSize.getHeaderValue(), _data);new IntegerField(0x20, 0x6, _data);new IntegerField(0x24, 0, _data);new IntegerField(0x28, 0, _data);new IntegerField(0x34, 0, _data);new IntegerField(0x38, 0x1000, _data);_bat_count = 0;_sbat_count = 0;_xbat_count = 0;_property_start = POIFSConstants.END_OF_CHAIN;_sbat_start = POIFSConstants.END_OF_CHAIN;_xbat_start = POIFSConstants.END_OF_CHAIN;}", "after": "public HeaderBlock(POIFSBigBlockSize bigBlockSize){this.bigBlockSize = bigBlockSize;_data = new byte[POIFSConstants.SMALLER_BIG_BLOCK_SIZE];for (int i = 0; i < _data.Length; i++)_data[i] = _default_value;new LongField(_signature_offset, _signature, _data);new IntegerField(0x08, 0, _data);new IntegerField(0x0c, 0, _data);new IntegerField(0x10, 0, _data);new IntegerField(0x14, 0, _data);new ShortField((int)0x18, (short)0x3b, ref _data);new ShortField((int)0x1a, (short)0x3, ref _data);new ShortField((int)0x1c, (short)-2, ref _data);new ShortField(0x1e, bigBlockSize.GetHeaderValue(), ref _data);new IntegerField(0x20, 0x6, _data);new IntegerField(0x24, 0, _data);new IntegerField(0x28, 0, _data);new IntegerField(0x34, 0, _data);new IntegerField(0x38, 0x1000, _data);_bat_count = 0;_sbat_count = 0;_xbat_count = 0;_property_start = POIFSConstants.END_OF_CHAIN;_sbat_start = POIFSConstants.END_OF_CHAIN;_xbat_start = POIFSConstants.END_OF_CHAIN;}" }, { "index": 8769, "before": "public ListEventSubscriptionsResult listEventSubscriptions(ListEventSubscriptionsRequest request) {request = beforeClientExecution(request);return executeListEventSubscriptions(request);}", "after": "public virtual ListEventSubscriptionsResponse ListEventSubscriptions(ListEventSubscriptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEventSubscriptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEventSubscriptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8770, "before": "public ListProxySessionsResult listProxySessions(ListProxySessionsRequest request) {request = beforeClientExecution(request);return executeListProxySessions(request);}", "after": "public virtual ListProxySessionsResponse ListProxySessions(ListProxySessionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListProxySessionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListProxySessionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8771, "before": "public SimpleBoundaryScanner( int maxScan, Set boundaryChars ){this.maxScan = maxScan;this.boundaryChars = boundaryChars;}", "after": "public SimpleBoundaryScanner(int maxScan, ISet boundaryChars){this.m_maxScan = maxScan;this.m_boundaryChars = boundaryChars;}" }, { "index": 8772, "before": "public ObjectId getObjectId() {return getLeaf().getObjectId();}", "after": "public virtual ObjectId GetObjectId(){return GetLeaf().GetObjectId();}" }, { "index": 8773, "before": "public void drawLine(int x1, int y1, int x2, int y2, int width){HSSFSimpleShape shape = escherGroup.createShape(new HSSFChildAnchor(x1, y1, x2, y2) );shape.setShapeType(HSSFSimpleShape.OBJECT_TYPE_LINE);shape.setLineWidth(width);shape.setLineStyleColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());}", "after": "public void DrawLine(int x1, int y1, int x2, int y2, int width){HSSFSimpleShape shape = escherGroup.CreateShape(new HSSFChildAnchor(x1, y1, x2, y2));shape.ShapeType = (HSSFSimpleShape.OBJECT_TYPE_LINE);shape.LineWidth = (width);shape.SetLineStyleColor(foreground.R, foreground.G, foreground.B);}" }, { "index": 8774, "before": "public ReverseBytesReader(byte[] bytes) {this.bytes = bytes;}", "after": "public ReverseBytesReader(byte[] bytes){this.bytes = bytes;}" }, { "index": 8775, "before": "public GetActiveNamesResult getActiveNames(GetActiveNamesRequest request) {request = beforeClientExecution(request);return executeGetActiveNames(request);}", "after": "public virtual GetActiveNamesResponse GetActiveNames(GetActiveNamesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetActiveNamesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetActiveNamesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8776, "before": "public MergeResult getFailingResult() {return failingResult;}", "after": "public virtual MergeCommandResult GetFailingResult(){return failingResult;}" }, { "index": 8777, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[AREA]\\n\");buffer.append(\" .formatFlags = \").append(\"0x\").append(HexDump.toHex( getFormatFlags ())).append(\" (\").append( getFormatFlags() ).append(\" )\");buffer.append(System.getProperty(\"line.separator\"));buffer.append(\" .stacked = \").append(isStacked()).append('\\n');buffer.append(\" .displayAsPercentage = \").append(isDisplayAsPercentage()).append('\\n');buffer.append(\" .shadow = \").append(isShadow()).append('\\n');buffer.append(\"[/AREA]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[AREA]\\n\");buffer.Append(\" .formatFlags = \").Append(\"0x\").Append(HexDump.ToHex(FormatFlags)).Append(\" (\").Append(FormatFlags).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\" .stacked = \").Append(IsStacked).Append('\\n');buffer.Append(\" .DisplayAsPercentage = \").Append(IsDisplayAsPercentage).Append('\\n');buffer.Append(\" .shadow = \").Append(IsShadow).Append('\\n');buffer.Append(\"[/AREA]\\n\");return buffer.ToString();}" }, { "index": 8778, "before": "public BatchCreateVariableResult batchCreateVariable(BatchCreateVariableRequest request) {request = beforeClientExecution(request);return executeBatchCreateVariable(request);}", "after": "public virtual BatchCreateVariableResponse BatchCreateVariable(BatchCreateVariableRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchCreateVariableRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchCreateVariableResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8779, "before": "public final boolean isReuseAsIs() {return (flags & REUSE_AS_IS) != 0;}", "after": "public virtual bool IsReuseAsIs(){return (flags & REUSE_AS_IS) != 0;}" }, { "index": 8780, "before": "public String toString() {return \"[PRINTGRIDLINES]\\n\" +\" .printgridlines = \" + getPrintGridlines() +\"\\n\" +\"[/PRINTGRIDLINES]\\n\";}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[PRINTGRIDLINES]\\n\");buffer.Append(\" .printgridlines = \").Append(PrintGridlines).Append(\"\\n\");buffer.Append(\"[/PRINTGRIDLINES]\\n\");return buffer.ToString();}" }, { "index": 8781, "before": "public ApplySecurityGroupsToClientVpnTargetNetworkResult applySecurityGroupsToClientVpnTargetNetwork(ApplySecurityGroupsToClientVpnTargetNetworkRequest request) {request = beforeClientExecution(request);return executeApplySecurityGroupsToClientVpnTargetNetwork(request);}", "after": "public virtual ApplySecurityGroupsToClientVpnTargetNetworkResponse ApplySecurityGroupsToClientVpnTargetNetwork(ApplySecurityGroupsToClientVpnTargetNetworkRequest request){var options = new InvokeOptions();options.RequestMarshaller = ApplySecurityGroupsToClientVpnTargetNetworkRequestMarshaller.Instance;options.ResponseUnmarshaller = ApplySecurityGroupsToClientVpnTargetNetworkResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8782, "before": "public DetachInternetGatewayResult detachInternetGateway(DetachInternetGatewayRequest request) {request = beforeClientExecution(request);return executeDetachInternetGateway(request);}", "after": "public virtual DetachInternetGatewayResponse DetachInternetGateway(DetachInternetGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachInternetGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachInternetGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8783, "before": "public static final RevFilter after(long ts) {return new After(ts);}", "after": "public static RevFilter After(DateTime ts){return After(ts.GetTime());}" }, { "index": 8784, "before": "public DescribeCampaignResult describeCampaign(DescribeCampaignRequest request) {request = beforeClientExecution(request);return executeDescribeCampaign(request);}", "after": "public virtual DescribeCampaignResponse DescribeCampaign(DescribeCampaignRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCampaignRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCampaignResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8785, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[INDEX]\\n\");buffer.append(\" .firstrow = \").append(Integer.toHexString(getFirstRow())).append(\"\\n\");buffer.append(\" .lastrowadd1 = \").append(Integer.toHexString(getLastRowAdd1())).append(\"\\n\");for (int k = 0; k < getNumDbcells(); k++) {buffer.append(\" .dbcell_\").append(k).append(\" = \").append(Integer.toHexString(getDbcellAt(k))).append(\"\\n\");}buffer.append(\"[/INDEX]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[INDEX]\\n\");buffer.Append(\" .firstrow = \").Append(StringUtil.ToHexString(FirstRow)).Append(\"\\n\");buffer.Append(\" .lastrowadd1 = \").Append(StringUtil.ToHexString(LastRowAdd1)).Append(\"\\n\");for (int k = 0; k < NumDbcells; k++){buffer.Append(\" .dbcell_\" + k + \" = \").Append(StringUtil.ToHexString(GetDbcellAt(k))).Append(\"\\n\");}buffer.Append(\"[/INDEX]\\n\");return buffer.ToString();}" }, { "index": 8786, "before": "public UserSViewEnd clone() {return copy();}", "after": "public override Object Clone(){return CloneViaReserialise();}" }, { "index": 8787, "before": "public final float averageCharsPerByte() {return averageCharsPerByte;}", "after": "public float averageCharsPerByte(){return _averageCharsPerByte;}" }, { "index": 8788, "before": "public ListTimeLinePhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"ListTimeLinePhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public ListTimeLinePhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"ListTimeLinePhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 8789, "before": "public String toString() {return getClass().getName() + \" [\" +formatAsString() +\"]\";}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(\" [\");sb.Append(FormatAsString());sb.Append(\"]\");return sb.ToString();}" }, { "index": 8790, "before": "public RunTaskResult runTask(RunTaskRequest request) {request = beforeClientExecution(request);return executeRunTask(request);}", "after": "public virtual RunTaskResponse RunTask(RunTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = RunTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = RunTaskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8791, "before": "public void setCollector(Collector collector) {this.collector = collector;}", "after": "public virtual void SetCollector(ICollector collector){this.collector = collector;}" }, { "index": 8792, "before": "public String toString() {return slice.toString()+\":\"+ postingsEnum;}", "after": "public override string ToString(){return Slice.ToString() + \":\" + DocsAndPositionsEnum;}" }, { "index": 8793, "before": "public void addFieldConfigListener(FieldConfigListener listener) {this.listeners.add(listener);}", "after": "public virtual void AddFieldConfigListener(IFieldConfigListener listener){this.listeners.AddLast(listener);}" }, { "index": 8794, "before": "public Result getResult() {return result;}", "after": "public virtual RefUpdate.Result GetResult(){return result;}" }, { "index": 8795, "before": "public ListNamedQueriesResult listNamedQueries(ListNamedQueriesRequest request) {request = beforeClientExecution(request);return executeListNamedQueries(request);}", "after": "public virtual ListNamedQueriesResponse ListNamedQueries(ListNamedQueriesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListNamedQueriesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListNamedQueriesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8796, "before": "public URIish setPort(int n) {final URIish r = new URIish(this);r.port = n > 0 ? n : -1;return r;}", "after": "public virtual NGit.Transport.URIish SetPort(int n){NGit.Transport.URIish r = new NGit.Transport.URIish(this);r.port = n > 0 ? n : -1;return r;}" }, { "index": 8797, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(_flags);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(_flags);}" }, { "index": 8798, "before": "public byte[] getBuffer() {return buf;}", "after": "public virtual byte[] GetBuffer(){return buf;}" }, { "index": 8799, "before": "public String getSignerVersion() {return \"1.0\";}", "after": "public override string GetSignerVersion(){return \"1.0\";}" }, { "index": 8800, "before": "public DBParameterGroup copyDBParameterGroup(CopyDBParameterGroupRequest request) {request = beforeClientExecution(request);return executeCopyDBParameterGroup(request);}", "after": "public virtual CopyDBParameterGroupResponse CopyDBParameterGroup(CopyDBParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopyDBParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CopyDBParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8801, "before": "public PackedObjectInfo getObject(int nth) {return entries[nth];}", "after": "public virtual PackedObjectInfo GetObject(int nth){return entries[nth];}" }, { "index": 8802, "before": "public CreateUserSourceAccountRequest() {super(\"cr\", \"2016-06-07\", \"CreateUserSourceAccount\", \"cr\");setUriPattern(\"/users/sourceAccount\");setMethod(MethodType.PUT);}", "after": "public CreateUserSourceAccountRequest(): base(\"cr\", \"2016-06-07\", \"CreateUserSourceAccount\", \"cr\", \"openAPI\"){UriPattern = \"/users/sourceAccount\";Method = MethodType.PUT;}" }, { "index": 8803, "before": "public DeleteApplicationVpcConfigurationResult deleteApplicationVpcConfiguration(DeleteApplicationVpcConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteApplicationVpcConfiguration(request);}", "after": "public virtual DeleteApplicationVpcConfigurationResponse DeleteApplicationVpcConfiguration(DeleteApplicationVpcConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApplicationVpcConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApplicationVpcConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8804, "before": "public final short[] array() {return protectedArray();}", "after": "public sealed override object array(){return protectedArray();}" }, { "index": 8805, "before": "public ByteBuffer putLong(int index, long value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putLong(int index, long value){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 8806, "before": "public void removeSubject() {remove1stProperty(PropertyIDMap.PID_SUBJECT);}", "after": "public void RemoveSubject(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_SUBJECT);}" }, { "index": 8807, "before": "public BatchGetDeploymentGroupsResult batchGetDeploymentGroups(BatchGetDeploymentGroupsRequest request) {request = beforeClientExecution(request);return executeBatchGetDeploymentGroups(request);}", "after": "public virtual BatchGetDeploymentGroupsResponse BatchGetDeploymentGroups(BatchGetDeploymentGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetDeploymentGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetDeploymentGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8808, "before": "public DisassociateRepositoryResult disassociateRepository(DisassociateRepositoryRequest request) {request = beforeClientExecution(request);return executeDisassociateRepository(request);}", "after": "public virtual DisassociateRepositoryResponse DisassociateRepository(DisassociateRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateRepositoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8809, "before": "public DescribeSpotPriceHistoryResult describeSpotPriceHistory() {return describeSpotPriceHistory(new DescribeSpotPriceHistoryRequest());}", "after": "public virtual DescribeSpotPriceHistoryResponse DescribeSpotPriceHistory(){return DescribeSpotPriceHistory(new DescribeSpotPriceHistoryRequest());}" }, { "index": 8810, "before": "public UpdateRepoSourceRepoRequest() {super(\"cr\", \"2016-06-07\", \"UpdateRepoSourceRepo\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/sourceRepo\");setMethod(MethodType.POST);}", "after": "public UpdateRepoSourceRepoRequest(): base(\"cr\", \"2016-06-07\", \"UpdateRepoSourceRepo\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/sourceRepo\";Method = MethodType.POST;}" }, { "index": 8811, "before": "public boolean isHidden() {if (path.isEmpty()) {return false;}return getName().startsWith(\".\");}", "after": "public bool isHidden(){if (string.IsNullOrEmpty(path)){return false;}return getName().StartsWith(\".\");}" }, { "index": 8812, "before": "public PaneRecord(RecordInputStream in) {field_1_x = in.readShort();field_2_y = in.readShort();field_3_topRow = in.readShort();field_4_leftColumn = in.readShort();field_5_activePane = in.readShort();}", "after": "public PaneRecord(RecordInputStream in1){field_1_x = in1.ReadShort();field_2_y = in1.ReadShort();field_3_topRow = in1.ReadShort();field_4_leftColumn = in1.ReadShort();field_5_activePane = in1.ReadShort();}" }, { "index": 8813, "before": "public StartGameSessionPlacementResult startGameSessionPlacement(StartGameSessionPlacementRequest request) {request = beforeClientExecution(request);return executeStartGameSessionPlacement(request);}", "after": "public virtual StartGameSessionPlacementResponse StartGameSessionPlacement(StartGameSessionPlacementRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartGameSessionPlacementRequestMarshaller.Instance;options.ResponseUnmarshaller = StartGameSessionPlacementResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8814, "before": "public int getDFASize(int decision) {DFA decisionToDFA = atnSimulator.decisionToDFA[decision];return decisionToDFA.states.size();}", "after": "public int getDFASize(int decision){DFA decisionToDFA = atnSimulator.decisionToDFA[decision];return decisionToDFA.states.Count;}" }, { "index": 8815, "before": "public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {int bytesRemaining = readHeader( data, offset );int pos = offset + 8;remainingData = (bytesRemaining == 0) ? EMPTY : IOUtils.safelyAllocate(bytesRemaining, MAX_RECORD_LENGTH);System.arraycopy( data, pos, remainingData, 0, bytesRemaining );return 8 + bytesRemaining;}", "after": "public override int FillFields(byte[] data, int offset, IEscherRecordFactory recordFactory){int bytesRemaining = ReadHeader(data, offset);int pos = offset + 8;remainingData = new byte[bytesRemaining];Array.Copy(data, pos, remainingData, 0, bytesRemaining);return 8 + bytesRemaining;}" }, { "index": 8816, "before": "public void startFragment(TextFragment newFragment) {foundTerms = new HashSet<>();totalScore = 0;}", "after": "public virtual void StartFragment(TextFragment newFragment){foundTerms = new JCG.HashSet();totalScore = 0;}" }, { "index": 8817, "before": "public boolean equals(ATNConfig other) {if (this == other) {return true;}else if (!(other instanceof LexerATNConfig)) {return false;}LexerATNConfig lexerOther = (LexerATNConfig)other;if (passedThroughNonGreedyDecision != lexerOther.passedThroughNonGreedyDecision) {return false;}if (!ObjectEqualityComparator.INSTANCE.equals(lexerActionExecutor, lexerOther.lexerActionExecutor)) {return false;}return super.equals(other);}", "after": "public override bool Equals(ATNConfig other){if (this == other){return true;}else if (!(other is LexerATNConfig)){return false;}LexerATNConfig lexerOther = (LexerATNConfig)other;if (passedThroughNonGreedyDecision != lexerOther.passedThroughNonGreedyDecision){return false;}if (!(lexerActionExecutor==null ? lexerOther.lexerActionExecutor==null : lexerActionExecutor.Equals(lexerOther.lexerActionExecutor))){return false;}return base.Equals(other);}" }, { "index": 8818, "before": "public DescribeCacheParameterGroupsRequest(String cacheParameterGroupName) {setCacheParameterGroupName(cacheParameterGroupName);}", "after": "public DescribeCacheParameterGroupsRequest(string cacheParameterGroupName){_cacheParameterGroupName = cacheParameterGroupName;}" }, { "index": 8819, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\" [Pattern Formatting]\\n\");buffer.append(\" .fillpattern= \").append(Integer.toHexString(getFillPattern())).append(\"\\n\");buffer.append(\" .fgcoloridx= \").append(Integer.toHexString(getFillForegroundColor())).append(\"\\n\");buffer.append(\" .bgcoloridx= \").append(Integer.toHexString(getFillBackgroundColor())).append(\"\\n\");buffer.append(\" [/Pattern Formatting]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\" [Pattern Formatting]\\n\");buffer.Append(\" .Fillpattern= \").Append(StringUtil.ToHexString((int) FillPattern)).Append(\"\\n\");buffer.Append(\" .fgcoloridx= \").Append(StringUtil.ToHexString(FillForegroundColor)).Append(\"\\n\");buffer.Append(\" .bgcoloridx= \").Append(StringUtil.ToHexString(FillBackgroundColor)).Append(\"\\n\");buffer.Append(\" [/Pattern Formatting]\\n\");return buffer.ToString();}" }, { "index": 8820, "before": "public boolean equals(Object o) {return o instanceof FileKey && path.equals(((FileKey) o).path);}", "after": "public override bool Equals(object o){return o is RepositoryCache.FileKey && path.Equals(((RepositoryCache.FileKey)o).path);}" }, { "index": 8821, "before": "public UntagAttendeeResult untagAttendee(UntagAttendeeRequest request) {request = beforeClientExecution(request);return executeUntagAttendee(request);}", "after": "public virtual UntagAttendeeResponse UntagAttendee(UntagAttendeeRequest request){var options = new InvokeOptions();options.RequestMarshaller = UntagAttendeeRequestMarshaller.Instance;options.ResponseUnmarshaller = UntagAttendeeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8822, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[END]\\n\");buffer.append(\"[/END]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[END]\\n\");buffer.Append(\"[/END]\\n\");return buffer.ToString();}" }, { "index": 8823, "before": "public MultiTerms(Terms[] subs, ReaderSlice[] subSlices) throws IOException { this.subs = subs;this.subSlices = subSlices;assert subs.length > 0 : \"inefficient: don't use MultiTerms over one sub\";boolean _hasFreqs = true;boolean _hasOffsets = true;boolean _hasPositions = true;boolean _hasPayloads = false;for(int i=0;i _termComp = null;Debug.Assert(subs.Length > 0, \"inefficient: don't use MultiTerms over one sub\");bool _hasFreqs = true;bool _hasOffsets = true;bool _hasPositions = true;bool _hasPayloads = false;for (int i = 0; i < subs.Length; i++){if (_termComp == null){_termComp = subs[i].Comparer;}else{IComparer subTermComp = subs[i].Comparer;if (subTermComp != null && !subTermComp.Equals(_termComp)){throw new InvalidOperationException(\"sub-readers have different BytesRef.Comparers; cannot merge\");}}_hasFreqs &= subs[i].HasFreqs;_hasOffsets &= subs[i].HasOffsets;_hasPositions &= subs[i].HasPositions;_hasPayloads |= subs[i].HasPayloads;}termComp = _termComp;hasFreqs = _hasFreqs;hasOffsets = _hasOffsets;hasPositions = _hasPositions;hasPayloads = hasPositions && _hasPayloads; }" }, { "index": 8824, "before": "public DescribeGameSessionPlacementResult describeGameSessionPlacement(DescribeGameSessionPlacementRequest request) {request = beforeClientExecution(request);return executeDescribeGameSessionPlacement(request);}", "after": "public virtual DescribeGameSessionPlacementResponse DescribeGameSessionPlacement(DescribeGameSessionPlacementRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGameSessionPlacementRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGameSessionPlacementResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8825, "before": "public SynonymMap(FST fst, BytesRefHash words, int maxHorizontalContext) {this.fst = fst;this.words = words;this.maxHorizontalContext = maxHorizontalContext;}", "after": "public SynonymMap(FST fst, BytesRefHash words, int maxHorizontalContext){this.fst = fst;this.words = words;this.maxHorizontalContext = maxHorizontalContext;}" }, { "index": 8826, "before": "public DeleteTrialComponentResult deleteTrialComponent(DeleteTrialComponentRequest request) {request = beforeClientExecution(request);return executeDeleteTrialComponent(request);}", "after": "public virtual DeleteTrialComponentResponse DeleteTrialComponent(DeleteTrialComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTrialComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTrialComponentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8827, "before": "public RevisionSyntaxException(String revstr) {this.revstr = revstr;}", "after": "public RevisionSyntaxException(string revstr){this.revstr = revstr;}" }, { "index": 8828, "before": "public void startWorker() {startWorkers(1);}", "after": "public virtual void StartWorker(){StartWorkers(1);}" }, { "index": 8829, "before": "public SubscribeToEventResult subscribeToEvent(SubscribeToEventRequest request) {request = beforeClientExecution(request);return executeSubscribeToEvent(request);}", "after": "public virtual SubscribeToEventResponse SubscribeToEvent(SubscribeToEventRequest request){var options = new InvokeOptions();options.RequestMarshaller = SubscribeToEventRequestMarshaller.Instance;options.ResponseUnmarshaller = SubscribeToEventResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8830, "before": "public PutScheduledUpdateGroupActionResult putScheduledUpdateGroupAction(PutScheduledUpdateGroupActionRequest request) {request = beforeClientExecution(request);return executePutScheduledUpdateGroupAction(request);}", "after": "public virtual PutScheduledUpdateGroupActionResponse PutScheduledUpdateGroupAction(PutScheduledUpdateGroupActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutScheduledUpdateGroupActionRequestMarshaller.Instance;options.ResponseUnmarshaller = PutScheduledUpdateGroupActionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8831, "before": "public int doLogic() throws Exception {if (maxNumSegments == -1) {throw new IllegalStateException(\"required argument (maxNumSegments) was not specified\");}IndexWriter iw = getRunData().getIndexWriter();iw.forceMerge(maxNumSegments);return 1;}", "after": "public override int DoLogic(){if (maxNumSegments == -1){throw new InvalidOperationException(\"required argument (maxNumSegments) was not specified\");}IndexWriter iw = RunData.IndexWriter;iw.ForceMerge(maxNumSegments);return 1;}" }, { "index": 8832, "before": "public String getSheetName(int sheetIndex) {return _uBook.getSheetName(sheetIndex);}", "after": "public String GetSheetName(int sheetIndex){return _uBook.GetSheetName(sheetIndex);}" }, { "index": 8833, "before": "public DescribeConnectionLoaResult describeConnectionLoa(DescribeConnectionLoaRequest request) {request = beforeClientExecution(request);return executeDescribeConnectionLoa(request);}", "after": "public virtual DescribeConnectionLoaResponse DescribeConnectionLoa(DescribeConnectionLoaRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeConnectionLoaRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeConnectionLoaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8834, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[NOTE]\\n\");buffer.append(\" .row = \").append(field_1_row).append(\"\\n\");buffer.append(\" .col = \").append(field_2_col).append(\"\\n\");buffer.append(\" .flags = \").append(field_3_flags).append(\"\\n\");buffer.append(\" .shapeid= \").append(field_4_shapeid).append(\"\\n\");buffer.append(\" .author = \").append(field_6_author).append(\"\\n\");buffer.append(\"[/NOTE]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[NOTE]\\n\");buffer.Append(\" .recordid = 0x\" + StringUtil.ToHexString(Sid) + \", size = \" + RecordSize + \"\\n\");buffer.Append(\" .row = \" + field_1_row + \"\\n\");buffer.Append(\" .col = \" + field_2_col + \"\\n\");buffer.Append(\" .flags = \" + field_3_flags + \"\\n\");buffer.Append(\" .shapeid = \" + field_4_shapeid + \"\\n\");buffer.Append(\" .author = \" + field_6_author + \"\\n\");buffer.Append(\"[/NOTE]\\n\");return buffer.ToString();}" }, { "index": 8835, "before": "public PipedInputStream(PipedOutputStream out, int pipeSize) throws IOException {this(pipeSize);connect(out);}", "after": "public PipedInputStream(java.io.PipedOutputStream @out, int pipeSize) : this(pipeSize){throw new System.NotImplementedException();}" }, { "index": 8836, "before": "public String toString() {return description();}", "after": "public override string ToString(){return GetDescription();}" }, { "index": 8837, "before": "public synchronized Credential getCredential() {if (null == credential && null != icredential) {credential = icredential.fresh();}return credential;}", "after": "public Credential GetCredential(){if (null == _credential && null != iCredentialProvider){_credential = iCredentialProvider.Fresh();}return _credential;}" }, { "index": 8838, "before": "public OptionGroup copyOptionGroup(CopyOptionGroupRequest request) {request = beforeClientExecution(request);return executeCopyOptionGroup(request);}", "after": "public virtual CopyOptionGroupResponse CopyOptionGroup(CopyOptionGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopyOptionGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CopyOptionGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8839, "before": "public InfoSubRecord(RecordInputStream in){field_1_stream_pos = in.readInt();field_2_bucket_sst_offset = in.readShort();field_3_zero = in.readShort();}", "after": "public InfoSubRecord(RecordInputStream in1){field_1_stream_pos = in1.ReadInt();field_2_bucket_sst_offset = in1.ReadShort();field_3_zero = in1.ReadShort();}" }, { "index": 8840, "before": "public TreeFilter clone() {final TreeFilter[] s = new TreeFilter[subfilters.length];for (int i = 0; i < s.length; i++)s[i] = subfilters[i].clone();return new List(s);}", "after": "public override TreeFilter Clone(){TreeFilter[] s = new TreeFilter[subfilters.Length];for (int i = 0; i < s.Length; i++){s[i] = subfilters[i].Clone();}return new OrTreeFilter.List(s);}" }, { "index": 8841, "before": "public SendAlexaOfferToMasterResult sendAlexaOfferToMaster(SendAlexaOfferToMasterRequest request) {request = beforeClientExecution(request);return executeSendAlexaOfferToMaster(request);}", "after": "public virtual SendAlexaOfferToMasterResponse SendAlexaOfferToMaster(SendAlexaOfferToMasterRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendAlexaOfferToMasterRequestMarshaller.Instance;options.ResponseUnmarshaller = SendAlexaOfferToMasterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8842, "before": "public DescribeEndpointConfigResult describeEndpointConfig(DescribeEndpointConfigRequest request) {request = beforeClientExecution(request);return executeDescribeEndpointConfig(request);}", "after": "public virtual DescribeEndpointConfigResponse DescribeEndpointConfig(DescribeEndpointConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEndpointConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEndpointConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8843, "before": "public PushCommand setProgressMonitor(ProgressMonitor monitor) {checkCallable();if (monitor == null) {monitor = NullProgressMonitor.INSTANCE;}this.monitor = monitor;return this;}", "after": "public virtual NGit.Api.PushCommand SetProgressMonitor(ProgressMonitor monitor){CheckCallable();this.monitor = monitor;return this;}" }, { "index": 8844, "before": "public FloatBuffer get(float[] dst, int dstOffset, int floatCount) {byteBuffer.limit(limit * SizeOf.FLOAT);byteBuffer.position(position * SizeOf.FLOAT);if (byteBuffer instanceof DirectByteBuffer) {((DirectByteBuffer) byteBuffer).get(dst, dstOffset, floatCount);} else {((HeapByteBuffer) byteBuffer).get(dst, dstOffset, floatCount);}this.position += floatCount;return this;}", "after": "public override java.nio.FloatBuffer get(float[] dst, int dstOffset, int floatCount){byteBuffer.limit(_limit * libcore.io.SizeOf.FLOAT);byteBuffer.position(_position * libcore.io.SizeOf.FLOAT);if (byteBuffer is java.nio.DirectByteBuffer){((java.nio.DirectByteBuffer)byteBuffer).get(dst, dstOffset, floatCount);}else{((java.nio.HeapByteBuffer)byteBuffer).get(dst, dstOffset, floatCount);}this._position += floatCount;return this;}" }, { "index": 8845, "before": "public boolean shouldBeRecursive() {for (TreeFilter f : subfilters)if (f.shouldBeRecursive())return true;return false;}", "after": "public override bool ShouldBeRecursive(){foreach (TreeFilter f in subfilters){if (f.ShouldBeRecursive()){return true;}}return false;}" }, { "index": 8846, "before": "public static void putUnicodeLE(String input, LittleEndianOutput out) {byte[] bytes = input.getBytes(UTF16LE);out.write(bytes);}", "after": "public static void PutUnicodeLE(String input, ILittleEndianOutput out1){byte[] bytes = UTF16LE.GetBytes(input);out1.Write(bytes);}" }, { "index": 8847, "before": "public ReservedNode acceptReservedNodeExchange(AcceptReservedNodeExchangeRequest request) {request = beforeClientExecution(request);return executeAcceptReservedNodeExchange(request);}", "after": "public virtual AcceptReservedNodeExchangeResponse AcceptReservedNodeExchange(AcceptReservedNodeExchangeRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptReservedNodeExchangeRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptReservedNodeExchangeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8848, "before": "public ClusterSecurityGroup authorizeClusterSecurityGroupIngress(AuthorizeClusterSecurityGroupIngressRequest request) {request = beforeClientExecution(request);return executeAuthorizeClusterSecurityGroupIngress(request);}", "after": "public virtual AuthorizeClusterSecurityGroupIngressResponse AuthorizeClusterSecurityGroupIngress(AuthorizeClusterSecurityGroupIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = AuthorizeClusterSecurityGroupIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = AuthorizeClusterSecurityGroupIngressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8849, "before": "public ListVaultsResult listVaults(ListVaultsRequest request) {request = beforeClientExecution(request);return executeListVaults(request);}", "after": "public virtual ListVaultsResponse ListVaults(ListVaultsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListVaultsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListVaultsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8850, "before": "public void add(UDFFinder toolPack){_usedToolPacks.add(toolPack);}", "after": "public void Add(UDFFinder toolPack){_usedToolPacks.Add(toolPack);}" }, { "index": 8851, "before": "public CreateRealtimeEndpointResult createRealtimeEndpoint(CreateRealtimeEndpointRequest request) {request = beforeClientExecution(request);return executeCreateRealtimeEndpoint(request);}", "after": "public virtual CreateRealtimeEndpointResponse CreateRealtimeEndpoint(CreateRealtimeEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRealtimeEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRealtimeEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8852, "before": "public final void recurseClearCachedFormulaResults(IEvaluationListener listener) {if (listener == null) {recurseClearCachedFormulaResults();} else {listener.onClearCachedValue(this);recurseClearCachedFormulaResults(listener, 1);}}", "after": "public void RecurseClearCachedFormulaResults(IEvaluationListener listener){if (listener == null){RecurseClearCachedFormulaResults();}else{listener.OnClearCachedValue(this);RecurseClearCachedFormulaResults(listener, 1);}}" }, { "index": 8853, "before": "public PageBreakRecord(RecordInputStream in) {final int nBreaks = in.readShort();_breaks.ensureCapacity(nBreaks + 2);for(int k = 0; k < nBreaks; k++) {_breaks.add(new Break(in));}initMap();}", "after": "public PageBreakRecord(RecordInputStream in1){int nBreaks = in1.ReadShort();_breaks = new List(nBreaks + 2);_breakMap = new Hashtable();for (int k = 0; k < nBreaks; k++){Break br = new Break(in1);_breaks.Add(br);_breakMap[br.main] = br;}}" }, { "index": 8854, "before": "public String toString() {return attSource.toString();}", "after": "public override string ToString(){return Image;}" }, { "index": 8855, "before": "public void add(double value) {ensureCapacity(_count + 1);_array[_count] = value;_count++;}", "after": "public void Add(double[] values){int AddLen = values.Length;EnsureCapacity(_Count + AddLen);Array.Copy(values, 0, _array, _Count, AddLen);_Count += AddLen;}" }, { "index": 8856, "before": "public FileInputStream(String path) throws FileNotFoundException {this(new File(path));}", "after": "public FileInputStream(string path) : this(new java.io.File(path)){throw new System.NotImplementedException();}" }, { "index": 8857, "before": "public SetDataRetrievalPolicyResult setDataRetrievalPolicy(SetDataRetrievalPolicyRequest request) {request = beforeClientExecution(request);return executeSetDataRetrievalPolicy(request);}", "after": "public virtual SetDataRetrievalPolicyResponse SetDataRetrievalPolicy(SetDataRetrievalPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetDataRetrievalPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = SetDataRetrievalPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8858, "before": "public ScoreDoc(int doc, float score, int shardIndex) {this.doc = doc;this.score = score;this.shardIndex = shardIndex;}", "after": "public ScoreDoc(int doc, float score, int shardIndex){this.Doc = doc;this.Score = score;this.ShardIndex = shardIndex;}" }, { "index": 8859, "before": "public SpanNotQuery(SpanQuery include, SpanQuery exclude, int pre, int post) {this.include = Objects.requireNonNull(include);this.exclude = Objects.requireNonNull(exclude);this.pre = pre;this.post = post;if (include.getField() != null && exclude.getField() != null && !include.getField().equals(exclude.getField()))throw new IllegalArgumentException(\"Clauses must have same field.\");}", "after": "public SpanNotQuery(SpanQuery include, SpanQuery exclude, int pre, int post){this.include = include;this.exclude = exclude;this.pre = (pre >= 0) ? pre : 0;this.post = (post >= 0) ? post : 0;if (include.Field != null && exclude.Field != null && !include.Field.Equals(exclude.Field, StringComparison.Ordinal)){throw new System.ArgumentException(\"Clauses must have same field.\");}}" }, { "index": 8860, "before": "public void visitContainedRecords(RecordVisitor rv) {if (_validationList.isEmpty()) {return;}rv.visitRecord(_headerRec);_validationList.forEach(rv::visitRecord);}", "after": "public override void VisitContainedRecords(RecordVisitor rv){if (_validationList.Count == 0){return;}rv.VisitRecord(_headerRec);for (int i = 0; i < _validationList.Count; i++){rv.VisitRecord((Record)_validationList[i]);}}" }, { "index": 8861, "before": "public void addArea(int rowFrom, int colFrom, int rowTo, int colTo) {_mergedRegions.add(new CellRangeAddress(rowFrom, rowTo, colFrom, colTo));}", "after": "public void AddArea(int rowFrom, int colFrom, int rowTo, int colTo){_mergedRegions.Add(new CellRangeAddress(rowFrom, rowTo, colFrom, colTo));}" }, { "index": 8862, "before": "public HungarianLightStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public HungarianLightStemFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 8863, "before": "public int readDataSize() {return _lei.readUShort();}", "after": "public int ReadDataSize(){return _lei.ReadUShort();}" }, { "index": 8864, "before": "public DescribeAdjustmentTypesResult describeAdjustmentTypes(DescribeAdjustmentTypesRequest request) {request = beforeClientExecution(request);return executeDescribeAdjustmentTypes(request);}", "after": "public virtual DescribeAdjustmentTypesResponse DescribeAdjustmentTypes(DescribeAdjustmentTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAdjustmentTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAdjustmentTypesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8865, "before": "public DefineSuggesterResult defineSuggester(DefineSuggesterRequest request) {request = beforeClientExecution(request);return executeDefineSuggester(request);}", "after": "public virtual DefineSuggesterResponse DefineSuggester(DefineSuggesterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DefineSuggesterRequestMarshaller.Instance;options.ResponseUnmarshaller = DefineSuggesterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8866, "before": "public GetJourneyDateRangeKpiResult getJourneyDateRangeKpi(GetJourneyDateRangeKpiRequest request) {request = beforeClientExecution(request);return executeGetJourneyDateRangeKpi(request);}", "after": "public virtual GetJourneyDateRangeKpiResponse GetJourneyDateRangeKpi(GetJourneyDateRangeKpiRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetJourneyDateRangeKpiRequestMarshaller.Instance;options.ResponseUnmarshaller = GetJourneyDateRangeKpiResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8867, "before": "public PushCommand add(String nameOrSpec) {if (0 <= nameOrSpec.indexOf(':')) {refSpecs.add(new RefSpec(nameOrSpec));} else {Ref src;try {src = repo.findRef(nameOrSpec);} catch (IOException e) {throw new JGitInternalException(JGitText.get().exceptionCaughtDuringExecutionOfPushCommand,e);}if (src != null)add(src);}return this;}", "after": "public virtual NGit.Api.PushCommand Add(string nameOrSpec){if (0 <= nameOrSpec.IndexOf(':')){refSpecs.AddItem(new RefSpec(nameOrSpec));}else{Ref src;try{src = repo.GetRef(nameOrSpec);}catch (IOException e){throw new JGitInternalException(JGitText.Get().exceptionCaughtDuringExecutionOfPushCommand, e);}if (src != null){Add(src);}}return this;}" }, { "index": 8868, "before": "public DescribeDataSourceResult describeDataSource(DescribeDataSourceRequest request) {request = beforeClientExecution(request);return executeDescribeDataSource(request);}", "after": "public virtual DescribeDataSourceResponse DescribeDataSource(DescribeDataSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDataSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDataSourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8869, "before": "public AutoCRLFInputStream(InputStream in, boolean detectBinary) {this.in = in;this.detectBinary = detectBinary;}", "after": "public AutoCRLFInputStream(InputStream @in, bool detectBinary){this.@in = @in;this.detectBinary = detectBinary;}" }, { "index": 8870, "before": "public byte[] getRawRecord(){return _rawData;}", "after": "public byte[] GetRawRecord(){return _rawData;}" }, { "index": 8871, "before": "public LongBuffer put(LongBuffer buf) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.LongBuffer put(java.nio.LongBuffer buf){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 8872, "before": "@Override public E set(int location, E object) {synchronized (mutex) {return list.set(location, object);}}", "after": "public virtual E set(int location, E @object){lock (mutex){return list.set(location, @object);}}" }, { "index": 8873, "before": "public void jumpDrawablesToCurrentState() {super.jumpDrawablesToCurrentState();if (mProgressDrawable != null) mProgressDrawable.jumpToCurrentState();if (mIndeterminateDrawable != null) mIndeterminateDrawable.jumpToCurrentState();}", "after": "public override void jumpDrawablesToCurrentState(){base.jumpDrawablesToCurrentState();if (mProgressDrawable != null){mProgressDrawable.jumpToCurrentState();}if (mIndeterminateDrawable != null){mIndeterminateDrawable.jumpToCurrentState();}}" }, { "index": 8874, "before": "public boolean contains(Object object) {Link link = voidLink.next;if (object != null) {while (link != voidLink) {if (object.equals(link.data)) {return true;}link = link.next;}} else {while (link != voidLink) {if (link.data == null) {return true;}link = link.next;}}return false;}", "after": "public override bool contains(object @object){java.util.LinkedList.Link link = voidLink.next;if (@object != null){while (link != voidLink){if (@object.Equals(link.data)){return true;}link = link.next;}}else{while (link != voidLink){if ((object)link.data == null){return true;}link = link.next;}}return false;}" }, { "index": 8875, "before": "public static double[] copyOf(double[] original, int newLength) {if (newLength < 0) {throw new NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}", "after": "public static double[] copyOf(double[] original, int newLength){if (newLength < 0){throw new java.lang.NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}" }, { "index": 8876, "before": "public IndexSearcher acquire(long version) {ensureOpen();final SearcherTracker tracker = searchers.get(version);if (tracker != null &&tracker.searcher.getIndexReader().tryIncRef()) {return tracker.searcher;}return null;}", "after": "public virtual IndexSearcher Acquire(long version){EnsureOpen();Lazy tracker;if (_searchers.TryGetValue(version, out tracker) && tracker.IsValueCreated && tracker.Value.Searcher.IndexReader.TryIncRef()){return tracker.Value.Searcher;}return null;}" }, { "index": 8877, "before": "public void setDateToBeFormatted(double date) {this.dateToBeFormatted = date;}", "after": "public void SetDateToBeFormatted(double date){this.dateToBeFormatted = date;}" }, { "index": 8878, "before": "public CreateIntegrationResponseResult createIntegrationResponse(CreateIntegrationResponseRequest request) {request = beforeClientExecution(request);return executeCreateIntegrationResponse(request);}", "after": "public virtual CreateIntegrationResponseResponse CreateIntegrationResponse(CreateIntegrationResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIntegrationResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIntegrationResponseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8879, "before": "public PhraseWildcardQuery build() {return new PhraseWildcardQuery(field, phraseTerms, slop, maxMultiTermExpansions, segmentOptimizationEnabled);}", "after": "public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}" }, { "index": 8880, "before": "public synchronized void dropChanges() {pendingDeletes.dropChanges();dropMergingUpdates();}", "after": "public virtual void DropChanges(){lock (this){pendingDeleteCount = 0;DropMergingUpdates();}}" }, { "index": 8881, "before": "public static int footerLength() {return 16;}", "after": "public static int FooterLength(){return 16;}" }, { "index": 8882, "before": "public DeleteDBParameterGroupRequest(String dBParameterGroupName) {setDBParameterGroupName(dBParameterGroupName);}", "after": "public DeleteDBParameterGroupRequest(string dbParameterGroupName){_dbParameterGroupName = dbParameterGroupName;}" }, { "index": 8883, "before": "public GetDedicatedIpsResult getDedicatedIps(GetDedicatedIpsRequest request) {request = beforeClientExecution(request);return executeGetDedicatedIps(request);}", "after": "public virtual GetDedicatedIpsResponse GetDedicatedIps(GetDedicatedIpsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDedicatedIpsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDedicatedIpsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8884, "before": "public DeleteArchiveResult deleteArchive(DeleteArchiveRequest request) {request = beforeClientExecution(request);return executeDeleteArchive(request);}", "after": "public virtual DeleteArchiveResponse DeleteArchive(DeleteArchiveRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteArchiveRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteArchiveResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8885, "before": "public ResourceRecordSet(String name, RRType type) {setName(name);setType(type.toString());}", "after": "public ResourceRecordSet(string name, RRType type){_name = name;_type = type;}" }, { "index": 8886, "before": "public ArabicNormalizationFilter(TokenStream input) {super(input);}", "after": "public ArabicNormalizationFilter(TokenStream input): base(input){termAtt = AddAttribute();}" }, { "index": 8887, "before": "public ReceiveMessageResult receiveMessage(ReceiveMessageRequest request) {request = beforeClientExecution(request);return executeReceiveMessage(request);}", "after": "public virtual ReceiveMessageResponse ReceiveMessage(ReceiveMessageRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReceiveMessageRequestMarshaller.Instance;options.ResponseUnmarshaller = ReceiveMessageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8888, "before": "public CharSequence getFully(CharSequence key) {Row now = getRow(root);int w;Cell c;int cmd = -1;StrEnum e = new StrEnum(key, forward);Character ch = null;Character aux = null;for (int i = 0; i < key.length();) {ch = e.next();i++;c = now.at(ch);if (c == null) {return null;}cmd = c.cmd;for (int skip = c.skip; skip > 0; skip--) {if (i < key.length()) {aux = e.next();} else {return null;}i++;}w = now.getRef(ch);if (w >= 0) {now = getRow(w);} else if (i < key.length()) {return null;}}return (cmd == -1) ? null : cmds.get(cmd);}", "after": "public virtual string GetFully(string key){Row now = GetRow(root);int w;Cell c;int cmd = -1;StrEnum e = new StrEnum(key, forward);char ch;char aux;for (int i = 0; i < key.Length;){ch = e.Next();i++;c = now.At(ch);if (c == null){return null;}cmd = c.cmd;for (int skip = c.skip; skip > 0; skip--){if (i < key.Length){aux = e.Next();}else{return null;}i++;}w = now.GetRef(ch);if (w >= 0){now = GetRow(w);}else if (i < key.Length){return null;}}return (cmd == -1) ? null : cmds[cmd];}" }, { "index": 8889, "before": "public Span[] getNames(String[] words) {Span[] names = nameFinder.find(words);return names;}", "after": "public virtual Span[] GetNames(string[] words){Span[] names = nameFinder.find(words);return names;}" }, { "index": 8890, "before": "public void reset() {used = false;}", "after": "public override void Reset(){used = false;}" }, { "index": 8891, "before": "public AnalyticsPrefixPredicate(String prefix) {this.prefix = prefix;}", "after": "public AnalyticsPrefixPredicate(string prefix){this.prefix = prefix;}" }, { "index": 8892, "before": "public byte readByte() {return (byte) readUByte();}", "after": "public override int ReadByte(){return delegate1.ReadByte();}" }, { "index": 8893, "before": "public CreateImportJobResult createImportJob(CreateImportJobRequest request) {request = beforeClientExecution(request);return executeCreateImportJob(request);}", "after": "public virtual CreateImportJobResponse CreateImportJob(CreateImportJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateImportJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateImportJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8894, "before": "public byte[] build() {ByteArrayOutputStream os = new ByteArrayOutputStream();try (OutputStreamWriter w = new OutputStreamWriter(os,UTF_8)) {w.write(\"object \"); getObjectId().copyTo(w);w.write('\\n');w.write(\"type \"); w.write(Constants.typeString(getObjectType()));w.write(\"\\n\"); w.write(\"tag \"); w.write(getTag());w.write(\"\\n\"); if (getTagger() != null) {w.write(\"tagger \"); w.write(getTagger().toExternalString());w.write('\\n');}w.write('\\n');if (getMessage() != null)w.write(getMessage());} catch (IOException err) {throw new RuntimeException(err);}return os.toByteArray();}", "after": "public virtual byte[] Build(){ByteArrayOutputStream os = new ByteArrayOutputStream();OutputStreamWriter w = new OutputStreamWriter(os, Constants.CHARSET);try{w.Write(\"object \");GetObjectId().CopyTo(w);w.Write('\\n');w.Write(\"type \");w.Write(Constants.TypeString(GetObjectType()));w.Write(\"\\n\");w.Write(\"tag \");w.Write(GetTag());w.Write(\"\\n\");if (GetTagger() != null){w.Write(\"tagger \");w.Write(GetTagger().ToExternalString());w.Write('\\n');}w.Write('\\n');if (GetMessage() != null){w.Write(GetMessage());}w.Close();}catch (IOException err){throw new RuntimeException(err);}return os.ToByteArray();}" }, { "index": 8895, "before": "public boolean equals(ATNConfig a, ATNConfig b) {if ( a==b ) return true;if ( a==null || b==null ) return false;return a.state.stateNumber==b.state.stateNumber&& a.alt==b.alt&& a.semanticContext.equals(b.semanticContext);}", "after": "public bool Equals(ATNConfig a, ATNConfig b){if (a == b) return true;if (a == null || b == null) return false;return a.state.stateNumber == b.state.stateNumber&& a.alt == b.alt&& a.semanticContext.Equals(b.semanticContext);}" }, { "index": 8896, "before": "public CreateMemberResult createMember(CreateMemberRequest request) {request = beforeClientExecution(request);return executeCreateMember(request);}", "after": "public virtual CreateMemberResponse CreateMember(CreateMemberRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateMemberRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateMemberResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8897, "before": "public void removeParCount() {remove1stProperty(PropertyIDMap.PID_PARCOUNT);}", "after": "public void RemoveParCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_PARCOUNT);}" }, { "index": 8898, "before": "public DeleteDeliveryStreamResult deleteDeliveryStream(DeleteDeliveryStreamRequest request) {request = beforeClientExecution(request);return executeDeleteDeliveryStream(request);}", "after": "public virtual DeleteDeliveryStreamResponse DeleteDeliveryStream(DeleteDeliveryStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDeliveryStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDeliveryStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8899, "before": "public static RevFilter create(int maxCount) {if (maxCount < 0)throw new IllegalArgumentException(JGitText.get().maxCountMustBeNonNegative);return new MaxCountRevFilter(maxCount);}", "after": "public static RevFilter Create(int maxCount){if (maxCount < 0){throw new ArgumentException(JGitText.Get().maxCountMustBeNonNegative);}return new NGit.Revwalk.Filter.MaxCountRevFilter(maxCount);}" }, { "index": 8900, "before": "public PeerVpcResult peerVpc(PeerVpcRequest request) {request = beforeClientExecution(request);return executePeerVpc(request);}", "after": "public virtual PeerVpcResponse PeerVpc(PeerVpcRequest request){var options = new InvokeOptions();options.RequestMarshaller = PeerVpcRequestMarshaller.Instance;options.ResponseUnmarshaller = PeerVpcResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8901, "before": "public GetResolverRuleResult getResolverRule(GetResolverRuleRequest request) {request = beforeClientExecution(request);return executeGetResolverRule(request);}", "after": "public virtual GetResolverRuleResponse GetResolverRule(GetResolverRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetResolverRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = GetResolverRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8902, "before": "public DeleteScalingPolicyResult deleteScalingPolicy(DeleteScalingPolicyRequest request) {request = beforeClientExecution(request);return executeDeleteScalingPolicy(request);}", "after": "public virtual DeleteScalingPolicyResponse DeleteScalingPolicy(DeleteScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteScalingPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8903, "before": "public TokenStream create(TokenStream input) {return new SwedishLightStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new SwedishLightStemFilter(input);}" }, { "index": 8904, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getRowNumber());out.writeShort(getFirstCol() == -1 ? (short)0 : getFirstCol());out.writeShort(getLastCol() == -1 ? (short)0 : getLastCol());out.writeShort(getHeight());out.writeShort(getOptimize());out.writeShort(field_6_reserved);out.writeShort(getOptionFlags());out.writeShort(getOptionFlags2());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(RowNumber);out1.WriteShort(FirstCol == -1 ? (short)0 : FirstCol);out1.WriteShort(LastCol == -1 ? (short)0 : LastCol);out1.WriteShort(Height);out1.WriteShort(Optimize);out1.WriteShort(field_6_reserved);out1.WriteShort(OptionFlags);out1.WriteShort(OptionFlags2);}" }, { "index": 8905, "before": "public GetCredentialsForIdentityResult getCredentialsForIdentity(GetCredentialsForIdentityRequest request) {request = beforeClientExecution(request);return executeGetCredentialsForIdentity(request);}", "after": "public virtual GetCredentialsForIdentityResponse GetCredentialsForIdentity(GetCredentialsForIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCredentialsForIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCredentialsForIdentityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8906, "before": "public DeleteFileSystemResult deleteFileSystem(DeleteFileSystemRequest request) {request = beforeClientExecution(request);return executeDeleteFileSystem(request);}", "after": "public virtual DeleteFileSystemResponse DeleteFileSystem(DeleteFileSystemRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFileSystemRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFileSystemResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8907, "before": "public DeleteGameServerGroupResult deleteGameServerGroup(DeleteGameServerGroupRequest request) {request = beforeClientExecution(request);return executeDeleteGameServerGroup(request);}", "after": "public virtual DeleteGameServerGroupResponse DeleteGameServerGroup(DeleteGameServerGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGameServerGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGameServerGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8908, "before": "public AutoCRLFOutputStream(OutputStream out) {this(out, true);}", "after": "public AutoCRLFOutputStream(OutputStream @out){this.@out = @out;}" }, { "index": 8909, "before": "public DescribeLocationsResult describeLocations(DescribeLocationsRequest request) {request = beforeClientExecution(request);return executeDescribeLocations(request);}", "after": "public virtual DescribeLocationsResponse DescribeLocations(DescribeLocationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLocationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLocationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8910, "before": "public CopyWorkspaceImageResult copyWorkspaceImage(CopyWorkspaceImageRequest request) {request = beforeClientExecution(request);return executeCopyWorkspaceImage(request);}", "after": "public virtual CopyWorkspaceImageResponse CopyWorkspaceImage(CopyWorkspaceImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopyWorkspaceImageRequestMarshaller.Instance;options.ResponseUnmarshaller = CopyWorkspaceImageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8911, "before": "public UpdateAliasResult updateAlias(UpdateAliasRequest request) {request = beforeClientExecution(request);return executeUpdateAlias(request);}", "after": "public virtual UpdateAliasResponse UpdateAlias(UpdateAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAliasResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8912, "before": "public static final int nextLF(byte[] b, int ptr, char chrA) {final int sz = b.length;while (ptr < sz) {final byte c = b[ptr++];if (c == chrA || c == '\\n')return ptr;}return ptr;}", "after": "public static int NextLF(byte[] b, int ptr, char chrA){int sz = b.Length;while (ptr < sz){byte c = b[ptr++];if (c == chrA || c == '\\n'){return ptr;}}return ptr;}" }, { "index": 8913, "before": "public static long checkFooter(ChecksumIndexInput in) throws IOException {validateFooter(in);long actualChecksum = in.getChecksum();long expectedChecksum = readCRC(in);if (expectedChecksum != actualChecksum) {throw new CorruptIndexException(\"checksum failed (hardware problem?) : expected=\" + Long.toHexString(expectedChecksum) +\" actual=\" + Long.toHexString(actualChecksum), in);}return actualChecksum;}", "after": "public static long CheckFooter(ChecksumIndexInput @in){ValidateFooter(@in);long actualChecksum = @in.Checksum;long expectedChecksum = @in.ReadInt64();if (expectedChecksum != actualChecksum){throw new System.IO.IOException(\"checksum failed (hardware problem?) : expected=\" + expectedChecksum.ToString(\"x\") + \" actual=\" + actualChecksum.ToString(\"x\") + \" (resource=\" + @in + \")\");}if (@in.GetFilePointer() != @in.Length){throw new System.IO.IOException(\"did not read all bytes from file: read \" + @in.GetFilePointer() + \" vs size \" + @in.Length + \" (resource: \" + @in + \")\");}return actualChecksum;}" }, { "index": 8914, "before": "public GetLoadBalancersResult getLoadBalancers(GetLoadBalancersRequest request) {request = beforeClientExecution(request);return executeGetLoadBalancers(request);}", "after": "public virtual GetLoadBalancersResponse GetLoadBalancers(GetLoadBalancersRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetLoadBalancersRequestMarshaller.Instance;options.ResponseUnmarshaller = GetLoadBalancersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8915, "before": "public GetRepoListByNamespaceRequest() {super(\"cr\", \"2016-06-07\", \"GetRepoListByNamespace\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]\");setMethod(MethodType.GET);}", "after": "public GetRepoListByNamespaceRequest(): base(\"cr\", \"2016-06-07\", \"GetRepoListByNamespace\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]\";Method = MethodType.GET;}" }, { "index": 8916, "before": "public boolean add(QueryNodeProcessor processor) {boolean added = this.processors.add(processor);if (added) {processor.setQueryConfigHandler(this.queryConfig);}return added;}", "after": "public virtual bool Add(IQueryNodeProcessor processor){this.processors.Add(processor);bool added = processors.Contains(processor);if (added){processor.SetQueryConfigHandler(this.queryConfig);}return added;}" }, { "index": 8917, "before": "public PutEventStreamResult putEventStream(PutEventStreamRequest request) {request = beforeClientExecution(request);return executePutEventStream(request);}", "after": "public virtual PutEventStreamResponse PutEventStream(PutEventStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutEventStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = PutEventStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8918, "before": "public int getRenameLimit() {return renameLimit;}", "after": "public virtual int GetRenameLimit(){return renameLimit;}" }, { "index": 8919, "before": "public char next() {if (++index >= limit) {index = limit;return DONE;} else {return current();}}", "after": "public override char Next(){if (++index >= limit){index = limit;return Done;}else{return Current;}}" }, { "index": 8920, "before": "public final ObjectId getDeltaBaseId() {return deltaBase;}", "after": "public virtual ObjectId GetDeltaBaseId(){return deltaBase;}" }, { "index": 8921, "before": "public FieldType(IndexableFieldType ref) {this.stored = ref.stored();this.tokenized = ref.tokenized();this.storeTermVectors = ref.storeTermVectors();this.storeTermVectorOffsets = ref.storeTermVectorOffsets();this.storeTermVectorPositions = ref.storeTermVectorPositions();this.storeTermVectorPayloads = ref.storeTermVectorPayloads();this.omitNorms = ref.omitNorms();this.indexOptions = ref.indexOptions();this.docValuesType = ref.docValuesType();this.dimensionCount = ref.pointDimensionCount();this.indexDimensionCount = ref.pointIndexDimensionCount();this.dimensionNumBytes = ref.pointNumBytes();if (ref.getAttributes() != null) {this.attributes = new HashMap<>(ref.getAttributes());}}", "after": "public FieldType(FieldType @ref){this.indexed = @ref.IsIndexed;this.stored = @ref.IsStored;this.tokenized = @ref.IsTokenized;this.storeTermVectors = @ref.StoreTermVectors;this.storeTermVectorOffsets = @ref.StoreTermVectorOffsets;this.storeTermVectorPositions = @ref.StoreTermVectorPositions;this.storeTermVectorPayloads = @ref.StoreTermVectorPayloads;this.omitNorms = @ref.OmitNorms;this.indexOptions = @ref.IndexOptions;this.docValueType = @ref.DocValueType;this.numericType = @ref.NumericType;}" }, { "index": 8922, "before": "public RestoreWorkspaceResult restoreWorkspace(RestoreWorkspaceRequest request) {request = beforeClientExecution(request);return executeRestoreWorkspace(request);}", "after": "public virtual RestoreWorkspaceResponse RestoreWorkspace(RestoreWorkspaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = RestoreWorkspaceRequestMarshaller.Instance;options.ResponseUnmarshaller = RestoreWorkspaceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8923, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[CODEPAGE]\\n\");buffer.append(\" .codepage = \").append(Integer.toHexString(getCodepage())).append(\"\\n\");buffer.append(\"[/CODEPAGE]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[CODEPAGE]\\n\");buffer.Append(\" .codepage = \").Append(StringUtil.ToHexString(Codepage)).Append(\"\\n\");buffer.Append(\"[/CODEPAGE]\\n\");return buffer.ToString();}" }, { "index": 8924, "before": "public GetRepoTagsRequest() {super(\"cr\", \"2016-06-07\", \"GetRepoTags\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/tags\");setMethod(MethodType.GET);}", "after": "public GetRepoTagsRequest(): base(\"cr\", \"2016-06-07\", \"GetRepoTags\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/tags\";Method = MethodType.GET;}" }, { "index": 8925, "before": "public ProtectRecord clone() {return copy();}", "after": "public override Object Clone(){return new ProtectRecord(_options);}" }, { "index": 8926, "before": "public ModifyDBParameterGroupResult modifyDBParameterGroup(ModifyDBParameterGroupRequest request) {request = beforeClientExecution(request);return executeModifyDBParameterGroup(request);}", "after": "public virtual ModifyDBParameterGroupResponse ModifyDBParameterGroup(ModifyDBParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8927, "before": "public QueryParserConfig build() {return new QueryParserConfig(this);}", "after": "public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}" }, { "index": 8928, "before": "public Set getSections() {return getState().getSections();}", "after": "public virtual ICollection GetSections(){return GetState().GetSections();}" }, { "index": 8929, "before": "public UpdateProxySessionResult updateProxySession(UpdateProxySessionRequest request) {request = beforeClientExecution(request);return executeUpdateProxySession(request);}", "after": "public virtual UpdateProxySessionResponse UpdateProxySession(UpdateProxySessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateProxySessionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateProxySessionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8930, "before": "public double getAvp() {return maxGoodPoints==0 ? 0 : pReleventSum/maxGoodPoints;}", "after": "public virtual double GetAvp(){return maxGoodPoints == 0 ? 0 : pReleventSum / maxGoodPoints;}" }, { "index": 8931, "before": "public ListCompatibleImagesResult listCompatibleImages(ListCompatibleImagesRequest request) {request = beforeClientExecution(request);return executeListCompatibleImages(request);}", "after": "public virtual ListCompatibleImagesResponse ListCompatibleImages(ListCompatibleImagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListCompatibleImagesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListCompatibleImagesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8932, "before": "public int getSourceEnd() {Region r = outRegion;return r.sourceStart + r.length;}", "after": "public virtual int GetSourceEnd(){Region r = currentSource.regionList;return r.sourceStart + r.length;}" }, { "index": 8933, "before": "public int read() {if (pos < size) {return s.charAt(pos++);} else {s = null;return -1;}}", "after": "public override int Read(){char[] result = new char[1];if (Read(result, 0, 1, false) != -1){return result[0];}return -1;}" }, { "index": 8934, "before": "public GetMediaForFragmentListResult getMediaForFragmentList(GetMediaForFragmentListRequest request) {request = beforeClientExecution(request);return executeGetMediaForFragmentList(request);}", "after": "public virtual GetMediaForFragmentListResponse GetMediaForFragmentList(GetMediaForFragmentListRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMediaForFragmentListRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMediaForFragmentListResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8935, "before": "public BlendedTermQuery build() {return new BlendedTermQuery(ArrayUtil.copyOfSubArray(terms, 0, numTerms),ArrayUtil.copyOfSubArray(boosts, 0, numTerms),ArrayUtil.copyOfSubArray(contexts, 0, numTerms),rewriteMethod);}", "after": "public override WAH8DocIdSet Build(){if (this.wordNum != -1){AddWord(wordNum, (byte)word);}return base.Build();}" }, { "index": 8936, "before": "public void write(byte[] buffer, int offset, int length) throws IOException {checkWritePrimitiveTypes();primitiveTypes.write(buffer, offset, length);}", "after": "public override void write(byte[] buffer, int offset, int length){throw new System.NotImplementedException();}" }, { "index": 8937, "before": "public ModifyScheduledActionResult modifyScheduledAction(ModifyScheduledActionRequest request) {request = beforeClientExecution(request);return executeModifyScheduledAction(request);}", "after": "public virtual ModifyScheduledActionResponse ModifyScheduledAction(ModifyScheduledActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyScheduledActionRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyScheduledActionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8938, "before": "public CreateEventRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"CreateEvent\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public CreateEventRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"CreateEvent\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 8939, "before": "public DeleteDirectoryResult deleteDirectory(DeleteDirectoryRequest request) {request = beforeClientExecution(request);return executeDeleteDirectory(request);}", "after": "public virtual DeleteDirectoryResponse DeleteDirectory(DeleteDirectoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDirectoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDirectoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8940, "before": "public static RevFilter create(RevFilter a, RevFilter b) {if (a == ALL)return b;if (b == ALL)return a;return new Binary(a, b);}", "after": "public static RevFilter Create(RevFilter a, RevFilter b){if (a == ALL){return b;}if (b == ALL){return a;}return new AndRevFilter.Binary(a, b);}" }, { "index": 8941, "before": "public PasswordRecord(int password) {field_1_password = password;}", "after": "public PasswordRecord(int password){field_1_password = password;}" }, { "index": 8942, "before": "public CzechStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public CzechStemFilterFactory(IDictionary args) : base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 8943, "before": "public CloseIgnoringInputStream(InputStream in) {super(in);}", "after": "public CloseIgnoringInputStream(Stream stream){_is = stream;}" }, { "index": 8944, "before": "public Snapshot modifyClusterSnapshot(ModifyClusterSnapshotRequest request) {request = beforeClientExecution(request);return executeModifyClusterSnapshot(request);}", "after": "public virtual ModifyClusterSnapshotResponse ModifyClusterSnapshot(ModifyClusterSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClusterSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClusterSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8945, "before": "public boolean inErrorRecoveryMode(Parser recognizer) {return errorRecoveryMode;}", "after": "public virtual bool InErrorRecoveryMode(Parser recognizer){return errorRecoveryMode;}" }, { "index": 8946, "before": "public FacetLabel(String dim, String[] path) {components = new String[1+path.length];components[0] = dim;System.arraycopy(path, 0, components, 1, path.length);length = components.length;checkComponents();}", "after": "public FacetLabel(string dim, string[] path){Components = new string[1 + path.Length];Components[0] = dim;Array.Copy(path, 0, Components, 1, path.Length);Length = Components.Length;CheckComponents();}" }, { "index": 8947, "before": "public UntagStreamResult untagStream(UntagStreamRequest request) {request = beforeClientExecution(request);return executeUntagStream(request);}", "after": "public virtual UntagStreamResponse UntagStream(UntagStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = UntagStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = UntagStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8948, "before": "public long addAndGet(long delta) {return count += delta;}", "after": "public override long AddAndGet(long delta){return count += delta;}" }, { "index": 8949, "before": "public int read() throws IOException {synchronized (lock) {if (!isOpen()) {throw new IOException(\"InputStreamReader is closed\");}char[] buf = new char[1];return read(buf, 0, 1) != -1 ? buf[0] : -1;}}", "after": "public override int read(){lock (@lock){if (!isOpen()){throw new System.IO.IOException(\"InputStreamReader is closed\");}char[] buf = new char[1];return read(buf, 0, 1) != -1 ? buf[0] : -1;}}" }, { "index": 8950, "before": "public static int getEncodedSize(int numberOfItems) {return numberOfItems * ENCODED_SIZE;}", "after": "public static int GetEncodedSize(int numberOfItems){return numberOfItems * ENCODED_SIZE;}" }, { "index": 8951, "before": "public PrintStream(File file, String csn) throws FileNotFoundException,UnsupportedEncodingException {super(new FileOutputStream(file));if (csn == null) {throw new NullPointerException();}if (!Charset.isSupported(csn)) {throw new UnsupportedEncodingException(csn);}encoding = csn;}", "after": "public PrintStream(java.io.File file, string csn) : base(new java.io.FileOutputStream(file)){if (csn == null){throw new System.ArgumentNullException();}if (!java.nio.charset.Charset.isSupported(csn)){throw new java.io.UnsupportedEncodingException(csn);}encoding = csn;}" }, { "index": 8952, "before": "public E poll() {return size == 0 ? null : removeFirst();}", "after": "public virtual E poll(){return _size == 0 ? default(E) : removeFirst();}" }, { "index": 8953, "before": "public void write(char[] cbuf, int offset, int count) throws IOException {synchronized (lock) {checkNotClosed();if (cbuf == null) {throw new NullPointerException(\"buffer == null\");}Arrays.checkOffsetAndCount(cbuf.length, offset, count);if (pos == 0 && count >= this.buf.length) {out.write(cbuf, offset, count);return;}int available = this.buf.length - pos;if (count < available) {available = count;}if (available > 0) {System.arraycopy(cbuf, offset, this.buf, pos, available);pos += available;}if (pos == this.buf.length) {out.write(this.buf, 0, this.buf.length);pos = 0;if (count > available) {offset += available;available = count - available;if (available >= this.buf.length) {out.write(cbuf, offset, available);return;}System.arraycopy(cbuf, offset, this.buf, pos, available);pos += available;}}}}", "after": "public override void write(char[] cbuf, int offset, int count){lock (@lock){checkNotClosed();if (cbuf == null){throw new System.ArgumentNullException(\"buffer == null\");}java.util.Arrays.checkOffsetAndCount(cbuf.Length, offset, count);if (pos == 0 && count >= this.buf.Length){@out.write(cbuf, offset, count);return;}int available = this.buf.Length - pos;if (count < available){available = count;}if (available > 0){System.Array.Copy(cbuf, offset, this.buf, pos, available);pos += available;}if (pos == this.buf.Length){@out.write(this.buf, 0, this.buf.Length);pos = 0;if (count > available){offset += available;available = count - available;if (available >= this.buf.Length){@out.write(cbuf, offset, available);return;}System.Array.Copy(cbuf, offset, this.buf, pos, available);pos += available;}}}}" }, { "index": 8954, "before": "public String toString(String enc) throws UnsupportedEncodingException {return new String(toByteArray(), enc);}", "after": "public virtual string toString(string enc){throw new System.NotImplementedException();}" }, { "index": 8955, "before": "public CreateRoomMembershipResult createRoomMembership(CreateRoomMembershipRequest request) {request = beforeClientExecution(request);return executeCreateRoomMembership(request);}", "after": "public virtual CreateRoomMembershipResponse CreateRoomMembership(CreateRoomMembershipRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRoomMembershipRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRoomMembershipResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8956, "before": "public long ramBytesUsed() {long size = 0;for (Map.Entry entry : formats.entrySet()) {size += (entry.getKey().length() * Character.BYTES) + entry.getValue().ramBytesUsed();}return size;}", "after": "public override long RamBytesUsed(){long sizeInBytes = 0;foreach (KeyValuePair entry in formats){sizeInBytes += entry.Key.Length * RamUsageEstimator.NUM_BYTES_CHAR;sizeInBytes += entry.Value.RamBytesUsed();}return sizeInBytes;}" }, { "index": 8957, "before": "public int getDFASize() {int n = 0;DFA[] decisionToDFA = atnSimulator.decisionToDFA;for (int i = 0; i < decisionToDFA.length; i++) {n += getDFASize(i);}return n;}", "after": "public int getDFASize(){int n = 0;DFA[] decisionToDFA = atnSimulator.decisionToDFA;for (int i = 0; i < decisionToDFA.Length; i++){n += getDFASize(i);}return n;}" }, { "index": 8958, "before": "public static CodePointCharStream fromString(String s) {return fromString(s, IntStream.UNKNOWN_SOURCE_NAME);}", "after": "public static ICharStream fromstring(string s){return new CodePointCharStream(s);}" }, { "index": 8959, "before": "public DeleteUserSourceAccountRequest() {super(\"cr\", \"2016-06-07\", \"DeleteUserSourceAccount\", \"cr\");setUriPattern(\"/users/sourceAccount/[SourceAccountId]\");setMethod(MethodType.DELETE);}", "after": "public DeleteUserSourceAccountRequest(): base(\"cr\", \"2016-06-07\", \"DeleteUserSourceAccount\", \"cr\", \"openAPI\"){UriPattern = \"/users/sourceAccount/[SourceAccountId]\";Method = MethodType.DELETE;}" }, { "index": 8960, "before": "public static Proxy proxyFor(ProxySelector proxySelector, URL u)throws ConnectException {try {URI uri = new URI(u.getProtocol(), null, u.getHost(), u.getPort(),null, null, null);return proxySelector.select(uri).get(0);} catch (URISyntaxException e) {final ConnectException err;err = new ConnectException(MessageFormat.format(JGitText.get().cannotDetermineProxyFor, u));err.initCause(e);throw err;}}", "after": "public static Proxy ProxyFor(ProxySelector proxySelector, Uri u){try{return proxySelector.Select(u.ToURI())[0];}catch (URISyntaxException e){ConnectException err;err = new ConnectException(MessageFormat.Format(JGitText.Get().cannotDetermineProxyFor, u));Sharpen.Extensions.InitCause(err, e);throw err;}}" }, { "index": 8961, "before": "public String toString() {String dsc = null;switch (this.type) {case TYPE_UNDERFLOW:dsc = \"UNDERFLOW error\";break;case TYPE_OVERFLOW:dsc = \"OVERFLOW error\";break;case TYPE_UNMAPPABLE_CHAR:dsc = \"Unmappable-character error with erroneous input length \"+ this.length;break;case TYPE_MALFORMED_INPUT:dsc = \"Malformed-input error with erroneous input length \"+ this.length;break;default:dsc = \"\";break;}return getClass().getName() + \"[\" + dsc + \"]\";}", "after": "public override string ToString(){string dsc = null;switch (this.type){case TYPE_UNDERFLOW:{dsc = \"UNDERFLOW error\";break;}case TYPE_OVERFLOW:{dsc = \"OVERFLOW error\";break;}case TYPE_UNMAPPABLE_CHAR:{dsc = \"Unmappable-character error with erroneous input length \" + this._length;break;}case TYPE_MALFORMED_INPUT:{dsc = \"Malformed-input error with erroneous input length \" + this._length;break;}default:{dsc = string.Empty;break;}}return GetType().FullName + \"[\" + dsc + \"]\";}" }, { "index": 8962, "before": "public PredictResult predict(PredictRequest request) {request = beforeClientExecution(request);return executePredict(request);}", "after": "public virtual PredictResponse Predict(PredictRequest request){var options = new InvokeOptions();options.RequestMarshaller = PredictRequestMarshaller.Instance;options.ResponseUnmarshaller = PredictResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8963, "before": "public Ptg get3DReferencePtg(AreaReference areaRef, SheetIdentifier sheet) {int extIx = getSheetExtIx(sheet);return new Area3DPtg(areaRef, extIx);}", "after": "public Ptg Get3DReferencePtg(AreaReference areaRef, SheetIdentifier sheet){int extIx = GetSheetExtIx(sheet);return new Area3DPtg(areaRef, extIx);}" }, { "index": 8964, "before": "public DescribeMatchmakingResult describeMatchmaking(DescribeMatchmakingRequest request) {request = beforeClientExecution(request);return executeDescribeMatchmaking(request);}", "after": "public virtual DescribeMatchmakingResponse DescribeMatchmaking(DescribeMatchmakingRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeMatchmakingRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeMatchmakingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8965, "before": "public DeleteDeviceUsageDataResult deleteDeviceUsageData(DeleteDeviceUsageDataRequest request) {request = beforeClientExecution(request);return executeDeleteDeviceUsageData(request);}", "after": "public virtual DeleteDeviceUsageDataResponse DeleteDeviceUsageData(DeleteDeviceUsageDataRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDeviceUsageDataRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDeviceUsageDataResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8966, "before": "public void removeHyperlink() {for (Iterator it = _sheet.getSheet().getRecords().iterator(); it.hasNext();) {RecordBase rec = it.next();if (rec instanceof HyperlinkRecord) {HyperlinkRecord link = (HyperlinkRecord) rec;if (link.getFirstColumn() == _record.getColumn() && link.getFirstRow() == _record.getRow()) {it.remove();return;}}}}", "after": "public void RemoveHyperlink(){RecordBase toRemove = null;for (IEnumerator it = _sheet.Sheet.Records.GetEnumerator(); it.MoveNext(); ){RecordBase rec = it.Current;if (rec is HyperlinkRecord){HyperlinkRecord link = (HyperlinkRecord)rec;if (link.FirstColumn == _record.Column && link.FirstRow == _record.Row){toRemove = rec;break;}}}if (toRemove != null)_sheet.Sheet.Records.Remove(toRemove);}" }, { "index": 8967, "before": "public RegisterInstancesWithLoadBalancerRequest(String loadBalancerName, java.util.List instances) {setLoadBalancerName(loadBalancerName);setInstances(instances);}", "after": "public RegisterInstancesWithLoadBalancerRequest(string loadBalancerName, List instances){_loadBalancerName = loadBalancerName;_instances = instances;}" }, { "index": 8968, "before": "public AssociateResolverRuleResult associateResolverRule(AssociateResolverRuleRequest request) {request = beforeClientExecution(request);return executeAssociateResolverRule(request);}", "after": "public virtual AssociateResolverRuleResponse AssociateResolverRule(AssociateResolverRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateResolverRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateResolverRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8969, "before": "@Override public Set> entrySet() {throw new UnsupportedOperationException();}", "after": "public override java.util.Set> entrySet(){throw new System.NotSupportedException();}" }, { "index": 8970, "before": "public TreeFilter negate() {return a;}", "after": "public override TreeFilter Negate(){return a;}" }, { "index": 8971, "before": "public SearchProfilesResult searchProfiles(SearchProfilesRequest request) {request = beforeClientExecution(request);return executeSearchProfiles(request);}", "after": "public virtual SearchProfilesResponse SearchProfiles(SearchProfilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchProfilesRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchProfilesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8972, "before": "public DBSubnetGroup modifyDBSubnetGroup(ModifyDBSubnetGroupRequest request) {request = beforeClientExecution(request);return executeModifyDBSubnetGroup(request);}", "after": "public virtual ModifyDBSubnetGroupResponse ModifyDBSubnetGroup(ModifyDBSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBSubnetGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8973, "before": "public int compareTo(String version) {final String[] parts = version.split(\":\");final long indexGen = Long.parseLong(parts[0], RADIX);final long taxoGen = Long.parseLong(parts[1], RADIX);final long indexCommitGen = indexCommit.getGeneration();final long taxoCommitGen = taxoCommit.getGeneration();if (indexCommitGen < indexGen) {return -1;} else if (indexCommitGen > indexGen) {return 1;} else {return taxoCommitGen < taxoGen ? -1 : (taxoCommitGen > taxoGen ? 1 : 0);}}", "after": "public virtual int CompareTo(string version){string[] parts = version.Split(':').TrimEnd();long indexGen = long.Parse(parts[0], NumberStyles.HexNumber);long taxonomyGen = long.Parse(parts[1], NumberStyles.HexNumber);long indexCommitGen = indexCommit.Generation;long taxonomyCommitGen = taxonomyCommit.Generation;if (indexCommitGen < indexGen)return -1;if (indexCommitGen > indexGen)return 1;return taxonomyCommitGen < taxonomyGen ? -1 : (taxonomyCommitGen > taxonomyGen ? 1 : 0);}" }, { "index": 8974, "before": "public LiteralValueSource(String string) {this.string = string;this.bytesRef = new BytesRef(string);}", "after": "public LiteralValueSource(string str){this.m_str = str;this.m_bytesRef = new BytesRef(str);}" }, { "index": 8975, "before": "public int getValue(final int holder){return getRawValue(holder) >>> _shift_count;}", "after": "public int GetValue(int holder){return Operator.UnsignedRightShift(this.GetRawValue(holder) , this._shift_count);}" }, { "index": 8976, "before": "public HSSFShapeGroup(HSSFShape parent, HSSFAnchor anchor) {super(parent, anchor);_spgrRecord = ((EscherContainerRecord)getEscherContainer().getChild(0)).getChildById(EscherSpgrRecord.RECORD_ID);}", "after": "public HSSFShapeGroup(HSSFShape parent, HSSFAnchor anchor): base(parent, anchor){_spgrRecord = (EscherSpgrRecord)((EscherContainerRecord)GetEscherContainer().GetChild(0)).GetChildById(EscherSpgrRecord.RECORD_ID);}" }, { "index": 8977, "before": "public String toString() {return \"Note[\" + name() + \" -> \" + data.name() + \"]\";}", "after": "public override string ToString(){return \"Note[\" + Name + \" -> \" + data.Name + \"]\";}" }, { "index": 8978, "before": "public DeleteFpgaImageResult deleteFpgaImage(DeleteFpgaImageRequest request) {request = beforeClientExecution(request);return executeDeleteFpgaImage(request);}", "after": "public virtual DeleteFpgaImageResponse DeleteFpgaImage(DeleteFpgaImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFpgaImageRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFpgaImageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8979, "before": "public CreateAppCookieStickinessPolicyResult createAppCookieStickinessPolicy(CreateAppCookieStickinessPolicyRequest request) {request = beforeClientExecution(request);return executeCreateAppCookieStickinessPolicy(request);}", "after": "public virtual CreateAppCookieStickinessPolicyResponse CreateAppCookieStickinessPolicy(CreateAppCookieStickinessPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAppCookieStickinessPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAppCookieStickinessPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8980, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[FNGROUPCOUNT]\\n\");buffer.append(\" .count = \").append(getCount()).append(\"\\n\");buffer.append(\"[/FNGROUPCOUNT]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[FNGROUPCOUNT]\\n\");buffer.Append(\" .count = \").Append(this.Count).Append(\"\\n\");buffer.Append(\"[/FNGROUPCOUNT]\\n\");return buffer.ToString();}" }, { "index": 8981, "before": "public final void sort(int from, int to) {checkRange(from, to);quicksort(from, to, 2 * MathUtil.log(to - from, 2));}", "after": "public override sealed void Sort(int from, int to){CheckRange(from, to);Quicksort(from, to, CeilLog2(to - from));}" }, { "index": 8982, "before": "public DescribeMonitoringScheduleResult describeMonitoringSchedule(DescribeMonitoringScheduleRequest request) {request = beforeClientExecution(request);return executeDescribeMonitoringSchedule(request);}", "after": "public virtual DescribeMonitoringScheduleResponse DescribeMonitoringSchedule(DescribeMonitoringScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeMonitoringScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeMonitoringScheduleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8983, "before": "public HeaderLineParser(String[] header) {super(header);posToF = new FieldName[header.length];for (int i=0; i args) {super(args);maxTokenLength = getInt(args, \"maxTokenLength\", StandardAnalyzer.DEFAULT_MAX_TOKEN_LENGTH);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public StandardTokenizerFactory(IDictionary args): base(args){AssureMatchVersion();maxTokenLength = GetInt32(args, \"maxTokenLength\", StandardAnalyzer.DEFAULT_MAX_TOKEN_LENGTH);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 8986, "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 << 6) | (byte1 >>> 2);final long byte2 = blocks[blocksOffset++] & 0xFF;final long byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 3) << 12) | (byte2 << 4) | (byte3 >>> 4);final long byte4 = blocks[blocksOffset++] & 0xFF;final long byte5 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 15) << 10) | (byte4 << 2) | (byte5 >>> 6);final long byte6 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte5 & 63) << 8) | byte6;}}", "after": "public override void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long byte0 = blocks[blocksOffset++] & 0xFF;long byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 6) | ((long)((ulong)byte1 >> 2));long byte2 = blocks[blocksOffset++] & 0xFF;long byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 3) << 12) | (byte2 << 4) | ((long)((ulong)byte3 >> 4));long byte4 = blocks[blocksOffset++] & 0xFF;long byte5 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 15) << 10) | (byte4 << 2) | ((long)((ulong)byte5 >> 6));long byte6 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte5 & 63) << 8) | byte6;}}" }, { "index": 8987, "before": "public boolean precpred(RuleContext localctx, int precedence) {return true;}", "after": "public virtual bool Precpred(RuleContext localctx, int precedence){return true;}" }, { "index": 8988, "before": "public int getFSD() {return fSD;}", "after": "public int GetFSD(){return fSD;}" }, { "index": 8989, "before": "public static FunctionMetadata getFunctionByIndex(int index) {return getInstance().getFunctionByIndexInternal(index);}", "after": "public static FunctionMetadata GetFunctionByIndex(int index){return GetInstance().GetFunctionByIndexInternal(index);}" }, { "index": 8990, "before": "public Object toObject() {assert exists || 0 == value.length();return exists ? value.get().utf8ToString() : null;}", "after": "public override object ToObject(){return Exists ? Value.Utf8ToString() : null;}" }, { "index": 8991, "before": "public GetDisksResult getDisks(GetDisksRequest request) {request = beforeClientExecution(request);return executeGetDisks(request);}", "after": "public virtual GetDisksResponse GetDisks(GetDisksRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDisksRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDisksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8992, "before": "public String toString() {return getClass().getSimpleName() + \"(compressionMode=\" + compressionMode+ \", chunkSize=\" + chunkSize + \", maxDocsPerChunk=\" + maxDocsPerChunk + \", blockShift=\" + blockShift + \")\";}", "after": "public override string ToString(){return this.GetType().Name + \"(compressionMode=\" + compressionMode + \", chunkSize=\" + chunkSize + \")\";}" }, { "index": 8993, "before": "public DescribeVolumesModificationsResult describeVolumesModifications(DescribeVolumesModificationsRequest request) {request = beforeClientExecution(request);return executeDescribeVolumesModifications(request);}", "after": "public virtual DescribeVolumesModificationsResponse DescribeVolumesModifications(DescribeVolumesModificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVolumesModificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVolumesModificationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 8994, "before": "public float currentScore(int docId, String field, int start, int end, int numPayloadsSeen, float currentScore, float currentPayloadScore) {return currentPayloadScore + currentScore;}", "after": "public override float CurrentScore(int docId, string field, int start, int end, int numPayloadsSeen, float currentScore, float currentPayloadScore){return currentPayloadScore + currentScore;}" }, { "index": 8995, "before": "public StartRepoBuildRequest() {super(\"cr\", \"2016-06-07\", \"StartRepoBuild\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/build\");setMethod(MethodType.PUT);}", "after": "public StartRepoBuildRequest(): base(\"cr\", \"2016-06-07\", \"StartRepoBuild\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/build\";Method = MethodType.PUT;}" }, { "index": 8996, "before": "public Instance(String instanceId) {setInstanceId(instanceId);}", "after": "public Instance(string instanceId){_instanceId = instanceId;}" }, { "index": 8997, "before": "public int getEntryPathHashCode() {int hash = 0;for (int i = Math.max(0, pathLen - 16); i < pathLen; i++) {byte c = path[i];if (c != ' ')hash = (hash >>> 2) + (c << 24);}return hash;}", "after": "public virtual int GetEntryPathHashCode(){int hash = 0;for (int i = Math.Max(0, pathLen - 16); i < pathLen; i++){byte c = path[i];if (c != ' '){hash = ((int)(((uint)hash) >> 2)) + (c << 24);}}return hash;}" }, { "index": 8998, "before": "public CreateBranchCommand setName(String name) {checkCallable();this.name = name;return this;}", "after": "public virtual NGit.Api.CreateBranchCommand SetName(string name){CheckCallable();this.name = name;return this;}" }, { "index": 8999, "before": "public static Reporter getReporter() {return REPORTER;}", "after": "public static dalvik.system.CloseGuard.Reporter getReporter(){return REPORTER;}" }, { "index": 9000, "before": "public void getChars(int start, int end, char[] dst, int dstStart) {if (start > count || end > count || start > end) {throw startEndAndLength(start, end);}System.arraycopy(value, start, dst, dstStart, end - start);}", "after": "public virtual void getChars(int start, int end, char[] dst, int dstStart){if (start > count || end > count || start > end){throw startEndAndLength(start, end);}System.Array.Copy(value, start, dst, dstStart, end - start);}" }, { "index": 9001, "before": "public LongBuffer put(long[] src, int srcOffset, int longCount) {if (longCount > remaining()) {throw new BufferOverflowException();}System.arraycopy(src, srcOffset, backingArray, offset + position, longCount);position += longCount;return this;}", "after": "public override java.nio.LongBuffer put(long[] src, int srcOffset, int longCount){if (longCount > remaining()){throw new java.nio.BufferOverflowException();}System.Array.Copy(src, srcOffset, backingArray, offset + _position, longCount);_position += longCount;return this;}" }, { "index": 9002, "before": "public long getSourceSize() {return src.length;}", "after": "public virtual long GetSourceSize(){return src.Length;}" }, { "index": 9003, "before": "public void setID(String id) {if (id == null) {throw new NullPointerException();}ID = id;}", "after": "public virtual void setID(string id){throw new System.NotImplementedException();}" }, { "index": 9004, "before": "public GetCampaignVersionsResult getCampaignVersions(GetCampaignVersionsRequest request) {request = beforeClientExecution(request);return executeGetCampaignVersions(request);}", "after": "public virtual GetCampaignVersionsResponse GetCampaignVersions(GetCampaignVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCampaignVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCampaignVersionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9005, "before": "public long getTotalSLLLookaheadOps() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.length; i++) {k += decisions[i].SLL_TotalLook;}return k;}", "after": "public long getTotalSLLLookaheadOps(){DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.Length; i++){k += decisions[i].SLL_TotalLook;}return k;}" }, { "index": 9006, "before": "public static Row getRow(int rowIndex, Sheet sheet) {Row row = sheet.getRow(rowIndex);if (row == null) {row = sheet.createRow(rowIndex);}return row;}", "after": "public static IRow GetRow(int rowIndex, ISheet sheet){IRow row = sheet.GetRow(rowIndex);if (row == null){row = sheet.CreateRow(rowIndex);}return row;}" }, { "index": 9007, "before": "public void clear() {doc = null;analyzer = null;}", "after": "public virtual void Clear(){doc = null;analyzer = null;}" }, { "index": 9008, "before": "public KeyPairCredentials(String publicKeyId, String privateKeySecret) {if (publicKeyId == null || privateKeySecret == null) {throw new IllegalArgumentException(\"You must provide a valid pair of Public Key ID and Private Key Secret.\");}this.publicKeyId = publicKeyId;this.privateKeySecret = privateKeySecret;}", "after": "public KeyPairCredentials(string publicKeyId, string privateKeySecret){if (string.IsNullOrEmpty(publicKeyId) || string.IsNullOrEmpty(privateKeySecret)){throw new ArgumentNullException(\"You must provide a valid pair of Public Key ID and Private Key Secret.\");}this.publicKeyId = publicKeyId;this.privateKeySecret = privateKeySecret;}" }, { "index": 9009, "before": "public PredictionContext getParent(int index) {return parents[index];}", "after": "public override PredictionContext GetParent(int index){return parents[index];}" }, { "index": 9010, "before": "public synchronized StringBuffer append(String string) {append0(string);return this;}", "after": "public java.lang.StringBuffer append(string @string){lock (this){append0(@string);return this;}}" }, { "index": 9011, "before": "public void removeBuiltinRecord(byte name, int sheetIndex) {NameRecord record = getSpecificBuiltinRecord(name, sheetIndex);if (record != null) {_definedNames.remove(record);}}", "after": "public void RemoveBuiltinRecord(byte name, int sheetIndex){NameRecord record = GetSpecificBuiltinRecord(name, sheetIndex);if (record != null){_definedNames.Remove(record);}}" }, { "index": 9012, "before": "public SharedFormulaGroup(SharedFormulaRecord sfr, CellReference firstCell) {if (!sfr.isInRange(firstCell.getRow(), firstCell.getCol())) {throw new IllegalArgumentException(\"First formula cell \" + firstCell.formatAsString()+ \" is not shared formula range \" + sfr.getRange() + \".\");}_sfr = sfr;_firstCell = firstCell;int width = sfr.getLastColumn() - sfr.getFirstColumn() + 1;int height = sfr.getLastRow() - sfr.getFirstRow() + 1;_frAggs = new FormulaRecordAggregate[width * height];_numberOfFormulas = 0;}", "after": "public SharedFormulaGroup(SharedFormulaRecord sfr, CellReference firstCell){if (!sfr.IsInRange(firstCell.Row, firstCell.Col)){throw new ArgumentException(\"First formula cell \" + firstCell.FormatAsString()+ \" is not shared formula range \" + sfr.Range.ToString() + \".\");}_sfr = sfr;_firstCell = firstCell;int width = sfr.LastColumn - sfr.FirstColumn + 1;int height = sfr.LastRow - sfr.FirstRow + 1;_frAggs = new FormulaRecordAggregate[width * height];_numberOfFormulas = 0;}" }, { "index": 9013, "before": "public void modifyFormatRun(short oldPos, short newLen) {int shift = 0;for(int i=0; i < _formats.length; i++) {CTFormat ctf = _formats[i];if (shift != 0) {ctf.setOffset(ctf.getOffset() + shift);} else if (oldPos == ctf.getOffset() && i < _formats.length - 1){CTFormat nextCTF = _formats[i + 1];shift = newLen - (nextCTF.getOffset() - ctf.getOffset());}}}", "after": "public void ModifyFormatRun(short oldPos, short newLen){short shift = (short)0;for (int idx = 0; idx < m_formats.Count; idx++){CTFormat ctf = (CTFormat)m_formats[idx];if (shift != 0){ctf.Offset = ((short)(ctf.Offset + shift));}else if ((oldPos == ctf.Offset) && (idx < (m_formats.Count - 1))){CTFormat nextCTF = (CTFormat)m_formats[idx + 1];shift = (short)(newLen - (nextCTF.Offset - ctf.Offset));}}}" }, { "index": 9014, "before": "public AddInstanceGroupsResult addInstanceGroups(AddInstanceGroupsRequest request) {request = beforeClientExecution(request);return executeAddInstanceGroups(request);}", "after": "public virtual AddInstanceGroupsResponse AddInstanceGroups(AddInstanceGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddInstanceGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = AddInstanceGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9015, "before": "public String getText() {if (getChildCount() == 0) {return \"\";}StringBuilder builder = new StringBuilder();for (int i = 0; i < getChildCount(); i++) {builder.append(getChild(i).getText());}return builder.toString();}", "after": "public virtual string GetText(){if (ChildCount == 0){return string.Empty;}StringBuilder builder = new StringBuilder();for (int i = 0; i < ChildCount; i++){builder.Append(GetChild(i).GetText());}return builder.ToString();}" }, { "index": 9016, "before": "public ListCodeRepositoriesResult listCodeRepositories(ListCodeRepositoriesRequest request) {request = beforeClientExecution(request);return executeListCodeRepositories(request);}", "after": "public virtual ListCodeRepositoriesResponse ListCodeRepositories(ListCodeRepositoriesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListCodeRepositoriesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListCodeRepositoriesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9017, "before": "public LexerATNConfig(ATNState state,int alt,PredictionContext context){super(state, alt, context, SemanticContext.NONE);this.passedThroughNonGreedyDecision = false;this.lexerActionExecutor = null;}", "after": "public LexerATNConfig(ATNState state,int alt,PredictionContext context): base(state, alt, context) {this.passedThroughNonGreedyDecision = false;this.lexerActionExecutor = null;}" }, { "index": 9018, "before": "public int serialize(int offset, byte [] data) {throw new RecordFormatException(\"Old Label Records are supported READ ONLY\");}", "after": "public int Serialize(int offset, byte[] data){throw new RecordFormatException(\"Old Label Records are supported READ ONLY\");}" }, { "index": 9019, "before": "public GetSmsChannelResult getSmsChannel(GetSmsChannelRequest request) {request = beforeClientExecution(request);return executeGetSmsChannel(request);}", "after": "public virtual GetSmsChannelResponse GetSmsChannel(GetSmsChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSmsChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSmsChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9020, "before": "public Placement(String availabilityZone) {setAvailabilityZone(availabilityZone);}", "after": "public Placement(string availabilityZone){_availabilityZone = availabilityZone;}" }, { "index": 9021, "before": "public ListStacksResult listStacks(ListStacksRequest request) {request = beforeClientExecution(request);return executeListStacks(request);}", "after": "public virtual ListStacksResponse ListStacks(ListStacksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStacksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStacksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9022, "before": "public ListFieldLevelEncryptionConfigsResult listFieldLevelEncryptionConfigs(ListFieldLevelEncryptionConfigsRequest request) {request = beforeClientExecution(request);return executeListFieldLevelEncryptionConfigs(request);}", "after": "public virtual ListFieldLevelEncryptionConfigsResponse ListFieldLevelEncryptionConfigs(ListFieldLevelEncryptionConfigsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFieldLevelEncryptionConfigsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFieldLevelEncryptionConfigsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9023, "before": "public CloseInstancePublicPortsResult closeInstancePublicPorts(CloseInstancePublicPortsRequest request) {request = beforeClientExecution(request);return executeCloseInstancePublicPorts(request);}", "after": "public virtual CloseInstancePublicPortsResponse CloseInstancePublicPorts(CloseInstancePublicPortsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CloseInstancePublicPortsRequestMarshaller.Instance;options.ResponseUnmarshaller = CloseInstancePublicPortsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9024, "before": "public DeleteTransitGatewayRouteTableResult deleteTransitGatewayRouteTable(DeleteTransitGatewayRouteTableRequest request) {request = beforeClientExecution(request);return executeDeleteTransitGatewayRouteTable(request);}", "after": "public virtual DeleteTransitGatewayRouteTableResponse DeleteTransitGatewayRouteTable(DeleteTransitGatewayRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTransitGatewayRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTransitGatewayRouteTableResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9025, "before": "public TokenStream create(TokenStream input) {return new StempelFilter(input, new StempelStemmer(PolishAnalyzer.getDefaultTable()));}", "after": "public override TokenStream Create(TokenStream input){return new StempelFilter(input, new StempelStemmer(PolishAnalyzer.DefaultTable));}" }, { "index": 9026, "before": "public static byte[] grow(byte[] array) {return grow(array, 1 + array.length);}", "after": "public static double[] Grow(double[] array){return Grow(array, 1 + array.Length);}" }, { "index": 9027, "before": "public DocFreqSorter(int maxDoc) {super(maxDoc / 64);this.tmpDocs = new int[maxDoc / 64];}", "after": "public DocFreqSorter(int maxDoc): base(maxDoc / 64){this.tmpDocs = new int[maxDoc / 64];}" }, { "index": 9028, "before": "public void add(int a, int b) {add(Interval.of(a, b));}", "after": "public virtual void Add(int a, int b){Add(Interval.Of(a, b));}" }, { "index": 9029, "before": "public void cloneStyleFrom(HSSFCellStyle source) {_format.cloneStyleFrom(source._format);if(_workbook != source._workbook) {lastDateFormat.set(Short.MIN_VALUE);lastFormats.remove();getDataFormatStringCache.remove();short fmt = (short)_workbook.createFormat(source.getDataFormatString() );setDataFormat(fmt);FontRecord fr = _workbook.createNewFont();fr.cloneStyleFrom(source._workbook.getFontRecordAt(source.getFontIndexAsInt()));HSSFFont font = new HSSFFont((short)_workbook.getFontIndex(fr), fr);setFont(font);}}", "after": "public void CloneStyleFrom(HSSFCellStyle source){_format.CloneStyleFrom(source._format);if (_workbook != source._workbook){lastDateFormat = short.MinValue;lastFormats = null;getDataFormatStringCache = null;short fmt = (short)_workbook.CreateFormat(source.GetDataFormatString());this.DataFormat=(fmt);FontRecord fr = _workbook.CreateNewFont();fr.CloneStyleFrom(source._workbook.GetFontRecordAt(source.FontIndex));HSSFFont font = new HSSFFont((short)_workbook.GetFontIndex(fr), fr);this.SetFont(font);}}" }, { "index": 9030, "before": "public DeleteIdentitiesResult deleteIdentities(DeleteIdentitiesRequest request) {request = beforeClientExecution(request);return executeDeleteIdentities(request);}", "after": "public virtual DeleteIdentitiesResponse DeleteIdentities(DeleteIdentitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIdentitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIdentitiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9031, "before": "public void nextSlice() {final int nextIndex = ((buffer[limit]&0xff)<<24) + ((buffer[1+limit]&0xff)<<16) + ((buffer[2+limit]&0xff)<<8) + (buffer[3+limit]&0xff);level = ByteBlockPool.NEXT_LEVEL_ARRAY[level];final int newSize = ByteBlockPool.LEVEL_SIZE_ARRAY[level];bufferUpto = nextIndex / ByteBlockPool.BYTE_BLOCK_SIZE;bufferOffset = bufferUpto * ByteBlockPool.BYTE_BLOCK_SIZE;buffer = pool.buffers[bufferUpto];upto = nextIndex & ByteBlockPool.BYTE_BLOCK_MASK;if (nextIndex + newSize >= endIndex) {assert endIndex - nextIndex > 0;limit = endIndex - bufferOffset;} else {limit = upto+newSize-4;}}", "after": "public void NextSlice(){int nextIndex = ((buffer[limit] & 0xff) << 24) + ((buffer[1 + limit] & 0xff) << 16) + ((buffer[2 + limit] & 0xff) << 8) + (buffer[3 + limit] & 0xff);level = ByteBlockPool.NEXT_LEVEL_ARRAY[level];int newSize = ByteBlockPool.LEVEL_SIZE_ARRAY[level];bufferUpto = nextIndex / ByteBlockPool.BYTE_BLOCK_SIZE;BufferOffset = bufferUpto * ByteBlockPool.BYTE_BLOCK_SIZE;buffer = pool.Buffers[bufferUpto];upto = nextIndex & ByteBlockPool.BYTE_BLOCK_MASK;if (nextIndex + newSize >= EndIndex){Debug.Assert(EndIndex - nextIndex > 0);limit = EndIndex - BufferOffset;}else{limit = upto + newSize - 4;}}" }, { "index": 9032, "before": "public DeleteMessageBatchRequest(String queueUrl, java.util.List entries) {setQueueUrl(queueUrl);setEntries(entries);}", "after": "public DeleteMessageBatchRequest(string queueUrl, List entries){_queueUrl = queueUrl;_entries = entries;}" }, { "index": 9033, "before": "public ReservedCacheNode purchaseReservedCacheNodesOffering(PurchaseReservedCacheNodesOfferingRequest request) {request = beforeClientExecution(request);return executePurchaseReservedCacheNodesOffering(request);}", "after": "public virtual PurchaseReservedCacheNodesOfferingResponse PurchaseReservedCacheNodesOffering(PurchaseReservedCacheNodesOfferingRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurchaseReservedCacheNodesOfferingRequestMarshaller.Instance;options.ResponseUnmarshaller = PurchaseReservedCacheNodesOfferingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9034, "before": "public String getLineText() {final int eol = RawParseUtils.nextLF(buf, offset);return RawParseUtils.decode(UTF_8, buf, offset, eol);}", "after": "public virtual string GetLineText(){int eol = RawParseUtils.NextLF(buf, offset);return RawParseUtils.Decode(Constants.CHARSET, buf, offset, eol);}" }, { "index": 9035, "before": "public DescribeNotificationConfigurationsResult describeNotificationConfigurations(DescribeNotificationConfigurationsRequest request) {request = beforeClientExecution(request);return executeDescribeNotificationConfigurations(request);}", "after": "public virtual DescribeNotificationConfigurationsResponse DescribeNotificationConfigurations(DescribeNotificationConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNotificationConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNotificationConfigurationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9036, "before": "@Override public boolean remove(Object object) {if (!esDelegate.remove(object)) {return false;}Entry entry = (Entry) object;inverse.delegate.remove(entry.getValue());return true;}", "after": "public override bool remove(object o){if (!(o is java.util.MapClass.Entry)){return false;}java.util.MapClass.Entry e = (java.util.MapClass.Entry)o;return this._enclosing.removeMapping(e.getKey(), e.getValue());}" }, { "index": 9037, "before": "public static byte[] grow(byte[] array) {return grow(array, 1 + array.length);}", "after": "public static byte[] Grow(byte[] array){return Grow(array, 1 + array.Length);}" }, { "index": 9038, "before": "public IndexAndTaxonomyRevision(IndexWriter indexWriter, SnapshotDirectoryTaxonomyWriter taxoWriter)throws IOException {IndexDeletionPolicy delPolicy = indexWriter.getConfig().getIndexDeletionPolicy();if (!(delPolicy instanceof SnapshotDeletionPolicy)) {throw new IllegalArgumentException(\"IndexWriter must be created with SnapshotDeletionPolicy\");}this.indexWriter = indexWriter;this.taxoWriter = taxoWriter;this.indexSDP = (SnapshotDeletionPolicy) delPolicy;this.taxoSDP = taxoWriter.getDeletionPolicy();this.indexCommit = indexSDP.snapshot();this.taxoCommit = taxoSDP.snapshot();this.version = revisionVersion(indexCommit, taxoCommit);this.sourceFiles = revisionFiles(indexCommit, taxoCommit);}", "after": "public IndexAndTaxonomyRevision(IndexWriter indexWriter, SnapshotDirectoryTaxonomyWriter taxonomyWriter){this.indexSdp = indexWriter.Config.IndexDeletionPolicy as SnapshotDeletionPolicy;if (indexSdp == null)throw new ArgumentException(\"IndexWriter must be created with SnapshotDeletionPolicy\", \"indexWriter\");this.indexWriter = indexWriter;this.taxonomyWriter = taxonomyWriter;this.taxonomySdp = taxonomyWriter.DeletionPolicy;this.indexCommit = indexSdp.Snapshot();this.taxonomyCommit = taxonomySdp.Snapshot();this.version = RevisionVersion(indexCommit, taxonomyCommit);this.sourceFiles = RevisionFiles(indexCommit, taxonomyCommit);}" }, { "index": 9039, "before": "public synchronized String toString() {return super.toString();}", "after": "public override string ToString(){lock (this){return base.ToString();}}" }, { "index": 9040, "before": "public static int hashCode(Object o) {return (o == null) ? 0 : o.hashCode();}", "after": "public static int hashCode(object o){return (o == null) ? 0 : o.GetHashCode();}" }, { "index": 9041, "before": "public GetModelTemplateResult getModelTemplate(GetModelTemplateRequest request) {request = beforeClientExecution(request);return executeGetModelTemplate(request);}", "after": "public virtual GetModelTemplateResponse GetModelTemplate(GetModelTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetModelTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetModelTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9042, "before": "public XORShift64Random(long seed) {x = seed == 0 ? 0xdeadbeef : seed;}", "after": "public XORShift64Random(long seed){x = seed == 0 ? 0xdeadbeef : seed;}" }, { "index": 9043, "before": "public HeaderFooterRecord(RecordInputStream in) {_rawData = in.readRemainder();}", "after": "public HeaderFooterRecord(RecordInputStream in1){_rawData = in1.ReadRemainder();}" }, { "index": 9044, "before": "public HSSFPolygon createPolygon(HSSFClientAnchor anchor) {HSSFPolygon shape = new HSSFPolygon(null, anchor);addShape(shape);onCreate(shape);return shape;}", "after": "public HSSFPolygon CreatePolygon(IClientAnchor anchor){HSSFPolygon shape = new HSSFPolygon(null, (HSSFAnchor)anchor);AddShape(shape);OnCreate(shape);return shape;}" }, { "index": 9045, "before": "public boolean equals(Object other) {if (other == null) {return false;}if (other instanceof BytesRef) {return this.bytesEquals((BytesRef) other);}return false;}", "after": "public override bool Equals(object other){if (other == null){return false;}if (other is BytesRef){return this.BytesEquals((BytesRef)other);}return false;}" }, { "index": 9046, "before": "public void decode(long[] blocks, int blocksOffset, long[] 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++] = (block >>> shift) & 65535;}}}", "after": "public override void Decode(long[] blocks, int blocksOffset, long[] 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++] = ((long)((ulong)block >> shift)) & 65535;}}}" }, { "index": 9047, "before": "public int serialize(int offset, byte[] data, EscherSerializationListener listener) {listener.beforeRecordSerialize( offset, getRecordId(), this );if (remainingData == null) {remainingData = EMPTY;}LittleEndian.putShort( data, offset, getOptions() );LittleEndian.putShort( data, offset + 2, getRecordId() );LittleEndian.putInt( data, offset + 4, remainingData.length );System.arraycopy( remainingData, 0, data, offset + 8, remainingData.length );int pos = offset + 8 + remainingData.length;listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );return pos - offset;}", "after": "public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);if (remainingData == null) remainingData = new byte[0];LittleEndian.PutShort(data, offset, Options);LittleEndian.PutShort(data, offset + 2, RecordId);LittleEndian.PutInt(data, offset + 4, remainingData.Length);Array.Copy(remainingData, 0, data, offset + 8, remainingData.Length);int pos = offset + 8 + remainingData.Length;listener.AfterRecordSerialize(pos, RecordId, pos - offset, this);return pos - offset;}" }, { "index": 9048, "before": "public boolean equals(Object o) {if (! super.equals(o)) {return false;}SpanPositionRangeQuery other = (SpanPositionRangeQuery)o;return this.end == other.end && this.start == other.start;}", "after": "public override bool Equals(object o){if (this == o){return true;}if (!(o is SpanPositionRangeQuery)){return false;}SpanPositionRangeQuery other = (SpanPositionRangeQuery)o;return this.m_end == other.m_end && this.m_start == other.m_start && this.m_match.Equals(other.m_match) && this.Boost == other.Boost;}" }, { "index": 9049, "before": "public CreateSignalingChannelResult createSignalingChannel(CreateSignalingChannelRequest request) {request = beforeClientExecution(request);return executeCreateSignalingChannel(request);}", "after": "public virtual CreateSignalingChannelResponse CreateSignalingChannel(CreateSignalingChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSignalingChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSignalingChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9050, "before": "public IndexDiffFilter(int dirCacheIndex, int workingTreeIndex,boolean honorIgnores) {this.dirCache = dirCacheIndex;this.workingTree = workingTreeIndex;this.honorIgnores = honorIgnores;}", "after": "public IndexDiffFilter(int dirCacheIndex, int workingTreeIndex, bool honorIgnores){this.dirCache = dirCacheIndex;this.workingTree = workingTreeIndex;this.honorIgnores = honorIgnores;}" }, { "index": 9051, "before": "public String toString() {StringBuilder sb = new StringBuilder(\"[\" + getClass().getSimpleName() + \": \");sb.append(\"minMergeSize=\").append(minMergeSize).append(\", \");sb.append(\"mergeFactor=\").append(mergeFactor).append(\", \");sb.append(\"maxMergeSize=\").append(maxMergeSize).append(\", \");sb.append(\"maxMergeSizeForForcedMerge=\").append(maxMergeSizeForForcedMerge).append(\", \");sb.append(\"calibrateSizeByDeletes=\").append(calibrateSizeByDeletes).append(\", \");sb.append(\"maxMergeDocs=\").append(maxMergeDocs).append(\", \");sb.append(\"maxCFSSegmentSizeMB=\").append(getMaxCFSSegmentSizeMB()).append(\", \");sb.append(\"noCFSRatio=\").append(noCFSRatio);sb.append(\"]\");return sb.toString();}", "after": "public override string ToString(){StringBuilder sb = new StringBuilder(\"[\" + this.GetType().Name + \": \");sb.Append(\"minMergeSize=\").Append(m_minMergeSize).Append(\", \");sb.Append(\"mergeFactor=\").Append(m_mergeFactor).Append(\", \");sb.Append(\"maxMergeSize=\").Append(m_maxMergeSize).Append(\", \");sb.Append(\"maxMergeSizeForForcedMerge=\").Append(m_maxMergeSizeForForcedMerge).Append(\", \");sb.Append(\"calibrateSizeByDeletes=\").Append(m_calibrateSizeByDeletes).Append(\", \");sb.Append(\"maxMergeDocs=\").Append(m_maxMergeDocs).Append(\", \");sb.Append(\"maxCFSSegmentSizeMB=\").Append(MaxCFSSegmentSizeMB).Append(\", \");sb.Append(\"noCFSRatio=\").Append(m_noCFSRatio);sb.Append(\"]\");return sb.ToString();}" }, { "index": 9052, "before": "public static void encode(StringBuilder urlstr, String key) {if (key == null || key.length() == 0)return;try {urlstr.append(URLEncoder.encode(key, UTF_8.name()));} catch (UnsupportedEncodingException e) {throw new RuntimeException(JGitText.get().couldNotURLEncodeToUTF8, e);}}", "after": "public static void Encode(StringBuilder urlstr, string key){if (key == null || key.Length == 0){return;}try{urlstr.Append(URLEncoder.Encode(key, \"UTF-8\"));}catch (UnsupportedEncodingException e){throw new RuntimeException(JGitText.Get().couldNotURLEncodeToUTF8, e);}}" }, { "index": 9053, "before": "public DescribeTemplateResult describeTemplate(DescribeTemplateRequest request) {request = beforeClientExecution(request);return executeDescribeTemplate(request);}", "after": "public virtual DescribeTemplateResponse DescribeTemplate(DescribeTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9054, "before": "public boolean mkdirs() {if (exists()) {return false;}if (mkdir()) {return true;}String parentDir = getParent();if (parentDir == null) {return false;}return (new File(parentDir).mkdirs() && mkdir());}", "after": "public bool mkdirs(){if (exists()){return false;}if (mkdir()){return true;}string parentDir = getParent();if (parentDir == null){return false;}return (new java.io.File(parentDir).mkdirs() && mkdir());}" }, { "index": 9055, "before": "public HeaderBlock(InputStream stream) throws IOException {this(readFirst512(stream));if(bigBlockSize.getBigBlockSize() != 512) {int rest = bigBlockSize.getBigBlockSize() - 512;byte[] tmp = IOUtils.safelyAllocate(rest, MAX_RECORD_LENGTH);IOUtils.readFully(stream, tmp);}}", "after": "public HeaderBlock(Stream stream){try{stream.Position = 0;PrivateHeaderBlock(ReadFirst512(stream));if (bigBlockSize.GetBigBlockSize() != 512){int rest = bigBlockSize.GetBigBlockSize() - 512;byte[] temp = new byte[rest];IOUtils.ReadFully(stream, temp);}}catch(IOException ex){throw ex;}}" }, { "index": 9056, "before": "public void recover(LexerNoViableAltException e) {if (_input.LA(1) != IntStream.EOF) {getInterpreter().consume(_input);}}", "after": "public virtual void Recover(LexerNoViableAltException e){if (_input.LA(1) != IntStreamConstants.EOF){Interpreter.Consume(_input);}}" }, { "index": 9057, "before": "public E valueAt(int index) {if (mGarbage) {gc();}return (E) mValues[index];}", "after": "public virtual E valueAt(int index){if (mGarbage){gc();}return (E)mValues[index];}" }, { "index": 9058, "before": "public AttachToIndexResult attachToIndex(AttachToIndexRequest request) {request = beforeClientExecution(request);return executeAttachToIndex(request);}", "after": "public virtual AttachToIndexResponse AttachToIndex(AttachToIndexRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachToIndexRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachToIndexResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9059, "before": "public CreateMembersResult createMembers(CreateMembersRequest request) {request = beforeClientExecution(request);return executeCreateMembers(request);}", "after": "public virtual CreateMembersResponse CreateMembers(CreateMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateMembersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9060, "before": "public double get() {if (position == limit) {throw new BufferUnderflowException();}return byteBuffer.getDouble(position++ * SizeOf.DOUBLE);}", "after": "public override double get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return byteBuffer.getDouble(_position++ * libcore.io.SizeOf.DOUBLE);}" }, { "index": 9061, "before": "public WorkflowExecutionInfos listOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest request) {request = beforeClientExecution(request);return executeListOpenWorkflowExecutions(request);}", "after": "public virtual ListOpenWorkflowExecutionsResponse ListOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListOpenWorkflowExecutionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListOpenWorkflowExecutionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9062, "before": "public CharSequence getFirstPathElement() {return values.get(0).value;}", "after": "public virtual string GetFirstPathElement(){return values[0].Value;}" }, { "index": 9063, "before": "public static int toEMU(double points){return (int)Math.rint(EMU_PER_POINT*points);}", "after": "public static int ToEMU(double value){return (int)Math.Round(EMU_PER_POINT * value);}" }, { "index": 9064, "before": "public DeleteRequestValidatorResult deleteRequestValidator(DeleteRequestValidatorRequest request) {request = beforeClientExecution(request);return executeDeleteRequestValidator(request);}", "after": "public virtual DeleteRequestValidatorResponse DeleteRequestValidator(DeleteRequestValidatorRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRequestValidatorRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRequestValidatorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9065, "before": "public Repository open(boolean mustExist) throws IOException {if (mustExist && !isGitRepository(path, fs))throw new RepositoryNotFoundException(path);return new FileRepository(path);}", "after": "public virtual Repository Open(bool mustExist){if (mustExist && !IsGitRepository(path, fs)){throw new RepositoryNotFoundException(path);}return new FileRepository(path);}" }, { "index": 9066, "before": "public GetOnPremisesInstanceResult getOnPremisesInstance(GetOnPremisesInstanceRequest request) {request = beforeClientExecution(request);return executeGetOnPremisesInstance(request);}", "after": "public virtual GetOnPremisesInstanceResponse GetOnPremisesInstance(GetOnPremisesInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOnPremisesInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOnPremisesInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9067, "before": "public String toString(){StringBuilder sb = new StringBuilder();sb.append( '(' ).append( startOffset ).append( ',' ).append( endOffset ).append( ')' );return sb.toString();}", "after": "public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append('(').Append(startOffset).Append(',').Append(endOffset).Append(')');return sb.ToString();}" }, { "index": 9068, "before": "public short getFontAtIndex( int index ) {int size = _string.getFormatRunCount();FormatRun currentRun = null;for (int i=0;i index) {break;}currentRun = r;}if (currentRun == null) {return NO_FONT;}return currentRun.getFontIndex();}", "after": "public short GetFontAtIndex(int index){int size = _string.FormatRunCount;UnicodeString.FormatRun currentRun = null;for (int i = 0; i < size; i++){UnicodeString.FormatRun r = _string.GetFormatRun(i);if (r.CharacterPos > index)break;else currentRun = r;}if (currentRun == null)return NO_FONT;else return currentRun.FontIndex;}" }, { "index": 9069, "before": "public StopMonitoringMembersResult stopMonitoringMembers(StopMonitoringMembersRequest request) {request = beforeClientExecution(request);return executeStopMonitoringMembers(request);}", "after": "public virtual StopMonitoringMembersResponse StopMonitoringMembers(StopMonitoringMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopMonitoringMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = StopMonitoringMembersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9070, "before": "public DetachLoadBalancerFromSubnetsResult detachLoadBalancerFromSubnets(DetachLoadBalancerFromSubnetsRequest request) {request = beforeClientExecution(request);return executeDetachLoadBalancerFromSubnets(request);}", "after": "public virtual DetachLoadBalancerFromSubnetsResponse DetachLoadBalancerFromSubnets(DetachLoadBalancerFromSubnetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachLoadBalancerFromSubnetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachLoadBalancerFromSubnetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9071, "before": "public HSSFCell getCell(int cellnum, MissingCellPolicy policy) {HSSFCell cell = retrieveCell(cellnum);switch (policy) {case RETURN_NULL_AND_BLANK:return cell;case RETURN_BLANK_AS_NULL:boolean isBlank = (cell != null && cell.getCellType() == CellType.BLANK);return (isBlank) ? null : cell;case CREATE_NULL_AS_BLANK:return (cell == null) ? createCell(cellnum, CellType.BLANK) : cell;default:throw new IllegalArgumentException(\"Illegal policy \" + policy);}}", "after": "public ICell GetCell(int cellnum, MissingCellPolicy policy){ICell cell = RetrieveCell(cellnum);if (policy == MissingCellPolicy.RETURN_NULL_AND_BLANK){return cell;}if (policy == MissingCellPolicy.RETURN_BLANK_AS_NULL){if (cell == null) return cell;if (cell.CellType == CellType.Blank){return null;}return cell;}if (policy == MissingCellPolicy.CREATE_NULL_AS_BLANK){if (cell == null){return CreateCell(cellnum, CellType.Blank);}return cell;}throw new ArgumentException(\"Illegal policy \" + policy + \" (\" + policy.id + \")\");}" }, { "index": 9072, "before": "public SimpleQQParser(String qqName, String indexField) {this(new String[] { qqName }, indexField);}", "after": "public SimpleQQParser(string qqName, string indexField): this(new string[] { qqName }" }, { "index": 9073, "before": "public Query makeQuery(int size) throws Exception {throw new Exception(this+\".makeQuery(int size) is not supported!\");}", "after": "public virtual Query MakeQuery(int size){throw new Exception(this + \".MakeQuery(int size) is not supported!\");}" }, { "index": 9074, "before": "public StringBuilder insert(int offset, float f) {insert0(offset, Float.toString(f));return this;}", "after": "public java.lang.StringBuilder insert(int offset, float f){insert0(offset, System.Convert.ToString(f));return this;}" }, { "index": 9075, "before": "public Class getListenerType() {return ConfigChangedListener.class;}", "after": "public override Type GetListenerType(){return typeof(ConfigChangedListener);}" }, { "index": 9076, "before": "public AddPermissionResult addPermission(AddPermissionRequest request) {request = beforeClientExecution(request);return executeAddPermission(request);}", "after": "public virtual AddPermissionResponse AddPermission(AddPermissionRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddPermissionRequestMarshaller.Instance;options.ResponseUnmarshaller = AddPermissionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9077, "before": "public double get(int index) {checkIndex(index);return byteBuffer.getDouble(index * SizeOf.DOUBLE);}", "after": "public override double get(int index){checkIndex(index);return byteBuffer.getDouble(index * libcore.io.SizeOf.DOUBLE);}" }, { "index": 9078, "before": "public HSSFDataFormat createDataFormat() {return workbook.createDataFormat();}", "after": "public NPOI.SS.UserModel.IDataFormat CreateDataFormat(){return dataFormat;}" }, { "index": 9079, "before": "public TermData add(TermData t1, TermData t2) {if (t1 == NO_OUTPUT) {return t2;} else if (t2 == NO_OUTPUT) {return t1;}TermData ret;if (t2.bytes != null || t2.docFreq > 0) {ret = new TermData(t2.bytes, t2.docFreq, t2.totalTermFreq);} else {ret = new TermData(t1.bytes, t1.docFreq, t1.totalTermFreq);}return ret;}", "after": "public override TermData Add(TermData t1, TermData t2){if (Equals(t1, NO_OUTPUT))return t2;if (Equals(t2, NO_OUTPUT))return t1;Debug.Assert(t1.longs.Length == t2.longs.Length);var pos = 0;var accum = new long[_longsSize];while (pos < _longsSize){accum[pos] = t1.longs[pos] + t2.longs[pos];pos++;}TermData ret;if (t2.bytes != null || t2.docFreq > 0){ret = new TermData(accum, t2.bytes, t2.docFreq, t2.totalTermFreq);}else{ret = new TermData(accum, t1.bytes, t1.docFreq, t1.totalTermFreq);}return ret;}" }, { "index": 9080, "before": "public FileSharingRecord(RecordInputStream in) {field_1_readonly = in.readShort();field_2_password = in.readShort();int nameLen = in.readShort();if(nameLen > 0) {field_3_username_unicode_options = in.readByte();field_3_username_value = in.readCompressedUnicode(nameLen);} else {field_3_username_value = \"\";}}", "after": "public FileSharingRecord(RecordInputStream in1){field_1_Readonly = in1.ReadShort();field_2_password = in1.ReadShort();int nameLen = in1.ReadShort();if (nameLen > 0){field_3_username_unicode_options = (byte)in1.ReadByte();field_3_username_value = in1.ReadCompressedUnicode(nameLen);if (field_3_username_value == null){field_3_username_value = \"\";}}else{field_3_username_value = \"\";}}" }, { "index": 9081, "before": "public double computeProbability(BasicStats stats) {return (stats.getTotalTermFreq()+1D) / (stats.getNumberOfFieldTokens()+1D);}", "after": "public virtual float ComputeProbability(BasicStats stats){return (stats.TotalTermFreq + 1F) / (stats.NumberOfFieldTokens + 1F);}" }, { "index": 9082, "before": "public StringCharacterIterator(String value) {string = value;start = offset = 0;end = string.length();}", "after": "public StringCharacterIterator(string value){@string = value;start = offset = 0;end = @string.Length;}" }, { "index": 9083, "before": "public void start(String originalText, TokenStream tokenStream) {position = -1;currentNumFrags = 1;textSize = originalText.length();termAtt = tokenStream.addAttribute(CharTermAttribute.class);posIncAtt = tokenStream.addAttribute(PositionIncrementAttribute.class);offsetAtt = tokenStream.addAttribute(OffsetAttribute.class);}", "after": "public virtual void Start(string originalText, TokenStream tokenStream){position = -1;currentNumFrags = 1;textSize = originalText.Length;termAtt = tokenStream.AddAttribute();posIncAtt = tokenStream.AddAttribute();offsetAtt = tokenStream.AddAttribute();}" }, { "index": 9084, "before": "public String getSignerVersion() {return null;}", "after": "public override string GetSignerVersion(){return \"1.0\";}" }, { "index": 9085, "before": "public String toString() {StringBuilder b = new StringBuilder();b.append(\"initial state: 0\\n\");for (int i = 0; i < size; i++) {b.append(\"state \").append(i);if (accept.get(i)) b.append(\" [accept]:\\n\");else b.append(\" [reject]:\\n\");for (int j = 0; j < points.length; j++) {int k = transitions[i * points.length + j];if (k != -1) {int min = points[j];int max;if (j + 1 < points.length) max = (points[j + 1] - 1);else max = alphabetSize;b.append(\" \");Automaton.appendCharString(min, b);if (min != max) {b.append(\"-\");Automaton.appendCharString(max, b);}b.append(\" -> \").append(k).append(\"\\n\");}}}return b.toString();}", "after": "public override string ToString(){var b = new StringBuilder();b.Append(\"initial state: \").Append(m_initial).Append(\"\\n\");for (int i = 0; i < _size; i++){b.Append(\"state \" + i);if (m_accept[i]){b.Append(\" [accept]:\\n\");}else{b.Append(\" [reject]:\\n\");}for (int j = 0; j < _points.Length; j++){int k = m_transitions[i * _points.Length + j];if (k != -1){int min = _points[j];int max;if (j + 1 < _points.Length){max = (_points[j + 1] - 1);}else{max = _maxInterval;}b.Append(\" \");Transition.AppendCharString(min, b);if (min != max){b.Append(\"-\");Transition.AppendCharString(max, b);}b.Append(\" -> \").Append(k).Append(\"\\n\");}}}return b.ToString();}" }, { "index": 9086, "before": "public synchronized long skip(long charCount) {if (charCount <= 0) {return 0;}int numskipped;if (this.count - pos < charCount) {numskipped = this.count - pos;pos = this.count;} else {numskipped = (int) charCount;pos += charCount;}return numskipped;}", "after": "public override long skip(long charCount){lock (this){if (charCount <= 0){return 0;}int numskipped;if (this.count - pos < charCount){numskipped = this.count - pos;pos = this.count;}else{numskipped = (int)charCount;pos += (int)(charCount);}return numskipped;}}" }, { "index": 9087, "before": "@Override public ListIterator listIterator(int location) {synchronized (mutex) {return list.listIterator(location);}}", "after": "public virtual java.util.ListIterator listIterator(int location){lock (mutex){return list.listIterator(location);}}" }, { "index": 9088, "before": "public CreateAddressBookResult createAddressBook(CreateAddressBookRequest request) {request = beforeClientExecution(request);return executeCreateAddressBook(request);}", "after": "public virtual CreateAddressBookResponse CreateAddressBook(CreateAddressBookRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAddressBookRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAddressBookResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9089, "before": "public StreamCopyThread(InputStream i, OutputStream o) {setName(Thread.currentThread().getName() + \"-StreamCopy\"); src = i;dst = o;writeLock = new Object();}", "after": "public StreamCopyThread(InputStream i, OutputStream o){SetName(Sharpen.Thread.CurrentThread().GetName() + \"-StreamCopy\");src = i;dst = o;}" }, { "index": 9090, "before": "public AxisParentRecord(RecordInputStream in) {field_1_axisType = in.readShort();field_2_x = in.readInt();field_3_y = in.readInt();field_4_width = in.readInt();field_5_height = in.readInt();}", "after": "public AxisParentRecord(RecordInputStream in1){field_1_axisType = in1.ReadShort();field_2_x = in1.ReadInt();field_3_y = in1.ReadInt();field_4_width = in1.ReadInt();field_5_height = in1.ReadInt();}" }, { "index": 9091, "before": "public FieldFragList createFieldFragList( FieldPhraseList fieldPhraseList, int fragCharSize ){return createFieldFragList( fieldPhraseList, new WeightedFieldFragList( fragCharSize ), fragCharSize );}", "after": "public override FieldFragList CreateFieldFragList(FieldPhraseList fieldPhraseList, int fragCharSize){return CreateFieldFragList(fieldPhraseList, new WeightedFieldFragList(fragCharSize), fragCharSize);}" }, { "index": 9092, "before": "public TrimFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public TrimFilterFactory(IDictionary args): base(args){m_updateOffsets = GetBoolean(args, \"updateOffsets\", false);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 9093, "before": "public void push( TermInfo termInfo ){termList.push( termInfo );}", "after": "public virtual void Push(TermInfo termInfo){termList.Insert(0, termInfo);}" }, { "index": 9094, "before": "public DescribeNotebookInstanceResult describeNotebookInstance(DescribeNotebookInstanceRequest request) {request = beforeClientExecution(request);return executeDescribeNotebookInstance(request);}", "after": "public virtual DescribeNotebookInstanceResponse DescribeNotebookInstance(DescribeNotebookInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNotebookInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNotebookInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9095, "before": "public String toFormulaString(){return \":\";}", "after": "public override String ToFormulaString(){return \":\";}" }, { "index": 9096, "before": "public ApplyCommand setPatch(InputStream in) {checkCallable();this.in = in;return this;}", "after": "public virtual NGit.Api.ApplyCommand SetPatch(InputStream @in){CheckCallable();this.@in = @in;return this;}" }, { "index": 9097, "before": "public void setCreationTime(long when) {encodeTS(P_CTIME, when);}", "after": "public virtual void SetCreationTime(long when){EncodeTS(P_CTIME, when);}" }, { "index": 9098, "before": "public static final RevFilter before(Date ts) {return before(ts.getTime());}", "after": "public static RevFilter Before(long ts){return new CommitTimeRevFilterBefore(ts);}" }, { "index": 9099, "before": "public void advertiseCapability(String name) {capablities.add(name);}", "after": "public virtual void AdvertiseCapability(string name){capablities.AddItem(name);}" }, { "index": 9100, "before": "public StopInstancesRequest(java.util.List instanceIds) {setInstanceIds(instanceIds);}", "after": "public StopInstancesRequest(List instanceIds){_instanceIds = instanceIds;}" }, { "index": 9101, "before": "public CreateVpnGatewayResult createVpnGateway(CreateVpnGatewayRequest request) {request = beforeClientExecution(request);return executeCreateVpnGateway(request);}", "after": "public virtual CreateVpnGatewayResponse CreateVpnGateway(CreateVpnGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVpnGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVpnGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9102, "before": "public ResetCacheParameterGroupResult resetCacheParameterGroup(ResetCacheParameterGroupRequest request) {request = beforeClientExecution(request);return executeResetCacheParameterGroup(request);}", "after": "public virtual ResetCacheParameterGroupResponse ResetCacheParameterGroup(ResetCacheParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetCacheParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetCacheParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9103, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {double result;try {double d0 = singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = singleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);result = evaluate(d0, d1);if (result == 0.0) { if (!(this instanceof SubtractEvalClass)) {return NumberEval.ZERO;}}if (Double.isNaN(result) || Double.isInfinite(result)) {return ErrorEval.NUM_ERROR;}} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){double result;try{double d0 = SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);result = Evaluate(d0, d1);if (result == 0.0){ if (!(this is SubtractEval)){return NumberEval.ZERO;}}if (Double.IsNaN(result) || Double.IsInfinity(result)){return ErrorEval.NUM_ERROR;}}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}" }, { "index": 9104, "before": "public PutMetricFilterRequest(String logGroupName, String filterName, String filterPattern, java.util.List metricTransformations) {setLogGroupName(logGroupName);setFilterName(filterName);setFilterPattern(filterPattern);setMetricTransformations(metricTransformations);}", "after": "public PutMetricFilterRequest(string logGroupName, string filterName, string filterPattern, List metricTransformations){_logGroupName = logGroupName;_filterName = filterName;_filterPattern = filterPattern;_metricTransformations = metricTransformations;}" }, { "index": 9105, "before": "@Override public E get(int location) {synchronized (mutex) {return list.get(location);}}", "after": "public virtual E get(int location){lock (mutex){return list.get(location);}}" }, { "index": 9106, "before": "public IntPtg(int value) {if (!isInRange(value)) {throw new IllegalArgumentException(\"value is out of range: \" + value);}field_1_value = value;}", "after": "public IntPtg(int value){if (!IsInRange(value)){throw new ArgumentException(\"value is out of range: \" + value);}field_1_value = value;}" }, { "index": 9107, "before": "public Builder() {this(16, 16);}", "after": "public Builder(): base(){lastDocID = -1;wordNum = -1;word = 0;}" }, { "index": 9108, "before": "public long getItemId(int position) {return position;}", "after": "public override long getItemId(int position){return position;}" }, { "index": 9109, "before": "public ByteBuffer putDouble(int index, double value) {return putLong(index, Double.doubleToRawLongBits(value));}", "after": "public override java.nio.ByteBuffer putDouble(int index, double value){return putLong(index, Sharpen.Util.DoubleToRawLongBits(value));}" }, { "index": 9110, "before": "public void clear() {value = false;}", "after": "public override void Clear(){value = false;}" }, { "index": 9111, "before": "public CharVector(char[] a) {blockSize = DEFAULT_BLOCK_SIZE;array = a;n = a.length;}", "after": "public CharVector(char[] a){blockSize = DEFAULT_BLOCK_SIZE;array = a;n = a.Length;}" }, { "index": 9112, "before": "public UAX29URLEmailTokenizerFactory(Map args) {super(args);maxTokenLength = getInt(args, \"maxTokenLength\", StandardAnalyzer.DEFAULT_MAX_TOKEN_LENGTH);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public UAX29URLEmailTokenizerFactory(IDictionary args): base(args){AssureMatchVersion();maxTokenLength = GetInt32(args, \"maxTokenLength\", StandardAnalyzer.DEFAULT_MAX_TOKEN_LENGTH);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 9113, "before": "public long ramBytesUsed() {long sizeInBytes = 0;for(FieldIndexData entry : fields.values()) {sizeInBytes += entry.ramBytesUsed();}return sizeInBytes;}", "after": "public virtual long RamBytesUsed(){return fst == null ? 0 : fst.GetSizeInBytes();}" }, { "index": 9114, "before": "public boolean equals(Object other) {if (!(other instanceof CharBuffer)) {return false;}CharBuffer otherBuffer = (CharBuffer) other;if (remaining() != otherBuffer.remaining()) {return false;}int myPosition = position;int otherPosition = otherBuffer.position;boolean equalSoFar = true;while (equalSoFar && (myPosition < limit)) {equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}", "after": "public override bool Equals(object other){if (!(other is java.nio.CharBuffer)){return false;}java.nio.CharBuffer otherBuffer = (java.nio.CharBuffer)other;if (remaining() != otherBuffer.remaining()){return false;}int myPosition = _position;int otherPosition = otherBuffer._position;bool equalSoFar = true;while (equalSoFar && (myPosition < _limit)){equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}" }, { "index": 9115, "before": "public StartDeploymentResult startDeployment(StartDeploymentRequest request) {request = beforeClientExecution(request);return executeStartDeployment(request);}", "after": "public virtual StartDeploymentResponse StartDeployment(StartDeploymentRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDeploymentRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDeploymentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9116, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[1904]\\n\");buffer.append(\" .is1904 = \").append(Integer.toHexString(getWindowing())).append(\"\\n\");buffer.append(\"[/1904]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[1904]\\n\");buffer.Append(\" .is1904 = \").Append(StringUtil.ToHexString(Windowing)).Append(\"\\n\");buffer.Append(\"[/1904]\\n\");return buffer.ToString();}" }, { "index": 9117, "before": "public CreateModelResult createModel(CreateModelRequest request) {request = beforeClientExecution(request);return executeCreateModel(request);}", "after": "public virtual CreateModelResponse CreateModel(CreateModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateModelRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateModelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9118, "before": "public DoubleBuffer put(double c) {if (position == limit) {throw new BufferOverflowException();}backingArray[offset + position++] = c;return this;}", "after": "public override java.nio.DoubleBuffer put(double c){if (_position == _limit){throw new java.nio.BufferOverflowException();}backingArray[offset + _position++] = c;return this;}" }, { "index": 9119, "before": "public SimpleFacetsExample() {config.setHierarchical(\"Publish Date\", true);}", "after": "public SimpleFacetsExample(){config.SetHierarchical(\"Publish Date\", true);}" }, { "index": 9120, "before": "public DeleteConnectionResult deleteConnection(DeleteConnectionRequest request) {request = beforeClientExecution(request);return executeDeleteConnection(request);}", "after": "public virtual DeleteConnectionResponse DeleteConnection(DeleteConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteConnectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9121, "before": "public String getSheetFirstNameByExternSheet(int externSheetIndex) {return _iBook.findSheetFirstNameFromExternSheet(externSheetIndex);}", "after": "public String GetSheetFirstNameByExternSheet(int externSheetIndex){return _iBook.FindSheetFirstNameFromExternSheet(externSheetIndex);}" }, { "index": 9122, "before": "public void begin(int timeout) {if (timeout <= 0)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().invalidTimeout, Integer.valueOf(timeout)));Thread.interrupted();state.begin(timeout);}", "after": "public void Begin(int timeout){if (timeout <= 0){throw new ArgumentException(MessageFormat.Format(JGitText.Get().invalidTimeout, Sharpen.Extensions.ValueOf(timeout)));}Sharpen.Thread.Interrupted();state.Begin(timeout);}" }, { "index": 9123, "before": "public final T updateTop() {downHeap(1);return heap[1];}", "after": "public T UpdateTop(){DownHeap();return heap[1];}" }, { "index": 9124, "before": "public QueryNodeException(Message message) {super(message.getKey());this.message = message;}", "after": "public QueryNodeException(IMessage message): base(message.Key){this.m_message = message;}" }, { "index": 9125, "before": "public static double factorial(int n) {double d = 1;if (n >= 0) {if (n <= 170) {for (int i=1; i<=n; i++) {d *= i;}}else {d = Double.POSITIVE_INFINITY;}}else {d = Double.NaN;}return d;}", "after": "public static double Factorial(int n){double d = 1;if (n >= 0){if (n <= 170){for (int i = 1; i <= n; i++){d *= i;}}else{d = double.PositiveInfinity;}}else{d = double.NaN;}return d;}" }, { "index": 9126, "before": "public void sort(RevSort s) {assertNotStarted();sorting.clear();sorting.add(s);}", "after": "public virtual void Sort(RevSort s){AssertNotStarted();sorting.Clear();sorting.AddItem(s);}" }, { "index": 9127, "before": "public CreateAuthorizerResult createAuthorizer(CreateAuthorizerRequest request) {request = beforeClientExecution(request);return executeCreateAuthorizer(request);}", "after": "public virtual CreateAuthorizerResponse CreateAuthorizer(CreateAuthorizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAuthorizerRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAuthorizerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9128, "before": "public boolean isDeltaCompress() {return deltaCompress;}", "after": "public virtual bool IsDeltaCompress(){return deltaCompress;}" }, { "index": 9129, "before": "public CreateWorkGroupResult createWorkGroup(CreateWorkGroupRequest request) {request = beforeClientExecution(request);return executeCreateWorkGroup(request);}", "after": "public virtual CreateWorkGroupResponse CreateWorkGroup(CreateWorkGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateWorkGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateWorkGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9130, "before": "public BatchDetectSyntaxResult batchDetectSyntax(BatchDetectSyntaxRequest request) {request = beforeClientExecution(request);return executeBatchDetectSyntax(request);}", "after": "public virtual BatchDetectSyntaxResponse BatchDetectSyntax(BatchDetectSyntaxRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDetectSyntaxRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDetectSyntaxResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9131, "before": "public void removeManager() {remove1stProperty(PropertyIDMap.PID_MANAGER);}", "after": "public void RemoveManager(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_MANAGER);}" }, { "index": 9132, "before": "public Set keySet() {return Collections.unmodifiableSet(dictionary.values());}", "after": "public ICollection KeySet(){return dictionaryNameToID.Keys;}" }, { "index": 9133, "before": "public long hash1(char carray[]) {final long p = 1099511628211L;long hash = 0xcbf29ce484222325L;for (int i = 0; i < carray.length; i++) {char d = carray[i];hash = (hash ^ (d & 0x00FF)) * p;hash = (hash ^ (d >> 8)) * p;}return hash;}", "after": "public virtual long Hash1(char c){long p = 1099511628211L;long hash = unchecked((long)0xcbf29ce484222325L);hash = (hash ^ (c & 0x00FF)) * p;hash = (hash ^ (c >> 8)) * p;hash += hash << 13;hash ^= hash >> 7;hash += hash << 3;hash ^= hash >> 17;hash += hash << 5;return hash;}" }, { "index": 9134, "before": "public PutScalingPolicyResult putScalingPolicy(PutScalingPolicyRequest request) {request = beforeClientExecution(request);return executePutScalingPolicy(request);}", "after": "public virtual PutScalingPolicyResponse PutScalingPolicy(PutScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = PutScalingPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9135, "before": "public KeywordRepeatFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public KeywordRepeatFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 9136, "before": "public void recycleByteBlocks(List blocks) {final byte[][] b = blocks.toArray(new byte[blocks.size()][]);recycleByteBlocks(b, 0, b.length);}", "after": "public virtual void RecycleByteBlocks(IList blocks){var b = blocks.ToArray();RecycleByteBlocks(b, 0, b.Length);}" }, { "index": 9137, "before": "public List get(int start, int stop) {if ( start<0 || stop<0 ) return null;lazyInit();List subset = new ArrayList();if ( stop>=tokens.size() ) stop = tokens.size()-1;for (int i = start; i <= stop; i++) {Token t = tokens.get(i);if ( t.getType()==Token.EOF ) break;subset.add(t);}return subset;}", "after": "public virtual IList Get(int start, int stop){if (start < 0 || stop < 0){return null;}LazyInit();IList subset = new List();if (stop >= tokens.Count){stop = tokens.Count - 1;}for (int i = start; i <= stop; i++){IToken t = tokens[i];if (t.Type == TokenConstants.EOF){break;}subset.Add(t);}return subset;}" }, { "index": 9138, "before": "public String toString() {return tokenName + \":\" + type;}", "after": "public override string ToString(){return tokenName + \":\" + Type;}" }, { "index": 9139, "before": "public static Automaton build(Collection input) {final DaciukMihovAutomatonBuilder builder = new DaciukMihovAutomatonBuilder();char[] chars = new char[0];CharsRef ref = new CharsRef();for (BytesRef b : input) {chars = ArrayUtil.grow(chars, b.length);final int len = UnicodeUtil.UTF8toUTF16(b, chars);ref.chars = chars;ref.length = len;builder.add(ref);}Automaton.Builder a = new Automaton.Builder();convert(a,builder.complete(),new IdentityHashMap());return a.finish();}", "after": "public static Automaton Build(ICollection input){DaciukMihovAutomatonBuilder builder = new DaciukMihovAutomatonBuilder();CharsRef scratch = new CharsRef();foreach (BytesRef b in input){UnicodeUtil.UTF8toUTF16(b, scratch);builder.Add(scratch);}return new Automaton{initial = Convert(builder.Complete(), new JCG.Dictionary(IdentityEqualityComparer.Default)),deterministic = true};}" }, { "index": 9140, "before": "public Row merge(Row master, Row existing) {Iterator i = master.cells.keySet().iterator();Row n = new Row();for (; i.hasNext();) {Character ch = i.next();Cell a = master.cells.get(ch);Cell b = existing.cells.get(ch);Cell s = (b == null) ? new Cell(a) : merge(a, b);if (s == null) {return null;}n.cells.put(ch, s);}i = existing.cells.keySet().iterator();for (; i.hasNext();) {Character ch = i.next();if (master.at(ch) != null) {continue;}n.cells.put(ch, existing.at(ch));}return n;}", "after": "public Row Merge(Row master, Row existing){Row n = new Row();foreach (char ch in master.cells.Keys){master.cells.TryGetValue(ch, out Cell a);Cell s = !existing.cells.TryGetValue(ch, out Cell b) || (b == null) ? new Cell(a) : Merge(a, b);if (s == null){return null;}n.cells[ch] = s;}foreach (char ch in existing.cells.Keys){if (master.At(ch) != null){continue;}n.cells[ch] = existing.At(ch);}return n;}" }, { "index": 9141, "before": "public E peekFirst() {return peekFirstImpl();}", "after": "public virtual E peekFirst(){return peekFirstImpl();}" }, { "index": 9142, "before": "public static int response(HttpConnection c) throws IOException {try {return c.getResponseCode();} catch (ConnectException ce) {final URL url = c.getURL();final String host = (url == null) ? \"\" : url.getHost(); if (\"Connection timed out: connect\".equals(ce.getMessage())) throw new ConnectException(MessageFormat.format(JGitText.get().connectionTimeOut, host));throw new ConnectException(ce.getMessage() + \" \" + host); }}", "after": "public static int Response(HttpURLConnection c){try{return c.GetResponseCode();}catch (ConnectException ce){string host = c.GetURL().GetHost();if (\"Connection timed out: connect\".Equals(ce.Message)){throw new ConnectException(MessageFormat.Format(JGitText.Get().connectionTimeOut,host));}throw new ConnectException(ce.Message + \" \" + host);}}" }, { "index": 9143, "before": "public GetConfigurationResult getConfiguration(GetConfigurationRequest request) {request = beforeClientExecution(request);return executeGetConfiguration(request);}", "after": "public virtual GetConfigurationResponse GetConfiguration(GetConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9144, "before": "public static Collection getSupportedFunctionNames(){Collection lst = new TreeSet<>();lst.addAll(FunctionEval.getSupportedFunctionNames());lst.addAll(AnalysisToolPak.getSupportedFunctionNames());return Collections.unmodifiableCollection(lst);}", "after": "public static List GetSupportedFunctionNames(){List lst = new List();lst.AddRange(FunctionEval.GetSupportedFunctionNames());lst.AddRange(AnalysisToolPak.GetSupportedFunctionNames());return lst;}" }, { "index": 9145, "before": "public PerFieldAnalyzerWrapper(Analyzer defaultAnalyzer,Map fieldAnalyzers) {super(PER_FIELD_REUSE_STRATEGY);this.defaultAnalyzer = defaultAnalyzer;this.fieldAnalyzers = (fieldAnalyzers != null) ? fieldAnalyzers : Collections.emptyMap();}", "after": "public PerFieldAnalyzerWrapper(Analyzer defaultAnalyzer, IDictionary fieldAnalyzers): base(PER_FIELD_REUSE_STRATEGY){this.defaultAnalyzer = defaultAnalyzer;this.fieldAnalyzers = fieldAnalyzers ?? new JCG.Dictionary(); }" }, { "index": 9146, "before": "public DeletePublishingDestinationResult deletePublishingDestination(DeletePublishingDestinationRequest request) {request = beforeClientExecution(request);return executeDeletePublishingDestination(request);}", "after": "public virtual DeletePublishingDestinationResponse DeletePublishingDestination(DeletePublishingDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeletePublishingDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeletePublishingDestinationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9147, "before": "public GetSendStatisticsResult getSendStatistics(GetSendStatisticsRequest request) {request = beforeClientExecution(request);return executeGetSendStatistics(request);}", "after": "public virtual GetSendStatisticsResponse GetSendStatistics(GetSendStatisticsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSendStatisticsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSendStatisticsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9148, "before": "public void copyArea(int x, int y, int width, int height, int dx, int dy){if (logger.check( POILogger.WARN ))logger.log(POILogger.WARN,\"copyArea not supported\");}", "after": "public void CopyArea(int x, int y, int width, int height, int dx, int dy){if (Logger.Check(POILogger.WARN))Logger.Log(POILogger.WARN, \"copyArea not supported\");}" }, { "index": 9149, "before": "public AreaErrPtg() {unused1 = 0;unused2 = 0;}", "after": "public AreaErrPtg(){unused1 = 0;unused2 = 0;}" }, { "index": 9150, "before": "public GetUserSettingsResult getUserSettings(GetUserSettingsRequest request) {request = beforeClientExecution(request);return executeGetUserSettings(request);}", "after": "public virtual GetUserSettingsResponse GetUserSettings(GetUserSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUserSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUserSettingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9151, "before": "public static String toString(Object obj) {if (obj != null) {return obj.toString();} else {return null;}}", "after": "public static string ToString(object obj){if (obj != null){return obj.ToString();}else{return null;}}" }, { "index": 9152, "before": "public String getAccessKeySecret() {return accessKeySecret;}", "after": "public string GetAccessKeySecret(){return accessKeySecret;}" }, { "index": 9153, "before": "public Collection evaluate(ParseTree t) {List nodes = new ArrayList();for (Tree c : Trees.getChildren(t)) {if ( c instanceof TerminalNode ) {TerminalNode tnode = (TerminalNode)c;if ( (tnode.getSymbol().getType() == tokenType && !invert) ||(tnode.getSymbol().getType() != tokenType && invert) ){nodes.add(tnode);}}}return nodes;}", "after": "public override ICollection Evaluate(IParseTree t){IList nodes = new List();foreach (ITree c in Trees.GetChildren(t)){if (c is ITerminalNode){ITerminalNode tnode = (ITerminalNode)c;if ((tnode.Symbol.Type == tokenType && !invert) || (tnode.Symbol.Type != tokenType && invert)){nodes.Add(tnode);}}}return nodes;}" }, { "index": 9154, "before": "public IsVpcPeeredResult isVpcPeered(IsVpcPeeredRequest request) {request = beforeClientExecution(request);return executeIsVpcPeered(request);}", "after": "public virtual IsVpcPeeredResponse IsVpcPeered(IsVpcPeeredRequest request){var options = new InvokeOptions();options.RequestMarshaller = IsVpcPeeredRequestMarshaller.Instance;options.ResponseUnmarshaller = IsVpcPeeredResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9155, "before": "public String toString() {return \"ShardRef(shardIndex=\" + shardIndex + \" hitIndex=\" + hitIndex + \")\";}", "after": "public override string ToString(){return \"ShardRef(shardIndex=\" + ShardIndex + \" hitIndex=\" + HitIndex + \")\";}" }, { "index": 9156, "before": "public TerminateJobFlowsRequest(java.util.List jobFlowIds) {setJobFlowIds(jobFlowIds);}", "after": "public TerminateJobFlowsRequest(List jobFlowIds){_jobFlowIds = jobFlowIds;}" }, { "index": 9157, "before": "public DatRecord(RecordInputStream in) {field_1_options = in.readShort();}", "after": "public DatRecord(RecordInputStream in1){field_1_options = in1.ReadShort();}" }, { "index": 9158, "before": "public void removeExFormatRecord(int index) {int xfptr = records.getXfpos() - (numxfs - 1) + index;records.remove(xfptr); numxfs--;}", "after": "public void RemoveExFormatRecord(int index){int xfptr = records.Xfpos - (numxfs - 1) + index;records.Remove(xfptr); numxfs--;}" }, { "index": 9159, "before": "public double get(String name, double dflt) {double vals[] = (double[]) valByRound.get(name);if (vals != null) {return vals[roundNumber % vals.length];}String sval = props.getProperty(name, \"\" + dflt);if (sval.indexOf(\":\") < 0) {return Double.parseDouble(sval);}int k = sval.indexOf(\":\");String colName = sval.substring(0, k);sval = sval.substring(k + 1);colForValByRound.put(name, colName);vals = propToDoubleArray(sval);valByRound.put(name, vals);return vals[roundNumber % vals.length];}", "after": "public virtual double Get(string name, double dflt){double[] vals;object temp;if (valByRound.TryGetValue(name, out temp) && temp != null){vals = (double[])temp;return vals[roundNumber % vals.Length];}string sval;if (!props.TryGetValue(name, out sval)){sval = dflt.ToString(CultureInfo.InvariantCulture);}if (sval.IndexOf(':') < 0){return double.Parse(sval, CultureInfo.InvariantCulture);}int k = sval.IndexOf(':');string colName = sval.Substring(0, k - 0);sval = sval.Substring(k + 1);colForValByRound[name] = colName;vals = PropToDoubleArray(sval);valByRound[name] = vals;return vals[roundNumber % vals.Length];}" }, { "index": 9160, "before": "public BlockPackedReaderIterator(DataInput in, int packedIntsVersion, int blockSize, long valueCount) {checkBlockSize(blockSize, MIN_BLOCK_SIZE, MAX_BLOCK_SIZE);this.packedIntsVersion = packedIntsVersion;this.blockSize = blockSize;this.values = new long[blockSize];this.valuesRef = new LongsRef(this.values, 0, 0);reset(in, valueCount);}", "after": "public BlockPackedReaderIterator(DataInput @in, int packedIntsVersion, int blockSize, long valueCount){PackedInt32s.CheckBlockSize(blockSize, AbstractBlockPackedWriter.MIN_BLOCK_SIZE, AbstractBlockPackedWriter.MAX_BLOCK_SIZE);this.packedIntsVersion = packedIntsVersion;this.blockSize = blockSize;this.values = new long[blockSize];this.valuesRef = new Int64sRef(this.values, 0, 0);Reset(@in, valueCount);}" }, { "index": 9161, "before": "public void reset() {if (!first()) {ptr = treeStart;nextSubtreePos = 0;currentEntry = null;currentSubtree = null;if (!eof())parseEntry();}}", "after": "public override void Reset(){if (!First){ptr = treeStart;if (!Eof){ParseEntry();}}}" }, { "index": 9162, "before": "public BytesRef getPayload() {if (payloadLength == 0) {return null;} else {return payload;}}", "after": "public override BytesRef GetPayload(){if (payloadLength == 0){return null;}else{return payload;}}" }, { "index": 9163, "before": "public synchronized void setIndeterminate(boolean indeterminate) {if ((!mOnlyIndeterminate || !mIndeterminate) && indeterminate != mIndeterminate) {mIndeterminate = indeterminate;if (indeterminate) {mCurrentDrawable = mIndeterminateDrawable;startAnimation();} else {mCurrentDrawable = mProgressDrawable;stopAnimation();}}}", "after": "public virtual void setIndeterminate(bool indeterminate){lock (this){if ((!mOnlyIndeterminate || !mIndeterminate) && indeterminate != mIndeterminate){mIndeterminate = indeterminate;if (indeterminate){mCurrentDrawable = mIndeterminateDrawable;startAnimation();}else{mCurrentDrawable = mProgressDrawable;stopAnimation();}}}}" }, { "index": 9164, "before": "public void notifyDeleteCell(HSSFCell cell) {_bookEvaluator.notifyDeleteCell(new HSSFEvaluationCell(cell));}", "after": "public void NotifyDeleteCell(ICell cell){_bookEvaluator.NotifyDeleteCell(new HSSFEvaluationCell(cell));}" }, { "index": 9165, "before": "public boolean equals(Object o) {if (!(o instanceof FieldCacheSource)) return false;FieldCacheSource other = (FieldCacheSource)o;return this.field.equals(other.field);}", "after": "public override bool Equals(object o){var other = o as FieldCacheSource;if (other == null){return false;}return m_field.Equals(other.m_field, StringComparison.Ordinal) && m_cache == other.m_cache;}" }, { "index": 9166, "before": "public DescribeLoaResult describeLoa(DescribeLoaRequest request) {request = beforeClientExecution(request);return executeDescribeLoa(request);}", "after": "public virtual DescribeLoaResponse DescribeLoa(DescribeLoaRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoaRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9167, "before": "public final K next() { return nextEntry().key; }", "after": "public override K next(){return this.nextEntry().key;}" }, { "index": 9168, "before": "public ListFleetsResult listFleets(ListFleetsRequest request) {request = beforeClientExecution(request);return executeListFleets(request);}", "after": "public virtual ListFleetsResponse ListFleets(ListFleetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFleetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFleetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9169, "before": "public DelegationSet(java.util.List nameServers) {setNameServers(nameServers);}", "after": "public DelegationSet(List nameServers){_nameServers = nameServers;}" }, { "index": 9170, "before": "public GetKeyPairsResult getKeyPairs(GetKeyPairsRequest request) {request = beforeClientExecution(request);return executeGetKeyPairs(request);}", "after": "public virtual GetKeyPairsResponse GetKeyPairs(GetKeyPairsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetKeyPairsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetKeyPairsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9171, "before": "public ReservedNode purchaseReservedNodeOffering(PurchaseReservedNodeOfferingRequest request) {request = beforeClientExecution(request);return executePurchaseReservedNodeOffering(request);}", "after": "public virtual PurchaseReservedNodeOfferingResponse PurchaseReservedNodeOffering(PurchaseReservedNodeOfferingRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurchaseReservedNodeOfferingRequestMarshaller.Instance;options.ResponseUnmarshaller = PurchaseReservedNodeOfferingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9172, "before": "public String getPassword() {return password;}", "after": "public virtual string GetPassword(){return password;}" }, { "index": 9173, "before": "public String getValue(String name) {return nameValPairs.get(name);}", "after": "public virtual string GetValue(string name){string result;nameValPairs.TryGetValue(name, out result);return result;}" }, { "index": 9174, "before": "public static String format(byte[] delta) {return format(delta, true);}", "after": "public static string Format(byte[] delta){return Format(delta, true);}" }, { "index": 9175, "before": "public Token(int kind, String image){this.kind = kind;this.image = image;}", "after": "public Token(int kind, string image){this.Kind = kind;this.Image = image;}" }, { "index": 9176, "before": "public ArrayRecord(RecordInputStream in) {super(in);_options = in.readUShort();_field3notUsed = in.readInt();int formulaTokenLen = in.readUShort();int totalFormulaLen = in.available();_formula = Formula.read(formulaTokenLen, in, totalFormulaLen);}", "after": "public ArrayRecord(RecordInputStream in1): base(in1){_options = in1.ReadUShort();_field3notUsed = in1.ReadInt();int formulaTokenLen = in1.ReadUShort();int totalFormulaLen = in1.Available();_formula = NPOI.SS.Formula.Formula.Read(formulaTokenLen, in1, totalFormulaLen);}" }, { "index": 9177, "before": "public BootstrapActionConfig(String name, ScriptBootstrapActionConfig scriptBootstrapAction) {setName(name);setScriptBootstrapAction(scriptBootstrapAction);}", "after": "public BootstrapActionConfig(string name, ScriptBootstrapActionConfig scriptBootstrapAction){_name = name;_scriptBootstrapAction = scriptBootstrapAction;}" }, { "index": 9178, "before": "public CreateLoadBalancerPolicyResult createLoadBalancerPolicy(CreateLoadBalancerPolicyRequest request) {request = beforeClientExecution(request);return executeCreateLoadBalancerPolicy(request);}", "after": "public virtual CreateLoadBalancerPolicyResponse CreateLoadBalancerPolicy(CreateLoadBalancerPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLoadBalancerPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLoadBalancerPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9179, "before": "public static String toHex(short value) {StringBuilder sb = new StringBuilder(4);writeHex(sb, value & 0xFFFF, 4, \"\");return sb.toString();}", "after": "public static string ToHex(byte value){return ToHex((long)value, 2);}" }, { "index": 9180, "before": "public String toString() {return \"MultiTermsEnum(\" + Arrays.toString(subs) + \")\";}", "after": "public override string ToString(){return \"MultiTermsEnum(\" + Arrays.ToString(subs) + \")\";}" }, { "index": 9181, "before": "public PayloadSpanUtil(IndexReaderContext context) {this.context = context;}", "after": "public PayloadSpanUtil(IndexReaderContext context){this.context = context;}" }, { "index": 9182, "before": "public List getErrors() {return errors;}", "after": "public virtual IList GetErrors(){return errors;}" }, { "index": 9183, "before": "public NormalisedDecimal createNormalisedDecimal(int pow10) {int missingUnderBits = _binaryExponent-39;int fracPart = (_significand.intValue() << missingUnderBits) & 0xFFFF80;long wholePart = _significand.shiftRight(C_64-_binaryExponent-1).longValue();return new NormalisedDecimal(wholePart, fracPart, pow10);}", "after": "public NormalisedDecimal CreateNormalisedDecimal(int pow10){int missingUnderBits = _binaryExponent - 39;int fracPart = (_significand.IntValue() << missingUnderBits) & 0xFFFF80;long wholePart = (_significand>>(C_64 - _binaryExponent - 1)).LongValue();return new NormalisedDecimal(wholePart, fracPart, pow10);}" }, { "index": 9184, "before": "public String toFormulaString(String[] operands) {StringBuilder buffer = new StringBuilder();buffer.append(MINUS);buffer.append(operands[ 0]);return buffer.toString();}", "after": "public override String ToFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.Append(MINUS);buffer.Append(operands[0]);return buffer.ToString();}" }, { "index": 9185, "before": "public ListStackSetOperationResultsResult listStackSetOperationResults(ListStackSetOperationResultsRequest request) {request = beforeClientExecution(request);return executeListStackSetOperationResults(request);}", "after": "public virtual ListStackSetOperationResultsResponse ListStackSetOperationResults(ListStackSetOperationResultsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStackSetOperationResultsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStackSetOperationResultsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9186, "before": "public static String getLocalizedMessage(String key, Object... args) {return getLocalizedMessage(key, Locale.getDefault(), args);}", "after": "public static string GetLocalizedMessage(string key, params object[] args){return GetLocalizedMessage(key, CultureInfo.CurrentUICulture, args);}" }, { "index": 9187, "before": "public final String reflectAsString(final boolean prependAttClass) {final StringBuilder buffer = new StringBuilder();reflectWith(new AttributeReflector() {@Override", "after": "public string ReflectAsString(bool prependAttClass){StringBuilder buffer = new StringBuilder();ReflectWith(new AttributeReflectorAnonymousInnerClassHelper(this, prependAttClass, buffer));return buffer.ToString();}" }, { "index": 9188, "before": "public CellRangeAddressBase getValuesCellRange() {return getCellRange(dataValues);}", "after": "public CellRangeAddressBase GetValuesCellRange(){return GetCellRange(dataValues);}" }, { "index": 9189, "before": "public DescribeMatchmakingConfigurationsResult describeMatchmakingConfigurations(DescribeMatchmakingConfigurationsRequest request) {request = beforeClientExecution(request);return executeDescribeMatchmakingConfigurations(request);}", "after": "public virtual DescribeMatchmakingConfigurationsResponse DescribeMatchmakingConfigurations(DescribeMatchmakingConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeMatchmakingConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeMatchmakingConfigurationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9190, "before": "public char get() {if (position == limit) {throw new BufferUnderflowException();}return byteBuffer.getChar(position++ * SizeOf.CHAR);}", "after": "public override char get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return byteBuffer.getChar(_position++ * libcore.io.SizeOf.CHAR);}" }, { "index": 9191, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[FtCf ]\\n\");buffer.append(\" size = \").append(length).append(\"\\n\");buffer.append(\" flags = \").append(HexDump.toHex(flags)).append(\"\\n\");buffer.append(\"[/FtCf ]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[FtCf ]\\n\");buffer.Append(\" size = \").Append(length).Append(\"\\n\");buffer.Append(\" flags = \").Append(HexDump.ToHex(flags)).Append(\"\\n\");buffer.Append(\"[/FtCf ]\\n\");return buffer.ToString();}" }, { "index": 9192, "before": "public PutConfigurationSetSuppressionOptionsResult putConfigurationSetSuppressionOptions(PutConfigurationSetSuppressionOptionsRequest request) {request = beforeClientExecution(request);return executePutConfigurationSetSuppressionOptions(request);}", "after": "public virtual PutConfigurationSetSuppressionOptionsResponse PutConfigurationSetSuppressionOptions(PutConfigurationSetSuppressionOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutConfigurationSetSuppressionOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutConfigurationSetSuppressionOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9193, "before": "public ListProposalVotesResult listProposalVotes(ListProposalVotesRequest request) {request = beforeClientExecution(request);return executeListProposalVotes(request);}", "after": "public virtual ListProposalVotesResponse ListProposalVotes(ListProposalVotesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListProposalVotesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListProposalVotesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9194, "before": "public SheetRangeEvaluator getRefEvaluatorForCurrentSheet() {SheetRefEvaluator sre = new SheetRefEvaluator(_bookEvaluator, _tracker, _sheetIndex);return new SheetRangeEvaluator(_sheetIndex, sre);}", "after": "public SheetRangeEvaluator GetRefEvaluatorForCurrentSheet(){SheetRefEvaluator sre = new SheetRefEvaluator(_bookEvaluator, _tracker, _sheetIndex);return new SheetRangeEvaluator(_sheetIndex, sre);}" }, { "index": 9195, "before": "public long ramBytesUsed() {return fst == null ? 0 : fst.ramBytesUsed();}", "after": "public override long RamBytesUsed(){long sizeInBytes = 0;foreach (FieldIndexData entry in fields.Values){sizeInBytes += entry.RamBytesUsed();}return sizeInBytes;}" }, { "index": 9196, "before": "public DataLabelExtensionRecord(RecordInputStream in) {rt = in.readShort();grbitFrt = in.readShort();in.readFully(unused);}", "after": "public DataLabelExtensionRecord(RecordInputStream in1){rt = in1.ReadShort();grbitFrt = in1.ReadShort();in1.ReadFully(unused);}" }, { "index": 9197, "before": "public ArchiveFindingsResult archiveFindings(ArchiveFindingsRequest request) {request = beforeClientExecution(request);return executeArchiveFindings(request);}", "after": "public virtual ArchiveFindingsResponse ArchiveFindings(ArchiveFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ArchiveFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = ArchiveFindingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9198, "before": "public ChartSubstreamRecordAggregate(RecordStream rs) {_bofRec = (BOFRecord) rs.getNext();List temp = new ArrayList<>();while (rs.peekNextClass() != EOFRecord.class) {if (PageSettingsBlock.isComponentRecord(rs.peekNextSid())) {if (_psBlock != null) {if (rs.peekNextSid() == HeaderFooterRecord.sid) {_psBlock.addLateHeaderFooter((HeaderFooterRecord)rs.getNext());continue;}throw new IllegalStateException(\"Found more than one PageSettingsBlock in chart sub-stream, had sid: \" + rs.peekNextSid());}_psBlock = new PageSettingsBlock(rs);temp.add(_psBlock);continue;}temp.add(rs.getNext());}_recs = temp;org.apache.poi.hssf.record.Record eof = rs.getNext(); if (!(eof instanceof EOFRecord)) {throw new IllegalStateException(\"Bad chart EOF\");}}", "after": "public ChartSubstreamRecordAggregate(RecordStream rs){_bofRec = (BOFRecord)rs.GetNext();List temp = new List();while (rs.PeekNextClass() != typeof(EOFRecord)){Type a = rs.PeekNextClass();if (PageSettingsBlock.IsComponentRecord(rs.PeekNextSid())){if (_psBlock != null){if (rs.PeekNextSid() == HeaderFooterRecord.sid){_psBlock.AddLateHeaderFooter((HeaderFooterRecord)rs.GetNext());continue;}throw new InvalidDataException(\"Found more than one PageSettingsBlock in chart sub-stream\");}_psBlock = new PageSettingsBlock(rs);temp.Add(_psBlock);continue;}temp.Add(rs.GetNext());}_recs = temp;Record eof = rs.GetNext(); if (!(eof is EOFRecord)){throw new InvalidOperationException(\"Bad chart EOF\");}}" }, { "index": 9199, "before": "public CreateSnapshotsResult createSnapshots(CreateSnapshotsRequest request) {request = beforeClientExecution(request);return executeCreateSnapshots(request);}", "after": "public virtual CreateSnapshotsResponse CreateSnapshots(CreateSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSnapshotsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9200, "before": "public String toFormulaString() {return \"()\";}", "after": "public override String ToFormulaString(){return \"()\";}" }, { "index": 9201, "before": "@Override public Iterator> iterator() {final Iterator> iterator = filteredEntrySet.iterator();return new UnmodifiableIterator>() {", "after": "public override java.util.Iterator> iterator(){return new java.util.Hashtable.EntryIterator(this._enclosing);}" }, { "index": 9202, "before": "public UnmonitorInstancesRequest(java.util.List instanceIds) {setInstanceIds(instanceIds);}", "after": "public UnmonitorInstancesRequest(List instanceIds){_instanceIds = instanceIds;}" }, { "index": 9203, "before": "public static Inflater get() {final Inflater r = getImpl();return r != null ? r : new Inflater(false);}", "after": "public static Inflater Get(){Inflater r = GetImpl();return r != null ? r : new Inflater(false);}" }, { "index": 9204, "before": "public long get(int index) {checkIndex(index);return byteBuffer.getLong(index * SizeOf.LONG);}", "after": "public override long get(int index){checkIndex(index);return byteBuffer.getLong(index * libcore.io.SizeOf.LONG);}" }, { "index": 9205, "before": "public IntervalSet complement(int minElement, int maxElement) {return this.complement(IntervalSet.of(minElement,maxElement));}", "after": "public virtual Antlr4.Runtime.Misc.IntervalSet Complement(int minElement, int maxElement){return this.Complement(Antlr4.Runtime.Misc.IntervalSet.Of(minElement, maxElement));}" }, { "index": 9206, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"\");if (getReverse()) buffer.append('!');if (missingValue != null) {buffer.append(\" missingValue=\");buffer.append(missingValue);}buffer.append(\" selector=\");buffer.append(selector);return buffer.toString();}", "after": "public override string ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"\");if (IsReverse) buffer.Append('!');if (MissingValue != null){buffer.Append(\" missingValue=\");buffer.Append(MissingValue);}buffer.Append(\" selector=\");buffer.Append(selector);return buffer.ToString();}" }, { "index": 9207, "before": "public DescribeTrafficMirrorSessionsResult describeTrafficMirrorSessions(DescribeTrafficMirrorSessionsRequest request) {request = beforeClientExecution(request);return executeDescribeTrafficMirrorSessions(request);}", "after": "public virtual DescribeTrafficMirrorSessionsResponse DescribeTrafficMirrorSessions(DescribeTrafficMirrorSessionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTrafficMirrorSessionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTrafficMirrorSessionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9208, "before": "public boolean isDirect() {return byteBuffer.isDirect();}", "after": "public override bool isDirect(){return byteBuffer.isDirect();}" }, { "index": 9209, "before": "public Set getConflicting() {return Collections.unmodifiableSet(diff.getConflicting());}", "after": "public virtual ICollection GetConflicting(){return Sharpen.Collections.UnmodifiableSet(diff.GetConflicting());}" }, { "index": 9210, "before": "public ListDeviceEventsResult listDeviceEvents(ListDeviceEventsRequest request) {request = beforeClientExecution(request);return executeListDeviceEvents(request);}", "after": "public virtual ListDeviceEventsResponse ListDeviceEvents(ListDeviceEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeviceEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeviceEventsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9211, "before": "@Override public boolean isEmpty() {return BoundedMap.this.isEmpty();}", "after": "public override bool isEmpty(){return this._enclosing.isEmpty();}" }, { "index": 9212, "before": "public EscherSimpleProperty( short id, int propertyValue ) {super( id );this.propertyValue = propertyValue;}", "after": "public EscherSimpleProperty(short id, int propertyValue):base(id){this.propertyValue = propertyValue;}" }, { "index": 9213, "before": "public PointPrefixTreeFieldCacheProvider(SpatialPrefixTree grid, String shapeField, int defaultSize) {super( shapeField, defaultSize );this.grid = grid;}", "after": "public PointPrefixTreeFieldCacheProvider(SpatialPrefixTree grid, string shapeField, int defaultSize): base(shapeField, defaultSize){this.grid = grid;}" }, { "index": 9214, "before": "public void writeByte(byte b) {assert pos < limit;bytes[pos++] = b;}", "after": "public override void WriteByte(byte b){Debug.Assert(pos < limit);bytes[pos++] = b;}" }, { "index": 9215, "before": "public DescribeTransitGatewayPeeringAttachmentsResult describeTransitGatewayPeeringAttachments(DescribeTransitGatewayPeeringAttachmentsRequest request) {request = beforeClientExecution(request);return executeDescribeTransitGatewayPeeringAttachments(request);}", "after": "public virtual DescribeTransitGatewayPeeringAttachmentsResponse DescribeTransitGatewayPeeringAttachments(DescribeTransitGatewayPeeringAttachmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTransitGatewayPeeringAttachmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTransitGatewayPeeringAttachmentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9216, "before": "public Set> entrySet() {if (entrySet == null) {entrySet = new AbstractSet>() {@Override", "after": "public override ICollection> EntrySet(){if (entrySet == null){entrySet = new _AbstractSet_223(this);}return entrySet;}" }, { "index": 9217, "before": "public final ValueEval evaluate(ValueEval[] args, int srcCellRow, int srcCellCol) {try {return evaluateFunc(args, srcCellRow, srcCellCol);} catch (EvaluationException e) {return e.getErrorEval();}}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcCellRow, int srcCellCol){try{return EvaluateFunc(args, srcCellRow, srcCellCol);}catch (EvaluationException e){return e.GetErrorEval();}}" }, { "index": 9218, "before": "public CreateConfigurationTemplateRequest(String applicationName, String templateName) {setApplicationName(applicationName);setTemplateName(templateName);}", "after": "public CreateConfigurationTemplateRequest(string applicationName, string templateName){_applicationName = applicationName;_templateName = templateName;}" }, { "index": 9219, "before": "public GetUsagePlansResult getUsagePlans(GetUsagePlansRequest request) {request = beforeClientExecution(request);return executeGetUsagePlans(request);}", "after": "public virtual GetUsagePlansResponse GetUsagePlans(GetUsagePlansRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUsagePlansRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUsagePlansResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9220, "before": "public static int serializePtgs(Ptg[] ptgs, byte[] array, int offset) {LittleEndianByteArrayOutputStream out = new LittleEndianByteArrayOutputStream(array, offset); List arrayPtgs = null;for (Ptg ptg : ptgs) {ptg.write(out);if (ptg instanceof ArrayPtg) {if (arrayPtgs == null) {arrayPtgs = new ArrayList<>(5);}arrayPtgs.add(ptg);}}if (arrayPtgs != null) {for (Ptg arrayPtg : arrayPtgs) {ArrayPtg p = (ArrayPtg) arrayPtg;p.writeTokenValueBytes(out);}}return out.getWriteIndex() - offset;}", "after": "public static int SerializePtgs(Ptg[] ptgs, byte[] array, int offset){int size = ptgs.Length;LittleEndianByteArrayOutputStream out1 = new LittleEndianByteArrayOutputStream(array, offset);ArrayList arrayPtgs = null;for (int k = 0; k < size; k++){Ptg ptg = ptgs[k];ptg.Write(out1);if (ptg is ArrayPtg){if (arrayPtgs == null){arrayPtgs = new ArrayList(5);}arrayPtgs.Add(ptg);}}if (arrayPtgs != null){for (int i = 0; i < arrayPtgs.Count; i++){ArrayPtg p = (ArrayPtg)arrayPtgs[i];p.WriteTokenValueBytes(out1);}}return out1.WriteIndex - offset; ;}" }, { "index": 9221, "before": "public int size() {return lines.size() - 2;}", "after": "public override int Size(){return lines.Size() - 2;}" }, { "index": 9222, "before": "public NumberRecord(RecordInputStream in) {super(in);field_4_value = in.readDouble();}", "after": "public NumberRecord(RecordInputStream in1):base(in1){field_4_value = in1.ReadDouble();}" }, { "index": 9223, "before": "public UnpeerVpcResult unpeerVpc(UnpeerVpcRequest request) {request = beforeClientExecution(request);return executeUnpeerVpc(request);}", "after": "public virtual UnpeerVpcResponse UnpeerVpc(UnpeerVpcRequest request){var options = new InvokeOptions();options.RequestMarshaller = UnpeerVpcRequestMarshaller.Instance;options.ResponseUnmarshaller = UnpeerVpcResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9224, "before": "public DescribeTransitGatewayMulticastDomainsResult describeTransitGatewayMulticastDomains(DescribeTransitGatewayMulticastDomainsRequest request) {request = beforeClientExecution(request);return executeDescribeTransitGatewayMulticastDomains(request);}", "after": "public virtual DescribeTransitGatewayMulticastDomainsResponse DescribeTransitGatewayMulticastDomains(DescribeTransitGatewayMulticastDomainsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTransitGatewayMulticastDomainsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTransitGatewayMulticastDomainsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9225, "before": "public final Break getBreak(int main) {Integer rowKey = Integer.valueOf(main);return _breakMap.get(rowKey);}", "after": "public Break GetBreak(int main){return (Break)_breakMap[main];}" }, { "index": 9226, "before": "public HSSFPatternFormatting getPatternFormatting(){return getPatternFormatting(false);}", "after": "public IPatternFormatting GetPatternFormatting(){return GetPatternFormatting(false);}" }, { "index": 9227, "before": "public FileMode getMode(Side side) {return side == Side.OLD ? getOldMode() : getNewMode();}", "after": "public virtual FileMode GetMode(DiffEntry.Side side){return side == DiffEntry.Side.OLD ? GetOldMode() : GetNewMode();}" }, { "index": 9228, "before": "public StringBuffer append(int i) {IntegralToString.appendInt(this, i);return this;}", "after": "public java.lang.StringBuffer append(bool b){return append(b ? \"true\" : \"false\");}" }, { "index": 9229, "before": "public boolean requiresCommitBody() {return true;}", "after": "public override bool RequiresCommitBody(){return false;}" }, { "index": 9230, "before": "public boolean remove(Object object) {Iterator it = iterator();if (object != null) {while (it.hasNext()) {if (object.equals(it.next())) {it.remove();return true;}}} else {while (it.hasNext()) {if (it.next() == null) {it.remove();return true;}}}return false;}", "after": "public virtual bool remove(object @object){java.util.Iterator it = iterator();if (@object != null){while (it.hasNext()){if (@object.Equals(it.next())){it.remove();return true;}}}else{while (it.hasNext()){if (it.next() == null){it.remove();return true;}}}return false;}" }, { "index": 9231, "before": "public Object get(CharSequence key) {return trie.get(key);}", "after": "public virtual object Get(string key){return trie.Get(key);}" }, { "index": 9232, "before": "public SubmoduleInitCommand submoduleInit() {return new SubmoduleInitCommand(repo);}", "after": "public virtual SubmoduleInitCommand SubmoduleInit(){return new SubmoduleInitCommand(repo);}" }, { "index": 9233, "before": "public GetRepositoryPolicyResult getRepositoryPolicy(GetRepositoryPolicyRequest request) {request = beforeClientExecution(request);return executeGetRepositoryPolicy(request);}", "after": "public virtual GetRepositoryPolicyResponse GetRepositoryPolicy(GetRepositoryPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRepositoryPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRepositoryPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9234, "before": "public HSSFPicture createPicture(ClientAnchor anchor, int pictureIndex) {return createPicture((HSSFClientAnchor) anchor, pictureIndex);}", "after": "public IPicture CreatePicture(IClientAnchor anchor, int pictureIndex){return CreatePicture((HSSFClientAnchor)anchor, pictureIndex);}" }, { "index": 9235, "before": "public int fillFields(byte[] data, int pOffset, EscherRecordFactory recordFactory) {int bytesRemaining = readHeader(data, pOffset);int bytesWritten = 8;int offset = pOffset + 8;while (bytesRemaining > 0 && offset < data.length) {EscherRecord child = recordFactory.createRecord(data, offset);int childBytesWritten = child.fillFields(data, offset, recordFactory);bytesWritten += childBytesWritten;offset += childBytesWritten;bytesRemaining -= childBytesWritten;addChildRecord(child);if (offset >= data.length && bytesRemaining > 0) {_remainingLength = bytesRemaining;if (log.check(POILogger.WARN)) {log.log(POILogger.WARN, \"Not enough Escher data: \" + bytesRemaining + \" bytes remaining but no space left\");}}}return bytesWritten;}", "after": "public override int FillFields(byte[] data, int offset, IEscherRecordFactory recordFactory){int bytesRemaining = ReadHeader(data, offset);int bytesWritten = 8;offset += 8;while (bytesRemaining > 0 && offset < data.Length){EscherRecord child = recordFactory.CreateRecord(data, offset);int childBytesWritten = child.FillFields(data, offset, recordFactory);bytesWritten += childBytesWritten;offset += childBytesWritten;bytesRemaining -= childBytesWritten;AddChildRecord(child);if (offset >= data.Length && bytesRemaining > 0){_remainingLength = bytesRemaining;log.Log(POILogger.WARN, \"Not enough Escher data: \" + bytesRemaining + \" bytes remaining but no space left\");}}return bytesWritten;}" }, { "index": 9236, "before": "public void startElement(String namespace, String simple, String qualified,Attributes attributes) {int elemType = getElementType(qualified);switch (elemType) {case PAGE:title = null;body = null;time = null;id = null;break;case BODY:case DATE:case TITLE:case ID:contents.setLength(0);break;default:}}", "after": "public override void StartElement(string @namespace, string simple, string qualified,IAttributes attributes){int elemType = GetElementType(qualified);switch (elemType){case PAGE:title = null;body = null;time = null;id = null;break;case BODY:case DATE:case TITLE:case ID:contents.Length = 0;break;default:break;}}" }, { "index": 9237, "before": "public AbbreviatedObjectId abbreviate(int len) {final int a = AbbreviatedObjectId.mask(len, 1, w1);final int b = AbbreviatedObjectId.mask(len, 2, w2);final int c = AbbreviatedObjectId.mask(len, 3, w3);final int d = AbbreviatedObjectId.mask(len, 4, w4);final int e = AbbreviatedObjectId.mask(len, 5, w5);return new AbbreviatedObjectId(len, a, b, c, d, e);}", "after": "public virtual AbbreviatedObjectId Abbreviate(int len){int a = AbbreviatedObjectId.Mask(len, 1, w1);int b = AbbreviatedObjectId.Mask(len, 2, w2);int c = AbbreviatedObjectId.Mask(len, 3, w3);int d = AbbreviatedObjectId.Mask(len, 4, w4);int e = AbbreviatedObjectId.Mask(len, 5, w5);return new AbbreviatedObjectId(len, a, b, c, d, e);}" }, { "index": 9238, "before": "public String toString() {return \"{\"+precedence+\">=prec}?\";}", "after": "public override string ToString(){return \"{\" + precedence + \">=prec}?\";}" }, { "index": 9239, "before": "public IntBuffer put(IntBuffer buf) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.IntBuffer put(java.nio.IntBuffer buf){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 9240, "before": "public static PathSuffixFilter create(String path) {if (path.length() == 0)throw new IllegalArgumentException(JGitText.get().emptyPathNotPermitted);return new PathSuffixFilter(path);}", "after": "public static NGit.Treewalk.Filter.PathSuffixFilter Create(string path){if (path.Length == 0){throw new ArgumentException(JGitText.Get().emptyPathNotPermitted);}return new NGit.Treewalk.Filter.PathSuffixFilter(path);}" }, { "index": 9241, "before": "public static Cell getCell(Row row, int columnIndex) {Cell cell = row.getCell(columnIndex);if (cell == null) {cell = row.createCell(columnIndex);}return cell;}", "after": "public static ICell GetCell(IRow row, int columnIndex){ICell cell = row.GetCell(columnIndex);if (cell == null){cell = row.CreateCell(columnIndex);}return cell;}" }, { "index": 9242, "before": "public void write(ByteBuffer src, long position) {long endPosition = position + src.capacity();if(endPosition > buffer.length) {extend(endPosition);}src.get(buffer, (int)position, src.capacity());if(endPosition > size) {size = endPosition;}}", "after": "public override void Write(ByteBuffer src, long position){long endPosition = position + src.Length;if (endPosition > buffer.Length){Extend(endPosition);}src.Read(buffer, (int)position, src.Length);if (endPosition > size){size = endPosition;}}" }, { "index": 9243, "before": "public void print(int i) {print(String.valueOf(i));}", "after": "public virtual void print(int i){print(i.ToString());}" }, { "index": 9244, "before": "public ICUNormalizer2CharFilterFactory(Map args) {super(args);String form = get(args, \"form\", \"nfkc_cf\");String mode = get(args, \"mode\", Arrays.asList(\"compose\", \"decompose\"), \"compose\");Normalizer2 normalizer = Normalizer2.getInstance(null, form, \"compose\".equals(mode) ? Normalizer2.Mode.COMPOSE : Normalizer2.Mode.DECOMPOSE);String filter = get(args, \"filter\");if (filter != null) {UnicodeSet set = new UnicodeSet(filter);if (!set.isEmpty()) {set.freeze();normalizer = new FilteredNormalizer2(normalizer, set);}}if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}this.normalizer = normalizer;}", "after": "public ICUNormalizer2CharFilterFactory(IDictionary args): base(args){string name = Get(args, \"name\", \"nfkc_cf\");string mode = Get(args, \"mode\", new string[] { \"compose\", \"decompose\" }, \"compose\");Normalizer2 normalizer = Normalizer2.GetInstance(null, name, \"compose\".Equals(mode, StringComparison.Ordinal) ? Normalizer2Mode.Compose : Normalizer2Mode.Decompose);string filter = Get(args, \"filter\");if (filter != null){UnicodeSet set = new UnicodeSet(filter);if (set.Any()){set.Freeze();normalizer = new FilteredNormalizer2(normalizer, set);}}if (args.Count > 0){throw new ArgumentException(\"Unknown parameters: \" + args);}this.normalizer = normalizer;}" }, { "index": 9245, "before": "public CreateAdditionalAssignmentsForHITResult createAdditionalAssignmentsForHIT(CreateAdditionalAssignmentsForHITRequest request) {request = beforeClientExecution(request);return executeCreateAdditionalAssignmentsForHIT(request);}", "after": "public virtual CreateAdditionalAssignmentsForHITResponse CreateAdditionalAssignmentsForHIT(CreateAdditionalAssignmentsForHITRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAdditionalAssignmentsForHITRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAdditionalAssignmentsForHITResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9246, "before": "public DeleteEventRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"DeleteEvent\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public DeleteEventRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"DeleteEvent\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 9247, "before": "public long getSize() {return size;}", "after": "public override long GetSize(){return size;}" }, { "index": 9248, "before": "public void undeprecateWorkflowType(UndeprecateWorkflowTypeRequest request) {request = beforeClientExecution(request);executeUndeprecateWorkflowType(request);}", "after": "public virtual UndeprecateWorkflowTypeResponse UndeprecateWorkflowType(UndeprecateWorkflowTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = UndeprecateWorkflowTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = UndeprecateWorkflowTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9249, "before": "public boolean removeValue(final int o){boolean rval = false;for (int j = 0; !rval && (j < _limit); j++){if (o == _array[ j ]){if (j+1 < _limit) {System.arraycopy(_array, j + 1, _array, j, _limit - j);}_limit--;rval = true;}}return rval;}", "after": "public bool RemoveValue(int o){bool rval = false;for (int j = 0; !rval && (j < _limit); j++){if (o == _array[j]){if (j + 1 < _limit){Array.Copy(_array, j + 1, _array, j, _limit - j);}_limit--;rval = true;}}return rval;}" }, { "index": 9250, "before": "public String toString() {return new String(buf, 0, size());}", "after": "public override string ToString(){return new string(m_buf, 0, Length);}" }, { "index": 9251, "before": "public void setDirCacheIterator(TreeWalk walk, int treeId) {state.walk = walk;state.dirCacheTree = treeId;}", "after": "public virtual void SetDirCacheIterator(TreeWalk walk, int treeId){state.walk = walk;state.dirCacheTree = treeId;}" }, { "index": 9252, "before": "public DescribeOrganizationResult describeOrganization(DescribeOrganizationRequest request) {request = beforeClientExecution(request);return executeDescribeOrganization(request);}", "after": "public virtual DescribeOrganizationResponse DescribeOrganization(DescribeOrganizationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeOrganizationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeOrganizationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9253, "before": "public CharsRef(int capacity) {chars = new char[capacity];}", "after": "public CharsRef(int capacity){chars = new char[capacity];}" }, { "index": 9254, "before": "public RebootInstanceResult rebootInstance(RebootInstanceRequest request) {request = beforeClientExecution(request);return executeRebootInstance(request);}", "after": "public virtual RebootInstanceResponse RebootInstance(RebootInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebootInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = RebootInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9255, "before": "public static TreeFilter create(Collection list) {if (list.size() < 2)throw new IllegalArgumentException(JGitText.get().atLeastTwoFiltersNeeded);final TreeFilter[] subfilters = new TreeFilter[list.size()];list.toArray(subfilters);if (subfilters.length == 2)return create(subfilters[0], subfilters[1]);return new List(subfilters);}", "after": "public static TreeFilter Create(ICollection list){if (list.Count < 2){throw new ArgumentException(JGitText.Get().atLeastTwoFiltersNeeded);}TreeFilter[] subfilters = new TreeFilter[list.Count];Sharpen.Collections.ToArray(list, subfilters);if (subfilters.Length == 2){return Create(subfilters[0], subfilters[1]);}return new AndTreeFilter.List(subfilters);}" }, { "index": 9256, "before": "public long ramBytesUsed() {long ramBytesUsed = BASE_RAM_BYTES_USED;ramBytesUsed += fields.size() * 2L * RamUsageEstimator.NUM_BYTES_OBJECT_REF;ramBytesUsed += formats.size() * 2L * RamUsageEstimator.NUM_BYTES_OBJECT_REF;for(Map.Entry entry: formats.entrySet()) {ramBytesUsed += entry.getValue().ramBytesUsed();}return ramBytesUsed;}", "after": "public override long RamBytesUsed(){long size = 0;foreach (KeyValuePair entry in formats){size += (entry.Key.Length * RamUsageEstimator.NUM_BYTES_CHAR)+ entry.Value.RamBytesUsed();}return size;}" }, { "index": 9257, "before": "public ExportApiResult exportApi(ExportApiRequest request) {request = beforeClientExecution(request);return executeExportApi(request);}", "after": "public virtual ExportApiResponse ExportApi(ExportApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExportApiRequestMarshaller.Instance;options.ResponseUnmarshaller = ExportApiResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9258, "before": "public void setExpectedOldObjectId(AnyObjectId id) {expValue = id != null ? id.toObjectId() : null;}", "after": "public virtual void SetExpectedOldObjectId(AnyObjectId id){expValue = id != null ? id.ToObjectId() : null;}" }, { "index": 9259, "before": "public void skipBytes(long count) {pos += count;}", "after": "public override void SkipBytes(int count){pos += count;}" }, { "index": 9260, "before": "public String toString(){return String.valueOf(_value);}", "after": "public override String ToString(){return Convert.ToString(_value, CultureInfo.CurrentCulture);}" }, { "index": 9261, "before": "public boolean isPopupShowing() {return mPopup.isShowing();}", "after": "public virtual bool isPopupShowing(){return mPopup.isShowing();}" }, { "index": 9262, "before": "public DBClusterSnapshot deleteDBClusterSnapshot(DeleteDBClusterSnapshotRequest request) {request = beforeClientExecution(request);return executeDeleteDBClusterSnapshot(request);}", "after": "public virtual DeleteDBClusterSnapshotResponse DeleteDBClusterSnapshot(DeleteDBClusterSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBClusterSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBClusterSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9263, "before": "public Filter(String name, java.util.List values) {setName(name);setValues(values);}", "after": "public Filter(string name, List values){_name = name;_values = values;}" }, { "index": 9264, "before": "public SearchRoomsResult searchRooms(SearchRoomsRequest request) {request = beforeClientExecution(request);return executeSearchRooms(request);}", "after": "public virtual SearchRoomsResponse SearchRooms(SearchRoomsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchRoomsRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchRoomsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9265, "before": "public int read(byte[] buf, int off, int cnt) throws IOException {try {beginRead();return super.read(buf, off, cnt);} catch (InterruptedIOException e) {throw readTimedOut(e);} finally {endRead();}}", "after": "public override int Read(byte[] buf, int off, int cnt){try{BeginRead();return base.Read(buf, off, cnt);}catch (ThreadInterruptedException){throw ReadTimedOut();}finally{EndRead();}}" }, { "index": 9266, "before": "public DeleteLoadBalancerTlsCertificateResult deleteLoadBalancerTlsCertificate(DeleteLoadBalancerTlsCertificateRequest request) {request = beforeClientExecution(request);return executeDeleteLoadBalancerTlsCertificate(request);}", "after": "public virtual DeleteLoadBalancerTlsCertificateResponse DeleteLoadBalancerTlsCertificate(DeleteLoadBalancerTlsCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLoadBalancerTlsCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLoadBalancerTlsCertificateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9267, "before": "public static MessageDigest newMessageDigest() {try {return MessageDigest.getInstance(HASH_FUNCTION);} catch (NoSuchAlgorithmException nsae) {throw new RuntimeException(MessageFormat.format(JGitText.get().requiredHashFunctionNotAvailable, HASH_FUNCTION), nsae);}}", "after": "public static MessageDigest NewMessageDigest(){try{return MessageDigest.GetInstance(HASH_FUNCTION);}catch (NoSuchAlgorithmException nsae){throw new RuntimeException(MessageFormat.Format(JGitText.Get().requiredHashFunctionNotAvailable, HASH_FUNCTION), nsae);}}" }, { "index": 9268, "before": "public IfFunction(ValueSource ifSource, ValueSource trueSource, ValueSource falseSource) {this.ifSource = ifSource;this.trueSource = trueSource;this.falseSource = falseSource;}", "after": "public IfFunction(ValueSource ifSource, ValueSource trueSource, ValueSource falseSource){this.ifSource = ifSource;this.trueSource = trueSource;this.falseSource = falseSource;}" }, { "index": 9269, "before": "public static double npv(double r, double[] cfs) {double npv = 0;double r1 = r + 1;double trate = r1;for (int i=0, iSize=cfs.length; i(request, options);}" }, { "index": 9278, "before": "public DoubleBuffer put(int index, double c) {checkIndex(index);byteBuffer.putDouble(index * SizeOf.DOUBLE, c);return this;}", "after": "public override java.nio.DoubleBuffer put(int index, double c){checkIndex(index);byteBuffer.putDouble(index * libcore.io.SizeOf.DOUBLE, c);return this;}" }, { "index": 9279, "before": "public ResetInstanceAttributeResult resetInstanceAttribute(ResetInstanceAttributeRequest request) {request = beforeClientExecution(request);return executeResetInstanceAttribute(request);}", "after": "public virtual ResetInstanceAttributeResponse ResetInstanceAttribute(ResetInstanceAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetInstanceAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetInstanceAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9280, "before": "public DirectoryEntry getDirectory() throws IOException {EmbeddedObjectRefSubRecord subRecord = findObjectRecord();int streamId = subRecord.getStreamId().intValue();String streamName = \"MBD\" + HexDump.toHex(streamId);Entry entry = _root.getEntry(streamName);if (entry instanceof DirectoryEntry) {return (DirectoryEntry) entry;}throw new IOException(\"Stream \" + streamName + \" was not an OLE2 directory\");}", "after": "public DirectoryEntry GetDirectory(){EmbeddedObjectRefSubRecord subRecord = FindObjectRecord();int? streamId = ((EmbeddedObjectRefSubRecord)subRecord).StreamId;String streamName = \"MBD\" + HexDump.ToHex((int)streamId);Entry entry = _root.GetEntry(streamName);if (entry is DirectoryEntry){return (DirectoryEntry)entry;}else{throw new IOException(\"Stream \" + streamName + \" was not an OLE2 directory\");}}" }, { "index": 9281, "before": "public HashMap(int capacity) {if (capacity < 0) {throw new IllegalArgumentException(\"Capacity: \" + capacity);}if (capacity == 0) {@SuppressWarnings(\"unchecked\")HashMapEntry[] tab = (HashMapEntry[]) EMPTY_TABLE;table = tab;threshold = -1; return;}if (capacity < MINIMUM_CAPACITY) {capacity = MINIMUM_CAPACITY;} else if (capacity > MAXIMUM_CAPACITY) {capacity = MAXIMUM_CAPACITY;} else {capacity = roundUpToPowerOfTwo(capacity);}makeTable(capacity);}", "after": "public HashMap(int capacity){if (capacity < 0){throw new System.ArgumentException(\"Capacity: \" + capacity);}if (capacity == 0){java.util.HashMap.HashMapEntry[] tab = (java.util.HashMap.HashMapEntry[])EMPTY_TABLE;table = tab;threshold = -1;return;}if (capacity < java.util.HashMap.MINIMUM_CAPACITY){capacity = java.util.HashMap.MINIMUM_CAPACITY;}else{if (capacity > java.util.HashMap.MAXIMUM_CAPACITY){capacity = java.util.HashMap.MAXIMUM_CAPACITY;}else{capacity = roundUpToPowerOfTwo(capacity);}}makeTable(capacity);}" }, { "index": 9282, "before": "public int getCachedErrorValue() {return specialCachedValue.getErrorValue();}", "after": "public int GetCachedErrorValue(){return specialCachedValue.GetErrorValue();}" }, { "index": 9283, "before": "public void add(BytesRef utf8) throws IOException {if (writer == null) {throw new IllegalStateException();}writer.write(utf8);}", "after": "public virtual void Add(BytesRef utf8){if (writer == null){throw new InvalidOperationException();}writer.Write(utf8);}" }, { "index": 9284, "before": "public UpdateHITReviewStatusResult updateHITReviewStatus(UpdateHITReviewStatusRequest request) {request = beforeClientExecution(request);return executeUpdateHITReviewStatus(request);}", "after": "public virtual UpdateHITReviewStatusResponse UpdateHITReviewStatus(UpdateHITReviewStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateHITReviewStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateHITReviewStatusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9285, "before": "public ScandinavianNormalizationFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public ScandinavianNormalizationFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 9286, "before": "public DBSnapshotAttributesResult describeDBSnapshotAttributes(DescribeDBSnapshotAttributesRequest request) {request = beforeClientExecution(request);return executeDescribeDBSnapshotAttributes(request);}", "after": "public virtual DescribeDBSnapshotAttributesResponse DescribeDBSnapshotAttributes(DescribeDBSnapshotAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBSnapshotAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBSnapshotAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9287, "before": "public GetNamespaceAuthorizationListRequest() {super(\"cr\", \"2016-06-07\", \"GetNamespaceAuthorizationList\", \"cr\");setUriPattern(\"/namespace/[Namespace]/authorizations\");setMethod(MethodType.GET);}", "after": "public GetNamespaceAuthorizationListRequest(): base(\"cr\", \"2016-06-07\", \"GetNamespaceAuthorizationList\", \"cr\", \"openAPI\"){UriPattern = \"/namespace/[Namespace]/authorizations\";Method = MethodType.GET;}" }, { "index": 9288, "before": "public LowFreqTerm(int[] postings, byte[] payloads, int docFreq, int totalTermFreq) {this.postings = postings;this.payloads = payloads;this.docFreq = docFreq;this.totalTermFreq = totalTermFreq;}", "after": "public LowFreqTerm(int[] postings, byte[] payloads, int docFreq, int totalTermFreq){this.postings = postings;this.payloads = payloads;this.docFreq = docFreq;this.totalTermFreq = totalTermFreq;}" }, { "index": 9289, "before": "public void reset() {state = null;consumed = true;keepOrig = false;matched = false;}", "after": "public void Reset(){state = null;consumed = true;keepOrig = false;matched = false;}" }, { "index": 9290, "before": "public static final boolean isId(String id) {if (id.length() < 2 || Constants.OBJECT_ID_STRING_LENGTH < id.length())return false;try {for (int i = 0; i < id.length(); i++)RawParseUtils.parseHexInt4((byte) id.charAt(i));return true;} catch (ArrayIndexOutOfBoundsException e) {return false;}}", "after": "public static bool IsId(string id){if (id.Length < 2 || Constants.OBJECT_ID_STRING_LENGTH < id.Length){return false;}try{for (int i = 0; i < id.Length; i++){RawParseUtils.ParseHexInt4(unchecked((byte)id[i]));}return true;}catch (IndexOutOfRangeException){return false;}}" }, { "index": 9291, "before": "public static int entrySize(FileMode mode, int nameLen) {return mode.copyToLength() + nameLen + OBJECT_ID_LENGTH + 2;}", "after": "public static int EntrySize(FileMode mode, int nameLen){return mode.CopyToLength() + nameLen + Constants.OBJECT_ID_LENGTH + 2;}" }, { "index": 9292, "before": "public void exitEveryRule(ParserRuleContext ctx) {System.out.println(\"exit \"+getRuleNames()[ctx.getRuleIndex()]+\", LT(1)=\"+_input.LT(1).getText());}", "after": "public virtual void ExitEveryRule(ParserRuleContext ctx){Output.WriteLine(\"exit \" + this._enclosing.RuleNames[ctx.RuleIndex] + \", LT(1)=\" + this._enclosing._input.LT(1).Text);}" }, { "index": 9293, "before": "public EventSubscription modifyEventSubscription(ModifyEventSubscriptionRequest request) {request = beforeClientExecution(request);return executeModifyEventSubscription(request);}", "after": "public virtual ModifyEventSubscriptionResponse ModifyEventSubscription(ModifyEventSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyEventSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyEventSubscriptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9294, "before": "public NormalizeCharMap build() {final FST map;try {final Outputs outputs = CharSequenceOutputs.getSingleton();final FSTCompiler fstCompiler = new FSTCompiler<>(FST.INPUT_TYPE.BYTE2, outputs);final IntsRefBuilder scratch = new IntsRefBuilder();for(Map.Entry ent : pendingPairs.entrySet()) {fstCompiler.add(Util.toUTF16(ent.getKey(), scratch),new CharsRef(ent.getValue()));}map = fstCompiler.compile();pendingPairs.clear();} catch (IOException ioe) {throw new RuntimeException(ioe);}return new NormalizeCharMap(map);}", "after": "public virtual NormalizeCharMap Build(){FST map;try{Outputs outputs = CharSequenceOutputs.Singleton;Builder builder = new Builder(FST.INPUT_TYPE.BYTE2, outputs);Int32sRef scratch = new Int32sRef();foreach (var ent in pendingPairs){builder.Add(Lucene.Net.Util.Fst.Util.ToUTF16(ent.Key, scratch), new CharsRef(ent.Value));}map = builder.Finish();pendingPairs.Clear();}catch (IOException ioe){throw new Exception(\"Should never happen\", ioe);}return new NormalizeCharMap(map);}" }, { "index": 9295, "before": "public BootstrapActions(String bucket) {this.bucket = bucket;}", "after": "public BootstrapActions(string bucket){this.bucket = bucket;}" }, { "index": 9296, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {ValueEval ve;try {ve = OperandResolver.getSingleValue(arg0, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {ve = e.getErrorEval();}return BoolEval.valueOf(evaluate(ve));}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){ValueEval ve;try{ve = OperandResolver.GetSingleValue(arg0, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){ve = e.GetErrorEval();}return BoolEval.ValueOf(Evaluate(ve));}" }, { "index": 9297, "before": "public static IndexDeletionPolicy getIndexDeletionPolicy(Config config) {String deletionPolicyName = config.get(\"deletion.policy\", \"org.apache.lucene.index.KeepOnlyLastCommitDeletionPolicy\");if (deletionPolicyName.equals(NoDeletionPolicy.class.getName())) {return NoDeletionPolicy.INSTANCE;} else {try {return Class.forName(deletionPolicyName).asSubclass(IndexDeletionPolicy.class).getConstructor().newInstance();} catch (Exception e) {", "after": "public static IndexDeletionPolicy GetIndexDeletionPolicy(Config config){string deletionPolicyName = config.Get(\"deletion.policy\", \"Lucene.Net.Index.KeepOnlyLastCommitDeletionPolicy, Lucene.Net\");Type deletionPolicyType = Type.GetType(deletionPolicyName);if (deletionPolicyType == null){throw new Exception(\"Unrecognized deletion policy type '\" + deletionPolicyName + \"'\");}else if (deletionPolicyType.Equals(typeof(NoDeletionPolicy))){return NoDeletionPolicy.INSTANCE;}else{try{return (IndexDeletionPolicy)Activator.CreateInstance(deletionPolicyType);}catch (Exception e){" }, { "index": 9298, "before": "public FontRecord(RecordInputStream in) {field_1_font_height = in.readShort();field_2_attributes = in.readShort();field_3_color_palette_index = in.readShort();field_4_bold_weight = in.readShort();field_5_super_sub_script = in.readShort();field_6_underline = in.readByte();field_7_family = in.readByte();field_8_charset = in.readByte();field_9_zero = in.readByte();int field_10_font_name_len = in.readUByte();int unicodeFlags = in.readUByte(); if (field_10_font_name_len > 0) {if (unicodeFlags == 0) { field_11_font_name = in.readCompressedUnicode(field_10_font_name_len);} else { field_11_font_name = in.readUnicodeLEString(field_10_font_name_len);}} else {field_11_font_name = \"\";}}", "after": "public FontRecord(RecordInputStream in1){field_1_font_height = in1.ReadShort();field_2_attributes = in1.ReadShort();field_3_color_palette_index = in1.ReadShort();field_4_bold_weight = in1.ReadShort();field_5_base_sub_script = in1.ReadShort();field_6_underline = (byte)in1.ReadByte();field_7_family = (byte)in1.ReadByte();field_8_charset = (byte)in1.ReadByte();field_9_zero = (byte)in1.ReadByte();int field_10_font_name_len = (byte)in1.ReadByte();int unicodeFlags = in1.ReadUByte(); if (field_10_font_name_len > 0){if (unicodeFlags == 0){ field_11_font_name = in1.ReadCompressedUnicode(field_10_font_name_len);}else{ field_11_font_name = in1.ReadUnicodeLEString(field_10_font_name_len);}}else{field_11_font_name = \"\";}}" }, { "index": 9299, "before": "public String getRefLogMessage() {return destination.getRefLogMessage();}", "after": "public virtual string GetRefLogMessage(){return destination.GetRefLogMessage();}" }, { "index": 9300, "before": "public String toString() {return subSlice.toString()+\":\"+terms;}", "after": "public override string ToString(){return SubSlice.ToString() + \":\" + Terms;}" }, { "index": 9301, "before": "public IntBuffer asReadOnlyBuffer() {return ReadOnlyIntArrayBuffer.copy(this, mark);}", "after": "public override java.nio.IntBuffer asReadOnlyBuffer(){return java.nio.ReadOnlyIntArrayBuffer.copy(this, _mark);}" }, { "index": 9302, "before": "public void clear() {super.clear();}", "after": "protected internal override void Clear(){base.Clear();}" }, { "index": 9303, "before": "public static void fill(double[] array, int start, int end, double value) {Arrays.checkStartAndEnd(array.length, start, end);for (int i = start; i < end; i++) {array[i] = value;}}", "after": "public static void fill(double[] array, int start, int end, double value){java.util.Arrays.checkStartAndEnd(array.Length, start, end);{for (int i = start; i < end; i++){array[i] = value;}}}" }, { "index": 9304, "before": "public ByteBuffer next() {if(nextBlock == POIFSConstants.END_OF_CHAIN) {throw new IndexOutOfBoundsException(\"Can't read past the end of the stream\");}try {loopDetector.claim(nextBlock);ByteBuffer data = blockStore.getBlockAt(nextBlock);nextBlock = blockStore.getNextBlock(nextBlock);return data;} catch(IOException e) {throw new RuntimeException(e);}}", "after": "public ByteBuffer Next(){if (nextBlock == POIFSConstants.END_OF_CHAIN){throw new IndexOutOfRangeException(\"Can't read past the end of the stream\");}try{loopDetector.Claim(nextBlock);ByteBuffer data = pStream.blockStore.GetBlockAt(nextBlock);nextBlock = pStream.blockStore.GetNextBlock(nextBlock);return data;}catch (IOException e){throw new RuntimeException(e.Message);}}" }, { "index": 9305, "before": "public DFAState getCurrentState() {return currentState;}", "after": "public DFAState getCurrentState(){return currentState;}" }, { "index": 9306, "before": "public E lower(E e) {return backingMap.lowerKey(e);}", "after": "public virtual E lower(E e){return backingMap.lowerKey(e);}" }, { "index": 9307, "before": "public FinnishLightStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public FinnishLightStemFilterFactory(IDictionary args) : base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 9308, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\" [Font Formatting]\\n\");buffer.append(\"", "after": ".font height = \").append(getFontHeight()).append(\" twips\\n\");if( isFontStyleModified() ){buffer.append(\"" }, { "index": 9309, "before": "public String toString() {StringBuilder retval = new StringBuilder();retval.append(\"[MERGEDCELLS]\").append(\"\\n\");retval.append(\" .numregions =\").append(getNumAreas()).append(\"\\n\");for (int k = 0; k < _numberOfRegions; k++) {CellRangeAddress r = _regions[_startIndex + k];retval.append(\" .rowfrom =\").append(r.getFirstRow()).append(\"\\n\");retval.append(\" .rowto =\").append(r.getLastRow()).append(\"\\n\");retval.append(\" .colfrom =\").append(r.getFirstColumn()).append(\"\\n\");retval.append(\" .colto =\").append(r.getLastColumn()).append(\"\\n\");}retval.append(\"[MERGEDCELLS]\").append(\"\\n\");return retval.toString();}", "after": "public override String ToString(){StringBuilder retval = new StringBuilder();retval.Append(\"[MERGEDCELLS]\").Append(\"\\n\");retval.Append(\" .numregions =\").Append(NumAreas).Append(\"\\n\");for (int k = 0; k < _numberOfRegions; k++){CellRangeAddress region = _regions[_startIndex + k];retval.Append(\" .rowfrom =\").Append(region.FirstRow).Append(\"\\n\");retval.Append(\" .rowto =\").Append(region.LastRow).Append(\"\\n\");retval.Append(\" .colfrom =\").Append(region.FirstColumn).Append(\"\\n\");retval.Append(\" .colto =\").Append(region.LastColumn).Append(\"\\n\");}retval.Append(\"[MERGEDCELLS]\").Append(\"\\n\");return retval.ToString();}" }, { "index": 9310, "before": "public String getString(int begin, int end, boolean dropLF) {if (begin == end)return \"\"; int s = getStart(begin);int e = getEnd(end - 1);if (dropLF && content[e - 1] == '\\n')e--;return decode(s, e);}", "after": "public virtual string GetString(int begin, int end, bool dropLF){if (begin == end){return string.Empty;}int s = GetStart(begin);int e = GetEnd(end - 1);if (dropLF && content[e - 1] == '\\n'){e--;}return Decode(s, e);}" }, { "index": 9311, "before": "public RevokeDomainAccessResult revokeDomainAccess(RevokeDomainAccessRequest request) {request = beforeClientExecution(request);return executeRevokeDomainAccess(request);}", "after": "public virtual RevokeDomainAccessResponse RevokeDomainAccess(RevokeDomainAccessRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeDomainAccessRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeDomainAccessResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9312, "before": "public GetPhotoStoreRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"GetPhotoStore\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetPhotoStoreRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"GetPhotoStore\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 9313, "before": "public DescribeVirtualInterfacesResult describeVirtualInterfaces(DescribeVirtualInterfacesRequest request) {request = beforeClientExecution(request);return executeDescribeVirtualInterfaces(request);}", "after": "public virtual DescribeVirtualInterfacesResponse DescribeVirtualInterfaces(DescribeVirtualInterfacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVirtualInterfacesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVirtualInterfacesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9314, "before": "public EmptyTreeIterator createEmptyTreeIterator() {return new EmptyTreeIterator(this);}", "after": "public virtual EmptyTreeIterator CreateEmptyTreeIterator(){return new EmptyTreeIterator(this);}" }, { "index": 9315, "before": "public File[] listFiles(FileFilter filter) {File[] files = listFiles();if (filter == null || files == null) {return files;}List result = new ArrayList(files.length);for (File file : files) {if (filter.accept(file)) {result.add(file);}}return result.toArray(new File[result.size()]);}", "after": "public java.io.File[] listFiles(java.io.FileFilter filter){java.io.File[] files = listFiles();if (filter == null || files == null){return files;}java.util.List result = new java.util.ArrayList(files.Length);foreach (java.io.File file in files){if (filter.accept(file)){result.add(file);}}return result.toArray(new java.io.File[result.size()]);}" }, { "index": 9316, "before": "public CharSequence toQueryString(EscapeQuerySyntax escaper) {if (isDefaultField(this.field)) {return this.text;} else {return this.field + \":\" + this.text;}}", "after": "public override string ToQueryString(IEscapeQuerySyntax escaper){if (IsDefaultField(this.m_field)){return this.m_text.ToString();}else{return this.m_field + \":\" + this.m_text;}}" }, { "index": 9317, "before": "public WithdrawByoipCidrResult withdrawByoipCidr(WithdrawByoipCidrRequest request) {request = beforeClientExecution(request);return executeWithdrawByoipCidr(request);}", "after": "public virtual WithdrawByoipCidrResponse WithdrawByoipCidr(WithdrawByoipCidrRequest request){var options = new InvokeOptions();options.RequestMarshaller = WithdrawByoipCidrRequestMarshaller.Instance;options.ResponseUnmarshaller = WithdrawByoipCidrResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9318, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_formatFlags);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_formatFlags);}" }, { "index": 9319, "before": "public CharBuffer put(int index, char c) {checkIndex(index);byteBuffer.putChar(index * SizeOf.CHAR, c);return this;}", "after": "public override java.nio.CharBuffer put(int index, char c){checkIndex(index);byteBuffer.putChar(index * libcore.io.SizeOf.CHAR, c);return this;}" }, { "index": 9320, "before": "public ICUTransformFilterFactory(Map args) {super(args);String id = require(args, \"id\");String direction = get(args, \"direction\", Arrays.asList(\"forward\", \"reverse\"), \"forward\", false);int dir = \"forward\".equals(direction) ? Transliterator.FORWARD : Transliterator.REVERSE;transliterator = Transliterator.getInstance(id, dir);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public ICUTransformFilterFactory(IDictionary args): base(args){string id = Require(args, \"id\");string direction = Get(args, \"direction\", new string[] { \"forward\", \"reverse\" }, \"forward\", false);TransliterationDirection dir = \"forward\".Equals(direction, StringComparison.Ordinal) ? Transliterator.Forward : Transliterator.Reverse;transliterator = Transliterator.GetInstance(id, dir);if (args.Count != 0){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 9321, "before": "public UpdateFilterResult updateFilter(UpdateFilterRequest request) {request = beforeClientExecution(request);return executeUpdateFilter(request);}", "after": "public virtual UpdateFilterResponse UpdateFilter(UpdateFilterRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFilterRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFilterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9322, "before": "public StoredField(String name, float value) {super(name, TYPE);fieldsData = value;}", "after": "public StoredField(string name, int value): base(name, TYPE){FieldsData = new Int32(value);}" }, { "index": 9323, "before": "public final int compareTo(Term other) {if (field.equals(other.field)) {return bytes.compareTo(other.bytes);} else {return field.compareTo(other.field);}}", "after": "public int CompareTo(Term other){int compare = Field.CompareToOrdinal(other.Field);if (compare == 0){return Bytes.CompareTo(other.Bytes);}else{return compare;}}" }, { "index": 9324, "before": "public ErrorHandler getErrorHandler () {return (theErrorHandler == this) ? null : theErrorHandler;}", "after": "public void close (){lock (this.mBlock) {if (this.mParseState != null) {this.mParseState.Dispose ();this.mParseState = null;this.mBlock.decOpenCountLocked ();}}}" }, { "index": 9325, "before": "public float getSaturation() {int numBitsSet = filter.cardinality();return (float) numBitsSet / (float) bloomSize;}", "after": "public virtual float GetSaturation(){var numBitsSet = _filter.Cardinality();return numBitsSet/(float) _bloomSize;}" }, { "index": 9326, "before": "public DeleteResolverEndpointResult deleteResolverEndpoint(DeleteResolverEndpointRequest request) {request = beforeClientExecution(request);return executeDeleteResolverEndpoint(request);}", "after": "public virtual DeleteResolverEndpointResponse DeleteResolverEndpoint(DeleteResolverEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteResolverEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteResolverEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9327, "before": "public AssociateHostedConnectionResult associateHostedConnection(AssociateHostedConnectionRequest request) {request = beforeClientExecution(request);return executeAssociateHostedConnection(request);}", "after": "public virtual AssociateHostedConnectionResponse AssociateHostedConnection(AssociateHostedConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateHostedConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateHostedConnectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9328, "before": "public final String name() {return this.canonicalName;}", "after": "public string name(){return this.canonicalName;}" }, { "index": 9329, "before": "public static void registerFunction(String name, Function func){FunctionEval.registerFunction(name, func);}", "after": "public static void RegisterFunction(String name, FreeRefFunction func){AnalysisToolPak.RegisterFunction(name, func);}" }, { "index": 9330, "before": "public GetRepoBuildStatusRequest() {super(\"cr\", \"2016-06-07\", \"GetRepoBuildStatus\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/build/[BuildId]/status\");setMethod(MethodType.GET);}", "after": "public GetRepoBuildStatusRequest(): base(\"cr\", \"2016-06-07\", \"GetRepoBuildStatus\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/build/[BuildId]/status\";Method = MethodType.GET;}" }, { "index": 9331, "before": "public GetFramedPhotoUrlsRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"GetFramedPhotoUrls\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetFramedPhotoUrlsRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"GetFramedPhotoUrls\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 9332, "before": "public SimpleHTMLFormatter(String preTag, String postTag) {this.preTag = preTag;this.postTag = postTag;}", "after": "public SimpleHTMLFormatter(string preTag, string postTag){this.preTag = preTag;this.postTag = postTag;}" }, { "index": 9333, "before": "public void setData(byte[] b, int start, int length){thedata = IOUtils.safelyAllocate(length, MAX_RECORD_LENGTH);System.arraycopy(b,start,thedata,0,length);}", "after": "public void SetData(byte[] b, int start, int length){_thedata = new byte[length];Array.Copy(b, start, _thedata, 0, length);}" }, { "index": 9334, "before": "public String getKey() {return key;}", "after": "public virtual string getKey(){return key;}" }, { "index": 9335, "before": "public AttachVolumeRequest(String volumeId, String instanceId, String device) {setVolumeId(volumeId);setInstanceId(instanceId);setDevice(device);}", "after": "public AttachVolumeRequest(string volumeId, string instanceId, string device){_volumeId = volumeId;_instanceId = instanceId;_device = device;}" }, { "index": 9336, "before": "public long ramBytesUsed() {long size = BASE_RAM_BYTES_USED + RamUsageEstimator.shallowSizeOf(blocks);if (blocks.length > 0) {size += (blocks.length - 1) * bytesUsedPerBlock;size += RamUsageEstimator.sizeOf(blocks[blocks.length - 1]);}return size;}", "after": "public long RamBytesUsed(){return (blocks.Count + (currentBlock != null ? 1 : 0)) * bytesUsedPerBlock;}" }, { "index": 9337, "before": "@Override public Object[] toArray() {return Lists.newArrayList(iterator()).toArray();}", "after": "public override object[] toArray(){lock (this._enclosing){return base.toArray();}}" }, { "index": 9338, "before": "public RevWalk(Repository repo, int depth) {super(repo);this.depth = depth;this.deepenNots = Collections.emptyList();this.UNSHALLOW = newFlag(\"UNSHALLOW\"); this.REINTERESTING = newFlag(\"REINTERESTING\"); this.DEEPEN_NOT = newFlag(\"DEEPEN_NOT\"); }", "after": "public RevWalk(Repository repo, int depth) : base(repo){this.depth = depth;this.UNSHALLOW = NewFlag(\"UNSHALLOW\");this.REINTERESTING = NewFlag(\"REINTERESTING\");}" }, { "index": 9339, "before": "public boolean equals(Object o) {return this == o;}", "after": "public override bool Equals(object o){return this == o;}" }, { "index": 9340, "before": "public ChangeResourceRecordSetsResult changeResourceRecordSets(ChangeResourceRecordSetsRequest request) {request = beforeClientExecution(request);return executeChangeResourceRecordSets(request);}", "after": "public virtual ChangeResourceRecordSetsResponse ChangeResourceRecordSets(ChangeResourceRecordSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ChangeResourceRecordSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ChangeResourceRecordSetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9341, "before": "public Iterator iterator() {return newKeyIterator();}", "after": "public override java.util.Iterator iterator(){return new java.util.Hashtable.KeyIterator(this._enclosing);}" }, { "index": 9342, "before": "@Override public boolean equals(Object o) {return o instanceof ReverseComparator2&& ((ReverseComparator2) o).cmp.equals(cmp);}", "after": "public override bool Equals(object o){return o is java.util.Collections.ReverseComparator2 && ((java.util.Collections.ReverseComparator2)o).cmp.Equals(cmp);}" }, { "index": 9343, "before": "public boolean isCheckEofAfterPackFooter() {return checkEofAfterPackFooter;}", "after": "public virtual bool IsCheckEofAfterPackFooter(){return checkEofAfterPackFooter;}" }, { "index": 9344, "before": "public DescribeDirectConnectGatewayAssociationProposalsResult describeDirectConnectGatewayAssociationProposals(DescribeDirectConnectGatewayAssociationProposalsRequest request) {request = beforeClientExecution(request);return executeDescribeDirectConnectGatewayAssociationProposals(request);}", "after": "public virtual DescribeDirectConnectGatewayAssociationProposalsResponse DescribeDirectConnectGatewayAssociationProposals(DescribeDirectConnectGatewayAssociationProposalsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDirectConnectGatewayAssociationProposalsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDirectConnectGatewayAssociationProposalsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9345, "before": "public void reset(byte[] bytes, int offset, int len) {this.bytes = bytes;pos = offset;limit = offset + len;}", "after": "public void Reset(byte[] bytes, int offset, int len){this.bytes = bytes;pos = offset;limit = offset + len;}" }, { "index": 9346, "before": "public ByteBuffer putFloat(int index, float value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putFloat(int index, float value){throw new System.NotImplementedException();}" }, { "index": 9347, "before": "public boolean equals(Object obj) {if (obj == null)return false;if (! getClass().equals(obj.getClass()))return false;return toString().equals(obj.toString());}", "after": "public override bool Equals(object obj){if (obj == null)return false;if (!GetType().Equals(obj.GetType()))return false;return ToString().Equals(obj.ToString(), StringComparison.Ordinal);}" }, { "index": 9348, "before": "public PutSchemaFromJsonResult putSchemaFromJson(PutSchemaFromJsonRequest request) {request = beforeClientExecution(request);return executePutSchemaFromJson(request);}", "after": "public virtual PutSchemaFromJsonResponse PutSchemaFromJson(PutSchemaFromJsonRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutSchemaFromJsonRequestMarshaller.Instance;options.ResponseUnmarshaller = PutSchemaFromJsonResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9349, "before": "public UnassignPrivateIpAddressesResult unassignPrivateIpAddresses(UnassignPrivateIpAddressesRequest request) {request = beforeClientExecution(request);return executeUnassignPrivateIpAddresses(request);}", "after": "public virtual UnassignPrivateIpAddressesResponse UnassignPrivateIpAddresses(UnassignPrivateIpAddressesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UnassignPrivateIpAddressesRequestMarshaller.Instance;options.ResponseUnmarshaller = UnassignPrivateIpAddressesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9350, "before": "public ArrayPtg finishReading(LittleEndianInput in) {int nColumns = in.readUByte();short nRows = in.readShort();nColumns++;nRows++;int totalCount = nRows * nColumns;Object[] arrayValues = ConstantValueParser.parse(in, totalCount);ArrayPtg result = new ArrayPtg(_reserved0, _reserved1, _reserved2, nColumns, nRows, arrayValues);result.setClass(getPtgClass());return result;}", "after": "public ArrayPtg FinishReading(ILittleEndianInput in1){int nColumns = in1.ReadUByte();short nRows = in1.ReadShort();nColumns++;nRows++;int totalCount = nRows * nColumns;Object[] arrayValues = ConstantValueParser.Parse(in1, totalCount);ArrayPtg result = new ArrayPtg(_reserved0, _reserved1, _reserved2, nColumns, nRows, arrayValues);result.PtgClass = this.PtgClass;return result;}" }, { "index": 9351, "before": "public NativeUnixDirectory(Path path, Directory delegate) throws IOException {this(path, DEFAULT_MERGE_BUFFER_SIZE, DEFAULT_MIN_BYTES_DIRECT, FSLockFactory.getDefault(), delegate);}", "after": "public NativeUnixDirectory(File path, Directory @delegate) throws IOException{this(path, DEFAULT_MERGE_BUFFER_SIZE, DEFAULT_MIN_BYTES_DIRECT, @delegate);}" }, { "index": 9352, "before": "public CreateRestApiResult createRestApi(CreateRestApiRequest request) {request = beforeClientExecution(request);return executeCreateRestApi(request);}", "after": "public virtual CreateRestApiResponse CreateRestApi(CreateRestApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRestApiRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRestApiResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9353, "before": "public ValueEval getRef3DEval(Ref3DPtg rptg) {SheetRangeEvaluator sre = createExternSheetRefEvaluator(rptg.getExternSheetIndex());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": 9354, "before": "public void add(FieldInfos other) {assert assertNotFinished();for(FieldInfo fieldInfo : other){add(fieldInfo);}}", "after": "public void Add(FieldInfos other){foreach (FieldInfo fieldInfo in other){Add(fieldInfo);}}" }, { "index": 9355, "before": "public static CloseGuard get() {if (!ENABLED) {return NOOP;}return new CloseGuard();}", "after": "public static dalvik.system.CloseGuard get(){if (!ENABLED){return NOOP;}return new dalvik.system.CloseGuard();}" }, { "index": 9356, "before": "public void print(long lnum) {print(String.valueOf(lnum));}", "after": "public virtual void print(long lnum){print(lnum.ToString());}" }, { "index": 9357, "before": "public static String fileNameFromGeneration(String base, String ext, long gen) {if (gen == -1) {return null;} else if (gen == 0) {return segmentFileName(base, \"\", ext);} else {assert gen > 0;StringBuilder res = new StringBuilder(base.length() + 6 + ext.length()).append(base).append('_').append(Long.toString(gen, Character.MAX_RADIX));if (ext.length() > 0) {res.append('.').append(ext);}return res.toString();}}", "after": "public static string FileNameFromGeneration(string @base, string ext, long gen){if (gen == -1){return null;}else if (gen == 0){return SegmentFileName(@base, \"\", ext);}else{Debug.Assert(gen > 0);StringBuilder res = (new StringBuilder(@base.Length + 6 + ext.Length)).Append(@base).Append('_').Append(gen.ToString(Character.MaxRadix));if (ext.Length > 0){res.Append('.').Append(ext);}return res.ToString();}}" }, { "index": 9358, "before": "public String getText() { return symbol.getText(); }", "after": "public virtual string GetText(){if (Symbol != null){return Symbol.Text;}return null;}" }, { "index": 9359, "before": "public long getSize() {return delegate().getSize();}", "after": "public override long GetSize(){return size;}" }, { "index": 9360, "before": "public FileMode getNewMode() {return newMode;}", "after": "public virtual FileMode GetNewMode(){return newMode;}" }, { "index": 9361, "before": "public boolean isOpaque() {return opaque;}", "after": "public bool isOpaque(){return opaque;}" }, { "index": 9362, "before": "public boolean requireEnd() {return requireEndImpl(address);}", "after": "public bool requireEnd(){return requireEndImpl(address);}" }, { "index": 9363, "before": "public static InternalWorkbook createStubWorkbook(ExternSheetRecord[] externs,BoundSheetRecord[] bounds, SSTRecord sst) {List wbRecords = new ArrayList<>();if(bounds != null) {Collections.addAll(wbRecords, bounds);}if(sst != null) {wbRecords.add(sst);}if(externs != null) {wbRecords.add(SupBookRecord.createInternalReferences((short)externs.length));Collections.addAll(wbRecords, externs);}wbRecords.add(EOFRecord.instance);return InternalWorkbook.createWorkbook(wbRecords);}", "after": "public static InternalWorkbook CreateStubWorkbook(ExternSheetRecord[] externs,BoundSheetRecord[] bounds, SSTRecord sst){List wbRecords = new List();if (bounds != null){for (int i = 0; i < bounds.Length; i++){wbRecords.Add(bounds[i]);}}if (sst != null){wbRecords.Add(sst);}if (externs != null){wbRecords.Add(SupBookRecord.CreateInternalReferences((short)externs.Length));for (int i = 0; i < externs.Length; i++){wbRecords.Add(externs[i]);}}wbRecords.Add(EOFRecord.instance);return InternalWorkbook.CreateWorkbook(wbRecords);}" }, { "index": 9364, "before": "public String getName() {return null;}", "after": "public virtual string GetName(){return null;}" }, { "index": 9365, "before": "public UpdateNotebookInstanceLifecycleConfigResult updateNotebookInstanceLifecycleConfig(UpdateNotebookInstanceLifecycleConfigRequest request) {request = beforeClientExecution(request);return executeUpdateNotebookInstanceLifecycleConfig(request);}", "after": "public virtual UpdateNotebookInstanceLifecycleConfigResponse UpdateNotebookInstanceLifecycleConfig(UpdateNotebookInstanceLifecycleConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateNotebookInstanceLifecycleConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateNotebookInstanceLifecycleConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9366, "before": "public void visitContainedRecords(RecordVisitor rv) {rv.visitRecord(_pls);for (ContinueRecord _plsContinue : _plsContinues) {rv.visitRecord(_plsContinue);}}", "after": "public override void VisitContainedRecords(RecordVisitor rv){rv.VisitRecord(_pls);for (int i = 0; i < _plsContinues.Length; i++){rv.VisitRecord(_plsContinues[i]);}}" }, { "index": 9367, "before": "public static BoolEval valueOf(boolean b) {return b ? TRUE : FALSE;}", "after": "public static BoolEval ValueOf(bool b){return b ? TRUE : FALSE;}" }, { "index": 9368, "before": "public EvaluationName getName(String name, int sheetIndex) {for(int i=0; i < _iBook.getNumNames(); i++) {NameRecord nr = _iBook.getNameRecord(i);if (nr.getSheetNumber() == sheetIndex+1 && name.equalsIgnoreCase(nr.getNameText())) {return new Name(nr, i);}}return sheetIndex == -1 ? null : getName(name, -1);}", "after": "public IEvaluationName GetName(String name,int sheetIndex){for (int i = 0; i < _iBook.NumNames; i++){NameRecord nr = _iBook.GetNameRecord(i);if (nr.SheetNumber == sheetIndex + 1 && name.Equals(nr.NameText, StringComparison.OrdinalIgnoreCase)){return new Name(nr, i);}}return sheetIndex == -1 ? null : GetName(name, -1);}" }, { "index": 9369, "before": "public String getPIDString(final long pid) {Map dic = getDictionary();if (dic == null || !dic.containsKey(pid)) {ClassID fmt = getFormatID();if (SummaryInformation.FORMAT_ID.equals(fmt)) {dic = PropertyIDMap.getSummaryInformationProperties();} else if (DocumentSummaryInformation.FORMAT_ID[0].equals(fmt)) {dic = PropertyIDMap.getDocumentSummaryInformationProperties();}}return (dic != null && dic.containsKey(pid)) ? dic.get(pid) : PropertyIDMap.UNDEFINED;}", "after": "public String GetPIDString(long pid){String s = null;if (dictionary != null)s = (String)dictionary[pid];if (s == null)s = SectionIDMap.GetPIDString(FormatID.Bytes, pid);if (s == null)s = SectionIDMap.UNDEFINED;return s;}" }, { "index": 9370, "before": "public BatchCreateRoomMembershipResult batchCreateRoomMembership(BatchCreateRoomMembershipRequest request) {request = beforeClientExecution(request);return executeBatchCreateRoomMembership(request);}", "after": "public virtual BatchCreateRoomMembershipResponse BatchCreateRoomMembership(BatchCreateRoomMembershipRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchCreateRoomMembershipRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchCreateRoomMembershipResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9371, "before": "public V getValue() {return value;}", "after": "public V getValue(){return value;}" }, { "index": 9372, "before": "public DeleteQueueResult deleteQueue(DeleteQueueRequest request) {request = beforeClientExecution(request);return executeDeleteQueue(request);}", "after": "public virtual DeleteQueueResponse DeleteQueue(DeleteQueueRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteQueueRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteQueueResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9373, "before": "public Builder() {this.field = null;this.termArrays = new ArrayList<>();this.positions = new ArrayList<>();this.slop = 0;}", "after": "public Builder(): base(){lastDocID = -1;wordNum = -1;word = 0;}" }, { "index": 9374, "before": "public BatchRefUpdate addCommand(ReceiveCommand cmd) {commands.add(cmd);return this;}", "after": "public virtual NGit.BatchRefUpdate AddCommand(ReceiveCommand cmd){commands.AddItem(cmd);return this;}" }, { "index": 9375, "before": "public DetachLoadBalancerTargetGroupsResult detachLoadBalancerTargetGroups(DetachLoadBalancerTargetGroupsRequest request) {request = beforeClientExecution(request);return executeDetachLoadBalancerTargetGroups(request);}", "after": "public virtual DetachLoadBalancerTargetGroupsResponse DetachLoadBalancerTargetGroups(DetachLoadBalancerTargetGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachLoadBalancerTargetGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachLoadBalancerTargetGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9376, "before": "public FrameRecord(RecordInputStream in) {field_1_borderType = in.readShort();field_2_options = in.readShort();}", "after": "public FrameRecord(RecordInputStream in1){field_1_borderType = in1.ReadShort();field_2_options = in1.ReadShort();}" }, { "index": 9377, "before": "public final Explanation explain(BasicStats stats) {return Explanation.match(lambda(stats),getClass().getSimpleName()+ \", computed as (F + 1) / (N + 1) from:\",Explanation.match(stats.getTotalTermFreq(),\"F, total number of occurrences of term across all documents\"),Explanation.match(stats.getNumberOfDocuments(),\"N, total number of documents with field\"));}", "after": "public override sealed Explanation Explain(BasicStats stats){Explanation result = new Explanation();result.Description = this.GetType().Name + \", computed from: \";result.Value = CalculateLambda(stats);result.AddDetail(new Explanation(stats.TotalTermFreq, \"totalTermFreq\"));result.AddDetail(new Explanation(stats.NumberOfDocuments, \"numberOfDocuments\"));return result;}" }, { "index": 9378, "before": "public boolean matches(ValueEval x) {if(x instanceof ErrorEval) {int testValue = ((ErrorEval)x).getErrorCode();return evaluate(testValue - _value);}return false;}", "after": "public override bool Matches(ValueEval x){if (x is ErrorEval){int testValue = ((ErrorEval)x).ErrorCode;return Evaluate(testValue - _value);}return false;}" }, { "index": 9379, "before": "public S3Signer() {this.httpVerb = null;this.resourcePath = null;this.additionalQueryParamsToSign = null;}", "after": "public S3Signer(){_s3Signer = new Amazon.Runtime.Internal.Auth.S3Signer(AWSConfigsS3.UseSignatureVersion4, RegionDetectionUpdater);}" }, { "index": 9380, "before": "public RejectDomainTransferFromAnotherAwsAccountResult rejectDomainTransferFromAnotherAwsAccount(RejectDomainTransferFromAnotherAwsAccountRequest request) {request = beforeClientExecution(request);return executeRejectDomainTransferFromAnotherAwsAccount(request);}", "after": "public virtual RejectDomainTransferFromAnotherAwsAccountResponse RejectDomainTransferFromAnotherAwsAccount(RejectDomainTransferFromAnotherAwsAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectDomainTransferFromAnotherAwsAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectDomainTransferFromAnotherAwsAccountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9381, "before": "public String toString() {return \"[STRING]\\n\" +\" .string = \" + _text + \"\\n\" +\"[/STRING]\\n\";}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[STRING]\\n\");buffer.Append(\" .string = \").Append(_text).Append(\"\\n\");buffer.Append(\"[/STRING]\\n\");return buffer.ToString();}" }, { "index": 9382, "before": "public GetIdentityNotificationAttributesResult getIdentityNotificationAttributes(GetIdentityNotificationAttributesRequest request) {request = beforeClientExecution(request);return executeGetIdentityNotificationAttributes(request);}", "after": "public virtual GetIdentityNotificationAttributesResponse GetIdentityNotificationAttributes(GetIdentityNotificationAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdentityNotificationAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdentityNotificationAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9383, "before": "public DoubleBuffer slice() {return new ReadOnlyDoubleArrayBuffer(remaining(), backingArray, offset + position);}", "after": "public override java.nio.DoubleBuffer slice(){return new java.nio.ReadOnlyDoubleArrayBuffer(remaining(), backingArray, offset +_position);}" }, { "index": 9384, "before": "public void append(int key, E value) {if (mSize != 0 && key <= mKeys[mSize - 1]) {put(key, value);return;}if (mGarbage && mSize >= mKeys.length) {gc();}int pos = mSize;if (pos >= mKeys.length) {int n = ArrayUtils.idealIntArraySize(pos + 1);int[] nkeys = new int[n];Object[] nvalues = new Object[n];System.arraycopy(mKeys, 0, nkeys, 0, mKeys.length);System.arraycopy(mValues, 0, nvalues, 0, mValues.length);mKeys = nkeys;mValues = nvalues;}mKeys[pos] = key;mValues[pos] = value;mSize = pos + 1;}", "after": "public virtual void append(int key, E value){if (mSize != 0 && key <= mKeys[mSize - 1]){put(key, value);return;}if (mGarbage && mSize >= mKeys.Length){gc();}int pos = mSize;if (pos >= mKeys.Length){int n = android.util.@internal.ArrayUtils.idealIntArraySize(pos + 1);int[] nkeys = new int[n];object[] nvalues = new object[n];System.Array.Copy(mKeys, 0, nkeys, 0, mKeys.Length);System.Array.Copy(mValues, 0, nvalues, 0, mValues.Length);mKeys = nkeys;mValues = nvalues;}mKeys[pos] = key;mValues[pos] = value;mSize = pos + 1;}" }, { "index": 9385, "before": "public String toString() {return \"INDEX_DIFF_FILTER\"; }", "after": "public override string ToString(){return \"INDEX_DIFF_FILTER\";}" }, { "index": 9386, "before": "public long ramBytesUsed() {return docs.ramBytesUsed()+ RamUsageEstimator.NUM_BYTES_OBJECT_HEADER+ 2 * Integer.BYTES+ 2 + Long.BYTES+ RamUsageEstimator.NUM_BYTES_OBJECT_REF;}", "after": "public long RamBytesUsed(){return RamUsageEstimator.AlignObjectSize(3 * RamUsageEstimator.NUM_BYTES_OBJECT_REF) + docIDs.RamBytesUsed() + offsets.RamBytesUsed();}" }, { "index": 9387, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append( \"[LeftMargin]\\n\" );buffer.append( \" .margin = \" ).append( \" (\" ).append( getMargin() ).append( \" )\\n\" );buffer.append( \"[/LeftMargin]\\n\" );return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[LeftMargin]\\n\");buffer.Append(\" .margin = \").Append(\" (\").Append(Margin).Append(\" )\\n\");buffer.Append(\"[/LeftMargin]\\n\");return buffer.ToString();}" }, { "index": 9388, "before": "public FreeTextSuggester(Analyzer indexAnalyzer, Analyzer queryAnalyzer, int grams, byte separator) {this.grams = grams;this.indexAnalyzer = addShingles(indexAnalyzer);this.queryAnalyzer = addShingles(queryAnalyzer);if (grams < 1) {throw new IllegalArgumentException(\"grams must be >= 1\");}if ((separator & 0x80) != 0) {throw new IllegalArgumentException(\"separator must be simple ascii character\");}this.separator = separator;}", "after": "public FreeTextSuggester(Analyzer indexAnalyzer, Analyzer queryAnalyzer, int grams, byte separator){this.grams = grams;this.indexAnalyzer = AddShingles(indexAnalyzer);this.queryAnalyzer = AddShingles(queryAnalyzer);if (grams < 1){throw new System.ArgumentException(\"grams must be >= 1\");}if ((separator & 0x80) != 0){throw new System.ArgumentException(\"separator must be simple ascii character\");}this.separator = separator;}" }, { "index": 9389, "before": "public CJKWidthFilter(TokenStream input) {super(input);}", "after": "public CJKWidthFilter(TokenStream input): base(input){termAtt = AddAttribute();}" }, { "index": 9390, "before": "public ModifyVpnTunnelOptionsResult modifyVpnTunnelOptions(ModifyVpnTunnelOptionsRequest request) {request = beforeClientExecution(request);return executeModifyVpnTunnelOptions(request);}", "after": "public virtual ModifyVpnTunnelOptionsResponse ModifyVpnTunnelOptions(ModifyVpnTunnelOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpnTunnelOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpnTunnelOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9391, "before": "public int nextDoc() {while (true) {if (queue.size() == 0) {doc = NO_MORE_DOCS;break;}int newDoc = queue.top().docID();if (newDoc != doc) {assert newDoc > doc: \"doc=\" + doc + \" newDoc=\" + newDoc;doc = newDoc;break;}if (queue.top().nextDoc() == NO_MORE_DOCS) {queue.pop();} else {queue.updateTop();}}return doc;}", "after": "public override int NextDoc(){if (bitList != 0) {docID = (wordNum << 3) | ((bitList & 0x0F) - 1);bitList = (int)((uint)bitList >> 4);return docID;}NextWord();if (wordNum == int.MaxValue){return docID = NO_MORE_DOCS;}bitList = BitUtil.BitList(word);Debug.Assert(bitList != 0);docID = (wordNum << 3) | ((bitList & 0x0F) - 1);bitList = (int)((uint)bitList >> 4);return docID;}" }, { "index": 9392, "before": "public GetTransitGatewayRouteTableAssociationsResult getTransitGatewayRouteTableAssociations(GetTransitGatewayRouteTableAssociationsRequest request) {request = beforeClientExecution(request);return executeGetTransitGatewayRouteTableAssociations(request);}", "after": "public virtual GetTransitGatewayRouteTableAssociationsResponse GetTransitGatewayRouteTableAssociations(GetTransitGatewayRouteTableAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTransitGatewayRouteTableAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTransitGatewayRouteTableAssociationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9393, "before": "public DescribeLoggingStatusResult describeLoggingStatus(DescribeLoggingStatusRequest request) {request = beforeClientExecution(request);return executeDescribeLoggingStatus(request);}", "after": "public virtual DescribeLoggingStatusResponse DescribeLoggingStatus(DescribeLoggingStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoggingStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoggingStatusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9394, "before": "public PorterStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public PorterStemFilterFactory(IDictionary args) : base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 9395, "before": "public Storage getStorage() {return storage;}", "after": "public virtual RefStorage GetStorage(){return storage;}" }, { "index": 9396, "before": "public static CharBuffer wrap(char[] array) {return wrap(array, 0, array.length);}", "after": "public static java.nio.CharBuffer wrap(char[] array_1){return wrap(array_1, 0, array_1.Length);}" }, { "index": 9397, "before": "public CreateVoiceConnectorResult createVoiceConnector(CreateVoiceConnectorRequest request) {request = beforeClientExecution(request);return executeCreateVoiceConnector(request);}", "after": "public virtual CreateVoiceConnectorResponse CreateVoiceConnector(CreateVoiceConnectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVoiceConnectorRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVoiceConnectorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9398, "before": "public ParseException generateParseException() {jj_expentries.clear();boolean[] la1tokens = new boolean[24];if (jj_kind >= 0) {la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 10; i++) {if (jj_la1[i] == jj_gen) {for (int j = 0; j < 32; j++) {if ((jj_la1_0[i] & (1<= 0){la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 10; i++){if (jj_la1[i] == jj_gen){for (int j = 0; j < 32; j++){if ((jj_la1_0[i] & (1 << j)) != 0){la1tokens[j] = true;}}}}for (int i = 0; i < 24; i++){if (la1tokens[i]){jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.Add(jj_expentry);}}jj_endpos = 0;Jj_rescan_token();Jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.Count][];for (int i = 0; i < jj_expentries.Count; i++){exptokseq[i] = jj_expentries[i];}return new ParseException(Token, exptokseq, QueryParserConstants.TokenImage);}" }, { "index": 9399, "before": "public void setSheetOrder(String sheetname, int pos ) {int sheetNumber = getSheetIndex(sheetname);boundsheets.add(pos, boundsheets.remove(sheetNumber));int initialBspos = records.getBspos();int pos0 = initialBspos - (boundsheets.size() - 1);org.apache.poi.hssf.record.Record removed = records.get(pos0 + sheetNumber);records.remove(pos0 + sheetNumber);records.add(pos0 + pos, removed);records.setBspos(initialBspos);}", "after": "public void SetSheetOrder(String sheetname, int pos){int sheetNumber = GetSheetIndex(sheetname);BoundSheetRecord sheet = boundsheets[sheetNumber];boundsheets.RemoveAt(sheetNumber);boundsheets.Insert(pos, sheet);int pos0 = records.Bspos - (boundsheets.Count - 1);Record removed = records[(pos0 + sheetNumber)];records.Remove(pos0 + sheetNumber);records.Add(pos0 + pos, removed);}" }, { "index": 9400, "before": "public UpdateRepoBuildRuleRequest() {super(\"cr\", \"2016-06-07\", \"UpdateRepoBuildRule\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]\");setMethod(MethodType.POST);}", "after": "public UpdateRepoBuildRuleRequest(): base(\"cr\", \"2016-06-07\", \"UpdateRepoBuildRule\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]\";Method = MethodType.POST;}" }, { "index": 9401, "before": "public boolean contains(Object o) {return map.containsKey(o);}", "after": "public virtual bool Contains(string cs){return map.ContainsKey(cs);}" }, { "index": 9402, "before": "public DescribeAutoScalingInstancesResult describeAutoScalingInstances() {return describeAutoScalingInstances(new DescribeAutoScalingInstancesRequest());}", "after": "public virtual DescribeAutoScalingInstancesResponse DescribeAutoScalingInstances(){return DescribeAutoScalingInstances(new DescribeAutoScalingInstancesRequest());}" }, { "index": 9403, "before": "public NLPTokenizerOp() {tokenizer = null;}", "after": "public NLPTokenizerOp(){tokenizer = null;}" }, { "index": 9404, "before": "public int size() {synchronized (mutex) {return delegate().size();}}", "after": "public virtual int size(){lock (mutex){return c.size();}}" }, { "index": 9405, "before": "public boolean retainAll(final IntList c){boolean rval = false;for (int j = 0; j < _limit; ){if (!c.contains(_array[ j ])){remove(j);rval = true;}else{j++;}}return rval;}", "after": "public bool RetainAll(IntList c){bool rval = false;for (int j = 0; j < _limit; ){if (!c.Contains(_array[j])){Remove(j);rval = true;}else{j++;}}return rval;}" }, { "index": 9406, "before": "public String getPath() {return path.getPath();}", "after": "public virtual string GetPath(){return path.GetPath();}" }, { "index": 9407, "before": "public UpdateSecurityGroupRuleDescriptionsEgressResult updateSecurityGroupRuleDescriptionsEgress(UpdateSecurityGroupRuleDescriptionsEgressRequest request) {request = beforeClientExecution(request);return executeUpdateSecurityGroupRuleDescriptionsEgress(request);}", "after": "public virtual UpdateSecurityGroupRuleDescriptionsEgressResponse UpdateSecurityGroupRuleDescriptionsEgress(UpdateSecurityGroupRuleDescriptionsEgressRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSecurityGroupRuleDescriptionsEgressRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSecurityGroupRuleDescriptionsEgressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9408, "before": "public SetVaultAccessPolicyResult setVaultAccessPolicy(SetVaultAccessPolicyRequest request) {request = beforeClientExecution(request);return executeSetVaultAccessPolicy(request);}", "after": "public virtual SetVaultAccessPolicyResponse SetVaultAccessPolicy(SetVaultAccessPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetVaultAccessPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = SetVaultAccessPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9409, "before": "public PutAutoScalingPolicyResult putAutoScalingPolicy(PutAutoScalingPolicyRequest request) {request = beforeClientExecution(request);return executePutAutoScalingPolicy(request);}", "after": "public virtual PutAutoScalingPolicyResponse PutAutoScalingPolicy(PutAutoScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAutoScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAutoScalingPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9410, "before": "public CancelReservedInstancesListingResult cancelReservedInstancesListing(CancelReservedInstancesListingRequest request) {request = beforeClientExecution(request);return executeCancelReservedInstancesListing(request);}", "after": "public virtual CancelReservedInstancesListingResponse CancelReservedInstancesListing(CancelReservedInstancesListingRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelReservedInstancesListingRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelReservedInstancesListingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9411, "before": "public String getSignerName() {return null;}", "after": "public override string GetSignerName(){return \"BearerTokenSigner\";}" }, { "index": 9412, "before": "public ListTagsForDeliveryStreamResult listTagsForDeliveryStream(ListTagsForDeliveryStreamRequest request) {request = beforeClientExecution(request);return executeListTagsForDeliveryStream(request);}", "after": "public virtual ListTagsForDeliveryStreamResponse ListTagsForDeliveryStream(ListTagsForDeliveryStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTagsForDeliveryStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTagsForDeliveryStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9413, "before": "public RegisterDomainResult registerDomain(RegisterDomainRequest request) {request = beforeClientExecution(request);return executeRegisterDomain(request);}", "after": "public virtual RegisterDomainResponse RegisterDomain(RegisterDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9414, "before": "public ListEntityRecognizersResult listEntityRecognizers(ListEntityRecognizersRequest request) {request = beforeClientExecution(request);return executeListEntityRecognizers(request);}", "after": "public virtual ListEntityRecognizersResponse ListEntityRecognizers(ListEntityRecognizersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEntityRecognizersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEntityRecognizersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9415, "before": "public void setTimeout(int millis) {if (millis < 0)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().invalidTimeout, Integer.valueOf(millis)));timeout = millis;}", "after": "public virtual void SetTimeout(int millis){if (millis < 0){throw new ArgumentException(MessageFormat.Format(JGitText.Get().invalidTimeout, Sharpen.Extensions.ValueOf(millis)));}timeout = millis;}" }, { "index": 9416, "before": "public GetRepoSourceRepoRequest() {super(\"cr\", \"2016-06-07\", \"GetRepoSourceRepo\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/sourceRepo\");setMethod(MethodType.GET);}", "after": "public GetRepoSourceRepoRequest(): base(\"cr\", \"2016-06-07\", \"GetRepoSourceRepo\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/sourceRepo\";Method = MethodType.GET;}" }, { "index": 9417, "before": "public DescribeBatchInferenceJobResult describeBatchInferenceJob(DescribeBatchInferenceJobRequest request) {request = beforeClientExecution(request);return executeDescribeBatchInferenceJob(request);}", "after": "public virtual DescribeBatchInferenceJobResponse DescribeBatchInferenceJob(DescribeBatchInferenceJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeBatchInferenceJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeBatchInferenceJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9418, "before": "public CreateSecurityGroupRequest(String groupName, String description) {setGroupName(groupName);setDescription(description);}", "after": "public CreateSecurityGroupRequest(string groupName, string description){_groupName = groupName;_description = description;}" }, { "index": 9419, "before": "public final int serialize(int offset, byte[] data) {SerializingRecordVisitor srv = new SerializingRecordVisitor(data, offset);visitContainedRecords(srv);return srv.countBytesWritten();}", "after": "public override int Serialize(int offset, byte[] data){SerializingRecordVisitor srv = new SerializingRecordVisitor(data, offset);VisitContainedRecords(srv);return srv.CountBytesWritten();}" }, { "index": 9420, "before": "public BatchGetImageResult batchGetImage(BatchGetImageRequest request) {request = beforeClientExecution(request);return executeBatchGetImage(request);}", "after": "public virtual BatchGetImageResponse BatchGetImage(BatchGetImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetImageRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetImageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9421, "before": "public int read() throws IOException {try {beginRead();return super.read();} catch (InterruptedIOException e) {throw readTimedOut(e);} finally {endRead();}}", "after": "public override int Read(){try{BeginRead();return base.Read();}catch (ThreadInterruptedException){throw ReadTimedOut();}finally{EndRead();}}" }, { "index": 9422, "before": "public ActivityTask pollForActivityTask(PollForActivityTaskRequest request) {request = beforeClientExecution(request);return executePollForActivityTask(request);}", "after": "public virtual PollForActivityTaskResponse PollForActivityTask(PollForActivityTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = PollForActivityTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = PollForActivityTaskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9423, "before": "public int execute(StringBuilder buf) {if ( text!=null ) {buf.append(text);}return lastIndex+1;}", "after": "public virtual int Execute(StringBuilder buf){return index;}" }, { "index": 9424, "before": "public float overheadPerValue(int bitsPerValue) {assert isSupported(bitsPerValue);return 0f;}", "after": "public virtual float OverheadPerValue(int bitsPerValue){Debug.Assert(IsSupported(bitsPerValue));return 0f;}" }, { "index": 9425, "before": "public String toString() {return buf.toString();}", "after": "public override string ToString(){return buf.ToString();}" }, { "index": 9426, "before": "public PrecedenceQueryParser(Analyzer analyer) {super(analyer);setQueryNodeProcessor(new PrecedenceQueryNodeProcessorPipeline(getQueryConfigHandler()));}", "after": "public PrecedenceQueryParser(Analyzer analyer): base(analyer){SetQueryNodeProcessor(new PrecedenceQueryNodeProcessorPipeline(QueryConfigHandler));}" }, { "index": 9427, "before": "public final int position() {return position;}", "after": "public int position(){return _position;}" }, { "index": 9428, "before": "public boolean equals(Object o) {return this.getClass() == o.getClass();}", "after": "public override bool Equals(object o){return this.GetType() == o.GetType();}" }, { "index": 9429, "before": "public IntBuffer compact() {throw new ReadOnlyBufferException();}", "after": "public override java.nio.IntBuffer compact(){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 9430, "before": "public void writeByte(int v) {writeContinueIfRequired(1);_ulrOutput.writeByte(v);}", "after": "public void WriteByte(int v){_out.WriteByte(v);_size += 1;}" }, { "index": 9431, "before": "public ExpireSessionResult expireSession(ExpireSessionRequest request) {request = beforeClientExecution(request);return executeExpireSession(request);}", "after": "public virtual ExpireSessionResponse ExpireSession(ExpireSessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExpireSessionRequestMarshaller.Instance;options.ResponseUnmarshaller = ExpireSessionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9432, "before": "public GetSubscriptionAttributesRequest(String subscriptionArn) {setSubscriptionArn(subscriptionArn);}", "after": "public GetSubscriptionAttributesRequest(string subscriptionArn){_subscriptionArn = subscriptionArn;}" }, { "index": 9433, "before": "public GetMetricDataResult getMetricData(GetMetricDataRequest request) {request = beforeClientExecution(request);return executeGetMetricData(request);}", "after": "public virtual GetMetricDataResponse GetMetricData(GetMetricDataRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMetricDataRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMetricDataResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9434, "before": "public DescribeDhcpOptionsResult describeDhcpOptions(DescribeDhcpOptionsRequest request) {request = beforeClientExecution(request);return executeDescribeDhcpOptions(request);}", "after": "public virtual DescribeDhcpOptionsResponse DescribeDhcpOptions(DescribeDhcpOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDhcpOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDhcpOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9435, "before": "public NavigableSet subSet(E start, boolean startInclusive, E end,boolean endInclusive) {Comparator c = backingMap.comparator();int compare = (c == null) ? ((Comparable) start).compareTo(end) : c.compare(start, end);if (compare <= 0) {return new TreeSet(backingMap.subMap(start, startInclusive, end,endInclusive));}throw new IllegalArgumentException();}", "after": "public virtual java.util.NavigableSet subSet(E start, bool startInclusive, E end, bool endInclusive){java.util.Comparator c = backingMap.comparator();int compare = (c == null) ? ((java.lang.Comparable)start).compareTo(end) : c.compare(start, end);if (compare <= 0){return new java.util.TreeSet(backingMap.subMap(start, startInclusive, end, endInclusive));}throw new System.ArgumentException();}" }, { "index": 9436, "before": "public SendEmailResult sendEmail(SendEmailRequest request) {request = beforeClientExecution(request);return executeSendEmail(request);}", "after": "public virtual SendEmailResponse SendEmail(SendEmailRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendEmailRequestMarshaller.Instance;options.ResponseUnmarshaller = SendEmailResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9437, "before": "public String toString(){return String.valueOf(_value);}", "after": "public override string ToString(){return Convert.ToString(this._value, CultureInfo.CurrentCulture);}" }, { "index": 9438, "before": "public static double getExcelDate(LocalDate date) {return getExcelDate(date, false);}", "after": "public static double GetExcelDate(DateTime date){return GetExcelDate(date, false);}" }, { "index": 9439, "before": "public boolean equals( Object o ) {return o instanceof ItalianStemmer;}", "after": "public override bool Equals(object o){return o is ItalianStemmer;}" }, { "index": 9440, "before": "public ListenerHandle addIndexChangedListener(IndexChangedListener listener) {return addListener(IndexChangedListener.class, listener);}", "after": "public virtual ListenerHandle AddIndexChangedListener(IndexChangedListener listener){return AddListener(listener);}" }, { "index": 9441, "before": "public SynthesizeSpeechResult synthesizeSpeech(SynthesizeSpeechRequest request) {request = beforeClientExecution(request);return executeSynthesizeSpeech(request);}", "after": "public virtual SynthesizeSpeechResponse SynthesizeSpeech(SynthesizeSpeechRequest request){var options = new InvokeOptions();options.RequestMarshaller = SynthesizeSpeechRequestMarshaller.Instance;options.ResponseUnmarshaller = SynthesizeSpeechResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9442, "before": "public void merge(TextFragment frag2){textEndPos = frag2.textEndPos;score=Math.max(score,frag2.score);}", "after": "public virtual void Merge(TextFragment frag2){TextEndPos = frag2.TextEndPos;Score = Math.Max(Score, frag2.Score);}" }, { "index": 9443, "before": "public CreateLedgerResult createLedger(CreateLedgerRequest request) {request = beforeClientExecution(request);return executeCreateLedger(request);}", "after": "public virtual CreateLedgerResponse CreateLedger(CreateLedgerRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLedgerRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLedgerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9444, "before": "public DescribeFleetPortSettingsResult describeFleetPortSettings(DescribeFleetPortSettingsRequest request) {request = beforeClientExecution(request);return executeDescribeFleetPortSettings(request);}", "after": "public virtual DescribeFleetPortSettingsResponse DescribeFleetPortSettings(DescribeFleetPortSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFleetPortSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFleetPortSettingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9445, "before": "public String getHost() {return host;}", "after": "public string getHost(){return host;}" }, { "index": 9446, "before": "public short get() {if (position == limit) {throw new BufferUnderflowException();}return byteBuffer.getShort(position++ * SizeOf.SHORT);}", "after": "public override short get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return byteBuffer.getShort(_position++ * libcore.io.SizeOf.SHORT);}" }, { "index": 9447, "before": "public void ReInit(CharStream stream){jjmatchedPos = jjnewStateCnt = 0;curLexState = defaultLexState;input_stream = stream;ReInitRounds();}", "after": "public void ReInit(ICharStream stream){jjmatchedPos = jjnewStateCnt = 0;curLexState = defaultLexState;m_input_stream = stream;ReInitRounds();}" }, { "index": 9448, "before": "public void set(int index, long value) {final int o = index / 12;final int b = index % 12;final int shift = b * 5;blocks[o] = (blocks[o] & ~(31L << shift)) | (value << shift);}", "after": "public override void Set(int index, long value){int o = index / 12;int b = index % 12;int shift = b * 5;blocks[o] = (blocks[o] & ~(31L << shift)) | (value << shift);}" }, { "index": 9449, "before": "public ByteSequencesWriter(IndexOutput out) {this.out = out;}", "after": "public ByteSequencesWriter(DataOutput os){this.os = os;}" }, { "index": 9450, "before": "public MultiTermsEnum(ReaderSlice[] slices) {queue = new TermMergeQueue(slices.length);top = new TermsEnumWithSlice[slices.length];subs = new TermsEnumWithSlice[slices.length];subDocs = new MultiPostingsEnum.EnumWithSlice[slices.length];for(int i=0;i();this.attributeImpls = new LinkedHashMap<>();this.currentState = new State[1];this.factory = Objects.requireNonNull(factory, \"AttributeFactory must not be null\");}", "after": "public AttributeSource(AttributeFactory factory){this.attributes = new JCG.LinkedDictionary();this.attributeImpls = new JCG.LinkedDictionary();this.currentState = new State[1];this.factory = factory;}" }, { "index": 9453, "before": "public Matcher reset(CharSequence input) {return reset(input, 0, input.length());}", "after": "public java.util.regex.Matcher reset(java.lang.CharSequence input){return reset(input, 0, input.Length);}" }, { "index": 9454, "before": "public GetConfigurationProfileResult getConfigurationProfile(GetConfigurationProfileRequest request) {request = beforeClientExecution(request);return executeGetConfigurationProfile(request);}", "after": "public virtual GetConfigurationProfileResponse GetConfigurationProfile(GetConfigurationProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetConfigurationProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = GetConfigurationProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9455, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex) {return new NumberEval(srcColumnIndex+1);}", "after": "public ValueEval Evaluate(int srcRowIndex, int srcColumnIndex){return new NumberEval(srcColumnIndex + 1);}" }, { "index": 9456, "before": "public static double[] grow(double[] array, int minSize) {assert minSize >= 0: \"size must be positive (got \" + minSize + \"): likely integer overflow?\";if (array.length < minSize) {return growExact(array, oversize(minSize, Double.BYTES));} elsereturn array;}", "after": "public static float[] Grow(float[] array, int minSize){Debug.Assert(minSize >= 0, \"size must be positive (got \" + minSize + \"): likely integer overflow?\");if (array.Length < minSize){float[] newArray = new float[Oversize(minSize, RamUsageEstimator.NUM_BYTES_SINGLE)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}" }, { "index": 9457, "before": "public DescribeVpcPeeringConnectionsResult describeVpcPeeringConnections(DescribeVpcPeeringConnectionsRequest request) {request = beforeClientExecution(request);return executeDescribeVpcPeeringConnections(request);}", "after": "public virtual DescribeVpcPeeringConnectionsResponse DescribeVpcPeeringConnections(DescribeVpcPeeringConnectionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcPeeringConnectionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcPeeringConnectionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9458, "before": "public FloatBuffer put(float c) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.FloatBuffer put(float c){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 9459, "before": "public int sumTokenSizes(int fromIx, int toIx) {int result = 0;for (int i=fromIx; i(request, options);}" }, { "index": 9463, "before": "public HCenterRecord(RecordInputStream in) {field_1_hcenter = in.readShort();}", "after": "public HCenterRecord(RecordInputStream in1){field_1_hcenter = in1.ReadShort();}" }, { "index": 9464, "before": "public CreateDBClusterEndpointResult createDBClusterEndpoint(CreateDBClusterEndpointRequest request) {request = beforeClientExecution(request);return executeCreateDBClusterEndpoint(request);}", "after": "public virtual CreateDBClusterEndpointResponse CreateDBClusterEndpoint(CreateDBClusterEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBClusterEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBClusterEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9465, "before": "public boolean hasNext() {return iterator.nextIndex() < end;}", "after": "public bool hasNext(){return iterator.nextIndex() < end;}" }, { "index": 9466, "before": "public CredentialItem(String promptText, boolean maskValue) {this.promptText = promptText;this.valueSecure = maskValue;}", "after": "public CredentialItem(string promptText, bool maskValue){this.promptText = promptText;this.valueSecure = maskValue;}" }, { "index": 9467, "before": "public DescribeCustomAvailabilityZonesResult describeCustomAvailabilityZones(DescribeCustomAvailabilityZonesRequest request) {request = beforeClientExecution(request);return executeDescribeCustomAvailabilityZones(request);}", "after": "public virtual DescribeCustomAvailabilityZonesResponse DescribeCustomAvailabilityZones(DescribeCustomAvailabilityZonesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCustomAvailabilityZonesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCustomAvailabilityZonesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9468, "before": "public DescribeClusterParameterGroupsResult describeClusterParameterGroups() {return describeClusterParameterGroups(new DescribeClusterParameterGroupsRequest());}", "after": "public virtual DescribeClusterParameterGroupsResponse DescribeClusterParameterGroups(){return DescribeClusterParameterGroups(new DescribeClusterParameterGroupsRequest());}" }, { "index": 9469, "before": "public Item(char p, char c) {parent = p;child = c;}", "after": "public Item(char p, char c){parent = p;child = c;}" }, { "index": 9470, "before": "public void reset(int[] docs, int[] freqs) {this.docs = docs;this.freqs = freqs;if (freqs != null && tmpFreqs == null) {tmpFreqs = new int[tmpDocs.length];}}", "after": "public void Reset(int[] docs, int[] freqs){this.docs = docs;this.freqs = freqs;if (freqs != null && tmpFreqs == null){tmpFreqs = new int[tmpDocs.Length];}}" }, { "index": 9471, "before": "public ChangeMessageVisibilityResult changeMessageVisibility(String queueUrl, String receiptHandle, Integer visibilityTimeout) {return changeMessageVisibility(new ChangeMessageVisibilityRequest().withQueueUrl(queueUrl).withReceiptHandle(receiptHandle).withVisibilityTimeout(visibilityTimeout));}", "after": "public virtual ChangeMessageVisibilityResponse ChangeMessageVisibility(string queueUrl, string receiptHandle, int visibilityTimeout){var request = new ChangeMessageVisibilityRequest();request.QueueUrl = queueUrl;request.ReceiptHandle = receiptHandle;request.VisibilityTimeout = visibilityTimeout;return ChangeMessageVisibility(request);}" }, { "index": 9472, "before": "public boolean contains(Object o) {return this.processors.contains(o);}", "after": "public virtual bool Contains(object o){return this.processors.Contains(o);}" }, { "index": 9473, "before": "public int getReturnState(int index) {return returnState;}", "after": "public override int GetReturnState(int index){return returnState;}" }, { "index": 9474, "before": "public ModifyVolumeAttributeResult modifyVolumeAttribute(ModifyVolumeAttributeRequest request) {request = beforeClientExecution(request);return executeModifyVolumeAttribute(request);}", "after": "public virtual ModifyVolumeAttributeResponse ModifyVolumeAttribute(ModifyVolumeAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVolumeAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVolumeAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9475, "before": "public DeleteVolumeResult deleteVolume(DeleteVolumeRequest request) {request = beforeClientExecution(request);return executeDeleteVolume(request);}", "after": "public virtual DeleteVolumeResponse DeleteVolume(DeleteVolumeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVolumeRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVolumeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9476, "before": "public ByteBuffer putLong(int index, long value) {checkIndex(index, SizeOf.LONG);Memory.pokeLong(backingArray, offset + index, value, order);return this;}", "after": "public override java.nio.ByteBuffer putLong(int index, long value){checkIndex(index, libcore.io.SizeOf.LONG);libcore.io.Memory.pokeLong(backingArray, offset + index, value, _order);return this;}" }, { "index": 9477, "before": "public boolean hasMetaDataChanges() {return changeType != ChangeType.MODIFY || newMode != oldMode;}", "after": "public virtual bool HasMetaDataChanges(){return changeType != DiffEntry.ChangeType.MODIFY || newMode != oldMode;}" }, { "index": 9478, "before": "public void newField(FieldInfo fieldInfo) {count = interval;}", "after": "public override void NewField(FieldInfo fieldInfo){count = interval;}" }, { "index": 9479, "before": "public TokenStream create(TokenStream input) {return new JapaneseReadingFormFilter(input, useRomaji);}", "after": "public override TokenStream Create(TokenStream input){return new JapaneseReadingFormFilter(input, useRomaji);}" }, { "index": 9480, "before": "public static CellRangeAddress valueOf(String ref) {int sep = ref.indexOf(\":\");CellReference a;CellReference b;if (sep == -1) {a = new CellReference(ref);b = a;} else {a = new CellReference(ref.substring(0, sep));b = new CellReference(ref.substring(sep + 1));}return new CellRangeAddress(a.getRow(), b.getRow(), a.getCol(), b.getCol());}", "after": "public static CellRangeAddress ValueOf(String reference){int sep = reference.IndexOf(\":\", StringComparison.Ordinal);CellReference a;CellReference b;if (sep == -1){a = new CellReference(reference);b = a;}else{a = new CellReference(reference.Substring(0, sep));b = new CellReference(reference.Substring(sep + 1));}return new CellRangeAddress(a.Row, b.Row, a.Col, b.Col);}" }, { "index": 9481, "before": "public ModifySelfservicePermissionsResult modifySelfservicePermissions(ModifySelfservicePermissionsRequest request) {request = beforeClientExecution(request);return executeModifySelfservicePermissions(request);}", "after": "public virtual ModifySelfservicePermissionsResponse ModifySelfservicePermissions(ModifySelfservicePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifySelfservicePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifySelfservicePermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9482, "before": "public int getTokenType(String tokenName) {Integer ttype = getTokenTypeMap().get(tokenName);if ( ttype!=null ) return ttype;return Token.INVALID_TYPE;}", "after": "public virtual int GetTokenType(string tokenName){int ttype;if (TokenTypeMap.TryGetValue(tokenName, out ttype)){return ttype;}return TokenConstants.InvalidType;}" }, { "index": 9483, "before": "public int compareTo(LongBuffer otherBuffer) {int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining(): otherBuffer.remaining();int thisPos = position;int otherPos = otherBuffer.position;long thisLong, otherLong;while (compareRemaining > 0) {thisLong = get(thisPos);otherLong = otherBuffer.get(otherPos);if (thisLong != otherLong) {return thisLong < otherLong ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}", "after": "public virtual int compareTo(java.nio.LongBuffer otherBuffer){int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining();int thisPos = _position;int otherPos = otherBuffer._position;long thisLong;long otherLong;while (compareRemaining > 0){thisLong = get(thisPos);otherLong = otherBuffer.get(otherPos);if (thisLong != otherLong){return thisLong < otherLong ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}" }, { "index": 9484, "before": "public ApproveSkillResult approveSkill(ApproveSkillRequest request) {request = beforeClientExecution(request);return executeApproveSkill(request);}", "after": "public virtual ApproveSkillResponse ApproveSkill(ApproveSkillRequest request){var options = new InvokeOptions();options.RequestMarshaller = ApproveSkillRequestMarshaller.Instance;options.ResponseUnmarshaller = ApproveSkillResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9485, "before": "public void writeContinueIfRequired(int requiredContinuousSize) {if (_ulrOutput.getAvailableSpace() < requiredContinuousSize) {writeContinue();}}", "after": "public void WriteContinueIfRequired(int requiredContinuousSize){if (_ulrOutput.AvailableSpace < requiredContinuousSize){WriteContinue();}}" }, { "index": 9486, "before": "public GetApiKeysResult getApiKeys(GetApiKeysRequest request) {request = beforeClientExecution(request);return executeGetApiKeys(request);}", "after": "public virtual GetApiKeysResponse GetApiKeys(GetApiKeysRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApiKeysRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApiKeysResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9487, "before": "public Iterator> iterator() {return newEntryIterator();}", "after": "public override java.util.Iterator> iterator(){return new java.util.Hashtable.EntryIterator(this._enclosing);}" }, { "index": 9488, "before": "public int compareTo(RowColKey o) {int cmp = _rowIndex - o._rowIndex;if (cmp != 0) {return cmp;}return _columnIndex - o._columnIndex;}", "after": "public int CompareTo(RowColKey o){int cmp = _rowIndex - o._rowIndex;if (cmp != 0){return cmp;}return _columnIndex - o._columnIndex;}" }, { "index": 9489, "before": "public ATNConfig(ATNConfig c, ATNState state,PredictionContext context,SemanticContext semanticContext){this.state = state;this.alt = c.alt;this.context = context;this.semanticContext = semanticContext;this.reachesIntoOuterContext = c.reachesIntoOuterContext;}", "after": "public ATNConfig(ATNConfig c, ATNState state,PredictionContext context,SemanticContext semanticContext){this.state = state;this.alt = c.alt;this.context = context;this.semanticContext = semanticContext;this.reachesIntoOuterContext = c.reachesIntoOuterContext;}" }, { "index": 9490, "before": "public void updateNamesAfterCellShift(FormulaShifter shifter) {for (int i = 0 ; i < getNumNames() ; ++i){NameRecord nr = getNameRecord(i);Ptg[] ptgs = nr.getNameDefinition();if (shifter.adjustFormula(ptgs, nr.getSheetNumber())) {nr.setNameDefinition(ptgs);}}}", "after": "public void UpdateNamesAfterCellShift(FormulaShifter shifter){for (int i = 0; i < NumNames; ++i){NameRecord nr = GetNameRecord(i);Ptg[] ptgs = nr.NameDefinition;if (shifter.AdjustFormula(ptgs, nr.SheetNumber)){nr.NameDefinition = ptgs;}}}" }, { "index": 9491, "before": "public ListReviewPolicyResultsForHITResult listReviewPolicyResultsForHIT(ListReviewPolicyResultsForHITRequest request) {request = beforeClientExecution(request);return executeListReviewPolicyResultsForHIT(request);}", "after": "public virtual ListReviewPolicyResultsForHITResponse ListReviewPolicyResultsForHIT(ListReviewPolicyResultsForHITRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListReviewPolicyResultsForHITRequestMarshaller.Instance;options.ResponseUnmarshaller = ListReviewPolicyResultsForHITResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9492, "before": "public GetExportResult getExport(GetExportRequest request) {request = beforeClientExecution(request);return executeGetExport(request);}", "after": "public virtual GetExportResponse GetExport(GetExportRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetExportRequestMarshaller.Instance;options.ResponseUnmarshaller = GetExportResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9493, "before": "public void setHyperbolicTfFactors(float min, float max,double base, float xoffset) {tf_hyper_min = min;tf_hyper_max = max;tf_hyper_base = base;tf_hyper_xoffset = xoffset;}", "after": "public virtual void SetHyperbolicTfFactors(float min, float max, double @base, float xoffset){tf_hyper_min = min;tf_hyper_max = max;tf_hyper_base = @base;tf_hyper_xoffset = xoffset;}" }, { "index": 9494, "before": "public CharBuffer slice() {return new ReadWriteCharArrayBuffer(remaining(), backingArray, offset + position);}", "after": "public override java.nio.CharBuffer slice(){return new java.nio.ReadWriteCharArrayBuffer(remaining(), backingArray, offset +_position);}" }, { "index": 9495, "before": "public LexerNoViableAltException(Lexer lexer,CharStream input,int startIndex,ATNConfigSet deadEndConfigs) {super(lexer, input, null);this.startIndex = startIndex;this.deadEndConfigs = deadEndConfigs;}", "after": "public LexerNoViableAltException(Lexer lexer, ICharStream input, int startIndex, ATNConfigSet deadEndConfigs): base(lexer, input){this.startIndex = startIndex;this.deadEndConfigs = deadEndConfigs;}" }, { "index": 9496, "before": "public CreateCompilationJobResult createCompilationJob(CreateCompilationJobRequest request) {request = beforeClientExecution(request);return executeCreateCompilationJob(request);}", "after": "public virtual CreateCompilationJobResponse CreateCompilationJob(CreateCompilationJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCompilationJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCompilationJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9497, "before": "public int getPosition() {return position;}", "after": "public virtual int GetPosition(){return position;}" }, { "index": 9498, "before": "public boolean canEncode(CharSequence sequence) {CharBuffer cb;if (sequence instanceof CharBuffer) {cb = ((CharBuffer) sequence).duplicate();} else {cb = CharBuffer.wrap(sequence);}return implCanEncode(cb);}", "after": "public virtual bool canEncode(java.lang.CharSequence sequence){java.nio.CharBuffer cb;if (sequence is java.nio.CharBuffer){cb = ((java.nio.CharBuffer)sequence).duplicate();}else{cb = java.nio.CharBuffer.wrap(sequence);}return implCanEncode(cb);}" }, { "index": 9499, "before": "public synchronized void add(int index, E e) {Object[] newElements = new Object[elements.length + 1];System.arraycopy(elements, 0, newElements, 0, index);newElements[index] = e;System.arraycopy(elements, index, newElements, index + 1, elements.length - index);elements = newElements;}", "after": "public virtual void add(int index, E e){lock (this){object[] newElements = new object[elements.Length + 1];System.Array.Copy(elements, 0, newElements, 0, index);newElements[index] = e;System.Array.Copy(elements, index, newElements, index + 1, elements.Length - index);elements = newElements;}}" }, { "index": 9500, "before": "public StopMonitoringScheduleResult stopMonitoringSchedule(StopMonitoringScheduleRequest request) {request = beforeClientExecution(request);return executeStopMonitoringSchedule(request);}", "after": "public virtual StopMonitoringScheduleResponse StopMonitoringSchedule(StopMonitoringScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopMonitoringScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = StopMonitoringScheduleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9501, "before": "public int getDbcellAt(int cellnum){return field_5_dbcells.get(cellnum);}", "after": "public int GetDbcellAt(int cellnum){return field_5_dbcells.Get(cellnum);}" }, { "index": 9502, "before": "public final int read(byte[] buffer, int offset, int length) throws IOException {return in.read(buffer, offset, length);}", "after": "public sealed override int read(byte[] buffer, int offset, int length){throw new System.NotImplementedException();}" }, { "index": 9503, "before": "public synchronized String[] getChunks(String[] words, String[] tags, double[] probs) {String[] chunks = chunker.chunk(words, tags);if (probs != null)chunker.probs(probs);return chunks;}", "after": "public virtual string[] GetChunks(string[] words, string[] tags, double[] probs){lock (this){string[] chunks = chunker.chunk(words, tags);if (probs != null)chunker.probs(probs);return chunks;}}" }, { "index": 9504, "before": "public Ref getTarget() {return this;}", "after": "public virtual Ref GetTarget(){return this;}" }, { "index": 9505, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[DEFAULTROWHEIGHT]\\n\");buffer.append(\" .optionflags = \").append(Integer.toHexString(getOptionFlags())).append(\"\\n\");buffer.append(\" .rowheight = \").append(Integer.toHexString(getRowHeight())).append(\"\\n\");buffer.append(\"[/DEFAULTROWHEIGHT]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[DEFAULTROWHEIGHT]\\n\");buffer.Append(\" .optionflags = \").Append(StringUtil.ToHexString(OptionFlags)).Append(\"\\n\");buffer.Append(\" .rowheight = \").Append(StringUtil.ToHexString(RowHeight)).Append(\"\\n\");buffer.Append(\"[/DEFAULTROWHEIGHT]\\n\");return buffer.ToString();}" }, { "index": 9506, "before": "public AlibabaCloudCredentials getCredentials() {return this.credentials;}", "after": "public AlibabaCloudCredentials GetCredentials(){return credentials;}" }, { "index": 9507, "before": "public SeekStatus seekCeil(BytesRef term) {throw new UnsupportedOperationException();}", "after": "public override SeekStatus SeekCeil(BytesRef term){throw new System.NotSupportedException();}" }, { "index": 9508, "before": "public NavigableSet navigableKeySet() {BoundedKeySet result = keySet;return result != null ? result : (keySet = new BoundedKeySet());}", "after": "public java.util.NavigableSet navigableKeySet(){java.util.TreeMap.BoundedMap.BoundedKeySet result = this._keySet;return result != null ? result : (this._keySet = new java.util.TreeMap.BoundedMap.BoundedKeySet(this));}" }, { "index": 9509, "before": "public ListEventsRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"ListEvents\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public ListEventsRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"ListEvents\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 9510, "before": "public String toString(){StringBuilder sb = new StringBuilder();sb.append(\"[LbsDropData]\\n\");sb.append(\" ._wStyle: \").append(_wStyle).append('\\n');sb.append(\" ._cLine: \").append(_cLine).append('\\n');sb.append(\" ._dxMin: \").append(_dxMin).append('\\n');sb.append(\" ._str: \").append(_str).append('\\n');if(_unused != null) {sb.append(\" ._unused: \").append(_unused).append('\\n');}sb.append(\"[/LbsDropData]\\n\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(\"[LbsDropData]\\n\");sb.Append(\" ._wStyle: \").Append(_wStyle).Append('\\n');sb.Append(\" ._cLine: \").Append(_cLine).Append('\\n');sb.Append(\" ._dxMin: \").Append(_dxMin).Append('\\n');sb.Append(\" ._str: \").Append(_str).Append('\\n');sb.Append(\" ._unused: \").Append(_unused).Append('\\n');sb.Append(\"[/LbsDropData]\\n\");return sb.ToString();}" }, { "index": 9511, "before": "public String toString() {return \"PackWriter.State[\" + phase + \", memory=\" + bytesUsed + \"]\";}", "after": "public override string ToString(){return \"PackWriter.State[\" + this.phase + \", memory=\" + this.bytesUsed + \"]\";}" }, { "index": 9512, "before": "public RemoteRefUpdate getRemoteUpdate(String refName) {return remoteUpdates.get(refName);}", "after": "public virtual RemoteRefUpdate GetRemoteUpdate(string refName){return remoteUpdates.Get(refName);}" }, { "index": 9513, "before": "@Override public Iterator iterator() {return listIterator(0);}", "after": "public virtual java.util.Iterator iterator(){object[] snapshot = elements;return new java.util.concurrent.CopyOnWriteArrayList.CowIterator(snapshot, 0,snapshot.Length);}" }, { "index": 9514, "before": "public TerminateInstancesRequest(java.util.List instanceIds) {setInstanceIds(instanceIds);}", "after": "public TerminateInstancesRequest(List instanceIds){_instanceIds = instanceIds;}" }, { "index": 9515, "before": "public CreateDataRepositoryTaskResult createDataRepositoryTask(CreateDataRepositoryTaskRequest request) {request = beforeClientExecution(request);return executeCreateDataRepositoryTask(request);}", "after": "public virtual CreateDataRepositoryTaskResponse CreateDataRepositoryTask(CreateDataRepositoryTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDataRepositoryTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDataRepositoryTaskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9516, "before": "public void undeprecateActivityType(UndeprecateActivityTypeRequest request) {request = beforeClientExecution(request);executeUndeprecateActivityType(request);}", "after": "public virtual UndeprecateActivityTypeResponse UndeprecateActivityType(UndeprecateActivityTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = UndeprecateActivityTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = UndeprecateActivityTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9517, "before": "public EndRecord clone() {return copy();}", "after": "public override Object Clone(){EndRecord er = new EndRecord();return er;}" }, { "index": 9518, "before": "public ListLabelingJobsResult listLabelingJobs(ListLabelingJobsRequest request) {request = beforeClientExecution(request);return executeListLabelingJobs(request);}", "after": "public virtual ListLabelingJobsResponse ListLabelingJobs(ListLabelingJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListLabelingJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListLabelingJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9519, "before": "public void setTag(String shortName) {this.tag = shortName;}", "after": "public virtual void SetTag(string shortName){this.tag = shortName;}" }, { "index": 9520, "before": "public String getNameText(NamePtg namePtg) {return _iBook.getNameRecord(namePtg.getIndex()).getNameText();}", "after": "public String GetNameText(NamePtg namePtg){return _iBook.GetNameRecord(namePtg.Index).NameText;}" }, { "index": 9521, "before": "public Builder() {slop = 0;terms = new ArrayList<>();positions = new ArrayList<>();}", "after": "public Builder(){data = new GrowableByteArrayDataOutput(128);bufferSize = 0;previousDoc = -1;indexInterval = 2;cardinality = 0;numBlocks = 0;}" }, { "index": 9522, "before": "public SpanPositionRangeQuery(SpanQuery match, int start, int end) {super(match);this.start = start;this.end = end;}", "after": "public SpanPositionRangeQuery(SpanQuery match, int start, int end): base(match){this.m_start = start;this.m_end = end;}" }, { "index": 9523, "before": "public CreateDBProxyResult createDBProxy(CreateDBProxyRequest request) {request = beforeClientExecution(request);return executeCreateDBProxy(request);}", "after": "public virtual CreateDBProxyResponse CreateDBProxy(CreateDBProxyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBProxyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBProxyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9524, "before": "public boolean equals( Object o ) {return o instanceof LovinsStemmer;}", "after": "public override bool Equals(object o){return o is LovinsStemmer;}" }, { "index": 9525, "before": "public ReplicationGroup modifyReplicationGroupShardConfiguration(ModifyReplicationGroupShardConfigurationRequest request) {request = beforeClientExecution(request);return executeModifyReplicationGroupShardConfiguration(request);}", "after": "public virtual ModifyReplicationGroupShardConfigurationResponse ModifyReplicationGroupShardConfiguration(ModifyReplicationGroupShardConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyReplicationGroupShardConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyReplicationGroupShardConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9526, "before": "public DeleteFacesResult deleteFaces(DeleteFacesRequest request) {request = beforeClientExecution(request);return executeDeleteFaces(request);}", "after": "public virtual DeleteFacesResponse DeleteFaces(DeleteFacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFacesRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFacesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9527, "before": "public SSTSerializer( IntMapper strings, int numStrings, int numUniqueStrings ){this.strings = strings;_numStrings = numStrings;_numUniqueStrings = numUniqueStrings;int infoRecs = ExtSSTRecord.getNumberOfInfoRecsForStrings(strings.size());this.bucketAbsoluteOffsets = new int[infoRecs];this.bucketRelativeOffsets = new int[infoRecs];}", "after": "public SSTSerializer(IntMapper strings, int numStrings, int numUniqueStrings){this.strings = strings;_numStrings = numStrings;_numUniqueStrings = numUniqueStrings;int infoRecs = ExtSSTRecord.GetNumberOfInfoRecsForStrings(strings.Size);this.bucketAbsoluteOffsets = new int[infoRecs];this.bucketRelativeOffsets = new int[infoRecs];}" }, { "index": 9528, "before": "public URISyntaxException(String input, String reason, int index) {super(reason);if (input == null || reason == null) {throw new NullPointerException();}if (index < -1) {throw new IllegalArgumentException();}this.input = input;this.index = index;}", "after": "public URISyntaxException(string input, string reason, int index) : base(reason){if (input == null || reason == null){throw new System.ArgumentNullException();}if (index < -1){throw new System.ArgumentException();}this.input = input;this.index = index;}" }, { "index": 9529, "before": "public String toString() {return \"AssociationFacetField(dim=\" + dim + \" path=\" + Arrays.toString(path) + \" bytes=\" + assoc + \")\";}", "after": "public override string ToString(){return \"AssociationFacetField(dim=\" + Dim + \" path=\" + Arrays.ToString(Path) + \" bytes=\" + Assoc + \")\";}" }, { "index": 9530, "before": "public boolean requiresCommitBody() {return false;}", "after": "public virtual bool RequiresCommitBody(){return true;}" }, { "index": 9531, "before": "public static AttrPtg getSumSingle() {return new AttrPtg(optiSum.set(0), 0, null, -1);}", "after": "public static AttrPtg GetSumSingle(){return new AttrPtg(optiSum.Set(0), 0, null, -1);}" }, { "index": 9532, "before": "public GetModelsResult getModels(GetModelsRequest request) {request = beforeClientExecution(request);return executeGetModels(request);}", "after": "public virtual GetModelsResponse GetModels(GetModelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetModelsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetModelsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9533, "before": "public Storage getStorage() {return Storage.LOOSE;}", "after": "public virtual RefStorage GetStorage(){return RefStorage.LOOSE;}" }, { "index": 9534, "before": "public ForwardBytesReader(byte[] bytes) {this.bytes = bytes;}", "after": "public ForwardBytesReader(byte[] bytes){this.bytes = bytes;}" }, { "index": 9535, "before": "public long ramBytesUsed() {return fst == null ? 0 : fst.ramBytesUsed();}", "after": "public virtual long RamBytesUsed(){return fst == null ? 0 : fst.GetSizeInBytes();}" }, { "index": 9536, "before": "public ShortBuffer asReadOnlyBuffer() {return ReadOnlyShortArrayBuffer.copy(this, mark);}", "after": "public override java.nio.ShortBuffer asReadOnlyBuffer(){return java.nio.ReadOnlyShortArrayBuffer.copy(this, _mark);}" }, { "index": 9537, "before": "public ListFiltersResult listFilters(ListFiltersRequest request) {request = beforeClientExecution(request);return executeListFilters(request);}", "after": "public virtual ListFiltersResponse ListFilters(ListFiltersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFiltersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFiltersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9538, "before": "public HSSFRichTextString(String string) {if (string == null) {_string = new UnicodeString(\"\");} else {_string = new UnicodeString(string);}}", "after": "public HSSFRichTextString(String str){if (str == null){_string = new UnicodeString(\"\");}else{this._string = new UnicodeString(str);}}" }, { "index": 9539, "before": "public void readBytes(byte[] b, int offset, int len) {System.arraycopy(bytes, pos, b, offset, len);pos += len;}", "after": "public override void ReadBytes(byte[] b, int offset, int len){Buffer.BlockCopy(bytes, pos, b, offset, len);pos += len;}" }, { "index": 9540, "before": "public UpdateDomainNameserversResult updateDomainNameservers(UpdateDomainNameserversRequest request) {request = beforeClientExecution(request);return executeUpdateDomainNameservers(request);}", "after": "public virtual UpdateDomainNameserversResponse UpdateDomainNameservers(UpdateDomainNameserversRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDomainNameserversRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDomainNameserversResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9541, "before": "public ListWorkersWithQualificationTypeResult listWorkersWithQualificationType(ListWorkersWithQualificationTypeRequest request) {request = beforeClientExecution(request);return executeListWorkersWithQualificationType(request);}", "after": "public virtual ListWorkersWithQualificationTypeResponse ListWorkersWithQualificationType(ListWorkersWithQualificationTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListWorkersWithQualificationTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = ListWorkersWithQualificationTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9542, "before": "public ResetCacheParameterGroupRequest(String cacheParameterGroupName, java.util.List parameterNameValues) {setCacheParameterGroupName(cacheParameterGroupName);setParameterNameValues(parameterNameValues);}", "after": "public ResetCacheParameterGroupRequest(string cacheParameterGroupName, List parameterNameValues){_cacheParameterGroupName = cacheParameterGroupName;_parameterNameValues = parameterNameValues;}" }, { "index": 9543, "before": "public EscherPropertyMetaData( String description ){this.description = description;}", "after": "public EscherPropertyMetaData(String description){this.description = description;}" }, { "index": 9544, "before": "public UserInputQueryBuilder(String defaultField, Analyzer analyzer) {this.analyzer = analyzer;this.defaultField = defaultField;}", "after": "public UserInputQueryBuilder(string defaultField, Analyzer analyzer){this.analyzer = analyzer;this.defaultField = defaultField;}" }, { "index": 9545, "before": "public final CharsetDecoder replaceWith(String replacement) {if (replacement == null) {throw new IllegalArgumentException(\"replacement == null\");}if (replacement.isEmpty()) {throw new IllegalArgumentException(\"replacement.isEmpty()\");}if (replacement.length() > maxCharsPerByte()) {throw new IllegalArgumentException(\"replacement length > maxCharsPerByte: \" +replacement.length() + \" > \" + maxCharsPerByte());}replacementChars = replacement;implReplaceWith(replacement);return this;}", "after": "public java.nio.charset.CharsetDecoder replaceWith(string replacement_1){if (replacement_1 == null){throw new System.ArgumentException(\"replacement == null\");}if (string.IsNullOrEmpty(replacement_1)){throw new System.ArgumentException(\"replacement.isEmpty()\");}if (replacement_1.Length > maxCharsPerByte()){throw new System.ArgumentException(\"replacement length > maxCharsPerByte: \" + replacement_1.Length + \" > \" + maxCharsPerByte());}replacementChars = replacement_1;implReplaceWith(replacement_1);return this;}" }, { "index": 9546, "before": "public void reset() throws IOException {throw new IOException();}", "after": "public virtual void reset(){throw new System.IO.IOException();}" }, { "index": 9547, "before": "public UpdateFileSystemResult updateFileSystem(UpdateFileSystemRequest request) {request = beforeClientExecution(request);return executeUpdateFileSystem(request);}", "after": "public virtual UpdateFileSystemResponse UpdateFileSystem(UpdateFileSystemRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFileSystemRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFileSystemResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9548, "before": "public int readUByte(){return _in.readUByte();}", "after": "public int ReadUByte(){return _in.ReadUByte();}" }, { "index": 9549, "before": "public String toString() {return \"[WSBOOL]\\n\" +\" .wsbool1 = \" + Integer.toHexString(getWSBool1()) + \"\\n\" +\" .autobreaks = \" + getAutobreaks() + \"\\n\" +\" .dialog = \" + getDialog() + \"\\n\" +\" .rowsumsbelw= \" + getRowSumsBelow() + \"\\n\" +\" .rowsumsrigt= \" + getRowSumsRight() + \"\\n\" +\" .wsbool2 = \" + Integer.toHexString(getWSBool2()) + \"\\n\" +\" .fittopage = \" + getFitToPage() + \"\\n\" +\" .displayguts= \" + getDisplayGuts() + \"\\n\" +\" .alternateex= \" + getAlternateExpression() + \"\\n\" +\" .alternatefo= \" + getAlternateFormula() + \"\\n\" +\"[/WSBOOL]\\n\";}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[WSBOOL]\\n\");buffer.Append(\" .wsbool1 = \").Append(StringUtil.ToHexString(WSBool1)).Append(\"\\n\");buffer.Append(\" .autobreaks = \").Append(Autobreaks).Append(\"\\n\");buffer.Append(\" .dialog = \").Append(Dialog).Append(\"\\n\");buffer.Append(\" .rowsumsbelw= \").Append(RowSumsBelow).Append(\"\\n\");buffer.Append(\" .rowsumsrigt= \").Append(RowSumsRight).Append(\"\\n\");buffer.Append(\" .wsbool2 = \").Append(StringUtil.ToHexString(WSBool2)).Append(\"\\n\");buffer.Append(\" .fittopage = \").Append(FitToPage).Append(\"\\n\");buffer.Append(\" .Displayguts= \").Append(DisplayGuts).Append(\"\\n\");buffer.Append(\" .alternateex= \").Append(AlternateExpression).Append(\"\\n\");buffer.Append(\" .alternatefo= \").Append(AlternateFormula).Append(\"\\n\");buffer.Append(\"[/WSBOOL]\\n\");return buffer.ToString();}" }, { "index": 9550, "before": "public PutGatewayResponseResult putGatewayResponse(PutGatewayResponseRequest request) {request = beforeClientExecution(request);return executePutGatewayResponse(request);}", "after": "public virtual PutGatewayResponseResponse PutGatewayResponse(PutGatewayResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutGatewayResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = PutGatewayResponseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9551, "before": "public Term[] getStopWords() {List allStopWords = new ArrayList<>();for (Map.Entry> entry : stopWordsPerField.entrySet()) {String field = entry.getKey();Set stopWords = entry.getValue();for (String text : stopWords) {allStopWords.add(new Term(field, text));}}return allStopWords.toArray(new Term[allStopWords.size()]);}", "after": "public Term[] GetStopWords(){IList allStopWords = new List();foreach (string fieldName in stopWordsPerField.Keys){ISet stopWords = stopWordsPerField[fieldName];foreach (string text in stopWords){allStopWords.Add(new Term(fieldName, text));}}return allStopWords.ToArray();}" }, { "index": 9552, "before": "public boolean isUpdate() {return update;}", "after": "public virtual bool IsUpdate(){return update;}" }, { "index": 9553, "before": "public static InternalSheet createSheet(RecordStream rs) {return new InternalSheet(rs);}", "after": "public static InternalSheet CreateSheet(RecordStream rs){return new InternalSheet(rs);}" }, { "index": 9554, "before": "public final IntBuffer get(int[] dst, int dstOffset, int intCount) {if (intCount > remaining()) {throw new BufferUnderflowException();}System.arraycopy(backingArray, offset + position, dst, dstOffset, intCount);position += intCount;return this;}", "after": "public sealed override java.nio.IntBuffer get(int[] dst, int dstOffset, int intCount){if (intCount > remaining()){throw new java.nio.BufferUnderflowException();}System.Array.Copy(backingArray, offset + _position, dst, dstOffset, intCount);_position += intCount;return this;}" }, { "index": 9555, "before": "public DisassociateVpcCidrBlockResult disassociateVpcCidrBlock(DisassociateVpcCidrBlockRequest request) {request = beforeClientExecution(request);return executeDisassociateVpcCidrBlock(request);}", "after": "public virtual DisassociateVpcCidrBlockResponse DisassociateVpcCidrBlock(DisassociateVpcCidrBlockRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateVpcCidrBlockRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateVpcCidrBlockResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9556, "before": "public void add(TaskStats stat2) {numRuns += stat2.getNumRuns();elapsed += stat2.getElapsed();maxTotMem += stat2.getMaxTotMem();maxUsedMem += stat2.getMaxUsedMem();count += stat2.getCount();if (round != stat2.round) {round = -1; }if (countsByTime != null && stat2.countsByTime != null) {if (countsByTimeStepMSec != stat2.countsByTimeStepMSec) {throw new IllegalStateException(\"different by-time msec step\");}if (countsByTime.length != stat2.countsByTime.length) {throw new IllegalStateException(\"different by-time msec count\");}for(int i=0;i(request, options);}" }, { "index": 9558, "before": "public void print(char c) {print(String.valueOf(c));}", "after": "public virtual void print(char c){print(c.ToString());}" }, { "index": 9559, "before": "public StepConfig(String name, HadoopJarStepConfig hadoopJarStep) {setName(name);setHadoopJarStep(hadoopJarStep);}", "after": "public StepConfig(string name, HadoopJarStepConfig hadoopJarStep){_name = name;_hadoopJarStep = hadoopJarStep;}" }, { "index": 9560, "before": "public GetIdentityPoliciesResult getIdentityPolicies(GetIdentityPoliciesRequest request) {request = beforeClientExecution(request);return executeGetIdentityPolicies(request);}", "after": "public virtual GetIdentityPoliciesResponse GetIdentityPolicies(GetIdentityPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdentityPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdentityPoliciesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9561, "before": "public ListAccountsResult listAccounts(ListAccountsRequest request) {request = beforeClientExecution(request);return executeListAccounts(request);}", "after": "public virtual ListAccountsResponse ListAccounts(ListAccountsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAccountsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAccountsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9562, "before": "public int getCompressionLevel() {return compressionLevel;}", "after": "public virtual int GetCompressionLevel(){return compressionLevel;}" }, { "index": 9563, "before": "public synchronized StringBuffer append(CharSequence s) {if (s == null) {appendNull();} else {append0(s, 0, s.length());}return this;}", "after": "public java.lang.StringBuffer append(char[] chars){lock (this){append0(chars);return this;}}" }, { "index": 9564, "before": "@Override public String toString() {return key + \"=\" + value;}", "after": "public override string ToString(){return key + \"=\" + value;}" }, { "index": 9565, "before": "public long skip(long byteCount) throws IOException {if (byteCount < 0) {throw new IllegalArgumentException(\"byteCount < 0: \" + byteCount);}synchronized (lock) {checkNotClosed();if (byteCount < 1) {return 0;}if (end - pos >= byteCount) {pos += byteCount;return byteCount;}long read = end - pos;pos = end;while (read < byteCount) {if (fillBuf() == -1) {return read;}if (end - pos >= byteCount - read) {pos += byteCount - read;return byteCount;}read += (end - pos);pos = end;}return byteCount;}}", "after": "public override long skip(long byteCount){if (byteCount < 0){throw new System.ArgumentException(\"byteCount < 0: \" + byteCount);}lock (@lock){checkNotClosed();if (byteCount < 1){return 0;}if (end - pos >= byteCount){pos += (int)(byteCount);return byteCount;}long read_1 = end - pos;pos = end;while (read_1 < byteCount){if (fillBuf() == -1){return read_1;}if (end - pos >= byteCount - read_1){pos += (int)(byteCount - read_1);return byteCount;}read_1 += (end - pos);pos = end;}return byteCount;}}" }, { "index": 9566, "before": "public void updateFormulasAfterRowShift(FormulaShifter formulaShifter, int currentExternSheetIndex) {_valuesAgg.updateFormulasAfterRowShift(formulaShifter, currentExternSheetIndex);}", "after": "public void UpdateFormulasAfterRowShift(FormulaShifter formulaShifter, int currentExternSheetIndex){_valuesAgg.UpdateFormulasAfterRowShift(formulaShifter, currentExternSheetIndex);}" }, { "index": 9567, "before": "public void close() {synchronized (lock) {if (isOpen()) {buf = null;}}}", "after": "public override void close(){lock (@lock){if (isOpen()){buf = null;}}}" }, { "index": 9568, "before": "public void seek(long pos) {this.pos = (int) (pos - pointer);}", "after": "public override void Seek(long pos){this.pos = (int)(pos - pointer);}" }, { "index": 9569, "before": "public String toFormulaString() {StringBuilder sb = new StringBuilder(64);boolean needsExclamation = false;if (externalWorkbookNumber >= 0) {sb.append('[');sb.append(externalWorkbookNumber);sb.append(']');needsExclamation = true;}if (sheetName != null) {SheetNameFormatter.appendFormat(sb, sheetName);needsExclamation = true;}if (needsExclamation) {sb.append('!');}sb.append(nameName);return sb.toString();}", "after": "public override String ToFormulaString(){StringBuilder sb = new StringBuilder();bool needsExclamation = false;if (externalWorkbookNumber >= 0){sb.Append('[');sb.Append(externalWorkbookNumber);sb.Append(']');needsExclamation = true;}if (sheetName != null){SheetNameFormatter.AppendFormat(sb, sheetName);needsExclamation = true;}if (needsExclamation){sb.Append('!');}sb.Append(nameName);return sb.ToString();}" }, { "index": 9570, "before": "public boolean isFinished() {return mState == STATE_IDLE;}", "after": "public virtual bool isFinished(){return mState == STATE_IDLE;}" }, { "index": 9571, "before": "public static Transport open(Repository local, URIish uri, String remoteName)throws NotSupportedException, TransportException {for (WeakReference ref : protocols) {TransportProtocol proto = ref.get();if (proto == null) {protocols.remove(ref);continue;}if (proto.canHandle(uri, local, remoteName)) {Transport tn = proto.open(uri, local, remoteName);tn.prePush = Hooks.prePush(local, tn.hookOutRedirect);tn.prePush.setRemoteLocation(uri.toString());tn.prePush.setRemoteName(remoteName);return tn;}}throw new NotSupportedException(MessageFormat.format(JGitText.get().URINotSupported, uri));}", "after": "public static NGit.Transport.Transport Open(Repository local, URIish uri, stringremoteName){foreach (JavaWeakReference @ref in protocols){TransportProtocol proto = @ref.Get();if (proto == null){protocols.Remove(@ref);continue;}if (proto.CanHandle(uri, local, remoteName)){return proto.Open(uri, local, remoteName);}}throw new NGit.Errors.NotSupportedException(MessageFormat.Format(JGitText.Get().URINotSupported, uri));}" }, { "index": 9572, "before": "public void setColor(Color color){foreground = color;}", "after": "public void SetColor(Color color){foreground = color;}" }, { "index": 9573, "before": "public DeleteAliasResult deleteAlias(DeleteAliasRequest request) {request = beforeClientExecution(request);return executeDeleteAlias(request);}", "after": "public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAliasResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9574, "before": "public SeekStatus seekCeil(BytesRef text) {termUpto = binarySearch(text, br, 0, info.terms.size()-1, info.terms, info.sortedTerms);if (termUpto < 0) { termUpto = -termUpto-1;if (termUpto >= info.terms.size()) {return SeekStatus.END;} else {info.terms.get(info.sortedTerms[termUpto], br);return SeekStatus.NOT_FOUND;}} else {return SeekStatus.FOUND;}}", "after": "public override SeekStatus SeekCeil(BytesRef text){termUpto = BinarySearch(text, br, 0, info.terms.Count - 1, info.terms, info.sortedTerms, BytesRef.UTF8SortedAsUnicodeComparer);if (termUpto < 0) {termUpto = -termUpto - 1;if (termUpto >= info.terms.Count){return SeekStatus.END;}else{info.terms.Get(info.sortedTerms[termUpto], br);return SeekStatus.NOT_FOUND;}}else{return SeekStatus.FOUND;}}" }, { "index": 9575, "before": "public CreateApplicationVersionRequest(String applicationName, String versionLabel) {setApplicationName(applicationName);setVersionLabel(versionLabel);}", "after": "public CreateApplicationVersionRequest(string applicationName, string versionLabel){_applicationName = applicationName;_versionLabel = versionLabel;}" }, { "index": 9576, "before": "public String toString() {return ruleName + \":\" + bypassTokenType;}", "after": "public override string ToString(){return ruleName + \":\" + bypassTokenType;}" }, { "index": 9577, "before": "public int indexOf(Object object) {Object[] snapshot = elements;return indexOf(object, snapshot, 0, snapshot.length);}", "after": "public virtual int indexOf(object @object){object[] snapshot = elements;return indexOf(@object, snapshot, 0, snapshot.Length);}" }, { "index": 9578, "before": "public int compareTo(ShortBuffer otherBuffer) {int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining(): otherBuffer.remaining();int thisPos = position;int otherPos = otherBuffer.position;short thisByte, otherByte;while (compareRemaining > 0) {thisByte = get(thisPos);otherByte = otherBuffer.get(otherPos);if (thisByte != otherByte) {return thisByte < otherByte ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}", "after": "public virtual int compareTo(java.nio.ShortBuffer otherBuffer){int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining();int thisPos = _position;int otherPos = otherBuffer._position;short thisByte;short otherByte;while (compareRemaining > 0){thisByte = get(thisPos);otherByte = otherBuffer.get(otherPos);if (thisByte != otherByte){return thisByte < otherByte ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}" }, { "index": 9579, "before": "public DescribeSecurityConfigurationResult describeSecurityConfiguration(DescribeSecurityConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeSecurityConfiguration(request);}", "after": "public virtual DescribeSecurityConfigurationResponse DescribeSecurityConfiguration(DescribeSecurityConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSecurityConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSecurityConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9580, "before": "public void add(int location, E object) {insertElementAt(object, location);}", "after": "public override void add(int location, E @object){insertElementAt(@object, location);}" }, { "index": 9581, "before": "public GetDownloadUrlForLayerResult getDownloadUrlForLayer(GetDownloadUrlForLayerRequest request) {request = beforeClientExecution(request);return executeGetDownloadUrlForLayer(request);}", "after": "public virtual GetDownloadUrlForLayerResponse GetDownloadUrlForLayer(GetDownloadUrlForLayerRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDownloadUrlForLayerRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDownloadUrlForLayerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9582, "before": "public StringWriter append(CharSequence csq) {if (csq == null) {csq = \"null\";}write(csq.toString());return this;}", "after": "public override java.io.Writer append(java.lang.CharSequence csq){if (csq == null){csq = java.lang.CharSequenceProxy.Wrap(\"null\");}write(csq.ToString());return this;}" }, { "index": 9583, "before": "public RevWalk getRevWalk() {return walker;}", "after": "public virtual RevWalk GetRevWalk(){return walker;}" }, { "index": 9584, "before": "@Override public int lastIndexOf(Object object) {Slice slice = this.slice;Object[] snapshot = elements;slice.checkConcurrentModification(snapshot);int result = CopyOnWriteArrayList.lastIndexOf(object, snapshot, slice.from, slice.to);return (result != -1) ? (result - slice.from) : -1;}", "after": "public virtual int lastIndexOf(object @object){object[] snapshot = elements;return lastIndexOf(@object, snapshot, 0, snapshot.Length);}" }, { "index": 9585, "before": "public IntBuffer put(int index, int c) {checkIndex(index);backingArray[offset + index] = c;return this;}", "after": "public override java.nio.IntBuffer put(int index, int c){checkIndex(index);backingArray[offset + index] = c;return this;}" }, { "index": 9586, "before": "public HSSFTextbox(HSSFShape parent, HSSFAnchor anchor) {super(parent, anchor);setHorizontalAlignment(HORIZONTAL_ALIGNMENT_LEFT);setVerticalAlignment(VERTICAL_ALIGNMENT_TOP);setString(new HSSFRichTextString(\"\"));}", "after": "public HSSFTextbox(HSSFShape parent, HSSFAnchor anchor): base(parent, anchor){HorizontalAlignment = HorizontalTextAlignment.Left;VerticalAlignment = VerticalTextAlignment.Top;this.String = (new HSSFRichTextString(\"\"));}" }, { "index": 9587, "before": "public GetRegionRequest() {super(\"cr\", \"2016-06-07\", \"GetRegion\", \"cr\");setUriPattern(\"/regions\");setMethod(MethodType.GET);}", "after": "public GetRegionRequest(): base(\"cr\", \"2016-06-07\", \"GetRegion\", \"cr\", \"openAPI\"){UriPattern = \"/regions\";Method = MethodType.GET;}" }, { "index": 9588, "before": "public ListObjectChildrenResult listObjectChildren(ListObjectChildrenRequest request) {request = beforeClientExecution(request);return executeListObjectChildren(request);}", "after": "public virtual ListObjectChildrenResponse ListObjectChildren(ListObjectChildrenRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListObjectChildrenRequestMarshaller.Instance;options.ResponseUnmarshaller = ListObjectChildrenResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9589, "before": "public GetIdResult getId(GetIdRequest request) {request = beforeClientExecution(request);return executeGetId(request);}", "after": "public virtual GetIdResponse GetId(GetIdRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9590, "before": "public String getPassphrase() {return passphrase;}", "after": "public virtual string GetPassphrase(){return passphrase;}" }, { "index": 9591, "before": "public Map getAllRefs() {try {return getRefDatabase().getRefs(RefDatabase.ALL);} catch (IOException e) {throw new UncheckedIOException(e);}}", "after": "public virtual IDictionary GetAllRefs(){try{return RefDatabase.GetRefs(NGit.RefDatabase.ALL);}catch (IOException){return new Dictionary();}}" }, { "index": 9592, "before": "public boolean hasMoreElements() { return hasNext(); }", "after": "public bool hasMoreElements(){return this.hasNext();}" }, { "index": 9593, "before": "public int numDataNodes() {return numDataNodes(rootNode);}", "after": "public virtual int NumDataNodes(){return NumDataNodes(rootNode);}" }, { "index": 9594, "before": "public HadoopJarStepConfig toHadoopJarStepConfig() {List args = new ArrayList();if (reducer == null) {hadoopConfig.put(\"mapred.reduce.tasks\", \"0\");}for (Map.Entry entry : hadoopConfig.entrySet()) {args.add(\"-D\");args.add(entry.getKey() + \"=\" + entry.getValue());}for (String input : inputs) {args.add(\"-input\");args.add(input);}if (output != null) {args.add(\"-output\");args.add(output);}if (mapper != null) {args.add(\"-mapper\");args.add(mapper);}if (reducer != null) {args.add(\"-reducer\");args.add(reducer);}return new HadoopJarStepConfig().withJar(\"/home/hadoop/contrib/streaming/hadoop-streaming.jar\").withArgs(args);}", "after": "public HadoopJarStepConfig ToHadoopJarStepConfig() {List args = new List();if (reducer == null) {hadoopConfig.Add(\"mapred.reduce.tasks\", \"0\");}foreach (KeyValuePair entry in hadoopConfig){args.Add(\"-D\");args.Add(string.Format(CultureInfo.InvariantCulture, \"{0} = {1}\", entry.Key, entry.Value));}foreach (string input in inputs) {args.Add(\"-input\");args.Add(input);}if (output != null) {args.Add(\"-output\");args.Add(output);}if (mapper != null) {args.Add(\"-mapper\");args.Add(mapper);}if (reducer != null) {args.Add(\"-reducer\");args.Add(reducer);}return new HadoopJarStepConfig{Jar = \"/home/hadoop/contrib/streaming/hadoop-streaming.jar\",Args = args};}" }, { "index": 9595, "before": "public GetRelationalDatabaseEventsResult getRelationalDatabaseEvents(GetRelationalDatabaseEventsRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseEvents(request);}", "after": "public virtual GetRelationalDatabaseEventsResponse GetRelationalDatabaseEvents(GetRelationalDatabaseEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseEventsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9596, "before": "public void drawLine(int x1, int y1, int x2, int y2){drawLine(x1,y1,x2,y2,0);}", "after": "public void DrawLine(int x1, int y1, int x2, int y2){DrawLine(x1, y1, x2, y2, 0);}" }, { "index": 9597, "before": "public UpdateUserSecurityProfilesResult updateUserSecurityProfiles(UpdateUserSecurityProfilesRequest request) {request = beforeClientExecution(request);return executeUpdateUserSecurityProfiles(request);}", "after": "public virtual UpdateUserSecurityProfilesResponse UpdateUserSecurityProfiles(UpdateUserSecurityProfilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateUserSecurityProfilesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateUserSecurityProfilesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9598, "before": "public String toString() {return \"Action: \" + this.action;}", "after": "public override string ToString(){return \"Action: \" + this.action;}" }, { "index": 9599, "before": "public CreateVolumeRequest(Integer size, String availabilityZone) {setSize(size);setAvailabilityZone(availabilityZone);}", "after": "public CreateVolumeRequest(string availabilityZone, int size){_availabilityZone = availabilityZone;_size = size;}" }, { "index": 9600, "before": "public final void setPrecedenceStartState(int precedence, DFAState startState) {if (!isPrecedenceDfa()) {throw new IllegalStateException(\"Only precedence DFAs may contain a precedence start state.\");}if (precedence < 0) {return;}synchronized (s0) {if (precedence >= s0.edges.length) {s0.edges = Arrays.copyOf(s0.edges, precedence + 1);}s0.edges[precedence] = startState;}}", "after": "public void SetPrecedenceStartState(int precedence, DFAState startState){if (!IsPrecedenceDfa){throw new Exception(\"Only precedence DFAs may contain a precedence start state.\");}if (precedence < 0){return;}lock (s0){if (precedence >= s0.edges.Length){s0.edges = Arrays.CopyOf(s0.edges, precedence + 1);}s0.edges[precedence] = startState;}}" }, { "index": 9601, "before": "public EditPhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"EditPhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public EditPhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"EditPhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 9602, "before": "public Builder() {PositiveIntOutputs outputs = PositiveIntOutputs.getSingleton();fstCompiler = new FSTCompiler<>(FST.INPUT_TYPE.BYTE1, outputs);scratchInts = new IntsRefBuilder();}", "after": "public Builder(){data = new GrowableByteArrayDataOutput(128);bufferSize = 0;previousDoc = -1;indexInterval = 2;cardinality = 0;numBlocks = 0;}" }, { "index": 9603, "before": "public DeleteFlowDefinitionResult deleteFlowDefinition(DeleteFlowDefinitionRequest request) {request = beforeClientExecution(request);return executeDeleteFlowDefinition(request);}", "after": "public virtual DeleteFlowDefinitionResponse DeleteFlowDefinition(DeleteFlowDefinitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFlowDefinitionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFlowDefinitionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9604, "before": "public void setLastFailedRefreshTime() {lastFailedRefreshTime = System.currentTimeMillis();}", "after": "public void SetLastFailedRefreshTime(){lastFailedRefreshTime = DateTime.UtcNow.Ticks;}" }, { "index": 9605, "before": "public ModifyDBInstanceRequest(String dBInstanceIdentifier) {setDBInstanceIdentifier(dBInstanceIdentifier);}", "after": "public ModifyDBInstanceRequest(string dbInstanceIdentifier){_dbInstanceIdentifier = dbInstanceIdentifier;}" }, { "index": 9606, "before": "public GetTemplateSummaryResult getTemplateSummary(GetTemplateSummaryRequest request) {request = beforeClientExecution(request);return executeGetTemplateSummary(request);}", "after": "public virtual GetTemplateSummaryResponse GetTemplateSummary(GetTemplateSummaryRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTemplateSummaryRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTemplateSummaryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9607, "before": "public Snapshot revokeSnapshotAccess(RevokeSnapshotAccessRequest request) {request = beforeClientExecution(request);return executeRevokeSnapshotAccess(request);}", "after": "public virtual RevokeSnapshotAccessResponse RevokeSnapshotAccess(RevokeSnapshotAccessRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeSnapshotAccessRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeSnapshotAccessResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9608, "before": "public void serialize(final LittleEndianOutput out) {final int field_4_name_length = field_6_name_text.length();final int field_5_comment_length = field_7_comment_text.length();out.writeShort(field_1_record_type);out.writeShort(field_2_frt_cell_ref_flag);out.writeLong(field_3_reserved);out.writeShort(field_4_name_length);out.writeShort(field_5_comment_length);boolean isNameMultiByte = StringUtil.hasMultibyte(field_6_name_text);out.writeByte(isNameMultiByte ? 1 : 0);if (isNameMultiByte) {StringUtil.putUnicodeLE(field_6_name_text, out);} else {StringUtil.putCompressedUnicode(field_6_name_text, out);}boolean isCommentMultiByte = StringUtil.hasMultibyte(field_7_comment_text);out.writeByte(isCommentMultiByte ? 1 : 0);if (isCommentMultiByte) {StringUtil.putUnicodeLE(field_7_comment_text, out);} else {StringUtil.putCompressedUnicode(field_7_comment_text, out);}}", "after": "public override void Serialize(ILittleEndianOutput out1){int field_4_name_length = field_6_name_text.Length;int field_5_comment_length = field_7_comment_text.Length;out1.WriteShort(field_1_record_type);out1.WriteShort(field_2_frt_cell_ref_flag);out1.WriteLong(field_3_reserved);out1.WriteShort(field_4_name_length);out1.WriteShort(field_5_comment_length);out1.WriteByte(0);StringUtil.PutCompressedUnicode(field_6_name_text,out1);out1.WriteByte(0);StringUtil.PutCompressedUnicode(field_7_comment_text, out1);}" }, { "index": 9609, "before": "public StartProjectVersionResult startProjectVersion(StartProjectVersionRequest request) {request = beforeClientExecution(request);return executeStartProjectVersion(request);}", "after": "public virtual StartProjectVersionResponse StartProjectVersion(StartProjectVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartProjectVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartProjectVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9610, "before": "public MoPenDeleteGroupMemberRequest() {super(\"MoPen\", \"2018-02-11\", \"MoPenDeleteGroupMember\", \"mopen\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public MoPenDeleteGroupMemberRequest(): base(\"MoPen\", \"2018-02-11\", \"MoPenDeleteGroupMember\", \"mopen\", \"openAPI\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 9611, "before": "public synchronized int getMax() {return mMax;}", "after": "public virtual int getMax(){lock (this){return mMax;}}" }, { "index": 9612, "before": "public DiffCommand setSourcePrefix(String sourcePrefix) {this.sourcePrefix = sourcePrefix;return this;}", "after": "public virtual NGit.Api.DiffCommand SetSourcePrefix(string sourcePrefix){this.sourcePrefix = sourcePrefix;return this;}" }, { "index": 9613, "before": "public CreateFlowLogsResult createFlowLogs(CreateFlowLogsRequest request) {request = beforeClientExecution(request);return executeCreateFlowLogs(request);}", "after": "public virtual CreateFlowLogsResponse CreateFlowLogs(CreateFlowLogsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFlowLogsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFlowLogsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9614, "before": "public void writeString(String text, int numberOfRichTextRuns, int extendedDataSize) {boolean is16bitEncoded = StringUtil.hasMultibyte(text);int keepTogetherSize = 2 + 1 + 1; int optionFlags = 0x00;if (is16bitEncoded) {optionFlags |= 0x01;keepTogetherSize += 1; }if (numberOfRichTextRuns > 0) {optionFlags |= 0x08;keepTogetherSize += 2;}if (extendedDataSize > 0) {optionFlags |= 0x04;keepTogetherSize += 4;}writeContinueIfRequired(keepTogetherSize);writeShort(text.length());writeByte(optionFlags);if (numberOfRichTextRuns > 0) {writeShort(numberOfRichTextRuns);}if (extendedDataSize > 0) {writeInt(extendedDataSize);}writeCharacterData(text, is16bitEncoded);}", "after": "public void WriteString(String text, int numberOfRichTextRuns, int extendedDataSize){bool is16bitEncoded = StringUtil.HasMultibyte(text);int keepTogetherSize = 2 + 1 + 1; int optionFlags = 0x00;if (is16bitEncoded){optionFlags |= 0x01;keepTogetherSize += 1; }if (numberOfRichTextRuns > 0){optionFlags |= 0x08;keepTogetherSize += 2;}if (extendedDataSize > 0){optionFlags |= 0x04;keepTogetherSize += 4;}WriteContinueIfRequired(keepTogetherSize);WriteShort(text.Length);WriteByte(optionFlags);if (numberOfRichTextRuns > 0){WriteShort(numberOfRichTextRuns);}if (extendedDataSize > 0){WriteInt(extendedDataSize);}WriteCharacterData(text, is16bitEncoded);}" }, { "index": 9615, "before": "public String toFormulaString(String[] operands) {StringBuilder buf = new StringBuilder();if(isExternalFunction()) {buf.append(operands[0]); appendArgs(buf, 1, operands);} else {buf.append(getName());appendArgs(buf, 0, operands);}return buf.toString();}", "after": "public override String ToFormulaString(String[] operands){StringBuilder buf = new StringBuilder();if (IsExternalFunction){buf.Append(operands[0]); AppendArgs(buf, 1, operands);}else{buf.Append(Name);AppendArgs(buf, 0, operands);}return buf.ToString();}" }, { "index": 9616, "before": "public DetectStackDriftResult detectStackDrift(DetectStackDriftRequest request) {request = beforeClientExecution(request);return executeDetectStackDrift(request);}", "after": "public virtual DetectStackDriftResponse DetectStackDrift(DetectStackDriftRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectStackDriftRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectStackDriftResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9617, "before": "public ObjectId idFor(TreeFormatter formatter) {return delegate().idFor(formatter);}", "after": "public override ObjectId IdFor(TreeFormatter formatter){return Delegate().IdFor(formatter);}" }, { "index": 9618, "before": "public CharSequence toQueryString(EscapeQuerySyntax escaper) {if (isDefaultField(this.field)) {return getTermEscaped(escaper);} else {return this.field + \":\" + getTermEscaped(escaper);}}", "after": "public override string ToQueryString(IEscapeQuerySyntax escaper){if (IsDefaultField(this.m_field)){return GetTermEscaped(escaper);}else{return this.m_field + \":\" + GetTermEscaped(escaper);}}" }, { "index": 9619, "before": "public RenderUiTemplateResult renderUiTemplate(RenderUiTemplateRequest request) {request = beforeClientExecution(request);return executeRenderUiTemplate(request);}", "after": "public virtual RenderUiTemplateResponse RenderUiTemplate(RenderUiTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = RenderUiTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = RenderUiTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9620, "before": "public final LongBuffer asLongBuffer() {return LongToByteBufferAdapter.asLongBuffer(this);}", "after": "public sealed override java.nio.LongBuffer asLongBuffer(){return java.nio.LongToByteBufferAdapter.asLongBuffer(this);}" }, { "index": 9621, "before": "public DescribeLimitsResult describeLimits(DescribeLimitsRequest request) {request = beforeClientExecution(request);return executeDescribeLimits(request);}", "after": "public virtual DescribeLimitsResponse DescribeLimits(DescribeLimitsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLimitsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLimitsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9622, "before": "public DescribeAssessmentTargetsResult describeAssessmentTargets(DescribeAssessmentTargetsRequest request) {request = beforeClientExecution(request);return executeDescribeAssessmentTargets(request);}", "after": "public virtual DescribeAssessmentTargetsResponse DescribeAssessmentTargets(DescribeAssessmentTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAssessmentTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAssessmentTargetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9623, "before": "public DeleteClientVpnRouteResult deleteClientVpnRoute(DeleteClientVpnRouteRequest request) {request = beforeClientExecution(request);return executeDeleteClientVpnRoute(request);}", "after": "public virtual DeleteClientVpnRouteResponse DeleteClientVpnRoute(DeleteClientVpnRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteClientVpnRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteClientVpnRouteResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9624, "before": "public RebaseCommand setUpstream(AnyObjectId upstream) {try {this.upstreamCommit = walk.parseCommit(upstream);this.upstreamCommitName = upstream.name();} catch (IOException e) {throw new JGitInternalException(MessageFormat.format(JGitText.get().couldNotReadObjectWhileParsingCommit,upstream.name()), e);}return this;}", "after": "public virtual NGit.Api.RebaseCommand SetUpstream(AnyObjectId upstream){try{this.upstreamCommit = walk.ParseCommit(upstream);this.upstreamCommitName = upstream.Name;}catch (IOException e){throw new JGitInternalException(MessageFormat.Format(JGitText.Get().couldNotReadObjectWhileParsingCommit, upstream.Name), e);}return this;}" }, { "index": 9625, "before": "public Collection getChildren() {return Collections.singleton(new ChildScorable(in, \"CACHED\"));}", "after": "public override ICollection GetChildren(){return new[] { new ChildScorer(scorer, \"CACHED\") };}" }, { "index": 9626, "before": "public synchronized String substring(int start) {return super.substring(start);}", "after": "public override string substring(int start){lock (this){return base.substring(start);}}" }, { "index": 9627, "before": "public static double sum(double[] values) {double sum = 0;for (double value : values) {sum += value;}return sum;}", "after": "public static double Sum(double[] values){double sum = 0;for (int i = 0, iSize = values.Length; i < iSize; i++){sum += values[i];}return sum;}" }, { "index": 9628, "before": "public static BlankRecord[] convertBlankRecords(MulBlankRecord mbk) {BlankRecord[] mulRecs = new BlankRecord[mbk.getNumColumns()];for (int k = 0; k < mbk.getNumColumns(); k++) {BlankRecord br = new BlankRecord();br.setColumn((short) (k + mbk.getFirstColumn()));br.setRow(mbk.getRow());br.setXFIndex(mbk.getXFAt(k));mulRecs[k] = br;}return mulRecs;}", "after": "public static BlankRecord[] ConvertBlankRecords(MulBlankRecord mbk){BlankRecord[] mulRecs = new BlankRecord[mbk.NumColumns];for (int k = 0; k < mbk.NumColumns; k++){BlankRecord br = new BlankRecord();br.Column = k + mbk.FirstColumn;br.Row = mbk.Row;br.XFIndex = mbk.GetXFAt(k);mulRecs[k] = br;}return mulRecs;}" }, { "index": 9629, "before": "public DeregisterDBProxyTargetsResult deregisterDBProxyTargets(DeregisterDBProxyTargetsRequest request) {request = beforeClientExecution(request);return executeDeregisterDBProxyTargets(request);}", "after": "public virtual DeregisterDBProxyTargetsResponse DeregisterDBProxyTargets(DeregisterDBProxyTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterDBProxyTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterDBProxyTargetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9630, "before": "public SummaryInformation(final PropertySet ps) throws UnexpectedPropertySetTypeException {super(ps);if (!isSummaryInformation()) {throw new UnexpectedPropertySetTypeException(\"Not a \" + getClass().getName());}}", "after": "public SummaryInformation(PropertySet ps): base(ps){if (!IsSummaryInformation)throw new UnexpectedPropertySetTypeException(\"Not a \"+ GetType().Name);}" }, { "index": 9631, "before": "public void setCredentialsProvider(AlibabaCloudCredentialsProvider credentialsProvider) {if (credential != null) {return;}credential = new CredentialsBackupCompatibilityAdaptor(credentialsProvider);}", "after": "public void SetCredentialsProvider(AlibabaCloudCredentialsProvider credentialsProvider){if (_credential != null){return;}_credential = new CredentialsBackupCompatibilityAdaptor(credentialsProvider);}" }, { "index": 9632, "before": "public CharArrayReader(char[] buf, int offset, int length) {if (offset < 0 || offset > buf.length || length < 0 || offset + length < 0) {throw new IllegalArgumentException();}this.buf = buf;this.pos = offset;this.markedPos = offset;int bufferLength = buf.length;this.count = offset + length < bufferLength ? length : bufferLength;}", "after": "public CharArrayReader(char[] buf, int offset, int length){if (offset < 0 || offset > buf.Length || length < 0 || offset + length < 0){throw new System.ArgumentException();}this.buf = buf;this.pos = offset;this.markedPos = offset;int bufferLength = buf.Length;this.count = offset + length < bufferLength ? length : bufferLength;}" }, { "index": 9633, "before": "public Object getProperty(final long id) {wasNull = !properties.containsKey(id);return (wasNull) ? null : properties.get(id).getValue();}", "after": "public virtual Object GetProperty(long id){wasNull = false;for (int i = 0; i < properties.Length; i++)if (id == properties[i].ID)return properties[i].Value;wasNull = true;return null;}" }, { "index": 9634, "before": "public BufferedOutputStream(OutputStream out, int size) {super(out);if (size <= 0) {throw new IllegalArgumentException(\"size <= 0\");}buf = new byte[size];}", "after": "public BufferedOutputStream(java.io.OutputStream @out, int size) : base(@out){if (size <= 0){throw new System.ArgumentException(\"size <= 0\");}buf = new byte[size];}" }, { "index": 9635, "before": "public AuthorizeDBSecurityGroupIngressRequest(String dBSecurityGroupName) {setDBSecurityGroupName(dBSecurityGroupName);}", "after": "public AuthorizeDBSecurityGroupIngressRequest(string dbSecurityGroupName){_dbSecurityGroupName = dbSecurityGroupName;}" }, { "index": 9636, "before": "public ArrayDataSource(T[] elements) {this.elements = elements.clone();}", "after": "public ArrayDataSource(T[] elements) {this.elements = elements;}" }, { "index": 9637, "before": "public CreateDeploymentResult createDeployment(CreateDeploymentRequest request) {request = beforeClientExecution(request);return executeCreateDeployment(request);}", "after": "public virtual CreateDeploymentResponse CreateDeployment(CreateDeploymentRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDeploymentRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDeploymentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9638, "before": "public final int getInt() {int newPosition = position + SizeOf.INT;if (newPosition > limit) {throw new BufferUnderflowException();}int result = Memory.peekInt(backingArray, offset + position, order);position = newPosition;return result;}", "after": "public sealed override int getInt(){int newPosition = _position + libcore.io.SizeOf.INT;if (newPosition > _limit){throw new java.nio.BufferUnderflowException();}int result = libcore.io.Memory.peekInt(backingArray, offset + _position, _order);_position = newPosition;return result;}" }, { "index": 9639, "before": "public DeleteTransitGatewayRouteResult deleteTransitGatewayRoute(DeleteTransitGatewayRouteRequest request) {request = beforeClientExecution(request);return executeDeleteTransitGatewayRoute(request);}", "after": "public virtual DeleteTransitGatewayRouteResponse DeleteTransitGatewayRoute(DeleteTransitGatewayRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTransitGatewayRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTransitGatewayRouteResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9640, "before": "public ListMultipartUploadsRequest(String bucketName) {this.bucketName = bucketName;}", "after": "public ListMultipartUploadsRequest(string vaultName){_vaultName = vaultName;}" }, { "index": 9641, "before": "public float score(float freq, long norm) {return (float) SimilarityBase.this.score(stats, freq, getLengthValue(norm));}", "after": "public override float Score(int doc, float freq){return outerInstance.Score(stats, freq, norms == null ? 1F : outerInstance.DecodeNormValue((byte)norms.Get(doc)));}" }, { "index": 9642, "before": "public char next() {if (offset >= (end - 1)) {offset = end;return DONE;}return string.charAt(++offset);}", "after": "public char next(){if (offset >= (end - 1)){offset = end;return java.text.CharacterIteratorClass.DONE;}return @string[++offset];}" }, { "index": 9643, "before": "public CherryPickResult(RevCommit newHead, List cherryPickedRefs) {this.status = CherryPickStatus.OK;this.newHead = newHead;this.cherryPickedRefs = cherryPickedRefs;this.failingPaths = null;}", "after": "public CherryPickResult(RevCommit newHead, IList cherryPickedRefs){this.status = CherryPickResult.CherryPickStatus.OK;this.newHead = newHead;this.cherryPickedRefs = cherryPickedRefs;this.failingPaths = null;}" }, { "index": 9644, "before": "public static Token newToken(int ofKind){return newToken(ofKind, null);}", "after": "public static Token NewToken(int ofKind){return NewToken(ofKind, null);}" }, { "index": 9645, "before": "public HSSFClientAnchor getPreferredSize(double scale){return getPreferredSize(scale, scale);}", "after": "public IClientAnchor GetPreferredSize(double scale){return GetPreferredSize(scale, scale);}" }, { "index": 9646, "before": "public UpdateInstanceRequest() {super(\"Ots\", \"2016-06-20\", \"UpdateInstance\", \"ots\");setMethod(MethodType.POST);}", "after": "public UpdateInstanceRequest(): base(\"Ots\", \"2016-06-20\", \"UpdateInstance\", \"ots\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 9647, "before": "public ByteBuffer putInt(int index, int value) {checkIndex(index, SizeOf.INT);Memory.pokeInt(backingArray, offset + index, value, order);return this;}", "after": "public override java.nio.ByteBuffer putInt(int index, int value){checkIndex(index, libcore.io.SizeOf.INT);libcore.io.Memory.pokeInt(backingArray, offset + index, value, _order);return this;}" }, { "index": 9648, "before": "public byte[] serialize() {int size = getDataSize() + 4;ByteArrayOutputStream baos = new ByteArrayOutputStream(size);serialize(new LittleEndianOutputStream(baos));if (baos.size() != size) {throw new RuntimeException(\"write size mismatch\");}return baos.toByteArray();}", "after": "public byte[] Serialize(){int size = DataSize + 4;using (MemoryStream baos = new MemoryStream(size)){Serialize(new LittleEndianOutputStream(baos));if (baos.Length != size){throw new Exception(\"write size mismatch\");}return baos.ToArray();}}" }, { "index": 9649, "before": "public GetFieldLevelEncryptionProfileResult getFieldLevelEncryptionProfile(GetFieldLevelEncryptionProfileRequest request) {request = beforeClientExecution(request);return executeGetFieldLevelEncryptionProfile(request);}", "after": "public virtual GetFieldLevelEncryptionProfileResponse GetFieldLevelEncryptionProfile(GetFieldLevelEncryptionProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFieldLevelEncryptionProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFieldLevelEncryptionProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9650, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_number_of_sheets);if(isExternalReferences()) {StringUtil.writeUnicodeString(out, field_2_encoded_url);for (String field_3_sheet_name : field_3_sheet_names) {StringUtil.writeUnicodeString(out, field_3_sheet_name);}} else {int field2val = _isAddInFunctions ? TAG_ADD_IN_FUNCTIONS : TAG_INTERNAL_REFERENCES;out.writeShort(field2val);}}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_number_of_sheets);if (IsExternalReferences){StringUtil.WriteUnicodeString(out1, field_2_encoded_url);for (int i = 0; i < field_3_sheet_names.Length; i++){StringUtil.WriteUnicodeString(out1, field_3_sheet_names[i]);}}else{int field2val = _isAddInFunctions ? TAG_ADD_IN_FUNCTIONS : TAG_INTERNAL_REFERENCES;out1.WriteShort(field2val);}}" }, { "index": 9651, "before": "public BitsSlice(Bits parent, ReaderSlice slice) {this.parent = parent;this.start = slice.start;this.length = slice.length;assert length >= 0: \"length=\" + length;}", "after": "public BitsSlice(IBits parent, ReaderSlice slice){this.parent = parent;this.start = slice.Start;this.length = slice.Length;Debug.Assert(length >= 0, \"length=\" + length);}" }, { "index": 9652, "before": "public void removeName(Name name) {int index = getNameIndex((HSSFName) name);removeName(index);}", "after": "public void RemoveName(int index){names.RemoveAt(index);workbook.RemoveName(index);}" }, { "index": 9653, "before": "public ListConfigurationRevisionsResult listConfigurationRevisions(ListConfigurationRevisionsRequest request) {request = beforeClientExecution(request);return executeListConfigurationRevisions(request);}", "after": "public virtual ListConfigurationRevisionsResponse ListConfigurationRevisions(ListConfigurationRevisionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListConfigurationRevisionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListConfigurationRevisionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9654, "before": "public ObjectStream openStream() {return new ObjectStream.SmallStream(this);}", "after": "public override ObjectStream OpenStream(){return new ObjectStream.SmallStream(this);}" }, { "index": 9655, "before": "public boolean delete() {return directory.delete();}", "after": "public bool Delete(){return directory.Delete();}" }, { "index": 9656, "before": "public void clear(){_limit = 0;}", "after": "public void Clear(){_limit = 0;}" }, { "index": 9657, "before": "public void setMaxObjectSizeLimit(long limit) {maxObjectSizeLimit = limit;}", "after": "public virtual void SetMaxObjectSizeLimit(long limit){maxObjectSizeLimit = limit;}" }, { "index": 9658, "before": "public DescribeEventSubscriptionsResult describeEventSubscriptions(DescribeEventSubscriptionsRequest request) {request = beforeClientExecution(request);return executeDescribeEventSubscriptions(request);}", "after": "public virtual DescribeEventSubscriptionsResponse DescribeEventSubscriptions(DescribeEventSubscriptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEventSubscriptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEventSubscriptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9659, "before": "public boolean startEvaluate(FormulaCellCacheEntry cce) {if (cce == null) {throw new IllegalArgumentException(\"cellLoc must not be null\");}if (_currentlyEvaluatingCells.contains(cce)) {return false;}_currentlyEvaluatingCells.add(cce);_evaluationFrames.add(new CellEvaluationFrame(cce));return true;}", "after": "public bool StartEvaluate(FormulaCellCacheEntry cce){if (cce == null){throw new ArgumentException(\"cellLoc must not be null\");}if (_currentlyEvaluatingCells.Contains(cce)){return false;}_currentlyEvaluatingCells.Add(cce);_evaluationFrames.Add(new CellEvaluationFrame(cce));return true;}" }, { "index": 9660, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(sid);out.writeShort(_cbFContinued);if (_linkPtg == null) {out.writeShort(0);} else {int formulaSize = _linkPtg.getSize();int linkSize = formulaSize + 6;if (_unknownPostFormulaByte != null) {linkSize++;}out.writeShort(linkSize);out.writeShort(formulaSize);out.writeInt(_unknownPreFormulaInt);_linkPtg.write(out);if (_unknownPostFormulaByte != null) {out.writeByte(_unknownPostFormulaByte.intValue());}}out.writeShort(_cLines);out.writeShort(_iSel);out.writeShort(_flags);out.writeShort(_idEdit);if(_dropData != null) {_dropData.serialize(out);}if(_rgLines != null) {for(String str : _rgLines){StringUtil.writeUnicodeString(out, str);}}if(_bsels != null) {for(boolean val : _bsels){out.writeByte(val ? 1 : 0);}}}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(sid);out1.WriteShort(_cbFContinued); if (_linkPtg == null){out1.WriteShort(0);}else{int formulaSize = _linkPtg.Size;int linkSize = formulaSize + 6;if (_unknownPostFormulaByte != null){linkSize++;}out1.WriteShort(linkSize);out1.WriteShort(formulaSize);out1.WriteInt(_unknownPreFormulaInt);_linkPtg.Write(out1);if (_unknownPostFormulaByte != null){out1.WriteByte(Convert.ToByte(_unknownPostFormulaByte, CultureInfo.InvariantCulture));}}out1.WriteShort(_cLines);out1.WriteShort(_iSel);out1.WriteShort(_flags);out1.WriteShort(_idEdit);if (_dropData != null){_dropData.Serialize(out1);}if (_rgLines != null){foreach (String str in _rgLines){StringUtil.WriteUnicodeString(out1, str);}}if (_bsels != null){foreach (bool val in _bsels){out1.WriteByte(val ? 1 : 0);}}}" }, { "index": 9661, "before": "public void remove(int el) {if ( readonly ) throw new IllegalStateException(\"can't alter readonly IntervalSet\");int n = intervals.size();for (int i = 0; i < n; i++) {Interval I = intervals.get(i);int a = I.a;int b = I.b;if ( ela && el a && el < b){int oldb = I.b;intervals[i] = Interval.Of(I.a, el - 1);Add(el + 1, oldb);}}}" }, { "index": 9662, "before": "public IntegerList toIntegerList() {IntegerList values = new IntegerList(size());int n = intervals.size();for (int i = 0; i < n; i++) {Interval I = intervals.get(i);int a = I.a;int b = I.b;for (int v=a; v<=b; v++) {values.add(v);}}return values;}", "after": "public virtual ArrayList ToIntegerList(){ArrayList values = new ArrayList(Count);int n = intervals.Count;for (int i = 0; i < n; i++){Interval I = intervals[i];int a = I.a;int b = I.b;for (int v = a; v <= b; v++){values.Add(v);}}return values;}" }, { "index": 9663, "before": "@Override public void clear() {AbstractMultimap.this.clear();}", "after": "public override void clear(){this._enclosing.clear();}" }, { "index": 9664, "before": "public CharsRef pullNext() {assert upto < count;lastEndOffset = endOffsets[upto];lastPosLength = posLengths[upto];final CharsRefBuilder result = outputs[upto++];posIncr = 0;if (upto == count) {reset();}return result.get();}", "after": "public virtual CharsRef PullNext(){Debug.Assert(upto < count);lastEndOffset = endOffsets[upto];lastPosLength = posLengths[upto];CharsRef result = outputs[upto++];posIncr = 0;if (upto == count){Reset();}return result;}" }, { "index": 9665, "before": "public FSTTermsWriter(SegmentWriteState state, PostingsWriterBase postingsWriter) throws IOException {final String termsFileName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, TERMS_EXTENSION);this.postingsWriter = postingsWriter;this.fieldInfos = state.fieldInfos;this.out = state.directory.createOutput(termsFileName, state.context);this.maxDoc = state.segmentInfo.maxDoc();boolean success = false;try {CodecUtil.writeIndexHeader(out, TERMS_CODEC_NAME, TERMS_VERSION_CURRENT,state.segmentInfo.getId(), state.segmentSuffix);this.postingsWriter.init(out, state);success = true;} finally {if (!success) {IOUtils.closeWhileHandlingException(out);}}}", "after": "public FSTTermsWriter(SegmentWriteState state, PostingsWriterBase postingsWriter){var termsFileName = IndexFileNames.SegmentFileName(state.SegmentInfo.Name, state.SegmentSuffix,TERMS_EXTENSION);_postingsWriter = postingsWriter;_fieldInfos = state.FieldInfos;_output = state.Directory.CreateOutput(termsFileName, state.Context);var success = false;try{WriteHeader(_output);_postingsWriter.Init(_output);success = true;}finally{if (!success){IOUtils.DisposeWhileHandlingException(_output);}}}" }, { "index": 9666, "before": "public int compareTo(Cell other) {return Double.compare(distanceSortKey, other.distanceSortKey);}", "after": "public virtual int CompareTo(Cell o){return string.CompareOrdinal(TokenString, o.TokenString);}" }, { "index": 9667, "before": "public ListAccountSettingsResult listAccountSettings(ListAccountSettingsRequest request) {request = beforeClientExecution(request);return executeListAccountSettings(request);}", "after": "public virtual ListAccountSettingsResponse ListAccountSettings(ListAccountSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAccountSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAccountSettingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9668, "before": "public boolean find() {matchFound = findNextImpl(address, input, matchOffsets);if (matchFound) {findPos = matchOffsets[1];}return matchFound;}", "after": "public bool find(){matchFound = findNextImpl(address, input, matchOffsets);if (matchFound){findPos = matchOffsets[1];}return matchFound;}" }, { "index": 9669, "before": "public V next() { return super.nextEntry().value; }", "after": "public override V next(){return this.nextEntry().value;}" }, { "index": 9670, "before": "public DescribeLocalGatewaysResult describeLocalGateways(DescribeLocalGatewaysRequest request) {request = beforeClientExecution(request);return executeDescribeLocalGateways(request);}", "after": "public virtual DescribeLocalGatewaysResponse DescribeLocalGateways(DescribeLocalGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLocalGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLocalGatewaysResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9671, "before": "public ByteArrayDataInput(byte[] bytes, int offset, int len) {reset(bytes, offset, len);}", "after": "public ByteArrayDataInput(byte[] bytes, int offset, int len){Reset(bytes, offset, len);}" }, { "index": 9672, "before": "public String toString() {return super.toString() + \":\" + revstr; }", "after": "public override string ToString(){return base.ToString() + \":\" + revstr;}" }, { "index": 9673, "before": "public RegisterCrossAccountAccessRoleResult registerCrossAccountAccessRole(RegisterCrossAccountAccessRoleRequest request) {request = beforeClientExecution(request);return executeRegisterCrossAccountAccessRole(request);}", "after": "public virtual RegisterCrossAccountAccessRoleResponse RegisterCrossAccountAccessRole(RegisterCrossAccountAccessRoleRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterCrossAccountAccessRoleRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterCrossAccountAccessRoleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9674, "before": "public void clear() {ConcurrentHashMap.this.clear();}", "after": "public override void clear(){this._enclosing.clear();}" }, { "index": 9675, "before": "public DescribeFileSystemsResult describeFileSystems(DescribeFileSystemsRequest request) {request = beforeClientExecution(request);return executeDescribeFileSystems(request);}", "after": "public virtual DescribeFileSystemsResponse DescribeFileSystems(DescribeFileSystemsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFileSystemsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFileSystemsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9676, "before": "public ReverseStringFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public ReverseStringFilterFactory(IDictionary args) : base(args){AssureMatchVersion();if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 9677, "before": "public Builder() {this(true);}", "after": "public Builder(){InitializeInstanceFields();}" }, { "index": 9678, "before": "public TokenStream create(TokenStream input) {return new IrishLowerCaseFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new IrishLowerCaseFilter(input);}" }, { "index": 9679, "before": "public GetQualificationTypeResult getQualificationType(GetQualificationTypeRequest request) {request = beforeClientExecution(request);return executeGetQualificationType(request);}", "after": "public virtual GetQualificationTypeResponse GetQualificationType(GetQualificationTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetQualificationTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = GetQualificationTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9680, "before": "public ThreeWayMerger newMerger(Repository db, boolean inCore) {return new ResolveMerger(db, inCore);}", "after": "public override Merger NewMerger(Repository db, bool inCore){return new ResolveMerger(db, inCore);}" }, { "index": 9681, "before": "public String getNameText(int definedNameIndex) {return _externalNameRecords[definedNameIndex].getText();}", "after": "public String GetNameText(int definedNameIndex){return _externalNameRecords[definedNameIndex].Text;}" }, { "index": 9682, "before": "public PlotWalk(Repository repo) {super(repo);super.sort(RevSort.TOPO, true);additionalRefMap = new HashMap<>();repository = repo;}", "after": "public PlotWalk(Repository repo) : base(repo){base.Sort(RevSort.TOPO, true);reverseRefMap = repo.GetAllRefsByPeeledObjectId();}" }, { "index": 9683, "before": "public SubscribeToDatasetResult subscribeToDataset(SubscribeToDatasetRequest request) {request = beforeClientExecution(request);return executeSubscribeToDataset(request);}", "after": "public virtual SubscribeToDatasetResponse SubscribeToDataset(SubscribeToDatasetRequest request){var options = new InvokeOptions();options.RequestMarshaller = SubscribeToDatasetRequestMarshaller.Instance;options.ResponseUnmarshaller = SubscribeToDatasetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9684, "before": "public StringBuilder append(char[] str, int offset, int len) {append0(str, offset, len);return this;}", "after": "public java.lang.StringBuilder append(char[] str, int offset, int len){append0(str, offset, len);return this;}" }, { "index": 9685, "before": "public synchronized int indexOf(String subString, int start) {return super.indexOf(subString, start);}", "after": "public override int indexOf(string subString, int start){lock (this){return base.indexOf(subString, start);}}" }, { "index": 9686, "before": "public List subList(int from, int to) {Object[] snapshot = elements;if (from < 0 || from > to || to > snapshot.length) {throw new IndexOutOfBoundsException(\"from=\" + from + \", to=\" + to +\", list size=\" + snapshot.length);}return new CowSubList(snapshot, from, to);}", "after": "public virtual java.util.List subList(int from, int to){object[] snapshot = elements;if (from < 0 || from > to || to > snapshot.Length){throw new System.IndexOutOfRangeException(\"from=\" + from + \", to=\" + to + \", list size=\"+ snapshot.Length);}return new java.util.concurrent.CopyOnWriteArrayList.CowSubList(this, snapshot, from, to);}" }, { "index": 9687, "before": "public Severity getSeverity() {return severity;}", "after": "public virtual FormatError.Severity GetSeverity(){return severity;}" }, { "index": 9688, "before": "public DescribeBundleTasksResult describeBundleTasks() {return describeBundleTasks(new DescribeBundleTasksRequest());}", "after": "public virtual DescribeBundleTasksResponse DescribeBundleTasks(){return DescribeBundleTasks(new DescribeBundleTasksRequest());}" }, { "index": 9689, "before": "public BooleanQuery build() {return new BooleanQuery(minimumNumberShouldMatch, clauses.toArray(new BooleanClause[0]));}", "after": "public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}" }, { "index": 9690, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[HIDEOBJ]\\n\");buffer.append(\" .hideobj = \").append(Integer.toHexString(getHideObj())).append(\"\\n\");buffer.append(\"[/HIDEOBJ]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[HIDEOBJ]\\n\");buffer.Append(\" .hideobj = \").Append(StringUtil.ToHexString(GetHideObj())).Append(\"\\n\");buffer.Append(\"[/HIDEOBJ]\\n\");return buffer.ToString();}" }, { "index": 9691, "before": "public UseSelFSRecord(boolean b) {this(0);_options = useNaturalLanguageFormulasFlag.setBoolean(_options, b);}", "after": "public UseSelFSRecord(int options){_options = options;}" }, { "index": 9692, "before": "public boolean equals( Object o ) {return o instanceof RomanianStemmer;}", "after": "public override bool Equals(object o){return o is RomanianStemmer;}" }, { "index": 9693, "before": "public AbortMultipartUploadResult abortMultipartUpload(AbortMultipartUploadRequest request) {request = beforeClientExecution(request);return executeAbortMultipartUpload(request);}", "after": "public virtual AbortMultipartUploadResponse AbortMultipartUpload(AbortMultipartUploadRequest request){var options = new InvokeOptions();options.RequestMarshaller = AbortMultipartUploadRequestMarshaller.Instance;options.ResponseUnmarshaller = AbortMultipartUploadResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9694, "before": "public void reportMatch(Parser recognizer) {endErrorCondition(recognizer);}", "after": "public virtual void ReportMatch(Parser recognizer){EndErrorCondition(recognizer);}" }, { "index": 9695, "before": "public ModifyVpnConnectionResult modifyVpnConnection(ModifyVpnConnectionRequest request) {request = beforeClientExecution(request);return executeModifyVpnConnection(request);}", "after": "public virtual ModifyVpnConnectionResponse ModifyVpnConnection(ModifyVpnConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpnConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpnConnectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9696, "before": "public GetSendStatisticsResult getSendStatistics() {return getSendStatistics(new GetSendStatisticsRequest());}", "after": "public virtual GetSendStatisticsResponse GetSendStatistics(){return GetSendStatistics(new GetSendStatisticsRequest());}" }, { "index": 9697, "before": "public CreateVoiceConnectorGroupResult createVoiceConnectorGroup(CreateVoiceConnectorGroupRequest request) {request = beforeClientExecution(request);return executeCreateVoiceConnectorGroup(request);}", "after": "public virtual CreateVoiceConnectorGroupResponse CreateVoiceConnectorGroup(CreateVoiceConnectorGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVoiceConnectorGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVoiceConnectorGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9698, "before": "public InitiateJobRequest(String vaultName, JobParameters jobParameters) {setVaultName(vaultName);setJobParameters(jobParameters);}", "after": "public InitiateJobRequest(string vaultName, JobParameters jobParameters){_vaultName = vaultName;_jobParameters = jobParameters;}" }, { "index": 9699, "before": "public MatchResult toMatchResult() {ensureMatch();return new MatchResultImpl(input, matchOffsets);}", "after": "public java.util.regex.MatchResult toMatchResult(){ensureMatch();return new java.util.regex.MatchResultImpl(input, matchOffsets);}" }, { "index": 9700, "before": "public static String getInflectedFormTranslation(String s) {return inflFormTranslations.get(s);}", "after": "public static string GetInflectedFormTranslation(string s){string result;inflFormTranslations.TryGetValue(s, out result);return result;}" }, { "index": 9701, "before": "public static ErrPtg valueOf(int code) {switch(FormulaError.forInt(code)) {case DIV0: return DIV_ZERO;case NA: return N_A;case NAME: return NAME_INVALID;case NULL: return NULL_INTERSECTION;case NUM: return NUM_ERROR;case REF: return REF_INVALID;case VALUE: return VALUE_INVALID;default:throw new RuntimeException(\"Unexpected error code (\" + code + \")\");}}", "after": "public static ErrPtg ValueOf(int code){switch (code){case HSSFErrorConstants.ERROR_DIV_0: return DIV_ZERO;case HSSFErrorConstants.ERROR_NA: return N_A;case HSSFErrorConstants.ERROR_NAME: return NAME_INVALID;case HSSFErrorConstants.ERROR_NULL: return NULL_INTERSECTION;case HSSFErrorConstants.ERROR_NUM: return NUM_ERROR;case HSSFErrorConstants.ERROR_REF: return REF_INVALID;case HSSFErrorConstants.ERROR_VALUE: return VALUE_INVALID;}throw new InvalidOperationException(\"Unexpected error code (\" + code + \")\");}" }, { "index": 9702, "before": "public GetBasePathMappingResult getBasePathMapping(GetBasePathMappingRequest request) {request = beforeClientExecution(request);return executeGetBasePathMapping(request);}", "after": "public virtual GetBasePathMappingResponse GetBasePathMapping(GetBasePathMappingRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBasePathMappingRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBasePathMappingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9703, "before": "public void fromObjectId(AnyObjectId src) {this.w1 = src.w1;this.w2 = src.w2;this.w3 = src.w3;this.w4 = src.w4;this.w5 = src.w5;}", "after": "public virtual void FromObjectId(AnyObjectId src){this.w1 = src.w1;this.w2 = src.w2;this.w3 = src.w3;this.w4 = src.w4;this.w5 = src.w5;}" }, { "index": 9704, "before": "public static List getAncestors(Tree t) {if ( t.getParent()==null ) return Collections.emptyList();List ancestors = new ArrayList();t = t.getParent();while ( t!=null ) {ancestors.add(0, t); t = t.getParent();}return ancestors;}", "after": "public static IList GetAncestors(ITree t){if (t.Parent == null){return Collections.EmptyList();}IList ancestors = new List();t = t.Parent;while (t != null){ancestors.Insert(0, t);t = t.Parent;}return ancestors;}" }, { "index": 9705, "before": "public GetUsagePlanResult getUsagePlan(GetUsagePlanRequest request) {request = beforeClientExecution(request);return executeGetUsagePlan(request);}", "after": "public virtual GetUsagePlanResponse GetUsagePlan(GetUsagePlanRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUsagePlanRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUsagePlanResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9706, "before": "public UpdateLoadBalancerAttributeResult updateLoadBalancerAttribute(UpdateLoadBalancerAttributeRequest request) {request = beforeClientExecution(request);return executeUpdateLoadBalancerAttribute(request);}", "after": "public virtual UpdateLoadBalancerAttributeResponse UpdateLoadBalancerAttribute(UpdateLoadBalancerAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateLoadBalancerAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateLoadBalancerAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9707, "before": "public void addResult(int n, boolean isRelevant, long docNameExtractTime) {if (Math.abs(numPoints+1 - n) > 1E-6) {throw new IllegalArgumentException(\"point \"+n+\" illegal after \"+numPoints+\" points!\");}if (isRelevant) {numGoodPoints+=1;recallPoints.add(new RecallPoint(n,numGoodPoints));if (recallPoints.size()==1 && n<=5) { mrr = 1.0 / n;}}numPoints = n;double p = numGoodPoints / numPoints;if (isRelevant) {pReleventSum += p;}if (n 1E-6){throw new ArgumentException(\"point \" + n + \" illegal after \" + numPoints + \" points!\");}if (isRelevant){numGoodPoints += 1;recallPoints.Add(new RecallPoint(n, numGoodPoints));if (recallPoints.Count == 1 && n <= 5){ mrr = 1.0 / n;}}numPoints = n;double p = numGoodPoints / numPoints;if (isRelevant){pReleventSum += p;}if (n < pAt.Length){pAt[n] = p;}recall = maxGoodPoints <= 0 ? p : numGoodPoints / maxGoodPoints;docNamesExtractTime += docNameExtractTime;}" }, { "index": 9708, "before": "public UpdateExperimentResult updateExperiment(UpdateExperimentRequest request) {request = beforeClientExecution(request);return executeUpdateExperiment(request);}", "after": "public virtual UpdateExperimentResponse UpdateExperiment(UpdateExperimentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateExperimentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateExperimentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9709, "before": "public String toString() {return \"(\" + a.toString() + \" AND \" + b.toString() + \")\";}", "after": "public override string ToString(){return \"(\" + a.ToString() + \" OR \" + b.ToString() + \")\";}" }, { "index": 9710, "before": "public String getAccessKeyId() {return accessKeyId;}", "after": "public string GetAccessKeyId(){return accessKeyId;}" }, { "index": 9711, "before": "public GetBulkPublishDetailsResult getBulkPublishDetails(GetBulkPublishDetailsRequest request) {request = beforeClientExecution(request);return executeGetBulkPublishDetails(request);}", "after": "public virtual GetBulkPublishDetailsResponse GetBulkPublishDetails(GetBulkPublishDetailsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBulkPublishDetailsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBulkPublishDetailsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9712, "before": "public static byte[] grow(byte[] array) {return grow(array, 1 + array.length);}", "after": "public static float[] Grow(float[] array){return Grow(array, 1 + array.Length);}" }, { "index": 9713, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2) {double result;try {result = evaluate(evalArg(arg0, srcRowIndex, srcColumnIndex), evalArg(arg1, srcRowIndex, srcColumnIndex), evalArg(arg2, srcRowIndex, srcColumnIndex));} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2){double result;try{result = Evaluate(EvalArg(arg0, srcRowIndex, srcColumnIndex), EvalArg(arg1, srcRowIndex, srcColumnIndex), EvalArg(arg2, srcRowIndex, srcColumnIndex));}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}" }, { "index": 9714, "before": "public static final int hash32(final byte[] data, int offset, int len) {return MurmurHash2.hash(data, 0x9747b28c, offset, len);}", "after": "public static int Hash32(byte[] data, int offset, int len){return Hash(data, unchecked((int)0x9747b28c), offset, len);}" }, { "index": 9715, "before": "public static Formula create(Ptg[] ptgs) {if (ptgs == null || ptgs.length < 1) {return EMPTY;}int totalSize = Ptg.getEncodedSize(ptgs);byte[] encodedData = new byte[totalSize];Ptg.serializePtgs(ptgs, encodedData, 0);int encodedTokenLen = Ptg.getEncodedSizeWithoutArrayData(ptgs);return new Formula(encodedData, encodedTokenLen);}", "after": "public static Formula Create(Ptg[] ptgs){if (ptgs == null || ptgs.Length < 1){return EMPTY;}int totalSize = Ptg.GetEncodedSize(ptgs);byte[] encodedData = new byte[totalSize];Ptg.SerializePtgs(ptgs, encodedData, 0);int encodedTokenLen = Ptg.GetEncodedSizeWithoutArrayData(ptgs);return new Formula(encodedData, encodedTokenLen);}" }, { "index": 9716, "before": "public String toString(String field){return null;}", "after": "public override string ToString(string field){return null;}" }, { "index": 9717, "before": "public static int deleteN(char s[], int pos, int len, int nChars) {assert pos + nChars <= len;if (pos + nChars < len) { System.arraycopy(s, pos + nChars, s, pos, len - pos - nChars);}return len - nChars;}", "after": "public static int DeleteN(char[] s, int pos, int len, int nChars){Debug.Assert(pos + nChars <= len);if (pos + nChars < len) {Array.Copy(s, pos + nChars, s, pos, len - pos - nChars);}return len - nChars;}" }, { "index": 9718, "before": "public ThreadSafeProgressMonitor(ProgressMonitor pm) {this.pm = pm;this.lock = new ReentrantLock();this.mainThread = Thread.currentThread();this.workers = new AtomicInteger(0);this.pendingUpdates = new AtomicInteger(0);this.process = new Semaphore(0);}", "after": "public ThreadSafeProgressMonitor(ProgressMonitor pm){this.pm = pm;this.Lock = new ReentrantLock();this.mainThread = Sharpen.Thread.CurrentThread();this.workers = new AtomicInteger(0);this.pendingUpdates = new AtomicInteger(0);this.process = Sharpen.Extensions.CreateSemaphore(0);}" }, { "index": 9719, "before": "public SendMessageBatchRequestEntry(String id, String messageBody) {setId(id);setMessageBody(messageBody);}", "after": "public SendMessageBatchRequestEntry(string id, string messageBody){_id = id;_messageBody = messageBody;}" }, { "index": 9720, "before": "public DescribeAddressResult describeAddress(DescribeAddressRequest request) {request = beforeClientExecution(request);return executeDescribeAddress(request);}", "after": "public virtual DescribeAddressResponse DescribeAddress(DescribeAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAddressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9721, "before": "public GetEventRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"GetEvent\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetEventRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"GetEvent\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 9722, "before": "public DescribeRuleResult describeRule(DescribeRuleRequest request) {request = beforeClientExecution(request);return executeDescribeRule(request);}", "after": "public virtual DescribeRuleResponse DescribeRule(DescribeRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9723, "before": "public final RevObject getObject() {return object;}", "after": "public RevObject GetObject(){return @object;}" }, { "index": 9724, "before": "public JapaneseIterationMarkCharFilterFactory(Map args) {super(args);normalizeKanji = getBoolean(args, NORMALIZE_KANJI_PARAM, JapaneseIterationMarkCharFilter.NORMALIZE_KANJI_DEFAULT);normalizeKana = getBoolean(args, NORMALIZE_KANA_PARAM, JapaneseIterationMarkCharFilter.NORMALIZE_KANA_DEFAULT);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public JapaneseIterationMarkCharFilterFactory(IDictionary args): base(args){normalizeKanji = GetBoolean(args, NORMALIZE_KANJI_PARAM, JapaneseIterationMarkCharFilter.NORMALIZE_KANJI_DEFAULT);normalizeKana = GetBoolean(args, NORMALIZE_KANA_PARAM, JapaneseIterationMarkCharFilter.NORMALIZE_KANA_DEFAULT);if (args.Count > 0){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 9725, "before": "public char previous() {if (--index < start) {index = start;return DONE;} else {return current();}}", "after": "public override char Previous(){if (--index < start){index = start;return Done;}else{return Current;}}" }, { "index": 9726, "before": "public LoggingConfig(String bucket, String prefix) {setBucket(bucket);setPrefix(prefix);}", "after": "public LoggingConfig(string bucket, string prefix){_bucket = bucket;_prefix = prefix;}" }, { "index": 9727, "before": "public static String createSafeSheetName(final String nameProposal) {return createSafeSheetName(nameProposal, ' ');}", "after": "public static String CreateSafeSheetName(String nameProposal){return CreateSafeSheetName(nameProposal, ' ');}" }, { "index": 9728, "before": "public PutMetricAlarmResult putMetricAlarm(PutMetricAlarmRequest request) {request = beforeClientExecution(request);return executePutMetricAlarm(request);}", "after": "public virtual PutMetricAlarmResponse PutMetricAlarm(PutMetricAlarmRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutMetricAlarmRequestMarshaller.Instance;options.ResponseUnmarshaller = PutMetricAlarmResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9729, "before": "public CreateExclusionsPreviewResult createExclusionsPreview(CreateExclusionsPreviewRequest request) {request = beforeClientExecution(request);return executeCreateExclusionsPreview(request);}", "after": "public virtual CreateExclusionsPreviewResponse CreateExclusionsPreview(CreateExclusionsPreviewRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateExclusionsPreviewRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateExclusionsPreviewResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9730, "before": "public OutputStream getRawStream() {return buf;}", "after": "public virtual OutputStream GetRawStream(){return buf;}" }, { "index": 9731, "before": "public int getThreads() {return threads;}", "after": "public virtual int GetThreads(){return threads;}" }, { "index": 9732, "before": "public void decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final int byte0 = blocks[blocksOffset++] & 0xFF;final int byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 6) | (byte1 >>> 2);final int byte2 = blocks[blocksOffset++] & 0xFF;final int byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 3) << 12) | (byte2 << 4) | (byte3 >>> 4);final int byte4 = blocks[blocksOffset++] & 0xFF;final int byte5 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 15) << 10) | (byte4 << 2) | (byte5 >>> 6);final int byte6 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte5 & 63) << 8) | byte6;}}", "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 << 6) | ((int)((uint)byte1 >> 2));int byte2 = blocks[blocksOffset++] & 0xFF;int byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 3) << 12) | (byte2 << 4) | ((int)((uint)byte3 >> 4));int byte4 = blocks[blocksOffset++] & 0xFF;int byte5 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 15) << 10) | (byte4 << 2) | ((int)((uint)byte5 >> 6));int byte6 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte5 & 63) << 8) | byte6;}}" }, { "index": 9733, "before": "public boolean eof() {assert upto + bufferOffset <= endIndex;return upto + bufferOffset == endIndex;}", "after": "public bool Eof(){Debug.Assert(upto + BufferOffset <= EndIndex);return upto + BufferOffset == EndIndex;}" }, { "index": 9734, "before": "public ClientException(String message) {super(message);this.setErrorType(ErrorType.Client);}", "after": "public ClientException(string message) : base(message){ErrorMessage = message;}" }, { "index": 9735, "before": "public static NumberRecord[] convertRKRecords(MulRKRecord mrk) {NumberRecord[] mulRecs = new NumberRecord[mrk.getNumColumns()];for (int k = 0; k < mrk.getNumColumns(); k++) {NumberRecord nr = new NumberRecord();nr.setColumn((short) (k + mrk.getFirstColumn()));nr.setRow(mrk.getRow());nr.setXFIndex(mrk.getXFAt(k));nr.setValue(mrk.getRKNumberAt(k));mulRecs[k] = nr;}return mulRecs;}", "after": "public static NumberRecord[] ConvertRKRecords(MulRKRecord mrk){NumberRecord[] mulRecs = new NumberRecord[mrk.NumColumns];for (int k = 0; k < mrk.NumColumns; k++){NumberRecord nr = new NumberRecord();nr.Column = ((short)(k + mrk.FirstColumn));nr.Row = (mrk.Row);nr.XFIndex = (mrk.GetXFAt(k));nr.Value = (mrk.GetRKNumberAt(k));mulRecs[k] = nr;}return mulRecs;}" }, { "index": 9736, "before": "public List getCommands() {return Collections.unmodifiableList(commands);}", "after": "public virtual IList GetCommands(){return Sharpen.Collections.UnmodifiableList(commands);}" }, { "index": 9737, "before": "public UpdateVoiceConnectorResult updateVoiceConnector(UpdateVoiceConnectorRequest request) {request = beforeClientExecution(request);return executeUpdateVoiceConnector(request);}", "after": "public virtual UpdateVoiceConnectorResponse UpdateVoiceConnector(UpdateVoiceConnectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateVoiceConnectorRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateVoiceConnectorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9738, "before": "public static String getText(int errorCode) {if(FormulaError.isValidCode(errorCode)) {return FormulaError.forInt(errorCode).getString();}return \"~non~std~err(\" + errorCode + \")~\";}", "after": "public static String GetText(int errorCode){if (FormulaError.IsValidCode(errorCode)){return FormulaError.ForInt(errorCode).String;}return \"~non~std~err(\" + errorCode + \")~\";}" }, { "index": 9739, "before": "public long nextOrd() {long v = ord;ord = NO_MORE_ORDS;return v;}", "after": "public override long NextOrd(){if (set){return NO_MORE_ORDS;}else{set = true;return @in.GetOrd(docID);}}" }, { "index": 9740, "before": "public EntityResolver getEntityResolver () {return (theEntityResolver == this) ? null : theEntityResolver;}", "after": "public void close (){lock (this.mBlock) {if (this.mParseState != null) {this.mParseState.Dispose ();this.mParseState = null;this.mBlock.decOpenCountLocked ();}}}" }, { "index": 9741, "before": "public SheetRefEvaluator(WorkbookEvaluator bookEvaluator, EvaluationTracker tracker, int sheetIndex) {if (sheetIndex < 0) {throw new IllegalArgumentException(\"Invalid sheetIndex: \" + sheetIndex + \".\");}_bookEvaluator = bookEvaluator;_tracker = tracker;_sheetIndex = sheetIndex;}", "after": "public SheetRefEvaluator(WorkbookEvaluator bookEvaluator, EvaluationTracker tracker, int sheetIndex){if (sheetIndex < 0){throw new ArgumentException(\"Invalid sheetIndex: \" + sheetIndex + \".\");}_bookEvaluator = bookEvaluator;_tracker = tracker;_sheetIndex = sheetIndex;}" }, { "index": 9742, "before": "public DBSecurityGroup authorizeDBSecurityGroupIngress(AuthorizeDBSecurityGroupIngressRequest request) {request = beforeClientExecution(request);return executeAuthorizeDBSecurityGroupIngress(request);}", "after": "public virtual AuthorizeDBSecurityGroupIngressResponse AuthorizeDBSecurityGroupIngress(AuthorizeDBSecurityGroupIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = AuthorizeDBSecurityGroupIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = AuthorizeDBSecurityGroupIngressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9743, "before": "@Override public V put(K key, V value) {if (key == null) {return putValueForNullKey(value);}int hash = secondaryHash(key.hashCode());HashMapEntry[] tab = table;int index = hash & (tab.length - 1);for (HashMapEntry e = tab[index]; e != null; e = e.next) {if (e.hash == hash && key.equals(e.key)) {preModify(e);V oldValue = e.value;e.value = value;return oldValue;}}modCount++;if (size++ > threshold) {tab = doubleCapacity();index = hash & (tab.length - 1);}addNewEntry(key, value, hash, index);return null;}", "after": "public override V put(K key, V value){if ((object)key == null){return putValueForNullKey(value);}int hash = secondaryHash(key.GetHashCode());java.util.HashMap.HashMapEntry[] tab = table;int index = hash & (tab.Length - 1);{for (java.util.HashMap.HashMapEntry e = tab[index]; e != null; e = e.next){if (e.hash == hash && key.Equals(e.key)){preModify(e);V oldValue = e.value;e.value = value;return oldValue;}}}modCount++;if (_size++ > threshold){tab = doubleCapacity();index = hash & (tab.Length - 1);}addNewEntry(key, value, hash, index);return default(V);}" }, { "index": 9744, "before": "public GetTrafficPolicyInstanceResult getTrafficPolicyInstance(GetTrafficPolicyInstanceRequest request) {request = beforeClientExecution(request);return executeGetTrafficPolicyInstance(request);}", "after": "public virtual GetTrafficPolicyInstanceResponse GetTrafficPolicyInstance(GetTrafficPolicyInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTrafficPolicyInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTrafficPolicyInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9745, "before": "public Message(Content subject, Body body) {setSubject(subject);setBody(body);}", "after": "public Message(Content subject, Body body){_subject = subject;_body = body;}" }, { "index": 9746, "before": "public LbsDropData() {_str = \"\";_unused = 0;}", "after": "public LbsDropData(){_str = \"\";_unused = 0;}" }, { "index": 9747, "before": "public Deleted3DPxg(String sheetName) {this(-1, sheetName);}", "after": "public Deleted3DPxg(String sheetName): this(-1, sheetName){;}" }, { "index": 9748, "before": "public String getName() {return \"simple-two-way-in-core\"; }", "after": "public override string GetName(){return \"simple-two-way-in-core\";}" }, { "index": 9749, "before": "public RevTree parseTree(AnyObjectId id)throws MissingObjectException, IncorrectObjectTypeException,IOException {RevObject c = peel(parseAny(id));final RevTree t;if (c instanceof RevCommit)t = ((RevCommit) c).getTree();else if (!(c instanceof RevTree))throw new IncorrectObjectTypeException(id.toObjectId(),Constants.TYPE_TREE);elset = (RevTree) c;parseHeaders(t);return t;}", "after": "public virtual RevTree ParseTree(AnyObjectId id){RevObject c = Peel(ParseAny(id));RevTree t;if (c is RevCommit){t = ((RevCommit)c).Tree;}else{if (!(c is RevTree)){throw new IncorrectObjectTypeException(id.ToObjectId(), Constants.TYPE_TREE);}else{t = (RevTree)c;}}ParseHeaders(t);return t;}" }, { "index": 9750, "before": "public DisableFastSnapshotRestoresResult disableFastSnapshotRestores(DisableFastSnapshotRestoresRequest request) {request = beforeClientExecution(request);return executeDisableFastSnapshotRestores(request);}", "after": "public virtual DisableFastSnapshotRestoresResponse DisableFastSnapshotRestores(DisableFastSnapshotRestoresRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableFastSnapshotRestoresRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableFastSnapshotRestoresResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9751, "before": "public int size() {return size;}", "after": "public override int size(){return this._enclosing._size;}" }, { "index": 9752, "before": "public CreateStreamResult createStream(CreateStreamRequest request) {request = beforeClientExecution(request);return executeCreateStream(request);}", "after": "public virtual CreateStreamResponse CreateStream(CreateStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9753, "before": "public String replaceAll(String replacement) {reset();StringBuffer buffer = new StringBuffer(input.length());while (find()) {appendReplacement(buffer, replacement);}return appendTail(buffer).toString();}", "after": "public string replaceAll(string replacement){reset();java.lang.StringBuffer buffer = new java.lang.StringBuffer(input.Length);while (find()){appendReplacement(buffer, replacement);}return appendTail(buffer).ToString();}" }, { "index": 9754, "before": "public DeregisterInstanceEventNotificationAttributesResult deregisterInstanceEventNotificationAttributes(DeregisterInstanceEventNotificationAttributesRequest request) {request = beforeClientExecution(request);return executeDeregisterInstanceEventNotificationAttributes(request);}", "after": "public virtual DeregisterInstanceEventNotificationAttributesResponse DeregisterInstanceEventNotificationAttributes(DeregisterInstanceEventNotificationAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterInstanceEventNotificationAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterInstanceEventNotificationAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9755, "before": "public int getDepth() {return depth;}", "after": "public virtual int GetDepth(){return depth;}" }, { "index": 9756, "before": "public long get() {if (position == limit) {throw new BufferUnderflowException();}return byteBuffer.getLong(position++ * SizeOf.LONG);}", "after": "public override long get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return byteBuffer.getLong(_position++ * libcore.io.SizeOf.LONG);}" }, { "index": 9757, "before": "public boolean isEmpty() {return ConcurrentHashMap.this.isEmpty();}", "after": "public override bool isEmpty(){return this._enclosing._size == 0;}" }, { "index": 9758, "before": "public void addName(NameRecord name) {_definedNames.add(name);int idx = findFirstRecordLocBySid(ExternSheetRecord.sid);if (idx == -1) idx = findFirstRecordLocBySid(SupBookRecord.sid);if (idx == -1) idx = findFirstRecordLocBySid(CountryRecord.sid);int countNames = _definedNames.size();_workbookRecordList.add(idx + countNames, name);}", "after": "public void AddName(NameRecord name){_definedNames.Add(name);int idx = FindFirstRecordLocBySid(ExternSheetRecord.sid);if (idx == -1) idx = FindFirstRecordLocBySid(SupBookRecord.sid);if (idx == -1) idx = FindFirstRecordLocBySid(CountryRecord.sid);int countNames = _definedNames.Count;_workbookRecordList.Add(idx + countNames, name);}" }, { "index": 9759, "before": "public void sort(RevSort s, boolean use) {assertNotStarted();if (use)sorting.add(s);elsesorting.remove(s);if (sorting.size() > 1)sorting.remove(RevSort.NONE);else if (sorting.isEmpty())sorting.add(RevSort.NONE);}", "after": "public virtual void Sort(RevSort s, bool use){AssertNotStarted();if (use){sorting.AddItem(s);}else{sorting.Remove(s);}if (sorting.Count > 1){sorting.Remove(RevSort.NONE);}else{if (sorting.Count == 0){sorting.AddItem(RevSort.NONE);}}}" }, { "index": 9760, "before": "public String toString() {return \"D\";}", "after": "public override string ToString(){return \"D\";}" }, { "index": 9761, "before": "public DisassociateSkillGroupFromRoomResult disassociateSkillGroupFromRoom(DisassociateSkillGroupFromRoomRequest request) {request = beforeClientExecution(request);return executeDisassociateSkillGroupFromRoom(request);}", "after": "public virtual DisassociateSkillGroupFromRoomResponse DisassociateSkillGroupFromRoom(DisassociateSkillGroupFromRoomRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateSkillGroupFromRoomRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateSkillGroupFromRoomResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9762, "before": "public static byte[] encodeASCII(long s) {return encodeASCII(Long.toString(s));}", "after": "public static byte[] EncodeASCII(long s){return EncodeASCII(System.Convert.ToString(s));}" }, { "index": 9763, "before": "public void setData(byte[] b) {setData(b,0,b.length);}", "after": "public void SetData(byte[] b){SetData(b, 0, b.Length);}" }, { "index": 9764, "before": "public void removeLinksDirty() {remove1stProperty(PropertyIDMap.PID_LINKSDIRTY);}", "after": "public void RemoveLinksDirty(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_LINKSDIRTY);}" }, { "index": 9765, "before": "final public void OptionalWeights(SrndQuery q) throws ParseException {Token weight=null;label_8:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case CARAT:;break;default:jj_la1[9] = jj_gen;break label_8;}jj_consume_token(CARAT);weight = jj_consume_token(NUMBER);float f;try {f = Float.parseFloat(weight.image);} catch (Exception floatExc) {{if (true) throw new ParseException(BOOST_ERROR_MESSAGE + weight.image + \" (\" + floatExc + \")\");}}if (f <= 0.0) {{if (true) throw new ParseException(BOOST_ERROR_MESSAGE + weight.image);}}q.setWeight(f * q.getWeight()); }}", "after": "public void OptionalWeights(SrndQuery q){Token weight = null;while (true){switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.CARAT:;break;default:jj_la1[9] = jj_gen;goto label_8;}Jj_consume_token(RegexpToken.CARAT);weight = Jj_consume_token(RegexpToken.NUMBER);float f;try{f = float.Parse(weight.Image);}catch (Exception floatExc){{ if (true) throw new ParseException(boostErrorMessage + weight.Image + \" (\" + floatExc + \")\"); }}if (f <= 0.0){{ if (true) throw new ParseException(boostErrorMessage + weight.Image); }}q.Weight = (f * q.Weight); }label_8: ;}" }, { "index": 9766, "before": "public ListLogPatternSetsResult listLogPatternSets(ListLogPatternSetsRequest request) {request = beforeClientExecution(request);return executeListLogPatternSets(request);}", "after": "public virtual ListLogPatternSetsResponse ListLogPatternSets(ListLogPatternSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListLogPatternSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListLogPatternSetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9767, "before": "public String toString() {return \"\";}", "after": "public override string ToString(){return \"\";}" }, { "index": 9768, "before": "public ListAssessmentTargetsResult listAssessmentTargets(ListAssessmentTargetsRequest request) {request = beforeClientExecution(request);return executeListAssessmentTargets(request);}", "after": "public virtual ListAssessmentTargetsResponse ListAssessmentTargets(ListAssessmentTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAssessmentTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAssessmentTargetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9769, "before": "public HSSFFontFormatting getFontFormatting() {return getFontFormatting(false);}", "after": "public IFontFormatting GetFontFormatting(){return GetFontFormatting(false);}" }, { "index": 9770, "before": "public UpdateRoomResult updateRoom(UpdateRoomRequest request) {request = beforeClientExecution(request);return executeUpdateRoom(request);}", "after": "public virtual UpdateRoomResponse UpdateRoom(UpdateRoomRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRoomRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRoomResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9771, "before": "public ListLexiconsResult listLexicons(ListLexiconsRequest request) {request = beforeClientExecution(request);return executeListLexicons(request);}", "after": "public virtual ListLexiconsResponse ListLexicons(ListLexiconsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListLexiconsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListLexiconsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9772, "before": "public boolean equals( Object o ) {return o instanceof KpStemmer;}", "after": "public override bool Equals(object o){return o is KpStemmer;}" }, { "index": 9773, "before": "public void write(String str, int offset, int count) {String sub = str.substring(offset, offset + count);buf.append(sub);}", "after": "public override void write(string str, int offset, int count){string sub = Sharpen.StringHelper.Substring(str, offset, offset + count);buf.append(sub);}" }, { "index": 9774, "before": "public PackLock(File packFile, FS fs) {final File p = packFile.getParentFile();final String n = packFile.getName();keepFile = new File(p, n.substring(0, n.length() - 5) + \".keep\"); }", "after": "public PackLock(FilePath packFile, FS fs){FilePath p = packFile.GetParentFile();string n = packFile.GetName();keepFile = new FilePath(p, Sharpen.Runtime.Substring(n, 0, n.Length - 5) + \".keep\");this.fs = fs;}" }, { "index": 9775, "before": "public CreatePublicKeyResult createPublicKey(CreatePublicKeyRequest request) {request = beforeClientExecution(request);return executeCreatePublicKey(request);}", "after": "public virtual CreatePublicKeyResponse CreatePublicKey(CreatePublicKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePublicKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePublicKeyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9776, "before": "public PersonIdent getRefLogIdent() {return refLogIdent;}", "after": "public virtual PersonIdent GetRefLogIdent(){return refLogIdent;}" }, { "index": 9777, "before": "public boolean equals(Object o) {if (this == o) {return true;}if (!(o instanceof EscherComplexProperty)) {return false;}EscherComplexProperty escherComplexProperty = (EscherComplexProperty) o;return Arrays.equals(complexData, escherComplexProperty.complexData);}", "after": "public override bool Equals(Object o){if (this == o) return true;if (!(o is EscherComplexProperty)) return false;EscherComplexProperty escherComplexProperty = (EscherComplexProperty)o;if (!Arrays.Equals(_complexData, escherComplexProperty._complexData)) return false;return true;}" }, { "index": 9778, "before": "public void unread(int oneByte) throws IOException {if (buf == null) {throw new IOException();}if (pos == 0) {throw new IOException(\"Pushback buffer full\");}buf[--pos] = (byte) oneByte;}", "after": "public virtual void unread(int oneByte){if (buf == null){throw new System.IO.IOException();}if (pos == 0){throw new System.IO.IOException(\"Pushback buffer full\");}buf[--pos] = unchecked((byte)oneByte);}" }, { "index": 9779, "before": "public GetSegmentImportJobsResult getSegmentImportJobs(GetSegmentImportJobsRequest request) {request = beforeClientExecution(request);return executeGetSegmentImportJobs(request);}", "after": "public virtual GetSegmentImportJobsResponse GetSegmentImportJobs(GetSegmentImportJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSegmentImportJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSegmentImportJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9780, "before": "public VerifyEmailAddressResult verifyEmailAddress(VerifyEmailAddressRequest request) {request = beforeClientExecution(request);return executeVerifyEmailAddress(request);}", "after": "public virtual VerifyEmailAddressResponse VerifyEmailAddress(VerifyEmailAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = VerifyEmailAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = VerifyEmailAddressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9781, "before": "public GetTagsResult getTags(GetTagsRequest request) {request = beforeClientExecution(request);return executeGetTags(request);}", "after": "public virtual GetTagsResponse GetTags(GetTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTagsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9782, "before": "public String toString(){StringBuilder sb = new StringBuilder();sb.append( text ).append( '(' );for( Toffs to : termsOffsets )sb.append( to.toString() );sb.append( ')' );return sb.toString();}", "after": "public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append(text).Append('(');foreach (Toffs to in termsOffsets)sb.Append(to.ToString());sb.Append(')');return sb.ToString();}" }, { "index": 9783, "before": "public RevFilter clone() {return new Binary(a.clone(), b.clone());}", "after": "public override TreeFilter Clone(){return new OrTreeFilter.Binary(a.Clone(), b.Clone());}" }, { "index": 9784, "before": "public StandardTokenizerImpl(java.io.Reader in) {this.zzReader = in;}", "after": "public StandardTokenizerImpl(TextReader @in){this.zzReader = @in;}" }, { "index": 9785, "before": "public MoPenFindGroupRequest() {super(\"MoPen\", \"2018-02-11\", \"MoPenFindGroup\", \"mopen\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public MoPenFindGroupRequest(): base(\"MoPen\", \"2018-02-11\", \"MoPenFindGroup\", \"mopen\", \"openAPI\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 9786, "before": "public static BreakIterator getLineInstance() {return getLineInstance(Locale.getDefault());}", "after": "public static java.text.BreakIterator getLineInstance(){return getLineInstance(System.Globalization.CultureInfo.CurrentCulture);}" }, { "index": 9787, "before": "public boolean exists() {return true;}", "after": "public virtual bool Exists(){return true;}" }, { "index": 9788, "before": "public LongBuffer asReadOnlyBuffer() {LongToByteBufferAdapter buf = new LongToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf.limit = limit;buf.position = position;buf.mark = mark;buf.byteBuffer.order = byteBuffer.order;return buf;}", "after": "public override java.nio.LongBuffer asReadOnlyBuffer(){java.nio.LongToByteBufferAdapter buf = new java.nio.LongToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf._limit = _limit;buf._position = _position;buf._mark = _mark;buf.byteBuffer._order = byteBuffer._order;return buf;}" }, { "index": 9789, "before": "public void writeBytes(byte[] b, int offset, int length) {assert b.length >= offset + length;if (length == 0) {return;}if (upto == blockSize) {if (currentBlock != null) {addBlock(currentBlock);}currentBlock = new byte[blockSize];upto = 0;}final int offsetEnd = offset + length;while(true) {final int left = offsetEnd - offset;final int blockLeft = blockSize - upto;if (blockLeft < left) {System.arraycopy(b, offset, currentBlock, upto, blockLeft);addBlock(currentBlock);currentBlock = new byte[blockSize];upto = 0;offset += blockLeft;} else {System.arraycopy(b, offset, currentBlock, upto, left);upto += left;break;}}}", "after": "public override void WriteBytes(byte[] b, int offset, int length){Debug.Assert(b.Length >= offset + length);if (length == 0){return;}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;}int offsetEnd = offset + length;while (true){int left = offsetEnd - offset;int blockLeft = outerInstance.blockSize - outerInstance.upto;if (blockLeft < left){System.Buffer.BlockCopy(b, offset, outerInstance.currentBlock, outerInstance.upto, blockLeft);outerInstance.blocks.Add(outerInstance.currentBlock);outerInstance.blockEnd.Add(outerInstance.blockSize);outerInstance.currentBlock = new byte[outerInstance.blockSize];outerInstance.upto = 0;offset += blockLeft;}else{System.Buffer.BlockCopy(b, offset, outerInstance.currentBlock, outerInstance.upto, left);outerInstance.upto += left;break;}}}" }, { "index": 9790, "before": "public ByteBuffer putFloat(float value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putFloat(float value){throw new System.NotImplementedException();}" }, { "index": 9791, "before": "public Class getArgumentClass() {return arg;}", "after": "public virtual System.Type getArgumentClass(){return arg;}" }, { "index": 9792, "before": "public GetVaultAccessPolicyResult getVaultAccessPolicy(GetVaultAccessPolicyRequest request) {request = beforeClientExecution(request);return executeGetVaultAccessPolicy(request);}", "after": "public virtual GetVaultAccessPolicyResponse GetVaultAccessPolicy(GetVaultAccessPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVaultAccessPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVaultAccessPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9793, "before": "public GetReusableDelegationSetLimitResult getReusableDelegationSetLimit(GetReusableDelegationSetLimitRequest request) {request = beforeClientExecution(request);return executeGetReusableDelegationSetLimit(request);}", "after": "public virtual GetReusableDelegationSetLimitResponse GetReusableDelegationSetLimit(GetReusableDelegationSetLimitRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetReusableDelegationSetLimitRequestMarshaller.Instance;options.ResponseUnmarshaller = GetReusableDelegationSetLimitResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9794, "before": "public int compareTo( WeightedPhraseInfo other ) {int diff = getStartOffset() - other.getStartOffset();if ( diff != 0 ) {return diff;}diff = getEndOffset() - other.getEndOffset();if ( diff != 0 ) {return diff;}return (int) Math.signum( getBoost() - other.getBoost() );}", "after": "public virtual int CompareTo(WeightedPhraseInfo other){int diff = StartOffset - other.StartOffset;if (diff != 0){return diff;}diff = EndOffset - other.EndOffset;if (diff != 0){return diff;}return (int)Math.Sign(Boost - other.Boost);}" }, { "index": 9795, "before": "public StopRelationalDatabaseResult stopRelationalDatabase(StopRelationalDatabaseRequest request) {request = beforeClientExecution(request);return executeStopRelationalDatabase(request);}", "after": "public virtual StopRelationalDatabaseResponse StopRelationalDatabase(StopRelationalDatabaseRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopRelationalDatabaseRequestMarshaller.Instance;options.ResponseUnmarshaller = StopRelationalDatabaseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9796, "before": "public void clear() {Arrays.fill(blocks, 0L);}", "after": "public override void Clear(){Arrays.Fill(blocks, 0L);}" }, { "index": 9797, "before": "public UpdateScriptResult updateScript(UpdateScriptRequest request) {request = beforeClientExecution(request);return executeUpdateScript(request);}", "after": "public virtual UpdateScriptResponse UpdateScript(UpdateScriptRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateScriptRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateScriptResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9798, "before": "public InterpreterRuleContext(ParserRuleContext parent,int invokingStateNumber,int ruleIndex){super(parent, invokingStateNumber);this.ruleIndex = ruleIndex;}", "after": "public InterpreterRuleContext(ParserRuleContext parent, int invokingStateNumber, int ruleIndex): base(parent, invokingStateNumber){this.ruleIndex = ruleIndex;}" }, { "index": 9799, "before": "public CreateFileSystemFromBackupResult createFileSystemFromBackup(CreateFileSystemFromBackupRequest request) {request = beforeClientExecution(request);return executeCreateFileSystemFromBackup(request);}", "after": "public virtual CreateFileSystemFromBackupResponse CreateFileSystemFromBackup(CreateFileSystemFromBackupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFileSystemFromBackupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFileSystemFromBackupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9800, "before": "public int getLevelForDistance(double dist) {if (dist == 0){return maxLevels;}int level = S2Projections.MAX_WIDTH.getMinLevel(dist * DistanceUtils.DEGREES_TO_RADIANS);int roundLevel = level % arity != 0 ? 1 : 0;level = level/arity + roundLevel;return Math.min(maxLevels, level + 1);}", "after": "public override int GetLevelForDistance(double dist){if (dist == 0){return m_maxLevels;}int level = GeohashUtils.LookupHashLenForWidthHeight(dist, dist);return Math.Max(Math.Min(level, m_maxLevels), 1);}" }, { "index": 9801, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {ValueEval ve0;ValueEval ve1;try {ve0 = OperandResolver.getSingleValue(arg0, srcRowIndex, srcColumnIndex);ve1 = OperandResolver.getSingleValue(arg1, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {return e.getErrorEval();}StringBuilder sb = new StringBuilder();sb.append(getText(ve0));sb.append(getText(ve1));return new StringEval(sb.toString());}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){ValueEval ve0;ValueEval ve1;try{ve0 = OperandResolver.GetSingleValue(arg0, srcRowIndex, srcColumnIndex);ve1 = OperandResolver.GetSingleValue(arg1, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){return e.GetErrorEval();}StringBuilder sb = new StringBuilder();sb.Append(GetText(ve0));sb.Append(GetText(ve1));return new StringEval(sb.ToString());}" }, { "index": 9802, "before": "public static ChartDataSource fromNumericCellRange(Sheet sheet, CellRangeAddress cellRangeAddress) {return new AbstractCellRangeDataSource(sheet, cellRangeAddress) {@Override", "after": "public static IChartDataSource FromNumericCellRange(ISheet sheet, CellRangeAddress cellRangeAddress) {return new DoubleCellRangeDataSource(sheet, cellRangeAddress);}" }, { "index": 9803, "before": "public static FuncPtg create(LittleEndianInput in) {return create(in.readUShort());}", "after": "public static FuncPtg Create(ILittleEndianInput in1) {return Create(in1.ReadUShort());}" }, { "index": 9804, "before": "public InitiateVaultLockResult initiateVaultLock(InitiateVaultLockRequest request) {request = beforeClientExecution(request);return executeInitiateVaultLock(request);}", "after": "public virtual InitiateVaultLockResponse InitiateVaultLock(InitiateVaultLockRequest request){var options = new InvokeOptions();options.RequestMarshaller = InitiateVaultLockRequestMarshaller.Instance;options.ResponseUnmarshaller = InitiateVaultLockResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9805, "before": "public final K getKey() {return key;}", "after": "public virtual K getKey(){return key;}" }, { "index": 9806, "before": "public boolean isSet(final int holder){return (holder & _mask) != 0;}", "after": "public bool IsSet(int holder){return ((holder & this._mask) != 0);}" }, { "index": 9807, "before": "public DoubleMetaphoneFilter(TokenStream input, int maxCodeLength, boolean inject) {super(input);this.encoder.setMaxCodeLen(maxCodeLength);this.inject = inject;}", "after": "public DoubleMetaphoneFilter(TokenStream input, int maxCodeLength, bool inject): base(input){this.encoder.MaxCodeLen = maxCodeLength;this.inject = inject;this.termAtt = AddAttribute();this.posAtt = AddAttribute();}" }, { "index": 9808, "before": "public boolean changeExternalReference(String oldUrl, String newUrl) {return workbook.changeExternalReference(oldUrl, newUrl);}", "after": "public bool ChangeExternalReference(String oldUrl, String newUrl){return workbook.ChangeExternalReference(oldUrl, newUrl);}" }, { "index": 9809, "before": "public DescribeEngineDefaultParametersRequest(String cacheParameterGroupFamily) {setCacheParameterGroupFamily(cacheParameterGroupFamily);}", "after": "public DescribeEngineDefaultParametersRequest(string cacheParameterGroupFamily){_cacheParameterGroupFamily = cacheParameterGroupFamily;}" }, { "index": 9810, "before": "public void extendB() {endB++;}", "after": "public virtual void ExtendB(){endB++;}" }, { "index": 9811, "before": "public JapaneseReadingFormFilter(TokenStream input, boolean useRomaji) {super(input);this.useRomaji = useRomaji;}", "after": "public JapaneseReadingFormFilter(TokenStream input, bool useRomaji): base(input){this.useRomaji = useRomaji;this.termAttr = AddAttribute();this.readingAttr = AddAttribute();}" }, { "index": 9812, "before": "public DeleteContactResult deleteContact(DeleteContactRequest request) {request = beforeClientExecution(request);return executeDeleteContact(request);}", "after": "public virtual DeleteContactResponse DeleteContact(DeleteContactRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteContactRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteContactResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9813, "before": "public static final int next(byte[] b, int ptr, char chrA) {final int sz = b.length;while (ptr < sz) {if (b[ptr++] == chrA)return ptr;}return ptr;}", "after": "public static int Next(byte[] b, int ptr, char chrA){int sz = b.Length;while (ptr < sz){if (b[ptr++] == chrA){return ptr;}}return ptr;}" }, { "index": 9814, "before": "public InvokeEndpointResult invokeEndpoint(InvokeEndpointRequest request) {request = beforeClientExecution(request);return executeInvokeEndpoint(request);}", "after": "public virtual InvokeEndpointResponse InvokeEndpoint(InvokeEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = InvokeEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = InvokeEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9815, "before": "public PutAccountSettingDefaultResult putAccountSettingDefault(PutAccountSettingDefaultRequest request) {request = beforeClientExecution(request);return executePutAccountSettingDefault(request);}", "after": "public virtual PutAccountSettingDefaultResponse PutAccountSettingDefault(PutAccountSettingDefaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAccountSettingDefaultRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAccountSettingDefaultResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9816, "before": "public static Path categoriesLineFile(Path f) {Path dir = f.toAbsolutePath().getParent();String categoriesName = \"categories-\"+f.getFileName();return dir.resolve(categoriesName);}", "after": "public static FileInfo CategoriesLineFile(FileInfo f){DirectoryInfo dir = f.Directory;string categoriesName = \"categories-\" + f.Name;return dir == null ? new FileInfo(categoriesName) : new FileInfo(System.IO.Path.Combine(dir.FullName, categoriesName));}" }, { "index": 9817, "before": "public String toJson() {return new JsonPolicyWriter().writePolicyToString(this);}", "after": "public string ToJson(){return ToJson(true);}" }, { "index": 9818, "before": "public String getFunctionName(int idx) {return _funcMap.get(idx);}", "after": "public String GetFunctionName(int idx){return _funcMap[idx];}" }, { "index": 9819, "before": "public RecordHandlerProgressResult recordHandlerProgress(RecordHandlerProgressRequest request) {request = beforeClientExecution(request);return executeRecordHandlerProgress(request);}", "after": "public virtual RecordHandlerProgressResponse RecordHandlerProgress(RecordHandlerProgressRequest request){var options = new InvokeOptions();options.RequestMarshaller = RecordHandlerProgressRequestMarshaller.Instance;options.ResponseUnmarshaller = RecordHandlerProgressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9820, "before": "public synchronized StringBuffer insert(int index, char[] chars, int start, int length) {insert0(index, chars, start, length);return this;}", "after": "public java.lang.StringBuffer insert(int index, char[] chars, int start, int length_1){lock (this){insert0(index, chars, start, length_1);return this;}}" }, { "index": 9821, "before": "public RevObject lookupAny(AnyObjectId id, int type) {RevObject r = objects.get(id);if (r == null) {switch (type) {case Constants.OBJ_COMMIT:r = createCommit(id);break;case Constants.OBJ_TREE:r = new RevTree(id);break;case Constants.OBJ_BLOB:r = new RevBlob(id);break;case Constants.OBJ_TAG:r = new RevTag(id);break;default:throw new IllegalArgumentException(MessageFormat.format(JGitText.get().invalidGitType, Integer.valueOf(type)));}objects.add(r);}return r;}", "after": "public virtual RevObject LookupAny(AnyObjectId id, int type){RevObject r = objects.Get(id);if (r == null){switch (type){case Constants.OBJ_COMMIT:{r = CreateCommit(id);break;}case Constants.OBJ_TREE:{r = new RevTree(id);break;}case Constants.OBJ_BLOB:{r = new RevBlob(id);break;}case Constants.OBJ_TAG:{r = new RevTag(id);break;}default:{throw new ArgumentException(MessageFormat.Format(JGitText.Get().invalidGitType, Sharpen.Extensions.ValueOf(type)));}}objects.Add(r);}return r;}" }, { "index": 9822, "before": "public BytesRef encode(char[] buffer) {return encode(buffer, 0, buffer.length);}", "after": "public virtual BytesRef Encode(char[] buffer){return Encode(buffer, 0, buffer.Length);}" }, { "index": 9823, "before": "public StringBuilder append(int i) {IntegralToString.appendInt(this, i);return this;}", "after": "public java.lang.StringBuilder append(char c){append0(c);return this;}" }, { "index": 9824, "before": "public void removeName(Name name) {int index = getNameIndex((HSSFName) name);removeName(index);}", "after": "public void RemoveName(String name){int index = GetNameIndex(name);RemoveName(index);}" }, { "index": 9825, "before": "public WrappedPositionArray() {for(int i=0;i(request, options);}" }, { "index": 9830, "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)){state.CopyFrom(otherState);term = BytesRef.DeepCopyOf(target);seekPending = true;}}" }, { "index": 9831, "before": "public void println() {newline();}", "after": "public virtual void println(){newline();}" }, { "index": 9832, "before": "public String toString() {return \"NRTCachingDirectory(\" + in + \"; maxCacheMB=\" + (maxCachedBytes/1024/1024.) + \" maxMergeSizeMB=\" + (maxMergeSizeBytes/1024/1024.) + \")\";}", "after": "public override string ToString(){return \"NRTCachingDirectory(\" + @delegate + \"; maxCacheMB=\" + (maxCachedBytes / 1024 / 1024.0) + \" maxMergeSizeMB=\" + (maxMergeSizeBytes / 1024 / 1024.0) + \")\";}" }, { "index": 9833, "before": "public DescribeWorkforceResult describeWorkforce(DescribeWorkforceRequest request) {request = beforeClientExecution(request);return executeDescribeWorkforce(request);}", "after": "public virtual DescribeWorkforceResponse DescribeWorkforce(DescribeWorkforceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkforceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkforceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9834, "before": "public ToggleFeaturesRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"ToggleFeatures\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public ToggleFeaturesRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"ToggleFeatures\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 9835, "before": "public synchronized StringBuffer append(char[] chars, int start, int length) {append0(chars, start, length);return this;}", "after": "public java.lang.StringBuffer append(char[] chars, int start, int length_1){lock (this){append0(chars, start, length_1);return this;}}" }, { "index": 9836, "before": "public ShortBuffer put(short c) {if (position == limit) {throw new BufferOverflowException();}byteBuffer.putShort(position++ * SizeOf.SHORT, c);return this;}", "after": "public override java.nio.ShortBuffer put(short c){if (_position == _limit){throw new java.nio.BufferOverflowException();}byteBuffer.putShort(_position++ * libcore.io.SizeOf.SHORT, c);return this;}" }, { "index": 9837, "before": "public char last() {index = (limit == start) ? limit : limit - 1;return current();}", "after": "public override char Last(){index = (limit == start) ? limit : limit - 1;return Current;}" }, { "index": 9838, "before": "public WeightedSpanTermExtractor(String defaultField) {this.defaultField = defaultField;}", "after": "public WeightedSpanTermExtractor(string defaultField){if (defaultField != null){this.defaultField = defaultField.Intern();}}" }, { "index": 9839, "before": "public StringReader(String str) {this.str = str;this.count = str.length();}", "after": "public StringReader(string str){this.str = str;this.count = str.Length;}" }, { "index": 9840, "before": "public GetThumbnailsRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"GetThumbnails\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetThumbnailsRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"GetThumbnails\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 9841, "before": "public TagCommand setName(String name) {checkCallable();this.name = name;return this;}", "after": "public virtual NGit.Api.TagCommand SetName(string name){CheckCallable();this.name = name;return this;}" }, { "index": 9842, "before": "@Override public String toString() {synchronized (mutex) {return c.toString();}}", "after": "public override string ToString(){lock (mutex){return c.ToString();}}" }, { "index": 9843, "before": "public String toString() {return toString((List)null, (RuleContext)null);}", "after": "public override string ToString(){return ToString((IList)null, (Antlr4.Runtime.RuleContext)null);}" }, { "index": 9844, "before": "public String toString() {return \"StandardDirectoryReader.ReaderCommit(\" + segmentsFileName + \" files=\" + files + \")\";}", "after": "public override string ToString(){return \"DirectoryReader.ReaderCommit(\" + segmentsFileName + \")\";}" }, { "index": 9845, "before": "public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {int bytesAfterHeader = readHeader( data, offset );int pos = offset + HEADER_SIZE;field_pictureData = IOUtils.safelyAllocate(bytesAfterHeader, MAX_RECORD_LENGTH);System.arraycopy(data, pos, field_pictureData, 0, bytesAfterHeader);return bytesAfterHeader + 8;}", "after": "public override int FillFields(byte[] data, int offset, IEscherRecordFactory recordFactory){int bytesAfterHeader = ReadHeader(data, offset);int pos = offset + HEADER_SIZE;field_pictureData = new byte[bytesAfterHeader];Array.Copy(data, pos, field_pictureData, 0, bytesAfterHeader);return bytesAfterHeader + 8;}" }, { "index": 9846, "before": "public static int[] copyOf(int[] original, int newLength) {if (newLength < 0) {throw new NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}", "after": "public static int[] copyOf(int[] original, int newLength){if (newLength < 0){throw new java.lang.NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}" }, { "index": 9847, "before": "public void serialize(LittleEndianOutput out) {out.write(data);}", "after": "public void Serialize(ILittleEndianOutput out1){out1.Write(data);}" }, { "index": 9848, "before": "public E get(int location) {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;}}return link.data;}throw new IndexOutOfBoundsException();}", "after": "public override E get(int location){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;}}}return link.data;}throw new System.IndexOutOfRangeException();}" }, { "index": 9849, "before": "public static boolean hasExactSharedBorder(CellRangeAddress crA, CellRangeAddress crB) {int oFirstRow = crB.getFirstRow();int oLastRow = crB.getLastRow();int oFirstCol = crB.getFirstColumn();int oLastCol = crB.getLastColumn();if (crA.getFirstRow() > 0 && crA.getFirstRow()-1 == oLastRow ||oFirstRow > 0 && oFirstRow-1 == crA.getLastRow()) {return crA.getFirstColumn() == oFirstCol && crA.getLastColumn() == oLastCol;}if (crA.getFirstColumn()>0 && crA.getFirstColumn() - 1 == oLastCol ||oFirstCol>0 && crA.getLastColumn() == oFirstCol -1) {return crA.getFirstRow() == oFirstRow && crA.getLastRow() == oLastRow;}return false;}", "after": "public static bool HasExactSharedBorder(CellRangeAddress crA, CellRangeAddress crB){int oFirstRow = crB.FirstRow;int oLastRow = crB.LastRow;int oFirstCol = crB.FirstColumn;int oLastCol = crB.LastColumn;if (crA.FirstRow > 0 && crA.FirstRow - 1 == oLastRow ||oFirstRow > 0 && oFirstRow - 1 == crA.LastRow){return crA.FirstColumn == oFirstCol && crA.LastColumn == oLastCol;}if (crA.FirstColumn > 0 && crA.FirstColumn - 1 == oLastCol ||oFirstCol > 0 && crA.LastColumn == oFirstCol - 1){return crA.FirstRow == oFirstRow && crA.LastRow == oLastRow;}return false;}" }, { "index": 9850, "before": "public void visitCellsForRow(int rowIndex, RecordVisitor rv) {CellValueRecordInterface[] rowCells = records[rowIndex];if(rowCells == null) {throw new IllegalArgumentException(\"Row [\" + rowIndex + \"] is empty\");}for (int i = 0; i < rowCells.length; i++) {RecordBase cvr = (RecordBase) rowCells[i];if(cvr == null) {continue;}int nBlank = countBlanks(rowCells, i);if (nBlank > 1) {rv.visitRecord(createMBR(rowCells, i, nBlank));i+=nBlank-1;} else if (cvr instanceof RecordAggregate) {RecordAggregate agg = (RecordAggregate) cvr;agg.visitContainedRecords(rv);} else {rv.visitRecord((org.apache.poi.hssf.record.Record) cvr);}}}", "after": "public void VisitCellsForRow(int rowIndex, RecordVisitor rv){CellValueRecordInterface[] rowCells = records[rowIndex];if (rowCells == null){throw new ArgumentException(\"Row [\" + rowIndex + \"] is empty\");}for (int i = 0; i < rowCells.Length; i++){RecordBase cvr = (RecordBase)rowCells[i];if (cvr == null){continue;}int nBlank = CountBlanks(rowCells, i);if (nBlank > 1){rv.VisitRecord(CreateMBR(rowCells, i, nBlank));i += nBlank - 1;}else if (cvr is RecordAggregate){RecordAggregate agg = (RecordAggregate)cvr;agg.VisitContainedRecords(rv);}else{rv.VisitRecord((Record)cvr);}}}" }, { "index": 9851, "before": "public DeleteVpnConnectionResult deleteVpnConnection(DeleteVpnConnectionRequest request) {request = beforeClientExecution(request);return executeDeleteVpnConnection(request);}", "after": "public virtual DeleteVpnConnectionResponse DeleteVpnConnection(DeleteVpnConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpnConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpnConnectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9852, "before": "public void clear() {username = null;if (password != null) {Arrays.fill(password, (char) 0);password = null;}}", "after": "public virtual void Clear(){username = null;if (password != null){Arrays.Fill(password, (char)0);password = null;}}" }, { "index": 9853, "before": "public String toString() {return String.format(Locale.ROOT,\"time=%.2f sec. total (%.2f reading, %.2f sorting, %.2f merging), lines=%d, temp files=%d, merges=%d, soft ram limit=%.2f MB\",totalTimeMS / 1000.0d, readTimeMS / 1000.0d, sortTimeMS.get() / 1000.0d, mergeTimeMS.get() / 1000.0d,lineCount, tempMergeFiles, mergeRounds,(double) bufferSize / MB);}", "after": "public override string ToString(){return string.Format(CultureInfo.InvariantCulture,\"time={0:0.00} sec. total ({1:0.00} reading, {2:0.00} sorting, {3:0.00} merging), lines={4}, temp files={5}, merges={6}, soft ram limit={7:0.00} MB\",TotalTime / 1000.0d, ReadTime / 1000.0d, SortTime / 1000.0d, MergeTime / 1000.0d,Lines, TempMergeFiles, MergeRounds,(double)BufferSize / MB);}" }, { "index": 9854, "before": "public DetachLoadBalancersResult detachLoadBalancers(DetachLoadBalancersRequest request) {request = beforeClientExecution(request);return executeDetachLoadBalancers(request);}", "after": "public virtual DetachLoadBalancersResponse DetachLoadBalancers(DetachLoadBalancersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachLoadBalancersRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachLoadBalancersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9855, "before": "public synchronized Span[] splitSentences(String line) {if (sentenceSplitter != null) {return sentenceSplitter.sentPosDetect(line);} else {Span[] shorty = new Span[1];shorty[0] = new Span(0, line.length());return shorty;}}", "after": "public virtual Span[] SplitSentences(string line){lock (this){if (sentenceSplitter != null){return sentenceSplitter.sentPosDetect(line);}else{Span[] shorty = new Span[1];shorty[0] = new Span(0, line.Length);return shorty;}}}" }, { "index": 9856, "before": "public boolean isRemote() {return getHost() != null;}", "after": "public virtual bool IsRemote(){return GetHost() != null;}" }, { "index": 9857, "before": "public void setBuiltinStyle(int builtinStyleId) {field_1_xf_index = isBuiltinFlag.set(field_1_xf_index);field_2_builtin_style = builtinStyleId;}", "after": "public void SetBuiltinStyle(int builtinStyleId){field_1_xf_index = isBuiltinFlag.Set(field_1_xf_index);field_2_builtin_style = builtinStyleId;}" }, { "index": 9858, "before": "public ObjectReader getObjectReader() {return reader;}", "after": "public virtual ObjectReader GetObjectReader(){return reader;}" }, { "index": 9859, "before": "public void addEscherProperty( EscherProperty prop ){properties.add( prop );}", "after": "public void AddEscherProperty(EscherProperty prop){properties.Add(prop);}" }, { "index": 9860, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(\"[\").append(\"USERSVIEWBEGIN\").append(\"] (0x\");sb.append(Integer.toHexString(sid).toUpperCase(Locale.ROOT)).append(\")\\n\");sb.append(\" rawData=\").append(HexDump.toHex(_rawData)).append(\"\\n\");sb.append(\"[/\").append(\"USERSVIEWBEGIN\").append(\"]\\n\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(\"[\").Append(\"USERSVIEWBEGIN\").Append(\"] (0x\");sb.Append(StringUtil.ToHexString(sid).ToUpper() + \")\\n\");sb.Append(\" rawData=\").Append(HexDump.ToHex(_rawData)).Append(\"\\n\");sb.Append(\"[/\").Append(\"USERSVIEWBEGIN\").Append(\"]\\n\");return sb.ToString();}" }, { "index": 9861, "before": "public String group(int group) {ensureMatch();int from = matchOffsets[group * 2];int to = matchOffsets[(group * 2) + 1];if (from == -1 || to == -1) {return null;} else {return input.substring(from, to);}}", "after": "public string group(int group_1){ensureMatch();int from = matchOffsets[group_1 * 2];int to = matchOffsets[(group_1 * 2) + 1];if (from == -1 || to == -1){return null;}else{return Sharpen.StringHelper.Substring(input, from, to);}}" }, { "index": 9862, "before": "public void removeCompany() {remove1stProperty(PropertyIDMap.PID_COMPANY);}", "after": "public void RemoveCompany(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_COMPANY);}" }, { "index": 9863, "before": "public RevFilter clone() {final RevFilter[] s = new RevFilter[subfilters.length];for (int i = 0; i < s.length; i++)s[i] = subfilters[i].clone();return new List(s);}", "after": "public override RevFilter Clone(){RevFilter[] s = new RevFilter[subfilters.Length];for (int i = 0; i < s.Length; i++){s[i] = subfilters[i].Clone();}return new OrRevFilter.List(s);}" }, { "index": 9864, "before": "public static Charset defaultCharset() {return DEFAULT_CHARSET;}", "after": "public static java.nio.charset.Charset defaultCharset(){return DEFAULT_CHARSET;}" }, { "index": 9865, "before": "public void removeName(Name name) {int index = getNameIndex((HSSFName) name);removeName(index);}", "after": "public void RemoveName(HSSFName name){int index = GetNameIndex(name);RemoveName(index);}" }, { "index": 9866, "before": "public AttributeValueUpdate(AttributeValue value, AttributeAction action) {setValue(value);setAction(action.toString());}", "after": "public AttributeValueUpdate(AttributeValue value, AttributeAction action){_value = value;_action = action;}" }, { "index": 9867, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[FOOTER]\\n\");buffer.append(\" .footer = \").append(getText()).append(\"\\n\");buffer.append(\"[/FOOTER]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[FOOTER]\\n\");buffer.Append(\" .footer = \").Append(this.Text).Append(\"\\n\");buffer.Append(\"[/FOOTER]\\n\");return buffer.ToString();}" }, { "index": 9868, "before": "public DisassociateSkillFromSkillGroupResult disassociateSkillFromSkillGroup(DisassociateSkillFromSkillGroupRequest request) {request = beforeClientExecution(request);return executeDisassociateSkillFromSkillGroup(request);}", "after": "public virtual DisassociateSkillFromSkillGroupResponse DisassociateSkillFromSkillGroup(DisassociateSkillFromSkillGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateSkillFromSkillGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateSkillFromSkillGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9869, "before": "public String toString(String field) {StringBuilder buffer = new StringBuilder();if (!getField().equals(field)) {buffer.append(getField());buffer.append(':');}buffer.append(term.text());buffer.append('*');return buffer.toString();}", "after": "public override string ToString(string field){StringBuilder buffer = new StringBuilder();if (!Field.Equals(field, StringComparison.Ordinal)){buffer.Append(Field);buffer.Append(\":\");}buffer.Append(_prefix.Text());buffer.Append('*');buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}" }, { "index": 9870, "before": "public NameRecord getNameRecord(int index) {return _definedNames.get(index);}", "after": "public NameRecord GetNameRecord(int index){return (NameRecord)_definedNames[index];}" }, { "index": 9871, "before": "public BottomMarginRecord clone() {return copy();}", "after": "public override Object Clone(){BottomMarginRecord rec = new BottomMarginRecord();rec.field_1_margin = this.field_1_margin;return rec;}" }, { "index": 9872, "before": "@Override public V setValue(V object) {throw new UnsupportedOperationException();}", "after": "public virtual V setValue(V @object){throw new System.NotSupportedException();}" }, { "index": 9873, "before": "public QuadPrefixTree(SpatialContext ctx, Rectangle bounds, int maxLevels) {super(ctx, maxLevels);this.xmin = bounds.getMinX();this.xmax = bounds.getMaxX();this.ymin = bounds.getMinY();this.ymax = bounds.getMaxY();levelW = new double[maxLevels + 1];levelH = new double[maxLevels + 1];gridW = xmax - xmin;gridH = ymax - ymin;this.xmid = xmin + gridW/2.0;this.ymid = ymin + gridH/2.0;levelW[0] = gridW/2.0;levelH[0] = gridH/2.0;for (int i = 1; i < levelW.length; i++) {levelW[i] = levelW[i - 1] / 2.0;levelH[i] = levelH[i - 1] / 2.0;}}", "after": "public QuadPrefixTree(SpatialContext ctx, IRectangle bounds, int maxLevels): base(ctx, maxLevels){xmin = bounds.MinX;xmax = bounds.MaxX;ymin = bounds.MinY;ymax = bounds.MaxY;levelW = new double[maxLevels];levelH = new double[maxLevels];levelS = new int[maxLevels];levelN = new int[maxLevels];gridW = xmax - xmin;gridH = ymax - ymin;this.xmid = xmin + gridW / 2.0;this.ymid = ymin + gridH / 2.0;levelW[0] = gridW / 2.0;levelH[0] = gridH / 2.0;levelS[0] = 2;levelN[0] = 4;for (int i = 1; i < levelW.Length; i++){levelW[i] = levelW[i - 1] / 2.0;levelH[i] = levelH[i - 1] / 2.0;levelS[i] = levelS[i - 1] * 2;levelN[i] = levelN[i - 1] * 4;}}" }, { "index": 9874, "before": "public static HSSFAnchor createAnchorFromEscher(EscherContainerRecord container){if (null != container.getChildById(EscherChildAnchorRecord.RECORD_ID)){return new HSSFChildAnchor(container.getChildById(EscherChildAnchorRecord.RECORD_ID));} else {if (null != container.getChildById(EscherClientAnchorRecord.RECORD_ID)){return new HSSFClientAnchor(container.getChildById(EscherClientAnchorRecord.RECORD_ID));}return null;}}", "after": "public static HSSFAnchor CreateAnchorFromEscher(EscherContainerRecord container){if (null != container.GetChildById(EscherChildAnchorRecord.RECORD_ID)){return new HSSFChildAnchor((EscherChildAnchorRecord)container.GetChildById(EscherChildAnchorRecord.RECORD_ID));}else{if (null != container.GetChildById(EscherClientAnchorRecord.RECORD_ID)){return new HSSFClientAnchor((EscherClientAnchorRecord)container.GetChildById(EscherClientAnchorRecord.RECORD_ID));}return null;}}" }, { "index": 9875, "before": "public void reset() {if ( _input !=null ) {_input.seek(0); }_token = null;_type = Token.INVALID_TYPE;_channel = Token.DEFAULT_CHANNEL;_tokenStartCharIndex = -1;_tokenStartCharPositionInLine = -1;_tokenStartLine = -1;_text = null;_hitEOF = false;_mode = Lexer.DEFAULT_MODE;_modeStack.clear();getInterpreter().reset();}", "after": "public virtual void Reset(){if (_input != null){_input.Seek(0);}_token = null;_type = TokenConstants.InvalidType;_channel = TokenConstants.DefaultChannel;_tokenStartCharIndex = -1;_tokenStartColumn = -1;_tokenStartLine = -1;_text = null;_hitEOF = false;_mode = Antlr4.Runtime.Lexer.DEFAULT_MODE;_modeStack.Clear();Interpreter.Reset();}" }, { "index": 9876, "before": "public ShortBuffer slice() {byteBuffer.limit(limit * SizeOf.SHORT);byteBuffer.position(position * SizeOf.SHORT);ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());ShortBuffer result = new ShortToByteBufferAdapter(bb);byteBuffer.clear();return result;}", "after": "public override java.nio.ShortBuffer slice(){byteBuffer.limit(_limit * libcore.io.SizeOf.SHORT);byteBuffer.position(_position * libcore.io.SizeOf.SHORT);java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());java.nio.ShortBuffer result = new java.nio.ShortToByteBufferAdapter(bb);byteBuffer.clear();return result;}" }, { "index": 9877, "before": "public boolean isPackedGitMMAP() {return packedGitMMAP;}", "after": "public virtual bool IsPackedGitMMAP(){return packedGitMMAP;}" }, { "index": 9878, "before": "public boolean equalsSameType(Object other) {assert exists || 0.0D == value;MutableValueDouble b = (MutableValueDouble)other;return value == b.value && exists == b.exists;}", "after": "public override bool EqualsSameType(object other){MutableValueDouble b = (MutableValueDouble)other;return Value == b.Value && Exists == b.Exists;}" }, { "index": 9879, "before": "public PurchaseReservedInstancesOfferingResult purchaseReservedInstancesOffering(PurchaseReservedInstancesOfferingRequest request) {request = beforeClientExecution(request);return executePurchaseReservedInstancesOffering(request);}", "after": "public virtual PurchaseReservedInstancesOfferingResponse PurchaseReservedInstancesOffering(PurchaseReservedInstancesOfferingRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurchaseReservedInstancesOfferingRequestMarshaller.Instance;options.ResponseUnmarshaller = PurchaseReservedInstancesOfferingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9880, "before": "public final char readChar() throws IOException {return (char) readShort();}", "after": "public virtual char readChar(){throw new System.NotImplementedException();}" }, { "index": 9881, "before": "public AssociateRepositoryResult associateRepository(AssociateRepositoryRequest request) {request = beforeClientExecution(request);return executeAssociateRepository(request);}", "after": "public virtual AssociateRepositoryResponse AssociateRepository(AssociateRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateRepositoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9882, "before": "public ImportApiKeysResult importApiKeys(ImportApiKeysRequest request) {request = beforeClientExecution(request);return executeImportApiKeys(request);}", "after": "public virtual ImportApiKeysResponse ImportApiKeys(ImportApiKeysRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportApiKeysRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportApiKeysResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9883, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(field_1_index_extern_sheet);out.writeInt(unused1);out.writeInt(unused2);}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(field_1_index_extern_sheet);out1.WriteInt(unused1);out1.WriteInt(unused2);}" }, { "index": 9884, "before": "public Type getType() {return type;}", "after": "public virtual BinaryHunk.Type GetType(){return type;}" }, { "index": 9885, "before": "public static Calendar getJavaCalendar(double date, boolean use1904windowing) {return getJavaCalendar(date, use1904windowing, null, false);}", "after": "public static DateTime GetJavaCalendar(double date, bool use1904windowing){return GetJavaCalendar(date, use1904windowing, false);}" }, { "index": 9886, "before": "public DeleteSnapshotScheduleResult deleteSnapshotSchedule(DeleteSnapshotScheduleRequest request) {request = beforeClientExecution(request);return executeDeleteSnapshotSchedule(request);}", "after": "public virtual DeleteSnapshotScheduleResponse DeleteSnapshotSchedule(DeleteSnapshotScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSnapshotScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSnapshotScheduleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9887, "before": "public void writeProtectWorkbook( String password, String username ) {this.workbook.writeProtectWorkbook(password, username);}", "after": "public void WriteProtectWorkbook(String password, String username){this.workbook.WriteProtectWorkbook(password, username);}" }, { "index": 9888, "before": "public CreateCloudFormationStackResult createCloudFormationStack(CreateCloudFormationStackRequest request) {request = beforeClientExecution(request);return executeCreateCloudFormationStack(request);}", "after": "public virtual CreateCloudFormationStackResponse CreateCloudFormationStack(CreateCloudFormationStackRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCloudFormationStackRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCloudFormationStackResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9889, "before": "public void writeByte(byte b) throws IOException {assert bufferPos == buffer.position(): \"bufferPos=\" + bufferPos + \" vs buffer.position()=\" + buffer.position();buffer.put(b);if (++bufferPos == bufferSize) {dump();}}", "after": "public void writeByte(sbyte b) throws IOException{Debug.Assert(bufferPos == buffer.position(), \"bufferPos=\" + bufferPos + \" vs buffer.position()=\" + buffer.position());buffer.put(b);if (++bufferPos == bufferSize){dump();}}" }, { "index": 9890, "before": "public ExtendedFormatRecord(RecordInputStream in) {field_1_font_index = in.readShort();field_2_format_index = in.readShort();field_3_cell_options = in.readShort();field_4_alignment_options = in.readShort();field_5_indention_options = in.readShort();field_6_border_options = in.readShort();field_7_palette_options = in.readShort();field_8_adtl_palette_options = in.readInt();field_9_fill_palette_options = in.readShort();}", "after": "public ExtendedFormatRecord(RecordInputStream in1){field_1_font_index = in1.ReadShort();field_2_format_index = in1.ReadShort();field_3_cell_options = in1.ReadShort();field_4_alignment_options = in1.ReadShort();field_5_indention_options = in1.ReadShort();field_6_border_options = in1.ReadShort();field_7_palette_options = in1.ReadShort();field_8_adtl_palette_options = in1.ReadInt();field_9_fill_palette_options = in1.ReadShort();}" }, { "index": 9891, "before": "public int getExternalSheetIndex(String workbookName, String sheetName) {return _iBook.getExternalSheetIndex(workbookName, sheetName);}", "after": "public int GetExternalSheetIndex(String workbookName, String sheetName){return _iBook.GetExternalSheetIndex(workbookName, sheetName);}" }, { "index": 9892, "before": "public HSSFObjectData(EscherContainerRecord spContainer, ObjRecord objRecord, DirectoryEntry _root) {super(spContainer, objRecord);this._root = _root;}", "after": "public HSSFObjectData(EscherContainerRecord spContainer, ObjRecord objRecord, DirectoryEntry _root): base(spContainer, objRecord){this._root = _root;}" }, { "index": 9893, "before": "public long ramBytesUsed() {return super.ramBytesUsed()+ offsets.ramBytesUsed()+ lengths.ramBytesUsed()+ RamUsageEstimator.NUM_BYTES_OBJECT_HEADER+ 2 * Integer.BYTES+ 3 * RamUsageEstimator.NUM_BYTES_OBJECT_REF+ values.bytes().length;}", "after": "public virtual long RamBytesUsed(){long bytesUsed = RamUsageEstimator.AlignObjectSize(BaseRamBytesUsed()) + (pending != null ? RamUsageEstimator.SizeOf(pending) : 0L) + RamUsageEstimator.AlignObjectSize(RamUsageEstimator.NUM_BYTES_ARRAY_HEADER + (long)RamUsageEstimator.NUM_BYTES_OBJECT_REF * values.Length); return bytesUsed + valuesBytes;}" }, { "index": 9894, "before": "public UpdateApnsVoipChannelResult updateApnsVoipChannel(UpdateApnsVoipChannelRequest request) {request = beforeClientExecution(request);return executeUpdateApnsVoipChannel(request);}", "after": "public virtual UpdateApnsVoipChannelResponse UpdateApnsVoipChannel(UpdateApnsVoipChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApnsVoipChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApnsVoipChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9895, "before": "public String[] getNames() {return nameValPairs.keySet().toArray(new String[0]);}", "after": "public virtual string[] GetNames(){return nameValPairs.Keys.ToArray();}" }, { "index": 9896, "before": "public DeleteAutoSnapshotResult deleteAutoSnapshot(DeleteAutoSnapshotRequest request) {request = beforeClientExecution(request);return executeDeleteAutoSnapshot(request);}", "after": "public virtual DeleteAutoSnapshotResponse DeleteAutoSnapshot(DeleteAutoSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAutoSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAutoSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9897, "before": "public int getLowIx() {return _lowIx;}", "after": "public int GetLowIx(){return _lowIx;}" }, { "index": 9898, "before": "public DescribeSubscribedWorkteamResult describeSubscribedWorkteam(DescribeSubscribedWorkteamRequest request) {request = beforeClientExecution(request);return executeDescribeSubscribedWorkteam(request);}", "after": "public virtual DescribeSubscribedWorkteamResponse DescribeSubscribedWorkteam(DescribeSubscribedWorkteamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSubscribedWorkteamRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSubscribedWorkteamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9899, "before": "public DeleteVpnGatewayResult deleteVpnGateway(DeleteVpnGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteVpnGateway(request);}", "after": "public virtual DeleteVpnGatewayResponse DeleteVpnGateway(DeleteVpnGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpnGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpnGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9900, "before": "public boolean get(int index) {return intSet.exists(index);}", "after": "public virtual bool Get(int index){return intSet.Exists(index);}" }, { "index": 9901, "before": "public String constantName() {return constantName;}", "after": "public virtual string constantName(){return _constantName;}" }, { "index": 9902, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_formatIndex);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_formatIndex);}" }, { "index": 9903, "before": "public boolean isEmpty() {return size() == 0;}", "after": "public virtual bool isEmpty(){return size() == 0;}" }, { "index": 9904, "before": "public DescribeCacheParametersResult describeCacheParameters(DescribeCacheParametersRequest request) {request = beforeClientExecution(request);return executeDescribeCacheParameters(request);}", "after": "public virtual DescribeCacheParametersResponse DescribeCacheParameters(DescribeCacheParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCacheParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCacheParametersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9905, "before": "public SimpleFraction(int numerator, int denominator){this.numerator = numerator;this.denominator = denominator;}", "after": "public SimpleFraction(int numerator, int denominator){this.numerator = numerator;this.denominator = denominator;}" }, { "index": 9906, "before": "public static int idealBooleanArraySize(int need) {return idealByteArraySize(need);}", "after": "public static int idealBooleanArraySize(int need){return idealByteArraySize(need);}" }, { "index": 9907, "before": "public SubmoduleStatusCommand submoduleStatus() {return new SubmoduleStatusCommand(repo);}", "after": "public virtual SubmoduleStatusCommand SubmoduleStatus(){return new SubmoduleStatusCommand(repo);}" }, { "index": 9908, "before": "public PutRecordBatchResult putRecordBatch(PutRecordBatchRequest request) {request = beforeClientExecution(request);return executePutRecordBatch(request);}", "after": "public virtual PutRecordBatchResponse PutRecordBatch(PutRecordBatchRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutRecordBatchRequestMarshaller.Instance;options.ResponseUnmarshaller = PutRecordBatchResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9909, "before": "public QueryTermScorer(WeightedTerm[] weightedTerms) {termsToFind = new HashMap<>();for (int i = 0; i < weightedTerms.length; i++) {WeightedTerm existingTerm = termsToFind.get(weightedTerms[i].term);if ((existingTerm == null)|| (existingTerm.weight < weightedTerms[i].weight)) {termsToFind.put(weightedTerms[i].term, weightedTerms[i]);maxTermWeight = Math.max(maxTermWeight, weightedTerms[i].getWeight());}}}", "after": "public QueryTermScorer(WeightedTerm[] weightedTerms){termsToFind = new Dictionary();for (int i = 0; i < weightedTerms.Length; i++){if (!termsToFind.TryGetValue(weightedTerms[i].Term, out WeightedTerm existingTerm)|| (existingTerm == null)|| (existingTerm.Weight < weightedTerms[i].Weight)){termsToFind[weightedTerms[i].Term] = weightedTerms[i];maxTermWeight = Math.Max(maxTermWeight, weightedTerms[i].Weight);}}}" }, { "index": 9910, "before": "public static boolean allSubsetsConflict(Collection altsets) {return !hasNonConflictingAltSet(altsets);}", "after": "public static bool AllSubsetsConflict(IEnumerable altsets){return !HasNonConflictingAltSet(altsets);}" }, { "index": 9911, "before": "public DescribeRuntimeConfigurationResult describeRuntimeConfiguration(DescribeRuntimeConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeRuntimeConfiguration(request);}", "after": "public virtual DescribeRuntimeConfigurationResponse DescribeRuntimeConfiguration(DescribeRuntimeConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRuntimeConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRuntimeConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9912, "before": "public RevCommit parseCommit(AnyObjectId id)throws MissingObjectException, IncorrectObjectTypeException,IOException {RevObject c = peel(parseAny(id));if (!(c instanceof RevCommit))throw new IncorrectObjectTypeException(id.toObjectId(),Constants.TYPE_COMMIT);return (RevCommit) c;}", "after": "public virtual RevCommit ParseCommit(AnyObjectId id){RevObject c = Peel(ParseAny(id));if (!(c is RevCommit)){throw new IncorrectObjectTypeException(id.ToObjectId(), Constants.TYPE_COMMIT);}return (RevCommit)c;}" }, { "index": 9913, "before": "public short readShort() {return (short)readUShort();}", "after": "public short ReadShort(){return (short)ReadUShort();}" }, { "index": 9914, "before": "public final void clear() {for (int i = 0; i <= size; i++) {heap[i] = null;}size = 0;}", "after": "public void Clear(){for (int i = 0; i <= size; i++){heap[i] = default(T);}size = 0;}" }, { "index": 9915, "before": "public CreateVPCAssociationAuthorizationResult createVPCAssociationAuthorization(CreateVPCAssociationAuthorizationRequest request) {request = beforeClientExecution(request);return executeCreateVPCAssociationAuthorization(request);}", "after": "public virtual CreateVPCAssociationAuthorizationResponse CreateVPCAssociationAuthorization(CreateVPCAssociationAuthorizationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVPCAssociationAuthorizationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVPCAssociationAuthorizationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9916, "before": "public ModifyCacheParameterGroupRequest(String cacheParameterGroupName, java.util.List parameterNameValues) {setCacheParameterGroupName(cacheParameterGroupName);setParameterNameValues(parameterNameValues);}", "after": "public ModifyCacheParameterGroupRequest(string cacheParameterGroupName, List parameterNameValues){_cacheParameterGroupName = cacheParameterGroupName;_parameterNameValues = parameterNameValues;}" }, { "index": 9917, "before": "public boolean equals( Object o ) {return o instanceof CatalanStemmer;}", "after": "public override bool Equals(object o){return o is CatalanStemmer;}" }, { "index": 9918, "before": "public AutomatonQuery(final Term term, Automaton automaton) {this(term, automaton, Operations.DEFAULT_MAX_DETERMINIZED_STATES);}", "after": "public AutomatonQuery(Term term, Automaton automaton): base(term.Field){this.m_term = term;this.m_automaton = automaton;this.m_compiled = new CompiledAutomaton(automaton);}" }, { "index": 9919, "before": "public String getPattern() {return pattern;}", "after": "public virtual string GetPattern(){return pattern;}" }, { "index": 9920, "before": "public int compareTo(IntBuffer otherBuffer) {int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining(): otherBuffer.remaining();int thisPos = position;int otherPos = otherBuffer.position;int thisInt, otherInt;while (compareRemaining > 0) {thisInt = get(thisPos);otherInt = otherBuffer.get(otherPos);if (thisInt != otherInt) {return thisInt < otherInt ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}", "after": "public virtual int compareTo(java.nio.IntBuffer otherBuffer){int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining();int thisPos = _position;int otherPos = otherBuffer._position;int thisInt;int otherInt;while (compareRemaining > 0){thisInt = get(thisPos);otherInt = otherBuffer.get(otherPos);if (thisInt != otherInt){return thisInt < otherInt ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}" }, { "index": 9921, "before": "public final boolean hasNext() {return next != header;}", "after": "public virtual bool hasNext(){return this._next != this._enclosing.header;}" }, { "index": 9922, "before": "public Class getListenerType() {return IndexChangedListener.class;}", "after": "public override Type GetListenerType(){return typeof(IndexChangedListener);}" }, { "index": 9923, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[OBJECTLINK]\\n\");buffer.append(\" .anchorId = \").append(\"0x\").append(HexDump.toHex( getAnchorId ())).append(\" (\").append( getAnchorId() ).append(\" )\");buffer.append(System.getProperty(\"line.separator\"));buffer.append(\" .link1 = \").append(\"0x\").append(HexDump.toHex( getLink1 ())).append(\" (\").append( getLink1() ).append(\" )\");buffer.append(System.getProperty(\"line.separator\"));buffer.append(\" .link2 = \").append(\"0x\").append(HexDump.toHex( getLink2 ())).append(\" (\").append( getLink2() ).append(\" )\");buffer.append(System.getProperty(\"line.separator\"));buffer.append(\"[/OBJECTLINK]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[OBJECTLINK]\\n\");buffer.Append(\" .AnchorId = \").Append(\"0x\").Append(HexDump.ToHex(AnchorId)).Append(\" (\").Append(AnchorId).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\" .link1 = \").Append(\"0x\").Append(HexDump.ToHex(Link1)).Append(\" (\").Append(Link1).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\" .link2 = \").Append(\"0x\").Append(HexDump.ToHex(Link2)).Append(\" (\").Append(Link2).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\"[/OBJECTLINK]\\n\");return buffer.ToString();}" }, { "index": 9924, "before": "public void setDetectRenames(boolean on) {if (on && renameDetector == null) {assertHaveReader();renameDetector = new RenameDetector(reader, diffCfg);} else if (!on)renameDetector = null;}", "after": "public virtual void SetDetectRenames(bool on){if (on && renameDetector == null){AssertHaveRepository();renameDetector = new RenameDetector(db);}else{if (!on){renameDetector = null;}}}" }, { "index": 9925, "before": "public boolean isSupported(int bitsPerValue) {return Packed64SingleBlock.isSupported(bitsPerValue);}", "after": "public virtual bool IsSupported(int bitsPerValue){return bitsPerValue >= 1 && bitsPerValue <= 64;}" }, { "index": 9926, "before": "public void setOutputUnigrams(boolean outputUnigrams) {this.outputUnigrams = outputUnigrams;gramSize = new CircularSequence();}", "after": "public void SetOutputUnigrams(bool outputUnigrams){this.outputUnigrams = outputUnigrams;gramSize = new CircularSequence(this);}" }, { "index": 9927, "before": "public TypeAsPayloadTokenFilter create(TokenStream input) {return new TypeAsPayloadTokenFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new TypeAsPayloadTokenFilter(input);}" }, { "index": 9928, "before": "public CreateIndexResult createIndex(CreateIndexRequest request) {request = beforeClientExecution(request);return executeCreateIndex(request);}", "after": "public virtual CreateIndexResponse CreateIndex(CreateIndexRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIndexRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIndexResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9929, "before": "public QualityQuery(String queryID, Map nameValPairs) {this.queryID = queryID;this.nameValPairs = nameValPairs;}", "after": "public QualityQuery(string queryID, IDictionary nameValPairs){this.queryID = queryID;this.nameValPairs = nameValPairs;}" }, { "index": 9930, "before": "public void addFirst(E object) {addFirstImpl(object);}", "after": "public virtual void addFirst(E @object){addFirstImpl(@object);}" }, { "index": 9931, "before": "public ValidateConfigurationSettingsRequest(String applicationName, java.util.List optionSettings) {setApplicationName(applicationName);setOptionSettings(optionSettings);}", "after": "public ValidateConfigurationSettingsRequest(string applicationName, List optionSettings){_applicationName = applicationName;_optionSettings = optionSettings;}" }, { "index": 9932, "before": "public static FileKey exact(File directory, FS fs) {return new FileKey(directory, fs);}", "after": "public static RepositoryCache.FileKey Exact(FilePath directory, FS fs){return new RepositoryCache.FileKey(directory, fs);}" }, { "index": 9933, "before": "public void removeScale() {remove1stProperty(PropertyIDMap.PID_SCALE);}", "after": "public void RemoveScale(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_SCALE);}" }, { "index": 9934, "before": "public DocumentDictionary(IndexReader reader, String field, String weightField, String payloadField, String contextsField) {this.reader = reader;this.field = field;this.weightField = weightField;this.payloadField = payloadField;this.contextsField = contextsField;}", "after": "public DocumentDictionary(IndexReader reader, string field, string weightField, string payloadField, string contextsField){this.m_reader = reader;this.field = field;this.weightField = weightField;this.m_payloadField = payloadField;this.m_contextsField = contextsField;}" }, { "index": 9935, "before": "public long get(int index) {final int o = index / 5;final int b = index % 5;final int shift = b * 12;return (blocks[o] >>> shift) & 4095L;}", "after": "public override long Get(int index){int o = index / 5;int b = index % 5;int shift = b * 12;return ((long)((ulong)blocks[o] >> shift)) & 4095L;}" }, { "index": 9936, "before": "@Override public void clear() {synchronized (mutex) {c.clear();}}", "after": "public virtual void clear(){lock (mutex){c.clear();}}" }, { "index": 9937, "before": "public boolean hasNext() {return _nextIndex < _endIx;}", "after": "public bool HasNext(){return _nextIndex < _endIx;}" }, { "index": 9938, "before": "public AssociateVirtualInterfaceResult associateVirtualInterface(AssociateVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeAssociateVirtualInterface(request);}", "after": "public virtual AssociateVirtualInterfaceResponse AssociateVirtualInterface(AssociateVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateVirtualInterfaceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9939, "before": "public DoubleValuesSource makeDistanceValueSource(Point queryPoint) {return makeDistanceValueSource(queryPoint, 1.0);}", "after": "public virtual ValueSource MakeDistanceValueSource(IPoint queryPoint){return MakeDistanceValueSource(queryPoint, 1.0);}" }, { "index": 9940, "before": "public float getTokenScore() {position += posIncAtt.getPositionIncrement();String termText = termAtt.toString();WeightedSpanTerm weightedSpanTerm;if ((weightedSpanTerm = fieldWeightedSpanTerms.get(termText)) == null) {return 0;}if (weightedSpanTerm.positionSensitive &&!weightedSpanTerm.checkPosition(position)) {return 0;}float score = weightedSpanTerm.getWeight();if (!foundTerms.contains(termText)) {totalScore += score;foundTerms.add(termText);}return score;}", "after": "public virtual float GetTokenScore(){position += posIncAtt.PositionIncrement;string termText = termAtt.ToString();WeightedSpanTerm weightedSpanTerm;if (!fieldWeightedSpanTerms.TryGetValue(termText, out weightedSpanTerm) || weightedSpanTerm == null){return 0;}if (weightedSpanTerm.IsPositionSensitive &&!weightedSpanTerm.CheckPosition(position)){return 0;}float score = weightedSpanTerm.Weight;if (!foundTerms.Contains(termText)){totalScore += score;foundTerms.Add(termText);}return score;}" }, { "index": 9941, "before": "public E pollFirst() {Map.Entry entry = backingMap.pollFirstEntry();return (entry == null) ? null : entry.getKey();}", "after": "public virtual E pollFirst(){java.util.MapClass.Entry entry = backingMap.pollFirstEntry();return (entry == null) ? default(E) : entry.getKey();}" }, { "index": 9942, "before": "public void enterEveryRule(ParserRuleContext ctx) {System.out.println(\"enter \" + getRuleNames()[ctx.getRuleIndex()] +\", LT(1)=\" + _input.LT(1).getText());}", "after": "public virtual void EnterEveryRule(ParserRuleContext ctx){Output.WriteLine(\"enter \" + this._enclosing.RuleNames[ctx.RuleIndex] + \", LT(1)=\" + this._enclosing._input.LT(1).Text);}" }, { "index": 9943, "before": "public ShortBuffer put(int index, short c) {checkIndex(index);byteBuffer.putShort(index * SizeOf.SHORT, c);return this;}", "after": "public override java.nio.ShortBuffer put(int index, short c){checkIndex(index);byteBuffer.putShort(index * libcore.io.SizeOf.SHORT, c);return this;}" }, { "index": 9944, "before": "public void notifyUpdateCell(Cell cell) {_bookEvaluator.notifyUpdateCell(new HSSFEvaluationCell((HSSFCell)cell));}", "after": "public void NotifyUpdateCell(ICell cell){_bookEvaluator.NotifyUpdateCell(new HSSFEvaluationCell(cell));}" }, { "index": 9945, "before": "public void moveCell(HSSFCell cell, short newColumn) {if(cells.length > newColumn && cells[newColumn] != null) {throw new IllegalArgumentException(\"Asked to move cell to column \" + newColumn + \" but there's already a cell there\");}if(! cells[cell.getColumnIndex()].equals(cell)) {throw new IllegalArgumentException(\"Asked to move a cell, but it didn't belong to our row\");}removeCell(cell, false);cell.updateCellNum(newColumn);addCell(cell);}", "after": "public void MoveCell(ICell cell, int newColumn){if(cells.ContainsKey(newColumn)){throw new ArgumentException(\"Asked to move cell to column \" + newColumn + \" but there's already a cell there\");}bool existflag = false;foreach (ICell cellinrow in cells.Values){if (cellinrow.Equals(cell)){existflag = true;break;}}if (!existflag){throw new ArgumentException(\"Asked to move a cell, but it didn't belong to our row\");}RemoveCell(cell, false);((HSSFCell)cell).UpdateCellNum(newColumn);AddCell(cell);}" }, { "index": 9946, "before": "public void connect(PipedWriter src) throws IOException {src.connect(this);}", "after": "public virtual void connect(java.io.PipedWriter src){throw new System.NotImplementedException();}" }, { "index": 9947, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getFirstColumn());out.writeShort(getLastColumn());out.writeShort(getColumnWidth());out.writeShort(getXFIndex());out.writeShort(_options);out.writeShort(field_6_reserved);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(FirstColumn);out1.WriteShort(LastColumn);out1.WriteShort(ColumnWidth);out1.WriteShort(XFIndex);out1.WriteShort(_options);out1.WriteShort(field_6_reserved);}" }, { "index": 9948, "before": "public ModifyWorkspaceCreationPropertiesResult modifyWorkspaceCreationProperties(ModifyWorkspaceCreationPropertiesRequest request) {request = beforeClientExecution(request);return executeModifyWorkspaceCreationProperties(request);}", "after": "public virtual ModifyWorkspaceCreationPropertiesResponse ModifyWorkspaceCreationProperties(ModifyWorkspaceCreationPropertiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyWorkspaceCreationPropertiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyWorkspaceCreationPropertiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9949, "before": "public BoolDocValues(ValueSource vs) {this.vs = vs;}", "after": "public BoolDocValues(ValueSource vs){this.m_vs = vs;}" }, { "index": 9950, "before": "public void reset() {nextWrite--;while(count > 0) {if (nextWrite == -1) {nextWrite = positions.length - 1;}positions[nextWrite--].reset();count--;}nextWrite = 0;nextPos = 0;count = 0;}", "after": "public void Reset(){nextWrite--;while (count > 0){if (nextWrite == -1){nextWrite = positions.Length - 1;}positions[nextWrite--].Reset();count--;}nextWrite = 0;nextPos = 0;count = 0;}" }, { "index": 9951, "before": "public UpdateDirectConnectGatewayAssociationResult updateDirectConnectGatewayAssociation(UpdateDirectConnectGatewayAssociationRequest request) {request = beforeClientExecution(request);return executeUpdateDirectConnectGatewayAssociation(request);}", "after": "public virtual UpdateDirectConnectGatewayAssociationResponse UpdateDirectConnectGatewayAssociation(UpdateDirectConnectGatewayAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDirectConnectGatewayAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDirectConnectGatewayAssociationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9952, "before": "public EditPhotoStoreRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"EditPhotoStore\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public EditPhotoStoreRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"EditPhotoStore\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 9953, "before": "public String toString() {return \"\";}", "after": "public override string ToString(){return \"\";}" }, { "index": 9954, "before": "public AddCommand addFilepattern(String filepattern) {checkCallable();filepatterns.add(filepattern);return this;}", "after": "public virtual NGit.Api.AddCommand AddFilepattern(string filepattern){CheckCallable();filepatterns.AddItem(filepattern);return this;}" }, { "index": 9955, "before": "public String toString() {return '[' + \"HEADERFOOTER\" + \"] (0x\" +Integer.toHexString(sid).toUpperCase(Locale.ROOT) + \")\\n\" +\" rawData=\" + HexDump.toHex(_rawData) + \"\\n\" +\"[/\" + \"HEADERFOOTER\" + \"]\\n\";}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(\"[\").Append(\"HEADERFOOTER\").Append(\"] (0x\");sb.Append(StringUtil.ToHexString(sid).ToUpper() + \")\\n\");sb.Append(\" rawData=\").Append(HexDump.ToHex(_rawData)).Append(\"\\n\");sb.Append(\"[/\").Append(\"HEADERFOOTER\").Append(\"]\\n\");return sb.ToString();}" }, { "index": 9956, "before": "public UpdateBrokerResult updateBroker(UpdateBrokerRequest request) {request = beforeClientExecution(request);return executeUpdateBroker(request);}", "after": "public virtual UpdateBrokerResponse UpdateBroker(UpdateBrokerRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBrokerRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBrokerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9957, "before": "public FormatRecord clone() {return copy();}", "after": "public override Object Clone(){return this;}" }, { "index": 9958, "before": "public AssociateS3ResourcesResult associateS3Resources(AssociateS3ResourcesRequest request) {request = beforeClientExecution(request);return executeAssociateS3Resources(request);}", "after": "public virtual AssociateS3ResourcesResponse AssociateS3Resources(AssociateS3ResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateS3ResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateS3ResourcesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9959, "before": "public UnknownRecord(int id, byte[] data) {_sid = id & 0xFFFF;_rawData = data;}", "after": "public UnknownRecord(int id, byte[] data){_sid = id & 0xFFFF;_rawData = data;}" }, { "index": 9960, "before": "public TreeFilter clone() {return new Binary(a.clone(), b.clone());}", "after": "public override RevFilter Clone(){return new AndRevFilter.Binary(a.Clone(), b.Clone());}" }, { "index": 9961, "before": "public int getRawValue(final int holder){return (holder & _mask);}", "after": "public int GetRawValue(int holder){return (holder & this._mask);}" }, { "index": 9962, "before": "public CancelResizeResult cancelResize(CancelResizeRequest request) {request = beforeClientExecution(request);return executeCancelResize(request);}", "after": "public virtual CancelResizeResponse CancelResize(CancelResizeRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelResizeRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelResizeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9963, "before": "public CreateTransitGatewayRouteResult createTransitGatewayRoute(CreateTransitGatewayRouteRequest request) {request = beforeClientExecution(request);return executeCreateTransitGatewayRoute(request);}", "after": "public virtual CreateTransitGatewayRouteResponse CreateTransitGatewayRoute(CreateTransitGatewayRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitGatewayRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitGatewayRouteResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9964, "before": "public FastVectorHighlighter( boolean phraseHighlight, boolean fieldMatch,FragListBuilder fragListBuilder, FragmentsBuilder fragmentsBuilder ){this.phraseHighlight = phraseHighlight;this.fieldMatch = fieldMatch;this.fragListBuilder = fragListBuilder;this.fragmentsBuilder = fragmentsBuilder;}", "after": "public FastVectorHighlighter(bool phraseHighlight, bool fieldMatch,IFragListBuilder fragListBuilder, IFragmentsBuilder fragmentsBuilder){this.phraseHighlight = phraseHighlight;this.fieldMatch = fieldMatch;this.fragListBuilder = fragListBuilder;this.fragmentsBuilder = fragmentsBuilder;}" }, { "index": 9965, "before": "public SetTypeDefaultVersionResult setTypeDefaultVersion(SetTypeDefaultVersionRequest request) {request = beforeClientExecution(request);return executeSetTypeDefaultVersion(request);}", "after": "public virtual SetTypeDefaultVersionResponse SetTypeDefaultVersion(SetTypeDefaultVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetTypeDefaultVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = SetTypeDefaultVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9966, "before": "public final long computeNorm(FieldInvertState state) {return get(state.getName()).computeNorm(state);}", "after": "public override sealed long ComputeNorm(FieldInvertState state){return Get(state.Name).ComputeNorm(state);}" }, { "index": 9967, "before": "public CreateCustomVerificationEmailTemplateResult createCustomVerificationEmailTemplate(CreateCustomVerificationEmailTemplateRequest request) {request = beforeClientExecution(request);return executeCreateCustomVerificationEmailTemplate(request);}", "after": "public virtual CreateCustomVerificationEmailTemplateResponse CreateCustomVerificationEmailTemplate(CreateCustomVerificationEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCustomVerificationEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCustomVerificationEmailTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9968, "before": "public static double median(double[] v) {double r = Double.NaN;if (v!=null && v.length >= 1) {int n = v.length;Arrays.sort(v);r = (n % 2 == 0)? (v[n / 2] + v[n / 2 - 1]) / 2: v[n / 2];}return r;}", "after": "public static double median(double[] v){double r = double.NaN;if (v != null && v.Length >= 1){int n = v.Length;Array.Sort(v);r = (n % 2 == 0)? (v[n / 2] + v[n / 2 - 1]) / 2: v[n / 2];}return r;}" }, { "index": 9969, "before": "public void walk(ParseTreeListener listener, ParseTree t) {if ( t instanceof ErrorNode) {listener.visitErrorNode((ErrorNode)t);return;}else if ( t instanceof TerminalNode) {listener.visitTerminal((TerminalNode)t);return;}RuleNode r = (RuleNode)t;enterRule(listener, r);int n = r.getChildCount();for (int i = 0; i>> 0) & 0xFF);_buf[i++] = (byte)((v >>> 8) & 0xFF);_buf[i++] = (byte)((v >>> 16) & 0xFF);_buf[i++] = (byte)((v >>> 24) & 0xFF);_writeIndex = i;}", "after": "public void WriteInt(int v){CheckPosition(4);int i = _writeIndex;_buf[i++] = (byte)((v >> 0) & 0xFF);_buf[i++] = (byte)((v >> 8) & 0xFF);_buf[i++] = (byte)((v >> 16) & 0xFF);_buf[i++] = (byte)((v >> 24) & 0xFF);_writeIndex = i;}" }, { "index": 9974, "before": "public GetRepoBatchRequest() {super(\"cr\", \"2016-06-07\", \"GetRepoBatch\", \"cr\");setUriPattern(\"/batchsearch\");setMethod(MethodType.GET);}", "after": "public GetRepoBatchRequest(): base(\"cr\", \"2016-06-07\", \"GetRepoBatch\", \"cr\", \"openAPI\"){UriPattern = \"/batchsearch\";Method = MethodType.GET;}" }, { "index": 9975, "before": "public MoPenDoRecognizeRequest() {super(\"MoPen\", \"2018-02-11\", \"MoPenDoRecognize\", \"mopen\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public MoPenDoRecognizeRequest(): base(\"MoPen\", \"2018-02-11\", \"MoPenDoRecognize\", \"mopen\", \"openAPI\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 9976, "before": "public Iterator> iterator() {return new EntryIterator();}", "after": "public override java.util.Iterator> iterator(){return new java.util.Hashtable.EntryIterator(this._enclosing);}" }, { "index": 9977, "before": "public DeleteApnsSandboxChannelResult deleteApnsSandboxChannel(DeleteApnsSandboxChannelRequest request) {request = beforeClientExecution(request);return executeDeleteApnsSandboxChannel(request);}", "after": "public virtual DeleteApnsSandboxChannelResponse DeleteApnsSandboxChannel(DeleteApnsSandboxChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApnsSandboxChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApnsSandboxChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9978, "before": "public short readShort() {if (shouldSkipEncryptionOnCurrentRecord) {readPlain(buffer, 0, LittleEndianConsts.SHORT_SIZE);return LittleEndian.getShort(buffer);} else {return ccis.readShort();}}", "after": "public short ReadShort(){return (short)_rc4.Xorshort(_le.ReadUShort());}" }, { "index": 9979, "before": "public DeleteEndpointResult deleteEndpoint(DeleteEndpointRequest request) {request = beforeClientExecution(request);return executeDeleteEndpoint(request);}", "after": "public virtual DeleteEndpointResponse DeleteEndpoint(DeleteEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9980, "before": "@Override public int lastIndexOf(Object object) {return list.lastIndexOf(object);}", "after": "public virtual int lastIndexOf(object @object){return list.lastIndexOf(@object);}" }, { "index": 9981, "before": "public void SwitchTo(int lexState){if (lexState >= 3 || lexState < 0)throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);elsecurLexState = lexState;}", "after": "public void SwitchTo(int lexState){if (lexState >= 3 || lexState < 0)throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);elsecurLexState = lexState;}" }, { "index": 9982, "before": "public GetIndustryInfoChildrenListRequest() {super(\"industry-brain\", \"2018-07-12\", \"GetIndustryInfoChildrenList\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetIndustryInfoChildrenListRequest(): base(\"industry-brain\", \"2018-07-12\", \"GetIndustryInfoChildrenList\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 9983, "before": "public Credential(String keyId, String secret, int expiredHours) {this.accessKeyId = keyId;this.accessSecret = secret;this.refreshDate = new Date();setExpiredDate(expiredHours);}", "after": "public Credential(string keyId, string secret, int expiredHours){AccessKeyId = keyId;AccessSecret = secret;RefreshDate = new DateTime();SetExpiredDate(expiredHours);}" }, { "index": 9984, "before": "public KeywordMarkerFilterFactory(Map args) {super(args);wordFiles = get(args, PROTECTED_TOKENS);stringPattern = get(args, PATTERN);ignoreCase = getBoolean(args, \"ignoreCase\", false);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public KeywordMarkerFilterFactory(IDictionary args): base(args){wordFiles = Get(args, PROTECTED_TOKENS);stringPattern = Get(args, PATTERN);ignoreCase = GetBoolean(args, \"ignoreCase\", false);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 9985, "before": "public CellRangeAddress getAreaAt(int index) {return _regions[_startIndex + index];}", "after": "public CellRangeAddress GetAreaAt(int index){return _regions[_startIndex + index];}" }, { "index": 9986, "before": "public PutEmailIdentityDkimSigningAttributesResult putEmailIdentityDkimSigningAttributes(PutEmailIdentityDkimSigningAttributesRequest request) {request = beforeClientExecution(request);return executePutEmailIdentityDkimSigningAttributes(request);}", "after": "public virtual PutEmailIdentityDkimSigningAttributesResponse PutEmailIdentityDkimSigningAttributes(PutEmailIdentityDkimSigningAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutEmailIdentityDkimSigningAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutEmailIdentityDkimSigningAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9987, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\" [FEATURE SMART TAGS]\\n\");buffer.append(\" [/FEATURE SMART TAGS]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\" [FEATURE SMART TAGS]\\n\");buffer.Append(\" [/FEATURE SMART TAGS]\\n\");return buffer.ToString();}" }, { "index": 9988, "before": "public static void checkStartAndEnd(int len, int start, int end) {if (start < 0 || end > len) {throw new ArrayIndexOutOfBoundsException(\"start < 0 || end > len.\"+ \" start=\" + start + \", end=\" + end + \", len=\" + len);}if (start > end) {throw new IllegalArgumentException(\"start > end: \" + start + \" > \" + end);}}", "after": "public static void checkStartAndEnd(int len, int start, int end){if (start < 0 || end > len){throw new System.IndexOutOfRangeException(\"start < 0 || end > len.\" + \" start=\" +start + \", end=\" + end + \", len=\" + len);}if (start > end){throw new System.ArgumentException(\"start > end: \" + start + \" > \" + end);}}" }, { "index": 9989, "before": "public Loc(int bookIndex, int sheetIndex, int rowIndex, int columnIndex) {_bookSheetColumn = toBookSheetColumn(bookIndex, sheetIndex, columnIndex);_rowIndex = rowIndex;}", "after": "public Loc(int bookIndex, int sheetIndex, int rowIndex, int columnIndex){_bookSheetColumn = ToBookSheetColumn(bookIndex, sheetIndex, columnIndex);_rowIndex = rowIndex;}" }, { "index": 9990, "before": "public BoolErrRecord(RecordInputStream in) {super(in);switch (in.remaining()) {case 2:_value = in.readByte();break;case 3:_value = in.readUShort();break;default:throw new RecordFormatException(\"Unexpected size (\"+ in.remaining() + \") for BOOLERR record.\");}int flag = in.readUByte();switch (flag) {case 0:_isError = false;break;case 1:_isError = true;break;default:throw new RecordFormatException(\"Unexpected isError flag (\"+ flag + \") for BOOLERR record.\");}}", "after": "public BoolErrRecord(RecordInputStream in1): base(in1){switch (in1.Remaining){case 2:_value = in1.ReadByte();break;case 3:_value = in1.ReadUShort();break;default:throw new RecordFormatException(\"Unexpected size (\"+ in1.Remaining + \") for BOOLERR record.\");}int flag = in1.ReadUByte();switch (flag){case 0:_isError = false;break;case 1:_isError = true;break;default:throw new RecordFormatException(\"Unexpected isError flag (\"+ flag + \") for BOOLERR record.\");}}" }, { "index": 9991, "before": "public String toString() {return \"OrdTermState ord=\" + ord;}", "after": "public override string ToString(){return \"OrdTermState ord=\" + Ord;}" }, { "index": 9992, "before": "public Note(AnyObjectId noteOn, ObjectId noteData) {super(noteOn);data = noteData;}", "after": "public Note(AnyObjectId noteOn, ObjectId noteData) : base(noteOn){data = noteData;}" }, { "index": 9993, "before": "public GetModelVersionResult getModelVersion(GetModelVersionRequest request) {request = beforeClientExecution(request);return executeGetModelVersion(request);}", "after": "public virtual GetModelVersionResponse GetModelVersion(GetModelVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetModelVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetModelVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9994, "before": "public void addBreak(int main, int subFrom, int subTo) {Integer key = Integer.valueOf(main);Break region = _breakMap.get(key);if(region == null) {region = new Break(main, subFrom, subTo);_breakMap.put(key, region);_breaks.add(region);} else {region.main = main;region.subFrom = subFrom;region.subTo = subTo;}}", "after": "public void AddBreak(int main, int subFrom, int subTo){int key = (int)main;Break region = (Break)_breakMap[key];if (region != null){region.main = main;region.subFrom = subFrom;region.subTo = subTo;}else{region = new Break(main, subFrom, subTo);_breaks.Add(region);}_breakMap[key] = region;}" }, { "index": 9995, "before": "public DescribeUsageReportSubscriptionsResult describeUsageReportSubscriptions(DescribeUsageReportSubscriptionsRequest request) {request = beforeClientExecution(request);return executeDescribeUsageReportSubscriptions(request);}", "after": "public virtual DescribeUsageReportSubscriptionsResponse DescribeUsageReportSubscriptions(DescribeUsageReportSubscriptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUsageReportSubscriptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUsageReportSubscriptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9996, "before": "public boolean offerLast(E e) {return addLastImpl(e);}", "after": "public virtual bool offerLast(E e){return addLastImpl(e);}" }, { "index": 9997, "before": "public RegistrantProfileRealNameVerificationRequest() {super(\"Domain\", \"2018-01-29\", \"RegistrantProfileRealNameVerification\");setMethod(MethodType.POST);}", "after": "public RegistrantProfileRealNameVerificationRequest(): base(\"Domain-intl\", \"2017-12-18\", \"RegistrantProfileRealNameVerification\", \"domain\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 9998, "before": "public RowColKey(int rowIndex, int columnIndex) {_rowIndex = rowIndex;_columnIndex = columnIndex;}", "after": "public RowColKey(int rowIndex, int columnIndex){_rowIndex = rowIndex;_columnIndex = columnIndex;}" }, { "index": 9999, "before": "public DisassociateTransitGatewayMulticastDomainResult disassociateTransitGatewayMulticastDomain(DisassociateTransitGatewayMulticastDomainRequest request) {request = beforeClientExecution(request);return executeDisassociateTransitGatewayMulticastDomain(request);}", "after": "public virtual DisassociateTransitGatewayMulticastDomainResponse DisassociateTransitGatewayMulticastDomain(DisassociateTransitGatewayMulticastDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateTransitGatewayMulticastDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateTransitGatewayMulticastDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10000, "before": "public Charset detectedCharset() {throw new UnsupportedOperationException();}", "after": "public virtual java.nio.charset.Charset detectedCharset(){throw new System.NotSupportedException();}" }, { "index": 10001, "before": "public RightMarginRecord clone() {return copy();}", "after": "public override Object Clone(){RightMarginRecord rec = new RightMarginRecord();rec.field_1_margin = this.field_1_margin;return rec;}" }, { "index": 10002, "before": "public ListTrafficPoliciesResult listTrafficPolicies(ListTrafficPoliciesRequest request) {request = beforeClientExecution(request);return executeListTrafficPolicies(request);}", "after": "public virtual ListTrafficPoliciesResponse ListTrafficPolicies(ListTrafficPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTrafficPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTrafficPoliciesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10003, "before": "public DeleteKeyPairRequest(String keyName) {setKeyName(keyName);}", "after": "public DeleteKeyPairRequest(string keyName){_keyName = keyName;}" }, { "index": 10004, "before": "public void setElement(int index, byte[] element) {if (emptyComplexPart) {return;}int actualSize = getActualSizeOfElements(getSizeOfElements());System.arraycopy( element, 0, getComplexData(), FIXED_SIZE + index * actualSize, actualSize);}", "after": "public void SetElement(int index, byte[] element){int actualSize = GetActualSizeOfElements(SizeOfElements);Array.Copy(element, 0, _complexData, FIXED_SIZE + index * actualSize, actualSize);}" }, { "index": 10005, "before": "public FieldDoc(int doc, float score, Object[] fields) {super(doc, score);this.fields = fields;}", "after": "public FieldDoc(int doc, float score, object[] fields): base(doc, score){this.fields = fields;}" }, { "index": 10006, "before": "public TreeFilter clone() {return new Binary(a.clone(), b.clone());}", "after": "public override RevFilter Clone(){return new OrRevFilter.Binary(a.Clone(), b.Clone());}" }, { "index": 10007, "before": "public void fillTo(int toIndex, long val) {while (count < toIndex)add(val);}", "after": "public virtual void FillTo(int toIndex, long val){while (count < toIndex){Add(val);}}" }, { "index": 10008, "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 >>> 5;values[valuesOffset++] = (byte0 >>> 2) & 7;final long byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte0 & 3) << 1) | (byte1 >>> 7);values[valuesOffset++] = (byte1 >>> 4) & 7;values[valuesOffset++] = (byte1 >>> 1) & 7;final long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 1) << 2) | (byte2 >>> 6);values[valuesOffset++] = (byte2 >>> 3) & 7;values[valuesOffset++] = byte2 & 7;}}", "after": "public override void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long byte0 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (long)((ulong)byte0 >> 5);values[valuesOffset++] = ((long)((ulong)byte0 >> 2)) & 7;long byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte0 & 3) << 1) | ((long)((ulong)byte1 >> 7));values[valuesOffset++] = ((long)((ulong)byte1 >> 4)) & 7;values[valuesOffset++] = ((long)((ulong)byte1 >> 1)) & 7;long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 1) << 2) | ((long)((ulong)byte2 >> 6));values[valuesOffset++] = ((long)((ulong)byte2 >> 3)) & 7;values[valuesOffset++] = byte2 & 7;}}" }, { "index": 10009, "before": "public RawText getResultContents() {return resultContents;}", "after": "public virtual RawText GetResultContents(){return resultContents;}" }, { "index": 10010, "before": "public void setMaxShingleSize(int maxShingleSize) {if (maxShingleSize < 2) {throw new IllegalArgumentException(\"Max shingle size must be >= 2\");}this.maxShingleSize = maxShingleSize;}", "after": "public void SetMaxShingleSize(int maxShingleSize){if (maxShingleSize < 2){throw new System.ArgumentException(\"Max shingle size must be >= 2\");}this.maxShingleSize = maxShingleSize;}" }, { "index": 10011, "before": "public FieldInfo(RecordInputStream in) {_isxvi = in.readShort();_isxvd = in.readShort();_idObj = in.readShort();}", "after": "public FieldInfo(RecordInputStream in1){_isxvi = in1.ReadShort();_isxvd = in1.ReadShort();_idObj = in1.ReadShort();}" }, { "index": 10012, "before": "public DescribeDBEngineVersionsResult describeDBEngineVersions(DescribeDBEngineVersionsRequest request) {request = beforeClientExecution(request);return executeDescribeDBEngineVersions(request);}", "after": "public virtual DescribeDBEngineVersionsResponse DescribeDBEngineVersions(DescribeDBEngineVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBEngineVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBEngineVersionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10013, "before": "public DBSnapshot copyDBSnapshot(CopyDBSnapshotRequest request) {request = beforeClientExecution(request);return executeCopyDBSnapshot(request);}", "after": "public virtual CopyDBSnapshotResponse CopyDBSnapshot(CopyDBSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopyDBSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CopyDBSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10014, "before": "public DFA(DecisionState atnStartState, int decision) {this.atnStartState = atnStartState;this.decision = decision;boolean precedenceDfa = false;if (atnStartState instanceof StarLoopEntryState) {if (((StarLoopEntryState)atnStartState).isPrecedenceDecision) {precedenceDfa = true;DFAState precedenceState = new DFAState(new ATNConfigSet());precedenceState.edges = new DFAState[0];precedenceState.isAcceptState = false;precedenceState.requiresFullContext = false;this.s0 = precedenceState;}}this.precedenceDfa = precedenceDfa;}", "after": "public DFA(DecisionState atnStartState, int decision){this.atnStartState = atnStartState;this.decision = decision;this.precedenceDfa = false;if (atnStartState is StarLoopEntryState && ((StarLoopEntryState)atnStartState).isPrecedenceDecision){this.precedenceDfa = true;DFAState precedenceState = new DFAState(new ATNConfigSet());precedenceState.edges = new DFAState[0];precedenceState.isAcceptState = false;precedenceState.requiresFullContext = false;this.s0 = precedenceState;}}" }, { "index": 10015, "before": "public QueryParserTokenManager(CharStream stream){input_stream = stream;}", "after": "public QueryParserTokenManager(ICharStream stream){m_input_stream = stream;}" }, { "index": 10016, "before": "public String toString() {return \"\" + \"\\n\" + getChild().toString() + \"\\n\";}", "after": "public override string ToString(){return \"\" + \"\\n\" + GetChild().ToString() + \"\\n\";}" }, { "index": 10017, "before": "public UpdateResolverRuleResult updateResolverRule(UpdateResolverRuleRequest request) {request = beforeClientExecution(request);return executeUpdateResolverRule(request);}", "after": "public virtual UpdateResolverRuleResponse UpdateResolverRule(UpdateResolverRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateResolverRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateResolverRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10018, "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(BytesRef other){return utf8SortedAsUnicodeSortOrder.Compare(this, other);}" }, { "index": 10019, "before": "public void rewind() {ns.removeAllElements();ks.setLength(0);cur = root;run();}", "after": "public virtual void Rewind(){ns.Clear();ks.Length = 0;cur = outerInstance.m_root;Run();}" }, { "index": 10020, "before": "public ModifyWorkspaceAccessPropertiesResult modifyWorkspaceAccessProperties(ModifyWorkspaceAccessPropertiesRequest request) {request = beforeClientExecution(request);return executeModifyWorkspaceAccessProperties(request);}", "after": "public virtual ModifyWorkspaceAccessPropertiesResponse ModifyWorkspaceAccessProperties(ModifyWorkspaceAccessPropertiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyWorkspaceAccessPropertiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyWorkspaceAccessPropertiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10021, "before": "public DescribeFleetAttributesResult describeFleetAttributes(DescribeFleetAttributesRequest request) {request = beforeClientExecution(request);return executeDescribeFleetAttributes(request);}", "after": "public virtual DescribeFleetAttributesResponse DescribeFleetAttributes(DescribeFleetAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFleetAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFleetAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10022, "before": "public CreateBuildResult createBuild(CreateBuildRequest request) {request = beforeClientExecution(request);return executeCreateBuild(request);}", "after": "public virtual CreateBuildResponse CreateBuild(CreateBuildRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateBuildRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateBuildResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10023, "before": "public static FloatBuffer wrap(float[] array, int start, int floatCount) {Arrays.checkOffsetAndCount(array.length, start, floatCount);FloatBuffer buf = new ReadWriteFloatArrayBuffer(array);buf.position = start;buf.limit = start + floatCount;return buf;}", "after": "public static java.nio.FloatBuffer wrap(float[] array_1, int start, int floatCount){java.util.Arrays.checkOffsetAndCount(array_1.Length, start, floatCount);java.nio.FloatBuffer buf = new java.nio.ReadWriteFloatArrayBuffer(array_1);buf._position = start;buf._limit = start + floatCount;return buf;}" }, { "index": 10024, "before": "public String toString() {StringBuilder result = new StringBuilder();DateFormatTokenizer tokenizer = new DateFormatTokenizer(format);String token;while( ( token = tokenizer.getNextToken() ) != null ) {if( result.length() > 0 ) {result.append( \", \" );}result.append(\"[\").append(token).append(\"]\");}return result.toString();}", "after": "public override string ToString(){StringBuilder result = new StringBuilder();DateFormatTokenizer tokenizer = new DateFormatTokenizer(format);string token;while ((token = tokenizer.GetNextToken()) != null){if (result.Length > 0){result.Append(\", \");}result.Append(\"[\").Append(token).Append(\"]\");}return result.ToString();}" }, { "index": 10025, "before": "public byte readByte() {return data[pos++];}", "after": "public override byte ReadByte(){return data[pos++];}" }, { "index": 10026, "before": "public CreateDatasetResult createDataset(CreateDatasetRequest request) {request = beforeClientExecution(request);return executeCreateDataset(request);}", "after": "public virtual CreateDatasetResponse CreateDataset(CreateDatasetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDatasetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDatasetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10027, "before": "public BytesRef next() {termOrd++;if (termOrd < terms.length) {return setTerm();} else {return null;}}", "after": "public override BytesRef Next(){termOrd++;if (termOrd < outerInstance.terms.Length){return SetTerm();}else{return null;}}" }, { "index": 10028, "before": "public static FontCharset valueOf(int value){return (value < 0 || value >= _table.length) ? null :_table[value];}", "after": "public static FontCharset ValueOf(int value){if(value>=0&&value<=255)return _table[value];return null;}" }, { "index": 10029, "before": "public static String escape(String s) {StringBuilder sb = new StringBuilder();for (int i = 0; i < s.length(); i++) {char c = s.charAt(i);if (c == '\\\\' || c == '+' || c == '-' || c == '!' || c == '(' || c == ')'|| c == ':' || c == '^' || c == '[' || c == ']' || c == '\\\"'|| c == '{' || c == '}' || c == '~' || c == '*' || c == '?'|| c == '|' || c == '&' || c == '/') {sb.append('\\\\');}sb.append(c);}return sb.toString();}", "after": "public static string Escape(string s){StringBuilder sb = new StringBuilder();for (int i = 0; i < s.Length; i++){char c = s[i];if (c == '\\\\' || c == '+' || c == '-' || c == '!' || c == '(' || c == ')'|| c == ':' || c == '^' || c == '[' || c == ']' || c == '\\\"'|| c == '{' || c == '}' || c == '~' || c == '*' || c == '?'|| c == '|' || c == '&' || c == '/'){sb.Append('\\\\');}sb.Append(c);}return sb.ToString();}" }, { "index": 10030, "before": "public RejectVpcEndpointConnectionsResult rejectVpcEndpointConnections(RejectVpcEndpointConnectionsRequest request) {request = beforeClientExecution(request);return executeRejectVpcEndpointConnections(request);}", "after": "public virtual RejectVpcEndpointConnectionsResponse RejectVpcEndpointConnections(RejectVpcEndpointConnectionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectVpcEndpointConnectionsRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectVpcEndpointConnectionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10031, "before": "public V next() { return nextEntry().value; }", "after": "public override V next(){return this.nextEntry().value;}" }, { "index": 10032, "before": "public ShingleAnalyzerWrapper(Analyzer delegate,int minShingleSize,int maxShingleSize,String tokenSeparator,boolean outputUnigrams,boolean outputUnigramsIfNoShingles,String fillerToken) {super(delegate.getReuseStrategy());this.delegate = delegate;if (maxShingleSize < 2) {throw new IllegalArgumentException(\"Max shingle size must be >= 2\");}this.maxShingleSize = maxShingleSize;if (minShingleSize < 2) {throw new IllegalArgumentException(\"Min shingle size must be >= 2\");}if (minShingleSize > maxShingleSize) {throw new IllegalArgumentException(\"Min shingle size must be <= max shingle size\");}this.minShingleSize = minShingleSize;this.tokenSeparator = (tokenSeparator == null ? \"\" : tokenSeparator);this.outputUnigrams = outputUnigrams;this.outputUnigramsIfNoShingles = outputUnigramsIfNoShingles;this.fillerToken = fillerToken;}", "after": "public ShingleAnalyzerWrapper(Analyzer @delegate, int minShingleSize, int maxShingleSize,string tokenSeparator, bool outputUnigrams, bool outputUnigramsIfNoShingles, string fillerToken): base(@delegate.Strategy){this.@delegate = @delegate;if (maxShingleSize < 2){throw new ArgumentOutOfRangeException(\"Max shingle size must be >= 2\");}this.maxShingleSize = maxShingleSize;if (minShingleSize < 2){throw new ArgumentOutOfRangeException(\"Min shingle size must be >= 2\");}if (minShingleSize > maxShingleSize){throw new ArgumentOutOfRangeException(\"Min shingle size must be <= max shingle size\");}this.minShingleSize = minShingleSize;this.tokenSeparator = (tokenSeparator == null ? \"\" : tokenSeparator);this.outputUnigrams = outputUnigrams;this.outputUnigramsIfNoShingles = outputUnigramsIfNoShingles;this.fillerToken = fillerToken;}" }, { "index": 10033, "before": "public CreateInterconnectResult createInterconnect(CreateInterconnectRequest request) {request = beforeClientExecution(request);return executeCreateInterconnect(request);}", "after": "public virtual CreateInterconnectResponse CreateInterconnect(CreateInterconnectRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateInterconnectRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateInterconnectResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10034, "before": "public DeleteTrafficMirrorTargetResult deleteTrafficMirrorTarget(DeleteTrafficMirrorTargetRequest request) {request = beforeClientExecution(request);return executeDeleteTrafficMirrorTarget(request);}", "after": "public virtual DeleteTrafficMirrorTargetResponse DeleteTrafficMirrorTarget(DeleteTrafficMirrorTargetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTrafficMirrorTargetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTrafficMirrorTargetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10035, "before": "public UpdateMonitoringScheduleResult updateMonitoringSchedule(UpdateMonitoringScheduleRequest request) {request = beforeClientExecution(request);return executeUpdateMonitoringSchedule(request);}", "after": "public virtual UpdateMonitoringScheduleResponse UpdateMonitoringSchedule(UpdateMonitoringScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateMonitoringScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateMonitoringScheduleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10036, "before": "public DeleteGatewayGroupResult deleteGatewayGroup(DeleteGatewayGroupRequest request) {request = beforeClientExecution(request);return executeDeleteGatewayGroup(request);}", "after": "public virtual DeleteGatewayGroupResponse DeleteGatewayGroup(DeleteGatewayGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGatewayGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGatewayGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10037, "before": "public ListStackSetOperationsResult listStackSetOperations(ListStackSetOperationsRequest request) {request = beforeClientExecution(request);return executeListStackSetOperations(request);}", "after": "public virtual ListStackSetOperationsResponse ListStackSetOperations(ListStackSetOperationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStackSetOperationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStackSetOperationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10038, "before": "public ListOfOutputs(Outputs outputs) {this.outputs = outputs;}", "after": "public ListOfOutputs(Outputs outputs){this.outputs = outputs;}" }, { "index": 10039, "before": "public ExceedsLimit(long limit, long size) {this.limit = limit;this.size = size;}", "after": "public ExceedsLimit(long limit, long size){this.limit = limit;this.size = size;}" }, { "index": 10040, "before": "public GetIndustryInfoRequest() {super(\"industry-brain\", \"2018-07-12\", \"GetIndustryInfo\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetIndustryInfoRequest(): base(\"industry-brain\", \"2018-07-12\", \"GetIndustryInfo\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 10041, "before": "public CreateVpnGatewayRequest(String type) {setType(type);}", "after": "public CreateVpnGatewayRequest(GatewayType type){_type = type;}" }, { "index": 10042, "before": "public int compareTo(PointTransitions other) {return point - other.point;}", "after": "public int CompareTo(PointTransitions other){return point - other.point;}" }, { "index": 10043, "before": "public DeleteQueuedReservedInstancesResult deleteQueuedReservedInstances(DeleteQueuedReservedInstancesRequest request) {request = beforeClientExecution(request);return executeDeleteQueuedReservedInstances(request);}", "after": "public virtual DeleteQueuedReservedInstancesResponse DeleteQueuedReservedInstances(DeleteQueuedReservedInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteQueuedReservedInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteQueuedReservedInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10044, "before": "public static final AbbreviatedObjectId fromString(String str) {if (str.length() > Constants.OBJECT_ID_STRING_LENGTH)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().invalidId, str));final byte[] b = Constants.encodeASCII(str);return fromHexString(b, 0, b.length);}", "after": "public static NGit.AbbreviatedObjectId FromString(string str){if (str.Length > Constants.OBJECT_ID_STRING_LENGTH){throw new ArgumentException(MessageFormat.Format(JGitText.Get().invalidId, str));}byte[] b = Constants.EncodeASCII(str);return FromHexString(b, 0, b.Length);}" }, { "index": 10045, "before": "public final int getByte(int index) {int w;switch (index >> 2) {case 0:w = w1;break;case 1:w = w2;break;case 2:w = w3;break;case 3:w = w4;break;case 4:w = w5;break;default:throw new ArrayIndexOutOfBoundsException(index);}return (w >>> (8 * (3 - (index & 3)))) & 0xff;}", "after": "public int GetByte(int index){int w;switch (index >> 2){case 0:{w = w1;break;}case 1:{w = w2;break;}case 2:{w = w3;break;}case 3:{w = w4;break;}case 4:{w = w5;break;}default:{throw Sharpen.Extensions.CreateIndexOutOfRangeException(index);}}return ((int)(((uint)w) >> (8 * (3 - (index & 3))))) & unchecked((int)(0xff));}" }, { "index": 10046, "before": "public SpanFirstBuilder(SpanQueryBuilder factory) {this.factory = factory;}", "after": "public SpanFirstBuilder(ISpanQueryBuilder factory){this.factory = factory;}" }, { "index": 10047, "before": "public DescribeInstancesResult describeInstances(DescribeInstancesRequest request) {request = beforeClientExecution(request);return executeDescribeInstances(request);}", "after": "public virtual DescribeInstancesResponse DescribeInstances(DescribeInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10048, "before": "public DescribeProjectsResult describeProjects(DescribeProjectsRequest request) {request = beforeClientExecution(request);return executeDescribeProjects(request);}", "after": "public virtual DescribeProjectsResponse DescribeProjects(DescribeProjectsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeProjectsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeProjectsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10049, "before": "public static String toHexString(String s) {StringBuilder sb = new StringBuilder();for(int i=0;i 0) {sb.append(' ');}if (ch < 128) {sb.append(ch);} else {if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_HIGH_END) {sb.append(\"H:\");} else if (ch >= UNI_SUR_LOW_START && ch <= UNI_SUR_LOW_END) {sb.append(\"L:\");} else if (ch > UNI_SUR_LOW_END) {if (ch == 0xffff) {sb.append(\"F:\");} else {sb.append(\"E:\");}}sb.append(\"0x\").append(Integer.toHexString(ch));}}return sb.toString();}", "after": "public static string ToHexString(string s){var sb = new StringBuilder();for (int i = 0; i < s.Length; i++){char ch = s[i];if (i > 0){sb.Append(' ');}if (ch < 128){sb.Append(ch);}else{if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_HIGH_END){sb.Append(\"H:\");}else if (ch >= UNI_SUR_LOW_START && ch <= UNI_SUR_LOW_END){sb.Append(\"L:\");}else if (ch > UNI_SUR_LOW_END){if (ch == 0xffff){sb.Append(\"F:\");}else{sb.Append(\"E:\");}}sb.Append(\"0x\" + ((short)ch).ToString(\"X\"));}}return sb.ToString();}" }, { "index": 10050, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {double result;try {double d0 = NumericFunction.singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);result = Math.log(d0) / LOG_10_TO_BASE_e;NumericFunction.checkValue(result);} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){double result;try{double d0 = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);result = Math.Log(d0) / NumericFunction.LOG_10_TO_BASE_e;NumericFunction.CheckValue(result);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}" }, { "index": 10051, "before": "public long byteCount(int packedIntsVersion, int valueCount, int bitsPerValue) {assert bitsPerValue >= 0 && bitsPerValue <= 64 : bitsPerValue;return 8L * longCount(packedIntsVersion, valueCount, bitsPerValue);}", "after": "public virtual long ByteCount(int packedIntsVersion, int valueCount, int bitsPerValue){return 8L * Int64Count(packedIntsVersion, valueCount, bitsPerValue);}" }, { "index": 10052, "before": "public Policy(String id, Collection statements) {this(id);setStatements(statements);}", "after": "public Policy(string id, IList statements){this.id = id;this.statements = statements;}" }, { "index": 10053, "before": "public FunctionQuery(ValueSource func) {this.func=func;}", "after": "public FunctionQuery(ValueSource func){this.func = func;}" }, { "index": 10054, "before": "public UpdateGameServerResult updateGameServer(UpdateGameServerRequest request) {request = beforeClientExecution(request);return executeUpdateGameServer(request);}", "after": "public virtual UpdateGameServerResponse UpdateGameServer(UpdateGameServerRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGameServerRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGameServerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10055, "before": "public GetDetectorVersionResult getDetectorVersion(GetDetectorVersionRequest request) {request = beforeClientExecution(request);return executeGetDetectorVersion(request);}", "after": "public virtual GetDetectorVersionResponse GetDetectorVersion(GetDetectorVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDetectorVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDetectorVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10056, "before": "public void addField(String fieldName, String text, Analyzer analyzer) {if (fieldName == null)throw new IllegalArgumentException(\"fieldName must not be null\");if (text == null)throw new IllegalArgumentException(\"text must not be null\");if (analyzer == null)throw new IllegalArgumentException(\"analyzer must not be null\");TokenStream stream = analyzer.tokenStream(fieldName, text);storeTerms(getInfo(fieldName, defaultFieldType), stream,analyzer.getPositionIncrementGap(fieldName), analyzer.getOffsetGap(fieldName));}", "after": "public virtual void AddField(string fieldName, string text, Analyzer analyzer){if (fieldName == null){throw new System.ArgumentException(\"fieldName must not be null\");}if (text == null){throw new System.ArgumentException(\"text must not be null\");}if (analyzer == null){throw new System.ArgumentException(\"analyzer must not be null\");}TokenStream stream;try{stream = analyzer.GetTokenStream(fieldName, text);}catch (IOException ex){throw new Exception(ex.ToString(), ex);}AddField(fieldName, stream, 1.0f, analyzer.GetPositionIncrementGap(fieldName), analyzer.GetOffsetGap(fieldName));}" }, { "index": 10057, "before": "public boolean isEnabled(String component) {return false;}", "after": "public override bool IsEnabled(string component){return false;}" }, { "index": 10058, "before": "public long next() {final long idx = 1 + (ord / indexInterval);if (idx >= fieldIndex.numIndexTerms) {return -1;}ord += indexInterval;final long offset = fieldIndex.termOffsets.get(idx);final int length = (int) (fieldIndex.termOffsets.get(1+idx) - offset);termBytesReader.fillSlice(term, fieldIndex.termBytesStart + offset, length);return fieldIndex.termsStart + fieldIndex.termsDictOffsets.get(idx);}", "after": "public override long Next(){int idx = 1 + (int)(ord / outerInstance.totalIndexInterval);if (idx >= fieldIndex.numIndexTerms){return -1;}ord += outerInstance.totalIndexInterval;long offset = fieldIndex.termOffsets.Get(idx);int length = (int)(fieldIndex.termOffsets.Get(1 + idx) - offset);outerInstance.termBytesReader.FillSlice(term, fieldIndex.termBytesStart + offset, length);return fieldIndex.termsStart + fieldIndex.termsDictOffsets.Get(idx);}" }, { "index": 10059, "before": "public DisassociateMemberFromGroupResult disassociateMemberFromGroup(DisassociateMemberFromGroupRequest request) {request = beforeClientExecution(request);return executeDisassociateMemberFromGroup(request);}", "after": "public virtual DisassociateMemberFromGroupResponse DisassociateMemberFromGroup(DisassociateMemberFromGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateMemberFromGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateMemberFromGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10060, "before": "public UnmergedPathException(DirCacheEntry dce) {super(MessageFormat.format(JGitText.get().unmergedPath, dce.getPathString()));entry = dce;}", "after": "public UnmergedPathException(DirCacheEntry dce) : base(MessageFormat.Format(JGitText.Get().unmergedPath, dce.PathString)){entry = dce;}" }, { "index": 10061, "before": "public Name(NameRecord nameRecord, int index) {_nameRecord = nameRecord;_index = index;}", "after": "public Name(NameRecord nameRecord, int index){_nameRecord = nameRecord;_index = index;}" }, { "index": 10062, "before": "public void add(ET object) {if (expectedModCount == list.modCount) {Link next = link.next;Link newLink = new Link(object, link, next);link.next = newLink;next.previous = newLink;link = newLink;lastLink = null;pos++;expectedModCount++;list.size++;list.modCount++;} else {throw new ConcurrentModificationException();}}", "after": "public void add(ET @object){if (expectedModCount == list.modCount){java.util.LinkedList.Link next_1 = link.next;java.util.LinkedList.Link newLink = new java.util.LinkedList.Link(@object, link, next_1);link.next = newLink;next_1.previous = newLink;link = newLink;lastLink = null;pos++;expectedModCount++;list._size++;list.modCount++;}else{throw new java.util.ConcurrentModificationException();}}" }, { "index": 10063, "before": "public final ByteOrder order() {return order;}", "after": "public java.nio.ByteOrder order(){return _order;}" }, { "index": 10064, "before": "public ValueFiller getValueFiller() {return new ValueFiller() {private final MutableValueStr mval = new MutableValueStr();@Override", "after": "public override ValueFiller GetValueFiller(){return new ValueFillerAnonymousInnerClassHelper(this);}" }, { "index": 10065, "before": "public SubmoduleInitCommand addPath(String path) {paths.add(path);return this;}", "after": "public virtual NGit.Api.SubmoduleInitCommand AddPath(string path){paths.AddItem(path);return this;}" }, { "index": 10066, "before": "public DeleteInterconnectResult deleteInterconnect(DeleteInterconnectRequest request) {request = beforeClientExecution(request);return executeDeleteInterconnect(request);}", "after": "public virtual DeleteInterconnectResponse DeleteInterconnect(DeleteInterconnectRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteInterconnectRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteInterconnectResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10067, "before": "public Credential(String keyId, String secret) {this.accessKeyId = keyId;this.accessSecret = secret;this.refreshDate = new Date();}", "after": "public Credential(string keyId, string secret){AccessKeyId = keyId;AccessSecret = secret;RefreshDate = DateTime.UtcNow;}" }, { "index": 10068, "before": "public DeleteRepoWebhookRequest() {super(\"cr\", \"2016-06-07\", \"DeleteRepoWebhook\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/webhooks/[WebhookId]\");setMethod(MethodType.DELETE);}", "after": "public DeleteRepoWebhookRequest(): base(\"cr\", \"2016-06-07\", \"DeleteRepoWebhook\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/webhooks/[WebhookId]\";Method = MethodType.DELETE;}" }, { "index": 10069, "before": "public DeleteDeviceResult deleteDevice(DeleteDeviceRequest request) {request = beforeClientExecution(request);return executeDeleteDevice(request);}", "after": "public virtual DeleteDeviceResponse DeleteDevice(DeleteDeviceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDeviceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDeviceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10070, "before": "public CreateEventBusResult createEventBus(CreateEventBusRequest request) {request = beforeClientExecution(request);return executeCreateEventBus(request);}", "after": "public virtual CreateEventBusResponse CreateEventBus(CreateEventBusRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEventBusRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEventBusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10071, "before": "public boolean isEnabled() {return enabled;}", "after": "public virtual bool IsEnabled(){return enabled;}" }, { "index": 10072, "before": "public boolean isSigned() {return signed;}", "after": "public virtual bool IsSigned(){return signed;}" }, { "index": 10073, "before": "public DeleteRuleVersionResult deleteRuleVersion(DeleteRuleVersionRequest request) {request = beforeClientExecution(request);return executeDeleteRuleVersion(request);}", "after": "public virtual DeleteRuleVersionResponse DeleteRuleVersion(DeleteRuleVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRuleVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRuleVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10074, "before": "public long seek(long ord) {throw new UnsupportedOperationException();}", "after": "public override long Seek(long ord){throw new NotSupportedException();}" }, { "index": 10075, "before": "public CreateAppCookieStickinessPolicyRequest(String loadBalancerName, String policyName, String cookieName) {setLoadBalancerName(loadBalancerName);setPolicyName(policyName);setCookieName(cookieName);}", "after": "public CreateAppCookieStickinessPolicyRequest(string loadBalancerName, string policyName, string cookieName){_loadBalancerName = loadBalancerName;_policyName = policyName;_cookieName = cookieName;}" }, { "index": 10076, "before": "public BlameCommand setDiffAlgorithm(DiffAlgorithm diffAlgorithm) {this.diffAlgorithm = diffAlgorithm;return this;}", "after": "public virtual NGit.Api.BlameCommand SetDiffAlgorithm(DiffAlgorithm diffAlgorithm){this.diffAlgorithm = diffAlgorithm;return this;}" }, { "index": 10077, "before": "public DisassociateSkillFromUsersResult disassociateSkillFromUsers(DisassociateSkillFromUsersRequest request) {request = beforeClientExecution(request);return executeDisassociateSkillFromUsers(request);}", "after": "public virtual DisassociateSkillFromUsersResponse DisassociateSkillFromUsers(DisassociateSkillFromUsersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateSkillFromUsersRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateSkillFromUsersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10078, "before": "public PatchIdDiffFormatter() {super(new DigestOutputStream(NullOutputStream.INSTANCE,Constants.newMessageDigest()));digest = ((DigestOutputStream) getOutputStream()).getMessageDigest();}", "after": "public PatchIdDiffFormatter() : base(new DigestOutputStream(NullOutputStream.INSTANCE, Constants.NewMessageDigest())){digest = ((DigestOutputStream)GetOutputStream()).GetMessageDigest();}" }, { "index": 10079, "before": "public SendMessageResult sendMessage(SendMessageRequest request) {request = beforeClientExecution(request);return executeSendMessage(request);}", "after": "public virtual SendMessageResponse SendMessage(SendMessageRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendMessageRequestMarshaller.Instance;options.ResponseUnmarshaller = SendMessageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10080, "before": "public static ParsePathType pathType(Path f) {int pathLength = 0;while (f != null && f.getFileName() != null && ++pathLength < MAX_PATH_LENGTH) {ParsePathType ppt = pathName2Type.get(f.getFileName().toString().toUpperCase(Locale.ROOT));if (ppt!=null) {return ppt;}f = f.getParent();}return DEFAULT_PATH_TYPE;}", "after": "public static ParsePathType PathType(FileInfo f){int pathLength = 0;ParsePathType? ppt;if (pathName2Type.TryGetValue(f.Name.ToUpperInvariant(), out ppt) && ppt != null){return ppt.Value;}DirectoryInfo parentDir = f.Directory;while (parentDir != null && ++pathLength < MAX_PATH_LENGTH){if (pathName2Type.TryGetValue(parentDir.Name.ToUpperInvariant(), out ppt) && ppt != null){return ppt.Value;}parentDir = parentDir.Parent;}return DEFAULT_PATH_TYPE;}" }, { "index": 10081, "before": "public static long estimateIndexSize(int sourceLength) {return sourceLength + (sourceLength * 3 / 4);}", "after": "public static long EstimateIndexSize(int sourceLength){return sourceLength + (sourceLength * 3 / 4);}" }, { "index": 10082, "before": "public UpdateDashboardPermissionsResult updateDashboardPermissions(UpdateDashboardPermissionsRequest request) {request = beforeClientExecution(request);return executeUpdateDashboardPermissions(request);}", "after": "public virtual UpdateDashboardPermissionsResponse UpdateDashboardPermissions(UpdateDashboardPermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDashboardPermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDashboardPermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10083, "before": "public String formatAsString() {switch (_cellType) {case NUMERIC:return String.valueOf(_numberValue);case STRING:return '\"' + _textValue + '\"';case BOOLEAN:return _booleanValue ? \"TRUE\" : \"FALSE\";case ERROR:return ErrorEval.getText(_errorCode);default:return \"\";}}", "after": "public String FormatAsString(){switch (_cellType){case CellType.Numeric:string result = _numberValue.ToString(CultureInfo.InvariantCulture);return result;case CellType.String:return '\"' + _textValue + '\"';case CellType.Boolean:return _boolValue ? \"TRUE\" : \"FALSE\";case CellType.Error:return ErrorEval.GetText(_errorCode);}return \"\";}" }, { "index": 10084, "before": "public final void add(RevFlagSet set) {flags |= set.mask;}", "after": "public void Add(RevFlagSet set){flags |= set.mask;}" }, { "index": 10085, "before": "public URIish setHost(String n) {final URIish r = new URIish(this);r.host = n;return r;}", "after": "public virtual NGit.Transport.URIish SetHost(string n){NGit.Transport.URIish r = new NGit.Transport.URIish(this);r.host = n;return r;}" }, { "index": 10086, "before": "public void clearFormulaEntry() {CellCacheEntry[] usedCells = _sensitiveInputCells;if (usedCells != null) {for (int i = usedCells.length-1; i>=0; i--) {usedCells[i].clearConsumingCell(this);}}_sensitiveInputCells = null;clearValue();}", "after": "public void ClearFormulaEntry(){CellCacheEntry[] usedCells = _sensitiveInputCells;if (usedCells != null){for (int i = usedCells.Length - 1; i >= 0; i--){usedCells[i].ClearConsumingCell(this);}}_sensitiveInputCells = null;ClearValue();}" }, { "index": 10087, "before": "public GetDiskSnapshotResult getDiskSnapshot(GetDiskSnapshotRequest request) {request = beforeClientExecution(request);return executeGetDiskSnapshot(request);}", "after": "public virtual GetDiskSnapshotResponse GetDiskSnapshot(GetDiskSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDiskSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDiskSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10088, "before": "public DescribeIpv6PoolsResult describeIpv6Pools(DescribeIpv6PoolsRequest request) {request = beforeClientExecution(request);return executeDescribeIpv6Pools(request);}", "after": "public virtual DescribeIpv6PoolsResponse DescribeIpv6Pools(DescribeIpv6PoolsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIpv6PoolsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIpv6PoolsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10089, "before": "public UpdateDetectorResult updateDetector(UpdateDetectorRequest request) {request = beforeClientExecution(request);return executeUpdateDetector(request);}", "after": "public virtual UpdateDetectorResponse UpdateDetector(UpdateDetectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDetectorRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDetectorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10090, "before": "public DeleteInstanceResult deleteInstance(DeleteInstanceRequest request) {request = beforeClientExecution(request);return executeDeleteInstance(request);}", "after": "public virtual DeleteInstanceResponse DeleteInstance(DeleteInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10091, "before": "public ListThreatIntelSetsResult listThreatIntelSets(ListThreatIntelSetsRequest request) {request = beforeClientExecution(request);return executeListThreatIntelSets(request);}", "after": "public virtual ListThreatIntelSetsResponse ListThreatIntelSets(ListThreatIntelSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListThreatIntelSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListThreatIntelSetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10092, "before": "public ExportClientVpnClientConfigurationResult exportClientVpnClientConfiguration(ExportClientVpnClientConfigurationRequest request) {request = beforeClientExecution(request);return executeExportClientVpnClientConfiguration(request);}", "after": "public virtual ExportClientVpnClientConfigurationResponse ExportClientVpnClientConfiguration(ExportClientVpnClientConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExportClientVpnClientConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = ExportClientVpnClientConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10093, "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.max(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.Max(currentPayloadScore, currentScore);}}" }, { "index": 10094, "before": "public CreateDBParameterGroupRequest(String dBParameterGroupName, String dBParameterGroupFamily, String description) {setDBParameterGroupName(dBParameterGroupName);setDBParameterGroupFamily(dBParameterGroupFamily);setDescription(description);}", "after": "public CreateDBParameterGroupRequest(string dbParameterGroupName, string dbParameterGroupFamily, string description){_dbParameterGroupName = dbParameterGroupName;_dbParameterGroupFamily = dbParameterGroupFamily;_description = description;}" }, { "index": 10095, "before": "public void add(int forwardId, int backwardId, int cost) {int offset = (backwardId * forwardSize + forwardId) * 2;costs.putShort(offset, (short) cost);}", "after": "public void Add(int forwardId, int backwardId, int cost){this.costs[backwardId][forwardId] = (short)cost;}" }, { "index": 10096, "before": "public boolean isPeeled() {return true;}", "after": "public override bool IsPeeled(){return true;}" }, { "index": 10097, "before": "public CreateTransitVirtualInterfaceResult createTransitVirtualInterface(CreateTransitVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeCreateTransitVirtualInterface(request);}", "after": "public virtual CreateTransitVirtualInterfaceResponse CreateTransitVirtualInterface(CreateTransitVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitVirtualInterfaceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10098, "before": "public BatchDetectSentimentResult batchDetectSentiment(BatchDetectSentimentRequest request) {request = beforeClientExecution(request);return executeBatchDetectSentiment(request);}", "after": "public virtual BatchDetectSentimentResponse BatchDetectSentiment(BatchDetectSentimentRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDetectSentimentRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDetectSentimentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10099, "before": "public boolean equals(Object o) {if ( o==null || !(o instanceof Interval) ) {return false;}Interval other = (Interval)o;return this.a==other.a && this.b==other.b;}", "after": "public override bool Equals(object o){if (!(o is Antlr4.Runtime.Misc.Interval)){return false;}Antlr4.Runtime.Misc.Interval other = (Antlr4.Runtime.Misc.Interval)o;return this.a == other.a && this.b == other.b;}" }, { "index": 10100, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[USESELFS]\\n\");buffer.append(\" .options = \").append(HexDump.shortToHex(_options)).append(\"\\n\");buffer.append(\"[/USESELFS]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[USESELFS]\\n\");buffer.Append(\" .flag = \").Append(HexDump.ShortToHex(_options)).Append(\"\\n\");buffer.Append(\"[/USESELFS]\\n\");return buffer.ToString();}" }, { "index": 10101, "before": "public SmallDocSet union(SmallDocSet other) {SmallDocSet bigger;SmallDocSet smaller;if (other.intSet.size() > this.intSet.size()) {bigger = other;smaller = this;} else {bigger = this;smaller = other;}for (int v : smaller.intSet.keys) {if (v == smaller.intSet.emptyVal)continue;bigger.set(v);}return bigger;}", "after": "public virtual SmallDocSet Union(SmallDocSet other){SmallDocSet bigger;SmallDocSet smaller;if (other.intSet.Count > this.intSet.Count){bigger = other;smaller = this;}else{bigger = this;smaller = other;}foreach (int v in smaller.intSet.Keys){if (v == smaller.intSet.EmptyVal){continue;}bigger.Set(v);}return bigger;}" }, { "index": 10102, "before": "public boolean equals(Object o) {if (o instanceof Edit) {final Edit e = (Edit) o;return this.beginA == e.beginA && this.endA == e.endA&& this.beginB == e.beginB && this.endB == e.endB;}return false;}", "after": "public override bool Equals(object o){if (o is NGit.Diff.Edit){NGit.Diff.Edit e = (NGit.Diff.Edit)o;return this.beginA == e.beginA && this.endA == e.endA && this.beginB == e.beginB&& this.endB == e.endB;}return false;}" }, { "index": 10103, "before": "public int getBigFileThreshold() {return bigFileThreshold;}", "after": "public virtual int GetBigFileThreshold(){return bigFileThreshold;}" }, { "index": 10104, "before": "public String toString() {final StringBuilder r = new StringBuilder();r.append(getSeverity().name().toLowerCase(Locale.ROOT));r.append(\": at offset \"); r.append(getOffset());r.append(\": \"); r.append(getMessage());r.append(\"\\n\"); r.append(\" in \"); r.append(getLineText());return r.toString();}", "after": "public override string ToString(){StringBuilder r = new StringBuilder();r.Append(GetSeverity().ToString().ToLower());r.Append(\": at offset \");r.Append(GetOffset());r.Append(\": \");r.Append(GetMessage());r.Append(\"\\n\");r.Append(\" in \");r.Append(GetLineText());return r.ToString();}" }, { "index": 10105, "before": "public IntBuffer slice() {return new ReadWriteIntArrayBuffer(remaining(), backingArray, offset + position);}", "after": "public override java.nio.IntBuffer slice(){return new java.nio.ReadWriteIntArrayBuffer(remaining(), backingArray, offset + _position);}" }, { "index": 10106, "before": "public DeleteApplicationResult deleteApplication(DeleteApplicationRequest request) {request = beforeClientExecution(request);return executeDeleteApplication(request);}", "after": "public virtual DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10107, "before": "public TokenOffsetPayloadTokenFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public TokenOffsetPayloadTokenFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 10108, "before": "public boolean equals(Object o) {if (this.getClass() != o.getClass()) return false;MultiFunction other = (MultiFunction)o;return this.sources.equals(other.sources);}", "after": "public override bool Equals(object o){if (this.GetType() != o.GetType()){return false;}var other = (MultiFunction)o;return JCG.ListEqualityComparer.Default.Equals(this.m_sources, other.m_sources);}" }, { "index": 10109, "before": "public SpanQuery getSpanQuery(Element e) throws ParserException {SpanQueryBuilder builder = builders.get(e.getNodeName());if (builder == null) {throw new ParserException(\"No SpanQueryObjectBuilder defined for node \" + e.getNodeName());}return builder.getSpanQuery(e);}", "after": "public virtual SpanQuery GetSpanQuery(XmlElement e){ISpanQueryBuilder builder;if (!builders.TryGetValue(e.Name, out builder) || builder == null){throw new ParserException(\"No SpanQueryObjectBuilder defined for node \" + e.Name);}return builder.GetSpanQuery(e);}" }, { "index": 10110, "before": "public void incRef() {final int rc = refCount.incrementAndGet();assert rc > 1: \"seg=\" + info;}", "after": "public virtual void IncRef(){int rc = refCount.IncrementAndGet();Debug.Assert(rc > 1);}" }, { "index": 10111, "before": "public String formula() {return _formula;}", "after": "public String formula(){return _formula;}" }, { "index": 10112, "before": "public T removeTop() {T currentTop = top;if (iter.hasNext()) {top = iter.next();} else {top = null;}return currentTop;}", "after": "public T RemoveTop(){T currentTop = top;if (iter.MoveNext()){top = iter.Current;}else{top = default(T);}return currentTop;}" }, { "index": 10113, "before": "public ObjectId getExpectedOldObjectId() {return expValue;}", "after": "public virtual ObjectId GetExpectedOldObjectId(){return expValue;}" }, { "index": 10114, "before": "public DefaultPassageFormatter(String preTag, String postTag, String ellipsis, boolean escape) {if (preTag == null || postTag == null || ellipsis == null) {throw new NullPointerException();}this.preTag = preTag;this.postTag = postTag;this.ellipsis = ellipsis;this.escape = escape;}", "after": "public DefaultPassageFormatter(string preTag, string postTag, string ellipsis, bool escape){if (preTag == null || postTag == null || ellipsis == null){throw new ArgumentException(); }this.m_preTag = preTag;this.m_postTag = postTag;this.m_ellipsis = ellipsis;this.m_escape = escape;}" }, { "index": 10115, "before": "public UpdateImagePermissionsResult updateImagePermissions(UpdateImagePermissionsRequest request) {request = beforeClientExecution(request);return executeUpdateImagePermissions(request);}", "after": "public virtual UpdateImagePermissionsResponse UpdateImagePermissions(UpdateImagePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateImagePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateImagePermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10116, "before": "public ListCustomVerificationEmailTemplatesResult listCustomVerificationEmailTemplates(ListCustomVerificationEmailTemplatesRequest request) {request = beforeClientExecution(request);return executeListCustomVerificationEmailTemplates(request);}", "after": "public virtual ListCustomVerificationEmailTemplatesResponse ListCustomVerificationEmailTemplates(ListCustomVerificationEmailTemplatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListCustomVerificationEmailTemplatesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListCustomVerificationEmailTemplatesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10117, "before": "public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {return IoBridge.read(fd, buffer, byteOffset, byteCount);}", "after": "public virtual int read(byte[] buffer, int byteOffset, int byteCount){throw new System.NotImplementedException();}" }, { "index": 10118, "before": "public StringCharacterIterator(String value, int location) {string = value;start = 0;end = string.length();if (location < 0 || location > end) {throw new IllegalArgumentException();}offset = location;}", "after": "public StringCharacterIterator(string value, int location){@string = value;start = 0;end = @string.Length;if (location < 0 || location > end){throw new System.ArgumentException();}offset = location;}" }, { "index": 10119, "before": "public DeleteQueryLoggingConfigResult deleteQueryLoggingConfig(DeleteQueryLoggingConfigRequest request) {request = beforeClientExecution(request);return executeDeleteQueryLoggingConfig(request);}", "after": "public virtual DeleteQueryLoggingConfigResponse DeleteQueryLoggingConfig(DeleteQueryLoggingConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteQueryLoggingConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteQueryLoggingConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10120, "before": "public InvalidPatternException(String message, String pattern) {super(message);this.pattern = pattern;}", "after": "public InvalidPatternException(string message, string pattern) : base(message){this.pattern = pattern;}" }, { "index": 10121, "before": "public int resolveNameXIx(int refIndex, int definedNameIndex) {int extBookIndex = _externSheetRecord.getExtbookIndexFromRefIndex(refIndex);return _externalBookBlocks[extBookIndex].getNameIx(definedNameIndex);}", "after": "public int ResolveNameXIx(int refIndex, int definedNameIndex){int extBookIndex = _externSheetRecord.GetExtbookIndexFromRefIndex(refIndex);return _externalBookBlocks[extBookIndex].GetNameIx(definedNameIndex);}" }, { "index": 10122, "before": "public boolean equals(Object obj) {if (this == obj)return true;if (!super.equals(obj))return false;if (getClass() != obj.getClass())return false;FuzzyQuery other = (FuzzyQuery) obj;if (maxEdits != other.maxEdits)return false;if (prefixLength != other.prefixLength)return false;if (maxExpansions != other.maxExpansions)return false;if (transpositions != other.transpositions)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;}FuzzyQuery other = (FuzzyQuery)obj;if (maxEdits != other.maxEdits){return false;}if (prefixLength != other.prefixLength){return false;}if (maxExpansions != other.maxExpansions){return false;}if (transpositions != other.transpositions){return false;}if (term == null){if (other.term != null){return false;}}else if (!term.Equals(other.term)){return false;}return true;}" }, { "index": 10123, "before": "public Term getLuceneTerm(String fieldName) {return new Term(fieldName, getTermText());}", "after": "public virtual Term GetLuceneTerm(string fieldName){return new Term(fieldName, TermText);}" }, { "index": 10124, "before": "public static MessageDigest newMessageDigest() {try {return MessageDigest.getInstance(LONG_HASH_FUNCTION);} catch (NoSuchAlgorithmException nsae) {throw new RuntimeException(MessageFormat.format(LfsText.get().requiredHashFunctionNotAvailable,LONG_HASH_FUNCTION), nsae);}}", "after": "public static MessageDigest NewMessageDigest(){try{return MessageDigest.GetInstance(HASH_FUNCTION);}catch (NoSuchAlgorithmException nsae){throw new RuntimeException(MessageFormat.Format(JGitText.Get().requiredHashFunctionNotAvailable, HASH_FUNCTION), nsae);}}" }, { "index": 10125, "before": "public void reset() {synchronized (lock) {count = 0;}}", "after": "public virtual void reset(){lock (@lock){count = 0;}}" }, { "index": 10126, "before": "public HyphenationTree() {stoplist = new HashMap<>(23); classmap = new TernaryTree();vspace = new ByteVector();vspace.alloc(1); }", "after": "public HyphenationTree(){m_stoplist = new JCG.Dictionary>(23); m_classmap = new TernaryTree();m_vspace = new ByteVector();m_vspace.Alloc(1); }" }, { "index": 10127, "before": "public DescribeCollectionResult describeCollection(DescribeCollectionRequest request) {request = beforeClientExecution(request);return executeDescribeCollection(request);}", "after": "public virtual DescribeCollectionResponse DescribeCollection(DescribeCollectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCollectionRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCollectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10128, "before": "public synchronized StringBuffer insert(int index, char[] chars) {insert0(index, chars);return this;}", "after": "public java.lang.StringBuffer insert(int index, char[] chars){lock (this){insert0(index, chars);return this;}}" }, { "index": 10129, "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 << 2) | (byte1 >>> 6);final long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 63) << 4) | (byte2 >>> 4);final long byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 6) | (byte3 >>> 2);final long byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 3) << 8) | byte4;}}", "after": "public override void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long byte0 = blocks[blocksOffset++] & 0xFF;long byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 2) | ((long)((ulong)byte1 >> 6));long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 63) << 4) | ((long)((ulong)byte2 >> 4));long byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 6) | ((long)((ulong)byte3 >> 2));long byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 3) << 8) | byte4;}}" }, { "index": 10130, "before": "public GetSearchRequest() {super(\"cr\", \"2016-06-07\", \"GetSearch\", \"cr\");setUriPattern(\"/search-delete\");setMethod(MethodType.GET);}", "after": "public GetSearchRequest(): base(\"cr\", \"2016-06-07\", \"GetSearch\", \"cr\", \"openAPI\"){UriPattern = \"/search-delete\";Method = MethodType.GET;}" }, { "index": 10131, "before": "public void consume() {boolean skipEofCheck;if (p >= 0) {if (fetchedEOF) {skipEofCheck = p < tokens.size() - 1;}else {skipEofCheck = p < tokens.size();}}else {skipEofCheck = false;}if (!skipEofCheck && LA(1) == EOF) {throw new IllegalStateException(\"cannot consume EOF\");}if (sync(p + 1)) {p = adjustSeekIndex(p + 1);}}", "after": "public virtual void Consume(){bool skipEofCheck;if (p >= 0){if (fetchedEOF){skipEofCheck = p < tokens.Count - 1;}else{skipEofCheck = p < tokens.Count;}}else{skipEofCheck = false;}if (!skipEofCheck && LA(1) == IntStreamConstants.EOF){throw new InvalidOperationException(\"cannot consume EOF\");}if (Sync(p + 1)){p = AdjustSeekIndex(p + 1);}}" }, { "index": 10132, "before": "public CharBlockArray append(String s) {int remain = s.length();int offset = 0;while (remain > 0) {if (this.current.length == this.blockSize) {addBlock();}int toCopy = remain;int remainingInBlock = this.blockSize - this.current.length;if (remainingInBlock < toCopy) {toCopy = remainingInBlock;}s.getChars(offset, offset + toCopy, this.current.chars, this.current.length);offset += toCopy;remain -= toCopy;this.current.length += toCopy;}this.length += s.length();return this;}", "after": "public virtual CharBlockArray Append(string s){int remain = s.Length;int offset = 0;while (remain > 0){if (this.current.length == this.blockSize){AddBlock();}int toCopy = remain;int remainingInBlock = this.blockSize - this.current.length;if (remainingInBlock < toCopy){toCopy = remainingInBlock;}s.CopyTo(offset, this.current.chars, this.current.length, toCopy);offset += toCopy;remain -= toCopy;this.current.length += toCopy;}this.length += s.Length;return this;}" }, { "index": 10133, "before": "public ConfigureHealthCheckResult configureHealthCheck(ConfigureHealthCheckRequest request) {request = beforeClientExecution(request);return executeConfigureHealthCheck(request);}", "after": "public virtual ConfigureHealthCheckResponse ConfigureHealthCheck(ConfigureHealthCheckRequest request){var options = new InvokeOptions();options.RequestMarshaller = ConfigureHealthCheckRequestMarshaller.Instance;options.ResponseUnmarshaller = ConfigureHealthCheckResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10134, "before": "public CommonRoaRequest(String product) {super(product);setSysAcceptFormat(FormatType.JSON);}", "after": "public CommonRoaRequest(string product) : base(product){AcceptFormat = FormatType.JSON;}" }, { "index": 10135, "before": "public static int strlen(char[] a) {return strlen(a, 0);}", "after": "public static int StrLen(char[] a){return StrLen(a, 0);}" }, { "index": 10136, "before": "public void setReaderValue(Reader value) {if (!(fieldsData instanceof Reader)) {throw new IllegalArgumentException(\"cannot change value type from \" + fieldsData.getClass().getSimpleName() + \" to Reader\");}fieldsData = value;}", "after": "public virtual void SetReaderValue(TextReader value){if (!(FieldsData is TextReader)){throw new ArgumentException(\"cannot change value type from \" + FieldsData.GetType().Name + \" to TextReader\");}FieldsData = value;}" }, { "index": 10137, "before": "public DeleteUsagePlanResult deleteUsagePlan(DeleteUsagePlanRequest request) {request = beforeClientExecution(request);return executeDeleteUsagePlan(request);}", "after": "public virtual DeleteUsagePlanResponse DeleteUsagePlan(DeleteUsagePlanRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUsagePlanRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUsagePlanResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10138, "before": "public DeleteThreatIntelSetResult deleteThreatIntelSet(DeleteThreatIntelSetRequest request) {request = beforeClientExecution(request);return executeDeleteThreatIntelSet(request);}", "after": "public virtual DeleteThreatIntelSetResponse DeleteThreatIntelSet(DeleteThreatIntelSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteThreatIntelSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteThreatIntelSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10139, "before": "public DescribePlacementGroupsResult describePlacementGroups(DescribePlacementGroupsRequest request) {request = beforeClientExecution(request);return executeDescribePlacementGroups(request);}", "after": "public virtual DescribePlacementGroupsResponse DescribePlacementGroups(DescribePlacementGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePlacementGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePlacementGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10140, "before": "public EnableAddOnResult enableAddOn(EnableAddOnRequest request) {request = beforeClientExecution(request);return executeEnableAddOn(request);}", "after": "public virtual EnableAddOnResponse EnableAddOn(EnableAddOnRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableAddOnRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableAddOnResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10141, "before": "public TreeFilter clone() {final TreeFilter[] s = new TreeFilter[subfilters.length];for (int i = 0; i < s.length; i++)s[i] = subfilters[i].clone();return new List(s);}", "after": "public override RevFilter Clone(){RevFilter[] s = new RevFilter[subfilters.Length];for (int i = 0; i < s.Length; i++){s[i] = subfilters[i].Clone();}return new AndRevFilter.List(s);}" }, { "index": 10142, "before": "public ListTagsForResourceOutput listTagsForResource(ListTagsForResourceRequest request) {request = beforeClientExecution(request);return executeListTagsForResource(request);}", "after": "public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10143, "before": "public WeightedSpanTerm getWeightedSpanTerm(String token) {return fieldWeightedSpanTerms.get(token);}", "after": "public virtual WeightedSpanTerm GetWeightedSpanTerm(string token){WeightedSpanTerm result;fieldWeightedSpanTerms.TryGetValue(token, out result);return result;}" }, { "index": 10144, "before": "public Slope() {func = new LinearRegressionFunction(FUNCTION.SLOPE);}", "after": "public Slope(){func = new LinearRegressionFunction(LinearRegressionFunction.FUNCTION.SLOPE);}" }, { "index": 10145, "before": "public String toStringUnquoted() {return getTruncated();}", "after": "public override string ToStringUnquoted(){return Truncated;}" }, { "index": 10146, "before": "public UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest request) {request = beforeClientExecution(request);return executeUpdateSubnetGroup(request);}", "after": "public virtual UpdateSubnetGroupResponse UpdateSubnetGroup(UpdateSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSubnetGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10147, "before": "public void remove(int index) {checkIndex(index);_cfHeaders.remove(index);}", "after": "public void Remove(int index){CheckIndex(index);_cfHeaders.RemoveAt(index);}" }, { "index": 10148, "before": "public static long pop_intersect(long[] arr1, long[] arr2, int wordOffset, int numWords) {long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i) {popCount += Long.bitCount(arr1[i] & arr2[i]);}return popCount;}", "after": "public static long Pop_Intersect(long[] arr1, long[] arr2, int wordOffset, int numWords){long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i){popCount += (arr1[i] & arr2[i]).PopCount();}return popCount;}" }, { "index": 10149, "before": "public boolean shouldBeRecursive() {return true;}", "after": "public override bool ShouldBeRecursive(){return true;}" }, { "index": 10150, "before": "public JapaneseBaseFormFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public JapaneseBaseFormFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 10151, "before": "public void visitContainedRecords(RecordVisitor rv) {rv.visitRecord(header);for (CFRuleBase rule : rules) {rv.visitRecord(rule);}}", "after": "public override void VisitContainedRecords(RecordVisitor rv){rv.VisitRecord(header);for (int i = 0; i < rules.Count; i++){CFRuleRecord rule = rules[i];rv.VisitRecord(rule);}}" }, { "index": 10152, "before": "public void dumpDrawingGroupRecords(boolean fat) {DrawingGroupRecord r = (DrawingGroupRecord) workbook.findFirstRecordBySid( DrawingGroupRecord.sid );if (r == null) {return;}r.decode();List escherRecords = r.getEscherRecords();PrintWriter w = new PrintWriter(new OutputStreamWriter(System.out, Charset.defaultCharset()));for (EscherRecord escherRecord : escherRecords) {if (fat) {System.out.println(escherRecord);} else {escherRecord.display(w, 0);}}w.flush();}", "after": "public void DumpDrawingGroupRecords(bool fat){DrawingGroupRecord r = (DrawingGroupRecord)workbook.FindFirstRecordBySid(DrawingGroupRecord.sid);r.Decode();IList escherRecords = r.EscherRecords;for (IEnumerator iterator = escherRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord escherRecord = (EscherRecord)iterator.Current;if (fat)Console.WriteLine(escherRecord.ToString());elseescherRecord.Display(0);}}" }, { "index": 10153, "before": "public int getLinesDeleted() {return nDeleted;}", "after": "public virtual int GetLinesDeleted(){return nDeleted;}" }, { "index": 10154, "before": "public String toString() {StringBuilder sb = new StringBuilder(64);sb.append(getClass().getName()).append(\" [\");sb.append(_offset).append(\"...\").append(getLastIndex());sb.append(\"]\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(\" [\");sb.Append(_offset).Append(\"...\").Append(LastIndex);sb.Append(\"]\");return sb.ToString();}" }, { "index": 10155, "before": "public int[] compact() {assert bytesStart != null : \"bytesStart is null - not initialized\";int upto = 0;for (int i = 0; i < hashSize; i++) {if (ids[i] != -1) {if (upto < i) {ids[upto] = ids[i];ids[i] = -1;}upto++;}}assert upto == count;lastCount = count;return ids;}", "after": "public int[] Compact(){Debug.Assert(bytesStart != null, \"bytesStart is null - not initialized\");int upto = 0;for (int i = 0; i < hashSize; i++){if (ids[i] != -1){if (upto < i){ids[upto] = ids[i];ids[i] = -1;}upto++;}}Debug.Assert(upto == count);lastCount = count;return ids;}" }, { "index": 10156, "before": "public AccessKey(String userName, String accessKeyId, StatusType status, String secretAccessKey) {setUserName(userName);setAccessKeyId(accessKeyId);setStatus(status.toString());setSecretAccessKey(secretAccessKey);}", "after": "public AccessKey(string userName, string accessKeyId, StatusType status, string secretAccessKey){_userName = userName;_accessKeyId = accessKeyId;_status = status;_secretAccessKey = secretAccessKey;}" }, { "index": 10157, "before": "public GetDomainResult getDomain(GetDomainRequest request) {request = beforeClientExecution(request);return executeGetDomain(request);}", "after": "public virtual GetDomainResponse GetDomain(GetDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10158, "before": "public ListTypeRegistrationsResult listTypeRegistrations(ListTypeRegistrationsRequest request) {request = beforeClientExecution(request);return executeListTypeRegistrations(request);}", "after": "public virtual ListTypeRegistrationsResponse ListTypeRegistrations(ListTypeRegistrationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTypeRegistrationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTypeRegistrationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10159, "before": "public boolean isSymbolic() {return false;}", "after": "public virtual bool IsSymbolic(){return false;}" }, { "index": 10160, "before": "public DeleteTableRequest(String tableName) {setTableName(tableName);}", "after": "public DeleteTableRequest(string tableName){_tableName = tableName;}" }, { "index": 10161, "before": "public UpdateAccountSettingsResult updateAccountSettings(UpdateAccountSettingsRequest request) {request = beforeClientExecution(request);return executeUpdateAccountSettings(request);}", "after": "public virtual UpdateAccountSettingsResponse UpdateAccountSettings(UpdateAccountSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAccountSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAccountSettingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10162, "before": "public SearcherTracker(IndexSearcher searcher) {this.searcher = searcher;version = ((DirectoryReader) searcher.getIndexReader()).getVersion();searcher.getIndexReader().incRef();recordTimeSec = System.nanoTime() / NANOS_PER_SEC;}", "after": "public SearcherTracker(IndexSearcher searcher){Searcher = searcher;Version = ((DirectoryReader)searcher.IndexReader).Version;searcher.IndexReader.IncRef();RecordTimeSec = Time.NanoTime() / NANOS_PER_SEC;}" }, { "index": 10163, "before": "public Principal(String accountId) {this(\"AWS\", accountId);if (accountId == null) {throw new IllegalArgumentException(\"Null AWS account ID specified\");}}", "after": "public Principal(string accountId): this(AWS_PROVIDER, accountId){if (accountId == null){throw new ArgumentNullException(\"accountId\");}}" }, { "index": 10164, "before": "public V setValue(V object) {V result = value;value = object;return result;}", "after": "public V setValue(V @object){V result = value;value = @object;return result;}" }, { "index": 10165, "before": "public ListMomentPhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"ListMomentPhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public ListMomentPhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"ListMomentPhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 10166, "before": "public boolean contains(Object o) {return map.containsKey(o);}", "after": "public virtual bool Contains(object o){return map.ContainsKey(o);}" }, { "index": 10167, "before": "public LinearOffsetRange(int offset, int length) {if(length == 0) {throw new RuntimeException(\"length may not be zero\");}_offset = offset;_length = length;}", "after": "public LinearOffsetRange(int offset, int length){if (length == 0){throw new ArgumentException(\"Length may not be zero\");}_offset = offset;_Length = length;}" }, { "index": 10168, "before": "public ListPipelinesResult listPipelines() {return listPipelines(new ListPipelinesRequest());}", "after": "public virtual ListPipelinesResponse ListPipelines(){return ListPipelines(new ListPipelinesRequest());}" }, { "index": 10169, "before": "public static boolean indexExists(Directory directory) throws IOException {String[] files = directory.listAll();String prefix = IndexFileNames.SEGMENTS + \"_\";for(String file : files) {if (file.startsWith(prefix)) {return true;}}return false;}", "after": "public static bool IndexExists(Directory directory){string[] files;try{files = directory.ListAll();}#pragma warning disable 168catch (DirectoryNotFoundException nsde)#pragma warning restore 168{return false;}if (files != null){string prefix = IndexFileNames.SEGMENTS + \"_\";foreach (string file in files){if (file.StartsWith(prefix, StringComparison.Ordinal) || file.Equals(IndexFileNames.SEGMENTS_GEN, StringComparison.Ordinal)){return true;}}}return false;}" }, { "index": 10170, "before": "public DisassociateFromMasterAccountResult disassociateFromMasterAccount(DisassociateFromMasterAccountRequest request) {request = beforeClientExecution(request);return executeDisassociateFromMasterAccount(request);}", "after": "public virtual DisassociateFromMasterAccountResponse DisassociateFromMasterAccount(DisassociateFromMasterAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateFromMasterAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateFromMasterAccountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10171, "before": "public GetVoiceTemplateResult getVoiceTemplate(GetVoiceTemplateRequest request) {request = beforeClientExecution(request);return executeGetVoiceTemplate(request);}", "after": "public virtual GetVoiceTemplateResponse GetVoiceTemplate(GetVoiceTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10172, "before": "public long ramBytesUsed() {return RamUsageEstimator.sizeOf(filter.getBits());}", "after": "public virtual long RamBytesUsed(){return RamUsageEstimator.SizeOf(_filter.GetBits());}" }, { "index": 10173, "before": "public RejectInvitationResult rejectInvitation(RejectInvitationRequest request) {request = beforeClientExecution(request);return executeRejectInvitation(request);}", "after": "public virtual RejectInvitationResponse RejectInvitation(RejectInvitationRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectInvitationRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectInvitationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10174, "before": "public RejectQualificationRequestResult rejectQualificationRequest(RejectQualificationRequestRequest request) {request = beforeClientExecution(request);return executeRejectQualificationRequest(request);}", "after": "public virtual RejectQualificationRequestResponse RejectQualificationRequest(RejectQualificationRequestRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectQualificationRequestRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectQualificationRequestResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10175, "before": "public final long[] array() {return protectedArray();}", "after": "public sealed override object array(){return protectedArray();}" }, { "index": 10176, "before": "public void writeChars(String value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeChars(value);}", "after": "public virtual void writeChars(string value){throw new System.NotImplementedException();}" }, { "index": 10177, "before": "public void finish(FieldInfos fis, int numDocs) throws IOException {if (numDocsWritten != numDocs) {throw new RuntimeException(\"mergeVectors produced an invalid result: mergedDocs is \" + numDocs + \" but vec numDocs is \" + numDocsWritten + \" file=\" + out.toString() + \"; now aborting this merge to prevent index corruption\");}write(END);newLine();SimpleTextUtil.writeChecksum(out, scratch);}", "after": "public override void Finish(FieldInfos fis, int numDocs){if (_numDocsWritten != numDocs){throw new Exception(\"mergeVectors produced an invalid result: mergedDocs is \" + numDocs +\" but vec numDocs is \" + _numDocsWritten + \" file=\" + _output +\"; now aborting this merge to prevent index corruption\");}Write(END);NewLine();SimpleTextUtil.WriteChecksum(_output, _scratch);}" }, { "index": 10178, "before": "public void readBytes(byte[] b, int offset, int len) throws IOException {while (len > 0) {final int cnt = is.read(b, offset, len);if (cnt < 0) {throw new EOFException();}len -= cnt;offset += cnt;}}", "after": "public override void ReadBytes(byte[] b, int offset, int len){while (len > 0){int cnt = _reader.Read(b, offset, len);if (cnt < 0){throw new EndOfStreamException();}len -= cnt;offset += cnt;}}" }, { "index": 10179, "before": "public long ramBytesUsed() {long ramBytesUsed = BASE_RAM_BYTES_USED;ramBytesUsed += fields.size() * 2L * RamUsageEstimator.NUM_BYTES_OBJECT_REF;ramBytesUsed += formats.size() * 2L * RamUsageEstimator.NUM_BYTES_OBJECT_REF;for(Map.Entry entry: formats.entrySet()) {ramBytesUsed += entry.getValue().ramBytesUsed();}return ramBytesUsed;}", "after": "public override long RamBytesUsed(){long sizeInBytes = 0;foreach (KeyValuePair entry in formats){sizeInBytes += entry.Key.Length * RamUsageEstimator.NUM_BYTES_CHAR;sizeInBytes += entry.Value.RamBytesUsed();}return sizeInBytes;}" }, { "index": 10180, "before": "public boolean equals(Object obj) {if (this == obj) return true;if (null == obj || getClass() != obj.getClass()) return false;JaroWinklerDistance o = (JaroWinklerDistance)obj;return (Float.floatToIntBits(o.threshold)== Float.floatToIntBits(this.threshold));}", "after": "public override bool Equals(object obj){if (this == obj){return true;}if (null == obj || this.GetType() != obj.GetType()){return false;}JaroWinklerDistance o = (JaroWinklerDistance)obj;return (J2N.BitConversion.SingleToInt32Bits(o.threshold) == J2N.BitConversion.SingleToInt32Bits(this.threshold));}" }, { "index": 10181, "before": "public BatchRefUpdate addCommand(ReceiveCommand... cmd) {return addCommand(Arrays.asList(cmd));}", "after": "public virtual NGit.BatchRefUpdate AddCommand(ReceiveCommand cmd){commands.AddItem(cmd);return this;}" }, { "index": 10182, "before": "public ArrayPredictionContext(SingletonPredictionContext a) {this(new PredictionContext[] {a.parent}, new int[] {a.returnState});}", "after": "public ArrayPredictionContext(SingletonPredictionContext a): this(new PredictionContext[] { a.parent }" }, { "index": 10183, "before": "public void write(byte[] buf, int off, int len) throws IOException {try {beginWrite();dst.write(buf, off, len);} catch (InterruptedIOException e) {throw writeTimedOut(e);} finally {endWrite();}}", "after": "public override void Write(byte[] buf, int off, int len){try{BeginWrite();dst.Write(buf, off, len);}catch (ThreadInterruptedException){throw WriteTimedOut();}finally{EndWrite();}}" }, { "index": 10184, "before": "public DeregisterGameServerResult deregisterGameServer(DeregisterGameServerRequest request) {request = beforeClientExecution(request);return executeDeregisterGameServer(request);}", "after": "public virtual DeregisterGameServerResponse DeregisterGameServer(DeregisterGameServerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterGameServerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterGameServerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10185, "before": "public void write(byte[] b) {try {super.write(b);} catch (IOException e) {throw new RuntimeException(e);}}", "after": "public void Write(byte[] b){try{out1.Write(b, 0, b.Length);}catch (IOException e){throw new RuntimeException(e);}}" }, { "index": 10186, "before": "public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol) {return symbol >= from && symbol <= to;}", "after": "public override bool Matches(int symbol, int minVocabSymbol, int maxVocabSymbol){return symbol >= from && symbol <= to;}" }, { "index": 10187, "before": "public void finish(FieldInfos fis, int numDocs) throws IOException {if (numBufferedDocs > 0) {flush();numDirtyChunks++; } else {assert bufferedDocs.size() == 0;}if (docBase != numDocs) {throw new RuntimeException(\"Wrote \" + docBase + \" docs, finish called with numDocs=\" + numDocs);}indexWriter.finish(numDocs, fieldsStream.getFilePointer());fieldsStream.writeVLong(numChunks);fieldsStream.writeVLong(numDirtyChunks);CodecUtil.writeFooter(fieldsStream);assert bufferedDocs.size() == 0;}", "after": "public override void Finish(FieldInfos fis, int numDocs){if (numBufferedDocs > 0){Flush();}else{Debug.Assert(bufferedDocs.Length == 0);}if (docBase != numDocs){throw new Exception(\"Wrote \" + docBase + \" docs, finish called with numDocs=\" + numDocs);}indexWriter.Finish(numDocs, fieldsStream.GetFilePointer());CodecUtil.WriteFooter(fieldsStream);Debug.Assert(bufferedDocs.Length == 0);}" }, { "index": 10188, "before": "public Iterator iterator() {final Iterator i = names.values().iterator();return new Iterator() {@Override", "after": "public override Sharpen.Iterator Iterator(){Sharpen.Iterator i = names.Values.Iterator();return new _Iterator_276(i);}" }, { "index": 10189, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[DEFAULTCOLWIDTH]\\n\");buffer.append(\" .colwidth = \").append(Integer.toHexString(getColWidth())).append(\"\\n\");buffer.append(\"[/DEFAULTCOLWIDTH]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[DEFAULTCOLWIDTH]\\n\");buffer.Append(\" .colwidth = \").Append(StringUtil.ToHexString(ColWidth)).Append(\"\\n\");buffer.Append(\"[/DEFAULTCOLWIDTH]\\n\");return buffer.ToString();}" }, { "index": 10190, "before": "public DataValidityTable(RecordStream rs) {_headerRec = (DVALRecord) rs.getNext();List temp = new ArrayList<>();while (rs.peekNextClass() == DVRecord.class) {temp.add((DVRecord) rs.getNext());}_validationList = temp;}", "after": "public DataValidityTable(RecordStream rs){_headerRec = (DVALRecord)rs.GetNext();IList temp = new ArrayList();while (rs.PeekNextClass() == typeof(DVRecord)){temp.Add(rs.GetNext());}_validationList = temp;}" }, { "index": 10191, "before": "public DeleteRoomMembershipResult deleteRoomMembership(DeleteRoomMembershipRequest request) {request = beforeClientExecution(request);return executeDeleteRoomMembership(request);}", "after": "public virtual DeleteRoomMembershipResponse DeleteRoomMembership(DeleteRoomMembershipRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRoomMembershipRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRoomMembershipResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10192, "before": "public QueryParserTokenManager(CharStream stream, int lexState){this(stream);SwitchTo(lexState);}", "after": "public QueryParserTokenManager(ICharStream stream, int lexState):this(stream){SwitchTo(lexState);}" }, { "index": 10193, "before": "public RebootDBInstanceRequest(String dBInstanceIdentifier) {setDBInstanceIdentifier(dBInstanceIdentifier);}", "after": "public RebootDBInstanceRequest(string dbInstanceIdentifier){_dbInstanceIdentifier = dbInstanceIdentifier;}" }, { "index": 10194, "before": "public CreateAutoScalingGroupResult createAutoScalingGroup(CreateAutoScalingGroupRequest request) {request = beforeClientExecution(request);return executeCreateAutoScalingGroup(request);}", "after": "public virtual CreateAutoScalingGroupResponse CreateAutoScalingGroup(CreateAutoScalingGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAutoScalingGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAutoScalingGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10195, "before": "public K floorKey(K key) {Entry entry = findBounded(key, FLOOR);return entry != null ? entry.getKey() : null;}", "after": "public K floorKey(K key){java.util.MapClass.Entry entry = this.findBounded(key, java.util.TreeMap.Relation.FLOOR);return entry != null ? entry.getKey() : default(K);}" }, { "index": 10196, "before": "public boolean include(RevWalk walker, RevCommit c) {return true;}", "after": "public override bool Include(RevWalk walker, RevCommit c){return true;}" }, { "index": 10197, "before": "public boolean isValidating() {return getFeature (XmlPullParser.FEATURE_VALIDATION);}", "after": "public virtual bool isValidating(){return getFeature(org.xmlpull.v1.XmlPullParserClass.FEATURE_VALIDATION);}" }, { "index": 10198, "before": "public synchronized void write(int oneByte) {if (out == null) {setError();return;}try {out.write(oneByte);int b = oneByte & 0xFF;boolean isNewline = b == 0x0A || b == 0x15;if (autoFlush && isNewline) {flush();}} catch (IOException e) {setError();}}", "after": "public override void write(int oneByte){lock (this){if (@out == null){setError();return;}try{@out.write(oneByte);int b = oneByte & unchecked((int)(0xFF));bool isNewline = b == unchecked((int)(0x0A)) || b == unchecked((int)(0x15));if (autoFlush && isNewline){flush();}}catch (System.IO.IOException){setError();}}}" }, { "index": 10199, "before": "public UpdateScalingParametersResult updateScalingParameters(UpdateScalingParametersRequest request) {request = beforeClientExecution(request);return executeUpdateScalingParameters(request);}", "after": "public virtual UpdateScalingParametersResponse UpdateScalingParameters(UpdateScalingParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateScalingParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateScalingParametersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10200, "before": "public ModifyDBClusterParameterGroupResult modifyDBClusterParameterGroup(ModifyDBClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeModifyDBClusterParameterGroup(request);}", "after": "public virtual ModifyDBClusterParameterGroupResponse ModifyDBClusterParameterGroup(ModifyDBClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBClusterParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10201, "before": "public GetOperationsForResourceResult getOperationsForResource(GetOperationsForResourceRequest request) {request = beforeClientExecution(request);return executeGetOperationsForResource(request);}", "after": "public virtual GetOperationsForResourceResponse GetOperationsForResource(GetOperationsForResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOperationsForResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOperationsForResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10202, "before": "public NLPTokenizerOp(TokenizerModel model) {tokenizer = new TokenizerME(model);}", "after": "public NLPTokenizerOp(TokenizerModel model){tokenizer = new TokenizerME(model);}" }, { "index": 10203, "before": "public StartImageScanRequest() {super(\"cr\", \"2016-06-07\", \"StartImageScan\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scan\");setMethod(MethodType.PUT);}", "after": "public StartImageScanRequest(): base(\"cr\", \"2016-06-07\", \"StartImageScan\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scan\";Method = MethodType.PUT;}" }, { "index": 10204, "before": "public UpdateFleetResult updateFleet(UpdateFleetRequest request) {request = beforeClientExecution(request);return executeUpdateFleet(request);}", "after": "public virtual UpdateFleetResponse UpdateFleet(UpdateFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFleetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10205, "before": "public Editable newEditable(CharSequence source) {return new CalculatorEditable(source, mLogic);}", "after": "public virtual android.text.Editable newEditable(java.lang.CharSequence source){return new android.text.SpannableStringBuilder(source);}" }, { "index": 10206, "before": "public static TreeFilter createFromStrings(String... paths) {if (paths.length == 0)throw new IllegalArgumentException(JGitText.get().atLeastOnePathIsRequired);final int length = paths.length;final PathFilter[] p = new PathFilter[length];for (int i = 0; i < length; i++)p[i] = PathFilter.create(paths[i]);return create(p);}", "after": "public static TreeFilter CreateFromStrings(params string[] paths){if (paths.Length == 0){throw new ArgumentException(JGitText.Get().atLeastOnePathIsRequired);}int length = paths.Length;PathFilter[] p = new PathFilter[length];for (int i = 0; i < length; i++){p[i] = PathFilter.Create(paths[i]);}return Create(p);}" }, { "index": 10207, "before": "public DescribeHostedConnectionsResult describeHostedConnections(DescribeHostedConnectionsRequest request) {request = beforeClientExecution(request);return executeDescribeHostedConnections(request);}", "after": "public virtual DescribeHostedConnectionsResponse DescribeHostedConnections(DescribeHostedConnectionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeHostedConnectionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeHostedConnectionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10208, "before": "public RejectTransitGatewayPeeringAttachmentResult rejectTransitGatewayPeeringAttachment(RejectTransitGatewayPeeringAttachmentRequest request) {request = beforeClientExecution(request);return executeRejectTransitGatewayPeeringAttachment(request);}", "after": "public virtual RejectTransitGatewayPeeringAttachmentResponse RejectTransitGatewayPeeringAttachment(RejectTransitGatewayPeeringAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectTransitGatewayPeeringAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectTransitGatewayPeeringAttachmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10209, "before": "public static double toPoints(long emu){return (double)emu/EMU_PER_POINT;}", "after": "public static double ToPoints(long emu){return (double)emu / EMU_PER_POINT;}" }, { "index": 10210, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {return arg1;}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){return arg1;}" }, { "index": 10211, "before": "public final BytesRef getBinaryValue(String name) {for (IndexableField field : fields) {if (field.name().equals(name)) {final BytesRef bytes = field.binaryValue();if (bytes != null) {return bytes;}}}return null;}", "after": "public BytesRef GetBinaryValue(string name){foreach (IIndexableField field in fields){if (field.Name.Equals(name, StringComparison.Ordinal)){BytesRef bytes = field.GetBinaryValue();if (bytes != null){return bytes;}}}return null;}" }, { "index": 10212, "before": "public CRNBlock(RecordStream rs) {_countRecord = (CRNCountRecord) rs.getNext();int nCRNs = _countRecord.getNumberOfCRNs();CRNRecord[] crns = new CRNRecord[nCRNs];for (int i = 0; i < crns.length; i++) {crns[i] = (CRNRecord) rs.getNext();}_crns = crns;}", "after": "public CRNBlock(RecordStream rs){_countRecord = (CRNCountRecord)rs.GetNext();int nCRNs = _countRecord.NumberOfCRNs;CRNRecord[] crns = new CRNRecord[nCRNs];for (int i = 0; i < crns.Length; i++){crns[i] = (CRNRecord)rs.GetNext();}_crns = crns;}" }, { "index": 10213, "before": "public int get(int index, long[] arr, int off, int len) {return current.get(index, arr, off, len);}", "after": "public override int Get(int index, long[] arr, int off, int len){return current.Get(index, arr, off, len);}" }, { "index": 10214, "before": "public LooseRef peel(ObjectIdRef newLeaf) {return this;}", "after": "public RefDirectory.LooseRef Peel(ObjectIdRef newLeaf){return this;}" }, { "index": 10215, "before": "public UpdateModelVersionResult updateModelVersion(UpdateModelVersionRequest request) {request = beforeClientExecution(request);return executeUpdateModelVersion(request);}", "after": "public virtual UpdateModelVersionResponse UpdateModelVersion(UpdateModelVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateModelVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateModelVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10216, "before": "public Builder() {PositiveIntOutputs outputs = PositiveIntOutputs.getSingleton();fstCompiler = new FSTCompiler<>(FST.INPUT_TYPE.BYTE1, outputs);scratchInts = new IntsRefBuilder();}", "after": "public Builder(): base(){lastDocID = -1;wordNum = -1;word = 0;}" }, { "index": 10217, "before": "public boolean stem() {int v_1 = cursor;r_mark_regions();cursor = v_1;limit_backward = cursor;cursor = limit;int v_2 = limit - cursor;r_main_suffix();cursor = limit - v_2;int v_3 = limit - cursor;r_consonant_pair();cursor = limit - v_3;int v_4 = limit - cursor;r_other_suffix();cursor = limit - v_4;cursor = limit_backward;return true;}", "after": "public override bool Stem(){int v_1;int v_2;int v_3;int v_4;v_1 = m_cursor;do{if (!r_mark_regions()){goto lab0;}} while (false);lab0:m_cursor = v_1;m_limit_backward = m_cursor; m_cursor = m_limit;v_2 = m_limit - m_cursor;do{if (!r_main_suffix()){goto lab1;}} while (false);lab1:m_cursor = m_limit - v_2;v_3 = m_limit - m_cursor;do{if (!r_consonant_pair()){goto lab2;}} while (false);lab2:m_cursor = m_limit - v_3;v_4 = m_limit - m_cursor;do{if (!r_other_suffix()){goto lab3;}} while (false);lab3:m_cursor = m_limit - v_4;m_cursor = m_limit_backward; return true;}" }, { "index": 10218, "before": "public int describeContents() {return 0;}", "after": "public virtual int describeContents(){return 0;}" }, { "index": 10219, "before": "public FetchConnection openFetch() throws TransportException {if (src == null)throw new TransportException(uri, JGitText.get().onlyOneFetchSupported);try {return new BundleFetchConnection(this, src);} finally {src = null;}}", "after": "public override FetchConnection OpenFetch(){if (src == null){throw new TransportException(uri, JGitText.Get().onlyOneFetchSupported);}try{return new BundleFetchConnection(this, src);}finally{src = null;}}" }, { "index": 10220, "before": "public DeleteWorkGroupResult deleteWorkGroup(DeleteWorkGroupRequest request) {request = beforeClientExecution(request);return executeDeleteWorkGroup(request);}", "after": "public virtual DeleteWorkGroupResponse DeleteWorkGroup(DeleteWorkGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteWorkGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteWorkGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10221, "before": "public GetApiResult getApi(GetApiRequest request) {request = beforeClientExecution(request);return executeGetApi(request);}", "after": "public virtual GetApiResponse GetApi(GetApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApiRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApiResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10222, "before": "public LongBuffer slice() {return new ReadOnlyLongArrayBuffer(remaining(), backingArray, offset + position);}", "after": "public override java.nio.LongBuffer slice(){return new java.nio.ReadOnlyLongArrayBuffer(remaining(), backingArray, offset + _position);}" }, { "index": 10223, "before": "public String toString() {String opName = getClass().getName();int $index = opName.indexOf('$');opName = opName.substring($index+1, opName.length());return \"<\"+opName+\"@\"+tokens.get(index)+\":\\\"\"+text+\"\\\">\";}", "after": "public override string ToString(){string opName = GetType().FullName;int index = opName.IndexOf('$');opName = Sharpen.Runtime.Substring(opName, index + 1, opName.Length);return \"<\" + opName + \"@\" + tokens.Get(this.index) + \":\\\"\" + text + \"\\\">\";}" }, { "index": 10224, "before": "public String toString() {return \"Action[\" + token + \"]\";}", "after": "public override string ToString(){return \"Action[\" + token + \"]\";}" }, { "index": 10225, "before": "public static EvaluationException invalidRef() {return new EvaluationException(ErrorEval.REF_INVALID);}", "after": "public static EvaluationException InvalidRef(){return new EvaluationException(ErrorEval.REF_INVALID);}" }, { "index": 10226, "before": "public Iterator getEntries() {return new FilteringIterator();}", "after": "public IEnumerator GetEntries(){return new FilteringIterator(this); ;}" }, { "index": 10227, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\" [FUTURE HEADER]\\n\");buffer.append(\" Type \" + recordType);buffer.append(\" Flags \" + grbitFrt);buffer.append(\" [/FUTURE HEADER]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\" [FUTURE HEADER]\\n\");buffer.Append(\" type \" + recordType);buffer.Append(\" flags \" + grbitFrt);buffer.Append(\" [/FUTURE HEADER]\\n\");return buffer.ToString();}" }, { "index": 10228, "before": "public void copy(MutableValue source) {MutableValueStr s = (MutableValueStr) source;exists = s.exists;value.copyBytes(s.value);}", "after": "public override void Copy(MutableValue source){MutableValueStr s = (MutableValueStr)source;Exists = s.Exists;Value.CopyBytes(s.Value);}" }, { "index": 10229, "before": "public ReaderSlice(int start, int length, int readerIndex) {this.start = start;this.length = length;this.readerIndex = readerIndex;}", "after": "public ReaderSlice(int start, int length, int readerIndex){this.Start = start;this.Length = length;this.ReaderIndex = readerIndex;}" }, { "index": 10230, "before": "public AddTagsResult addTags(AddTagsRequest request) {request = beforeClientExecution(request);return executeAddTags(request);}", "after": "public virtual AddTagsResponse AddTags(AddTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = AddTagsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10231, "before": "public static URI create(String uri) {try {return new URI(uri);} catch (URISyntaxException e) {throw new IllegalArgumentException(e.getMessage());}}", "after": "public static java.net.URI create(string uri){try{return new java.net.URI(uri);}catch (java.net.URISyntaxException e){throw new System.ArgumentException(e.Message);}}" }, { "index": 10232, "before": "public UpdateConfigurationSetTrackingOptionsResult updateConfigurationSetTrackingOptions(UpdateConfigurationSetTrackingOptionsRequest request) {request = beforeClientExecution(request);return executeUpdateConfigurationSetTrackingOptions(request);}", "after": "public virtual UpdateConfigurationSetTrackingOptionsResponse UpdateConfigurationSetTrackingOptions(UpdateConfigurationSetTrackingOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateConfigurationSetTrackingOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateConfigurationSetTrackingOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10233, "before": "public void recycleByteBlocks(byte[][] blocks, int start, int end) {bytesUsed.addAndGet(-((end-start)* blockSize));for (int i = start; i < end; i++) {blocks[i] = null;}}", "after": "public override void RecycleByteBlocks(byte[][] blocks, int start, int end){bytesUsed.AddAndGet(-((end - start) * m_blockSize));for (var i = start; i < end; i++){blocks[i] = null;}}" }, { "index": 10234, "before": "public DoubleBuffer compact() {throw new ReadOnlyBufferException();}", "after": "public override java.nio.DoubleBuffer compact(){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 10235, "before": "public GetVoiceConnectorStreamingConfigurationResult getVoiceConnectorStreamingConfiguration(GetVoiceConnectorStreamingConfigurationRequest request) {request = beforeClientExecution(request);return executeGetVoiceConnectorStreamingConfiguration(request);}", "after": "public virtual GetVoiceConnectorStreamingConfigurationResponse GetVoiceConnectorStreamingConfiguration(GetVoiceConnectorStreamingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceConnectorStreamingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceConnectorStreamingConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10236, "before": "public boolean hasNext() {return pos + 1 < size();}", "after": "public virtual bool hasNext(){return this.pos + 1 < this._enclosing.size();}" }, { "index": 10237, "before": "public double getRKNumberAt(int coffset) {return RKUtil.decodeNumber(field_3_rks[coffset].rk);}", "after": "public double GetRKNumberAt(int coffset){return RKUtil.DecodeNumber(field_3_rks[coffset].rk);}" }, { "index": 10238, "before": "public ReimportApiResult reimportApi(ReimportApiRequest request) {request = beforeClientExecution(request);return executeReimportApi(request);}", "after": "public virtual ReimportApiResponse ReimportApi(ReimportApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReimportApiRequestMarshaller.Instance;options.ResponseUnmarshaller = ReimportApiResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10239, "before": "public boolean hasNext() {return link.previous != list.voidLink;}", "after": "public virtual bool hasNext(){return this.link.previous != this.list.voidLink;}" }, { "index": 10240, "before": "public void fill(BytesRef b, long start) {final int index = (int) (start >> blockBits);final int offset = (int) (start & blockMask);final byte[] block = b.bytes = blocks[index];if ((block[offset] & 128) == 0) {b.length = block[offset];b.offset = offset+1;} else {b.length = ((block[offset] & 0x7f) << 8) | (block[1+offset] & 0xff);b.offset = offset+2;assert b.length > 0;}}", "after": "public void Fill(BytesRef b, long start){var index = (int)(start >> blockBits);var offset = (int)(start & blockMask);var block = b.Bytes = blocks[index];if ((block[offset] & 128) == 0){b.Length = block[offset];b.Offset = offset + 1;}else{b.Length = ((block[offset] & 0x7f) << 8) | (block[1 + offset] & 0xff);b.Offset = offset + 2;Debug.Assert(b.Length > 0);}}" }, { "index": 10241, "before": "public void trimToSize() {if (n < array.length) {byte[] aux = new byte[n];System.arraycopy(array, 0, aux, 0, n);array = aux;}}", "after": "public virtual void TrimToSize(){if (n < array.Length){byte[] aux = new byte[n];System.Array.Copy(array, 0, aux, 0, n);array = aux;}}" }, { "index": 10242, "before": "public SubmoduleUpdateCommand submoduleUpdate() {return new SubmoduleUpdateCommand(repo);}", "after": "public virtual SubmoduleUpdateCommand SubmoduleUpdate(){return new SubmoduleUpdateCommand(repo);}" }, { "index": 10243, "before": "public static ShortBuffer wrap(short[] array, int start, int shortCount) {Arrays.checkOffsetAndCount(array.length, start, shortCount);ShortBuffer buf = new ReadWriteShortArrayBuffer(array);buf.position = start;buf.limit = start + shortCount;return buf;}", "after": "public static java.nio.ShortBuffer wrap(short[] array_1, int start, int shortCount){java.util.Arrays.checkOffsetAndCount(array_1.Length, start, shortCount);java.nio.ShortBuffer buf = new java.nio.ReadWriteShortArrayBuffer(array_1);buf._position = start;buf._limit = start + shortCount;return buf;}" }, { "index": 10244, "before": "public GetVpcLinksResult getVpcLinks(GetVpcLinksRequest request) {request = beforeClientExecution(request);return executeGetVpcLinks(request);}", "after": "public virtual GetVpcLinksResponse GetVpcLinks(GetVpcLinksRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVpcLinksRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVpcLinksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10245, "before": "public RemoveResourcePermissionResult removeResourcePermission(RemoveResourcePermissionRequest request) {request = beforeClientExecution(request);return executeRemoveResourcePermission(request);}", "after": "public virtual RemoveResourcePermissionResponse RemoveResourcePermission(RemoveResourcePermissionRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveResourcePermissionRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveResourcePermissionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10246, "before": "public ListIndexResult listIndex(ListIndexRequest request) {request = beforeClientExecution(request);return executeListIndex(request);}", "after": "public virtual ListIndexResponse ListIndex(ListIndexRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIndexRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIndexResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10247, "before": "public List toList() {List values = new ArrayList();int n = intervals.size();for (int i = 0; i < n; i++) {Interval I = intervals.get(i);int a = I.a;int b = I.b;for (int v=a; v<=b; v++) {values.add(v);}}return values;}", "after": "public virtual IList ToList(){IList values = new ArrayList();int n = intervals.Count;for (int i = 0; i < n; i++){Interval I = intervals[i];int a = I.a;int b = I.b;for (int v = a; v <= b; v++){values.Add(v);}}return values;}" }, { "index": 10248, "before": "public CreateCustomerGatewayRequest(GatewayType type, String publicIp, Integer bgpAsn) {setType(type.toString());setPublicIp(publicIp);setBgpAsn(bgpAsn);}", "after": "public CreateCustomerGatewayRequest(GatewayType type, string publicIp, int bgpAsn){_type = type;_publicIp = publicIp;_bgpAsn = bgpAsn;}" }, { "index": 10249, "before": "public int getWeekNo(Calendar cal, int weekStartOn) {if (weekStartOn == 1) {cal.setFirstDayOfWeek(Calendar.SUNDAY);} else {cal.setFirstDayOfWeek(Calendar.MONDAY);}return cal.get(Calendar.WEEK_OF_YEAR);}", "after": "public int getWeekNo(DateTime dt, int weekStartOn){GregorianCalendar cal = new GregorianCalendar();int weekOfYear;if (weekStartOn == 1){weekOfYear = cal.GetWeekOfYear(dt, CalendarWeekRule.FirstDay, DayOfWeek.Sunday);}else{weekOfYear = cal.GetWeekOfYear(dt, CalendarWeekRule.FirstDay, DayOfWeek.Monday);}return weekOfYear;}" }, { "index": 10250, "before": "public String toString() {String s = \"o:\"+offset+\" p:\"+position+\" c:\"+count;if (rptGroup >=0 ) {s += \" rpt:\"+rptGroup+\",i\"+rptInd;}return s;}", "after": "public override string ToString(){string s = \"d:\" + doc + \" o:\" + offset + \" p:\" + position + \" c:\" + count;if (rptGroup >= 0){s += \" rpt:\" + rptGroup + \",i\" + rptInd;}return s;}" }, { "index": 10251, "before": "@Override public ListIterator listIterator() {return listIterator(0);}", "after": "public virtual java.util.ListIterator listIterator(){return listIterator(0);}" }, { "index": 10252, "before": "public GetUserEndpointsResult getUserEndpoints(GetUserEndpointsRequest request) {request = beforeClientExecution(request);return executeGetUserEndpoints(request);}", "after": "public virtual GetUserEndpointsResponse GetUserEndpoints(GetUserEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUserEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUserEndpointsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10253, "before": "public UAX29URLEmailTokenizerImpl(java.io.Reader in) {this.zzReader = in;}", "after": "public UAX29URLEmailTokenizerImpl(TextReader @in){this.zzReader = @in;}" }, { "index": 10254, "before": "public ResetCommand addPath(String path) {if (mode != null)throw new JGitInternalException(MessageFormat.format(JGitText.get().illegalCombinationOfArguments, \"...\", \"[--mixed | --soft | --hard]\")); filepaths.add(path);return this;}", "after": "public virtual NGit.Api.ResetCommand AddPath(string file){if (mode != null){throw new JGitInternalException(MessageFormat.Format(JGitText.Get().illegalCombinationOfArguments, \"...\", \"[--mixed | --soft | --hard]\"));}filepaths.AddItem(file);return this;}" }, { "index": 10255, "before": "public org.apache.poi.hssf.record.Record findNextRecordBySid(short sid, int pos) {int matches = 0;for (org.apache.poi.hssf.record.Record record : records.getRecords() ) {if (record.getSid() == sid && matches++ == pos) {return record;}}return null;}", "after": "public Record FindNextRecordBySid(short sid, int pos){int matches = 0;for (IEnumerator iterator = records.GetEnumerator(); iterator.MoveNext(); ){Record record = (Record)iterator.Current;if (record.Sid == sid){if (matches++ == pos)return record;}}return null;}" }, { "index": 10256, "before": "public int[] toArray() {return toIntegerList().toArray();}", "after": "public virtual int[] ToArray(){return ToIntegerList().ToArray();}" }, { "index": 10257, "before": "public GetDomainNamesResult getDomainNames(GetDomainNamesRequest request) {request = beforeClientExecution(request);return executeGetDomainNames(request);}", "after": "public virtual GetDomainNamesResponse GetDomainNames(GetDomainNamesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDomainNamesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDomainNamesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10258, "before": "public UpdateTemplateAliasResult updateTemplateAlias(UpdateTemplateAliasRequest request) {request = beforeClientExecution(request);return executeUpdateTemplateAlias(request);}", "after": "public virtual UpdateTemplateAliasResponse UpdateTemplateAlias(UpdateTemplateAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTemplateAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTemplateAliasResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10259, "before": "public String getReceivePack() {return receivePack;}", "after": "public virtual string GetReceivePack(){return receivePack;}" }, { "index": 10260, "before": "public synchronized Set keySet() {Set ks = keySet;return (ks != null) ? ks : (keySet = new KeySet());}", "after": "public virtual java.util.Set keySet(){lock (this){java.util.Set ks = _keySet;return (ks != null) ? ks : (_keySet = new java.util.Hashtable.KeySet(this));}}" }, { "index": 10261, "before": "public AssociateAddressRequest(String instanceId, String publicIp) {setInstanceId(instanceId);setPublicIp(publicIp);}", "after": "public AssociateAddressRequest(string instanceId, string publicIp){_instanceId = instanceId;_publicIp = publicIp;}" }, { "index": 10262, "before": "public static CharBuffer wrap(CharSequence chseq) {return new CharSequenceAdapter(chseq);}", "after": "public static java.nio.CharBuffer wrap(java.lang.CharSequence chseq){return new java.nio.CharSequenceAdapter(chseq);}" }, { "index": 10263, "before": "public void reset() {reset(true, true);}", "after": "public void Reset(){Reset(true, true);}" }, { "index": 10264, "before": "public static double nChooseK(int n, int k) {double d = 1;if (n<0 || k<0 || n boundSheetRecords) {BoundSheetRecord[] bsrs = new BoundSheetRecord[boundSheetRecords.size()];boundSheetRecords.toArray(bsrs);Arrays.sort(bsrs, BoundSheetRecord::compareRecords);return bsrs;}", "after": "public static BoundSheetRecord[] OrderByBofPosition(List boundSheetRecords){BoundSheetRecord[] bsrs = boundSheetRecords.ToArray();Array.Sort(bsrs, new BOFComparator());return bsrs;}" }, { "index": 10268, "before": "public DeleteNotebookInstanceResult deleteNotebookInstance(DeleteNotebookInstanceRequest request) {request = beforeClientExecution(request);return executeDeleteNotebookInstance(request);}", "after": "public virtual DeleteNotebookInstanceResponse DeleteNotebookInstance(DeleteNotebookInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNotebookInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNotebookInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10269, "before": "public DTDHandler getDTDHandler () {return (theDTDHandler == this) ? null : theDTDHandler;}", "after": "public void close (){lock (this.mBlock) {if (this.mParseState != null) {this.mParseState.Dispose ();this.mParseState = null;this.mBlock.decOpenCountLocked ();}}}" }, { "index": 10270, "before": "public static File resolve(File directory, FS fs) {if (isGitRepository(directory, fs))return directory;if (isGitRepository(new File(directory, Constants.DOT_GIT), fs))return new File(directory, Constants.DOT_GIT);final String name = directory.getName();final File parent = directory.getParentFile();if (isGitRepository(new File(parent, name + Constants.DOT_GIT_EXT), fs))return new File(parent, name + Constants.DOT_GIT_EXT);return null;}", "after": "public static FilePath Resolve(FilePath directory, FS fs){if (IsGitRepository(directory, fs)){return directory;}if (IsGitRepository(new FilePath(directory, Constants.DOT_GIT), fs)){return new FilePath(directory, Constants.DOT_GIT);}string name = directory.GetName();FilePath parent = directory.GetParentFile();if (IsGitRepository(new FilePath(parent, name + Constants.DOT_GIT_EXT), fs)){return new FilePath(parent, name + Constants.DOT_GIT_EXT);}return null;}" }, { "index": 10271, "before": "public WorkflowTypeInfos listWorkflowTypes(ListWorkflowTypesRequest request) {request = beforeClientExecution(request);return executeListWorkflowTypes(request);}", "after": "public virtual ListWorkflowTypesResponse ListWorkflowTypes(ListWorkflowTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListWorkflowTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListWorkflowTypesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10272, "before": "public Snapshot copyClusterSnapshot(CopyClusterSnapshotRequest request) {request = beforeClientExecution(request);return executeCopyClusterSnapshot(request);}", "after": "public virtual CopyClusterSnapshotResponse CopyClusterSnapshot(CopyClusterSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopyClusterSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CopyClusterSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10273, "before": "public Ptg[] getFormulaTokens(EvaluationCell evalCell) {HSSFCell cell = ((HSSFEvaluationCell)evalCell).getHSSFCell();FormulaRecordAggregate fra = (FormulaRecordAggregate) cell.getCellValueRecord();return fra.getFormulaTokens();}", "after": "public Ptg[] GetFormulaTokens(IEvaluationCell evalCell){ICell cell = ((HSSFEvaluationCell)evalCell).HSSFCell;FormulaRecordAggregate fr = (FormulaRecordAggregate)((HSSFCell)cell).CellValueRecord;return fr.FormulaTokens;}" }, { "index": 10274, "before": "public DisassociateVPCFromHostedZoneResult disassociateVPCFromHostedZone(DisassociateVPCFromHostedZoneRequest request) {request = beforeClientExecution(request);return executeDisassociateVPCFromHostedZone(request);}", "after": "public virtual DisassociateVPCFromHostedZoneResponse DisassociateVPCFromHostedZone(DisassociateVPCFromHostedZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateVPCFromHostedZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateVPCFromHostedZoneResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10275, "before": "public StringBuffer insert(int index, int i) {return insert(index, Integer.toString(i));}", "after": "public java.lang.StringBuffer insert(int index, int i){return insert(index, System.Convert.ToString(i));}" }, { "index": 10276, "before": "public void setBytesValue(BytesRef value) {if (!(fieldsData instanceof BytesRef)) {throw new IllegalArgumentException(\"cannot change value type from \" + fieldsData.getClass().getSimpleName() + \" to BytesRef\");}if (type.indexOptions() != IndexOptions.NONE) {throw new IllegalArgumentException(\"cannot set a BytesRef value on an indexed field\");}if (value == null) {throw new IllegalArgumentException(\"value must not be null\");}fieldsData = value;}", "after": "public virtual void SetBytesValue(BytesRef value){if (!(FieldsData is BytesRef)){throw new System.ArgumentException(\"cannot change value type from \" + FieldsData.GetType().Name + \" to BytesRef\");}if (m_type.IsIndexed){throw new System.ArgumentException(\"cannot set a BytesRef value on an indexed field\");}FieldsData = value;}" }, { "index": 10277, "before": "public boolean equals( Object o ) {return o instanceof GermanStemmer;}", "after": "public override bool Equals(object o){return o is GermanStemmer;}" }, { "index": 10278, "before": "public UntagMeetingResult untagMeeting(UntagMeetingRequest request) {request = beforeClientExecution(request);return executeUntagMeeting(request);}", "after": "public virtual UntagMeetingResponse UntagMeeting(UntagMeetingRequest request){var options = new InvokeOptions();options.RequestMarshaller = UntagMeetingRequestMarshaller.Instance;options.ResponseUnmarshaller = UntagMeetingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10279, "before": "public String toString() {return \"[PRECISION]\\n\" +\" .precision = \" + getFullPrecision() +\"\\n\" +\"[/PRECISION]\\n\";}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[PRECISION]\\n\");buffer.Append(\" .precision = \").Append(FullPrecision).Append(\"\\n\");buffer.Append(\"[/PRECISION]\\n\");return buffer.ToString();}" }, { "index": 10280, "before": "static public double pmt(double r, int nper, double pv, double fv) {return pmt(r, nper, pv, fv, 0);}", "after": "static public double PMT(double r, int nper, double pv, double fv){return PMT(r, nper, pv, fv, 0);}" }, { "index": 10281, "before": "public ValueEval getArea3DEval(Area3DPxg aptg) {SheetRangeEvaluator sre = createExternSheetRefEvaluator(aptg.getSheetName(), aptg.getLastSheetName(), aptg.getExternalWorkbookNumber());return new LazyAreaEval(aptg.getFirstRow(), aptg.getFirstColumn(),aptg.getLastRow(), aptg.getLastColumn(), sre);}", "after": "public ValueEval GetArea3DEval(Area3DPtg aptg){SheetRangeEvaluator sre = CreateExternSheetRefEvaluator(aptg.ExternSheetIndex);return new LazyAreaEval(aptg.FirstRow, aptg.FirstColumn,aptg.LastRow, aptg.LastColumn, sre);}" }, { "index": 10282, "before": "public boolean equals(Object obj) {if (obj instanceof Rect) {Rect rhs = (Rect) obj;if (isValid() != rhs.isValid()) {return false;}if (!isValid() && !rhs.isValid()) {return true;}return this.x == rhs.x && this.y == rhs.y && this.w == rhs.w && this.h == rhs.h;}return false;}", "after": "public override bool Equals(object obj){android.graphics.Rect r = (android.graphics.Rect)obj;if (r != null){return left == r.left && top == r.top && right == r.right && bottom == r.bottom;}return false;}" }, { "index": 10283, "before": "public final boolean containsColumn(int col) {return _firstColumn <= col && _lastColumn >= col;}", "after": "public bool ContainsColumn(int col){return (_firstColumn <= col) && (_lastColumn >= col);}" }, { "index": 10284, "before": "public RunJobFlowRequest(String name, JobFlowInstancesConfig instances) {setName(name);setInstances(instances);}", "after": "public RunJobFlowRequest(string name, JobFlowInstancesConfig instances){_name = name;_instances = instances;}" }, { "index": 10285, "before": "public String toString() {if (noBreak == null && postBreak == null && preBreak != null&& preBreak.equals(\"-\")) {return \"-\";}StringBuilder res = new StringBuilder(\"{\");res.append(preBreak);res.append(\"}{\");res.append(postBreak);res.append(\"}{\");res.append(noBreak);res.append('}');return res.toString();}", "after": "public override string ToString(){if (NoBreak == null && PostBreak == null && PreBreak != null && PreBreak.Equals(\"-\", StringComparison.Ordinal)){return \"-\";}StringBuilder res = new StringBuilder(\"{\");res.Append(PreBreak);res.Append(\"}{\");res.Append(PostBreak);res.Append(\"}{\");res.Append(NoBreak);res.Append('}');return res.ToString();}" }, { "index": 10286, "before": "public ListPublishedSchemaArnsResult listPublishedSchemaArns(ListPublishedSchemaArnsRequest request) {request = beforeClientExecution(request);return executeListPublishedSchemaArns(request);}", "after": "public virtual ListPublishedSchemaArnsResponse ListPublishedSchemaArns(ListPublishedSchemaArnsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPublishedSchemaArnsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPublishedSchemaArnsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10287, "before": "public StoredField(String name, double value) {super(name, TYPE);fieldsData = value;}", "after": "public StoredField(string name, float value): base(name, TYPE){FieldsData = new Single(value);}" }, { "index": 10288, "before": "public DescribeNetworkAclsResult describeNetworkAcls() {return describeNetworkAcls(new DescribeNetworkAclsRequest());}", "after": "public virtual DescribeNetworkAclsResponse DescribeNetworkAcls(){return DescribeNetworkAcls(new DescribeNetworkAclsRequest());}" }, { "index": 10289, "before": "public PushCommand add(Ref ref) {refSpecs.add(new RefSpec(ref.getLeaf().getName()));return this;}", "after": "public virtual NGit.Api.PushCommand Add(Ref @ref){refSpecs.AddItem(new RefSpec(@ref.GetLeaf().GetName()));return this;}" }, { "index": 10290, "before": "public DeleteVoiceConnectorGroupResult deleteVoiceConnectorGroup(DeleteVoiceConnectorGroupRequest request) {request = beforeClientExecution(request);return executeDeleteVoiceConnectorGroup(request);}", "after": "public virtual DeleteVoiceConnectorGroupResponse DeleteVoiceConnectorGroup(DeleteVoiceConnectorGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVoiceConnectorGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVoiceConnectorGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10291, "before": "public IntervalSet(List intervals) {this.intervals = intervals;}", "after": "public IntervalSet(IList intervals){this.intervals = intervals;}" }, { "index": 10292, "before": "public IteratorQueue(Iterator iter) {this.iter = iter;T removeTop = removeTop();assert removeTop == null;}", "after": "public IteratorQueue(IEnumerator iter){this.iter = iter;T removeTop = RemoveTop();Debug.Assert( removeTop == null);}" }, { "index": 10293, "before": "public static long[] grow(long[] array) {return grow(array, 1 + array.length);}", "after": "public static long[] Grow(long[] array){return Grow(array, 1 + array.Length);}" }, { "index": 10294, "before": "public StemmerOverrideMap(FST fst, boolean ignoreCase) {this.fst = fst;this.ignoreCase = ignoreCase;}", "after": "public StemmerOverrideMap(FST fst, bool ignoreCase){this.fst = fst;this.ignoreCase = ignoreCase;}" }, { "index": 10295, "before": "public DeleteAdmChannelResult deleteAdmChannel(DeleteAdmChannelRequest request) {request = beforeClientExecution(request);return executeDeleteAdmChannel(request);}", "after": "public virtual DeleteAdmChannelResponse DeleteAdmChannel(DeleteAdmChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAdmChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAdmChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 10296, "before": "public SetSubscriptionAttributesRequest(String subscriptionArn, String attributeName, String attributeValue) {setSubscriptionArn(subscriptionArn);setAttributeName(attributeName);setAttributeValue(attributeValue);}", "after": "public SetSubscriptionAttributesRequest(string subscriptionArn, string attributeName, string attributeValue){_subscriptionArn = subscriptionArn;_attributeName = attributeName;_attributeValue = attributeValue;}" }, { "index": 10297, "before": "public void unsafeWrite(char b) {buf[len++] = b;}", "after": "public virtual void UnsafeWrite(char b){m_buf[m_len++] = b;}" }, { "index": 10298, "before": "@Override public boolean remove(Object key) {int count = 0;Collection collection = subMap.remove(key);if (collection != null) {count = collection.size();collection.clear();totalSize -= count;}return count > 0;}", "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": 10299, "before": "public boolean markSupported() {return false;}", "after": "public virtual bool markSupported(){return false;}" } ]