id_within_dataset
int64
0
10.3k
snippet
stringlengths
29
1.4k
tokens
listlengths
10
314
cs
stringlengths
28
1.38k
split_within_dataset
stringclasses
1 value
is_duplicated
bool
2 classes
8,067
public final String toFormulaString() {throw new RuntimeException("toFormulaString(String[] operands) should be used for subclasses of OperationPtgs");}
[ "public", "final", "String", "toFormulaString", "(", ")", "{", "throw", "new", "RuntimeException", "(", "\"toFormulaString(String[] operands) should be used for subclasses of OperationPtgs\"", ")", ";", "}" ]
public override String ToFormulaString(){throw new NotImplementedException("ToFormulaString(String[] operands) should be used for subclasses of OperationPtgs");}
train
false
8,068
public DBInstance restoreDBInstanceToPointInTime(RestoreDBInstanceToPointInTimeRequest request) {request = beforeClientExecution(request);return executeRestoreDBInstanceToPointInTime(request);}
[ "public", "DBInstance", "restoreDBInstanceToPointInTime", "(", "RestoreDBInstanceToPointInTimeRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRestoreDBInstanceToPointInTime", "(", "request", ")", ";", "}" ]
public virtual RestoreDBInstanceToPointInTimeResponse RestoreDBInstanceToPointInTime(RestoreDBInstanceToPointInTimeRequest request){var options = new InvokeOptions();options.RequestMarshaller = RestoreDBInstanceToPointInTimeRequestMarshaller.Instance;options.ResponseUnmarshaller = RestoreDBInstanceToPointInTimeResponseUnmarshaller.Instance;return Invoke<RestoreDBInstanceToPointInTimeResponse>(request, options);}
train
true
8,069
public boolean removeShape(HSSFShape shape) {boolean isRemoved = _mainSpgrContainer.removeChildRecord(shape.getEscherContainer());if (isRemoved){shape.afterRemove(this);_shapes.remove(shape);}return isRemoved;}
[ "public", "boolean", "removeShape", "(", "HSSFShape", "shape", ")", "{", "boolean", "isRemoved", "=", "_mainSpgrContainer", ".", "removeChildRecord", "(", "shape", ".", "getEscherContainer", "(", ")", ")", ";", "if", "(", "isRemoved", ")", "{", "shape", ".", "afterRemove", "(", "this", ")", ";", "_shapes", ".", "remove", "(", "shape", ")", ";", "}", "return", "isRemoved", ";", "}" ]
public bool RemoveShape(HSSFShape shape){bool isRemoved = _mainSpgrContainer.RemoveChildRecord(shape.GetEscherContainer());if (isRemoved){shape.AfterRemove(this);_shapes.Remove(shape);}return isRemoved;}
train
false
8,071
public DeleteAssessmentTemplateResult deleteAssessmentTemplate(DeleteAssessmentTemplateRequest request) {request = beforeClientExecution(request);return executeDeleteAssessmentTemplate(request);}
[ "public", "DeleteAssessmentTemplateResult", "deleteAssessmentTemplate", "(", "DeleteAssessmentTemplateRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteAssessmentTemplate", "(", "request", ")", ";", "}" ]
public virtual DeleteAssessmentTemplateResponse DeleteAssessmentTemplate(DeleteAssessmentTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAssessmentTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAssessmentTemplateResponseUnmarshaller.Instance;return Invoke<DeleteAssessmentTemplateResponse>(request, options);}
train
true
8,072
public StartMonitoringScheduleResult startMonitoringSchedule(StartMonitoringScheduleRequest request) {request = beforeClientExecution(request);return executeStartMonitoringSchedule(request);}
[ "public", "StartMonitoringScheduleResult", "startMonitoringSchedule", "(", "StartMonitoringScheduleRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStartMonitoringSchedule", "(", "request", ")", ";", "}" ]
public virtual StartMonitoringScheduleResponse StartMonitoringSchedule(StartMonitoringScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartMonitoringScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = StartMonitoringScheduleResponseUnmarshaller.Instance;return Invoke<StartMonitoringScheduleResponse>(request, options);}
train
false
8,073
public void println(int i) {println(String.valueOf(i));}
[ "public", "void", "println", "(", "int", "i", ")", "{", "println", "(", "String", ".", "valueOf", "(", "i", ")", ")", ";", "}" ]
public virtual void println(int i){println(i.ToString());}
train
false
8,074
public PutRoomSkillParameterResult putRoomSkillParameter(PutRoomSkillParameterRequest request) {request = beforeClientExecution(request);return executePutRoomSkillParameter(request);}
[ "public", "PutRoomSkillParameterResult", "putRoomSkillParameter", "(", "PutRoomSkillParameterRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePutRoomSkillParameter", "(", "request", ")", ";", "}" ]
public virtual PutRoomSkillParameterResponse PutRoomSkillParameter(PutRoomSkillParameterRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutRoomSkillParameterRequestMarshaller.Instance;options.ResponseUnmarshaller = PutRoomSkillParameterResponseUnmarshaller.Instance;return Invoke<PutRoomSkillParameterResponse>(request, options);}
train
true
8,075
public DeleteDomainResult deleteDomain(DeleteDomainRequest request) {request = beforeClientExecution(request);return executeDeleteDomain(request);}
[ "public", "DeleteDomainResult", "deleteDomain", "(", "DeleteDomainRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteDomain", "(", "request", ")", ";", "}" ]
public virtual DeleteDomainResponse DeleteDomain(DeleteDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDomainResponseUnmarshaller.Instance;return Invoke<DeleteDomainResponse>(request, options);}
train
true
8,076
public ModifyLaunchTemplateResult modifyLaunchTemplate(ModifyLaunchTemplateRequest request) {request = beforeClientExecution(request);return executeModifyLaunchTemplate(request);}
[ "public", "ModifyLaunchTemplateResult", "modifyLaunchTemplate", "(", "ModifyLaunchTemplateRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyLaunchTemplate", "(", "request", ")", ";", "}" ]
public virtual ModifyLaunchTemplateResponse ModifyLaunchTemplate(ModifyLaunchTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyLaunchTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyLaunchTemplateResponseUnmarshaller.Instance;return Invoke<ModifyLaunchTemplateResponse>(request, options);}
train
true
8,077
public final float overheadRatio(int bitsPerValue) {assert isSupported(bitsPerValue);return overheadPerValue(bitsPerValue) / bitsPerValue;}
[ "public", "final", "float", "overheadRatio", "(", "int", "bitsPerValue", ")", "{", "assert", "isSupported", "(", "bitsPerValue", ")", ";", "return", "overheadPerValue", "(", "bitsPerValue", ")", "/", "bitsPerValue", ";", "}" ]
public virtual float OverheadRatio(int bitsPerValue){Debug.Assert(IsSupported(bitsPerValue));return OverheadPerValue(bitsPerValue) / bitsPerValue;}
train
false
8,078
public ObjectId getIndexId() {return indexId;}
[ "public", "ObjectId", "getIndexId", "(", ")", "{", "return", "indexId", ";", "}" ]
public virtual ObjectId GetIndexId(){return indexId;}
train
false
8,079
public String toString(String field) {return "like:" + likeText;}
[ "public", "String", "toString", "(", "String", "field", ")", "{", "return", "\"like:\"", "+", "likeText", ";", "}" ]
public override string ToString(string field){return "like:" + LikeText;}
train
false
8,080
public long ramBytesUsed() {long sizeInBytes = BASE_RAM_BYTES_USED;sizeInBytes += (docIDs!=null)? RamUsageEstimator.sizeOf(docIDs) : 0;sizeInBytes += (freqs!=null)? RamUsageEstimator.sizeOf(freqs) : 0;if(positions != null) {sizeInBytes += RamUsageEstimator.shallowSizeOf(positions);for(int[] position : positions) {sizeInBytes += (position!=null) ? RamUsageEstimator.sizeOf(position) : 0;}}if (payloads != null) {sizeInBytes += RamUsageEstimator.shallowSizeOf(payloads);for(byte[][] payload : payloads) {if(payload != null) {sizeInBytes += RamUsageEstimator.shallowSizeOf(payload);for(byte[] pload : payload) {sizeInBytes += (pload!=null) ? RamUsageEstimator.sizeOf(pload) : 0;}}}}return sizeInBytes;}
[ "public", "long", "ramBytesUsed", "(", ")", "{", "long", "sizeInBytes", "=", "BASE_RAM_BYTES_USED", ";", "sizeInBytes", "+=", "(", "docIDs", "!=", "null", ")", "?", "RamUsageEstimator", ".", "sizeOf", "(", "docIDs", ")", ":", "0", ";", "sizeInBytes", "+=", "(", "freqs", "!=", "null", ")", "?", "RamUsageEstimator", ".", "sizeOf", "(", "freqs", ")", ":", "0", ";", "if", "(", "positions", "!=", "null", ")", "{", "sizeInBytes", "+=", "RamUsageEstimator", ".", "shallowSizeOf", "(", "positions", ")", ";", "for", "(", "int", "[", "]", "position", ":", "positions", ")", "{", "sizeInBytes", "+=", "(", "position", "!=", "null", ")", "?", "RamUsageEstimator", ".", "sizeOf", "(", "position", ")", ":", "0", ";", "}", "}", "if", "(", "payloads", "!=", "null", ")", "{", "sizeInBytes", "+=", "RamUsageEstimator", ".", "shallowSizeOf", "(", "payloads", ")", ";", "for", "(", "byte", "[", "]", "[", "]", "payload", ":", "payloads", ")", "{", "if", "(", "payload", "!=", "null", ")", "{", "sizeInBytes", "+=", "RamUsageEstimator", ".", "shallowSizeOf", "(", "payload", ")", ";", "for", "(", "byte", "[", "]", "pload", ":", "payload", ")", "{", "sizeInBytes", "+=", "(", "pload", "!=", "null", ")", "?", "RamUsageEstimator", ".", "sizeOf", "(", "pload", ")", ":", "0", ";", "}", "}", "}", "}", "return", "sizeInBytes", ";", "}" ]
public override long RamBytesUsed(){long sizeInBytes = 0;sizeInBytes += (docIDs != null) ? RamUsageEstimator.SizeOf(docIDs) : 0;sizeInBytes += (freqs != null) ? RamUsageEstimator.SizeOf(freqs) : 0;if (positions != null){foreach (int[] position in positions){sizeInBytes += (position != null) ? RamUsageEstimator.SizeOf(position) : 0;}}if (payloads != null){foreach (var payload in payloads){if (payload != null){foreach (var pload in payload){sizeInBytes += (pload != null) ? RamUsageEstimator.SizeOf(pload) : 0;}}}}return sizeInBytes;}
train
false
8,081
public void setNeedBaseObjectIds(boolean b) {this.needBaseObjectIds = b;}
[ "public", "void", "setNeedBaseObjectIds", "(", "boolean", "b", ")", "{", "this", ".", "needBaseObjectIds", "=", "b", ";", "}" ]
public virtual void SetNeedBaseObjectIds(bool b){this.needBaseObjectIds = b;}
train
false
8,082
public int getNextOrdinal() {return this.counter++;}
[ "public", "int", "getNextOrdinal", "(", ")", "{", "return", "this", ".", "counter", "++", ";", "}" ]
public virtual int GetNextOrdinal(){return this.m_counter++;}
train
false
8,083
public FloatBuffer compact() {throw new ReadOnlyBufferException();}
[ "public", "FloatBuffer", "compact", "(", ")", "{", "throw", "new", "ReadOnlyBufferException", "(", ")", ";", "}" ]
public override java.nio.FloatBuffer compact(){throw new java.nio.ReadOnlyBufferException();}
train
false
8,084
public final int getLengthA() {return endA - beginA;}
[ "public", "final", "int", "getLengthA", "(", ")", "{", "return", "endA", "-", "beginA", ";", "}" ]
public int GetLengthA(){return endA - beginA;}
train
false
8,085
public SearchDevicesResult searchDevices(SearchDevicesRequest request) {request = beforeClientExecution(request);return executeSearchDevices(request);}
[ "public", "SearchDevicesResult", "searchDevices", "(", "SearchDevicesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeSearchDevices", "(", "request", ")", ";", "}" ]
public virtual SearchDevicesResponse SearchDevices(SearchDevicesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchDevicesRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchDevicesResponseUnmarshaller.Instance;return Invoke<SearchDevicesResponse>(request, options);}
train
true
8,086
public String getInflectionForm() {return dictionary.getInflectionForm(wordId);}
[ "public", "String", "getInflectionForm", "(", ")", "{", "return", "dictionary", ".", "getInflectionForm", "(", "wordId", ")", ";", "}" ]
public virtual string GetInflectionForm(){return dictionary.GetInflectionForm(wordId);}
train
false
8,087
public RevFilter clone() {return this;}
[ "public", "RevFilter", "clone", "(", ")", "{", "return", "this", ";", "}" ]
public override TreeFilter Clone(){return this;}
train
false
8,088
public ReservedDBInstance purchaseReservedDBInstancesOffering(PurchaseReservedDBInstancesOfferingRequest request) {request = beforeClientExecution(request);return executePurchaseReservedDBInstancesOffering(request);}
[ "public", "ReservedDBInstance", "purchaseReservedDBInstancesOffering", "(", "PurchaseReservedDBInstancesOfferingRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePurchaseReservedDBInstancesOffering", "(", "request", ")", ";", "}" ]
public virtual PurchaseReservedDBInstancesOfferingResponse PurchaseReservedDBInstancesOffering(PurchaseReservedDBInstancesOfferingRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurchaseReservedDBInstancesOfferingRequestMarshaller.Instance;options.ResponseUnmarshaller = PurchaseReservedDBInstancesOfferingResponseUnmarshaller.Instance;return Invoke<PurchaseReservedDBInstancesOfferingResponse>(request, options);}
train
true
8,089
public String getReason() {return super.getMessage();}
[ "public", "String", "getReason", "(", ")", "{", "return", "super", ".", "getMessage", "(", ")", ";", "}" ]
public virtual string getReason(){return base.Message;}
train
false
8,091
public int [] toArray(){int[] rval = new int[ _limit ];System.arraycopy(_array, 0, rval, 0, _limit);return rval;}
[ "public", "int", "[", "]", "toArray", "(", ")", "{", "int", "[", "]", "rval", "=", "new", "int", "[", "_limit", "]", ";", "System", ".", "arraycopy", "(", "_array", ",", "0", ",", "rval", ",", "0", ",", "_limit", ")", ";", "return", "rval", ";", "}" ]
public int[] ToArray(){int[] rval = new int[_limit];Array.Copy(_array, 0, rval, 0, _limit);return rval;}
train
false
8,092
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {if (args.length == 1) {return evaluate(ec.getRowIndex(), ec.getColumnIndex(), args[0]);}if (args.length == 2) {return evaluate(ec.getRowIndex(), ec.getColumnIndex(), args[0], args[1]);}return ErrorEval.VALUE_INVALID;}
[ "public", "ValueEval", "evaluate", "(", "ValueEval", "[", "]", "args", ",", "OperationEvaluationContext", "ec", ")", "{", "if", "(", "args", ".", "length", "==", "1", ")", "{", "return", "evaluate", "(", "ec", ".", "getRowIndex", "(", ")", ",", "ec", ".", "getColumnIndex", "(", ")", ",", "args", "[", "0", "]", ")", ";", "}", "if", "(", "args", ".", "length", "==", "2", ")", "{", "return", "evaluate", "(", "ec", ".", "getRowIndex", "(", ")", ",", "ec", ".", "getColumnIndex", "(", ")", ",", "args", "[", "0", "]", ",", "args", "[", "1", "]", ")", ";", "}", "return", "ErrorEval", ".", "VALUE_INVALID", ";", "}" ]
public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){if (args.Length == 1){return Evaluate(ec.RowIndex, ec.ColumnIndex, args[0]);}if (args.Length == 2){return Evaluate(ec.RowIndex, ec.ColumnIndex, args[0], args[1]);}return ErrorEval.VALUE_INVALID;}
train
false
8,093
public DescribeCustomerGatewaysResult describeCustomerGateways(DescribeCustomerGatewaysRequest request) {request = beforeClientExecution(request);return executeDescribeCustomerGateways(request);}
[ "public", "DescribeCustomerGatewaysResult", "describeCustomerGateways", "(", "DescribeCustomerGatewaysRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeCustomerGateways", "(", "request", ")", ";", "}" ]
public virtual DescribeCustomerGatewaysResponse DescribeCustomerGateways(DescribeCustomerGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCustomerGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCustomerGatewaysResponseUnmarshaller.Instance;return Invoke<DescribeCustomerGatewaysResponse>(request, options);}
train
true
8,094
public String toString() {return utf8.utf8ToString() + "/" + bucket;}
[ "public", "String", "toString", "(", ")", "{", "return", "utf8", ".", "utf8ToString", "(", ")", "+", "\"/\"", "+", "bucket", ";", "}" ]
public override string ToString(){return Utf8.Utf8ToString() + "/" + Bucket.ToString("0.0", CultureInfo.InvariantCulture);}
train
false
8,095
public void clipRect(int x, int y, int width, int height){if (logger.check( POILogger.WARN ))logger.log(POILogger.WARN,"clipRect not supported");}
[ "public", "void", "clipRect", "(", "int", "x", ",", "int", "y", ",", "int", "width", ",", "int", "height", ")", "{", "if", "(", "logger", ".", "check", "(", "POILogger", ".", "WARN", ")", ")", "logger", ".", "log", "(", "POILogger", ".", "WARN", ",", "\"clipRect not supported\"", ")", ";", "}" ]
public void ClipRect(int x, int y, int width, int height){if (Logger.Check(POILogger.WARN))Logger.Log(POILogger.WARN, "clipRect not supported");}
train
false
8,096
public void startFragment(TextFragment newFragment) {uniqueTermsInFragment = new HashSet<>();currentTextFragment = newFragment;totalScore = 0;}
[ "public", "void", "startFragment", "(", "TextFragment", "newFragment", ")", "{", "uniqueTermsInFragment", "=", "new", "HashSet", "<", ">", "(", ")", ";", "currentTextFragment", "=", "newFragment", ";", "totalScore", "=", "0", ";", "}" ]
public virtual void StartFragment(TextFragment newFragment){uniqueTermsInFragment = new JCG.HashSet<string>();currentTextFragment = newFragment;totalScore = 0;}
train
false
8,097
public void setPolygonDrawArea(int width, int height) {setPropertyValue(new EscherSimpleProperty(EscherPropertyTypes.GEOMETRY__RIGHT, width));setPropertyValue(new EscherSimpleProperty(EscherPropertyTypes.GEOMETRY__BOTTOM, height));}
[ "public", "void", "setPolygonDrawArea", "(", "int", "width", ",", "int", "height", ")", "{", "setPropertyValue", "(", "new", "EscherSimpleProperty", "(", "EscherPropertyTypes", ".", "GEOMETRY__RIGHT", ",", "width", ")", ")", ";", "setPropertyValue", "(", "new", "EscherSimpleProperty", "(", "EscherPropertyTypes", ".", "GEOMETRY__BOTTOM", ",", "height", ")", ")", ";", "}" ]
public void SetPolygonDrawArea(int width, int height){SetPropertyValue(new EscherSimpleProperty(EscherProperties.GEOMETRY__RIGHT, width));SetPropertyValue(new EscherSimpleProperty(EscherProperties.GEOMETRY__BOTTOM, height));}
train
false
8,098
public DeleteRouteSettingsResult deleteRouteSettings(DeleteRouteSettingsRequest request) {request = beforeClientExecution(request);return executeDeleteRouteSettings(request);}
[ "public", "DeleteRouteSettingsResult", "deleteRouteSettings", "(", "DeleteRouteSettingsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteRouteSettings", "(", "request", ")", ";", "}" ]
public virtual DeleteRouteSettingsResponse DeleteRouteSettings(DeleteRouteSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRouteSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRouteSettingsResponseUnmarshaller.Instance;return Invoke<DeleteRouteSettingsResponse>(request, options);}
train
false
8,099
public CherryPickCommand include(String name, AnyObjectId commit) {return include(new ObjectIdRef.Unpeeled(Storage.LOOSE, name,commit.copy()));}
[ "public", "CherryPickCommand", "include", "(", "String", "name", ",", "AnyObjectId", "commit", ")", "{", "return", "include", "(", "new", "ObjectIdRef", ".", "Unpeeled", "(", "Storage", ".", "LOOSE", ",", "name", ",", "commit", ".", "copy", "(", ")", ")", ")", ";", "}" ]
public virtual NGit.Api.CherryPickCommand Include(string name, AnyObjectId commit){return Include(new ObjectIdRef.Unpeeled(RefStorage.LOOSE, name, commit.Copy()));}
train
false
8,100
public short getFormat(String format, boolean createIfNotFound) {for (FormatRecord r : formats) {if (r.getFormatString().equals(format)) {return (short)r.getIndexCode();}}if (createIfNotFound) {return (short)createFormat(format);}return -1;}
[ "public", "short", "getFormat", "(", "String", "format", ",", "boolean", "createIfNotFound", ")", "{", "for", "(", "FormatRecord", "r", ":", "formats", ")", "{", "if", "(", "r", ".", "getFormatString", "(", ")", ".", "equals", "(", "format", ")", ")", "{", "return", "(", "short", ")", "r", ".", "getIndexCode", "(", ")", ";", "}", "}", "if", "(", "createIfNotFound", ")", "{", "return", "(", "short", ")", "createFormat", "(", "format", ")", ";", "}", "return", "-", "1", ";", "}" ]
public short GetFormat(String format, bool CreateIfNotFound){IEnumerator iterator;for (iterator = formats.GetEnumerator(); iterator.MoveNext(); ){FormatRecord r = (FormatRecord)iterator.Current;if (r.FormatString.Equals(format)){return (short)r.IndexCode;}}if (CreateIfNotFound){return (short)CreateFormat(format);}return -1;}
train
false
8,102
public int getRowCellBlockSize(int startRow, int endRow) {int result = 0;for(int rowIx=startRow; rowIx<=endRow && rowIx<records.length; rowIx++) {result += getRowSerializedSize(records[rowIx]);}return result;}
[ "public", "int", "getRowCellBlockSize", "(", "int", "startRow", ",", "int", "endRow", ")", "{", "int", "result", "=", "0", ";", "for", "(", "int", "rowIx", "=", "startRow", ";", "rowIx", "<=", "endRow", "&&", "rowIx", "<", "records", ".", "length", ";", "rowIx", "++", ")", "{", "result", "+=", "getRowSerializedSize", "(", "records", "[", "rowIx", "]", ")", ";", "}", "return", "result", ";", "}" ]
public int GetRowCellBlockSize(int startRow, int endRow){MyEnumerator itr = new MyEnumerator(ref records,startRow, endRow);int size = 0;while (itr.MoveNext()){CellValueRecordInterface cell = (CellValueRecordInterface)itr.Current;int row = cell.Row;if (row > endRow)break;if ((row >= startRow) && (row <= endRow))size += ((RecordBase)cell).RecordSize;}return size;}
train
false
8,103
public final boolean incrementToken() {if (!it.hasNext()) {return false;}AttributeSource.State state = it.next();restoreState(state);return true;}
[ "public", "final", "boolean", "incrementToken", "(", ")", "{", "if", "(", "!", "it", ".", "hasNext", "(", ")", ")", "{", "return", "false", ";", "}", "AttributeSource", ".", "State", "state", "=", "it", ".", "next", "(", ")", ";", "restoreState", "(", "state", ")", ";", "return", "true", ";", "}" ]
public override sealed bool IncrementToken(){if (it == null){it = cachedStates.GetEnumerator();}if (!it.MoveNext())return false;var state = it.Current;RestoreState(state);return true;}
train
false
8,104
public DeleteTemplateResult deleteTemplate(DeleteTemplateRequest request) {request = beforeClientExecution(request);return executeDeleteTemplate(request);}
[ "public", "DeleteTemplateResult", "deleteTemplate", "(", "DeleteTemplateRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteTemplate", "(", "request", ")", ";", "}" ]
public virtual DeleteTemplateResponse DeleteTemplate(DeleteTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTemplateResponseUnmarshaller.Instance;return Invoke<DeleteTemplateResponse>(request, options);}
train
true
8,105
public StartFaceSearchResult startFaceSearch(StartFaceSearchRequest request) {request = beforeClientExecution(request);return executeStartFaceSearch(request);}
[ "public", "StartFaceSearchResult", "startFaceSearch", "(", "StartFaceSearchRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStartFaceSearch", "(", "request", ")", ";", "}" ]
public virtual StartFaceSearchResponse StartFaceSearch(StartFaceSearchRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartFaceSearchRequestMarshaller.Instance;options.ResponseUnmarshaller = StartFaceSearchResponseUnmarshaller.Instance;return Invoke<StartFaceSearchResponse>(request, options);}
train
true
8,106
public static int formatBase10(final byte[] b, int o, int value) {if (value == 0) {b[--o] = '0';return o;}final boolean isneg = value < 0;if (isneg)value = -value;while (value != 0) {b[--o] = base10byte[value % 10];value /= 10;}if (isneg)b[--o] = '-';return o;}
[ "public", "static", "int", "formatBase10", "(", "final", "byte", "[", "]", "b", ",", "int", "o", ",", "int", "value", ")", "{", "if", "(", "value", "==", "0", ")", "{", "b", "[", "--", "o", "]", "=", "'0'", ";", "return", "o", ";", "}", "final", "boolean", "isneg", "=", "value", "<", "0", ";", "if", "(", "isneg", ")", "value", "=", "-", "value", ";", "while", "(", "value", "!=", "0", ")", "{", "b", "[", "--", "o", "]", "=", "base10byte", "[", "value", "%", "10", "]", ";", "value", "/=", "10", ";", "}", "if", "(", "isneg", ")", "b", "[", "--", "o", "]", "=", "'-'", ";", "return", "o", ";", "}" ]
public static int FormatBase10(byte[] b, int o, int value){if (value == 0){b[--o] = (byte)('0');return o;}bool isneg = value < 0;if (isneg){value = -value;}while (value != 0){b[--o] = base10byte[value % 10];value /= 10;}if (isneg){b[--o] = (byte)('-');}return o;}
train
false
8,108
public DescribeDBSecurityGroupsResult describeDBSecurityGroups(DescribeDBSecurityGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeDBSecurityGroups(request);}
[ "public", "DescribeDBSecurityGroupsResult", "describeDBSecurityGroups", "(", "DescribeDBSecurityGroupsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeDBSecurityGroups", "(", "request", ")", ";", "}" ]
public virtual DescribeDBSecurityGroupsResponse DescribeDBSecurityGroups(DescribeDBSecurityGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBSecurityGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBSecurityGroupsResponseUnmarshaller.Instance;return Invoke<DescribeDBSecurityGroupsResponse>(request, options);}
train
true
8,109
public DeleteTrafficMirrorSessionResult deleteTrafficMirrorSession(DeleteTrafficMirrorSessionRequest request) {request = beforeClientExecution(request);return executeDeleteTrafficMirrorSession(request);}
[ "public", "DeleteTrafficMirrorSessionResult", "deleteTrafficMirrorSession", "(", "DeleteTrafficMirrorSessionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteTrafficMirrorSession", "(", "request", ")", ";", "}" ]
public virtual DeleteTrafficMirrorSessionResponse DeleteTrafficMirrorSession(DeleteTrafficMirrorSessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTrafficMirrorSessionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTrafficMirrorSessionResponseUnmarshaller.Instance;return Invoke<DeleteTrafficMirrorSessionResponse>(request, options);}
train
false
8,110
public void stopWalk() {final int cur = ptr;final int cnt = cache.getEntryCount();if (cur < cnt)builder.keep(cur, cnt - cur);}
[ "public", "void", "stopWalk", "(", ")", "{", "final", "int", "cur", "=", "ptr", ";", "final", "int", "cnt", "=", "cache", ".", "getEntryCount", "(", ")", ";", "if", "(", "cur", "<", "cnt", ")", "builder", ".", "keep", "(", "cur", ",", "cnt", "-", "cur", ")", ";", "}" ]
public override void StopWalk(){int cur = ptr;int cnt = cache.GetEntryCount();if (cur < cnt){builder.Keep(cur, cnt - cur);}}
train
false
8,111
public ExpandedDouble normaliseBaseTwo() {MutableFPNumber cc = new MutableFPNumber(composeFrac(), 39);cc.multiplyByPowerOfTen(_relativeDecimalExponent);cc.normalise64bit();return cc.createExpandedDouble();}
[ "public", "ExpandedDouble", "normaliseBaseTwo", "(", ")", "{", "MutableFPNumber", "cc", "=", "new", "MutableFPNumber", "(", "composeFrac", "(", ")", ",", "39", ")", ";", "cc", ".", "multiplyByPowerOfTen", "(", "_relativeDecimalExponent", ")", ";", "cc", ".", "normalise64bit", "(", ")", ";", "return", "cc", ".", "createExpandedDouble", "(", ")", ";", "}" ]
public ExpandedDouble NormaliseBaseTwo(){MutableFPNumber cc = new MutableFPNumber(ComposeFrac(), 39);cc.multiplyByPowerOfTen(_relativeDecimalExponent);cc.Normalise64bit();return cc.CreateExpandedDouble();}
train
false
8,112
public PutLexiconResult putLexicon(PutLexiconRequest request) {request = beforeClientExecution(request);return executePutLexicon(request);}
[ "public", "PutLexiconResult", "putLexicon", "(", "PutLexiconRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePutLexicon", "(", "request", ")", ";", "}" ]
public virtual PutLexiconResponse PutLexicon(PutLexiconRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutLexiconRequestMarshaller.Instance;options.ResponseUnmarshaller = PutLexiconResponseUnmarshaller.Instance;return Invoke<PutLexiconResponse>(request, options);}
train
true
8,113
public int[] init() {if (perField.postingsArray == null) {perField.postingsArray = perField.createPostingsArray(2);perField.newPostingsArray();bytesUsed.addAndGet(perField.postingsArray.size * perField.postingsArray.bytesPerPosting());}return perField.postingsArray.textStarts;}
[ "public", "int", "[", "]", "init", "(", ")", "{", "if", "(", "perField", ".", "postingsArray", "==", "null", ")", "{", "perField", ".", "postingsArray", "=", "perField", ".", "createPostingsArray", "(", "2", ")", ";", "perField", ".", "newPostingsArray", "(", ")", ";", "bytesUsed", ".", "addAndGet", "(", "perField", ".", "postingsArray", ".", "size", "*", "perField", ".", "postingsArray", ".", "bytesPerPosting", "(", ")", ")", ";", "}", "return", "perField", ".", "postingsArray", ".", "textStarts", ";", "}" ]
public override int[] Init(){if (perField.postingsArray == null){perField.postingsArray = perField.consumer.CreatePostingsArray(2);bytesUsed.AddAndGet(perField.postingsArray.size * perField.postingsArray.BytesPerPosting());}return perField.postingsArray.textStarts;}
train
false
8,114
public DirCacheEntry getDirCacheEntry() {return entry;}
[ "public", "DirCacheEntry", "getDirCacheEntry", "(", ")", "{", "return", "entry", ";", "}" ]
public virtual DirCacheEntry GetDirCacheEntry(){return entry;}
train
false
8,115
public boolean include(TreeWalk walker) {return matchFilter(walker) <= 0;}
[ "public", "boolean", "include", "(", "TreeWalk", "walker", ")", "{", "return", "matchFilter", "(", "walker", ")", "<=", "0", ";", "}" ]
public override bool Include(TreeWalk walker){return walker.IsPathPrefix(pathRaw, pathRaw.Length) == 0;}
train
false
8,116
public void open(String closer) {if (closer == null) {throw new NullPointerException("closer == null");}if (this == NOOP || !ENABLED) {return;}String message = "Explicit termination method '" + closer + "' not called";allocationSite = new Throwable(message);}
[ "public", "void", "open", "(", "String", "closer", ")", "{", "if", "(", "closer", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", "\"closer == null\"", ")", ";", "}", "if", "(", "this", "==", "NOOP", "||", "!", "ENABLED", ")", "{", "return", ";", "}", "String", "message", "=", "\"Explicit termination method '\"", "+", "closer", "+", "\"' not called\"", ";", "allocationSite", "=", "new", "Throwable", "(", "message", ")", ";", "}" ]
public void open(string closer){if (closer == null){throw new System.ArgumentNullException("closer == null");}if (this == NOOP || !ENABLED){return;}string message = "Explicit termination method '" + closer + "' not called";allocationSite = new System.Exception(message);}
train
true
8,117
public List<ParseTreeMatch> findAll(ParseTree tree, String xpath) {Collection<ParseTree> subtrees = XPath.findAll(tree, xpath, matcher.getParser());List<ParseTreeMatch> matches = new ArrayList<ParseTreeMatch>();for (ParseTree t : subtrees) {ParseTreeMatch match = match(t);if ( match.succeeded() ) {matches.add(match);}}return matches;}
[ "public", "List", "<", "ParseTreeMatch", ">", "findAll", "(", "ParseTree", "tree", ",", "String", "xpath", ")", "{", "Collection", "<", "ParseTree", ">", "subtrees", "=", "XPath", ".", "findAll", "(", "tree", ",", "xpath", ",", "matcher", ".", "getParser", "(", ")", ")", ";", "List", "<", "ParseTreeMatch", ">", "matches", "=", "new", "ArrayList", "<", "ParseTreeMatch", ">", "(", ")", ";", "for", "(", "ParseTree", "t", ":", "subtrees", ")", "{", "ParseTreeMatch", "match", "=", "match", "(", "t", ")", ";", "if", "(", "match", ".", "succeeded", "(", ")", ")", "{", "matches", ".", "add", "(", "match", ")", ";", "}", "}", "return", "matches", ";", "}" ]
public virtual IList<ParseTreeMatch> FindAll(IParseTree tree, string xpath){ICollection<IParseTree> subtrees = XPath.FindAll(tree, xpath, matcher.Parser);IList<ParseTreeMatch> matches = new List<ParseTreeMatch>();foreach (IParseTree t in subtrees){ParseTreeMatch match = Match(t);if (match.Succeeded){matches.Add(match);}}return matches;}
train
false
8,118
public static boolean hasSLLConflictTerminatingPrediction(PredictionMode mode, ATNConfigSet configs) {if (allConfigsInRuleStopStates(configs)) {return true;}if ( mode == PredictionMode.SLL ) {if ( configs.hasSemanticContext ) {ATNConfigSet dup = new ATNConfigSet();for (ATNConfig c : configs) {c = new ATNConfig(c,SemanticContext.NONE);dup.add(c);}configs = dup;}}Collection<BitSet> altsets = getConflictingAltSubsets(configs);boolean heuristic =hasConflictingAltSet(altsets) && !hasStateAssociatedWithOneAlt(configs);return heuristic;}
[ "public", "static", "boolean", "hasSLLConflictTerminatingPrediction", "(", "PredictionMode", "mode", ",", "ATNConfigSet", "configs", ")", "{", "if", "(", "allConfigsInRuleStopStates", "(", "configs", ")", ")", "{", "return", "true", ";", "}", "if", "(", "mode", "==", "PredictionMode", ".", "SLL", ")", "{", "if", "(", "configs", ".", "hasSemanticContext", ")", "{", "ATNConfigSet", "dup", "=", "new", "ATNConfigSet", "(", ")", ";", "for", "(", "ATNConfig", "c", ":", "configs", ")", "{", "c", "=", "new", "ATNConfig", "(", "c", ",", "SemanticContext", ".", "NONE", ")", ";", "dup", ".", "add", "(", "c", ")", ";", "}", "configs", "=", "dup", ";", "}", "}", "Collection", "<", "BitSet", ">", "altsets", "=", "getConflictingAltSubsets", "(", "configs", ")", ";", "boolean", "heuristic", "=", "hasConflictingAltSet", "(", "altsets", ")", "&&", "!", "hasStateAssociatedWithOneAlt", "(", "configs", ")", ";", "return", "heuristic", ";", "}" ]
public static bool HasSLLConflictTerminatingPrediction(PredictionMode mode, ATNConfigSet configSet){if (AllConfigsInRuleStopStates(configSet.configs)){return true;}if (mode == PredictionMode.SLL){if (configSet.hasSemanticContext){ATNConfigSet dup = new ATNConfigSet();foreach (ATNConfig c in configSet.configs){dup.Add(new ATNConfig(c, SemanticContext.NONE));}configSet = dup;}}ICollection<BitSet> altsets = GetConflictingAltSubsets(configSet.configs);bool heuristic = HasConflictingAltSet(altsets) && !HasStateAssociatedWithOneAlt(configSet.configs);return heuristic;}
train
false
8,119
public DescribeUpdateActionsResult describeUpdateActions(DescribeUpdateActionsRequest request) {request = beforeClientExecution(request);return executeDescribeUpdateActions(request);}
[ "public", "DescribeUpdateActionsResult", "describeUpdateActions", "(", "DescribeUpdateActionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeUpdateActions", "(", "request", ")", ";", "}" ]
public virtual DescribeUpdateActionsResponse DescribeUpdateActions(DescribeUpdateActionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUpdateActionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUpdateActionsResponseUnmarshaller.Instance;return Invoke<DescribeUpdateActionsResponse>(request, options);}
train
false
8,120
public HashMap() {table = (HashMapEntry<K, V>[]) EMPTY_TABLE;threshold = -1; }
[ "public", "HashMap", "(", ")", "{", "table", "=", "(", "HashMapEntry", "<", "K", ",", "V", ">", "[", "]", ")", "EMPTY_TABLE", ";", "threshold", "=", "-", "1", ";", "}" ]
public HashMap(){table = (java.util.HashMap.HashMapEntry<K, V>[])EMPTY_TABLE;threshold = -1;}
train
false
8,122
public CreateLifecyclePolicyResult createLifecyclePolicy(CreateLifecyclePolicyRequest request) {request = beforeClientExecution(request);return executeCreateLifecyclePolicy(request);}
[ "public", "CreateLifecyclePolicyResult", "createLifecyclePolicy", "(", "CreateLifecyclePolicyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateLifecyclePolicy", "(", "request", ")", ";", "}" ]
public virtual CreateLifecyclePolicyResponse CreateLifecyclePolicy(CreateLifecyclePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLifecyclePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLifecyclePolicyResponseUnmarshaller.Instance;return Invoke<CreateLifecyclePolicyResponse>(request, options);}
train
true
8,123
public void writeLong(long v) {writeInt((int)(v));writeInt((int)(v >> 32));}
[ "public", "void", "writeLong", "(", "long", "v", ")", "{", "writeInt", "(", "(", "int", ")", "(", "v", ")", ")", ";", "writeInt", "(", "(", "int", ")", "(", "v", ">", ">", "32", ")", ")", ";", "}" ]
public void WriteLong(long v){WriteInt((int)(v >> 0));WriteInt((int)(v >> 32));}
train
false
8,124
public void set(char[] arr, int end) {this.buf = arr;this.len = end;}
[ "public", "void", "set", "(", "char", "[", "]", "arr", ",", "int", "end", ")", "{", "this", ".", "buf", "=", "arr", ";", "this", ".", "len", "=", "end", ";", "}" ]
public virtual void Set(char[] arr, int end){this.m_buf = arr;this.m_len = end;}
train
false
8,125
public HMMChineseTokenizerFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "HMMChineseTokenizerFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public HMMChineseTokenizerFactory(IDictionary<string, string> args): base(args){if (args.Any()){throw new ArgumentException("Unknown parameters: " + args);}}
train
false
8,126
public String toString() {return getClass().getSimpleName()+" field:"+fieldName+" ctx="+ctx;}
[ "public", "String", "toString", "(", ")", "{", "return", "getClass", "(", ")", ".", "getSimpleName", "(", ")", "+", "\" field:\"", "+", "fieldName", "+", "\" ctx=\"", "+", "ctx", ";", "}" ]
public override string ToString(){return GetType().Name + " field:" + fieldName + " ctx=" + m_ctx;}
train
false
8,127
public ResendContactReachabilityEmailResult resendContactReachabilityEmail(ResendContactReachabilityEmailRequest request) {request = beforeClientExecution(request);return executeResendContactReachabilityEmail(request);}
[ "public", "ResendContactReachabilityEmailResult", "resendContactReachabilityEmail", "(", "ResendContactReachabilityEmailRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeResendContactReachabilityEmail", "(", "request", ")", ";", "}" ]
public virtual ResendContactReachabilityEmailResponse ResendContactReachabilityEmail(ResendContactReachabilityEmailRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResendContactReachabilityEmailRequestMarshaller.Instance;options.ResponseUnmarshaller = ResendContactReachabilityEmailResponseUnmarshaller.Instance;return Invoke<ResendContactReachabilityEmailResponse>(request, options);}
train
true
8,128
public GetApiKeyResult getApiKey(GetApiKeyRequest request) {request = beforeClientExecution(request);return executeGetApiKey(request);}
[ "public", "GetApiKeyResult", "getApiKey", "(", "GetApiKeyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetApiKey", "(", "request", ")", ";", "}" ]
public virtual GetApiKeyResponse GetApiKey(GetApiKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApiKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApiKeyResponseUnmarshaller.Instance;return Invoke<GetApiKeyResponse>(request, options);}
train
true
8,129
public void advance() {previousValue = value;if (value == 1) {value = minShingleSize;} else if (value == maxShingleSize) {reset();} else {++value;}}
[ "public", "void", "advance", "(", ")", "{", "previousValue", "=", "value", ";", "if", "(", "value", "==", "1", ")", "{", "value", "=", "minShingleSize", ";", "}", "else", "if", "(", "value", "==", "maxShingleSize", ")", "{", "reset", "(", ")", ";", "}", "else", "{", "++", "value", ";", "}", "}" ]
public virtual void Advance(){previousValue = value;if (value == 1){value = outerInstance.minShingleSize;}else if (value == outerInstance.maxShingleSize){Reset();}else{++value;}}
train
false
8,130
public int addConditionalFormatting(CellRangeAddress[] regions,ConditionalFormattingRule rule1) {return addConditionalFormatting(regions, (HSSFConditionalFormattingRule)rule1);}
[ "public", "int", "addConditionalFormatting", "(", "CellRangeAddress", "[", "]", "regions", ",", "ConditionalFormattingRule", "rule1", ")", "{", "return", "addConditionalFormatting", "(", "regions", ",", "(", "HSSFConditionalFormattingRule", ")", "rule1", ")", ";", "}" ]
public int AddConditionalFormatting(CellRangeAddress[] regions,HSSFConditionalFormattingRule rule1){return AddConditionalFormatting(regions,rule1 == null ? null : new HSSFConditionalFormattingRule[]{rule1});}
train
false
8,131
public RebaseCommand setUpstream(RevCommit upstream) {this.upstreamCommit = upstream;this.upstreamCommitName = upstream.name();return this;}
[ "public", "RebaseCommand", "setUpstream", "(", "RevCommit", "upstream", ")", "{", "this", ".", "upstreamCommit", "=", "upstream", ";", "this", ".", "upstreamCommitName", "=", "upstream", ".", "name", "(", ")", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.RebaseCommand SetUpstream(RevCommit upstream){this.upstreamCommit = upstream;this.upstreamCommitName = upstream.Name;return this;}
train
false
8,132
public GetDocumentTextDetectionResult getDocumentTextDetection(GetDocumentTextDetectionRequest request) {request = beforeClientExecution(request);return executeGetDocumentTextDetection(request);}
[ "public", "GetDocumentTextDetectionResult", "getDocumentTextDetection", "(", "GetDocumentTextDetectionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetDocumentTextDetection", "(", "request", ")", ";", "}" ]
public virtual GetDocumentTextDetectionResponse GetDocumentTextDetection(GetDocumentTextDetectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDocumentTextDetectionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDocumentTextDetectionResponseUnmarshaller.Instance;return Invoke<GetDocumentTextDetectionResponse>(request, options);}
train
true
8,133
public CreateDBSecurityGroupRequest(String dBSecurityGroupName, String dBSecurityGroupDescription) {setDBSecurityGroupName(dBSecurityGroupName);setDBSecurityGroupDescription(dBSecurityGroupDescription);}
[ "public", "CreateDBSecurityGroupRequest", "(", "String", "dBSecurityGroupName", ",", "String", "dBSecurityGroupDescription", ")", "{", "setDBSecurityGroupName", "(", "dBSecurityGroupName", ")", ";", "setDBSecurityGroupDescription", "(", "dBSecurityGroupDescription", ")", ";", "}" ]
public CreateDBSecurityGroupRequest(string dbSecurityGroupName, string dbSecurityGroupDescription){_dbSecurityGroupName = dbSecurityGroupName;_dbSecurityGroupDescription = dbSecurityGroupDescription;}
train
false
8,134
public Reader create(Reader input) {return new ICUNormalizer2CharFilter(input, normalizer);}
[ "public", "Reader", "create", "(", "Reader", "input", ")", "{", "return", "new", "ICUNormalizer2CharFilter", "(", "input", ",", "normalizer", ")", ";", "}" ]
public override TextReader Create(TextReader input){return new ICUNormalizer2CharFilter(input, normalizer);}
train
false
8,136
public void set(String name, String value) throws Exception {if (valByRound.get(name) != null) {throw new Exception("Cannot modify a multi value property!");}props.setProperty(name, value);}
[ "public", "void", "set", "(", "String", "name", ",", "String", "value", ")", "throws", "Exception", "{", "if", "(", "valByRound", ".", "get", "(", "name", ")", "!=", "null", ")", "{", "throw", "new", "Exception", "(", "\"Cannot modify a multi value property!\"", ")", ";", "}", "props", ".", "setProperty", "(", "name", ",", "value", ")", ";", "}" ]
public virtual void Set(string name, string value){object temp;if (valByRound.TryGetValue(name, out temp) && temp != null){throw new Exception("Cannot modify a multi value property!");}props[name] = value;}
train
false
8,137
public DescribeFastSnapshotRestoresResult describeFastSnapshotRestores(DescribeFastSnapshotRestoresRequest request) {request = beforeClientExecution(request);return executeDescribeFastSnapshotRestores(request);}
[ "public", "DescribeFastSnapshotRestoresResult", "describeFastSnapshotRestores", "(", "DescribeFastSnapshotRestoresRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeFastSnapshotRestores", "(", "request", ")", ";", "}" ]
public virtual DescribeFastSnapshotRestoresResponse DescribeFastSnapshotRestores(DescribeFastSnapshotRestoresRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFastSnapshotRestoresRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFastSnapshotRestoresResponseUnmarshaller.Instance;return Invoke<DescribeFastSnapshotRestoresResponse>(request, options);}
train
false
8,138
public DescribeScheduledInstanceAvailabilityResult describeScheduledInstanceAvailability(DescribeScheduledInstanceAvailabilityRequest request) {request = beforeClientExecution(request);return executeDescribeScheduledInstanceAvailability(request);}
[ "public", "DescribeScheduledInstanceAvailabilityResult", "describeScheduledInstanceAvailability", "(", "DescribeScheduledInstanceAvailabilityRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeScheduledInstanceAvailability", "(", "request", ")", ";", "}" ]
public virtual DescribeScheduledInstanceAvailabilityResponse DescribeScheduledInstanceAvailability(DescribeScheduledInstanceAvailabilityRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScheduledInstanceAvailabilityRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScheduledInstanceAvailabilityResponseUnmarshaller.Instance;return Invoke<DescribeScheduledInstanceAvailabilityResponse>(request, options);}
train
true
8,139
public SendBonusResult sendBonus(SendBonusRequest request) {request = beforeClientExecution(request);return executeSendBonus(request);}
[ "public", "SendBonusResult", "sendBonus", "(", "SendBonusRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeSendBonus", "(", "request", ")", ";", "}" ]
public virtual SendBonusResponse SendBonus(SendBonusRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendBonusRequestMarshaller.Instance;options.ResponseUnmarshaller = SendBonusResponseUnmarshaller.Instance;return Invoke<SendBonusResponse>(request, options);}
train
true
8,140
public UnpackException(Throwable why) {super(JGitText.get().unpackException);initCause(why);}
[ "public", "UnpackException", "(", "Throwable", "why", ")", "{", "super", "(", "JGitText", ".", "get", "(", ")", ".", "unpackException", ")", ";", "initCause", "(", "why", ")", ";", "}" ]
public UnpackException(Exception why) : base(JGitText.Get().unpackException, why){Sharpen.Extensions.InitCause(this, why);}
train
false
8,141
public boolean remove(Object o) {if (!(o instanceof Map.Entry))return false;Map.Entry<?,?> e = (Map.Entry<?,?>)o;return ConcurrentHashMap.this.remove(e.getKey(), e.getValue());}
[ "public", "boolean", "remove", "(", "Object", "o", ")", "{", "if", "(", "!", "(", "o", "instanceof", "Map", ".", "Entry", ")", ")", "return", "false", ";", "Map", ".", "Entry", "<", "?", ",", "?", ">", "e", "=", "(", "Map", ".", "Entry", "<", "?", ",", "?", ">", ")", "o", ";", "return", "ConcurrentHashMap", ".", "this", ".", "remove", "(", "e", ".", "getKey", "(", ")", ",", "e", ".", "getValue", "(", ")", ")", ";", "}" ]
public override bool remove(object o){if (!(o is java.util.MapClass.Entry<K, V>)){return false;}java.util.MapClass.Entry<object, object> e = (java.util.MapClass.Entry<object, object>)o;return this._enclosing.removeMapping(e.getKey(), e.getValue());}
train
false
8,142
public Iterator<V> iterator() {return newValueIterator();}
[ "public", "Iterator", "<", "V", ">", "iterator", "(", ")", "{", "return", "newValueIterator", "(", ")", ";", "}" ]
public override java.util.Iterator<V> iterator(){return new java.util.Hashtable<K, V>.ValueIterator(this._enclosing);}
train
false
8,143
public DescribeVpcEndpointServiceConfigurationsResult describeVpcEndpointServiceConfigurations(DescribeVpcEndpointServiceConfigurationsRequest request) {request = beforeClientExecution(request);return executeDescribeVpcEndpointServiceConfigurations(request);}
[ "public", "DescribeVpcEndpointServiceConfigurationsResult", "describeVpcEndpointServiceConfigurations", "(", "DescribeVpcEndpointServiceConfigurationsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeVpcEndpointServiceConfigurations", "(", "request", ")", ";", "}" ]
public virtual DescribeVpcEndpointServiceConfigurationsResponse DescribeVpcEndpointServiceConfigurations(DescribeVpcEndpointServiceConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcEndpointServiceConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcEndpointServiceConfigurationsResponseUnmarshaller.Instance;return Invoke<DescribeVpcEndpointServiceConfigurationsResponse>(request, options);}
train
true
8,144
public void setDiffComparator(RawTextComparator cmp) {comparator = cmp;}
[ "public", "void", "setDiffComparator", "(", "RawTextComparator", "cmp", ")", "{", "comparator", "=", "cmp", ";", "}" ]
public virtual void SetDiffComparator(RawTextComparator cmp){comparator = cmp;}
train
false
8,145
public FilePassRecord clone() {return copy();}
[ "public", "FilePassRecord", "clone", "(", ")", "{", "return", "copy", "(", ")", ";", "}" ]
public override Object Clone(){return this;}
train
false
8,146
public DeleteServiceResult deleteService(DeleteServiceRequest request) {request = beforeClientExecution(request);return executeDeleteService(request);}
[ "public", "DeleteServiceResult", "deleteService", "(", "DeleteServiceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteService", "(", "request", ")", ";", "}" ]
public virtual DeleteServiceResponse DeleteService(DeleteServiceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteServiceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteServiceResponseUnmarshaller.Instance;return Invoke<DeleteServiceResponse>(request, options);}
train
true
8,147
public FormulaRecord() {field_8_parsed_expr = Formula.create(Ptg.EMPTY_PTG_ARRAY);}
[ "public", "FormulaRecord", "(", ")", "{", "field_8_parsed_expr", "=", "Formula", ".", "create", "(", "Ptg", ".", "EMPTY_PTG_ARRAY", ")", ";", "}" ]
public FormulaRecord(){field_8_parsed_expr = NPOI.SS.Formula.Formula.Create(Ptg.EMPTY_PTG_ARRAY);}
train
false
8,148
public DescribeHsmClientCertificatesResult describeHsmClientCertificates(DescribeHsmClientCertificatesRequest request) {request = beforeClientExecution(request);return executeDescribeHsmClientCertificates(request);}
[ "public", "DescribeHsmClientCertificatesResult", "describeHsmClientCertificates", "(", "DescribeHsmClientCertificatesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeHsmClientCertificates", "(", "request", ")", ";", "}" ]
public virtual DescribeHsmClientCertificatesResponse DescribeHsmClientCertificates(DescribeHsmClientCertificatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeHsmClientCertificatesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeHsmClientCertificatesResponseUnmarshaller.Instance;return Invoke<DescribeHsmClientCertificatesResponse>(request, options);}
train
true
8,149
public ICUTokenizerFactory(Map<String,String> args) {super(args);tailored = new HashMap<>();String rulefilesArg = get(args, RULEFILES);if (rulefilesArg != null) {List<String> scriptAndResourcePaths = splitFileNames(rulefilesArg);for (String scriptAndResourcePath : scriptAndResourcePaths) {int colonPos = scriptAndResourcePath.indexOf(":");String scriptCode = scriptAndResourcePath.substring(0, colonPos).trim();String resourcePath = scriptAndResourcePath.substring(colonPos+1).trim();tailored.put(UCharacter.getPropertyValueEnum(UProperty.SCRIPT, scriptCode), resourcePath);}}cjkAsWords = getBoolean(args, "cjkAsWords", true);myanmarAsWords = getBoolean(args, "myanmarAsWords", true);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "ICUTokenizerFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "tailored", "=", "new", "HashMap", "<", ">", "(", ")", ";", "String", "rulefilesArg", "=", "get", "(", "args", ",", "RULEFILES", ")", ";", "if", "(", "rulefilesArg", "!=", "null", ")", "{", "List", "<", "String", ">", "scriptAndResourcePaths", "=", "splitFileNames", "(", "rulefilesArg", ")", ";", "for", "(", "String", "scriptAndResourcePath", ":", "scriptAndResourcePaths", ")", "{", "int", "colonPos", "=", "scriptAndResourcePath", ".", "indexOf", "(", "\":\"", ")", ";", "String", "scriptCode", "=", "scriptAndResourcePath", ".", "substring", "(", "0", ",", "colonPos", ")", ".", "trim", "(", ")", ";", "String", "resourcePath", "=", "scriptAndResourcePath", ".", "substring", "(", "colonPos", "+", "1", ")", ".", "trim", "(", ")", ";", "tailored", ".", "put", "(", "UCharacter", ".", "getPropertyValueEnum", "(", "UProperty", ".", "SCRIPT", ",", "scriptCode", ")", ",", "resourcePath", ")", ";", "}", "}", "cjkAsWords", "=", "getBoolean", "(", "args", ",", "\"cjkAsWords\"", ",", "true", ")", ";", "myanmarAsWords", "=", "getBoolean", "(", "args", ",", "\"myanmarAsWords\"", ",", "true", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public ICUTokenizerFactory(IDictionary<string, string> args): base(args){tailored = new Dictionary<int, string>();string rulefilesArg = Get(args, RULEFILES);if (rulefilesArg != null){IList<string> scriptAndResourcePaths = SplitFileNames(rulefilesArg);foreach (string scriptAndResourcePath in scriptAndResourcePaths){int colonPos = scriptAndResourcePath.IndexOf(':');string scriptCode = scriptAndResourcePath.Substring(0, colonPos - 0).Trim();string resourcePath = scriptAndResourcePath.Substring(colonPos + 1).Trim();tailored[UChar.GetPropertyValueEnum(UProperty.Script, scriptCode)] = resourcePath;}}cjkAsWords = GetBoolean(args, "cjkAsWords", true);myanmarAsWords = GetBoolean(args, "myanmarAsWords", true);if (args.Count != 0){throw new ArgumentException("Unknown parameters: " + args);}}
train
false
8,150
public SuspendProcessesResult suspendProcesses(SuspendProcessesRequest request) {request = beforeClientExecution(request);return executeSuspendProcesses(request);}
[ "public", "SuspendProcessesResult", "suspendProcesses", "(", "SuspendProcessesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeSuspendProcesses", "(", "request", ")", ";", "}" ]
public virtual SuspendProcessesResponse SuspendProcesses(SuspendProcessesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SuspendProcessesRequestMarshaller.Instance;options.ResponseUnmarshaller = SuspendProcessesResponseUnmarshaller.Instance;return Invoke<SuspendProcessesResponse>(request, options);}
train
true
8,151
public DescribeConfigurationRevisionResult describeConfigurationRevision(DescribeConfigurationRevisionRequest request) {request = beforeClientExecution(request);return executeDescribeConfigurationRevision(request);}
[ "public", "DescribeConfigurationRevisionResult", "describeConfigurationRevision", "(", "DescribeConfigurationRevisionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeConfigurationRevision", "(", "request", ")", ";", "}" ]
public virtual DescribeConfigurationRevisionResponse DescribeConfigurationRevision(DescribeConfigurationRevisionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeConfigurationRevisionRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeConfigurationRevisionResponseUnmarshaller.Instance;return Invoke<DescribeConfigurationRevisionResponse>(request, options);}
train
true
8,153
public TabIdRecord() {_tabids = EMPTY_SHORT_ARRAY;}
[ "public", "TabIdRecord", "(", ")", "{", "_tabids", "=", "EMPTY_SHORT_ARRAY", ";", "}" ]
public TabIdRecord(){_tabids = EMPTY_SHORT_ARRAY;}
train
false
8,154
public List<String> getConflictingPaths() {return conflictingPaths;}
[ "public", "List", "<", "String", ">", "getConflictingPaths", "(", ")", "{", "return", "conflictingPaths", ";", "}" ]
public virtual IList<string> GetConflictingPaths(){return conflictingPaths;}
train
false
8,155
public void reset() {inDegree = 0;}
[ "public", "void", "reset", "(", ")", "{", "inDegree", "=", "0", ";", "}" ]
public virtual void Reset(){inDegree = 0;}
train
false
8,156
public DescribeJobFlowsRequest(java.util.List<String> jobFlowIds) {setJobFlowIds(jobFlowIds);}
[ "public", "DescribeJobFlowsRequest", "(", "java", ".", "util", ".", "List", "<", "String", ">", "jobFlowIds", ")", "{", "setJobFlowIds", "(", "jobFlowIds", ")", ";", "}" ]
public DescribeJobFlowsRequest(List<string> jobFlowIds){_jobFlowIds = jobFlowIds;}
train
false
8,158
public DeleteMountTargetResult deleteMountTarget(DeleteMountTargetRequest request) {request = beforeClientExecution(request);return executeDeleteMountTarget(request);}
[ "public", "DeleteMountTargetResult", "deleteMountTarget", "(", "DeleteMountTargetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteMountTarget", "(", "request", ")", ";", "}" ]
public virtual DeleteMountTargetResponse DeleteMountTarget(DeleteMountTargetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMountTargetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMountTargetResponseUnmarshaller.Instance;return Invoke<DeleteMountTargetResponse>(request, options);}
train
true
8,159
public void println(double d) {println(String.valueOf(d));}
[ "public", "void", "println", "(", "double", "d", ")", "{", "println", "(", "String", ".", "valueOf", "(", "d", ")", ")", ";", "}" ]
public virtual void println(double d){println(d.ToString());}
train
false
8,160
public DescribeDBProxyTargetsResult describeDBProxyTargets(DescribeDBProxyTargetsRequest request) {request = beforeClientExecution(request);return executeDescribeDBProxyTargets(request);}
[ "public", "DescribeDBProxyTargetsResult", "describeDBProxyTargets", "(", "DescribeDBProxyTargetsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeDBProxyTargets", "(", "request", ")", ";", "}" ]
public virtual DescribeDBProxyTargetsResponse DescribeDBProxyTargets(DescribeDBProxyTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBProxyTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBProxyTargetsResponseUnmarshaller.Instance;return Invoke<DescribeDBProxyTargetsResponse>(request, options);}
train
false
8,161
final public SrndQuery PrefixOperatorQuery() throws ParseException {Token oprt;List<SrndQuery> queries;switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case OR:oprt = jj_consume_token(OR);queries = FieldsQueryList();{if (true) return getOrQuery(queries, false , oprt);}break;case AND:oprt = jj_consume_token(AND);queries = FieldsQueryList();{if (true) return getAndQuery(queries, false , oprt);}break;case N:oprt = jj_consume_token(N);queries = FieldsQueryList();{if (true) return getDistanceQuery(queries, false , oprt, false );}break;case W:oprt = jj_consume_token(W);queries = FieldsQueryList();{if (true) return getDistanceQuery(queries, false , oprt, true );}break;default:jj_la1[6] = jj_gen;jj_consume_token(-1);throw new ParseException();}throw new Error("Missing return statement in function");}
[ "final", "public", "SrndQuery", "PrefixOperatorQuery", "(", ")", "throws", "ParseException", "{", "Token", "oprt", ";", "List", "<", "SrndQuery", ">", "queries", ";", "switch", "(", "(", "jj_ntk", "==", "-", "1", ")", "?", "jj_ntk", "(", ")", ":", "jj_ntk", ")", "{", "case", "OR", ":", "oprt", "=", "jj_consume_token", "(", "OR", ")", ";", "queries", "=", "FieldsQueryList", "(", ")", ";", "{", "if", "(", "true", ")", "return", "getOrQuery", "(", "queries", ",", "false", ",", "oprt", ")", ";", "}", "break", ";", "case", "AND", ":", "oprt", "=", "jj_consume_token", "(", "AND", ")", ";", "queries", "=", "FieldsQueryList", "(", ")", ";", "{", "if", "(", "true", ")", "return", "getAndQuery", "(", "queries", ",", "false", ",", "oprt", ")", ";", "}", "break", ";", "case", "N", ":", "oprt", "=", "jj_consume_token", "(", "N", ")", ";", "queries", "=", "FieldsQueryList", "(", ")", ";", "{", "if", "(", "true", ")", "return", "getDistanceQuery", "(", "queries", ",", "false", ",", "oprt", ",", "false", ")", ";", "}", "break", ";", "case", "W", ":", "oprt", "=", "jj_consume_token", "(", "W", ")", ";", "queries", "=", "FieldsQueryList", "(", ")", ";", "{", "if", "(", "true", ")", "return", "getDistanceQuery", "(", "queries", ",", "false", ",", "oprt", ",", "true", ")", ";", "}", "break", ";", "default", ":", "jj_la1", "[", "6", "]", "=", "jj_gen", ";", "jj_consume_token", "(", "-", "1", ")", ";", "throw", "new", "ParseException", "(", ")", ";", "}", "throw", "new", "Error", "(", "\"Missing return statement in function\"", ")", ";", "}" ]
public SrndQuery PrefixOperatorQuery(){Token oprt;IList<SrndQuery> queries;switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.OR:oprt = Jj_consume_token(RegexpToken.OR);queries = FieldsQueryList();{ if (true) return GetOrQuery(queries, false , oprt); }case RegexpToken.AND:oprt = Jj_consume_token(RegexpToken.AND);queries = FieldsQueryList();{ if (true) return GetAndQuery(queries, false , oprt); }case RegexpToken.N:oprt = Jj_consume_token(RegexpToken.N);queries = FieldsQueryList();{ if (true) return GetDistanceQuery(queries, false , oprt, false ); }case RegexpToken.W:oprt = Jj_consume_token(RegexpToken.W);queries = FieldsQueryList();{ if (true) return GetDistanceQuery(queries, false , oprt, true ); }default:jj_la1[6] = jj_gen;Jj_consume_token(-1);throw new ParseException();}throw new Exception("Missing return statement in function");}
train
false
8,162
public DeleteInstanceSnapshotResult deleteInstanceSnapshot(DeleteInstanceSnapshotRequest request) {request = beforeClientExecution(request);return executeDeleteInstanceSnapshot(request);}
[ "public", "DeleteInstanceSnapshotResult", "deleteInstanceSnapshot", "(", "DeleteInstanceSnapshotRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteInstanceSnapshot", "(", "request", ")", ";", "}" ]
public virtual DeleteInstanceSnapshotResponse DeleteInstanceSnapshot(DeleteInstanceSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteInstanceSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteInstanceSnapshotResponseUnmarshaller.Instance;return Invoke<DeleteInstanceSnapshotResponse>(request, options);}
train
true
8,163
public Entry<K, V> firstEntry() {return immutableCopy(endpoint(true));}
[ "public", "Entry", "<", "K", ",", "V", ">", "firstEntry", "(", ")", "{", "return", "immutableCopy", "(", "endpoint", "(", "true", ")", ")", ";", "}" ]
public java.util.MapClass.Entry<K, V> firstEntry(){return this._enclosing.immutableCopy(this.endpoint(true));}
train
false
8,164
public DeregisterTransitGatewayMulticastGroupSourcesResult deregisterTransitGatewayMulticastGroupSources(DeregisterTransitGatewayMulticastGroupSourcesRequest request) {request = beforeClientExecution(request);return executeDeregisterTransitGatewayMulticastGroupSources(request);}
[ "public", "DeregisterTransitGatewayMulticastGroupSourcesResult", "deregisterTransitGatewayMulticastGroupSources", "(", "DeregisterTransitGatewayMulticastGroupSourcesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeregisterTransitGatewayMulticastGroupSources", "(", "request", ")", ";", "}" ]
public virtual DeregisterTransitGatewayMulticastGroupSourcesResponse DeregisterTransitGatewayMulticastGroupSources(DeregisterTransitGatewayMulticastGroupSourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterTransitGatewayMulticastGroupSourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterTransitGatewayMulticastGroupSourcesResponseUnmarshaller.Instance;return Invoke<DeregisterTransitGatewayMulticastGroupSourcesResponse>(request, options);}
train
false
8,165
public ImportTerminologyResult importTerminology(ImportTerminologyRequest request) {request = beforeClientExecution(request);return executeImportTerminology(request);}
[ "public", "ImportTerminologyResult", "importTerminology", "(", "ImportTerminologyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeImportTerminology", "(", "request", ")", ";", "}" ]
public virtual ImportTerminologyResponse ImportTerminology(ImportTerminologyRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportTerminologyRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportTerminologyResponseUnmarshaller.Instance;return Invoke<ImportTerminologyResponse>(request, options);}
train
true
8,166
public int serialize(int offset, byte[] data){byte[] rawData = getRawData();if (getEscherRecords().size() == 0 && rawData != null){return writeData( offset, data, rawData );}byte[] buffer = new byte[getRawDataSize()];int pos = 0;for ( Iterator<EscherRecord> iterator = getEscherRecords().iterator(); iterator.hasNext(); ){EscherRecord r = iterator.next();pos += r.serialize(pos, buffer, new NullEscherSerializationListener() );}return writeData( offset, data, buffer );}
[ "public", "int", "serialize", "(", "int", "offset", ",", "byte", "[", "]", "data", ")", "{", "byte", "[", "]", "rawData", "=", "getRawData", "(", ")", ";", "if", "(", "getEscherRecords", "(", ")", ".", "size", "(", ")", "==", "0", "&&", "rawData", "!=", "null", ")", "{", "return", "writeData", "(", "offset", ",", "data", ",", "rawData", ")", ";", "}", "byte", "[", "]", "buffer", "=", "new", "byte", "[", "getRawDataSize", "(", ")", "]", ";", "int", "pos", "=", "0", ";", "for", "(", "Iterator", "<", "EscherRecord", ">", "iterator", "=", "getEscherRecords", "(", ")", ".", "iterator", "(", ")", ";", "iterator", ".", "hasNext", "(", ")", ";", ")", "{", "EscherRecord", "r", "=", "iterator", ".", "next", "(", ")", ";", "pos", "+=", "r", ".", "serialize", "(", "pos", ",", "buffer", ",", "new", "NullEscherSerializationListener", "(", ")", ")", ";", "}", "return", "writeData", "(", "offset", ",", "data", ",", "buffer", ")", ";", "}" ]
public override int Serialize(int offset, byte [] data){byte[] rawData = RawData;if (EscherRecords.Count == 0 && rawData != null){return WriteData(offset, data, rawData);}else{byte[] buffer = new byte[RawDataSize];int pos = 0;for (IEnumerator iterator = EscherRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord r = (EscherRecord)iterator.Current;pos += r.Serialize(pos, buffer, new NullEscherSerializationListener());}return WriteData(offset, data, buffer);}}
train
false
8,167
public DescribeDBParameterGroupsResult describeDBParameterGroups(DescribeDBParameterGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeDBParameterGroups(request);}
[ "public", "DescribeDBParameterGroupsResult", "describeDBParameterGroups", "(", "DescribeDBParameterGroupsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeDBParameterGroups", "(", "request", ")", ";", "}" ]
public virtual DescribeDBParameterGroupsResponse DescribeDBParameterGroups(DescribeDBParameterGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBParameterGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBParameterGroupsResponseUnmarshaller.Instance;return Invoke<DescribeDBParameterGroupsResponse>(request, options);}
train
true
8,168
public static FuzzySet createSetBasedOnMaxMemory(int maxNumBytes){int setSize=getNearestSetSize(maxNumBytes);return new FuzzySet(new FixedBitSet(setSize+1),setSize, hashFunctionForVersion(VERSION_CURRENT));}
[ "public", "static", "FuzzySet", "createSetBasedOnMaxMemory", "(", "int", "maxNumBytes", ")", "{", "int", "setSize", "=", "getNearestSetSize", "(", "maxNumBytes", ")", ";", "return", "new", "FuzzySet", "(", "new", "FixedBitSet", "(", "setSize", "+", "1", ")", ",", "setSize", ",", "hashFunctionForVersion", "(", "VERSION_CURRENT", ")", ")", ";", "}" ]
public static FuzzySet CreateSetBasedOnMaxMemory(int maxNumBytes){var setSize = GetNearestSetSize(maxNumBytes);return new FuzzySet(new FixedBitSet(setSize + 1), setSize, HashFunctionForVersion(VERSION_CURRENT));}
train
false
8,169
public BundleWriter(Repository repo) {db = repo;reader = null;include = new TreeMap<>();assume = new HashSet<>();tagTargets = new HashSet<>();}
[ "public", "BundleWriter", "(", "Repository", "repo", ")", "{", "db", "=", "repo", ";", "reader", "=", "null", ";", "include", "=", "new", "TreeMap", "<", ">", "(", ")", ";", "assume", "=", "new", "HashSet", "<", ">", "(", ")", ";", "tagTargets", "=", "new", "HashSet", "<", ">", "(", ")", ";", "}" ]
public BundleWriter(Repository repo){db = repo;include = new SortedDictionary<string, ObjectId>();assume = new HashSet<RevCommit>();tagTargets = new HashSet<ObjectId>();}
train
false
8,170
public AssociateDomainResult associateDomain(AssociateDomainRequest request) {request = beforeClientExecution(request);return executeAssociateDomain(request);}
[ "public", "AssociateDomainResult", "associateDomain", "(", "AssociateDomainRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAssociateDomain", "(", "request", ")", ";", "}" ]
public virtual AssociateDomainResponse AssociateDomain(AssociateDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateDomainResponseUnmarshaller.Instance;return Invoke<AssociateDomainResponse>(request, options);}
train
true
8,171
public GetInstancePortStatesResult getInstancePortStates(GetInstancePortStatesRequest request) {request = beforeClientExecution(request);return executeGetInstancePortStates(request);}
[ "public", "GetInstancePortStatesResult", "getInstancePortStates", "(", "GetInstancePortStatesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetInstancePortStates", "(", "request", ")", ";", "}" ]
public virtual GetInstancePortStatesResponse GetInstancePortStates(GetInstancePortStatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInstancePortStatesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInstancePortStatesResponseUnmarshaller.Instance;return Invoke<GetInstancePortStatesResponse>(request, options);}
train
true
8,172
public SrndTruncQuery(String truncated, char unlimited, char mask) {super(false); this.truncated = truncated;this.unlimited = unlimited;this.mask = mask;truncatedToPrefixAndPattern();}
[ "public", "SrndTruncQuery", "(", "String", "truncated", ",", "char", "unlimited", ",", "char", "mask", ")", "{", "super", "(", "false", ")", ";", "this", ".", "truncated", "=", "truncated", ";", "this", ".", "unlimited", "=", "unlimited", ";", "this", ".", "mask", "=", "mask", ";", "truncatedToPrefixAndPattern", "(", ")", ";", "}" ]
public SrndTruncQuery(string truncated, char unlimited, char mask): base(false) {this.truncated = truncated;this.unlimited = unlimited;this.mask = mask;TruncatedToPrefixAndPattern();}
train
false
8,173
public final Explanation explain(BasicStats stats) {return Explanation.match(lambda(stats),getClass().getSimpleName()+ ", computed as (n + 1) / (N + 1) from:",Explanation.match(stats.getDocFreq(),"n, number of documents containing term"),Explanation.match(stats.getNumberOfDocuments(),"N, total number of documents with field"));}
[ "public", "final", "Explanation", "explain", "(", "BasicStats", "stats", ")", "{", "return", "Explanation", ".", "match", "(", "lambda", "(", "stats", ")", ",", "getClass", "(", ")", ".", "getSimpleName", "(", ")", "+", "\", computed as (n + 1) / (N + 1) from:\"", ",", "Explanation", ".", "match", "(", "stats", ".", "getDocFreq", "(", ")", ",", "\"n, number of documents containing term\"", ")", ",", "Explanation", ".", "match", "(", "stats", ".", "getNumberOfDocuments", "(", ")", ",", "\"N, total number of documents with field\"", ")", ")", ";", "}" ]
public override sealed Explanation Explain(BasicStats stats){Explanation result = new Explanation();result.Description = this.GetType().Name + ", computed from: ";result.Value = CalculateLambda(stats);result.AddDetail(new Explanation(stats.DocFreq, "docFreq"));result.AddDetail(new Explanation(stats.NumberOfDocuments, "numberOfDocuments"));return result;}
train
false
8,174
public DeleteBaiduChannelResult deleteBaiduChannel(DeleteBaiduChannelRequest request) {request = beforeClientExecution(request);return executeDeleteBaiduChannel(request);}
[ "public", "DeleteBaiduChannelResult", "deleteBaiduChannel", "(", "DeleteBaiduChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteBaiduChannel", "(", "request", ")", ";", "}" ]
public virtual DeleteBaiduChannelResponse DeleteBaiduChannel(DeleteBaiduChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteBaiduChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteBaiduChannelResponseUnmarshaller.Instance;return Invoke<DeleteBaiduChannelResponse>(request, options);}
train
true