[ { "index": 0, "before": "public DVRecord(RecordInputStream in) {_option_flags = in.readInt();_promptTitle = readUnicodeString(in);_errorTitle = readUnicodeString(in);_promptText = readUnicodeString(in);_errorText = readUnicodeString(in);int field_size_first_formula = in.readUShort();_not_used_1 = in.readShort();_formula1 = Formula.read(field_size_first_formula, in);int field_size_sec_formula = in.readUShort();_not_used_2 = in.readShort();_formula2 = Formula.read(field_size_sec_formula, in);_regions = new CellRangeAddressList(in);}", "after": "public DVRecord(RecordInputStream in1){_option_flags = in1.ReadInt();_promptTitle = ReadUnicodeString(in1);_errorTitle = ReadUnicodeString(in1);_promptText = ReadUnicodeString(in1);_errorText = ReadUnicodeString(in1);int field_size_first_formula = in1.ReadUShort();_not_used_1 = in1.ReadShort();_formula1 = NPOI.SS.Formula.Formula.Read(field_size_first_formula, in1);int field_size_sec_formula = in1.ReadUShort();_not_used_2 = in1.ReadShort();_formula2 = NPOI.SS.Formula.Formula.Read(field_size_sec_formula, in1);_regions = new CellRangeAddressList(in1);}" }, { "index": 1, "before": "public String toString() {return pattern();}", "after": "public override string ToString(){return Pattern();}" }, { "index": 2, "before": "public InsertInstanceRequest() {super(\"Ots\", \"2016-06-20\", \"InsertInstance\", \"ots\");setMethod(MethodType.POST);}", "after": "public InsertInstanceRequest(): base(\"Ots\", \"2016-06-20\", \"InsertInstance\", \"ots\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 3, "before": "public boolean contains(Object o) {return indexOf(o) != -1;}", "after": "public virtual bool contains(object o){return indexOf(o) != -1;}" }, { "index": 4, "before": "public final ByteBuffer encode(String s) {return encode(CharBuffer.wrap(s));}", "after": "public java.nio.ByteBuffer encode(string s){return encode(java.nio.CharBuffer.wrap(java.lang.CharSequenceProxy.Wrap(s)));}" }, { "index": 5, "before": "public boolean requiresCommitBody() {return false;}", "after": "public override bool RequiresCommitBody(){return false;}" }, { "index": 6, "before": "public String getKey() {return RawParseUtils.decode(enc, buffer, keyStart, keyEnd);}", "after": "public string GetKey(){return RawParseUtils.Decode(enc, buffer, keyStart, keyEnd);}" }, { "index": 7, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2, ValueEval arg3, ValueEval arg4) {double result;try {double d0 = NumericFunction.singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.singleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);double d2 = NumericFunction.singleOperandEvaluate(arg2, srcRowIndex, srcColumnIndex);double d3 = NumericFunction.singleOperandEvaluate(arg3, srcRowIndex, srcColumnIndex);double d4 = NumericFunction.singleOperandEvaluate(arg4, srcRowIndex, srcColumnIndex);result = evaluate(d0, d1, d2, d3, d4 != 0.0);NumericFunction.checkValue(result);} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}", "after": "public ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2, ValueEval arg3, ValueEval arg4){double result;try{double d0 = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);double d2 = NumericFunction.SingleOperandEvaluate(arg2, srcRowIndex, srcColumnIndex);double d3 = NumericFunction.SingleOperandEvaluate(arg3, srcRowIndex, srcColumnIndex);double d4 = NumericFunction.SingleOperandEvaluate(arg4, srcRowIndex, srcColumnIndex);result = Evaluate(d0, d1, d2, d3, d4 != 0.0);NumericFunction.CheckValue(result);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}" }, { "index": 8, "before": "public DeleteClientVpnEndpointResult deleteClientVpnEndpoint(DeleteClientVpnEndpointRequest request) {request = beforeClientExecution(request);return executeDeleteClientVpnEndpoint(request);}", "after": "public virtual DeleteClientVpnEndpointResponse DeleteClientVpnEndpoint(DeleteClientVpnEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteClientVpnEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteClientVpnEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 9, "before": "public Object get(CharSequence key) {List list = autocomplete.prefixCompletion(root, key, 0);if (list == null || list.isEmpty()) {return null;}for (TernaryTreeNode n : list) {if (charSeqEquals(n.token, key)) {return n.val;}}return null;}", "after": "public virtual object Get(string key){IList list = autocomplete.PrefixCompletion(root, key, 0);if (list == null || list.Count == 0){return null;}foreach (TernaryTreeNode n in list){if (CharSeqEquals(n.token, key)){return n.val;}}return null;}" }, { "index": 10, "before": "public StartFleetActionsResult startFleetActions(StartFleetActionsRequest request) {request = beforeClientExecution(request);return executeStartFleetActions(request);}", "after": "public virtual StartFleetActionsResponse StartFleetActions(StartFleetActionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartFleetActionsRequestMarshaller.Instance;options.ResponseUnmarshaller = StartFleetActionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 11, "before": "public CellRangeAddress getCellRangeAddress(int index) {return _list.get(index);}", "after": "public CellRangeAddress GetCellRangeAddress(int index){return (CellRangeAddress)_list[index];}" }, { "index": 12, "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(TextReader input){XmlDocument result = new XmlDocument();try{result.Load(input);}catch (Exception se){throw new Exception(\"Error parsing file:\" + se, se);}return result;}" }, { "index": 13, "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 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": 14, "before": "public int getBackgroundImageId(){EscherSimpleProperty property = getOptRecord().lookup(EscherPropertyTypes.FILL__PATTERNTEXTURE);return property == null ? 0 : property.getPropertyValue();}", "after": "public int GetBackgroundImageId(){EscherSimpleProperty property = (EscherSimpleProperty)GetOptRecord().Lookup(EscherProperties.FILL__PATTERNTEXTURE);return property == null ? 0 : property.PropertyValue;}" }, { "index": 15, "before": "public TreeFilter getTreeFilter() {return treeFilter;}", "after": "public virtual TreeFilter GetTreeFilter(){return treeFilter;}" }, { "index": 16, "before": "public GetMemberResult getMember(GetMemberRequest request) {request = beforeClientExecution(request);return executeGetMember(request);}", "after": "public virtual GetMemberResponse GetMember(GetMemberRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMemberRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMemberResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 17, "before": "public boolean canEncode() {return true;}", "after": "public virtual bool canEncode(){return true;}" }, { "index": 18, "before": "public ReplaceRouteResult replaceRoute(ReplaceRouteRequest request) {request = beforeClientExecution(request);return executeReplaceRoute(request);}", "after": "public virtual ReplaceRouteResponse ReplaceRoute(ReplaceRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReplaceRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = ReplaceRouteResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 19, "before": "public ObjectId getResultTreeId() {return (resultTree == null) ? null : resultTree.toObjectId();}", "after": "public override ObjectId GetResultTreeId(){return (resultTree == null) ? null : resultTree.ToObjectId();}" }, { "index": 20, "before": "public boolean equals(final Object o){boolean rval = this == o;if (!rval && (o != null) && (o.getClass() == this.getClass())){IntList other = ( IntList ) o;if (other._limit == _limit){rval = true;for (int j = 0; rval && (j < _limit); j++){rval = _array[ j ] == other._array[ j ];}}}return rval;}", "after": "public override bool Equals(Object o){bool rval = this == o;if (!rval && (o != null) && (o.GetType() == this.GetType())){IntList other = (IntList)o;if (other._limit == _limit){rval = true;for (int j = 0; rval && (j < _limit); j++){rval = _array[j] == other._array[j];}}}return rval;}" }, { "index": 21, "before": "public ListReusableDelegationSetsResult listReusableDelegationSets(ListReusableDelegationSetsRequest request) {request = beforeClientExecution(request);return executeListReusableDelegationSets(request);}", "after": "public virtual ListReusableDelegationSetsResponse ListReusableDelegationSets(ListReusableDelegationSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListReusableDelegationSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListReusableDelegationSetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 22, "before": "public String toString() {return \"(\" + a.toString() + \" OR \" + b.toString() + \")\";}", "after": "public override string ToString(){return \"(\" + a.ToString() + \" OR \" + b.ToString() + \")\";}" }, { "index": 23, "before": "public InitiateLayerUploadResult initiateLayerUpload(InitiateLayerUploadRequest request) {request = beforeClientExecution(request);return executeInitiateLayerUpload(request);}", "after": "public virtual InitiateLayerUploadResponse InitiateLayerUpload(InitiateLayerUploadRequest request){var options = new InvokeOptions();options.RequestMarshaller = InitiateLayerUploadRequestMarshaller.Instance;options.ResponseUnmarshaller = InitiateLayerUploadResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 24, "before": "public UpdateRepoRequest() {super(\"cr\", \"2016-06-07\", \"UpdateRepo\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]\");setMethod(MethodType.POST);}", "after": "public UpdateRepoRequest(): base(\"cr\", \"2016-06-07\", \"UpdateRepo\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]\";Method = MethodType.POST;}" }, { "index": 25, "before": "public PhoneticFilterFactory(Map args) {super(args);inject = getBoolean(args, INJECT, true);name = require(args, ENCODER);String v = get(args, MAX_CODE_LENGTH);if (v != null) {maxCodeLength = Integer.valueOf(v);} else {maxCodeLength = null;}if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public PhoneticFilterFactory(IDictionary args): base(args){inject = GetBoolean(args, INJECT, true);name = Require(args, ENCODER);string v = Get(args, MAX_CODE_LENGTH);if (v != null){maxCodeLength = int.Parse(v, CultureInfo.InvariantCulture);}else{maxCodeLength = null;}if (!(args.Count == 0)){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 26, "before": "public FetchCommand fetch() {return new FetchCommand(repo);}", "after": "public virtual FetchCommand Fetch(){return new FetchCommand(repo);}" }, { "index": 27, "before": "public QueryPhraseMap searchPhrase( String fieldName, final List phraseCandidate ){QueryPhraseMap root = getRootMap( fieldName );if( root == null ) return null;return root.searchPhrase( phraseCandidate );}", "after": "public virtual QueryPhraseMap SearchPhrase(string fieldName, IList phraseCandidate){QueryPhraseMap root = GetRootMap(fieldName);if (root == null) return null;return root.SearchPhrase(phraseCandidate);}" }, { "index": 28, "before": "@Override public Iterator> iterator() {return new MultisetEntryIterator();}", "after": "public override java.util.Iterator> iterator(){return new java.util.Hashtable.EntryIterator(this._enclosing);}" }, { "index": 29, "before": "public DBSnapshot deleteDBSnapshot(DeleteDBSnapshotRequest request) {request = beforeClientExecution(request);return executeDeleteDBSnapshot(request);}", "after": "public virtual DeleteDBSnapshotResponse DeleteDBSnapshot(DeleteDBSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 30, "before": "public void setOutput() {output = true;}", "after": "public virtual void SetOutput(){output = true;}" }, { "index": 31, "before": "public ByteBuffer compact() {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer compact(){throw new System.NotImplementedException();}" }, { "index": 32, "before": "public XmlPullParser newPullParser() throws XmlPullParserException {if (parserClasses == null) throw new XmlPullParserException(\"Factory initialization was incomplete - has not tried \"+classNamesLocation);if (parserClasses.size() == 0) throw new XmlPullParserException(\"No valid parser classes found in \"+classNamesLocation);final StringBuilder issues = new StringBuilder();for (int i = 0; i < parserClasses.size(); i++) {final Class ppClass = (Class) parserClasses.get(i);try {final XmlPullParser pp = (XmlPullParser) ppClass.newInstance();for (Iterator iter = features.keySet().iterator(); iter.hasNext(); ) {final String key = (String) iter.next();final Boolean value = (Boolean) features.get(key);if(value != null && value.booleanValue()) {pp.setFeature(key, true);}}return pp;} catch(Exception ex) {issues.append (ppClass.getName () + \": \"+ ex.toString ()+\"; \");}}throw new XmlPullParserException (\"could not create parser: \"+issues);}", "after": "public virtual org.xmlpull.v1.XmlPullParser newPullParser(){if (parserClasses == null){throw new org.xmlpull.v1.XmlPullParserException(\"Factory initialization was incomplete - has not tried \"+ classNamesLocation);}if (parserClasses.size() == 0){throw new org.xmlpull.v1.XmlPullParserException(\"No valid parser classes found in \"+ classNamesLocation);}java.lang.StringBuilder issues = new java.lang.StringBuilder();{for (int i = 0; i < parserClasses.size(); i++){System.Type ppClass = (System.Type)parserClasses.get(i);try{org.xmlpull.v1.XmlPullParser pp = (org.xmlpull.v1.XmlPullParser)System.Activator.CreateInstance(ppClass);{for (java.util.Iterator iter = features.keySet().iterator(); iter.hasNext(); ){string key = (string)iter.next();bool value = (bool)features.get(key);if (value != null && value){pp.setFeature(key, true);}}}return pp;}catch (System.Exception ex){issues.append(ppClass.FullName + \": \" + ex.ToString() + \"; \");}}}throw new org.xmlpull.v1.XmlPullParserException(\"could not create parser: \" + issues);}" }, { "index": 33, "before": "public DeleteAnalysisSchemeResult deleteAnalysisScheme(DeleteAnalysisSchemeRequest request) {request = beforeClientExecution(request);return executeDeleteAnalysisScheme(request);}", "after": "public virtual DeleteAnalysisSchemeResponse DeleteAnalysisScheme(DeleteAnalysisSchemeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAnalysisSchemeRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAnalysisSchemeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 34, "before": "public ExcelExtractor(HSSFWorkbook wb) {super(wb);_wb = wb;_formatter = new HSSFDataFormatter();}", "after": "public ExcelExtractor(HSSFWorkbook wb): base(wb){this.wb = wb;_formatter = new HSSFDataFormatter();}" }, { "index": 35, "before": "public IntBuffer put(int index, int c) {checkIndex(index);byteBuffer.putInt(index * SizeOf.INT, c);return this;}", "after": "public override java.nio.IntBuffer put(int index, int c){checkIndex(index);byteBuffer.putInt(index * libcore.io.SizeOf.INT, c);return this;}" }, { "index": 36, "before": "public final byte getParameterClass(int index) {if (index >= paramClass.length) {return paramClass[paramClass.length - 1];}return paramClass[index];}", "after": "public byte GetParameterClass(int index){if (index >= paramClass.Length){return paramClass[paramClass.Length - 1];}return paramClass[index];}" }, { "index": 37, "before": "public ListEndpointsResult listEndpoints(ListEndpointsRequest request) {request = beforeClientExecution(request);return executeListEndpoints(request);}", "after": "public virtual ListEndpointsResponse ListEndpoints(ListEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEndpointsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 38, "before": "public static CharsRef join(String[] words, CharsRefBuilder reuse) {int upto = 0;char[] buffer = reuse.chars();for (String word : words) {final int wordLen = word.length();final int needed = (0 == upto ? wordLen : 1 + upto + wordLen); if (needed > buffer.length) {reuse.grow(needed);buffer = reuse.chars();}if (upto > 0) {buffer[upto++] = SynonymMap.WORD_SEPARATOR;}word.getChars(0, wordLen, buffer, upto);upto += wordLen;}reuse.setLength(upto);return reuse.get();}", "after": "public static CharsRef Join(string[] words, CharsRef reuse){int upto = 0;char[] buffer = reuse.Chars;foreach (string word in words){int wordLen = word.Length;int needed = (0 == upto ? wordLen : 1 + upto + wordLen); if (needed > buffer.Length){reuse.Grow(needed);buffer = reuse.Chars;}if (upto > 0){buffer[upto++] = SynonymMap.WORD_SEPARATOR;}word.CopyTo(0, buffer, upto, wordLen - 0);upto += wordLen;}reuse.Length = upto;return reuse;}" }, { "index": 39, "before": "public StringBuffer insert(int index, float f) {return insert(index, Float.toString(f));}", "after": "public java.lang.StringBuffer insert(int index, float f){return insert(index, System.Convert.ToString(f));}" }, { "index": 40, "before": "public ShortBuffer put(short[] src, int srcOffset, int shortCount) {if (shortCount > remaining()) {throw new BufferOverflowException();}System.arraycopy(src, srcOffset, backingArray, offset + position, shortCount);position += shortCount;return this;}", "after": "public override java.nio.ShortBuffer put(short[] src, int srcOffset, int shortCount){if (shortCount > remaining()){throw new java.nio.BufferOverflowException();}System.Array.Copy(src, srcOffset, backingArray, offset + _position, shortCount);_position += shortCount;return this;}" }, { "index": 41, "before": "public DisassociateResolverEndpointIpAddressResult disassociateResolverEndpointIpAddress(DisassociateResolverEndpointIpAddressRequest request) {request = beforeClientExecution(request);return executeDisassociateResolverEndpointIpAddress(request);}", "after": "public virtual DisassociateResolverEndpointIpAddressResponse DisassociateResolverEndpointIpAddress(DisassociateResolverEndpointIpAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateResolverEndpointIpAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateResolverEndpointIpAddressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 42, "before": "public AcceptDirectConnectGatewayAssociationProposalResult acceptDirectConnectGatewayAssociationProposal(AcceptDirectConnectGatewayAssociationProposalRequest request) {request = beforeClientExecution(request);return executeAcceptDirectConnectGatewayAssociationProposal(request);}", "after": "public virtual AcceptDirectConnectGatewayAssociationProposalResponse AcceptDirectConnectGatewayAssociationProposal(AcceptDirectConnectGatewayAssociationProposalRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptDirectConnectGatewayAssociationProposalRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptDirectConnectGatewayAssociationProposalResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 43, "before": "public StopStackSetOperationResult stopStackSetOperation(StopStackSetOperationRequest request) {request = beforeClientExecution(request);return executeStopStackSetOperation(request);}", "after": "public virtual StopStackSetOperationResponse StopStackSetOperation(StopStackSetOperationRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopStackSetOperationRequestMarshaller.Instance;options.ResponseUnmarshaller = StopStackSetOperationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 44, "before": "public CacheSubnetGroup createCacheSubnetGroup(CreateCacheSubnetGroupRequest request) {request = beforeClientExecution(request);return executeCreateCacheSubnetGroup(request);}", "after": "public virtual CreateCacheSubnetGroupResponse CreateCacheSubnetGroup(CreateCacheSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCacheSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCacheSubnetGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 45, "before": "public CachedOrds(OrdinalsSegmentReader source, int maxDoc) throws IOException {offsets = new int[maxDoc + 1];int[] ords = new int[maxDoc]; long totOrds = 0;final IntsRef values = new IntsRef(32);for (int docID = 0; docID < maxDoc; docID++) {offsets[docID] = (int) totOrds;source.get(docID, values);long nextLength = totOrds + values.length;if (nextLength > ords.length) {if (nextLength > ArrayUtil.MAX_ARRAY_LENGTH) {throw new IllegalStateException(\"too many ordinals (>= \" + nextLength + \") to cache\");}ords = ArrayUtil.grow(ords, (int) nextLength);}System.arraycopy(values.ints, 0, ords, (int) totOrds, values.length);totOrds = nextLength;}offsets[maxDoc] = (int) totOrds;if ((double) totOrds / ords.length < 0.9) {this.ordinals = new int[(int) totOrds];System.arraycopy(ords, 0, this.ordinals, 0, (int) totOrds);} else {this.ordinals = ords;}}", "after": "public CachedOrds(OrdinalsSegmentReader source, int maxDoc){Offsets = new int[maxDoc + 1];int[] ords = new int[maxDoc]; long totOrds = 0;Int32sRef values = new Int32sRef(32);for (int docID = 0; docID < maxDoc; docID++){Offsets[docID] = (int)totOrds;source.Get(docID, values);long nextLength = totOrds + values.Length;if (nextLength > ords.Length){if (nextLength > ArrayUtil.MAX_ARRAY_LENGTH){throw new ThreadStateException(\"too many ordinals (>= \" + nextLength + \") to cache\");}ords = ArrayUtil.Grow(ords, (int)nextLength);}Array.Copy(values.Int32s, 0, ords, (int)totOrds, values.Length);totOrds = nextLength;}Offsets[maxDoc] = (int)totOrds;if ((double)totOrds / ords.Length < 0.9){this.Ordinals = new int[(int)totOrds];Array.Copy(ords, 0, this.Ordinals, 0, (int)totOrds);}else{this.Ordinals = ords;}}" }, { "index": 46, "before": "public String getRawUserInfo() {return userInfo;}", "after": "public string getRawUserInfo(){return userInfo;}" }, { "index": 47, "before": "@Override public Object[] toArray() {return ObjectArrays.toArrayImpl(this);}", "after": "public override object[] toArray(){lock (this._enclosing){return base.toArray();}}" }, { "index": 48, "before": "public DescribeCompilationJobResult describeCompilationJob(DescribeCompilationJobRequest request) {request = beforeClientExecution(request);return executeDescribeCompilationJob(request);}", "after": "public virtual DescribeCompilationJobResponse DescribeCompilationJob(DescribeCompilationJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCompilationJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCompilationJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 49, "before": "public String getQuery() {return decode(query);}", "after": "public string getQuery(){return decode(query);}" }, { "index": 50, "before": "public CreateEnvironmentResult createEnvironment(CreateEnvironmentRequest request) {request = beforeClientExecution(request);return executeCreateEnvironment(request);}", "after": "public virtual CreateEnvironmentResponse CreateEnvironment(CreateEnvironmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEnvironmentRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEnvironmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 51, "before": "public ParseTreeMatch match(ParseTree tree) {return matcher.match(tree, this);}", "after": "public virtual ParseTreeMatch Match(IParseTree tree){return matcher.Match(tree, this);}" }, { "index": 52, "before": "public boolean contains(CharSequence cs) {return map.containsKey(cs);}", "after": "public virtual bool Contains(char[] text){return map.ContainsKey(text, 0, text.Length);}" }, { "index": 53, "before": "public QueryRequest(String tableName) {setTableName(tableName);}", "after": "public QueryRequest(string tableName){_tableName = tableName;}" }, { "index": 54, "before": "public boolean isRowGroupHiddenByParent(int row) {int endLevel;boolean endHidden;int endOfOutlineGroupIdx = findEndOfRowOutlineGroup(row);if (getRow(endOfOutlineGroupIdx + 1) == null) {endLevel = 0;endHidden = false;} else {endLevel = getRow(endOfOutlineGroupIdx + 1).getOutlineLevel();endHidden = getRow(endOfOutlineGroupIdx + 1).getZeroHeight();}int startLevel;boolean startHidden;int startOfOutlineGroupIdx = findStartOfRowOutlineGroup( row );if (startOfOutlineGroupIdx - 1 < 0 || getRow(startOfOutlineGroupIdx - 1) == null) {startLevel = 0;startHidden = false;} else {startLevel = getRow(startOfOutlineGroupIdx - 1).getOutlineLevel();startHidden = getRow(startOfOutlineGroupIdx - 1).getZeroHeight();}if (endLevel > startLevel) {return endHidden;}return startHidden;}", "after": "public bool IsRowGroupHiddenByParent(int row){int endLevel;bool endHidden;int endOfOutlineGroupIdx = FindEndOfRowOutlineGroup(row);if (GetRow(endOfOutlineGroupIdx + 1) == null){endLevel = 0;endHidden = false;}else{endLevel = GetRow(endOfOutlineGroupIdx + 1).OutlineLevel;endHidden = GetRow(endOfOutlineGroupIdx + 1).ZeroHeight;}int startLevel;bool startHidden;int startOfOutlineGroupIdx = FindStartOfRowOutlineGroup(row);if (startOfOutlineGroupIdx - 1 < 0 || GetRow(startOfOutlineGroupIdx - 1) == null){startLevel = 0;startHidden = false;}else{startLevel = GetRow(startOfOutlineGroupIdx - 1).OutlineLevel;startHidden = GetRow(startOfOutlineGroupIdx - 1).ZeroHeight;}if (endLevel > startLevel){return endHidden;}else{return startHidden;}}" }, { "index": 55, "before": "public boolean retryFailedLockFileCommit() {return true;}", "after": "public override bool RetryFailedLockFileCommit(){return true;}" }, { "index": 56, "before": "public ValidateMatchmakingRuleSetResult validateMatchmakingRuleSet(ValidateMatchmakingRuleSetRequest request) {request = beforeClientExecution(request);return executeValidateMatchmakingRuleSet(request);}", "after": "public virtual ValidateMatchmakingRuleSetResponse ValidateMatchmakingRuleSet(ValidateMatchmakingRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = ValidateMatchmakingRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = ValidateMatchmakingRuleSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 57, "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 bool Get(string name, bool dflt){bool[] vals;object temp;if (valByRound.TryGetValue(name, out temp) && temp != null){vals = (bool[])temp;return vals[roundNumber % vals.Length];}string sval;if (!props.TryGetValue(name, out sval)){sval = dflt.ToString(); }if (sval.IndexOf(':') < 0){return bool.Parse(sval);}int k = sval.IndexOf(':');string colName = sval.Substring(0, k - 0);sval = sval.Substring(k + 1);colForValByRound[name] = colName;vals = PropToBooleanArray(sval);valByRound[name] = vals;return vals[roundNumber % vals.Length];}" }, { "index": 58, "before": "public UpdateLinkAttributesResult updateLinkAttributes(UpdateLinkAttributesRequest request) {request = beforeClientExecution(request);return executeUpdateLinkAttributes(request);}", "after": "public virtual UpdateLinkAttributesResponse UpdateLinkAttributes(UpdateLinkAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateLinkAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateLinkAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 59, "before": "public NumericPayloadTokenFilter(TokenStream input, float payload, String typeMatch) {super(input);if (typeMatch == null) {throw new IllegalArgumentException(\"typeMatch must not be null\");}thePayload = new BytesRef(PayloadHelper.encodeFloat(payload));this.typeMatch = typeMatch;}", "after": "public NumericPayloadTokenFilter(TokenStream input, float payload, string typeMatch): base(input){if (typeMatch == null){throw new ArgumentException(\"typeMatch cannot be null\");}thePayload = new BytesRef(PayloadHelper.EncodeSingle(payload));this.typeMatch = typeMatch;this.payloadAtt = AddAttribute();this.typeAtt = AddAttribute();}" }, { "index": 60, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[CALCCOUNT]\\n\");buffer.append(\" .iterations = \").append(Integer.toHexString(getIterations())).append(\"\\n\");buffer.append(\"[/CALCCOUNT]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[CALCCOUNT]\\n\");buffer.Append(\" .iterations = \").Append(StringUtil.ToHexString(Iterations)).Append(\"\\n\");buffer.Append(\"[/CALCCOUNT]\\n\");return buffer.ToString();}" }, { "index": 61, "before": "public E push(E object) {addElement(object);return object;}", "after": "public virtual E push(E @object){addElement(@object);return @object;}" }, { "index": 62, "before": "public LinkedHashMap(int initialCapacity, float loadFactor, boolean accessOrder) {super(initialCapacity, loadFactor);init();this.accessOrder = accessOrder;}", "after": "public LinkedHashMap(int initialCapacity, float loadFactor, bool accessOrder) : base(initialCapacity, loadFactor){init();this.accessOrder = accessOrder;}" }, { "index": 63, "before": "public TreeSet() {backingMap = new TreeMap();}", "after": "public TreeSet(){backingMap = new java.util.TreeMap();}" }, { "index": 64, "before": "public long skip(long charCount) throws IOException {if (charCount < 0) {throw new IllegalArgumentException(\"charCount < 0: \" + charCount);}synchronized (lock) {long skipped = 0;int toRead = charCount < 512 ? (int) charCount : 512;char[] charsSkipped = new char[toRead];while (skipped < charCount) {int read = read(charsSkipped, 0, toRead);if (read == -1) {return skipped;}skipped += read;if (read < toRead) {return skipped;}if (charCount - skipped < toRead) {toRead = (int) (charCount - skipped);}}return skipped;}}", "after": "public virtual long skip(long charCount){if (charCount < 0){throw new System.ArgumentException(\"charCount < 0: \" + charCount);}lock (@lock){long skipped = 0;int toRead = charCount < 512 ? (int)charCount : 512;char[] charsSkipped = new char[toRead];while (skipped < charCount){int read_1 = read(charsSkipped, 0, toRead);if (read_1 == -1){return skipped;}skipped += read_1;if (read_1 < toRead){return skipped;}if (charCount - skipped < toRead){toRead = (int)(charCount - skipped);}}return skipped;}}" }, { "index": 65, "before": "public ValueEval getRef3DEval(Ref3DPxg rptg) {SheetRangeEvaluator sre = createExternSheetRefEvaluator(rptg.getSheetName(), rptg.getLastSheetName(), rptg.getExternalWorkbookNumber());return new LazyRefEval(rptg.getRow(), rptg.getColumn(), sre);}", "after": "public ValueEval GetRef3DEval(Ref3DPxg rptg){SheetRangeEvaluator sre = CreateExternSheetRefEvaluator(rptg.SheetName, rptg.LastSheetName, rptg.ExternalWorkbookNumber);return new LazyRefEval(rptg.Row, rptg.Column, sre);}" }, { "index": 66, "before": "public NewAnalyzerTask(PerfRunData runData) {super(runData);analyzerNames = new ArrayList<>();}", "after": "public NewAnalyzerTask(PerfRunData runData): base(runData){analyzerNames = new List();}" }, { "index": 67, "before": "public boolean equals( Object o ) {return o instanceof EnglishStemmer;}", "after": "public override bool Equals(object o){return o is EnglishStemmer;}" }, { "index": 68, "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++];valuesOffset = decode(block, values, valuesOffset);}}", "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++];valuesOffset = Decode(block, values, valuesOffset);}}" }, { "index": 69, "before": "public final void incRef() {ensureOpen();refCount.incrementAndGet();}", "after": "public void IncRef(){EnsureOpen();refCount.IncrementAndGet();}" }, { "index": 70, "before": "public ReplicationGroup testFailover(TestFailoverRequest request) {request = beforeClientExecution(request);return executeTestFailover(request);}", "after": "public virtual TestFailoverResponse TestFailover(TestFailoverRequest request){var options = new InvokeOptions();options.RequestMarshaller = TestFailoverRequestMarshaller.Instance;options.ResponseUnmarshaller = TestFailoverResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 71, "before": "public RefWriter(Collection refs) {this.refs = RefComparator.sort(refs);}", "after": "public RefWriter(ICollection refs){this.refs = RefComparator.Sort(refs);}" }, { "index": 72, "before": "public ByteVector(int capacity) {if (capacity > 0) {blockSize = capacity;} else {blockSize = DEFAULT_BLOCK_SIZE;}array = new byte[blockSize];n = 0;}", "after": "public ByteVector(int capacity){if (capacity > 0){blockSize = capacity;}else{blockSize = DEFAULT_BLOCK_SIZE;}array = new byte[blockSize];n = 0;}" }, { "index": 73, "before": "public void endWorker() {if (workers.decrementAndGet() == 0)process.release();}", "after": "public virtual void EndWorker(){if (workers.DecrementAndGet() == 0){process.Release();}}" }, { "index": 74, "before": "public DescribeVolumeStatusResult describeVolumeStatus(DescribeVolumeStatusRequest request) {request = beforeClientExecution(request);return executeDescribeVolumeStatus(request);}", "after": "public virtual DescribeVolumeStatusResponse DescribeVolumeStatus(DescribeVolumeStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVolumeStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVolumeStatusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 75, "before": "public IntMapper(final int initialCapacity) {elements = new ArrayList<>(initialCapacity);valueKeyMap = new HashMap<>(initialCapacity);}", "after": "public IntMapper(int InitialCapacity){elements = new List(InitialCapacity);valueKeyMap = new Dictionary(InitialCapacity);}" }, { "index": 76, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_borderType);out.writeShort(field_2_options);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_borderType);out1.WriteShort(field_2_options);}" }, { "index": 77, "before": "public synchronized void copyInto(Object[] elements) {System.arraycopy(elementData, 0, elements, 0, elementCount);}", "after": "public virtual void copyInto(object[] elements_1){lock (this){System.Array.Copy(elementData, 0, elements_1, 0, elementCount);}}" }, { "index": 78, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {double s0;String s1;try {s0 = evaluateDoubleArg(arg0, srcRowIndex, srcColumnIndex);s1 = evaluateStringArg(arg1, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {return e.getErrorEval();}try {String formattedStr = formatter.formatRawCellContents(s0, -1, s1);return new StringEval(formattedStr);} catch (Exception e) {return ErrorEval.VALUE_INVALID;}}", "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": 79, "before": "public CustomViewSettingsRecordAggregate(RecordStream rs) {_begin = rs.getNext();if (_begin.getSid() != UserSViewBegin.sid) {throw new IllegalStateException(\"Bad begin record\");}List temp = new ArrayList<>();while (rs.peekNextSid() != UserSViewEnd.sid) {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;_end = rs.getNext(); if (_end.getSid() != UserSViewEnd.sid) {throw new IllegalStateException(\"Bad custom view settings end record\");}}", "after": "public CustomViewSettingsRecordAggregate(RecordStream rs){_begin = rs.GetNext();if (_begin.Sid != UserSViewBegin.sid){throw new InvalidOperationException(\"Bad begin record\");}List temp = new List();while (rs.PeekNextSid() != UserSViewEnd.sid){if (PageSettingsBlock.IsComponentRecord(rs.PeekNextSid())){if (_psBlock != null){throw new InvalidOperationException(\"Found more than one PageSettingsBlock in custom view Settings sub-stream\");}_psBlock = new PageSettingsBlock(rs);temp.Add(_psBlock);continue;}temp.Add(rs.GetNext());}_recs = temp;_end = rs.GetNext(); if (_end.Sid != UserSViewEnd.sid){throw new InvalidOperationException(\"Bad custom view Settings end record\");}}" }, { "index": 80, "before": "public DeleteSignalingChannelResult deleteSignalingChannel(DeleteSignalingChannelRequest request) {request = beforeClientExecution(request);return executeDeleteSignalingChannel(request);}", "after": "public virtual DeleteSignalingChannelResponse DeleteSignalingChannel(DeleteSignalingChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSignalingChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSignalingChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 81, "before": "@Override public boolean remove(Object o) {if (contains(o)) {Entry entry = (Entry) o;AtomicInteger frequency = backingMap.remove(entry.getElement());int numberRemoved = frequency.getAndSet(0);size -= numberRemoved;return true;}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": 82, "before": "public SnapshotDeletionPolicy(IndexDeletionPolicy primary) {this.primary = primary;}", "after": "public SnapshotDeletionPolicy(IndexDeletionPolicy primary){this.primary = primary;}" }, { "index": 83, "before": "public void throwException() throws BufferUnderflowException,BufferOverflowException, UnmappableCharacterException,MalformedInputException, CharacterCodingException {switch (this.type) {case TYPE_UNDERFLOW:throw new BufferUnderflowException();case TYPE_OVERFLOW:throw new BufferOverflowException();case TYPE_UNMAPPABLE_CHAR:throw new UnmappableCharacterException(this.length);case TYPE_MALFORMED_INPUT:throw new MalformedInputException(this.length);default:throw new CharacterCodingException();}}", "after": "public virtual void throwException(){switch (this.type){case TYPE_UNDERFLOW:{throw new java.nio.BufferUnderflowException();}case TYPE_OVERFLOW:{throw new java.nio.BufferOverflowException();}case TYPE_UNMAPPABLE_CHAR:{throw new java.nio.charset.UnmappableCharacterException(this._length);}case TYPE_MALFORMED_INPUT:{throw new java.nio.charset.MalformedInputException(this._length);}default:{throw new java.nio.charset.CharacterCodingException();}}}" }, { "index": 84, "before": "public StringPtg(LittleEndianInput in) {int nChars = in.readUByte(); _is16bitUnicode = (in.readByte() & 0x01) != 0;if (_is16bitUnicode) {field_3_string = StringUtil.readUnicodeLE(in, nChars);} else {field_3_string = StringUtil.readCompressedUnicode(in, nChars);}}", "after": "public StringPtg(ILittleEndianInput in1){int field_1_length = in1.ReadUByte();field_2_options = (byte)in1.ReadByte();_is16bitUnicode = (field_2_options & 0x01) != 0;if (_is16bitUnicode){field_3_string = StringUtil.ReadUnicodeLE(in1, field_1_length);}else{field_3_string = StringUtil.ReadCompressedUnicode(in1, field_1_length);}}" }, { "index": 85, "before": "public GetPublicAccessUrlsRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"GetPublicAccessUrls\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetPublicAccessUrlsRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"GetPublicAccessUrls\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 86, "before": "public CleanCommand clean() {return new CleanCommand(repo);}", "after": "public virtual CleanCommand Clean(){return new CleanCommand(repo);}" }, { "index": 87, "before": "public Collection getPacks() {PackList list = packList.get();if (list == NO_PACKS)list = scanPacks(list);PackFile[] packs = list.packs;return Collections.unmodifiableCollection(Arrays.asList(packs));}", "after": "public virtual ICollection GetPacks(){ObjectDirectory.PackList list = packList.Get();if (list == NO_PACKS){list = ScanPacks(list);}PackFile[] packs = list.packs;return Sharpen.Collections.UnmodifiableCollection(Arrays.AsList(packs));}" }, { "index": 88, "before": "public DescribeStackDriftDetectionStatusResult describeStackDriftDetectionStatus(DescribeStackDriftDetectionStatusRequest request) {request = beforeClientExecution(request);return executeDescribeStackDriftDetectionStatus(request);}", "after": "public virtual DescribeStackDriftDetectionStatusResponse DescribeStackDriftDetectionStatus(DescribeStackDriftDetectionStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStackDriftDetectionStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStackDriftDetectionStatusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 89, "before": "public ListCloudFrontOriginAccessIdentitiesResult listCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest request) {request = beforeClientExecution(request);return executeListCloudFrontOriginAccessIdentities(request);}", "after": "public virtual ListCloudFrontOriginAccessIdentitiesResponse ListCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListCloudFrontOriginAccessIdentitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListCloudFrontOriginAccessIdentitiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 90, "before": "public static SshSessionFactory getInstance() {return INSTANCE;}", "after": "public static SshSessionFactory GetInstance(){return INSTANCE;}" }, { "index": 91, "before": "public ListConferenceProvidersResult listConferenceProviders(ListConferenceProvidersRequest request) {request = beforeClientExecution(request);return executeListConferenceProviders(request);}", "after": "public virtual ListConferenceProvidersResponse ListConferenceProviders(ListConferenceProvidersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListConferenceProvidersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListConferenceProvidersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 92, "before": "public UpdateReceiptRuleResult updateReceiptRule(UpdateReceiptRuleRequest request) {request = beforeClientExecution(request);return executeUpdateReceiptRule(request);}", "after": "public virtual UpdateReceiptRuleResponse UpdateReceiptRule(UpdateReceiptRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateReceiptRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateReceiptRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 93, "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(\" OR \");}r.Append(subfilters[i].ToString());}r.Append(\")\");return r.ToString();}" }, { "index": 94, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(sid);out.writeShort(length);out.writeShort(flags);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(sid);out1.WriteShort(length);out1.WriteShort(flags);}" }, { "index": 95, "before": "public UpdateHealthCheckResult updateHealthCheck(UpdateHealthCheckRequest request) {request = beforeClientExecution(request);return executeUpdateHealthCheck(request);}", "after": "public virtual UpdateHealthCheckResponse UpdateHealthCheck(UpdateHealthCheckRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateHealthCheckRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateHealthCheckResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 96, "before": "public synchronized long ramBytesUsed() {long bytes = 0;for(CachedOrds ords : ordsCache.values()) {bytes += ords.ramBytesUsed();}return bytes;}", "after": "public long RamBytesUsed(){long mem = RamUsageEstimator.ShallowSizeOf(this) + RamUsageEstimator.SizeOf(Offsets);if (Offsets != Ordinals){mem += RamUsageEstimator.SizeOf(Ordinals);}return mem;}" }, { "index": 97, "before": "public UpdateWorkforceResult updateWorkforce(UpdateWorkforceRequest request) {request = beforeClientExecution(request);return executeUpdateWorkforce(request);}", "after": "public virtual UpdateWorkforceResponse UpdateWorkforce(UpdateWorkforceRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateWorkforceRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateWorkforceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 98, "before": "public void setObjectId(AnyObjectId id) {id.copyRawTo(idBuffer(), idOffset());}", "after": "public virtual void SetObjectId(AnyObjectId id){id.CopyRawTo(IdBuffer, IdOffset);}" }, { "index": 99, "before": "public void write(byte[] buffer, int byteOffset, int byteCount) throws IOException {IoBridge.write(fd, buffer, byteOffset, byteCount);if (syncMetadata) {fd.sync();}}", "after": "public virtual void write(byte[] buffer, int byteOffset, int byteCount){throw new System.NotImplementedException();}" }, { "index": 100, "before": "public GetBlockResult getBlock(GetBlockRequest request) {request = beforeClientExecution(request);return executeGetBlock(request);}", "after": "public virtual GetBlockResponse GetBlock(GetBlockRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBlockRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBlockResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 101, "before": "public void exportDirectory(File dir) {exportBase.add(dir);}", "after": "public virtual void ExportDirectory(FilePath dir){exportBase.AddItem(dir);}" }, { "index": 102, "before": "public CreateReservedInstancesListingResult createReservedInstancesListing(CreateReservedInstancesListingRequest request) {request = beforeClientExecution(request);return executeCreateReservedInstancesListing(request);}", "after": "public virtual CreateReservedInstancesListingResponse CreateReservedInstancesListing(CreateReservedInstancesListingRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateReservedInstancesListingRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateReservedInstancesListingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 103, "before": "public ByteBuffer put(byte b) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer put(byte b){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 104, "before": "public ValueEval evaluate(ValueEval[] args, int srcCellRow, int srcCellCol) {double result;try {List temp = new ArrayList<>();for (ValueEval arg : args) {collectValues(arg, temp);}double[] values = new double[temp.size()];for (int i = 0; i < values.length; i++) {values[i] = temp.get(i).doubleValue();}result = evaluate(values);} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcCellRow, int srcCellCol){double result;try{IList temp = new ArrayList();for (int i = 0; i < args.Length; i++){CollectValues(args[i], temp);}double[] values = new double[temp.Count];for (int i = 0; i < values.Length; i++){values[i] = (Double)temp[i];}result = Evaluate(values);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}" }, { "index": 105, "before": "public static int getCharType(char ch) {if (isSurrogate(ch))return CharType.SURROGATE;if (ch >= 0x4E00 && ch <= 0x9FA5)return CharType.HANZI;if ((ch >= 0x0041 && ch <= 0x005A) || (ch >= 0x0061 && ch <= 0x007A))return CharType.LETTER;if (ch >= 0x0030 && ch <= 0x0039)return CharType.DIGIT;if (ch == ' ' || ch == '\\t' || ch == '\\r' || ch == '\\n' || ch == ' ')return CharType.SPACE_LIKE;if ((ch >= 0x0021 && ch <= 0x00BB) || (ch >= 0x2010 && ch <= 0x2642)|| (ch >= 0x3001 && ch <= 0x301E))return CharType.DELIMITER;if ((ch >= 0xFF21 && ch <= 0xFF3A) || (ch >= 0xFF41 && ch <= 0xFF5A))return CharType.FULLWIDTH_LETTER;if (ch >= 0xFF10 && ch <= 0xFF19)return CharType.FULLWIDTH_DIGIT;if (ch >= 0xFE30 && ch <= 0xFF63)return CharType.DELIMITER;return CharType.OTHER;}", "after": "public static CharType GetCharType(char ch){if (ch >= 0x4E00 && ch <= 0x9FA5)return CharType.HANZI;if ((ch >= 0x0041 && ch <= 0x005A) || (ch >= 0x0061 && ch <= 0x007A))return CharType.LETTER;if (ch >= 0x0030 && ch <= 0x0039)return CharType.DIGIT;if (ch == ' ' || ch == '\\t' || ch == '\\r' || ch == '\\n' || ch == ' ')return CharType.SPACE_LIKE;if ((ch >= 0x0021 && ch <= 0x00BB) || (ch >= 0x2010 && ch <= 0x2642)|| (ch >= 0x3001 && ch <= 0x301E))return CharType.DELIMITER;if ((ch >= 0xFF21 && ch <= 0xFF3A) || (ch >= 0xFF41 && ch <= 0xFF5A))return CharType.FULLWIDTH_LETTER;if (ch >= 0xFF10 && ch <= 0xFF19)return CharType.FULLWIDTH_DIGIT;if (ch >= 0xFE30 && ch <= 0xFF63)return CharType.DELIMITER;return CharType.OTHER;}" }, { "index": 106, "before": "public StopJumpserverRequest() {super(\"HPC\", \"2016-06-03\", \"StopJumpserver\", \"hpc\");setMethod(MethodType.POST);}", "after": "public StopJumpserverRequest(): base(\"HPC\", \"2016-06-03\", \"StopJumpserver\"){Method = MethodType.POST;}" }, { "index": 107, "before": "public CreateDirectoryConfigResult createDirectoryConfig(CreateDirectoryConfigRequest request) {request = beforeClientExecution(request);return executeCreateDirectoryConfig(request);}", "after": "public virtual CreateDirectoryConfigResponse CreateDirectoryConfig(CreateDirectoryConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDirectoryConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDirectoryConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 108, "before": "public DescribeExportTasksResult describeExportTasks() {return describeExportTasks(new DescribeExportTasksRequest());}", "after": "public virtual DescribeExportTasksResponse DescribeExportTasks(){return DescribeExportTasks(new DescribeExportTasksRequest());}" }, { "index": 109, "before": "public ExportClientVpnClientCertificateRevocationListResult exportClientVpnClientCertificateRevocationList(ExportClientVpnClientCertificateRevocationListRequest request) {request = beforeClientExecution(request);return executeExportClientVpnClientCertificateRevocationList(request);}", "after": "public virtual ExportClientVpnClientCertificateRevocationListResponse ExportClientVpnClientCertificateRevocationList(ExportClientVpnClientCertificateRevocationListRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExportClientVpnClientCertificateRevocationListRequestMarshaller.Instance;options.ResponseUnmarshaller = ExportClientVpnClientCertificateRevocationListResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 110, "before": "public CompleteMultipartUploadResult completeMultipartUpload(CompleteMultipartUploadRequest request) {request = beforeClientExecution(request);return executeCompleteMultipartUpload(request);}", "after": "public virtual CompleteMultipartUploadResponse CompleteMultipartUpload(CompleteMultipartUploadRequest request){var options = new InvokeOptions();options.RequestMarshaller = CompleteMultipartUploadRequestMarshaller.Instance;options.ResponseUnmarshaller = CompleteMultipartUploadResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 111, "before": "public long ramBytesUsed() {long sizeInBytes = 0;sizeInBytes += RamUsageEstimator.sizeOf(minValues);sizeInBytes += RamUsageEstimator.sizeOf(averages);for(PackedInts.Reader reader: subReaders) {sizeInBytes += reader.ramBytesUsed();}return sizeInBytes;}", "after": "public long RamBytesUsed(){long sizeInBytes = 0;sizeInBytes += RamUsageEstimator.SizeOf(minValues);sizeInBytes += RamUsageEstimator.SizeOf(averages);foreach (PackedInt32s.Reader reader in subReaders){sizeInBytes += reader.RamBytesUsed();}return sizeInBytes;}" }, { "index": 112, "before": "public static void fill(Object[] array, Object value) {for (int i = 0; i < array.length; i++) {array[i] = value;}}", "after": "public static void fill(object[] array, object value){{for (int i = 0; i < array.Length; i++){array[i] = value;}}}" }, { "index": 113, "before": "public ByteBuffer putDouble(int index, double value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putDouble(int index, double value){throw new System.NotImplementedException();}" }, { "index": 114, "before": "public DescribeAdjustmentTypesResult describeAdjustmentTypes() {return describeAdjustmentTypes(new DescribeAdjustmentTypesRequest());}", "after": "public virtual DescribeAdjustmentTypesResponse DescribeAdjustmentTypes(){return DescribeAdjustmentTypes(new DescribeAdjustmentTypesRequest());}" }, { "index": 115, "before": "public PersonIdent getSourceCommitter() {RevCommit c = getSourceCommit();return c != null ? c.getCommitterIdent() : null;}", "after": "public virtual PersonIdent GetSourceCommitter(){RevCommit c = GetSourceCommit();return c != null ? c.GetCommitterIdent() : null;}" }, { "index": 116, "before": "public Object[] toArray() {int index = 0;Object[] contents = new Object[size];Link link = voidLink.next;while (link != voidLink) {contents[index++] = link.data;link = link.next;}return contents;}", "after": "public override object[] toArray(){int index = 0;object[] contents = new object[_size];java.util.LinkedList.Link link = voidLink.next;while (link != voidLink){contents[index++] = link.data;link = link.next;}return contents;}" }, { "index": 117, "before": "public String toString() {return name + \" version \" + version;}", "after": "public override string ToString(){return \"Provider{\" + Sharpen.Util.IntToHexString(Sharpen.Util.IdentityHashCode(this)) + \" \" + info.name + \"}\";}" }, { "index": 118, "before": "public PushCommand setRefSpecs(RefSpec... specs) {checkCallable();this.refSpecs.clear();Collections.addAll(refSpecs, 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": 119, "before": "public String toString(String field) {StringBuilder buffer = new StringBuilder();buffer.append(\"spanFirst(\");buffer.append(match.toString(field));buffer.append(\", \");buffer.append(end);buffer.append(\")\");return buffer.toString();}", "after": "public override string ToString(string field){StringBuilder buffer = new StringBuilder();buffer.Append(\"spanFirst(\");buffer.Append(m_match.ToString(field));buffer.Append(\", \");buffer.Append(m_end);buffer.Append(\")\");buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}" }, { "index": 120, "before": "public X509Certificate[] getAcceptedIssuers() {return null;}", "after": "public virtual X509Certificate[] GetAcceptedIssuers(){return null;}" }, { "index": 121, "before": "public int read() {if (pos < size) {return s.charAt(pos++);} else {s = null;return -1;}}", "after": "public override int Read(){if (pos < size){return s[pos++];}else{s = null;return -1;}}" }, { "index": 122, "before": "public PersonIdent getRefLogIdent() {return destination.getRefLogIdent();}", "after": "public virtual PersonIdent GetRefLogIdent(){return destination.GetRefLogIdent();}" }, { "index": 123, "before": "@Override public int size() {return size;}", "after": "public override int size(){return _size;}" }, { "index": 124, "before": "public GetRequestValidatorsResult getRequestValidators(GetRequestValidatorsRequest request) {request = beforeClientExecution(request);return executeGetRequestValidators(request);}", "after": "public virtual GetRequestValidatorsResponse GetRequestValidators(GetRequestValidatorsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRequestValidatorsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRequestValidatorsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 125, "before": "public String toString() {return \"I(F)\";}", "after": "public override string ToString(){return \"I(F)\";}" }, { "index": 126, "before": "public boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;SegToken other = (SegToken) obj;if (!Arrays.equals(charArray, other.charArray))return false;if (endOffset != other.endOffset)return false;if (index != other.index)return false;if (startOffset != other.startOffset)return false;if (weight != other.weight)return false;if (wordType != other.wordType)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;SegToken other = (SegToken)obj;if (!Arrays.Equals(CharArray, other.CharArray))return false;if (EndOffset != other.EndOffset)return false;if (Index != other.Index)return false;if (StartOffset != other.StartOffset)return false;if (Weight != other.Weight)return false;if (WordType != other.WordType)return false;return true;}" }, { "index": 127, "before": "public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) { readHeader( data, offset );int pos = offset + 8;int size = 0;field_1_shapeId = LittleEndian.getInt( data, pos + size ); size += 4;field_2_flags = 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_shapeId = LittleEndian.GetInt(data, pos + size); size += 4;field_2_flags = LittleEndian.GetInt(data, pos + size); size += 4;return RecordSize;}" }, { "index": 128, "before": "public String getSignerName() {return ALGORITHM_NAME;}", "after": "public override string GetSignerName(){return ALGORITHM_NAME;}" }, { "index": 129, "before": "public synchronized void clear() {if (size != 0) {Arrays.fill(table, null);modCount++;size = 0;}}", "after": "public virtual void clear(){lock (this){if (_size != 0){java.util.Arrays.fill(table, null);modCount++;_size = 0;}}}" }, { "index": 130, "before": "public CancelCapacityReservationResult cancelCapacityReservation(CancelCapacityReservationRequest request) {request = beforeClientExecution(request);return executeCancelCapacityReservation(request);}", "after": "public virtual CancelCapacityReservationResponse CancelCapacityReservation(CancelCapacityReservationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelCapacityReservationRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelCapacityReservationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 131, "before": "public ImportDocumentationPartsResult importDocumentationParts(ImportDocumentationPartsRequest request) {request = beforeClientExecution(request);return executeImportDocumentationParts(request);}", "after": "public virtual ImportDocumentationPartsResponse ImportDocumentationParts(ImportDocumentationPartsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportDocumentationPartsRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportDocumentationPartsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 132, "before": "public SuggestResult suggest(SuggestRequest request) {request = beforeClientExecution(request);return executeSuggest(request);}", "after": "public virtual SuggestResponse Suggest(SuggestRequest request){var options = new InvokeOptions();options.RequestMarshaller = SuggestRequestMarshaller.Instance;options.ResponseUnmarshaller = SuggestResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 133, "before": "public Explanation explain(int docId, String field, int numPayloadsSeen, float payloadScore){return Explanation.match(docScore(docId, field, numPayloadsSeen, payloadScore),getClass().getSimpleName() + \".docScore()\");}", "after": "public virtual Explanation Explain(int docId, string field, int numPayloadsSeen, float payloadScore){Explanation result = new Explanation();result.Description = this.GetType().Name + \".docScore()\";result.Value = DocScore(docId, field, numPayloadsSeen, payloadScore);return result;}" }, { "index": 134, "before": "public int serialize(int offset, byte[] data) {int result = 0;for (org.apache.poi.hssf.record.Record rec : _list) {result += rec.serialize(offset + result, data);}return result;}", "after": "public int Serialize(int offset, byte[] data){int result = 0;int nRecs = _list.Count;for (int i = 0; i < nRecs; i++){Record rec = (Record)_list[i];result += rec.Serialize(offset + result, data);}return result;}" }, { "index": 135, "before": "public String toString() {return _string.toString();}", "after": "public override String ToString(){return _string.ToString();}" }, { "index": 136, "before": "public static long[] copyOfRange(long[] 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);long[] result = new long[resultLength];System.arraycopy(original, start, result, 0, copyLength);return result;}", "after": "public static long[] copyOfRange(long[] 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);long[] result = new long[resultLength];System.Array.Copy(original, start, result, 0, copyLength);return result;}" }, { "index": 137, "before": "public static byte[] toByteArray(ByteBuffer buffer, int length) {if(buffer.hasArray() && buffer.arrayOffset() == 0) {return buffer.array();}checkByteSizeLimit(length);byte[] data = new byte[length];buffer.get(data);return data;}", "after": "public static byte[] ToByteArray(ByteBuffer buffer, int length){if (buffer.HasBuffer && buffer.Offset == 0){return buffer.Buffer;}byte[] data = new byte[length];buffer.Read(data);return data;}" }, { "index": 138, "before": "public synchronized void setProgress(int progress) {setProgress(progress, false);}", "after": "public virtual void setProgress(int progress){lock (this){setProgress(progress, false);}}" }, { "index": 139, "before": "public void removeCell(CellValueRecordInterface cell) {if (cell == null) {throw new IllegalArgumentException(\"cell must not be null\");}int row = cell.getRow();if (row >= records.length) {throw new RuntimeException(\"cell row is out of range\");}CellValueRecordInterface[] rowCells = records[row];if (rowCells == null) {throw new RuntimeException(\"cell row is already empty\");}short column = cell.getColumn();if (column >= rowCells.length) {throw new RuntimeException(\"cell column is out of range\");}rowCells[column] = null;}", "after": "public void RemoveCell(CellValueRecordInterface cell){if (cell == null){throw new ArgumentException(\"cell must not be null\");}int row = cell.Row;if (row >= records.Length){throw new Exception(\"cell row is out of range\");}CellValueRecordInterface[] rowCells = records[row];if (rowCells == null){throw new Exception(\"cell row is already empty\");}int column = cell.Column;if (column >= rowCells.Length){throw new Exception(\"cell column is out of range\");}rowCells[column] = null;}" }, { "index": 140, "before": "public static String canonicalizePath(String path, boolean discardRelativePrefix) {int segmentStart = 0;int deletableSegments = 0;for (int i = 0; i <= path.length(); ) {int nextSegmentStart;if (i == path.length()) {nextSegmentStart = i;} else if (path.charAt(i) == '/') {nextSegmentStart = i + 1;} else {i++;continue;}if (i == segmentStart + 1 && path.regionMatches(segmentStart, \".\", 0, 1)) {path = path.substring(0, segmentStart) + path.substring(nextSegmentStart);i = segmentStart;} else if (i == segmentStart + 2 && path.regionMatches(segmentStart, \"..\", 0, 2)) {if (deletableSegments > 0 || discardRelativePrefix) {deletableSegments--;int prevSegmentStart = path.lastIndexOf('/', segmentStart - 2) + 1;path = path.substring(0, prevSegmentStart) + path.substring(nextSegmentStart);i = segmentStart = prevSegmentStart;} else {i++;segmentStart = i;}} else {if (i > 0) {deletableSegments++;}i++;segmentStart = i;}}return path;}", "after": "public static string canonicalizePath(string path, bool discardRelativePrefix){int segmentStart = 0;int deletableSegments = 0;{for (int i = 0; i <= path.Length; ){int nextSegmentStart;if (i == path.Length){nextSegmentStart = i;}else{if (path[i] == '/'){nextSegmentStart = i + 1;}else{i++;continue;}}if (i == segmentStart + 1 && Sharpen.StringHelper.RegionMatches(path, segmentStart, \".\", 0, 1)){path = Sharpen.StringHelper.Substring(path, 0, segmentStart) + Sharpen.StringHelper.Substring(path, nextSegmentStart);i = segmentStart;}else{if (i == segmentStart + 2 && Sharpen.StringHelper.RegionMatches(path, segmentStart, \"..\", 0, 2)){if (deletableSegments > 0 || discardRelativePrefix){deletableSegments--;int prevSegmentStart = path.LastIndexOf('/', segmentStart - 2) + 1;path = Sharpen.StringHelper.Substring(path, 0, prevSegmentStart) + Sharpen.StringHelper.Substring(path, nextSegmentStart);i = segmentStart = prevSegmentStart;}else{i++;segmentStart = i;}}else{if (i > 0){deletableSegments++;}i++;segmentStart = i;}}}}return path;}" }, { "index": 141, "before": "public ApostropheFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameter(s): \" + args);}}", "after": "public ApostropheFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameter(s): \" + args);}}" }, { "index": 142, "before": "public Entry peek() {if (packedIdx < packed.size() && looseIdx < loose.size()) {Ref p = packed.get(packedIdx);Ref l = loose.get(looseIdx);int cmp = RefComparator.compareTo(p, l);if (cmp < 0) {packedIdx++;return toEntry(p);}if (cmp == 0)packedIdx++;looseIdx++;return toEntry(resolveLoose(l));}if (looseIdx < loose.size())return toEntry(resolveLoose(loose.get(looseIdx++)));if (packedIdx < packed.size())return toEntry(packed.get(packedIdx++));return null;}", "after": "public virtual Ent Peek(){if (this.packedIdx < this._enclosing.packed.Size() && this.looseIdx < this._enclosing.loose.Size()){Ref p = this._enclosing.packed.Get(this.packedIdx);Ref l = this._enclosing.loose.Get(this.looseIdx);int cmp = RefComparator.CompareTo(p, l);if (cmp < 0){this.packedIdx++;return this.ToEntry(p);}if (cmp == 0){this.packedIdx++;}this.looseIdx++;return this.ToEntry(this.ResolveLoose(l));}if (this.looseIdx < this._enclosing.loose.Size()){return this.ToEntry(this.ResolveLoose(this._enclosing.loose.Get(this.looseIdx++)));}if (this.packedIdx < this._enclosing.packed.Size()){return this.ToEntry(this._enclosing.packed.Get(this.packedIdx++));}return null;}" }, { "index": 143, "before": "public DeleteEnvironmentResult deleteEnvironment(DeleteEnvironmentRequest request) {request = beforeClientExecution(request);return executeDeleteEnvironment(request);}", "after": "public virtual DeleteEnvironmentResponse DeleteEnvironment(DeleteEnvironmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEnvironmentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEnvironmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 144, "before": "public int stem(char s[], int 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 'ó':case 'ő':case 'õ':case 'ö': s[i] = 'o'; break;case 'ú':case 'ű':case 'ũ':case 'û':case 'ü': s[i] = 'u'; break;}len = removeCase(s, len);len = removePossessive(s, len);len = removePlural(s, len);return normalize(s, len);}", "after": "public virtual int Stem(char[] s, int 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 'ó':case 'ő':case 'õ':case 'ö':s[i] = 'o';break;case 'ú':case 'ű':case 'ũ':case 'û':case 'ü':s[i] = 'u';break;}}len = RemoveCase(s, len);len = RemovePossessive(s, len);len = RemovePlural(s, len);return Normalize(s, len);}" }, { "index": 145, "before": "public void addChildBefore(EscherRecord record, int insertBeforeRecordId) {int idx = 0;for (EscherRecord rec : this) {if(rec.getRecordId() == (short)insertBeforeRecordId) {break;}idx++;}_childRecords.add(idx, record);}", "after": "public void AddChildBefore(EscherRecord record, int insertBeforeRecordId){for (int i = 0; i < _childRecords.Count; i++){EscherRecord rec = _childRecords[(i)];if (rec.RecordId == insertBeforeRecordId){_childRecords.Insert(i++, record);}}}" }, { "index": 146, "before": "public ListAlbumsRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"ListAlbums\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public ListAlbumsRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"ListAlbums\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 147, "before": "public SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest() {super(\"Domain-intl\", \"2017-12-18\", \"SaveTaskForUpdatingRegistrantInfoByIdentityCredential\", \"domain\");setMethod(MethodType.POST);}", "after": "public SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest(): base(\"Domain-intl\", \"2017-12-18\", \"SaveTaskForUpdatingRegistrantInfoByIdentityCredential\", \"domain\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 148, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {int result;if (arg0 instanceof TwoDEval) {result = ((TwoDEval) arg0).getHeight();} 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 TwoDEval){result = ((TwoDEval)arg0).Height;}else if (arg0 is RefEval){result = 1;}else{ return ErrorEval.VALUE_INVALID;}return new NumberEval(result);}" }, { "index": 149, "before": "public DescribeReservedInstancesResult describeReservedInstances() {return describeReservedInstances(new DescribeReservedInstancesRequest());}", "after": "public virtual DescribeReservedInstancesResponse DescribeReservedInstances(){return DescribeReservedInstances(new DescribeReservedInstancesRequest());}" }, { "index": 150, "before": "public void setPackedGitMMAP(boolean usemmap) {packedGitMMAP = usemmap;}", "after": "public virtual void SetPackedGitMMAP(bool usemmap){packedGitMMAP = usemmap;}" }, { "index": 151, "before": "public POIFSDocumentPath(){this.components = new String[ 0 ];}", "after": "public POIFSDocumentPath(){this.components = new string[0];}" }, { "index": 152, "before": "public String toString() {return key + \"/\" + value;}", "after": "public override string ToString(){return Key + \"/\" + Value;}" }, { "index": 153, "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 << 12) | (byte1 << 4) | (byte2 >>> 4);final int byte3 = blocks[blocksOffset++] & 0xFF;final int 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": 154, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(_extBookIndex);out.writeShort(_firstSheetIndex);out.writeShort(_lastSheetIndex);}", "after": "public void Serialize(ILittleEndianOutput out1){out1.WriteShort(_extBookIndex);out1.WriteShort(_firstSheetIndex);out1.WriteShort(_lastSheetIndex);}" }, { "index": 155, "before": "public PatternParser(PatternConsumer consumer) {this();this.consumer = consumer;}", "after": "public PatternParser(IPatternConsumer consumer): this(){this.consumer = consumer;}" }, { "index": 156, "before": "public final String[] getValues(String name) {List result = new ArrayList<>();for (IndexableField field : fields) {if (field.name().equals(name) && field.stringValue() != null) {result.add(field.stringValue());}}if (result.size() == 0) {return NO_STRINGS;}return result.toArray(new String[result.size()]);}", "after": "public string[] GetValues(string name){var result = new List();foreach (IIndexableField field in fields){if (field.Name.Equals(name, StringComparison.Ordinal) && field.GetStringValue() != null){result.Add(field.GetStringValue());}}if (result.Count == 0){return NO_STRINGS;}return result.ToArray();}" }, { "index": 157, "before": "public ListIdentityPoolUsageResult listIdentityPoolUsage(ListIdentityPoolUsageRequest request) {request = beforeClientExecution(request);return executeListIdentityPoolUsage(request);}", "after": "public virtual ListIdentityPoolUsageResponse ListIdentityPoolUsage(ListIdentityPoolUsageRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIdentityPoolUsageRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIdentityPoolUsageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 158, "before": "public ValueEval evaluate(ValueEval[] args, int srcCellRow, int srcCellCol) {if(args.length < 1 || args.length > 5) {return ErrorEval.VALUE_INVALID;}try {BaseRef baseRef = evaluateBaseRef(args[0]);int rowOffset = (args[1] instanceof MissingArgEval) ? 0 : evaluateIntArg(args[1], srcCellRow, srcCellCol);int columnOffset = (args[2] instanceof MissingArgEval) ? 0 : evaluateIntArg(args[2], srcCellRow, srcCellCol);int height = baseRef.getHeight();int width = baseRef.getWidth();switch(args.length) {case 5:if(!(args[4] instanceof MissingArgEval)) {width = evaluateIntArg(args[4], srcCellRow, srcCellCol);}case 4:if(!(args[3] instanceof MissingArgEval)) {height = evaluateIntArg(args[3], srcCellRow, srcCellCol);}break;default:break;}if(height == 0 || width == 0) {return ErrorEval.REF_INVALID;}LinearOffsetRange rowOffsetRange = new LinearOffsetRange(rowOffset, height);LinearOffsetRange colOffsetRange = new LinearOffsetRange(columnOffset, width);return createOffset(baseRef, rowOffsetRange, colOffsetRange);} catch (EvaluationException e) {return e.getErrorEval();}}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcCellRow, int srcCellCol){if (args.Length < 3 || args.Length > 5){return ErrorEval.VALUE_INVALID;}try{BaseRef baseRef = EvaluateBaseRef(args[0]);int rowOffset = EvaluateIntArg(args[1], srcCellRow, srcCellCol);int columnOffset = EvaluateIntArg(args[2], srcCellRow, srcCellCol);int height = baseRef.Height;int width = baseRef.Width;switch (args.Length){case 5:width = EvaluateIntArg(args[4], srcCellRow, srcCellCol);break;case 4:height = EvaluateIntArg(args[3], srcCellRow, srcCellCol);break;}if (height == 0 || width == 0){return ErrorEval.REF_INVALID;}LinearOffsetRange rowOffsetRange = new LinearOffsetRange(rowOffset, height);LinearOffsetRange colOffsetRange = new LinearOffsetRange(columnOffset, width);return CreateOffset(baseRef, rowOffsetRange, colOffsetRange);}catch (EvaluationException e){return e.GetErrorEval();}}" }, { "index": 159, "before": "public int[] getCountsByTime() {return countsByTime;}", "after": "public virtual int[] GetCountsByTime(){return countsByTime;}" }, { "index": 160, "before": "public UpdateAccountResult updateAccount(UpdateAccountRequest request) {request = beforeClientExecution(request);return executeUpdateAccount(request);}", "after": "public virtual UpdateAccountResponse UpdateAccount(UpdateAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAccountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 161, "before": "public DescribeTrainingJobResult describeTrainingJob(DescribeTrainingJobRequest request) {request = beforeClientExecution(request);return executeDescribeTrainingJob(request);}", "after": "public virtual DescribeTrainingJobResponse DescribeTrainingJob(DescribeTrainingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTrainingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTrainingJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 162, "before": "public DeleteGroupResult deleteGroup(DeleteGroupRequest request) {request = beforeClientExecution(request);return executeDeleteGroup(request);}", "after": "public virtual DeleteGroupResponse DeleteGroup(DeleteGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 163, "before": "public int advance(int target) {upto++;if (upto == docIDs.length) {return docID = NO_MORE_DOCS;}int inc = 10;int nextUpto = upto+10;int low;int high;while (true) {if (nextUpto >= docIDs.length) {low = nextUpto-inc;high = docIDs.length-1;break;}if (target <= docIDs[nextUpto]) {low = nextUpto-inc;high = nextUpto;break;}inc *= 2;nextUpto += inc;}while (true) {if (low > high) {upto = low;break;}int mid = (low + high) >>> 1;int cmp = docIDs[mid] - target;if (cmp < 0) {low = mid + 1;} else if (cmp > 0) {high = mid - 1;} else {upto = mid;break;}}if (upto == docIDs.length) {return docID = NO_MORE_DOCS;} else {return docID = docIDs[upto];}}", "after": "public override int Advance(int target){upto++;if (upto == docIDs.Length){return docID_Renamed = NO_MORE_DOCS;}int inc = 10;int nextUpto = upto + 10;int low;int high;while (true){if (nextUpto >= docIDs.Length){low = nextUpto - inc;high = docIDs.Length - 1;break;}if (target <= docIDs[nextUpto]){low = nextUpto - inc;high = nextUpto;break;}inc *= 2;nextUpto += inc;}while (true){if (low > high){upto = low;break;}int mid = (int) ((uint) (low + high) >> 1);int cmp = docIDs[mid] - target;if (cmp < 0){low = mid + 1;}else if (cmp > 0){high = mid - 1;}else{upto = mid;break;}}if (liveDocs != null){while (upto < docIDs.Length){if (liveDocs.Get(docIDs[upto])){break;}upto++;}}if (upto == docIDs.Length){return docID_Renamed = NO_MORE_DOCS;}else{return docID_Renamed = docIDs[upto];}}" }, { "index": 164, "before": "public void registerListener(final POIFSReaderListener listener) {if (listener == null) {throw new NullPointerException();}if (registryClosed) {throw new IllegalStateException();}registry.registerListener(listener);}", "after": "public void RegisterListener(POIFSReaderListener listener){if (listener == null){throw new NullReferenceException();}if (registryClosed){throw new InvalidOperationException();}registry.RegisterListener(listener);}" }, { "index": 165, "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 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": 166, "before": "public void visitTerminal(TerminalNode node) {System.out.println(\"consume \"+node.getSymbol()+\" rule \"+getRuleNames()[_ctx.getRuleIndex()]);}", "after": "public virtual void VisitTerminal(ITerminalNode node){ParserRuleContext parent = (ParserRuleContext)((IRuleNode)node.Parent).RuleContext;IToken token = node.Symbol;Output.WriteLine(\"consume \" + token + \" rule \" + this._enclosing.RuleNames[parent.RuleIndex]);}" }, { "index": 167, "before": "public TokenStream create(TokenStream input) {return new LatvianStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new LatvianStemFilter(input);}" }, { "index": 168, "before": "public ReplicationGroup increaseReplicaCount(IncreaseReplicaCountRequest request) {request = beforeClientExecution(request);return executeIncreaseReplicaCount(request);}", "after": "public virtual IncreaseReplicaCountResponse IncreaseReplicaCount(IncreaseReplicaCountRequest request){var options = new InvokeOptions();options.RequestMarshaller = IncreaseReplicaCountRequestMarshaller.Instance;options.ResponseUnmarshaller = IncreaseReplicaCountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 169, "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, 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": 170, "before": "public StopHyperParameterTuningJobResult stopHyperParameterTuningJob(StopHyperParameterTuningJobRequest request) {request = beforeClientExecution(request);return executeStopHyperParameterTuningJob(request);}", "after": "public virtual StopHyperParameterTuningJobResponse StopHyperParameterTuningJob(StopHyperParameterTuningJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopHyperParameterTuningJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopHyperParameterTuningJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 171, "before": "public ResetNetworkInterfaceAttributeResult resetNetworkInterfaceAttribute(ResetNetworkInterfaceAttributeRequest request) {request = beforeClientExecution(request);return executeResetNetworkInterfaceAttribute(request);}", "after": "public virtual ResetNetworkInterfaceAttributeResponse ResetNetworkInterfaceAttribute(ResetNetworkInterfaceAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetNetworkInterfaceAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetNetworkInterfaceAttributeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 172, "before": "public RevBlob lookupBlob(AnyObjectId id) {RevBlob c = (RevBlob) objects.get(id);if (c == null) {c = new RevBlob(id);objects.add(c);}return c;}", "after": "public virtual RevBlob LookupBlob(AnyObjectId id){RevBlob c = (RevBlob)objects.Get(id);if (c == null){c = new RevBlob(id);objects.Add(c);}return c;}" }, { "index": 173, "before": "public ListGroupMembershipsResult listGroupMemberships(ListGroupMembershipsRequest request) {request = beforeClientExecution(request);return executeListGroupMemberships(request);}", "after": "public virtual ListGroupMembershipsResponse ListGroupMemberships(ListGroupMembershipsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGroupMembershipsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGroupMembershipsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 174, "before": "public static void mkdir(File d, boolean skipExisting)throws IOException {if (!d.mkdir()) {if (skipExisting && d.isDirectory())return;throw new IOException(MessageFormat.format(JGitText.get().mkDirFailed, d.getAbsolutePath()));}}", "after": "public static void Mkdir(FilePath d, bool skipExisting){if (!d.Mkdir()){if (skipExisting && d.IsDirectory()){return;}throw new IOException(MessageFormat.Format(JGitText.Get().mkDirFailed, d.GetAbsolutePath()));}}" }, { "index": 175, "before": "public UpdateDetectorVersionMetadataResult updateDetectorVersionMetadata(UpdateDetectorVersionMetadataRequest request) {request = beforeClientExecution(request);return executeUpdateDetectorVersionMetadata(request);}", "after": "public virtual UpdateDetectorVersionMetadataResponse UpdateDetectorVersionMetadata(UpdateDetectorVersionMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDetectorVersionMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDetectorVersionMetadataResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 176, "before": "public void write(String str, int offset, int count) throws IOException {if ((offset | count) < 0 || offset > str.length() - count) {throw new StringIndexOutOfBoundsException(str, offset, count);}char[] buf = new char[count];str.getChars(offset, offset + count, buf, 0);synchronized (lock) {write(buf, 0, buf.length);}}", "after": "public virtual void write(string str, int offset, int count){if ((offset | count) < 0 || offset > str.Length - count){throw new java.lang.StringIndexOutOfBoundsException(str, offset, count);}char[] buf = new char[count];Sharpen.StringHelper.GetCharsForString(str, offset, offset + count, buf, 0);lock (@lock){write(buf, 0, buf.Length);}}" }, { "index": 177, "before": "public synchronized void ensureCapacity(int min) {super.ensureCapacity(min);}", "after": "public override void ensureCapacity(int min){lock (this){base.ensureCapacity(min);}}" }, { "index": 178, "before": "public DescribeRecipeResult describeRecipe(DescribeRecipeRequest request) {request = beforeClientExecution(request);return executeDescribeRecipe(request);}", "after": "public virtual DescribeRecipeResponse DescribeRecipe(DescribeRecipeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRecipeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRecipeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 179, "before": "public DisassociateRouteTableResult disassociateRouteTable(DisassociateRouteTableRequest request) {request = beforeClientExecution(request);return executeDisassociateRouteTable(request);}", "after": "public virtual DisassociateRouteTableResponse DisassociateRouteTable(DisassociateRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateRouteTableResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 180, "before": "public SetTopicAttributesRequest(String topicArn, String attributeName, String attributeValue) {setTopicArn(topicArn);setAttributeName(attributeName);setAttributeValue(attributeValue);}", "after": "public SetTopicAttributesRequest(string topicArn, string attributeName, string attributeValue){_topicArn = topicArn;_attributeName = attributeName;_attributeValue = attributeValue;}" }, { "index": 181, "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 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": 182, "before": "public StashCreateCommand setRef(String ref) {this.ref = ref;return this;}", "after": "public virtual NGit.Api.StashCreateCommand SetRef(string @ref){this.@ref = @ref;return this;}" }, { "index": 183, "before": "public FormulaRecord(RecordInputStream ris) {super(ris);long valueLongBits = ris.readLong();field_5_options = ris.readShort();specialCachedValue = FormulaSpecialCachedValue.create(valueLongBits);if (specialCachedValue == null) {field_4_value = Double.longBitsToDouble(valueLongBits);}field_6_zero = ris.readInt();int field_7_expression_len = ris.readShort(); int nBytesAvailable = ris.available();field_8_parsed_expr = Formula.read(field_7_expression_len, ris, nBytesAvailable);}", "after": "public FormulaRecord(RecordInputStream in1):base(in1){long valueLongBits = in1.ReadLong();field_5_options = in1.ReadShort();specialCachedValue = SpecialCachedValue.Create(valueLongBits);if (specialCachedValue == null) {field_4_value = BitConverter.Int64BitsToDouble(valueLongBits);}field_6_zero = in1.ReadInt();int field_7_expression_len = in1.ReadShort();field_8_parsed_expr = NPOI.SS.Formula.Formula.Read(field_7_expression_len, in1,in1.Available());}" }, { "index": 184, "before": "public SynonymQuery build() {Collections.sort(terms, Comparator.comparing(a -> a.term));return new SynonymQuery(terms.toArray(new TermAndBoost[0]), field);}", "after": "public override WAH8DocIdSet Build(){if (this.wordNum != -1){AddWord(wordNum, (byte)word);}return base.Build();}" }, { "index": 185, "before": "public PasswordRev4Record(RecordInputStream in) {field_1_password = in.readShort();}", "after": "public PasswordRev4Record(RecordInputStream in1){field_1_password = in1.ReadShort();}" }, { "index": 186, "before": "public boolean isReadOnly() {return false;}", "after": "public override bool isReadOnly(){return false;}" }, { "index": 187, "before": "public int preceding(int pos) {if (pos < start || pos > end) {throw new IllegalArgumentException(\"offset out of bounds\");} else if (pos == start) {current = start;return DONE;} else {return first();}}", "after": "public override int Preceding(int pos){if (pos < start || pos > end){throw new ArgumentException(\"offset out of bounds\");}else if (pos == start){current = start;return Done;}else{return First();}}" }, { "index": 188, "before": "public CodepageRecord(RecordInputStream in) {field_1_codepage = in.readShort();}", "after": "public CodepageRecord(RecordInputStream in1){field_1_codepage = in1.ReadShort();}" }, { "index": 189, "before": "public ApproveAssignmentResult approveAssignment(ApproveAssignmentRequest request) {request = beforeClientExecution(request);return executeApproveAssignment(request);}", "after": "public virtual ApproveAssignmentResponse ApproveAssignment(ApproveAssignmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = ApproveAssignmentRequestMarshaller.Instance;options.ResponseUnmarshaller = ApproveAssignmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 190, "before": "public DescribeVpnConnectionsResult describeVpnConnections() {return describeVpnConnections(new DescribeVpnConnectionsRequest());}", "after": "public virtual DescribeVpnConnectionsResponse DescribeVpnConnections(){return DescribeVpnConnections(new DescribeVpnConnectionsRequest());}" }, { "index": 191, "before": "public final V next() { return nextEntry().value; }", "after": "public override V next(){return this.nextEntry().value;}" }, { "index": 192, "before": "public DescribeInstanceHealthResult describeInstanceHealth(DescribeInstanceHealthRequest request) {request = beforeClientExecution(request);return executeDescribeInstanceHealth(request);}", "after": "public virtual DescribeInstanceHealthResponse DescribeInstanceHealth(DescribeInstanceHealthRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInstanceHealthRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInstanceHealthResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 193, "before": "public static void register(TransportProtocol proto) {protocols.add(0, new WeakReference<>(proto));}", "after": "public static void Register(TransportProtocol proto){protocols.Add(0, new JavaWeakReference(proto));}" }, { "index": 194, "before": "public static char[] copyOfRange(char[] 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);char[] result = new char[resultLength];System.arraycopy(original, start, result, 0, copyLength);return result;}", "after": "public static char[] copyOfRange(char[] 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);char[] result = new char[resultLength];System.Array.Copy(original, start, result, 0, copyLength);return result;}" }, { "index": 195, "before": "public static void fill(int[] array, int value) {for (int i = 0; i < array.length; i++) {array[i] = value;}}", "after": "public static void fill(int[] array, int value){{for (int i = 0; i < array.Length; i++){array[i] = value;}}}" }, { "index": 196, "before": "public Class peekNextClass() {if(!hasNext()) {return null;}return _list.get(_nextIndex).getClass();}", "after": "public Type PeekNextClass(){if (_nextIndex >= _list.Count){return null;}return _list[_nextIndex].GetType();}" }, { "index": 197, "before": "public static char[] copyOf(char[] original, int newLength) {if (newLength < 0) {throw new NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}", "after": "public static char[] copyOf(char[] original, int newLength){if (newLength < 0){throw new java.lang.NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}" }, { "index": 198, "before": "public DeleteRelationalDatabaseResult deleteRelationalDatabase(DeleteRelationalDatabaseRequest request) {request = beforeClientExecution(request);return executeDeleteRelationalDatabase(request);}", "after": "public virtual DeleteRelationalDatabaseResponse DeleteRelationalDatabase(DeleteRelationalDatabaseRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRelationalDatabaseRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRelationalDatabaseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 199, "before": "public boolean equals(Object obj) {if (this == obj) {return true;}if (obj == null) {return false;}if (getClass() != obj.getClass()) {return false;}WeightedPhraseInfo other = (WeightedPhraseInfo) obj;if (getStartOffset() != other.getStartOffset()) {return false;}if (getEndOffset() != other.getEndOffset()) {return false;}if (getBoost() != other.getBoost()) {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;}WeightedPhraseInfo other = (WeightedPhraseInfo)obj;if (StartOffset != other.StartOffset){return false;}if (EndOffset != other.EndOffset){return false;}if (Boost != other.Boost){return false;}return true;}" }, { "index": 200, "before": "public boolean hasNext() {return nextBlock != POIFSConstants.END_OF_CHAIN;}", "after": "public bool HasNext(){if (nextBlock == POIFSConstants.END_OF_CHAIN){return false;}return true;}" }, { "index": 201, "before": "public void write(char b) {if (len >= buf.length) {resize(len +1);}unsafeWrite(b);}", "after": "public virtual void Write(char b){if (m_len >= m_buf.Length){Resize(m_len + 1);}UnsafeWrite(b);}" }, { "index": 202, "before": "public void serialize(LittleEndianOutput out) {futureHeader.serialize(out);out.writeShort(isf_sharedFeatureType);out.writeByte(reserved);out.writeInt((int)cbHdrData);out.write(rgbHdrData);}", "after": "public override void Serialize(ILittleEndianOutput out1){futureHeader.Serialize(out1);out1.WriteShort(isf_sharedFeatureType);out1.WriteByte(reserved);out1.WriteInt((int)cbHdrData);out1.Write(rgbHdrData);}" }, { "index": 203, "before": "public ListUserHierarchyGroupsResult listUserHierarchyGroups(ListUserHierarchyGroupsRequest request) {request = beforeClientExecution(request);return executeListUserHierarchyGroups(request);}", "after": "public virtual ListUserHierarchyGroupsResponse ListUserHierarchyGroups(ListUserHierarchyGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListUserHierarchyGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListUserHierarchyGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 204, "before": "public GetTopicAttributesRequest(String topicArn) {setTopicArn(topicArn);}", "after": "public GetTopicAttributesRequest(string topicArn){_topicArn = topicArn;}" }, { "index": 205, "before": "public CreateTrafficPolicyVersionResult createTrafficPolicyVersion(CreateTrafficPolicyVersionRequest request) {request = beforeClientExecution(request);return executeCreateTrafficPolicyVersion(request);}", "after": "public virtual CreateTrafficPolicyVersionResponse CreateTrafficPolicyVersion(CreateTrafficPolicyVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTrafficPolicyVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTrafficPolicyVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 206, "before": "@Override public boolean equals(Object object) {if (this == object) {return true;}if (object instanceof Map.Entry) {Map.Entry entry = (Map.Entry) object;return (key == null ? entry.getKey() == null : key.equals(entry.getKey()))&& (value == null ? entry.getValue() == null : value.equals(entry.getValue()));}return false;}", "after": "public override bool Equals(object @object){if (this == @object){return true;}if (@object is java.util.MapClass.Entry){java.util.MapClass.Entry entry = (java.util.MapClass.Entry)@object;return ((object)key == null ? entry.getKey() == null : key.Equals(entry.getKey())) && ((object)value == null ? entry.getValue() == null : value.Equals(entry.getValue()));}return false;}" }, { "index": 207, "before": "public ListResourcesResult listResources(ListResourcesRequest request) {request = beforeClientExecution(request);return executeListResources(request);}", "after": "public virtual ListResourcesResponse ListResources(ListResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListResourcesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 208, "before": "public final V getAndSet(V newValue) {while (true) {V x = get();if (compareAndSet(x, newValue))return x;}}", "after": "public V getAndSet(V newValue){while(true) {V x = get ();if (compareAndSet(x, newValue))return x;}}" }, { "index": 209, "before": "public FeatHdrRecord() {futureHeader = new FtrHeader();futureHeader.setRecordType(sid);}", "after": "public FeatHdrRecord(){futureHeader = new FtrHeader();futureHeader.RecordType = (sid);}" }, { "index": 210, "before": "public DisassociatePhoneNumbersFromVoiceConnectorResult disassociatePhoneNumbersFromVoiceConnector(DisassociatePhoneNumbersFromVoiceConnectorRequest request) {request = beforeClientExecution(request);return executeDisassociatePhoneNumbersFromVoiceConnector(request);}", "after": "public virtual DisassociatePhoneNumbersFromVoiceConnectorResponse DisassociatePhoneNumbersFromVoiceConnector(DisassociatePhoneNumbersFromVoiceConnectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociatePhoneNumbersFromVoiceConnectorRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociatePhoneNumbersFromVoiceConnectorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 211, "before": "public ObjectId idFor(int type, byte[] data) {return idFor(type, data, 0, data.length);}", "after": "public virtual ObjectId IdFor(int type, byte[] data){return IdFor(type, data, 0, data.Length);}" }, { "index": 212, "before": "public void removeParseListener(ParseTreeListener listener) {if (_parseListeners != null) {if (_parseListeners.remove(listener)) {if (_parseListeners.isEmpty()) {_parseListeners = null;}}}}", "after": "public virtual void RemoveParseListener(IParseTreeListener listener){if (_parseListeners != null){if (_parseListeners.Remove(listener)){if (_parseListeners.Count == 0){_parseListeners = null;}}}}" }, { "index": 213, "before": "public AxisRecord(RecordInputStream in) {field_1_axisType = in.readShort();field_2_reserved1 = in.readInt();field_3_reserved2 = in.readInt();field_4_reserved3 = in.readInt();field_5_reserved4 = in.readInt();}", "after": "public AxisRecord(RecordInputStream in1){field_1_axisType = in1.ReadShort();field_2_reserved1 = in1.ReadInt();field_3_reserved2 = in1.ReadInt();field_4_reserved3 = in1.ReadInt();field_5_reserved4 = in1.ReadInt();}" }, { "index": 214, "before": "public static double evaluate(double[] v) throws EvaluationException {if (v.length < 2) {throw new EvaluationException(ErrorEval.NA);}int[] counts = new int[v.length];Arrays.fill(counts, 1);for (int i = 0, iSize = v.length; i < iSize; i++) {for (int j = i + 1, jSize = v.length; j < jSize; j++) {if (v[i] == v[j])counts[i]++;}}double maxv = 0;int maxc = 0;for (int i = 0, iSize = counts.length; i < iSize; i++) {if (counts[i] > maxc) {maxv = v[i];maxc = counts[i];}}if (maxc > 1) {return maxv;}throw new EvaluationException(ErrorEval.NA);}", "after": "public static double Evaluate(double[] v){if (v.Length < 2){throw new EvaluationException(ErrorEval.NA);}int[] counts = new int[v.Length];Arrays.Fill(counts, 1);for (int i = 0, iSize = v.Length; i < iSize; i++){for (int j = i + 1, jSize = v.Length; j < jSize; j++){if (v[i] == v[j])counts[i]++;}}double maxv = 0;int maxc = 0;for (int i = 0, iSize = counts.Length; i < iSize; i++){if (counts[i] > maxc){maxv = v[i];maxc = counts[i];}}if (maxc > 1){return maxv;}throw new EvaluationException(ErrorEval.NA);}" }, { "index": 215, "before": "public void addFacetCount(BytesRef facetValue, int count) {if (count < currentMin) {return;}FacetEntry facetEntry = new FacetEntry(facetValue, count);if (facetEntries.size() == maxSize) {if (facetEntries.higher(facetEntry) == null) {return;}facetEntries.pollLast();}facetEntries.add(facetEntry);if (facetEntries.size() == maxSize) {currentMin = facetEntries.last().count;}}", "after": "public virtual void AddFacetCount(BytesRef facetValue, int count){if (count < currentMin){return;}FacetEntry facetEntry = new FacetEntry(facetValue, count);if (facetEntries.Count == maxSize){if (!facetEntries.TryGetSuccessor(facetEntry, out FacetEntry _)){return;}var max = facetEntries.Max;if (max != null)facetEntries.Remove(max);}facetEntries.Add(facetEntry);if (facetEntries.Count == maxSize){var max = facetEntries.Max;currentMin = max != null ? max.Count : 0;}}" }, { "index": 216, "before": "public String toString(){StringBuilder buffer = new StringBuilder();String nl = System.getProperty(\"line.separator\");buffer.append(\"[ftGmo]\" + nl);buffer.append(\" reserved = \").append(HexDump.toHex(reserved)).append(nl);buffer.append(\"[/ftGmo]\" + nl);return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();String nl = Environment.NewLine;buffer.Append(\"[ftGmo]\" + nl);buffer.Append(\" reserved = \").Append(HexDump.ToHex(reserved)).Append(nl);buffer.Append(\"[/ftGmo]\" + nl);return buffer.ToString();}" }, { "index": 217, "before": "public String toString() {return getMode().toString() + \" \" + getName(); }", "after": "public override string ToString(){return GetMode().ToString() + \" \" + GetName();}" }, { "index": 218, "before": "public CharVector(int capacity) {if (capacity > 0) {blockSize = capacity;} else {blockSize = DEFAULT_BLOCK_SIZE;}array = new char[blockSize];n = 0;}", "after": "public CharVector(int capacity){if (capacity > 0){blockSize = capacity;}else{blockSize = DEFAULT_BLOCK_SIZE;}array = new char[blockSize];n = 0;}" }, { "index": 219, "before": "public DescribeAccountLimitsResult describeAccountLimits(DescribeAccountLimitsRequest request) {request = beforeClientExecution(request);return executeDescribeAccountLimits(request);}", "after": "public virtual DescribeAccountLimitsResponse DescribeAccountLimits(DescribeAccountLimitsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAccountLimitsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAccountLimitsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 220, "before": "public void removeBuiltinRecord(byte name, int sheetIndex) {linkTable.removeBuiltinRecord(name, sheetIndex);}", "after": "public void RemoveBuiltinRecord(byte name, int sheetIndex){linkTable.RemoveBuiltinRecord(name, sheetIndex);}" }, { "index": 221, "before": "public CreateSecurityGroupResult createSecurityGroup(CreateSecurityGroupRequest request) {request = beforeClientExecution(request);return executeCreateSecurityGroup(request);}", "after": "public virtual CreateSecurityGroupResponse CreateSecurityGroup(CreateSecurityGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSecurityGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSecurityGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 222, "before": "public boolean equals(Object other) {return sameClassAs(other) &&equalsTo(getClass().cast(other));}", "after": "public override bool Equals(object o){if (!(o is DisjunctionMaxQuery)){return false;}DisjunctionMaxQuery other = (DisjunctionMaxQuery)o;return this.Boost == other.Boost&& this.tieBreakerMultiplier == other.tieBreakerMultiplier&& this.disjuncts.Equals(other.disjuncts);}" }, { "index": 223, "before": "public GetObjectInformationResult getObjectInformation(GetObjectInformationRequest request) {request = beforeClientExecution(request);return executeGetObjectInformation(request);}", "after": "public virtual GetObjectInformationResponse GetObjectInformation(GetObjectInformationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetObjectInformationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetObjectInformationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 224, "before": "public StringBuffer append(long l) {IntegralToString.appendLong(this, l);return this;}", "after": "public java.lang.StringBuffer append(bool b){return append(b ? \"true\" : \"false\");}" }, { "index": 225, "before": "public GetIntegrationResponsesResult getIntegrationResponses(GetIntegrationResponsesRequest request) {request = beforeClientExecution(request);return executeGetIntegrationResponses(request);}", "after": "public virtual GetIntegrationResponsesResponse GetIntegrationResponses(GetIntegrationResponsesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIntegrationResponsesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIntegrationResponsesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 226, "before": "public ListDeploymentConfigsResult listDeploymentConfigs() {return listDeploymentConfigs(new ListDeploymentConfigsRequest());}", "after": "public virtual ListDeploymentConfigsResponse ListDeploymentConfigs(){return ListDeploymentConfigs(new ListDeploymentConfigsRequest());}" }, { "index": 227, "before": "public CellRangeAddress remove(int rangeIndex) {if (_list.isEmpty()) {throw new RuntimeException(\"List is empty\");}if (rangeIndex < 0 || rangeIndex >= _list.size()) {throw new RuntimeException(\"Range index (\" + rangeIndex+ \") is outside allowable range (0..\" + (_list.size()-1) + \")\");}return _list.remove(rangeIndex);}", "after": "public CellRangeAddress Remove(int rangeIndex){if (_list.Count == 0){throw new Exception(\"List is empty\");}if (rangeIndex < 0 || rangeIndex >= _list.Count){throw new Exception(\"Range index (\" + rangeIndex+ \") is outside allowable range (0..\" + (_list.Count - 1) + \")\");}CellRangeAddress cra = (CellRangeAddress)_list[rangeIndex];_list.Remove(rangeIndex);return cra;}" }, { "index": 228, "before": "public DimConfig getDimConfig(String dimName) {DimConfig ft = fieldTypes.get(dimName);if (ft == null) {ft = getDefaultDimConfig();}return ft;}", "after": "public virtual DimConfig GetDimConfig(string dimName){lock (this){DimConfig ft;if (!fieldTypes.TryGetValue(dimName, out ft)){ft = DefaultDimConfig;}return ft;}}" }, { "index": 229, "before": "public DescribeStackResourceDriftsResult describeStackResourceDrifts(DescribeStackResourceDriftsRequest request) {request = beforeClientExecution(request);return executeDescribeStackResourceDrifts(request);}", "after": "public virtual DescribeStackResourceDriftsResponse DescribeStackResourceDrifts(DescribeStackResourceDriftsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStackResourceDriftsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStackResourceDriftsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 230, "before": "public void setParams(String params) {if (!supportsParams()) {throw new UnsupportedOperationException(getName()+\" does not support command line parameters.\");}this.params = params;}", "after": "public virtual void SetParams(string @params){if (!SupportsParams){throw new NotSupportedException(GetName() + \" does not support command line parameters.\");}this.m_params = @params;}" }, { "index": 231, "before": "public DescribeRepositoryAssociationResult describeRepositoryAssociation(DescribeRepositoryAssociationRequest request) {request = beforeClientExecution(request);return executeDescribeRepositoryAssociation(request);}", "after": "public virtual DescribeRepositoryAssociationResponse DescribeRepositoryAssociation(DescribeRepositoryAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRepositoryAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRepositoryAssociationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 232, "before": "public synchronized Enumeration elements() {return new ValueEnumeration();}", "after": "public override java.util.Enumeration elements(){lock (this){return new java.util.Hashtable.ValueEnumeration(this);}}" }, { "index": 233, "before": "public void set(int index, long value) {final int o = index >>> 4;final int b = index & 15;final int shift = b << 2;blocks[o] = (blocks[o] & ~(15L << shift)) | (value << shift);}", "after": "public override void Set(int index, long value){int o = (int)((uint)index >> 4);int b = index & 15;int shift = b << 2;blocks[o] = (blocks[o] & ~(15L << shift)) | (value << shift);}" }, { "index": 234, "before": "public HTMLStripCharFilterFactory(Map args) {super(args);escapedTags = getSet(args, \"escapedTags\");if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public HTMLStripCharFilterFactory(IDictionary args) : base(args){escapedTags = GetSet(args, \"escapedTags\");if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 235, "before": "public int getEntryPathLength() {return pathLen;}", "after": "public virtual int GetEntryPathLength(){return pathLen;}" }, { "index": 236, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_option_flag);out.writeShort(field_2_ixals);out.writeShort(field_3_not_used);out.writeByte(field_4_name.length());StringUtil.writeUnicodeStringFlagAndData(out, field_4_name);if(!isOLELink() && !isStdDocumentNameIdentifier()){if(isAutomaticLink()){if(_ddeValues != null) {out.writeByte(_nColumns-1);out.writeShort(_nRows-1);ConstantValueParser.encode(out, _ddeValues);}} else {field_5_name_definition.serialize(out);}}}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_option_flag);out1.WriteShort(field_2_ixals);out1.WriteShort(field_3_not_used);out1.WriteByte(field_4_name.Length);StringUtil.WriteUnicodeStringFlagAndData(out1, field_4_name);if (!IsOLELink && !IsStdDocumentNameIdentifier){if (IsAutomaticLink){if (_ddeValues != null){out1.WriteByte(_nColumns - 1);out1.WriteShort(_nRows - 1);ConstantValueParser.Encode(out1, _ddeValues);}}else{field_5_name_definition.Serialize(out1);}}}" }, { "index": 237, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[REFRESHALL]\\n\");buffer.append(\" .options = \").append(HexDump.shortToHex(_options)).append(\"\\n\");buffer.append(\"[/REFRESHALL]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[REFRESHALL]\\n\");buffer.Append(\" .refreshall = \").Append(RefreshAll).Append(\"\\n\");buffer.Append(\"[/REFRESHALL]\\n\");return buffer.ToString();}" }, { "index": 238, "before": "public ContinueDeploymentResult continueDeployment(ContinueDeploymentRequest request) {request = beforeClientExecution(request);return executeContinueDeployment(request);}", "after": "public virtual ContinueDeploymentResponse ContinueDeployment(ContinueDeploymentRequest request){var options = new InvokeOptions();options.RequestMarshaller = ContinueDeploymentRequestMarshaller.Instance;options.ResponseUnmarshaller = ContinueDeploymentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 239, "before": "public void set(int index, long value) {final int o = index / 3;final int b = index % 3;final int shift = b * 21;blocks[o] = (blocks[o] & ~(2097151L << shift)) | (value << shift);}", "after": "public override void Set(int index, long value){int o = index / 3;int b = index % 3;int shift = b * 21;blocks[o] = (blocks[o] & ~(2097151L << shift)) | (value << shift);}" }, { "index": 240, "before": "public long next() throws IOException {if (ord == valueCount) {throw new EOFException();}if (off == blockSize) {refill();}final long value = values[off++];++ord;return value;}", "after": "public long Next(){if (ord == valueCount){throw new System.IO.EndOfStreamException();}if (off == blockSize){Refill();}long value = values[off++];++ord;return value;}" }, { "index": 241, "before": "public static final RevFilter between(Date since, Date until) {return between(since.getTime(), until.getTime());}", "after": "public static RevFilter Between(DateTime since, DateTime until){return Between(since.GetTime(), until.GetTime());}" }, { "index": 242, "before": "public DeleteVaultResult deleteVault(DeleteVaultRequest request) {request = beforeClientExecution(request);return executeDeleteVault(request);}", "after": "public virtual DeleteVaultResponse DeleteVault(DeleteVaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVaultRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVaultResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 243, "before": "public final void reset() {it = cachedStates.getStates();}", "after": "public override sealed void Reset(){it = cachedStates.GetEnumerator();}" }, { "index": 244, "before": "public void setDetachingSymbolicRef() {detachingSymbolicRef = true;}", "after": "public virtual void SetDetachingSymbolicRef(){detachingSymbolicRef = true;}" }, { "index": 245, "before": "public ModifyIdentityIdFormatResult modifyIdentityIdFormat(ModifyIdentityIdFormatRequest request) {request = beforeClientExecution(request);return executeModifyIdentityIdFormat(request);}", "after": "public virtual ModifyIdentityIdFormatResponse ModifyIdentityIdFormat(ModifyIdentityIdFormatRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyIdentityIdFormatRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyIdentityIdFormatResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 246, "before": "public void addException(String word, ArrayList hyphenatedword) {stoplist.put(word, hyphenatedword);}", "after": "public virtual void AddException(string word, IList hyphenatedword){m_stoplist[word] = hyphenatedword;}" }, { "index": 247, "before": "public GreekStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public GreekStemFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 248, "before": "public RegisterTypeResult registerType(RegisterTypeRequest request) {request = beforeClientExecution(request);return executeRegisterType(request);}", "after": "public virtual RegisterTypeResponse RegisterType(RegisterTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterTypeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 249, "before": "public GetAccessControlEffectResult getAccessControlEffect(GetAccessControlEffectRequest request) {request = beforeClientExecution(request);return executeGetAccessControlEffect(request);}", "after": "public virtual GetAccessControlEffectResponse GetAccessControlEffect(GetAccessControlEffectRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAccessControlEffectRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAccessControlEffectResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 250, "before": "public HSSFShapeGroup createGroup(HSSFChildAnchor anchor) {HSSFShapeGroup group = new HSSFShapeGroup(this, anchor);group.setParent(this);group.setAnchor(anchor);shapes.add(group);onCreate(group);return group;}", "after": "public HSSFShapeGroup CreateGroup(HSSFChildAnchor anchor){HSSFShapeGroup group = new HSSFShapeGroup(this, anchor);group.Parent = this;group.Anchor = anchor;shapes.Add(group);OnCreate(group);return group;}" }, { "index": 251, "before": "public String toExternalString() {final StringBuilder r = new StringBuilder();appendSanitized(r, getName());r.append(\" <\"); appendSanitized(r, getEmailAddress());r.append(\"> \"); r.append(when / 1000);r.append(' ');appendTimezone(r, tzOffset);return r.toString();}", "after": "public virtual string ToExternalString(){StringBuilder r = new StringBuilder();r.Append(GetName());r.Append(\" <\");r.Append(GetEmailAddress());r.Append(\"> \");r.Append(when / 1000);r.Append(' ');AppendTimezone(r);return r.ToString();}" }, { "index": 252, "before": "public static FontCharset valueOf(int value){if(value >= _table.length)return null;return _table[value];}", "after": "public static FontCharset ValueOf(int value){if(value>=0&&value<=255)return _table[value];return null;}" }, { "index": 253, "before": "public NLPSentenceDetectorOp() {sentenceSplitter = null;}", "after": "public NLPSentenceDetectorOp(){sentenceSplitter = null;}" }, { "index": 254, "before": "public String resource() {return this.resource;}", "after": "public override void Validate(){base.Validate();}" }, { "index": 255, "before": "public QueryScorer(Query query, String field) {init(query, field, null, true);}", "after": "public QueryScorer(Query query, string field){Init(query, field, null, true);}" }, { "index": 256, "before": "public ActiveTrustedSigners(java.util.List items) {setItems(items);}", "after": "public ActiveTrustedSigners(List items){_items = items;}" }, { "index": 257, "before": "public final String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName());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(FormatReferenceAsString());sb.Append(\"]\");return sb.ToString();}" }, { "index": 258, "before": "public UpdateNodegroupConfigResult updateNodegroupConfig(UpdateNodegroupConfigRequest request) {request = beforeClientExecution(request);return executeUpdateNodegroupConfig(request);}", "after": "public virtual UpdateNodegroupConfigResponse UpdateNodegroupConfig(UpdateNodegroupConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateNodegroupConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateNodegroupConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 259, "before": "public void fill(int fromIndex, int toIndex, long val) {assert val <= maxValue(getBitsPerValue());assert fromIndex <= toIndex;for (int i = fromIndex; i < toIndex; ++i) {set(i, val);}}", "after": "public virtual void Fill(int fromIndex, int toIndex, long val){Debug.Assert(val <= MaxValue(BitsPerValue));Debug.Assert(fromIndex <= toIndex);for (int i = fromIndex; i < toIndex; ++i){Set(i, val);}}" }, { "index": 260, "before": "public ListTrainingJobsResult listTrainingJobs(ListTrainingJobsRequest request) {request = beforeClientExecution(request);return executeListTrainingJobs(request);}", "after": "public virtual ListTrainingJobsResponse ListTrainingJobs(ListTrainingJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTrainingJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTrainingJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 261, "before": "public DescribeProfilingGroupResult describeProfilingGroup(DescribeProfilingGroupRequest request) {request = beforeClientExecution(request);return executeDescribeProfilingGroup(request);}", "after": "public virtual DescribeProfilingGroupResponse DescribeProfilingGroup(DescribeProfilingGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeProfilingGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeProfilingGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 262, "before": "public IgnoreNode(List rules) {this.rules = rules;}", "after": "public IgnoreNode(IList rules){this.rules = rules;}" }, { "index": 263, "before": "public static void fill(char[] array, char value) {for (int i = 0; i < array.length; i++) {array[i] = value;}}", "after": "public static void fill(char[] array, char value){{for (int i = 0; i < array.Length; i++){array[i] = value;}}}" }, { "index": 264, "before": "public GetTransitGatewayMulticastDomainAssociationsResult getTransitGatewayMulticastDomainAssociations(GetTransitGatewayMulticastDomainAssociationsRequest request) {request = beforeClientExecution(request);return executeGetTransitGatewayMulticastDomainAssociations(request);}", "after": "public virtual GetTransitGatewayMulticastDomainAssociationsResponse GetTransitGatewayMulticastDomainAssociations(GetTransitGatewayMulticastDomainAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTransitGatewayMulticastDomainAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTransitGatewayMulticastDomainAssociationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 265, "before": "public LongBuffer compact() {System.arraycopy(backingArray, position + offset, backingArray, offset, remaining());position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}", "after": "public override java.nio.LongBuffer compact(){System.Array.Copy(backingArray, _position + offset, backingArray, offset, remaining());_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}" }, { "index": 266, "before": "public GetCelebrityInfoResult getCelebrityInfo(GetCelebrityInfoRequest request) {request = beforeClientExecution(request);return executeGetCelebrityInfo(request);}", "after": "public virtual GetCelebrityInfoResponse GetCelebrityInfo(GetCelebrityInfoRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCelebrityInfoRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCelebrityInfoResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 267, "before": "public GetTranscriptResult getTranscript(GetTranscriptRequest request) {request = beforeClientExecution(request);return executeGetTranscript(request);}", "after": "public virtual GetTranscriptResponse GetTranscript(GetTranscriptRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTranscriptRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTranscriptResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 268, "before": "public DeleteCacheParameterGroupResult deleteCacheParameterGroup(DeleteCacheParameterGroupRequest request) {request = beforeClientExecution(request);return executeDeleteCacheParameterGroup(request);}", "after": "public virtual DeleteCacheParameterGroupResponse DeleteCacheParameterGroup(DeleteCacheParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCacheParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCacheParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 269, "before": "public DescribeTagsRequest(java.util.List filters) {setFilters(filters);}", "after": "public DescribeTagsRequest(List filters){_filters = filters;}" }, { "index": 270, "before": "public CreateCustomMetadataResult createCustomMetadata(CreateCustomMetadataRequest request) {request = beforeClientExecution(request);return executeCreateCustomMetadata(request);}", "after": "public virtual CreateCustomMetadataResponse CreateCustomMetadata(CreateCustomMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCustomMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCustomMetadataResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 271, "before": "public Cluster resumeCluster(ResumeClusterRequest request) {request = beforeClientExecution(request);return executeResumeCluster(request);}", "after": "public virtual ResumeClusterResponse ResumeCluster(ResumeClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResumeClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = ResumeClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 272, "before": "public DescribeMovingAddressesResult describeMovingAddresses(DescribeMovingAddressesRequest request) {request = beforeClientExecution(request);return executeDescribeMovingAddresses(request);}", "after": "public virtual DescribeMovingAddressesResponse DescribeMovingAddresses(DescribeMovingAddressesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeMovingAddressesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeMovingAddressesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 273, "before": "public SearchAddressBooksResult searchAddressBooks(SearchAddressBooksRequest request) {request = beforeClientExecution(request);return executeSearchAddressBooks(request);}", "after": "public virtual SearchAddressBooksResponse SearchAddressBooks(SearchAddressBooksRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchAddressBooksRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchAddressBooksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 274, "before": "public UpdateDomainToDomainGroupRequest() {super(\"Domain\", \"2018-01-29\", \"UpdateDomainToDomainGroup\");setMethod(MethodType.POST);}", "after": "public UpdateDomainToDomainGroupRequest(): base(\"Domain\", \"2018-01-29\", \"UpdateDomainToDomainGroup\"){Method = MethodType.POST;}" }, { "index": 275, "before": "public void add(RevCommit c) {Block b = tail;if (b == null) {b = free.newBlock();b.add(c);head = b;tail = b;return;} else if (b.isFull()) {b = free.newBlock();tail.next = b;tail = b;}b.add(c);}", "after": "public override void Add(RevCommit c){BlockRevQueue.Block b = tail;if (b == null){b = free.NewBlock();b.Add(c);head = b;tail = b;return;}else{if (b.IsFull()){b = free.NewBlock();tail.next = b;tail = b;}}b.Add(c);}" }, { "index": 276, "before": "public FloatBuffer put(int index, float c) {checkIndex(index);byteBuffer.putFloat(index * SizeOf.FLOAT, c);return this;}", "after": "public override java.nio.FloatBuffer put(int index, float c){checkIndex(index);byteBuffer.putFloat(index * libcore.io.SizeOf.FLOAT, c);return this;}" }, { "index": 277, "before": "public void flush() throws IOException {try {beginWrite();dst.flush();} catch (InterruptedIOException e) {throw writeTimedOut(e);} finally {endWrite();}}", "after": "public override void Flush(){try{BeginWrite();dst.Flush();}catch (ThreadInterruptedException){throw WriteTimedOut();}finally{EndWrite();}}" }, { "index": 278, "before": "public Set getModified() {return Collections.unmodifiableSet(diff.getModified());}", "after": "public virtual ICollection GetModified(){return Sharpen.Collections.UnmodifiableSet(diff.GetModified());}" }, { "index": 279, "before": "public LongsRef next(int count) throws IOException {assert count > 0;if (ord == valueCount) {throw new EOFException();}if (off == blockSize) {refill();}count = Math.min(count, blockSize - off);count = (int) Math.min(count, valueCount - ord);valuesRef.offset = off;valuesRef.length = count;off += count;ord += count;return valuesRef;}", "after": "public Int64sRef Next(int count){Debug.Assert(count > 0);if (ord == valueCount){throw new System.IO.EndOfStreamException();}if (off == blockSize){Refill();}count = Math.Min(count, blockSize - off);count = (int)Math.Min(count, valueCount - ord);valuesRef.Offset = off;valuesRef.Length = count;off += count;ord += count;return valuesRef;}" }, { "index": 280, "before": "public ByteBuffer slice() {return new ReadOnlyHeapByteBuffer(backingArray, remaining(), offset + position);}", "after": "public override java.nio.ByteBuffer slice(){return new java.nio.ReadOnlyHeapByteBuffer(backingArray, remaining(), offset + _position);}" }, { "index": 281, "before": "public final boolean isEmpty() {return beginA == endA && beginB == endB;}", "after": "public bool IsEmpty(){return beginA == endA && beginB == endB;}" }, { "index": 282, "before": "public static final int commitMessage(byte[] b, int ptr) {final int sz = b.length;if (ptr == 0)ptr += 46; while (ptr < sz && b[ptr] == 'p')ptr += 48; return tagMessage(b, ptr);}", "after": "public static int CommitMessage(byte[] b, int ptr){int sz = b.Length;if (ptr == 0){ptr += 46;}while (ptr < sz && b[ptr] == 'p'){ptr += 48;}return TagMessage(b, ptr);}" }, { "index": 283, "before": "public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {if (args.length != 2) {return ErrorEval.VALUE_INVALID;}try {double startDateAsNumber = getValue(args[0]);int offsetInMonthAsNumber = (int) getValue(args[1]);Date startDate = DateUtil.getJavaDate(startDateAsNumber);if (startDate == null) {return ErrorEval.VALUE_INVALID;}Calendar calendar = LocaleUtil.getLocaleCalendar();calendar.setTime(startDate);calendar.add(Calendar.MONTH, offsetInMonthAsNumber);return new NumberEval(DateUtil.getExcelDate(calendar.getTime()));} catch (EvaluationException e) {return e.getErrorEval();}}", "after": "public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){double result;if (args.Length != 2){return ErrorEval.VALUE_INVALID;}try{double startDateAsNumber = GetValue(args[0]);int offsetInMonthAsNumber = (int)GetValue(args[1]);DateTime startDate = DateUtil.GetJavaDate(startDateAsNumber);DateTime resultDate = startDate.AddMonths(offsetInMonthAsNumber);result = DateUtil.GetExcelDate(resultDate);NumericFunction.CheckValue(result);return new NumberEval(result);}catch (EvaluationException e){return e.GetErrorEval();}}" }, { "index": 284, "before": "public DeleteSuggesterResult deleteSuggester(DeleteSuggesterRequest request) {request = beforeClientExecution(request);return executeDeleteSuggester(request);}", "after": "public virtual DeleteSuggesterResponse DeleteSuggester(DeleteSuggesterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSuggesterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSuggesterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 285, "before": "public CreatePipelineResult createPipeline(CreatePipelineRequest request) {request = beforeClientExecution(request);return executeCreatePipeline(request);}", "after": "public virtual CreatePipelineResponse CreatePipeline(CreatePipelineRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePipelineRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePipelineResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 286, "before": "public StopDeliveryStreamEncryptionResult stopDeliveryStreamEncryption(StopDeliveryStreamEncryptionRequest request) {request = beforeClientExecution(request);return executeStopDeliveryStreamEncryption(request);}", "after": "public virtual StopDeliveryStreamEncryptionResponse StopDeliveryStreamEncryption(StopDeliveryStreamEncryptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopDeliveryStreamEncryptionRequestMarshaller.Instance;options.ResponseUnmarshaller = StopDeliveryStreamEncryptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 287, "before": "public DeleteApplicationSnapshotResult deleteApplicationSnapshot(DeleteApplicationSnapshotRequest request) {request = beforeClientExecution(request);return executeDeleteApplicationSnapshot(request);}", "after": "public virtual DeleteApplicationSnapshotResponse DeleteApplicationSnapshot(DeleteApplicationSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApplicationSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApplicationSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 288, "before": "public ApplyCommand apply() {return new ApplyCommand(repo);}", "after": "public virtual ApplyCommand Apply(){return new ApplyCommand(repo);}" }, { "index": 289, "before": "public RebootCacheClusterRequest(String cacheClusterId, java.util.List cacheNodeIdsToReboot) {setCacheClusterId(cacheClusterId);setCacheNodeIdsToReboot(cacheNodeIdsToReboot);}", "after": "public RebootCacheClusterRequest(string cacheClusterId, List cacheNodeIdsToReboot){_cacheClusterId = cacheClusterId;_cacheNodeIdsToReboot = cacheNodeIdsToReboot;}" }, { "index": 290, "before": "public ModifyCacheClusterRequest(String cacheClusterId) {setCacheClusterId(cacheClusterId);}", "after": "public ModifyCacheClusterRequest(string cacheClusterId){_cacheClusterId = cacheClusterId;}" }, { "index": 291, "before": "public boolean equals(Object obj) {if (this == obj) return true;if (obj == null) return false;if (getClass() != obj.getClass()) return false;ScoreTerm other = (ScoreTerm) obj;if (term == null) {if (other.term != null) return false;} else if (!term.bytesEquals(other.term)) 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;}ScoreTerm other = (ScoreTerm)obj;if (Term == null){if (other.Term != null){return false;}}else if (!Term.BytesEquals(other.Term)){return false;}return true;}" }, { "index": 292, "before": "public AssociateTransitGatewayMulticastDomainResult associateTransitGatewayMulticastDomain(AssociateTransitGatewayMulticastDomainRequest request) {request = beforeClientExecution(request);return executeAssociateTransitGatewayMulticastDomain(request);}", "after": "public virtual AssociateTransitGatewayMulticastDomainResponse AssociateTransitGatewayMulticastDomain(AssociateTransitGatewayMulticastDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateTransitGatewayMulticastDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateTransitGatewayMulticastDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 293, "before": "public UpdateContactResult updateContact(UpdateContactRequest request) {request = beforeClientExecution(request);return executeUpdateContact(request);}", "after": "public virtual UpdateContactResponse UpdateContact(UpdateContactRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateContactRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateContactResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 294, "before": "public TableRecord(CellRangeAddress8Bit range) {super(range);field_6_res = 0;}", "after": "public TableRecord(CellRangeAddress8Bit range): base(range){field_6_res = 0;}" }, { "index": 295, "before": "public CreateProcessingJobResult createProcessingJob(CreateProcessingJobRequest request) {request = beforeClientExecution(request);return executeCreateProcessingJob(request);}", "after": "public virtual CreateProcessingJobResponse CreateProcessingJob(CreateProcessingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateProcessingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateProcessingJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 296, "before": "public CharSequence subSequence(int start, int end) {checkStartEndRemaining(start, end);CharSequenceAdapter result = copy(this);result.position = position + start;result.limit = position + end;return result;}", "after": "public override java.lang.CharSequence SubSequence(int start, int end){checkStartEndRemaining(start, end);java.nio.CharSequenceAdapter result = copy(this);result._position = _position + start;result._limit = _position + end;return result;}" }, { "index": 297, "before": "public GetCoipPoolUsageResult getCoipPoolUsage(GetCoipPoolUsageRequest request) {request = beforeClientExecution(request);return executeGetCoipPoolUsage(request);}", "after": "public virtual GetCoipPoolUsageResponse GetCoipPoolUsage(GetCoipPoolUsageRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCoipPoolUsageRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCoipPoolUsageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 298, "before": "public UpdateResolverEndpointResult updateResolverEndpoint(UpdateResolverEndpointRequest request) {request = beforeClientExecution(request);return executeUpdateResolverEndpoint(request);}", "after": "public virtual UpdateResolverEndpointResponse UpdateResolverEndpoint(UpdateResolverEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateResolverEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateResolverEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 299, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {ValueEval veText;try {veText = OperandResolver.getSingleValue(arg0, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {return e.getErrorEval();}String strText = OperandResolver.coerceValueToString(veText);Double result = convertTextToNumber(strText);if(result == null) result = parseDateTime(strText);if (result == null) {return ErrorEval.VALUE_INVALID;}return new NumberEval(result.doubleValue());}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){ValueEval veText;try{veText = OperandResolver.GetSingleValue(arg0, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){return e.GetErrorEval();}String strText = OperandResolver.CoerceValueToString(veText);Double result = ConvertTextToNumber(strText);if (Double.IsNaN(result)){return ErrorEval.VALUE_INVALID;}return new NumberEval(result);}" }, { "index": 300, "before": "public int addExternalName(ExternalNameRecord rec) {ExternalNameRecord[] tmp = new ExternalNameRecord[_externalNameRecords.length + 1];System.arraycopy(_externalNameRecords, 0, tmp, 0, _externalNameRecords.length);tmp[tmp.length - 1] = rec;_externalNameRecords = tmp;return _externalNameRecords.length - 1;}", "after": "public int AddExternalName(ExternalNameRecord rec){ExternalNameRecord[] tmp = new ExternalNameRecord[_externalNameRecords.Length + 1];Array.Copy(_externalNameRecords, 0, tmp, 0, _externalNameRecords.Length);tmp[tmp.Length - 1] = rec;_externalNameRecords = tmp;return _externalNameRecords.Length - 1;}" }, { "index": 301, "before": "public DescribePrincipalIdFormatResult describePrincipalIdFormat(DescribePrincipalIdFormatRequest request) {request = beforeClientExecution(request);return executeDescribePrincipalIdFormat(request);}", "after": "public virtual DescribePrincipalIdFormatResponse DescribePrincipalIdFormat(DescribePrincipalIdFormatRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePrincipalIdFormatRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePrincipalIdFormatResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 302, "before": "public ListPartnerEventSourceAccountsResult listPartnerEventSourceAccounts(ListPartnerEventSourceAccountsRequest request) {request = beforeClientExecution(request);return executeListPartnerEventSourceAccounts(request);}", "after": "public virtual ListPartnerEventSourceAccountsResponse ListPartnerEventSourceAccounts(ListPartnerEventSourceAccountsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPartnerEventSourceAccountsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPartnerEventSourceAccountsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 303, "before": "public File getFile() {return file;}", "after": "public virtual FilePath GetFile(){return file;}" }, { "index": 304, "before": "public void onChanged() {if (mSelectedIds.size() > 0) {return;}chooseListToShow();ensureSomeGroupIsExpanded();}", "after": "public override void onChanged(){this._enclosing.refreshExpGroupMetadataList(true, true);this._enclosing.notifyDataSetChanged();}" }, { "index": 305, "before": "public String getTextAsString() {if (this.text == null)return null;elsereturn this.text.toString();}", "after": "public virtual string GetTextAsString(){if (this.m_text == null)return null;elsereturn this.m_text.ToString();}" }, { "index": 306, "before": "public LongBuffer put(long[] src, int srcOffset, int longCount) {Arrays.checkOffsetAndCount(src.length, srcOffset, longCount);if (longCount > remaining()) {throw new BufferOverflowException();}for (int i = srcOffset; i < srcOffset + longCount; ++i) {put(src[i]);}return this;}", "after": "public virtual java.nio.LongBuffer put(long[] src, int srcOffset, int longCount){java.util.Arrays.checkOffsetAndCount(src.Length, srcOffset, longCount);if (longCount > remaining()){throw new java.nio.BufferOverflowException();}{for (int i = srcOffset; i < srcOffset + longCount; ++i){put(src[i]);}}return this;}" }, { "index": 307, "before": "@Override public boolean remove(Object object) {synchronized (CopyOnWriteArrayList.this) {int index = indexOf(object);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": 308, "before": "public long length() {if (onDiskFile == null) {return super.length();}return onDiskFile.length();}", "after": "public override long Length(){if (onDiskFile == null){return base.Length();}return onDiskFile.Length();}" }, { "index": 309, "before": "public FieldBoostMapFCListener(QueryConfigHandler config) {this.config = config;}", "after": "public FieldBoostMapFCListener(QueryConfigHandler config){this.config = config;}" }, { "index": 310, "before": "public StartActivityStreamResult startActivityStream(StartActivityStreamRequest request) {request = beforeClientExecution(request);return executeStartActivityStream(request);}", "after": "public virtual StartActivityStreamResponse StartActivityStream(StartActivityStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartActivityStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = StartActivityStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 311, "before": "public Hyphenation hyphenate(String word, int remainCharCount,int pushCharCount) {char[] w = word.toCharArray();return hyphenate(w, 0, w.length, remainCharCount, pushCharCount);}", "after": "public virtual Hyphenation Hyphenate(string word, int remainCharCount, int pushCharCount){char[] w = word.ToCharArray();return Hyphenate(w, 0, w.Length, remainCharCount, pushCharCount);}" }, { "index": 312, "before": "public CreateSmsTemplateResult createSmsTemplate(CreateSmsTemplateRequest request) {request = beforeClientExecution(request);return executeCreateSmsTemplate(request);}", "after": "public virtual CreateSmsTemplateResponse CreateSmsTemplate(CreateSmsTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSmsTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSmsTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 313, "before": "public void clear() {int n = mSize;Object[] values = mValues;for (int i = 0; i < n; i++) {values[i] = null;}mSize = 0;mGarbage = false;}", "after": "public virtual void clear(){int n = mSize;object[] values = mValues;{for (int i = 0; i < n; i++){values[i] = null;}}mSize = 0;mGarbage = false;}" }, { "index": 314, "before": "public String toStringTree(Parser parser) {return toString();}", "after": "public virtual string ToStringTree(Parser parser){return ToString();}" }, { "index": 315, "before": "public long get(int index) {final int o = index >>> 2;final int b = index & 3;final int shift = b << 4;return (blocks[o] >>> shift) & 65535L;}", "after": "public override long Get(int index){int o = (int)((uint)index >> 2);int b = index & 3;int shift = b << 4;return ((long)((ulong)blocks[o] >> shift)) & 65535L;}" }, { "index": 316, "before": "public String toString() {return getType().name() + \": \" + getOldId().name() + \" \"+ getNewId().name() + \" \" + getRefName();}", "after": "public override string ToString(){return GetType().ToString() + \": \" + GetOldId().Name + \" \" + GetNewId().Name + \" \"+ GetRefName();}" }, { "index": 317, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval text, ValueEval number_times) {ValueEval veText1;try {veText1 = OperandResolver.getSingleValue(text, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {return e.getErrorEval();}String strText1 = OperandResolver.coerceValueToString(veText1);double numberOfTime = 0;try {numberOfTime = OperandResolver.coerceValueToDouble(number_times);} catch (EvaluationException e) {return ErrorEval.VALUE_INVALID;}int numberOfTimeInt = (int)numberOfTime;StringBuilder strb = new StringBuilder(strText1.length() * numberOfTimeInt);for(int i = 0; i < numberOfTimeInt; i++) {strb.append(strText1);}if (strb.toString().length() > 32767) {return ErrorEval.VALUE_INVALID;}return new StringEval(strb.toString());}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval text, ValueEval number_times){ValueEval veText1;try{veText1 = OperandResolver.GetSingleValue(text, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){return e.GetErrorEval();}String strText1 = OperandResolver.CoerceValueToString(veText1);double numberOfTime = 0;try{numberOfTime = OperandResolver.CoerceValueToDouble(number_times);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}int numberOfTimeInt = (int)numberOfTime;StringBuilder strb = new StringBuilder(strText1.Length * numberOfTimeInt);for (int i = 0; i < numberOfTimeInt; i++){strb.Append(strText1);}if (strb.ToString().Length > 32767){return ErrorEval.VALUE_INVALID;}return new StringEval(strb.ToString());}" }, { "index": 318, "before": "public Entry lastEntry() {return immutableCopy(endpoint(false));}", "after": "public java.util.MapClass.Entry lastEntry(){return this._enclosing.immutableCopy(this.endpoint(false));}" }, { "index": 319, "before": "public DeleteEvaluationResult deleteEvaluation(DeleteEvaluationRequest request) {request = beforeClientExecution(request);return executeDeleteEvaluation(request);}", "after": "public virtual DeleteEvaluationResponse DeleteEvaluation(DeleteEvaluationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEvaluationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEvaluationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 320, "before": "public ContinueRecord(RecordInputStream in) {_data = in.readRemainder();}", "after": "public ContinueRecord(RecordInputStream in1){field_1_data = in1.ReadRemainder();}" }, { "index": 321, "before": "public CreateFilterResult createFilter(CreateFilterRequest request) {request = beforeClientExecution(request);return executeCreateFilter(request);}", "after": "public virtual CreateFilterResponse CreateFilter(CreateFilterRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFilterRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFilterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 322, "before": "public CharSequence subSequence(int start, int end) {checkStartEndRemaining(start, end);CharBuffer result = duplicate();result.limit(position + end);result.position(position + start);return result;}", "after": "public 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": 323, "before": "public CreateTrafficMirrorSessionResult createTrafficMirrorSession(CreateTrafficMirrorSessionRequest request) {request = beforeClientExecution(request);return executeCreateTrafficMirrorSession(request);}", "after": "public virtual CreateTrafficMirrorSessionResponse CreateTrafficMirrorSession(CreateTrafficMirrorSessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTrafficMirrorSessionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTrafficMirrorSessionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 324, "before": "public CreateNodegroupResult createNodegroup(CreateNodegroupRequest request) {request = beforeClientExecution(request);return executeCreateNodegroup(request);}", "after": "public virtual CreateNodegroupResponse CreateNodegroup(CreateNodegroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNodegroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNodegroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 325, "before": "public SoraniStemFilter create(TokenStream input) {return new SoraniStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new SoraniStemFilter(input);}" }, { "index": 326, "before": "public UpdateCustomVerificationEmailTemplateResult updateCustomVerificationEmailTemplate(UpdateCustomVerificationEmailTemplateRequest request) {request = beforeClientExecution(request);return executeUpdateCustomVerificationEmailTemplate(request);}", "after": "public virtual UpdateCustomVerificationEmailTemplateResponse UpdateCustomVerificationEmailTemplate(UpdateCustomVerificationEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateCustomVerificationEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateCustomVerificationEmailTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 327, "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(int type){if (imap.ContainsKey(type))return imap[type];if (bmap.ContainsKey((byte)type))return bmap[(byte)type];throw new ArgumentException(\"Unknown error type: \" + type);}" }, { "index": 328, "before": "public DeleteSubnetGroupResult deleteSubnetGroup(DeleteSubnetGroupRequest request) {request = beforeClientExecution(request);return executeDeleteSubnetGroup(request);}", "after": "public virtual DeleteSubnetGroupResponse DeleteSubnetGroup(DeleteSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSubnetGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 329, "before": "public String toString() {return getClass().getName() + \" [\" +_error.getString() +\"]\";}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(\" [\");sb.Append(_error.String);sb.Append(\"]\");return sb.ToString();}" }, { "index": 330, "before": "public Object toObject() {assert exists || 0.0D == value;return exists ? value : null;}", "after": "public override object ToObject(){return Exists ? (object)Value : null;}" }, { "index": 331, "before": "public void destroy() {super.destroy();if (onDiskFile != null) {try {if (!onDiskFile.delete())onDiskFile.deleteOnExit();} finally {onDiskFile = null;}}}", "after": "public override void Destroy(){base.Destroy();if (onDiskFile != null){try{if (!onDiskFile.Delete()){onDiskFile.DeleteOnExit();}}finally{onDiskFile = null;}}}" }, { "index": 332, "before": "public DecreaseReplicationFactorResult decreaseReplicationFactor(DecreaseReplicationFactorRequest request) {request = beforeClientExecution(request);return executeDecreaseReplicationFactor(request);}", "after": "public virtual DecreaseReplicationFactorResponse DecreaseReplicationFactor(DecreaseReplicationFactorRequest request){var options = new InvokeOptions();options.RequestMarshaller = DecreaseReplicationFactorRequestMarshaller.Instance;options.ResponseUnmarshaller = DecreaseReplicationFactorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 333, "before": "public Counta(){_predicate = defaultPredicate;}", "after": "public Counta(){_predicate = defaultPredicate;}" }, { "index": 334, "before": "public EvaluationWorkbook getWorkbook() {return _workbook;}", "after": "public IEvaluationWorkbook GetWorkbook(){return _workbook;}" }, { "index": 335, "before": "public DescribeRouteTablesResult describeRouteTables() {return describeRouteTables(new DescribeRouteTablesRequest());}", "after": "public virtual DescribeRouteTablesResponse DescribeRouteTables(){return DescribeRouteTables(new DescribeRouteTablesRequest());}" }, { "index": 336, "before": "public CreateAssessmentTemplateResult createAssessmentTemplate(CreateAssessmentTemplateRequest request) {request = beforeClientExecution(request);return executeCreateAssessmentTemplate(request);}", "after": "public virtual CreateAssessmentTemplateResponse CreateAssessmentTemplate(CreateAssessmentTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAssessmentTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAssessmentTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 337, "before": "public DeleteProjectResult deleteProject(DeleteProjectRequest request) {request = beforeClientExecution(request);return executeDeleteProject(request);}", "after": "public virtual DeleteProjectResponse DeleteProject(DeleteProjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteProjectRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteProjectResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 338, "before": "public DeleteUserPolicyRequest(String userName, String policyName) {setUserName(userName);setPolicyName(policyName);}", "after": "public DeleteUserPolicyRequest(string userName, string policyName){_userName = userName;_policyName = policyName;}" }, { "index": 339, "before": "public TermVectorsReader clone() {return new CompressingTermVectorsReader(this);}", "after": "public override object Clone(){return new CompressingTermVectorsReader(this);}" }, { "index": 340, "before": "public void close() {if (sock != null) {try {sch.releaseSession(sock);} finally {sock = null;}}}", "after": "public override void Close(){if (sock != null){try{sch.ReleaseSession(sock);}finally{sock = null;}}}" }, { "index": 341, "before": "public LongBuffer put(long c) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.LongBuffer put(long c){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 342, "before": "public int serialize( int offset, byte[] data ) {LOG.log( DEBUG, \"Serializing Workbook with offsets\" );int pos = 0;SSTRecord lSST = null;int sstPos = 0;boolean wroteBoundSheets = false;for ( org.apache.poi.hssf.record.Record record : records.getRecords() ) {int len = 0;if (record instanceof SSTRecord) {lSST = (SSTRecord)record;sstPos = pos;}if (record.getSid() == ExtSSTRecord.sid && lSST != null) {record = lSST.createExtSSTRecord(sstPos + offset);}if (record instanceof BoundSheetRecord) {if(!wroteBoundSheets) {for (BoundSheetRecord bsr : boundsheets) {len += bsr.serialize(pos+offset+len, data);}wroteBoundSheets = true;}} else {len = record.serialize( pos + offset, data );}pos += len;}LOG.log( DEBUG, \"Exiting serialize workbook\" );return pos;}", "after": "public int Serialize(int offset, byte[] data){int pos = 0;SSTRecord sst = null;int sstPos = 0;bool wroteBoundSheets = false;for (int k = 0; k < records.Count; k++){Record record = records[k];if (record.Sid != RecalcIdRecord.sid || ((RecalcIdRecord)record).IsNeeded){int len = 0;if (record is SSTRecord){sst = (SSTRecord)record;sstPos = pos;}if (record.Sid == ExtSSTRecord.sid && sst != null){record = sst.CreateExtSSTRecord(sstPos + offset);}if (record is BoundSheetRecord){if (!wroteBoundSheets){for (int i = 0; i < boundsheets.Count; i++){len += ((BoundSheetRecord)boundsheets[i]).Serialize(pos + offset + len, data);}wroteBoundSheets = true;}}else{len = record.Serialize(pos + offset, data);}pos += len; }}return pos;}" }, { "index": 343, "before": "public DescribeClusterSecurityGroupsResult describeClusterSecurityGroups() {return describeClusterSecurityGroups(new DescribeClusterSecurityGroupsRequest());}", "after": "public virtual DescribeClusterSecurityGroupsResponse DescribeClusterSecurityGroups(){return DescribeClusterSecurityGroups(new DescribeClusterSecurityGroupsRequest());}" }, { "index": 344, "before": "public Explanation explain(Explanation freq, long norm) {return Explanation.match(score(freq.getValue().floatValue(), norm),\"score(freq=\" + freq.getValue() +\"), with freq of:\",Collections.singleton(freq));}", "after": "public virtual Explanation Explain(int doc, Explanation freq){Explanation result = new Explanation(Score(doc, freq.Value), \"score(doc=\" + doc + \",freq=\" + freq.Value + \"), with freq of:\");result.AddDetail(freq);return result;}" }, { "index": 345, "before": "public DisassociatePhoneNumberFromUserResult disassociatePhoneNumberFromUser(DisassociatePhoneNumberFromUserRequest request) {request = beforeClientExecution(request);return executeDisassociatePhoneNumberFromUser(request);}", "after": "public virtual DisassociatePhoneNumberFromUserResponse DisassociatePhoneNumberFromUser(DisassociatePhoneNumberFromUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociatePhoneNumberFromUserRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociatePhoneNumberFromUserResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 346, "before": "public boolean has(AnyObjectId objectId, int typeHint) throws IOException {try {open(objectId, typeHint);return true;} catch (MissingObjectException notFound) {return false;}}", "after": "public virtual bool Has(AnyObjectId objectId, int typeHint){try{Open(objectId, typeHint);return true;}catch (MissingObjectException){return false;}}" }, { "index": 347, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[ATTACHEDLABEL]\\n\");buffer.append(\" .formatFlags = \").append(\"0x\").append(HexDump.toHex( getFormatFlags ())).append(\" (\").append( getFormatFlags() ).append(\" )\");buffer.append(System.getProperty(\"line.separator\"));buffer.append(\" .showActual = \").append(isShowActual()).append('\\n');buffer.append(\" .showPercent = \").append(isShowPercent()).append('\\n');buffer.append(\" .labelAsPercentage = \").append(isLabelAsPercentage()).append('\\n');buffer.append(\" .smoothedLine = \").append(isSmoothedLine()).append('\\n');buffer.append(\" .showLabel = \").append(isShowLabel()).append('\\n');buffer.append(\" .showBubbleSizes = \").append(isShowBubbleSizes()).append('\\n');buffer.append(\"[/ATTACHEDLABEL]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[ATTACHEDLABEL]\\n\");buffer.Append(\" .formatFlags = \").Append(\"0x\").Append(HexDump.ToHex(FormatFlags)).Append(\" (\").Append(FormatFlags).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\" .showActual = \").Append(IsShowActual).Append('\\n');buffer.Append(\" .showPercent = \").Append(IsShowPercent).Append('\\n');buffer.Append(\" .labelAsPercentage = \").Append(IsLabelAsPercentage).Append('\\n');buffer.Append(\" .smoothedLine = \").Append(IsSmoothedLine).Append('\\n');buffer.Append(\" .showLabel = \").Append(IsShowLabel).Append('\\n');buffer.Append(\" .showBubbleSizes = \").Append(IsShowBubbleSizes).Append('\\n');buffer.Append(\"[/ATTACHEDLABEL]\\n\");return buffer.ToString();}" }, { "index": 348, "before": "public String toString(String field) {StringBuilder buffer = new StringBuilder();buffer.append(\"spanOr([\");Iterator i = clauses.iterator();while (i.hasNext()) {SpanQuery clause = i.next();buffer.append(clause.toString(field));if (i.hasNext()) {buffer.append(\", \");}}buffer.append(\"])\");return buffer.toString();}", "after": "public override string ToString(string field){StringBuilder buffer = new StringBuilder();buffer.Append(\"spanOr([\");bool first = true;foreach (SpanQuery clause in clauses){if (!first) buffer.Append(\", \");buffer.Append(clause.ToString(field));first = false;}buffer.Append(\"])\");buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}" }, { "index": 349, "before": "public DisableInsightRulesResult disableInsightRules(DisableInsightRulesRequest request) {request = beforeClientExecution(request);return executeDisableInsightRules(request);}", "after": "public virtual DisableInsightRulesResponse DisableInsightRules(DisableInsightRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableInsightRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableInsightRulesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 350, "before": "public BootstrapActionConfig newRunIf(String condition, BootstrapActionConfig config) {List args = config.getScriptBootstrapAction().getArgs();args.add(0, condition);args.add(1, config.getScriptBootstrapAction().getPath());return new BootstrapActionConfig().withName(\"Run If, \" + config.getName()).withScriptBootstrapAction(new ScriptBootstrapActionConfig().withPath(\"s3:.withArgs(args));}", "after": "public BootstrapActionConfig NewRunIf(string condition, BootstrapActionConfig config){List args = config.ScriptBootstrapAction.Args;args.Add(condition);args.Add(config.ScriptBootstrapAction.Path);return new BootstrapActionConfig{Name = \"Run If, \" + config.Name,ScriptBootstrapAction = new ScriptBootstrapActionConfig{Path = \"s3:Args = args}};}" }, { "index": 351, "before": "public final CharBuffer get(char[] dst, int dstOffset, int charCount) {Arrays.checkOffsetAndCount(dst.length, dstOffset, charCount);if (charCount > remaining()) {throw new BufferUnderflowException();}int newPosition = position + charCount;sequence.toString().getChars(position, newPosition, dst, dstOffset);position = newPosition;return this;}", "after": "public sealed override 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();}int newPosition = _position + charCount;Sharpen.StringHelper.GetCharsForString(sequence.ToString(), _position, newPosition, dst, dstOffset);_position = newPosition;return this;}" }, { "index": 352, "before": "public Set getNames(String section, String subsection) {return getState().getNames(section, subsection);}", "after": "public virtual ICollection GetNames(string section, string subsection){return GetState().GetNames(section, subsection);}" }, { "index": 353, "before": "public CreateBrokerResult createBroker(CreateBrokerRequest request) {request = beforeClientExecution(request);return executeCreateBroker(request);}", "after": "public virtual CreateBrokerResponse CreateBroker(CreateBrokerRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateBrokerRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateBrokerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 354, "before": "public void onAbsorb(int velocity) {mState = STATE_ABSORB;velocity = Math.max(MIN_VELOCITY, Math.abs(velocity));mStartTime = AnimationUtils.currentAnimationTimeMillis();mDuration = 0.1f + (velocity * 0.03f);mEdgeAlphaStart = 0.f;mEdgeScaleY = mEdgeScaleYStart = 0.f;mGlowAlphaStart = 0.5f;mGlowScaleYStart = 0.f;mEdgeAlphaFinish = Math.max(0, Math.min(velocity * VELOCITY_EDGE_FACTOR, 1));mEdgeScaleYFinish = Math.max(HELD_EDGE_SCALE_Y, Math.min(velocity * VELOCITY_EDGE_FACTOR, 1.f));mGlowScaleYFinish = Math.min(0.025f + (velocity * (velocity / 100) * 0.00015f), 1.75f);mGlowAlphaFinish = Math.max(mGlowAlphaStart, Math.min(velocity * VELOCITY_GLOW_FACTOR * .00001f, MAX_ALPHA));}", "after": "public virtual void onAbsorb(int velocity){mState = STATE_ABSORB;velocity = System.Math.Max(MIN_VELOCITY, System.Math.Abs(velocity));mStartTime = android.view.animation.AnimationUtils.currentAnimationTimeMillis();mDuration = 0.1f + (velocity * 0.03f);mEdgeAlphaStart = 0.0f;mEdgeScaleY = mEdgeScaleYStart = 0.0f;mGlowAlphaStart = 0.5f;mGlowScaleYStart = 0.0f;mEdgeAlphaFinish = System.Math.Max(0, System.Math.Min(velocity * VELOCITY_EDGE_FACTOR, 1));mEdgeScaleYFinish = System.Math.Max(HELD_EDGE_SCALE_Y, System.Math.Min(velocity *VELOCITY_EDGE_FACTOR, 1.0f));mGlowScaleYFinish = System.Math.Min(0.025f + (velocity * (velocity / 100) * 0.00015f), 1.75f);mGlowAlphaFinish = System.Math.Max(mGlowAlphaStart, System.Math.Min(velocity * VELOCITY_GLOW_FACTOR* .00001f, MAX_ALPHA));}" }, { "index": 355, "before": "public ListSuppressedDestinationsResult listSuppressedDestinations(ListSuppressedDestinationsRequest request) {request = beforeClientExecution(request);return executeListSuppressedDestinations(request);}", "after": "public virtual ListSuppressedDestinationsResponse ListSuppressedDestinations(ListSuppressedDestinationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSuppressedDestinationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSuppressedDestinationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 356, "before": "public List> getPairs() {List> pairs = new ArrayList>();for (K key : keySet()) {for (V value : get(key)) {pairs.add(new Pair(key, value));}}return pairs;}", "after": "public virtual IList> GetPairs(){IList> pairs = new ArrayList>();foreach (KeyValuePair> pair in this){foreach (V value in pair.Value){pairs.Add(Tuple.Create(pair.Key, value));}}return pairs;}" }, { "index": 357, "before": "public void setParams(String params) {super.setParams(params);int k = params.indexOf(\",\");name = params.substring(0,k).trim();value = params.substring(k+1).trim();}", "after": "public override void SetParams(string @params){base.SetParams(@params);int k = @params.IndexOf(',');name = @params.Substring(0, k - 0).Trim();value = @params.Substring(k + 1).Trim();}" }, { "index": 358, "before": "@Override public V put(K key, V value) {if (!isInBounds(key)) {throw outOfBounds(key, fromBound, toBound);}return putInternal(key, value);}", "after": "public override V put(K key, V value){if (!this.isInBounds(key)){throw this.outOfBounds(key, this.fromBound, this.toBound);}return this._enclosing.putInternal(key, value);}" }, { "index": 359, "before": "public DeregisterImageRequest(String imageId) {setImageId(imageId);}", "after": "public DeregisterImageRequest(string imageId){_imageId = imageId;}" }, { "index": 360, "before": "public GetApplicationResult getApplication(GetApplicationRequest request) {request = beforeClientExecution(request);return executeGetApplication(request);}", "after": "public virtual GetApplicationResponse GetApplication(GetApplicationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApplicationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApplicationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 361, "before": "public DescribeProblemObservationsResult describeProblemObservations(DescribeProblemObservationsRequest request) {request = beforeClientExecution(request);return executeDescribeProblemObservations(request);}", "after": "public virtual DescribeProblemObservationsResponse DescribeProblemObservations(DescribeProblemObservationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeProblemObservationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeProblemObservationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 362, "before": "public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {int bytesAfterHeader = readHeader( data, offset );int pos = offset + HEADER_SIZE;System.arraycopy( data, pos, field_1_UID, 0, 16 ); pos += 16;field_2_marker = data[pos]; pos++;setPictureData(data, pos, bytesAfterHeader - 17);return bytesAfterHeader + HEADER_SIZE;}", "after": "public override int FillFields(byte[] data, int offset, IEscherRecordFactory recordFactory){int bytesAfterHeader = ReadHeader(data, offset);int pos = offset + HEADER_SIZE;field_1_UID = new byte[16];Array.Copy(data, pos, field_1_UID, 0, 16); pos += 16;field_2_marker = data[pos]; pos++;field_pictureData = new byte[bytesAfterHeader - 17];Array.Copy(data, pos, field_pictureData, 0, field_pictureData.Length);return bytesAfterHeader + HEADER_SIZE;}" }, { "index": 363, "before": "public static boolean endsWith(BytesRef ref, BytesRef suffix) {int startAt = ref.length - suffix.length;if (startAt < 0) {return false;}return Arrays.equals(ref.bytes, ref.offset + startAt, ref.offset + startAt + suffix.length,suffix.bytes, suffix.offset, suffix.offset + suffix.length);}", "after": "public static bool EndsWith(BytesRef @ref, BytesRef suffix) {return SliceEquals(@ref, suffix, @ref.Length - suffix.Length);}" }, { "index": 364, "before": "public DeleteOptionGroupResult deleteOptionGroup(DeleteOptionGroupRequest request) {request = beforeClientExecution(request);return executeDeleteOptionGroup(request);}", "after": "public virtual DeleteOptionGroupResponse DeleteOptionGroup(DeleteOptionGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteOptionGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteOptionGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 365, "before": "public static String getFromUnicodeLE(byte[] string) {if (string.length == 0) {return \"\";}return getFromUnicodeLE(string, 0, string.length / 2);}", "after": "public static String GetFromUnicodeLE(byte[] str){if (str.Length == 0) { return \"\"; }return GetFromUnicodeLE(str, 0, str.Length / 2);}" }, { "index": 366, "before": "public CellRangeAddressList() {_list = new ArrayList<>();}", "after": "public CellRangeAddressList(){_list = new ArrayList();}" }, { "index": 367, "before": "public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {throw new NotImplementedFunctionException(_functionName);}", "after": "public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){throw new NotImplementedFunctionException(_functionName);}" }, { "index": 368, "before": "public DescribeOptionGroupsResult describeOptionGroups() {return describeOptionGroups(new DescribeOptionGroupsRequest());}", "after": "public virtual DescribeOptionGroupsResponse DescribeOptionGroups(){return DescribeOptionGroups(new DescribeOptionGroupsRequest());}" }, { "index": 369, "before": "public DisableVpcClassicLinkResult disableVpcClassicLink(DisableVpcClassicLinkRequest request) {request = beforeClientExecution(request);return executeDisableVpcClassicLink(request);}", "after": "public virtual DisableVpcClassicLinkResponse DisableVpcClassicLink(DisableVpcClassicLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableVpcClassicLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableVpcClassicLinkResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 370, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[SXIDSTM]\\n\");buffer.append(\" .idstm =\").append(HexDump.shortToHex(idstm)).append('\\n');buffer.append(\"[/SXIDSTM]\\n\");return buffer.toString();}", "after": "public override string ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[SXIDSTM]\\n\");buffer.Append(\" .idstm =\").Append(HexDump.ShortToHex(idstm)).Append('\\n');buffer.Append(\"[/SXIDSTM]\\n\");return buffer.ToString();}" }, { "index": 371, "before": "public ListStackInstancesResult listStackInstances(ListStackInstancesRequest request) {request = beforeClientExecution(request);return executeListStackInstances(request);}", "after": "public virtual ListStackInstancesResponse ListStackInstances(ListStackInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStackInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStackInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 372, "before": "public DescribeCompanyNetworkConfigurationResult describeCompanyNetworkConfiguration(DescribeCompanyNetworkConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeCompanyNetworkConfiguration(request);}", "after": "public virtual DescribeCompanyNetworkConfigurationResponse DescribeCompanyNetworkConfiguration(DescribeCompanyNetworkConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCompanyNetworkConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCompanyNetworkConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 373, "before": "public final CoderResult flush(CharBuffer out) {if (status != END && status != INIT) {throw new IllegalStateException();}CoderResult result = implFlush(out);if (result == CoderResult.UNDERFLOW) {status = FLUSH;}return result;}", "after": "public java.nio.charset.CoderResult flush(java.nio.CharBuffer @out){if (status != END && status != INIT){throw new System.InvalidOperationException();}java.nio.charset.CoderResult result = implFlush(@out);if (result == java.nio.charset.CoderResult.UNDERFLOW){status = FLUSH;}return result;}" }, { "index": 374, "before": "public DescribeDBClustersResult describeDBClusters(DescribeDBClustersRequest request) {request = beforeClientExecution(request);return executeDescribeDBClusters(request);}", "after": "public virtual DescribeDBClustersResponse DescribeDBClusters(DescribeDBClustersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBClustersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBClustersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 375, "before": "public GetDocumentVersionResult getDocumentVersion(GetDocumentVersionRequest request) {request = beforeClientExecution(request);return executeGetDocumentVersion(request);}", "after": "public virtual GetDocumentVersionResponse GetDocumentVersion(GetDocumentVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDocumentVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDocumentVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 376, "before": "public TermData subtract(TermData t1, TermData t2) {if (t2 == NO_OUTPUT) {return t1;}TermData ret;if (statsEqual(t1, t2) && bytesEqual(t1, t2)) {ret = NO_OUTPUT;} else {ret = new TermData(t1.bytes, t1.docFreq, t1.totalTermFreq);}return ret;}", "after": "public override TermData Subtract(TermData t1, TermData t2){if (Equals(t2, NO_OUTPUT))return t1;Debug.Assert(t1.longs.Length == t2.longs.Length);int pos = 0;long diff = 0;var share = new long[_longsSize];while (pos < _longsSize){share[pos] = t1.longs[pos] - t2.longs[pos];diff += share[pos];pos++;}TermData ret;if (diff == 0 && StatsEqual(t1, t2) && BytesEqual(t1, t2)){ret = NO_OUTPUT;}else{ret = new TermData(share, t1.bytes, t1.docFreq, t1.totalTermFreq);}return ret;}" }, { "index": 377, "before": "public ModifyCapacityReservationResult modifyCapacityReservation(ModifyCapacityReservationRequest request) {request = beforeClientExecution(request);return executeModifyCapacityReservation(request);}", "after": "public virtual ModifyCapacityReservationResponse ModifyCapacityReservation(ModifyCapacityReservationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyCapacityReservationRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyCapacityReservationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 378, "before": "@Override public int size() {synchronized (mutex) {return c.size();}}", "after": "public virtual int size(){lock (mutex){return c.size();}}" }, { "index": 379, "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, int[] values, int valuesOffset, int iterations){for (int j = 0; j < iterations; ++j){values[valuesOffset++] = blocks[blocksOffset++] & 0xFF;}}" }, { "index": 380, "before": "public int length() throws UnsupportedOperationException {if (this.type == TYPE_MALFORMED_INPUT || this.type == TYPE_UNMAPPABLE_CHAR) {return this.length;}throw new UnsupportedOperationException(\"length meaningless for \" + toString());}", "after": "public virtual int length(){if (this.type == TYPE_MALFORMED_INPUT || this.type == TYPE_UNMAPPABLE_CHAR){return this._length;}throw new System.NotSupportedException(\"length meaningless for \" + ToString());}" }, { "index": 381, "before": "public String toFormulaString() {throw invalid();}", "after": "public override String ToFormulaString(){throw Invalid();}" }, { "index": 382, "before": "public E next() {if (iterator.nextIndex() < end) {return iterator.next();}throw new NoSuchElementException();}", "after": "public E next(){if (iterator.nextIndex() < end){return iterator.next();}throw new java.util.NoSuchElementException();}" }, { "index": 383, "before": "public static String toHex(long value) {StringBuilder sb = new StringBuilder(16);writeHex(sb, value, 16, \"\");return sb.toString();}", "after": "public static string ToHex(byte value){return ToHex((long)value, 2);}" }, { "index": 384, "before": "public long get(int index) {final int o = index >>> 6;final int b = index & 63;final int shift = b << 0;return (blocks[o] >>> shift) & 1L;}", "after": "public override long Get(int index){int o = (int)((uint)index >> 6);int b = index & 63;int shift = b << 0;return ((long)((ulong)blocks[o] >> shift)) & 1L;}" }, { "index": 385, "before": "public int[] clear() {start = end = null;return super.clear();}", "after": "public override int[] Clear(){start = end = null;return base.Clear();}" }, { "index": 386, "before": "public TokenStream init(TokenStream tokenStream) {termAtt = tokenStream.addAttribute(CharTermAttribute.class);return null;}", "after": "public virtual TokenStream Init(TokenStream tokenStream){termAtt = tokenStream.AddAttribute();return null;}" }, { "index": 387, "before": "public UpdateGameServerGroupResult updateGameServerGroup(UpdateGameServerGroupRequest request) {request = beforeClientExecution(request);return executeUpdateGameServerGroup(request);}", "after": "public virtual UpdateGameServerGroupResponse UpdateGameServerGroup(UpdateGameServerGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGameServerGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGameServerGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 388, "before": "public UnmappableCharacterException(int length) {this.inputLength = length;}", "after": "public UnmappableCharacterException(int length){this.inputLength = length;}" }, { "index": 389, "before": "public UpdateIdentityProviderConfigurationResult updateIdentityProviderConfiguration(UpdateIdentityProviderConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateIdentityProviderConfiguration(request);}", "after": "public virtual UpdateIdentityProviderConfigurationResponse UpdateIdentityProviderConfiguration(UpdateIdentityProviderConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateIdentityProviderConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateIdentityProviderConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 390, "before": "@Override public int lastIndexOf(Object object) {Object[] a = array;if (object != null) {for (int i = size - 1; i >= 0; i--) {if (object.equals(a[i])) {return i;}}} else {for (int i = size - 1; i >= 0; i--) {if (a[i] == null) {return i;}}}return -1;}", "after": "public override int lastIndexOf(object @object){if (@object != null){{for (int i = a.Length - 1; i >= 0; i--){if (@object.Equals(a[i])){return i;}}}}else{{for (int i = a.Length - 1; i >= 0; i--){if ((object)a[i] == null){return i;}}}}return -1;}" }, { "index": 391, "before": "public ConstantScoreQueryBuilder(QueryBuilderFactory queryFactory) {this.queryFactory = queryFactory;}", "after": "public ConstantScoreQueryBuilder(FilterBuilderFactory filterFactory){this.filterFactory = filterFactory;}" }, { "index": 392, "before": "public int getNumberOfOnChannelTokens() {int n = 0;fill();for (int i = 0; i < tokens.size(); i++) {Token t = tokens.get(i);if ( t.getChannel()==channel ) n++;if ( t.getType()==Token.EOF ) break;}return n;}", "after": "public virtual int GetNumberOfOnChannelTokens(){int n = 0;Fill();for (int i = 0; i < tokens.Count; i++){IToken t = tokens[i];if (t.Channel == channel){n++;}if (t.Type == TokenConstants.EOF){break;}}return n;}" }, { "index": 393, "before": "public POIFSDocumentPath(final String [] components)throws IllegalArgumentException{if (components == null){this.components = new String[ 0 ];}else{this.components = new String[ components.length ];for (int j = 0; j < components.length; j++){if ((components[ j ] == null)|| (components[ j ].length() == 0)){throw new IllegalArgumentException(\"components cannot contain null or empty strings\");}this.components[ j ] = components[ j ];}}}", "after": "public POIFSDocumentPath(string[] components){if (components == null){this.components = new string[0];}else{this.components = new string[components.Length];for (int i = 0; i < components.Length; i++){if ((components[i] == null)|| (components[i].Length == 0)){throw new ArgumentException(\"components cannot contain null or empty strings\");}this.components[i] = components[i];}}}" }, { "index": 394, "before": "public SQLException(String theReason) {this(theReason, null, 0);}", "after": "public SQLException(string error) : base(error){throw new System.NotImplementedException();}" }, { "index": 395, "before": "public ListFragmentsResult listFragments(ListFragmentsRequest request) {request = beforeClientExecution(request);return executeListFragments(request);}", "after": "public virtual ListFragmentsResponse ListFragments(ListFragmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFragmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFragmentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 396, "before": "public QueryBuilder getQueryBuilder(String nodeName) {return builders.get(nodeName);}", "after": "public virtual IQueryBuilder GetQueryBuilder(string nodeName){IQueryBuilder result;builders.TryGetValue(nodeName, out result);return result;}" }, { "index": 397, "before": "public CreateDirectoryResult createDirectory(CreateDirectoryRequest request) {request = beforeClientExecution(request);return executeCreateDirectory(request);}", "after": "public virtual CreateDirectoryResponse CreateDirectory(CreateDirectoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDirectoryRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDirectoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 398, "before": "public int getExternalSheetIndex(String workbookName, String sheetName) {return getOrCreateLinkTable().getExternalSheetIndex(workbookName, sheetName, sheetName);}", "after": "public int GetExternalSheetIndex(String workbookName, String sheetName){return OrCreateLinkTable.GetExternalSheetIndex(workbookName, sheetName, sheetName);}" }, { "index": 399, "before": "public V getValue() {return value;}", "after": "public virtual V getValue(){return value;}" }, { "index": 400, "before": "public K getKey() {return key;}", "after": "public virtual K getKey(){return key;}" }, { "index": 401, "before": "public boolean hasTransparentBounds() {return transparentBounds;}", "after": "public bool hasTransparentBounds(){return transparentBounds;}" }, { "index": 402, "before": "public void setKeepEmpty(boolean empty) {keepEmpty = empty;}", "after": "public virtual void SetKeepEmpty(bool empty){keepEmpty = empty;}" }, { "index": 403, "before": "public XPathRuleAnywhereElement(String ruleName, int ruleIndex) {super(ruleName);this.ruleIndex = ruleIndex;}", "after": "public XPathRuleAnywhereElement(string ruleName, int ruleIndex): base(ruleName){this.ruleIndex = ruleIndex;}" }, { "index": 404, "before": "public int getHeight(){return _height;}", "after": "public int GetHeight(){return height;}" }, { "index": 405, "before": "public final void write(OpenStringBuilder arr) {write(arr.buf, 0, len);}", "after": "public void Write(OpenStringBuilder arr){Write(arr.m_buf, 0, arr.Length); }" }, { "index": 406, "before": "public void jumpDrawablesToCurrentState() {super.jumpDrawablesToCurrentState();if (mThumb != null) mThumb.jumpToCurrentState();}", "after": "public override void jumpDrawablesToCurrentState(){base.jumpDrawablesToCurrentState();if (mThumb != null){mThumb.jumpToCurrentState();}}" }, { "index": 407, "before": "public void setParams(String params) {super.setParams(params);final StreamTokenizer stok = new StreamTokenizer(new StringReader(params));stok.quoteChar('\"');stok.quoteChar('\\'');stok.eolIsSignificant(false);stok.ordinaryChar(',');try {while (stok.nextToken() != StreamTokenizer.TT_EOF) {switch (stok.ttype) {case ',': {break;}case '\\'':case '\\\"':case StreamTokenizer.TT_WORD: {analyzerNames.add(stok.sval);break;}default: {throw new RuntimeException(\"Unexpected token: \" + stok.toString());}}}} catch (RuntimeException e) {if (e.getMessage().startsWith(\"Line #\")) {throw e;} else {throw new RuntimeException(\"Line #\" + (stok.lineno() + getAlgLineNum()) + \": \", e);}} catch (Throwable t) {throw new RuntimeException(\"Line #\" + (stok.lineno() + getAlgLineNum()) + \": \", t);}}", "after": "public override void SetParams(string @params){base.SetParams(@params);StreamTokenizer stok = new StreamTokenizer(new StringReader(@params));stok.QuoteChar('\"');stok.QuoteChar('\\'');stok.EndOfLineIsSignificant = false;stok.OrdinaryChar(',');try{while (stok.NextToken() != StreamTokenizer.TokenType_EndOfStream){switch (stok.TokenType){case ',':{break;}case '\\'':case '\\\"':case StreamTokenizer.TokenType_Word:{analyzerNames.Add(stok.StringValue);break;}default:{throw new Exception(\"Unexpected token: \" + stok.ToString());}}}}catch (Exception e){if (e.Message.StartsWith(\"Line #\", StringComparison.Ordinal)){throw; }else{throw new Exception(\"Line #\" + (stok.LineNumber + AlgLineNum) + \": \", e);}}}" }, { "index": 408, "before": "public DescribeVolumesResult describeVolumes(DescribeVolumesRequest request) {request = beforeClientExecution(request);return executeDescribeVolumes(request);}", "after": "public virtual DescribeVolumesResponse DescribeVolumes(DescribeVolumesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVolumesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVolumesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 409, "before": "public DescribeFlowLogsResult describeFlowLogs(DescribeFlowLogsRequest request) {request = beforeClientExecution(request);return executeDescribeFlowLogs(request);}", "after": "public virtual DescribeFlowLogsResponse DescribeFlowLogs(DescribeFlowLogsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFlowLogsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFlowLogsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 410, "before": "public UpdateMethodResult updateMethod(UpdateMethodRequest request) {request = beforeClientExecution(request);return executeUpdateMethod(request);}", "after": "public virtual UpdateMethodResponse UpdateMethod(UpdateMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateMethodResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 411, "before": "public GetAuthorizationTokenRequest() {super(\"cr\", \"2016-06-07\", \"GetAuthorizationToken\", \"cr\");setUriPattern(\"/tokens\");setMethod(MethodType.GET);}", "after": "public GetAuthorizationTokenRequest(): base(\"cr\", \"2016-06-07\", \"GetAuthorizationToken\", \"cr\", \"openAPI\"){UriPattern = \"/tokens\";Method = MethodType.GET;}" }, { "index": 412, "before": "public StopContactResult stopContact(StopContactRequest request) {request = beforeClientExecution(request);return executeStopContact(request);}", "after": "public virtual StopContactResponse StopContact(StopContactRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopContactRequestMarshaller.Instance;options.ResponseUnmarshaller = StopContactResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 413, "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": 414, "before": "public ObjectDatabase newCachedDatabase() {return this;}", "after": "public virtual NGit.ObjectDatabase NewCachedDatabase(){return this;}" }, { "index": 415, "before": "public CreateJourneyResult createJourney(CreateJourneyRequest request) {request = beforeClientExecution(request);return executeCreateJourney(request);}", "after": "public virtual CreateJourneyResponse CreateJourney(CreateJourneyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateJourneyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateJourneyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 416, "before": "public DeleteDashboardsResult deleteDashboards(DeleteDashboardsRequest request) {request = beforeClientExecution(request);return executeDeleteDashboards(request);}", "after": "public virtual DeleteDashboardsResponse DeleteDashboards(DeleteDashboardsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDashboardsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDashboardsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 417, "before": "public UpgradeIndexMergePolicy(MergePolicy in) {super(in);}", "after": "public UpgradeIndexMergePolicy(MergePolicy @base){this.m_base = @base;}" }, { "index": 418, "before": "public GetHealthCheckCountResult getHealthCheckCount(GetHealthCheckCountRequest request) {request = beforeClientExecution(request);return executeGetHealthCheckCount(request);}", "after": "public virtual GetHealthCheckCountResponse GetHealthCheckCount(GetHealthCheckCountRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHealthCheckCountRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHealthCheckCountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 419, "before": "public ChartStartBlockRecord(RecordInputStream in) {rt = in.readShort();grbitFrt = in.readShort();iObjectKind = in.readShort();iObjectContext = in.readShort();iObjectInstance1 = in.readShort();iObjectInstance2 = in.readShort();}", "after": "public ChartStartBlockRecord(RecordInputStream in1){rt = in1.ReadShort();grbitFrt = in1.ReadShort();iObjectKind = in1.ReadShort();iObjectContext = in1.ReadShort();iObjectInstance1 = in1.ReadShort();iObjectInstance2 = in1.ReadShort();}" }, { "index": 420, "before": "public SeriesRecord(RecordInputStream in) {field_1_categoryDataType = in.readShort();field_2_valuesDataType = in.readShort();field_3_numCategories = in.readShort();field_4_numValues = in.readShort();field_5_bubbleSeriesType = in.readShort();field_6_numBubbleValues = in.readShort();}", "after": "public SeriesRecord(RecordInputStream in1){field_1_categoryDataType = in1.ReadShort();field_2_valuesDataType = in1.ReadShort();field_3_numCategories = in1.ReadShort();field_4_numValues = in1.ReadShort();field_5_bubbleSeriesType = in1.ReadShort();field_6_numBubbleValues = in1.ReadShort();}" }, { "index": 421, "before": "public static Class lookupClass(String name) {return loader.lookupClass(name);}", "after": "public static Type LookupClass(string name){return loader.LookupClass(name);}" }, { "index": 422, "before": "public GetPublicKeyResult getPublicKey(GetPublicKeyRequest request) {request = beforeClientExecution(request);return executeGetPublicKey(request);}", "after": "public virtual GetPublicKeyResponse GetPublicKey(GetPublicKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPublicKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPublicKeyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 423, "before": "public CreateLocalGatewayRouteTableVpcAssociationResult createLocalGatewayRouteTableVpcAssociation(CreateLocalGatewayRouteTableVpcAssociationRequest request) {request = beforeClientExecution(request);return executeCreateLocalGatewayRouteTableVpcAssociation(request);}", "after": "public virtual CreateLocalGatewayRouteTableVpcAssociationResponse CreateLocalGatewayRouteTableVpcAssociation(CreateLocalGatewayRouteTableVpcAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLocalGatewayRouteTableVpcAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLocalGatewayRouteTableVpcAssociationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 424, "before": "public static boolean toBoolean(String stringValue) {if (stringValue == null)throw new NullPointerException(JGitText.get().expectedBooleanStringValue);final Boolean bool = toBooleanOrNull(stringValue);if (bool == null)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().notABoolean, stringValue));return bool.booleanValue();}", "after": "public static bool ToBoolean(string stringValue){if (stringValue == null){throw new ArgumentNullException(JGitText.Get().expectedBooleanStringValue);}bool? @bool = ToBooleanOrNull(stringValue);if (@bool == null){throw new ArgumentException(MessageFormat.Format(JGitText.Get().notABoolean, stringValue));}return @bool.Value;}" }, { "index": 425, "before": "public Set getAdded() {return Collections.unmodifiableSet(diff.getAdded());}", "after": "public virtual ICollection GetAdded(){return Sharpen.Collections.UnmodifiableSet(diff.GetAdded());}" }, { "index": 426, "before": "public Set getNames(String section) {return getNames(section, null);}", "after": "public virtual ICollection GetNames(string section){return GetNames(section, null);}" }, { "index": 427, "before": "public DescribeCacheClustersResult describeCacheClusters(DescribeCacheClustersRequest request) {request = beforeClientExecution(request);return executeDescribeCacheClusters(request);}", "after": "public virtual DescribeCacheClustersResponse DescribeCacheClusters(DescribeCacheClustersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCacheClustersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCacheClustersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 428, "before": "public List getUnmergedPaths() {return unmergedPaths;}", "after": "public virtual IList GetUnmergedPaths(){return unmergedPaths;}" }, { "index": 429, "before": "public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {if (args.length != 2) {return ErrorEval.VALUE_INVALID;}return evaluate(ec.getRowIndex(), ec.getColumnIndex(), args[0], args[1]);}", "after": "public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){if (args.Length != 2){return ErrorEval.VALUE_INVALID;}return Evaluate(ec.RowIndex, ec.ColumnIndex, args[0], args[1]);}" }, { "index": 430, "before": "public int addString(UnicodeString string){field_1_num_strings++;UnicodeString ucs = ( string == null ) ? EMPTY_STRING: string;int rval;int index = field_3_strings.getIndex(ucs);if ( index != -1 ) {rval = index;} else {rval = field_3_strings.size();field_2_num_unique_strings++;SSTDeserializer.addToStringTable( field_3_strings, ucs );}return rval;}", "after": "public int AddString(UnicodeString str){field_1_num_strings++;UnicodeString ucs = (str == null) ? EMPTY_STRING: str;int rval;int index = field_3_strings.GetIndex(ucs);if (index != -1){rval = index;}else{rval = field_3_strings.Size;field_2_num_unique_strings++;SSTDeserializer.AddToStringTable(field_3_strings, ucs);}return rval;}" }, { "index": 431, "before": "public long getDeltaSearchMemoryLimit() {return deltaSearchMemoryLimit;}", "after": "public virtual long GetDeltaSearchMemoryLimit(){return deltaSearchMemoryLimit;}" }, { "index": 432, "before": "public String toString() {return \"Token(\\\"\" + new String(surfaceForm, offset, length) + \"\\\" pos=\" + position + \" length=\" + length +\" posLen=\" + positionLength + \" type=\" + type + \" wordId=\" + wordId +\" leftID=\" + dictionary.getLeftId(wordId) + \")\";}", "after": "public override string ToString(){return \"Token(\\\"\" + new string(surfaceForm, offset, length) + \"\\\" pos=\" + position + \" length=\" + length +\" posLen=\" + positionLength + \" type=\" + type + \" wordId=\" + wordId +\" leftID=\" + dictionary.GetLeftId(wordId) + \")\";}" }, { "index": 433, "before": "public String toFormulaString(FormulaRenderingWorkbook book) {return ExternSheetNameResolver.prependSheetName(book, field_1_index_extern_sheet, formatReferenceAsString());}", "after": "public String ToFormulaString(IFormulaRenderingWorkbook book){return ExternSheetNameResolver.PrependSheetName(book, field_1_index_extern_sheet, FormatReferenceAsString());}" }, { "index": 434, "before": "public E get(int index) {return (E) elements[index];}", "after": "public virtual E get(int index){return (E)elements[index];}" }, { "index": 435, "before": "public byte[] getCachedBytes() {return data;}", "after": "public override byte[] GetCachedBytes(){return data;}" }, { "index": 436, "before": "public DescribeConnectionsResult describeConnections() {return describeConnections(new DescribeConnectionsRequest());}", "after": "public virtual DescribeConnectionsResponse DescribeConnections(){return DescribeConnections(new DescribeConnectionsRequest());}" }, { "index": 437, "before": "public void ensureCapacity(int minimumCapacity) {Object[] a = array;if (a.length < minimumCapacity) {Object[] newArray = new Object[minimumCapacity];System.arraycopy(a, 0, newArray, 0, size);array = newArray;modCount++;}}", "after": "public virtual void ensureCapacity(int minimumCapacity){object[] a = array;if (a.Length < minimumCapacity){object[] newArray = new object[minimumCapacity];System.Array.Copy(a, 0, newArray, 0, _size);array = newArray;modCount++;}}" }, { "index": 438, "before": "public DeleteLifecycleHookResult deleteLifecycleHook(DeleteLifecycleHookRequest request) {request = beforeClientExecution(request);return executeDeleteLifecycleHook(request);}", "after": "public virtual DeleteLifecycleHookResponse DeleteLifecycleHook(DeleteLifecycleHookRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLifecycleHookRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLifecycleHookResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 439, "before": "public final float maxBytesPerChar() {return maxBytesPerChar;}", "after": "public float maxBytesPerChar(){return _maxBytesPerChar;}" }, { "index": 440, "before": "public BlankCellRectangleGroup(int firstRowIndex, int firstColumnIndex, int lastColumnIndex) {_firstRowIndex = firstRowIndex;_firstColumnIndex = firstColumnIndex;_lastColumnIndex = lastColumnIndex;_lastRowIndex = firstRowIndex;}", "after": "public BlankCellRectangleGroup(int firstRowIndex, int firstColumnIndex, int lastColumnIndex){_firstRowIndex = firstRowIndex;_firstColumnIndex = firstColumnIndex;_lastColumnIndex = lastColumnIndex;_lastRowIndex = firstRowIndex;}" }, { "index": 441, "before": "public int findEndOfRowOutlineGroup(int row) {int level = getRow( row ).getOutlineLevel();int currentRow;for (currentRow = row; currentRow < getLastRowNum(); currentRow++) {if (getRow(currentRow) == null || getRow(currentRow).getOutlineLevel() < level) {break;}}return currentRow-1;}", "after": "public int FindEndOfRowOutlineGroup(int row){int level = GetRow(row).OutlineLevel;int currentRow;for (currentRow = row; currentRow < this.LastRowNum; currentRow++){if (GetRow(currentRow) == null || GetRow(currentRow).OutlineLevel < level){break;}}return currentRow - 1;}" }, { "index": 442, "before": "public String getEncoding() {if (encoder == null) {return null;}return HistoricalCharsetNames.get(encoder.charset());}", "after": "public virtual string getEncoding(){if (encoder == null){return null;}return java.io.HistoricalCharsetNames.get(encoder.charset());}" }, { "index": 443, "before": "public void clearAllCachedResultValues() {_cache.clear();_sheetIndexesBySheet.clear();_workbook.clearAllCachedResultValues();}", "after": "public void ClearAllCachedResultValues(){_cache.Clear();_sheetIndexesBySheet.Clear();}" }, { "index": 444, "before": "public final String toString() {StringBuilder sb = new StringBuilder();String recordName = getRecordName();sb.append(\"[\").append(recordName).append(\"]\\n\");sb.append(\" .row = \").append(HexDump.shortToHex(getRow())).append(\"\\n\");sb.append(\" .col = \").append(HexDump.shortToHex(getColumn())).append(\"\\n\");if (isBiff2()) {sb.append(\" .cellattrs = \").append(HexDump.shortToHex(getCellAttrs())).append(\"\\n\");} else {sb.append(\" .xfindex = \").append(HexDump.shortToHex(getXFIndex())).append(\"\\n\");}appendValueText(sb);sb.append(\"\\n\");sb.append(\"[/\").append(recordName).append(\"]\\n\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();String recordName = this.RecordName;sb.Append(\"[\").Append(recordName).Append(\"]\\n\");sb.Append(\" .row = \").Append(HexDump.ShortToHex(Row)).Append(\"\\n\");sb.Append(\" .col = \").Append(HexDump.ShortToHex(Column)).Append(\"\\n\");if (IsBiff2){sb.Append(\" .cellattrs = \").Append(HexDump.ShortToHex(CellAttrs)).Append(\"\\n\");}else{sb.Append(\" .xFindex = \").Append(HexDump.ShortToHex(XFIndex)).Append(\"\\n\");}AppendValueText(sb);sb.Append(\"\\n\");sb.Append(\"[/\").Append(recordName).Append(\"]\\n\");return sb.ToString();}" }, { "index": 445, "before": "public DescribeDBClusterEndpointsResult describeDBClusterEndpoints(DescribeDBClusterEndpointsRequest request) {request = beforeClientExecution(request);return executeDescribeDBClusterEndpoints(request);}", "after": "public virtual DescribeDBClusterEndpointsResponse DescribeDBClusterEndpoints(DescribeDBClusterEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBClusterEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBClusterEndpointsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 446, "before": "public boolean renameTo(final String newName){boolean rval = false;if (!isRoot()){rval = _parent.changeName(getName(), newName);}return rval;}", "after": "public bool RenameTo(String newName){bool rval = false;if (!IsRoot){rval = _parent.ChangeName(Name, newName);}return rval;}" }, { "index": 447, "before": "public Explanation explain(Explanation freq, long norm) {List subs = new ArrayList<>();for (SimScorer subScorer : subScorers) {subs.add(subScorer.explain(freq, norm));}return Explanation.match(score(freq.getValue().floatValue(), norm), \"sum of:\", subs);}", "after": "public override Explanation Explain(int doc, Explanation freq){Explanation expl = new Explanation(Score(doc, freq.Value), \"sum of:\");foreach (SimScorer subScorer in subScorers){expl.AddDetail(subScorer.Explain(doc, freq));}return expl;}" }, { "index": 448, "before": "public DocTermsIndexDocValues(ValueSource vs, LeafReaderContext context, String field) throws IOException {this(vs, open(context, field));}", "after": "public DocTermsIndexDocValues(ValueSource vs, AtomicReaderContext context, string field){try{m_termsIndex = FieldCache.DEFAULT.GetTermsIndex(context.AtomicReader, field);}catch (Exception e){throw new DocTermsIndexException(field, e);}this.m_vs = vs;}" }, { "index": 449, "before": "public static int compareTo(Ref o1, Ref o2) {return o1.getName().compareTo(o2.getName());}", "after": "public static int CompareTo(Ref o1, string o2){return Sharpen.Runtime.CompareOrdinal(o1.GetName(), o2);}" }, { "index": 450, "before": "public Dimension getImageDimension(){InternalWorkbook iwb = getPatriarch().getSheet().getWorkbook().getWorkbook();EscherBSERecord bse = iwb.getBSERecord(getPictureIndex());byte[] data = bse.getBlipRecord().getPicturedata();int type = bse.getBlipTypeWin32();return ImageUtils.getImageDimension(new ByteArrayInputStream(data), type);}", "after": "public Size GetImageDimension(){InternalWorkbook iwb = (_patriarch.Sheet.Workbook as HSSFWorkbook).Workbook;EscherBSERecord bse = iwb.GetBSERecord(PictureIndex);byte[] data = bse.BlipRecord.PictureData;using (MemoryStream ms = new MemoryStream(data)){using (Image img = Image.FromStream(ms)){return img.Size;}}}" }, { "index": 451, "before": "public static double var(double[] v) {double r = Double.NaN;if (v!=null && v.length > 1) {r = devsq(v) / (v.length - 1);}return r;}", "after": "public static double var(double[] v){double r = Double.NaN;if (v != null && v.Length > 1){r = devsq(v) / (v.Length - 1);}return r;}" }, { "index": 452, "before": "public UpdateCloudFrontOriginAccessIdentityRequest(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig, String id, String ifMatch) {setCloudFrontOriginAccessIdentityConfig(cloudFrontOriginAccessIdentityConfig);setId(id);setIfMatch(ifMatch);}", "after": "public UpdateCloudFrontOriginAccessIdentityRequest(string id, string ifMatch, CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig){_id = id;_ifMatch = ifMatch;_cloudFrontOriginAccessIdentityConfig = cloudFrontOriginAccessIdentityConfig;}" }, { "index": 453, "before": "public DiffCommand setDestinationPrefix(String destinationPrefix) {this.destinationPrefix = destinationPrefix;return this;}", "after": "public virtual NGit.Api.DiffCommand SetDestinationPrefix(string destinationPrefix){this.destinationPrefix = destinationPrefix;return this;}" }, { "index": 454, "before": "public int available() throws IOException {return IoBridge.available(fd);}", "after": "public override int available(){throw new System.NotImplementedException();}" }, { "index": 455, "before": "final public SrndQuery NotQuery() throws ParseException {SrndQuery q;ArrayList queries = null;Token oprt = null;q = NQuery();label_4:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case NOT:;break;default:jj_la1[2] = jj_gen;break label_4;}oprt = jj_consume_token(NOT);if (queries == null) {queries = new ArrayList();queries.add(q);}q = NQuery();queries.add(q);}{if (true) return (queries == null) ? q : getNotQuery(queries, oprt);}throw new Error(\"Missing return statement in function\");}", "after": "public SrndQuery NotQuery(){SrndQuery q;IList queries = null;Token oprt = null;q = NQuery();while (true){switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.NOT:;break;default:jj_la1[2] = jj_gen;goto label_4;}oprt = Jj_consume_token(RegexpToken.NOT);if (queries == null){queries = new List();queries.Add(q);}q = NQuery();queries.Add(q);}label_4:{ if (true) return (queries == null) ? q : GetNotQuery(queries, oprt); }throw new Exception(\"Missing return statement in function\");}" }, { "index": 456, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append('[').append(\"USERSVIEWEND\").append(\"] (0x\");sb.append(Integer.toHexString(sid).toUpperCase(Locale.ROOT)).append(\")\\n\");sb.append(\" rawData=\").append(HexDump.toHex(_rawData)).append(\"\\n\");sb.append(\"[/\").append(\"USERSVIEWEND\").append(\"]\\n\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(\"[\").Append(\"USERSVIEWEND\").Append(\"] (0x\");sb.Append(StringUtil.ToHexString(sid).ToUpper() + \")\\n\");sb.Append(\" rawData=\").Append(HexDump.ToHex(_rawData)).Append(\"\\n\");sb.Append(\"[/\").Append(\"USERSVIEWEND\").Append(\"]\\n\");return sb.ToString();}" }, { "index": 457, "before": "public FloatBuffer asReadOnlyBuffer() {FloatToByteBufferAdapter buf = new FloatToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf.limit = limit;buf.position = position;buf.mark = mark;buf.byteBuffer.order = byteBuffer.order;return buf;}", "after": "public override java.nio.FloatBuffer asReadOnlyBuffer(){java.nio.FloatToByteBufferAdapter buf = new java.nio.FloatToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf._limit = _limit;buf._position = _position;buf._mark = _mark;buf.byteBuffer._order = byteBuffer._order;return buf;}" }, { "index": 458, "before": "public LogCommand log() {return new LogCommand(repo);}", "after": "public virtual LogCommand Log(){return new LogCommand(repo);}" }, { "index": 459, "before": "public CreateDomainResult createDomain(CreateDomainRequest request) {request = beforeClientExecution(request);return executeCreateDomain(request);}", "after": "public virtual CreateDomainResponse CreateDomain(CreateDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 460, "before": "public int getWeight() {return WEIGHT_UNKNOWN;}", "after": "public virtual int GetWeight(){return WEIGHT_UNKNOWN;}" }, { "index": 461, "before": "public ChartStartObjectRecord(RecordInputStream in) {rt = in.readShort();grbitFrt = in.readShort();iObjectKind = in.readShort();iObjectContext = in.readShort();iObjectInstance1 = in.readShort();iObjectInstance2 = in.readShort();}", "after": "public ChartStartObjectRecord(RecordInputStream in1){rt = in1.ReadShort();grbitFrt = in1.ReadShort();iObjectKind = in1.ReadShort();iObjectContext = in1.ReadShort();iObjectInstance1 = in1.ReadShort();iObjectInstance2 = in1.ReadShort();}" }, { "index": 462, "before": "public void remove() {if (lastReturned == null)throw new IllegalStateException();ConcurrentHashMap.this.remove(lastReturned.key);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": 463, "before": "public DescribeMetricCollectionTypesResult describeMetricCollectionTypes(DescribeMetricCollectionTypesRequest request) {request = beforeClientExecution(request);return executeDescribeMetricCollectionTypes(request);}", "after": "public virtual DescribeMetricCollectionTypesResponse DescribeMetricCollectionTypes(DescribeMetricCollectionTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeMetricCollectionTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeMetricCollectionTypesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 464, "before": "public UpdateFieldLevelEncryptionProfileResult updateFieldLevelEncryptionProfile(UpdateFieldLevelEncryptionProfileRequest request) {request = beforeClientExecution(request);return executeUpdateFieldLevelEncryptionProfile(request);}", "after": "public virtual UpdateFieldLevelEncryptionProfileResponse UpdateFieldLevelEncryptionProfile(UpdateFieldLevelEncryptionProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFieldLevelEncryptionProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFieldLevelEncryptionProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 465, "before": "public Ref getLeaf() {return this;}", "after": "public virtual Ref GetLeaf(){return this;}" }, { "index": 466, "before": "public int lastIndexOf(Object object) {if (object != null) {for (int i = a.length - 1; i >= 0; i--) {if (object.equals(a[i])) {return i;}}} else {for (int i = a.length - 1; i >= 0; i--) {if (a[i] == null) {return i;}}}return -1;}", "after": "public override int lastIndexOf(object @object){if (@object != null){{for (int i = a.Length - 1; i >= 0; i--){if (@object.Equals(a[i])){return i;}}}}else{{for (int i = a.Length - 1; i >= 0; i--){if ((object)a[i] == null){return i;}}}}return -1;}" }, { "index": 467, "before": "public DefaultBulkScorer(Scorer scorer) {if (scorer == null) {throw new NullPointerException();}this.scorer = scorer;this.iterator = scorer.iterator();this.twoPhase = scorer.twoPhaseIterator();}", "after": "public DefaultBulkScorer(Scorer scorer){if (scorer == null){throw new System.NullReferenceException();}this.scorer = scorer;}" }, { "index": 468, "before": "public CreateRepoAuthorizationRequest() {super(\"cr\", \"2016-06-07\", \"CreateRepoAuthorization\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/authorizations\");setMethod(MethodType.PUT);}", "after": "public CreateRepoAuthorizationRequest(): base(\"cr\", \"2016-06-07\", \"CreateRepoAuthorization\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/authorizations\";Method = MethodType.PUT;}" }, { "index": 469, "before": "public TokenStream create(TokenStream input) {return new PortugueseLightStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new PortugueseLightStemFilter(input);}" }, { "index": 470, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[TABLESTYLES]\\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(\" .cts=\").append(HexDump.intToHex(cts)).append('\\n');buffer.append(\" .rgchDefListStyle=\").append(rgchDefListStyle).append('\\n');buffer.append(\" .rgchDefPivotStyle=\").append(rgchDefPivotStyle).append('\\n');buffer.append(\"[/TABLESTYLES]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[TABLESTYLES]\\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(\" .cts=\").Append(HexDump.IntToHex(cts)).Append('\\n');buffer.Append(\" .rgchDefListStyle=\").Append(rgchDefListStyle).Append('\\n');buffer.Append(\" .rgchDefPivotStyle=\").Append(rgchDefPivotStyle).Append('\\n');buffer.Append(\"[/TABLESTYLES]\\n\");return buffer.ToString();}" }, { "index": 471, "before": "public synchronized Enumeration keys() {return new KeyEnumeration();}", "after": "public override java.util.Enumeration keys(){lock (this){return new java.util.Hashtable.KeyEnumeration(this);}}" }, { "index": 472, "before": "public DescribeInstanceTypesResult describeInstanceTypes(DescribeInstanceTypesRequest request) {request = beforeClientExecution(request);return executeDescribeInstanceTypes(request);}", "after": "public virtual DescribeInstanceTypesResponse DescribeInstanceTypes(DescribeInstanceTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInstanceTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInstanceTypesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 473, "before": "public RefUpdate.Result getResult() {return rc;}", "after": "public virtual RefUpdate.Result GetResult(){return rc;}" }, { "index": 474, "before": "public UpdateBasePathMappingResult updateBasePathMapping(UpdateBasePathMappingRequest request) {request = beforeClientExecution(request);return executeUpdateBasePathMapping(request);}", "after": "public virtual UpdateBasePathMappingResponse UpdateBasePathMapping(UpdateBasePathMappingRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBasePathMappingRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBasePathMappingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 475, "before": "public UpdateDocumentResult updateDocument(UpdateDocumentRequest request) {request = beforeClientExecution(request);return executeUpdateDocument(request);}", "after": "public virtual UpdateDocumentResponse UpdateDocument(UpdateDocumentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDocumentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDocumentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 476, "before": "public void setStreamFileThreshold(int newLimit) {streamFileThreshold = newLimit;}", "after": "public virtual void SetStreamFileThreshold(int newLimit){streamFileThreshold = newLimit;}" }, { "index": 477, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[EXTSST]\\n\");buffer.append(\" .dsst = \").append(Integer.toHexString(_stringsPerBucket)).append(\"\\n\");buffer.append(\" .numInfoRecords = \").append(_sstInfos.length).append(\"\\n\");for (int k = 0; k < _sstInfos.length; k++){buffer.append(\" .inforecord = \").append(k).append(\"\\n\");buffer.append(\" .streampos = \").append(Integer.toHexString(_sstInfos[k].getStreamPos())).append(\"\\n\");buffer.append(\" .sstoffset = \").append(Integer.toHexString(_sstInfos[k].getBucketSSTOffset())).append(\"\\n\");}buffer.append(\"[/EXTSST]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[EXTSST]\\n\");buffer.Append(\" .streampos = \").Append(StringUtil.ToHexString(StreamPos)).Append(\"\\n\");buffer.Append(\" .bucketsstoffset= \").Append(StringUtil.ToHexString(BucketSSTOffset)).Append(\"\\n\");buffer.Append(\" .zero = \").Append(StringUtil.ToHexString(field_3_zero)).Append(\"\\n\");buffer.Append(\"[/EXTSST]\\n\");return buffer.ToString();}" }, { "index": 478, "before": "public void setCRC(int crc) {this.crc = crc;}", "after": "public virtual void SetCRC(int crc){this.crc = crc;}" }, { "index": 479, "before": "public RevFilter getRevFilter() {return filter;}", "after": "public virtual RevFilter GetRevFilter(){return filter;}" }, { "index": 480, "before": "public SrndPrefixQuery(String prefix, boolean quoted, char truncator) {super(quoted);this.prefix = prefix;prefixRef = new BytesRef(prefix);this.truncator = truncator;}", "after": "public SrndPrefixQuery(string prefix, bool quoted, char truncator): base(quoted){this.prefix = prefix;prefixRef = new BytesRef(prefix);this.truncator = truncator;}" }, { "index": 481, "before": "public byte readByte() throws IOException {int v = is.read();if (v == -1) throw new EOFException();return (byte) v;}", "after": "public override byte ReadByte(){int v = _reader.ReadByte();if (v == -1){throw new EndOfStreamException();}return (byte)v;}" }, { "index": 482, "before": "public GetWorkGroupResult getWorkGroup(GetWorkGroupRequest request) {request = beforeClientExecution(request);return executeGetWorkGroup(request);}", "after": "public virtual GetWorkGroupResponse GetWorkGroup(GetWorkGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetWorkGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = GetWorkGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 483, "before": "public PutBlockPublicAccessConfigurationResult putBlockPublicAccessConfiguration(PutBlockPublicAccessConfigurationRequest request) {request = beforeClientExecution(request);return executePutBlockPublicAccessConfiguration(request);}", "after": "public virtual PutBlockPublicAccessConfigurationResponse PutBlockPublicAccessConfiguration(PutBlockPublicAccessConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutBlockPublicAccessConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutBlockPublicAccessConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 484, "before": "public String toString() {final StringBuilder r = new StringBuilder();r.append('[');for (int i = 0; i < count; i++) {if (i > 0)r.append(\", \"); r.append(entries[i]);}r.append(']');return r.toString();}", "after": "public override string ToString(){StringBuilder r = new StringBuilder();r.Append('[');for (int i = 0; i < count; i++){if (i > 0){r.Append(\", \");}r.Append(entries[i]);}r.Append(']');return r.ToString();}" }, { "index": 485, "before": "public int get(int index) {checkIndex(index);return byteBuffer.getInt(index * SizeOf.INT);}", "after": "public override int get(int index){checkIndex(index);return byteBuffer.getInt(index * libcore.io.SizeOf.INT);}" }, { "index": 486, "before": "public CreateAlbumRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"CreateAlbum\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public CreateAlbumRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"CreateAlbum\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 487, "before": "public FileTreeIterator(File root, FS fs, WorkingTreeOptions options) {this(root, fs, options, DefaultFileModeStrategy.INSTANCE);}", "after": "public FileTreeIterator(FilePath root, FS fs, WorkingTreeOptions options) : base(options){directory = root;this.fs = fs;Init(Entries());}" }, { "index": 488, "before": "public int byteAt(int idx) {return bytes[idx].value;}", "after": "public virtual int ByteAt(int idx){return bytes[idx].Value;}" }, { "index": 489, "before": "public DescribeTypeRegistrationResult describeTypeRegistration(DescribeTypeRegistrationRequest request) {request = beforeClientExecution(request);return executeDescribeTypeRegistration(request);}", "after": "public virtual DescribeTypeRegistrationResponse DescribeTypeRegistration(DescribeTypeRegistrationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTypeRegistrationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTypeRegistrationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 490, "before": "public TerminateInstancesResult terminateInstances(TerminateInstancesRequest request) {request = beforeClientExecution(request);return executeTerminateInstances(request);}", "after": "public virtual TerminateInstancesResponse TerminateInstances(TerminateInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = TerminateInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = TerminateInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 491, "before": "public DoubleBuffer duplicate() {ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());DoubleToByteBufferAdapter buf = new DoubleToByteBufferAdapter(bb);buf.limit = limit;buf.position = position;buf.mark = mark;return buf;}", "after": "public override java.nio.DoubleBuffer duplicate(){java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());java.nio.DoubleToByteBufferAdapter buf = new java.nio.DoubleToByteBufferAdapter(bb);buf._limit = _limit;buf._position = _position;buf._mark = _mark;return buf;}" }, { "index": 492, "before": "public OR(SemanticContext a, SemanticContext b) {Set operands = new HashSet();if ( a instanceof OR ) operands.addAll(Arrays.asList(((OR)a).opnds));else operands.add(a);if ( b instanceof OR ) operands.addAll(Arrays.asList(((OR)b).opnds));else operands.add(b);List precedencePredicates = filterPrecedencePredicates(operands);if (!precedencePredicates.isEmpty()) {PrecedencePredicate reduced = Collections.max(precedencePredicates);operands.add(reduced);}this.opnds = operands.toArray(new SemanticContext[operands.size()]);}", "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": 493, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(_formats.length);for(int i=0; i<_formats.length; i++){_formats[i].serialize(out);}}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(m_formats.Count);for (int i = 0; i < m_formats.Count; i++){((CTFormat)m_formats[i]).Serialize(out1);}}" }, { "index": 494, "before": "public DescribeAvailabilityOptionsResult describeAvailabilityOptions(DescribeAvailabilityOptionsRequest request) {request = beforeClientExecution(request);return executeDescribeAvailabilityOptions(request);}", "after": "public virtual DescribeAvailabilityOptionsResponse DescribeAvailabilityOptions(DescribeAvailabilityOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAvailabilityOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAvailabilityOptionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 495, "before": "public int getOffset() {return offset;}", "after": "public virtual int GetOffset(){return offset;}" }, { "index": 496, "before": "public static float[] grow(float[] array) {return grow(array, 1 + array.length);}", "after": "public static float[] Grow(float[] array){return Grow(array, 1 + array.Length);}" }, { "index": 497, "before": "public ListMetricsResult listMetrics() {return listMetrics(new ListMetricsRequest());}", "after": "public virtual ListMetricsResponse ListMetrics(){return ListMetrics(new ListMetricsRequest());}" }, { "index": 498, "before": "public int findFirstRecordLocBySid(short sid) {int index = 0;for (org.apache.poi.hssf.record.Record record : records.getRecords() ) {if (record.getSid() == sid) {return index;}index ++;}return -1;}", "after": "public int FindFirstRecordLocBySid(short sid){int index = 0;for (IEnumerator iterator = records.GetEnumerator(); iterator.MoveNext(); ){Record record = (Record)iterator.Current;if (record.Sid == sid){return index;}index++;}return -1;}" }, { "index": 499, "before": "public DeleteVpnConnectionRouteResult deleteVpnConnectionRoute(DeleteVpnConnectionRouteRequest request) {request = beforeClientExecution(request);return executeDeleteVpnConnectionRoute(request);}", "after": "public virtual DeleteVpnConnectionRouteResponse DeleteVpnConnectionRoute(DeleteVpnConnectionRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpnConnectionRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpnConnectionRouteResponseUnmarshaller.Instance;return Invoke(request, options);}" } ]