yijunyu/c-to-rust huggingface dataset:
// Original:
public Query makeQuery(int size) throws Exception {throw new Exception(this+".makeQuery(int size) is not supported!");}

// Translation:
public virtual Query MakeQuery(int size){throw new Exception(this + ".MakeQuery(int size) is not supported!");}
// Original:
public StringBuilder insert(int offset, float f) {insert0(offset, Float.toString(f));return this;}

// Translation:
public java.lang.StringBuilder insert(int offset, float f){insert0(offset, System.Convert.ToString(f));return this;}
// Original:
public Class<ConfigChangedListener> getListenerType() {return ConfigChangedListener.class;}

// Translation:
public override Type GetListenerType(){return typeof(ConfigChangedListener);}
// Original:
public AddPermissionResult addPermission(AddPermissionRequest request) {request = beforeClientExecution(request);return executeAddPermission(request);}

// Translation:
public virtual AddPermissionResponse AddPermission(AddPermissionRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddPermissionRequestMarshaller.Instance;options.ResponseUnmarshaller = AddPermissionResponseUnmarshaller.Instance;return Invoke<AddPermissionResponse>(request, options);}
// Original:
public double get(int index) {checkIndex(index);return byteBuffer.getDouble(index * SizeOf.DOUBLE);}

// Translation:
public override double get(int index){checkIndex(index);return byteBuffer.getDouble(index * libcore.io.SizeOf.DOUBLE);}
// Original:
public HSSFDataFormat createDataFormat() {return workbook.createDataFormat();}

// Translation:
public NPOI.SS.UserModel.IDataFormat CreateDataFormat(){return dataFormat;}
// Original:
public TermData add(TermData t1, TermData t2) {if (t1 == NO_OUTPUT) {return t2;} else if (t2 == NO_OUTPUT) {return t1;}TermData ret;if (t2.bytes != null || t2.docFreq > 0) {ret = new TermData(t2.bytes, t2.docFreq, t2.totalTermFreq);} else {ret = new TermData(t1.bytes, t1.docFreq, t1.totalTermFreq);}return ret;}

// Translation:
public override TermData Add(TermData t1, TermData t2){if (Equals(t1, NO_OUTPUT))return t2;if (Equals(t2, NO_OUTPUT))return t1;Debug.Assert(t1.longs.Length == t2.longs.Length);var pos = 0;var accum = new long[_longsSize];while (pos < _longsSize){accum[pos] = t1.longs[pos] + t2.longs[pos];pos++;}TermData ret;if (t2.bytes != null || t2.docFreq > 0){ret = new TermData(accum, t2.bytes, t2.docFreq, t2.totalTermFreq);}else{ret = new TermData(accum, t1.bytes, t1.docFreq, t1.totalTermFreq);}return ret;}
// Original:
public FileSharingRecord(RecordInputStream in) {field_1_readonly = in.readShort();field_2_password = in.readShort();int nameLen = in.readShort();if(nameLen > 0) {field_3_username_unicode_options = in.readByte();field_3_username_value = in.readCompressedUnicode(nameLen);} else {field_3_username_value = "";}}

// Translation:
public FileSharingRecord(RecordInputStream in1){field_1_Readonly = in1.ReadShort();field_2_password = in1.ReadShort();int nameLen = in1.ReadShort();if (nameLen > 0){field_3_username_unicode_options = (byte)in1.ReadByte();field_3_username_value = in1.ReadCompressedUnicode(nameLen);if (field_3_username_value == null){field_3_username_value = "";}}else{field_3_username_value = "";}}
// Original:
public double computeProbability(BasicStats stats) {return (stats.getTotalTermFreq()+1D) / (stats.getNumberOfFieldTokens()+1D);}

// Translation:
public virtual float ComputeProbability(BasicStats stats){return (stats.TotalTermFreq + 1F) / (stats.NumberOfFieldTokens + 1F);}
// Original:
public StringCharacterIterator(String value) {string = value;start = offset = 0;end = string.length();}

// Translation:
public StringCharacterIterator(string value){@string = value;start = offset = 0;end = @string.Length;}
// Original:
public void start(String originalText, TokenStream tokenStream) {position = -1;currentNumFrags = 1;textSize = originalText.length();termAtt = tokenStream.addAttribute(CharTermAttribute.class);posIncAtt = tokenStream.addAttribute(PositionIncrementAttribute.class);offsetAtt = tokenStream.addAttribute(OffsetAttribute.class);}

