yijunyu/c-to-rust huggingface dataset:
// Original:
public String highlightTerm(String originalText, TokenGroup tokenGroup){if (tokenGroup.getTotalScore() == 0)return originalText;float score = tokenGroup.getTotalScore();if (score == 0){return originalText;}StringBuilder sb = new StringBuilder();sb.append("<font ");if (highlightForeground){sb.append("color=\"");sb.append(getForegroundColorString(score));sb.append("\" ");}if (highlightBackground){sb.append("bgcolor=\"");sb.append(getBackgroundColorString(score));sb.append("\" ");}sb.append(">");sb.append(originalText);sb.append("</font>");return sb.toString();}

// Translation:
public virtual string HighlightTerm(string originalText, TokenGroup tokenGroup){if (tokenGroup.TotalScore == 0)return originalText;float score = tokenGroup.TotalScore;if (score == 0){return originalText;}var sb = new StringBuilder();sb.Append("<font ");if (m_highlightForeground){sb.Append("color=\"");sb.Append(GetForegroundColorString(score));sb.Append("\" ");}if (m_highlightBackground){sb.Append("bgcolor=\"");sb.Append(GetBackgroundColorString(score));sb.Append("\" ");}sb.Append(">");sb.Append(originalText);sb.Append("</font>");return sb.ToString();}
// Original:
public PendingTerm(BytesRef term, BlockTermState state) {super(true);this.termBytes = new byte[term.length];System.arraycopy(term.bytes, term.offset, termBytes, 0, term.length);this.state = state;}

// Translation:
public PendingTerm(BytesRef term, BlockTermState state): base(true){this.Term = term;this.State = state;}
// Original:
public IntBuffer asReadOnlyBuffer() {IntToByteBufferAdapter buf = new IntToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf.limit = limit;buf.position = position;buf.mark = mark;buf.byteBuffer.order = byteBuffer.order;return buf;}

// Translation:
public override java.nio.IntBuffer asReadOnlyBuffer(){java.nio.IntToByteBufferAdapter buf = new java.nio.IntToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf._limit = _limit;buf._position = _position;buf._mark = _mark;buf.byteBuffer._order = byteBuffer._order;return buf;}
// Original:
public final void addParents(RevCommit c, RevFlag queueControl) {final RevCommit[] pList = c.parents;if (pList == null) {return;}for (int i = 0; i < pList.length; i++) {if (firstParent && i > 0) {break;}add(pList[i], queueControl);}}

// Translation:
public void AddParents(RevCommit c, RevFlag queueControl){RevCommit[] pList = c.parents;if (pList == null){return;}foreach (RevCommit p in pList){Add(p, queueControl);}}
// Original:
public IndicNormalizationFilter(TokenStream input) {super(input);}

// Translation:
public IndicNormalizationFilter(TokenStream input): base(input){termAtt = AddAttribute<ICharTermAttribute>();}
// Original:
public ListTasksResult listTasks(ListTasksRequest request) {request = beforeClientExecution(request);return executeListTasks(request);}

// Translation:
public virtual ListTasksResponse ListTasks(ListTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTasksResponseUnmarshaller.Instance;return Invoke<ListTasksResponse>(request, options);}
// Original:
public ListTemplateAliasesResult listTemplateAliases(ListTemplateAliasesRequest request) {request = beforeClientExecution(request);return executeListTemplateAliases(request);}

// Translation:
public virtual ListTemplateAliasesResponse ListTemplateAliases(ListTemplateAliasesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTemplateAliasesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTemplateAliasesResponseUnmarshaller.Instance;return Invoke<ListTemplateAliasesResponse>(request, options);}
// Original:
public DescribeEventCategoriesResult describeEventCategories() {return describeEventCategories(new DescribeEventCategoriesRequest());}

// Translation:
public virtual DescribeEventCategoriesResponse DescribeEventCategories(){return DescribeEventCategories(new DescribeEventCategoriesRequest());}
// Original:
public static File createTempFile(String prefix, String suffix) throws IOException {return createTempFile(prefix, suffix, null);}