// Translation:
public virtual void Start(string originalText, TokenStream tokenStream){position = -1;currentNumFrags = 1;textSize = originalText.Length;termAtt = tokenStream.AddAttribute<ICharTermAttribute>();posIncAtt = tokenStream.AddAttribute<IPositionIncrementAttribute>();offsetAtt = tokenStream.AddAttribute<IOffsetAttribute>();}
// Original:
public String getSignerVersion() {return null;}

// Translation:
public override string GetSignerVersion(){return "1.0";}
// Original:
public String toString() {StringBuilder b = new StringBuilder();b.append("initial state: 0\n");for (int i = 0; i < size; i++) {b.append("state ").append(i);if (accept.get(i)) b.append(" [accept]:\n");else b.append(" [reject]:\n");for (int j = 0; j < points.length; j++) {int k = transitions[i * points.length + j];if (k != -1) {int min = points[j];int max;if (j + 1 < points.length) max = (points[j + 1] - 1);else max = alphabetSize;b.append(" ");Automaton.appendCharString(min, b);if (min != max) {b.append("-");Automaton.appendCharString(max, b);}b.append(" -> ").append(k).append("\n");}}}return b.toString();}

// Translation:
public override string ToString(){var b = new StringBuilder();b.Append("initial state: ").Append(m_initial).Append("\n");for (int i = 0; i < _size; i++){b.Append("state " + i);if (m_accept[i]){b.Append(" [accept]:\n");}else{b.Append(" [reject]:\n");}for (int j = 0; j < _points.Length; j++){int k = m_transitions[i * _points.Length + j];if (k != -1){int min = _points[j];int max;if (j + 1 < _points.Length){max = (_points[j + 1] - 1);}else{max = _maxInterval;}b.Append(" ");Transition.AppendCharString(min, b);if (min != max){b.Append("-");Transition.AppendCharString(max, b);}b.Append(" -> ").Append(k).Append("\n");}}}return b.ToString();}
// Original:
public synchronized long skip(long charCount) {if (charCount <= 0) {return 0;}int numskipped;if (this.count - pos < charCount) {numskipped = this.count - pos;pos = this.count;} else {numskipped = (int) charCount;pos += charCount;}return numskipped;}

// Translation:
public override long skip(long charCount){lock (this){if (charCount <= 0){return 0;}int numskipped;if (this.count - pos < charCount){numskipped = this.count - pos;pos = this.count;}else{numskipped = (int)charCount;pos += (int)(charCount);}return numskipped;}}
// Original:
@Override public ListIterator<E> listIterator(int location) {synchronized (mutex) {return list.listIterator(location);}}

// Translation:
public virtual java.util.ListIterator<E> listIterator(int location){lock (mutex){return list.listIterator(location);}}
// Original:
public CreateAddressBookResult createAddressBook(CreateAddressBookRequest request) {request = beforeClientExecution(request);return executeCreateAddressBook(request);}

// Translation:
public virtual CreateAddressBookResponse CreateAddressBook(CreateAddressBookRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAddressBookRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAddressBookResponseUnmarshaller.Instance;return Invoke<CreateAddressBookResponse>(request, options);}
// Original:
public StreamCopyThread(InputStream i, OutputStream o) {setName(Thread.currentThread().getName() + "-StreamCopy"); src = i;dst = o;writeLock = new Object();}

// Translation:
public StreamCopyThread(InputStream i, OutputStream o){SetName(Sharpen.Thread.CurrentThread().GetName() + "-StreamCopy");src = i;dst = o;}
// Original:
public AxisParentRecord(RecordInputStream in) {field_1_axisType = in.readShort();field_2_x        = in.readInt();field_3_y        = in.readInt();field_4_width    = in.readInt();field_5_height   = in.readInt();}

// Translation:
public AxisParentRecord(RecordInputStream in1){field_1_axisType = in1.ReadShort();field_2_x = in1.ReadInt();field_3_y = in1.ReadInt();field_4_width = in1.ReadInt();field_5_height = in1.ReadInt();}
// Original:
public FieldFragList createFieldFragList( FieldPhraseList fieldPhraseList, int fragCharSize ){return createFieldFragList( fieldPhraseList, new WeightedFieldFragList( fragCharSize ), fragCharSize );}