// Translation:
public static java.io.File createTempFile(string prefix, string suffix){throw new System.NotImplementedException();}
// Original:
public LabelAndValue(String label, Number value) {this.label = label;this.value = value;}

// Translation:
public LabelAndValue(string label, float value){this.Label = label;this.Value = value;this.TypeOfValue = typeof(float);}
// Original:
public String getReading(int wordId, char surface[], int off, int len) {return getFeature(wordId, 0);}

// Translation:
public string GetReading(int wordId, char[] surface, int off, int len){return GetFeature(wordId, 0);}
// Original:
public CodepointCountFilter create(TokenStream input) {return new CodepointCountFilter(input, min, max);}

// Translation:
public override TokenStream Create(TokenStream input){return new CodepointCountFilter(m_luceneMatchVersion, input, min, max);}
// Original:
public String toString() {StringBuilder res = new StringBuilder(task.getName());res.append(" ");res.append(count);res.append(" ");res.append(elapsed);return res.toString();}

// Translation:
public override string ToString(){StringBuilder res = new StringBuilder(task.GetName());res.Append(" ");res.Append(count);res.Append(" ");res.Append(elapsed);return res.ToString();}
// Original:
public void build(InputIterator iterator) throws IOException {if (iterator.hasPayloads()) {throw new IllegalArgumentException("this suggester doesn't support payloads");}if (iterator.hasContexts()) {throw new IllegalArgumentException("this suggester doesn't support contexts");}root = new TernaryTreeNode();iterator = new SortedInputIterator(tempDir, tempFileNamePrefix, iterator, utf8SortedAsUTF16SortOrder);count = 0;ArrayList<String> tokens = new ArrayList<>();ArrayList<Number> vals = new ArrayList<>();BytesRef spare;CharsRefBuilder charsSpare = new CharsRefBuilder();while ((spare = iterator.next()) != null) {charsSpare.copyUTF8Bytes(spare);tokens.add(charsSpare.toString());vals.add(Long.valueOf(iterator.weight()));count++;}autocomplete.balancedTree(tokens.toArray(), vals.toArray(), 0, tokens.size() - 1, root);}