// Translation:
public override FieldFragList CreateFieldFragList(FieldPhraseList fieldPhraseList, int fragCharSize){return CreateFieldFragList(fieldPhraseList, new WeightedFieldFragList(fragCharSize), fragCharSize);}
// Original:
public TrimFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public TrimFilterFactory(IDictionary<string, string> args): base(args){m_updateOffsets = GetBoolean(args, "updateOffsets", false);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public void push( TermInfo termInfo ){termList.push( termInfo );}

// Translation:
public virtual void Push(TermInfo termInfo){termList.Insert(0, termInfo);}
// Original:
public DescribeNotebookInstanceResult describeNotebookInstance(DescribeNotebookInstanceRequest request) {request = beforeClientExecution(request);return executeDescribeNotebookInstance(request);}

// Translation:
public virtual DescribeNotebookInstanceResponse DescribeNotebookInstance(DescribeNotebookInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNotebookInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNotebookInstanceResponseUnmarshaller.Instance;return Invoke<DescribeNotebookInstanceResponse>(request, options);}
// Original:
public String toFormulaString(){return ":";}

// Translation:
public override String ToFormulaString(){return ":";}
// Original:
public ApplyCommand setPatch(InputStream in) {checkCallable();this.in = in;return this;}

// Translation:
public virtual NGit.Api.ApplyCommand SetPatch(InputStream @in){CheckCallable();this.@in = @in;return this;}
// Original:
public void setCreationTime(long when) {encodeTS(P_CTIME, when);}

// Translation:
public virtual void SetCreationTime(long when){EncodeTS(P_CTIME, when);}
// Original:
public static final RevFilter before(Date ts) {return before(ts.getTime());}

// Translation:
public static RevFilter Before(long ts){return new CommitTimeRevFilterBefore(ts);}
// Original:
public void advertiseCapability(String name) {capablities.add(name);}

// Translation:
public virtual void AdvertiseCapability(string name){capablities.AddItem(name);}
// Original:
public StopInstancesRequest(java.util.List<String> instanceIds) {setInstanceIds(instanceIds);}

// Translation:
public StopInstancesRequest(List<string> instanceIds){_instanceIds = instanceIds;}
// Original:
public CreateVpnGatewayResult createVpnGateway(CreateVpnGatewayRequest request) {request = beforeClientExecution(request);return executeCreateVpnGateway(request);}

// Translation:
public virtual CreateVpnGatewayResponse CreateVpnGateway(CreateVpnGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVpnGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVpnGatewayResponseUnmarshaller.Instance;return Invoke<CreateVpnGatewayResponse>(request, options);}
// Original:
public ResetCacheParameterGroupResult resetCacheParameterGroup(ResetCacheParameterGroupRequest request) {request = beforeClientExecution(request);return executeResetCacheParameterGroup(request);}

// Translation:
public virtual ResetCacheParameterGroupResponse ResetCacheParameterGroup(ResetCacheParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetCacheParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetCacheParameterGroupResponseUnmarshaller.Instance;return Invoke<ResetCacheParameterGroupResponse>(request, options);}
// Original:
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {double result;try {double d0 = singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = singleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);result = evaluate(d0, d1);if (result == 0.0) { if (!(this instanceof SubtractEvalClass)) {return NumberEval.ZERO;}}if (Double.isNaN(result) || Double.isInfinite(result)) {return ErrorEval.NUM_ERROR;}} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}

// Translation:
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){double result;try{double d0 = SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);result = Evaluate(d0, d1);if (result == 0.0){ if (!(this is SubtractEval)){return NumberEval.ZERO;}}if (Double.IsNaN(result) || Double.IsInfinity(result)){return ErrorEval.NUM_ERROR;}}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}
// Original:
public PutMetricFilterRequest(String logGroupName, String filterName, String filterPattern, java.util.List<MetricTransformation> metricTransformations) {setLogGroupName(logGroupName);setFilterName(filterName);setFilterPattern(filterPattern);setMetricTransformations(metricTransformations);}

// Translation:
public PutMetricFilterRequest(string logGroupName, string filterName, string filterPattern, List<MetricTransformation> metricTransformations){_logGroupName = logGroupName;_filterName = filterName;_filterPattern = filterPattern;_metricTransformations = metricTransformations;}
// Original:
@Override public E get(int location) {synchronized (mutex) {return list.get(location);}}

// Translation:
public virtual E get(int location){lock (mutex){return list.get(location);}}
// Original:
public IntPtg(int value) {if (!isInRange(value)) {throw new IllegalArgumentException("value is out of range: " + value);}field_1_value = value;}

// Translation:
public IntPtg(int value){if (!IsInRange(value)){throw new ArgumentException("value is out of range: " + value);}field_1_value = value;}
// Original:
public Builder() {this(16, 16);}

// Translation:
public Builder(): base(){lastDocID = -1;wordNum = -1;word = 0;}
// Original:
public long getItemId(int position) {return position;}