// Translation:
public override void Build(IInputIterator tfit){if (tfit.HasPayloads){throw new System.ArgumentException("this suggester doesn't support payloads");}if (tfit.HasContexts){throw new System.ArgumentException("this suggester doesn't support contexts");}root = new TernaryTreeNode();#pragma warning disable 612, 618if (tfit.Comparer != BytesRef.UTF8SortedAsUTF16Comparer){tfit = new SortedInputIterator(tfit, BytesRef.UTF8SortedAsUTF16Comparer);}#pragma warning restore 612, 618List<string> tokens = new List<string>();List<object> vals = new List<object>();BytesRef spare;CharsRef charsSpare = new CharsRef();while ((spare = tfit.Next()) != null){charsSpare.Grow(spare.Length);UnicodeUtil.UTF8toUTF16(spare.Bytes, spare.Offset, spare.Length, charsSpare);tokens.Add(charsSpare.ToString());vals.Add(tfit.Weight);}autocomplete.BalancedTree(tokens.ToArray(), vals.ToArray(), 0, tokens.Count - 1, root);}
// Original:
public void setAllowThin(boolean allow) {allowThin = allow;}

// Translation:
public virtual void SetAllowThin(bool allow){allowThin = allow;}
// Original:
public PhRun(int phoneticTextFirstCharacterOffset,int realTextFirstCharacterOffset, int realTextLength) {this.phoneticTextFirstCharacterOffset = phoneticTextFirstCharacterOffset;this.realTextFirstCharacterOffset = realTextFirstCharacterOffset;this.realTextLength = realTextLength;}

// Translation:
public PhRun(int phoneticTextFirstCharacterOffset,int realTextFirstCharacterOffset, int realTextLength){this.phoneticTextFirstCharacterOffset = phoneticTextFirstCharacterOffset;this.realTextFirstCharacterOffset = realTextFirstCharacterOffset;this.realTextLength = realTextLength;}
// Original:
public void append(String name, RevBlob blob) {append(name, REGULAR_FILE, blob);}

// Translation:
public virtual void Append(string name, RevBlob blob){Append(name, FileMode.REGULAR_FILE, blob);}
// Original:
public CreateHostedZoneResult createHostedZone(CreateHostedZoneRequest request) {request = beforeClientExecution(request);return executeCreateHostedZone(request);}

// Translation:
public virtual CreateHostedZoneResponse CreateHostedZone(CreateHostedZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateHostedZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateHostedZoneResponseUnmarshaller.Instance;return Invoke<CreateHostedZoneResponse>(request, options);}
// Original:
public ListFacetAttributesResult listFacetAttributes(ListFacetAttributesRequest request) {request = beforeClientExecution(request);return executeListFacetAttributes(request);}

// Translation:
public virtual ListFacetAttributesResponse ListFacetAttributes(ListFacetAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFacetAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFacetAttributesResponseUnmarshaller.Instance;return Invoke<ListFacetAttributesResponse>(request, options);}
// Original:
public GetTrafficPolicyInstanceCountResult getTrafficPolicyInstanceCount(GetTrafficPolicyInstanceCountRequest request) {request = beforeClientExecution(request);return executeGetTrafficPolicyInstanceCount(request);}

// Translation:
public virtual GetTrafficPolicyInstanceCountResponse GetTrafficPolicyInstanceCount(GetTrafficPolicyInstanceCountRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTrafficPolicyInstanceCountRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTrafficPolicyInstanceCountResponseUnmarshaller.Instance;return Invoke<GetTrafficPolicyInstanceCountResponse>(request, options);}
// Original:
public ModifyTrafficMirrorSessionResult modifyTrafficMirrorSession(ModifyTrafficMirrorSessionRequest request) {request = beforeClientExecution(request);return executeModifyTrafficMirrorSession(request);}

// Translation:
public virtual ModifyTrafficMirrorSessionResponse ModifyTrafficMirrorSession(ModifyTrafficMirrorSessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyTrafficMirrorSessionRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyTrafficMirrorSessionResponseUnmarshaller.Instance;return Invoke<ModifyTrafficMirrorSessionResponse>(request, options);}
// Original:
public DefaultClusterParameters describeDefaultClusterParameters(DescribeDefaultClusterParametersRequest request) {request = beforeClientExecution(request);return executeDescribeDefaultClusterParameters(request);}

// Translation:
public virtual DescribeDefaultClusterParametersResponse DescribeDefaultClusterParameters(DescribeDefaultClusterParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDefaultClusterParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDefaultClusterParametersResponseUnmarshaller.Instance;return Invoke<DescribeDefaultClusterParametersResponse>(request, options);}
// Original:
public ConsoleWriter(OutputStream out) {super(out, true);lock = CONSOLE_LOCK;}

// Translation:
public ConsoleWriter(java.io.OutputStream @out) : base(@out, true){@lock = CONSOLE_LOCK;}
// Original:
public MutableValue duplicate() {MutableValueBool v = new MutableValueBool();v.value = this.value;v.exists = this.exists;return v;}

// Translation:
public override MutableValue Duplicate(){MutableValueBool v = new MutableValueBool();v.Value = this.Value;v.Exists = this.Exists;return v;}
// Original:
public PatternTokenizerFactory(Map<String,String> args) {super(args);pattern = getPattern(args, PATTERN);group = getInt(args, GROUP, -1);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public PatternTokenizerFactory(IDictionary<string, string> args): base(args){m_pattern = GetPattern(args, PATTERN);m_group = GetInt32(args, GROUP, -1);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public int addConditionalFormatting(CellRangeAddress[] regions,ConditionalFormattingRule rule1,ConditionalFormattingRule rule2) {return addConditionalFormatting(regions,(HSSFConditionalFormattingRule)rule1,(HSSFConditionalFormattingRule)rule2);}

// Translation:
public int AddConditionalFormatting(CellRangeAddress[] regions,IConditionalFormattingRule rule1,IConditionalFormattingRule rule2){return AddConditionalFormatting(regions,new HSSFConditionalFormattingRule[]{(HSSFConditionalFormattingRule)rule1, (HSSFConditionalFormattingRule)rule2});}
// Original:
public Credential(String keyId, String secret, String securityToken) {this.accessKeyId = keyId;this.accessSecret = secret;this.securityToken = securityToken;this.refreshDate = new Date();}

// Translation:
public Credential(string keyId, string secret, string securityToken){AccessKeyId = keyId;AccessSecret = secret;SecurityToken = securityToken;RefreshDate = new DateTime();}
// Original:
public void reset(int point) {this.point = point;ends.next = 0;starts.next = 0;}

// Translation:
public void Reset(int point){this.point = point;ends.count = 0;starts.count = 0;}
// Original:
public BottomMarginRecord( RecordInputStream in ) {field_1_margin = in.readDouble();}

// Translation:
public BottomMarginRecord(RecordInputStream in1){field_1_margin = in1.ReadDouble();}
// Original:
public final void removeFields(String name) {Iterator<IndexableField> it = fields.iterator();while (it.hasNext()) {IndexableField field = it.next();if (field.name().equals(name)) {it.remove();}}}

// Translation:
public void RemoveFields(string name){for (int i = fields.Count - 1; i >= 0; i--){IIndexableField field = fields[i];if (field.Name.Equals(name, StringComparison.Ordinal)){fields.Remove(field);}}}
// Original:
public Token LT(int k) {lazyInit();if ( k == 0 ) return null;if ( k < 0 ) return LB(-k);int i = p;int n = 1; while ( n<k ) {if (sync(i + 1)) {i = nextTokenOnChannel(i + 1, channel);}n++;}return tokens.get(i);}

// Translation:
public override IToken LT(int k){LazyInit();if (k == 0){return null;}if (k < 0){return Lb(-k);}int i = p;int n = 1;while (n < k){if (Sync(i + 1)){i = NextTokenOnChannel(i + 1, channel);}n++;}return tokens[i];}
// Original:
public FloatBuffer put(float c) {if (position == limit) {throw new BufferOverflowException();}byteBuffer.putFloat(position++ * SizeOf.FLOAT, c);return this;}

// Translation:
public override java.nio.FloatBuffer put(float c){if (_position == _limit){throw new java.nio.BufferOverflowException();}byteBuffer.putFloat(_position++ * libcore.io.SizeOf.FLOAT, c);return this;}
// Original:
public ExternalNameEval(EvaluationName name) {_name = name;}

// Translation:
public ExternalNameEval(IEvaluationName name){_name = name;}
// Original:
public GetLoadBalancerMetricDataResult getLoadBalancerMetricData(GetLoadBalancerMetricDataRequest request) {request = beforeClientExecution(request);return executeGetLoadBalancerMetricData(request);}

// Translation:
public virtual GetLoadBalancerMetricDataResponse GetLoadBalancerMetricData(GetLoadBalancerMetricDataRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetLoadBalancerMetricDataRequestMarshaller.Instance;options.ResponseUnmarshaller = GetLoadBalancerMetricDataResponseUnmarshaller.Instance;return Invoke<GetLoadBalancerMetricDataResponse>(request, options);}
// Original:
public String getResultPath() {return resultPath.getPath();}

// Translation:
public virtual string GetResultPath(){return resultPath.GetPath();}
// Original:
public RefWriter(RefList<Ref> refs) {this.refs = refs.asList();}

// Translation:
public RefWriter(ICollection<Ref> refs){this.refs = RefComparator.Sort(refs);}
// Original:
public HSSFWorkbook getStubHSSFWorkbook() {HSSFWorkbook wb = HSSFWorkbook.create(getStubWorkbook());for (BoundSheetRecord bsr : boundSheetRecords) {wb.createSheet(bsr.getSheetname());}return wb;}

// Translation:
public HSSFWorkbook GetStubHSSFWorkbook(){HSSFWorkbook wb = HSSFWorkbook.Create(GetStubWorkbook());foreach (BoundSheetRecord bsr in boundSheetRecords) {wb.CreateSheet(bsr.Sheetname);}return wb;}
// Original:
public static SupBookRecord createExternalReferences(String url, String[] sheetNames) {return new SupBookRecord(url, sheetNames);}

// Translation:
public static SupBookRecord CreateExternalReferences(String url, String[] sheetNames){return new SupBookRecord(url, sheetNames);}
// Original:
public int getLevelForDistance(double dist) {if (dist == 0)return maxLevels;final int level = GeohashUtils.lookupHashLenForWidthHeight(dist, dist);return Math.max(Math.min(level, maxLevels), 1);}

// Translation:
public override int GetLevelForDistance(double dist){if (dist == 0){return m_maxLevels;}for (int i = 0; i < m_maxLevels - 1; i++){if (dist > levelW[i] && dist > levelH[i]){return i + 1;}}return m_maxLevels;}
// Original:
public MissingCellDummyRecord(int row, int column) {this.row = row;this.column = column;}

// Translation:
public MissingCellDummyRecord(int row, int column){this.row = row;this.column = column;}
// Original:
public static TokenizerFactory forName(String name, Map<String,String> args) {return loader.newInstance(name, args);}

// Translation:
public static TokenizerFactory ForName(string name, IDictionary<string, string> args){return loader.NewInstance(name, args);}
// Original:
public final ByteBuffer encode(CharBuffer in) throws CharacterCodingException {if (in.remaining() == 0) {return ByteBuffer.allocate(0);}reset();int length = (int) (in.remaining() * averageBytesPerChar);ByteBuffer output = ByteBuffer.allocate(length);CoderResult result = null;while (true) {result = encode(in, output, false);if (result==CoderResult.UNDERFLOW) {break;} else if (result==CoderResult.OVERFLOW) {output = allocateMore(output);continue;}checkCoderResult(result);}result = encode(in, output, true);checkCoderResult(result);while (true) {result = flush(output);if (result==CoderResult.UNDERFLOW) {output.flip();break;} else if (result==CoderResult.OVERFLOW) {output = allocateMore(output);continue;}checkCoderResult(result);output.flip();if (result.isMalformed()) {throw new MalformedInputException(result.length());} else if (result.isUnmappable()) {throw new UnmappableCharacterException(result.length());}break;}status = READY;finished = true;return output;}

// Translation:
public java.nio.ByteBuffer encode(java.nio.CharBuffer @in){if (@in.remaining() == 0){return java.nio.ByteBuffer.allocate(0);}reset();int length = (int)(@in.remaining() * _averageBytesPerChar);java.nio.ByteBuffer output = java.nio.ByteBuffer.allocate(length);java.nio.charset.CoderResult result = null;while (true){result = encode(@in, output, false);if (result == java.nio.charset.CoderResult.UNDERFLOW){break;}else{if (result == java.nio.charset.CoderResult.OVERFLOW){output = allocateMore(output);continue;}}checkCoderResult(result);}result = encode(@in, output, true);checkCoderResult(result);while (true){result = flush(output);if (result == java.nio.charset.CoderResult.UNDERFLOW){output.flip();break;}else{if (result == java.nio.charset.CoderResult.OVERFLOW){output = allocateMore(output);continue;}}checkCoderResult(result);output.flip();if (result.isMalformed()){throw new java.nio.charset.MalformedInputException(result.length());}else{if (result.isUnmappable()){throw new java.nio.charset.UnmappableCharacterException(result.length());}}break;}status = READY;finished = true;return output;}
// Original:
public TextProgressMonitor(Writer out) {this.out = out;this.write = true;}

// Translation:
public TextProgressMonitor(TextWriter @out){this.@out = @out;this.write = true;}
// Original:
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];}

// Translation:
public virtual string Get(string name, string dflt){string[] vals;object temp;if (valByRound.TryGetValue(name, out temp) && temp != null){vals = (string[])temp;return vals[roundNumber % vals.Length];}string sval;if (!props.TryGetValue(name, out sval)){sval = dflt;}if (sval == null){return null;}if (sval.IndexOf(':') < 0){return sval;}else if (sval.IndexOf(":\\", StringComparison.Ordinal) >= 0 || sval.IndexOf(":/", StringComparison.Ordinal) >= 0){return sval;}int k = sval.IndexOf(':');string colName = sval.Substring(0, k - 0);sval = sval.Substring(k + 1);colForValByRound[name] = colName;vals = PropToStringArray(sval);valByRound[name] = vals;return vals[roundNumber % vals.Length];}
// Original:
public LooseRef peel(ObjectIdRef newLeaf) {ObjectId peeledObjectId = newLeaf.getPeeledObjectId();ObjectId objectId = getObjectId();if (peeledObjectId != null) {return new LoosePeeledTag(snapShot, getName(),objectId, peeledObjectId);}return new LooseNonTag(snapShot, getName(), objectId);}

// Translation:
public RefDirectory.LooseRef Peel(ObjectIdRef newLeaf){if (newLeaf.GetPeeledObjectId() != null){return new RefDirectory.LoosePeeledTag(snapShot, GetName(), GetObjectId(), newLeaf.GetPeeledObjectId());}else{return new RefDirectory.LooseNonTag(snapShot, GetName(), GetObjectId());}}
// Original:
public List<Ref> call() throws GitAPIException {checkCallable();List<Ref> resultRefs;try {Collection<Ref> refs = new ArrayList<>();Ref head = repo.exactRef(HEAD);if (head != null && head.getLeaf().getName().equals(HEAD)) {refs.add(head);}if (listMode == null) {refs.addAll(repo.getRefDatabase().getRefsByPrefix(R_HEADS));} else if (listMode == ListMode.REMOTE) {refs.addAll(repo.getRefDatabase().getRefsByPrefix(R_REMOTES));} else {refs.addAll(repo.getRefDatabase().getRefsByPrefix(R_HEADS,R_REMOTES));}resultRefs = new ArrayList<>(filterRefs(refs));} catch (IOException e) {throw new JGitInternalException(e.getMessage(), e);}Collections.sort(resultRefs,(Ref o1, Ref o2) -> o1.getName().compareTo(o2.getName()));setCallable(false);return resultRefs;}

// Translation:
public override IList<Ref> Call(){CheckCallable();IDictionary<string, Ref> refList;try{if (listMode == ListMode.HEAD){refList = repo.RefDatabase.GetRefs(Constants.R_HEADS);}else{if (listMode == ListBranchCommand.ListMode.REMOTE){refList = repo.RefDatabase.GetRefs(Constants.R_REMOTES);}else{refList = new Dictionary<string, Ref>(repo.RefDatabase.GetRefs(Constants.R_HEADS));refList.PutAll(repo.RefDatabase.GetRefs(Constants.R_REMOTES));}}}catch (IOException e){throw new JGitInternalException(e.Message, e);}IList<Ref> resultRefs = new AList<Ref>();Sharpen.Collections.AddAll(resultRefs, refList.Values);resultRefs.Sort(new _IComparer_111());SetCallable(false);return resultRefs;}
// Original:
public void writeLong(long v) {writeContinueIfRequired(8);_ulrOutput.writeLong(v);}

// Translation:
public void WriteLong(long v){WriteContinueIfRequired(8);_ulrOutput.WriteLong(v);}
// Original:
public UpdateSmsTemplateResult updateSmsTemplate(UpdateSmsTemplateRequest request) {request = beforeClientExecution(request);return executeUpdateSmsTemplate(request);}

// Translation:
public virtual UpdateSmsTemplateResponse UpdateSmsTemplate(UpdateSmsTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSmsTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSmsTemplateResponseUnmarshaller.Instance;return Invoke<UpdateSmsTemplateResponse>(request, options);}
// Original:
public DeletePlacementGroupResult deletePlacementGroup(DeletePlacementGroupRequest request) {request = beforeClientExecution(request);return executeDeletePlacementGroup(request);}

// Translation:
public virtual DeletePlacementGroupResponse DeletePlacementGroup(DeletePlacementGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeletePlacementGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeletePlacementGroupResponseUnmarshaller.Instance;return Invoke<DeletePlacementGroupResponse>(request, options);}