// Translation:
public override long getItemId(int position){return position;}
// Original:
public ByteBuffer putDouble(int index, double value) {return putLong(index, Double.doubleToRawLongBits(value));}

// Translation:
public override java.nio.ByteBuffer putDouble(int index, double value){return putLong(index, Sharpen.Util.DoubleToRawLongBits(value));}
// Original:
public void clear() {value = false;}

// Translation:
public override void Clear(){value = false;}
// Original:
public CharVector(char[] a) {blockSize = DEFAULT_BLOCK_SIZE;array = a;n = a.length;}

// Translation:
public CharVector(char[] a){blockSize = DEFAULT_BLOCK_SIZE;array = a;n = a.Length;}
// Original:
public UAX29URLEmailTokenizerFactory(Map<String,String> args) {super(args);maxTokenLength = getInt(args, "maxTokenLength", StandardAnalyzer.DEFAULT_MAX_TOKEN_LENGTH);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public UAX29URLEmailTokenizerFactory(IDictionary<string, string> args): base(args){AssureMatchVersion();maxTokenLength = GetInt32(args, "maxTokenLength", StandardAnalyzer.DEFAULT_MAX_TOKEN_LENGTH);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public long ramBytesUsed() {long sizeInBytes = 0;for(FieldIndexData entry : fields.values()) {sizeInBytes += entry.ramBytesUsed();}return sizeInBytes;}

// Translation:
public virtual long RamBytesUsed(){return fst == null ? 0 : fst.GetSizeInBytes();}
// Original:
public boolean equals(Object other) {if (!(other instanceof CharBuffer)) {return false;}CharBuffer otherBuffer = (CharBuffer) other;if (remaining() != otherBuffer.remaining()) {return false;}int myPosition = position;int otherPosition = otherBuffer.position;boolean equalSoFar = true;while (equalSoFar && (myPosition < limit)) {equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}

// Translation:
public override bool Equals(object other){if (!(other is java.nio.CharBuffer)){return false;}java.nio.CharBuffer otherBuffer = (java.nio.CharBuffer)other;if (remaining() != otherBuffer.remaining()){return false;}int myPosition = _position;int otherPosition = otherBuffer._position;bool equalSoFar = true;while (equalSoFar && (myPosition < _limit)){equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}
// Original:
public StartDeploymentResult startDeployment(StartDeploymentRequest request) {request = beforeClientExecution(request);return executeStartDeployment(request);}

// Translation:
public virtual StartDeploymentResponse StartDeployment(StartDeploymentRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDeploymentRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDeploymentResponseUnmarshaller.Instance;return Invoke<StartDeploymentResponse>(request, options);}
// Original:
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[1904]\n");buffer.append("    .is1904          = ").append(Integer.toHexString(getWindowing())).append("\n");buffer.append("[/1904]\n");return buffer.toString();}

// Translation:
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[1904]\n");buffer.Append("    .is1904          = ").Append(StringUtil.ToHexString(Windowing)).Append("\n");buffer.Append("[/1904]\n");return buffer.ToString();}
// Original:
public CreateModelResult createModel(CreateModelRequest request) {request = beforeClientExecution(request);return executeCreateModel(request);}

// Translation:
public virtual CreateModelResponse CreateModel(CreateModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateModelRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateModelResponseUnmarshaller.Instance;return Invoke<CreateModelResponse>(request, options);}
// Original:
public DoubleBuffer put(double c) {if (position == limit) {throw new BufferOverflowException();}backingArray[offset + position++] = c;return this;}

// Translation:
public override java.nio.DoubleBuffer put(double c){if (_position == _limit){throw new java.nio.BufferOverflowException();}backingArray[offset + _position++] = c;return this;}
// Original:
public SimpleFacetsExample() {config.setHierarchical("Publish Date", true);}

// Translation:
public SimpleFacetsExample(){config.SetHierarchical("Publish Date", true);}
// Original:
public DeleteConnectionResult deleteConnection(DeleteConnectionRequest request) {request = beforeClientExecution(request);return executeDeleteConnection(request);}

// Translation:
public virtual DeleteConnectionResponse DeleteConnection(DeleteConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteConnectionResponseUnmarshaller.Instance;return Invoke<DeleteConnectionResponse>(request, options);}
// Original:
public String getSheetFirstNameByExternSheet(int externSheetIndex) {return _iBook.findSheetFirstNameFromExternSheet(externSheetIndex);}

// Translation:
public String GetSheetFirstNameByExternSheet(int externSheetIndex){return _iBook.FindSheetFirstNameFromExternSheet(externSheetIndex);}
// Original:
public void begin(int timeout) {if (timeout <= 0)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().invalidTimeout, Integer.valueOf(timeout)));Thread.interrupted();state.begin(timeout);}

// Translation:
public void Begin(int timeout){if (timeout <= 0){throw new ArgumentException(MessageFormat.Format(JGitText.Get().invalidTimeout, Sharpen.Extensions.ValueOf(timeout)));}Sharpen.Thread.Interrupted();state.Begin(timeout);}
// Original:
public final T updateTop() {downHeap(1);return heap[1];}

// Translation:
public T UpdateTop(){DownHeap();return heap[1];}
// Original:
public QueryNodeException(Message message) {super(message.getKey());this.message = message;}

// Translation:
public QueryNodeException(IMessage message): base(message.Key){this.m_message = message;}
// Original:
public static double factorial(int n) {double d = 1;if (n >= 0) {if (n <= 170) {for (int i=1; i<=n; i++) {d *= i;}}else {d = Double.POSITIVE_INFINITY;}}else {d = Double.NaN;}return d;}

// Translation:
public static double Factorial(int n){double d = 1;if (n >= 0){if (n <= 170){for (int i = 1; i <= n; i++){d *= i;}}else{d = double.PositiveInfinity;}}else{d = double.NaN;}return d;}
// Original:
public void sort(RevSort s) {assertNotStarted();sorting.clear();sorting.add(s);}

// Translation:
public virtual void Sort(RevSort s){AssertNotStarted();sorting.Clear();sorting.AddItem(s);}
// Original:
public CreateAuthorizerResult createAuthorizer(CreateAuthorizerRequest request) {request = beforeClientExecution(request);return executeCreateAuthorizer(request);}

// Translation:
public virtual CreateAuthorizerResponse CreateAuthorizer(CreateAuthorizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAuthorizerRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAuthorizerResponseUnmarshaller.Instance;return Invoke<CreateAuthorizerResponse>(request, options);}
// Original:
public boolean isDeltaCompress() {return deltaCompress;}

// Translation:
public virtual bool IsDeltaCompress(){return deltaCompress;}
// Original:
public CreateWorkGroupResult createWorkGroup(CreateWorkGroupRequest request) {request = beforeClientExecution(request);return executeCreateWorkGroup(request);}

// Translation:
public virtual CreateWorkGroupResponse CreateWorkGroup(CreateWorkGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateWorkGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateWorkGroupResponseUnmarshaller.Instance;return Invoke<CreateWorkGroupResponse>(request, options);}
// Original:
public BatchDetectSyntaxResult batchDetectSyntax(BatchDetectSyntaxRequest request) {request = beforeClientExecution(request);return executeBatchDetectSyntax(request);}

// Translation:
public virtual BatchDetectSyntaxResponse BatchDetectSyntax(BatchDetectSyntaxRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDetectSyntaxRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDetectSyntaxResponseUnmarshaller.Instance;return Invoke<BatchDetectSyntaxResponse>(request, options);}
// Original:
public void removeManager() {remove1stProperty(PropertyIDMap.PID_MANAGER);}

// Translation:
public void RemoveManager(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_MANAGER);}
// Original:
public Set keySet() {return Collections.unmodifiableSet(dictionary.values());}

// Translation:
public ICollection KeySet(){return dictionaryNameToID.Keys;}
// Original:
public long hash1(char carray[]) {final long p = 1099511628211L;long hash = 0xcbf29ce484222325L;for (int i = 0; i < carray.length; i++) {char d = carray[i];hash = (hash ^ (d & 0x00FF)) * p;hash = (hash ^ (d >> 8)) * p;}return hash;}

// Translation:
public virtual long Hash1(char c){long p = 1099511628211L;long hash = unchecked((long)0xcbf29ce484222325L);hash = (hash ^ (c & 0x00FF)) * p;hash = (hash ^ (c >> 8)) * p;hash += hash << 13;hash ^= hash >> 7;hash += hash << 3;hash ^= hash >> 17;hash += hash << 5;return hash;}
// Original:
public PutScalingPolicyResult putScalingPolicy(PutScalingPolicyRequest request) {request = beforeClientExecution(request);return executePutScalingPolicy(request);}

// Translation:
public virtual PutScalingPolicyResponse PutScalingPolicy(PutScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = PutScalingPolicyResponseUnmarshaller.Instance;return Invoke<PutScalingPolicyResponse>(request, options);}
// Original:
public KeywordRepeatFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public KeywordRepeatFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}