id_within_dataset
int64 0
10.3k
| snippet
stringlengths 29
1.4k
| tokens
sequence | cs
stringlengths 28
1.38k
| split_within_dataset
stringclasses 1
value | is_duplicated
bool 2
classes |
---|---|---|---|---|---|
546 | public long ramBytesUsed() {return RamUsageEstimator.alignObjectSize(RamUsageEstimator.NUM_BYTES_OBJECT_HEADER + Integer.BYTES);}
| [
"public",
"long",
"ramBytesUsed",
"(",
")",
"{",
"return",
"RamUsageEstimator",
".",
"alignObjectSize",
"(",
"RamUsageEstimator",
".",
"NUM_BYTES_OBJECT_HEADER",
"+",
"Integer",
".",
"BYTES",
")",
";",
"}"
] | public override long RamBytesUsed(){return RamUsageEstimator.AlignObjectSize(RamUsageEstimator.NUM_BYTES_OBJECT_HEADER + RamUsageEstimator.NUM_BYTES_INT32);}
| train | false |
547 | public NoteRecord() {field_6_author = "";field_3_flags = 0;field_7_padding = DEFAULT_PADDING; }
| [
"public",
"NoteRecord",
"(",
")",
"{",
"field_6_author",
"=",
"\"\"",
";",
"field_3_flags",
"=",
"0",
";",
"field_7_padding",
"=",
"DEFAULT_PADDING",
";",
"}"
] | public NoteRecord(){field_6_author = "";field_3_flags = 0;field_7_padding = DEFAULT_PADDING; }
| train | false |
548 | public CellReference[] getAllReferencedCells() {if(_isSingleCell) {return new CellReference[] { _firstCell, };}int minRow = Math.min(_firstCell.getRow(), _lastCell.getRow());int maxRow = Math.max(_firstCell.getRow(), _lastCell.getRow());int minCol = Math.min(_firstCell.getCol(), _lastCell.getCol());int maxCol = Math.max(_firstCell.getCol(), _lastCell.getCol());String sheetName = _firstCell.getSheetName();List<CellReference> refs = new ArrayList<>();for(int row=minRow; row<=maxRow; row++) {for(int col=minCol; col<=maxCol; col++) {CellReference ref = new CellReference(sheetName, row, col, _firstCell.isRowAbsolute(), _firstCell.isColAbsolute());refs.add(ref);}}return refs.toArray(new CellReference[0]);}
| [
"public",
"CellReference",
"[",
"]",
"getAllReferencedCells",
"(",
")",
"{",
"if",
"(",
"_isSingleCell",
")",
"{",
"return",
"new",
"CellReference",
"[",
"]",
"{",
"_firstCell",
",",
"}",
";",
"}",
"int",
"minRow",
"=",
"Math",
".",
"min",
"(",
"_firstCell",
".",
"getRow",
"(",
")",
",",
"_lastCell",
".",
"getRow",
"(",
")",
")",
";",
"int",
"maxRow",
"=",
"Math",
".",
"max",
"(",
"_firstCell",
".",
"getRow",
"(",
")",
",",
"_lastCell",
".",
"getRow",
"(",
")",
")",
";",
"int",
"minCol",
"=",
"Math",
".",
"min",
"(",
"_firstCell",
".",
"getCol",
"(",
")",
",",
"_lastCell",
".",
"getCol",
"(",
")",
")",
";",
"int",
"maxCol",
"=",
"Math",
".",
"max",
"(",
"_firstCell",
".",
"getCol",
"(",
")",
",",
"_lastCell",
".",
"getCol",
"(",
")",
")",
";",
"String",
"sheetName",
"=",
"_firstCell",
".",
"getSheetName",
"(",
")",
";",
"List",
"<",
"CellReference",
">",
"refs",
"=",
"new",
"ArrayList",
"<",
">",
"(",
")",
";",
"for",
"(",
"int",
"row",
"=",
"minRow",
";",
"row",
"<=",
"maxRow",
";",
"row",
"++",
")",
"{",
"for",
"(",
"int",
"col",
"=",
"minCol",
";",
"col",
"<=",
"maxCol",
";",
"col",
"++",
")",
"{",
"CellReference",
"ref",
"=",
"new",
"CellReference",
"(",
"sheetName",
",",
"row",
",",
"col",
",",
"_firstCell",
".",
"isRowAbsolute",
"(",
")",
",",
"_firstCell",
".",
"isColAbsolute",
"(",
")",
")",
";",
"refs",
".",
"add",
"(",
"ref",
")",
";",
"}",
"}",
"return",
"refs",
".",
"toArray",
"(",
"new",
"CellReference",
"[",
"0",
"]",
")",
";",
"}"
] | public CellReference[] GetAllReferencedCells(){if (_isSingleCell){return new CellReference[] { _firstCell, };}int minRow = Math.Min(_firstCell.Row, _lastCell.Row);int maxRow = Math.Max(_firstCell.Row, _lastCell.Row);int minCol = Math.Min(_firstCell.Col, _lastCell.Col);int maxCol = Math.Max(_firstCell.Col, _lastCell.Col);String sheetName = _firstCell.SheetName;ArrayList refs = new ArrayList();for (int row = minRow; row <= maxRow; row++){for (int col = minCol; col <= maxCol; col++){CellReference ref1 = new CellReference(sheetName, row, col, _firstCell.IsRowAbsolute, _firstCell.IsColAbsolute);refs.Add(ref1);}}return (CellReference[])refs.ToArray(typeof(CellReference));}
| train | false |
549 | public String[] listAll() {ensureOpen();String[] res = entries.keySet().toArray(new String[entries.size()]);for (int i = 0; i < res.length; i++) {res[i] = segmentName + res[i];}return res;}
| [
"public",
"String",
"[",
"]",
"listAll",
"(",
")",
"{",
"ensureOpen",
"(",
")",
";",
"String",
"[",
"]",
"res",
"=",
"entries",
".",
"keySet",
"(",
")",
".",
"toArray",
"(",
"new",
"String",
"[",
"entries",
".",
"size",
"(",
")",
"]",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"res",
".",
"length",
";",
"i",
"++",
")",
"{",
"res",
"[",
"i",
"]",
"=",
"segmentName",
"+",
"res",
"[",
"i",
"]",
";",
"}",
"return",
"res",
";",
"}"
] | public override string[] ListAll(){EnsureOpen();string[] res;if (writer != null){res = writer.ListAll();}else{res = entries.Keys.ToArray();string seg = IndexFileNames.ParseSegmentName(fileName);for (int i = 0; i < res.Length; i++){res[i] = seg + res[i];}}return res;}
| train | false |
550 | public UpdateDataRetentionResult updateDataRetention(UpdateDataRetentionRequest request) {request = beforeClientExecution(request);return executeUpdateDataRetention(request);}
| [
"public",
"UpdateDataRetentionResult",
"updateDataRetention",
"(",
"UpdateDataRetentionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateDataRetention",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateDataRetentionResponse UpdateDataRetention(UpdateDataRetentionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDataRetentionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDataRetentionResponseUnmarshaller.Instance;return Invoke<UpdateDataRetentionResponse>(request, options);}
| train | true |
551 | public CreateDistributionRequest(DistributionConfig distributionConfig) {setDistributionConfig(distributionConfig);}
| [
"public",
"CreateDistributionRequest",
"(",
"DistributionConfig",
"distributionConfig",
")",
"{",
"setDistributionConfig",
"(",
"distributionConfig",
")",
";",
"}"
] | public CreateDistributionRequest(DistributionConfig distributionConfig){_distributionConfig = distributionConfig;}
| train | false |
552 | public DescribeBatchPredictionsResult describeBatchPredictions(DescribeBatchPredictionsRequest request) {request = beforeClientExecution(request);return executeDescribeBatchPredictions(request);}
| [
"public",
"DescribeBatchPredictionsResult",
"describeBatchPredictions",
"(",
"DescribeBatchPredictionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeBatchPredictions",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeBatchPredictionsResponse DescribeBatchPredictions(DescribeBatchPredictionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeBatchPredictionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeBatchPredictionsResponseUnmarshaller.Instance;return Invoke<DescribeBatchPredictionsResponse>(request, options);}
| train | true |
553 | public float getScore(int index) {return scores[index];}
| [
"public",
"float",
"getScore",
"(",
"int",
"index",
")",
"{",
"return",
"scores",
"[",
"index",
"]",
";",
"}"
] | public virtual float GetScore(int index){return scores[index];}
| train | false |
554 | public BatchUpdatePhoneNumberResult batchUpdatePhoneNumber(BatchUpdatePhoneNumberRequest request) {request = beforeClientExecution(request);return executeBatchUpdatePhoneNumber(request);}
| [
"public",
"BatchUpdatePhoneNumberResult",
"batchUpdatePhoneNumber",
"(",
"BatchUpdatePhoneNumberRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeBatchUpdatePhoneNumber",
"(",
"request",
")",
";",
"}"
] | public virtual BatchUpdatePhoneNumberResponse BatchUpdatePhoneNumber(BatchUpdatePhoneNumberRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchUpdatePhoneNumberRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchUpdatePhoneNumberResponseUnmarshaller.Instance;return Invoke<BatchUpdatePhoneNumberResponse>(request, options);}
| train | true |
555 | public LMSimilarity(CollectionModel collectionModel) {this.collectionModel = collectionModel;}
| [
"public",
"LMSimilarity",
"(",
"CollectionModel",
"collectionModel",
")",
"{",
"this",
".",
"collectionModel",
"=",
"collectionModel",
";",
"}"
] | public LMSimilarity(ICollectionModel collectionModel){this.m_collectionModel = collectionModel;}
| train | false |
556 | public GetGlobalSettingsResult getGlobalSettings(GetGlobalSettingsRequest request) {request = beforeClientExecution(request);return executeGetGlobalSettings(request);}
| [
"public",
"GetGlobalSettingsResult",
"getGlobalSettings",
"(",
"GetGlobalSettingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetGlobalSettings",
"(",
"request",
")",
";",
"}"
] | public virtual GetGlobalSettingsResponse GetGlobalSettings(GetGlobalSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetGlobalSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetGlobalSettingsResponseUnmarshaller.Instance;return Invoke<GetGlobalSettingsResponse>(request, options);}
| train | true |
557 | public CreateHITTypeResult createHITType(CreateHITTypeRequest request) {request = beforeClientExecution(request);return executeCreateHITType(request);}
| [
"public",
"CreateHITTypeResult",
"createHITType",
"(",
"CreateHITTypeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateHITType",
"(",
"request",
")",
";",
"}"
] | public virtual CreateHITTypeResponse CreateHITType(CreateHITTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateHITTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateHITTypeResponseUnmarshaller.Instance;return Invoke<CreateHITTypeResponse>(request, options);}
| train | true |
558 | public MLTConfig build() {return new MLTConfig(this);}
| [
"public",
"MLTConfig",
"build",
"(",
")",
"{",
"return",
"new",
"MLTConfig",
"(",
"this",
")",
";",
"}"
] | public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}
| train | false |
559 | public CharsRef(String string) {this.chars = string.toCharArray();this.offset = 0;this.length = chars.length;}
| [
"public",
"CharsRef",
"(",
"String",
"string",
")",
"{",
"this",
".",
"chars",
"=",
"string",
".",
"toCharArray",
"(",
")",
";",
"this",
".",
"offset",
"=",
"0",
";",
"this",
".",
"length",
"=",
"chars",
".",
"length",
";",
"}"
] | public CharsRef(string @string){this.chars = @string.ToCharArray();this.Offset = 0;this.Length = chars.Length;}
| train | false |
560 | public ListFargateProfilesResult listFargateProfiles(ListFargateProfilesRequest request) {request = beforeClientExecution(request);return executeListFargateProfiles(request);}
| [
"public",
"ListFargateProfilesResult",
"listFargateProfiles",
"(",
"ListFargateProfilesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListFargateProfiles",
"(",
"request",
")",
";",
"}"
] | public virtual ListFargateProfilesResponse ListFargateProfiles(ListFargateProfilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFargateProfilesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFargateProfilesResponseUnmarshaller.Instance;return Invoke<ListFargateProfilesResponse>(request, options);}
| train | false |
561 | public Entry<K, V> floorEntry(K key) {return immutableCopy(findBounded(key, FLOOR));}
| [
"public",
"Entry",
"<",
"K",
",",
"V",
">",
"floorEntry",
"(",
"K",
"key",
")",
"{",
"return",
"immutableCopy",
"(",
"findBounded",
"(",
"key",
",",
"FLOOR",
")",
")",
";",
"}"
] | public java.util.MapClass.Entry<K, V> floorEntry(K key){return this._enclosing.immutableCopy(this.findBounded(key, java.util.TreeMap.Relation.FLOOR));}
| train | false |
562 | public boolean equals( Object o ) {return o instanceof NorwegianStemmer;}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"o",
")",
"{",
"return",
"o",
"instanceof",
"NorwegianStemmer",
";",
"}"
] | public override bool Equals(object o){return o is NorwegianStemmer;}
| train | false |
563 | public DeleteVaultNotificationsResult deleteVaultNotifications(DeleteVaultNotificationsRequest request) {request = beforeClientExecution(request);return executeDeleteVaultNotifications(request);}
| [
"public",
"DeleteVaultNotificationsResult",
"deleteVaultNotifications",
"(",
"DeleteVaultNotificationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteVaultNotifications",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteVaultNotificationsResponse DeleteVaultNotifications(DeleteVaultNotificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVaultNotificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVaultNotificationsResponseUnmarshaller.Instance;return Invoke<DeleteVaultNotificationsResponse>(request, options);}
| train | true |
565 | public synchronized void setRequireDimCount(String dimName, boolean v) {DimConfig ft = fieldTypes.get(dimName);if (ft == null) {ft = new DimConfig();fieldTypes.put(dimName, ft);}ft.requireDimCount = v;}
| [
"public",
"synchronized",
"void",
"setRequireDimCount",
"(",
"String",
"dimName",
",",
"boolean",
"v",
")",
"{",
"DimConfig",
"ft",
"=",
"fieldTypes",
".",
"get",
"(",
"dimName",
")",
";",
"if",
"(",
"ft",
"==",
"null",
")",
"{",
"ft",
"=",
"new",
"DimConfig",
"(",
")",
";",
"fieldTypes",
".",
"put",
"(",
"dimName",
",",
"ft",
")",
";",
"}",
"ft",
".",
"requireDimCount",
"=",
"v",
";",
"}"
] | public virtual void SetRequireDimCount(string dimName, bool v){lock (this){if (!fieldTypes.TryGetValue(dimName, out DimConfig fieldType)){fieldTypes[dimName] = new DimConfig { RequireDimCount = v };}else{fieldType.RequireDimCount = v;}}}
| train | false |
566 | public HSSFName getName(String name) {int nameIndex = getNameIndex(name);if (nameIndex < 0) {return null;}return names.get(nameIndex);}
| [
"public",
"HSSFName",
"getName",
"(",
"String",
"name",
")",
"{",
"int",
"nameIndex",
"=",
"getNameIndex",
"(",
"name",
")",
";",
"if",
"(",
"nameIndex",
"<",
"0",
")",
"{",
"return",
"null",
";",
"}",
"return",
"names",
".",
"get",
"(",
"nameIndex",
")",
";",
"}"
] | public NPOI.SS.UserModel.IName GetName(String name){int nameIndex = GetNameIndex(name);if (nameIndex < 0){return null;}return (HSSFName)names[nameIndex];}
| train | false |
567 | public ScriptBootstrapActionConfig(String path, java.util.List<String> args) {setPath(path);setArgs(args);}
| [
"public",
"ScriptBootstrapActionConfig",
"(",
"String",
"path",
",",
"java",
".",
"util",
".",
"List",
"<",
"String",
">",
"args",
")",
"{",
"setPath",
"(",
"path",
")",
";",
"setArgs",
"(",
"args",
")",
";",
"}"
] | public ScriptBootstrapActionConfig(string path, List<string> args){_path = path;_args = args;}
| train | false |
568 | public RegisterApplicationRevisionResult registerApplicationRevision(RegisterApplicationRevisionRequest request) {request = beforeClientExecution(request);return executeRegisterApplicationRevision(request);}
| [
"public",
"RegisterApplicationRevisionResult",
"registerApplicationRevision",
"(",
"RegisterApplicationRevisionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRegisterApplicationRevision",
"(",
"request",
")",
";",
"}"
] | public virtual RegisterApplicationRevisionResponse RegisterApplicationRevision(RegisterApplicationRevisionRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterApplicationRevisionRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterApplicationRevisionResponseUnmarshaller.Instance;return Invoke<RegisterApplicationRevisionResponse>(request, options);}
| train | true |
569 | public SendTestEventNotificationResult sendTestEventNotification(SendTestEventNotificationRequest request) {request = beforeClientExecution(request);return executeSendTestEventNotification(request);}
| [
"public",
"SendTestEventNotificationResult",
"sendTestEventNotification",
"(",
"SendTestEventNotificationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSendTestEventNotification",
"(",
"request",
")",
";",
"}"
] | public virtual SendTestEventNotificationResponse SendTestEventNotification(SendTestEventNotificationRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendTestEventNotificationRequestMarshaller.Instance;options.ResponseUnmarshaller = SendTestEventNotificationResponseUnmarshaller.Instance;return Invoke<SendTestEventNotificationResponse>(request, options);}
| train | true |
570 | public void setRefLogIdent(PersonIdent pi) {refLogIdent = pi;}
| [
"public",
"void",
"setRefLogIdent",
"(",
"PersonIdent",
"pi",
")",
"{",
"refLogIdent",
"=",
"pi",
";",
"}"
] | public virtual void SetRefLogIdent(PersonIdent pi){refLogIdent = pi;}
| train | false |
571 | public GetDomainDeliverabilityCampaignResult getDomainDeliverabilityCampaign(GetDomainDeliverabilityCampaignRequest request) {request = beforeClientExecution(request);return executeGetDomainDeliverabilityCampaign(request);}
| [
"public",
"GetDomainDeliverabilityCampaignResult",
"getDomainDeliverabilityCampaign",
"(",
"GetDomainDeliverabilityCampaignRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDomainDeliverabilityCampaign",
"(",
"request",
")",
";",
"}"
] | public virtual GetDomainDeliverabilityCampaignResponse GetDomainDeliverabilityCampaign(GetDomainDeliverabilityCampaignRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDomainDeliverabilityCampaignRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDomainDeliverabilityCampaignResponseUnmarshaller.Instance;return Invoke<GetDomainDeliverabilityCampaignResponse>(request, options);}
| train | false |
572 | public String toFormulaString() {StringBuilder b = new StringBuilder();b.append("{");for (int y = 0; y < _nRows; y++) {if (y > 0) {b.append(";");}for (int x = 0; x < _nColumns; x++) {if (x > 0) {b.append(",");}Object o = _arrayValues[getValueIndex(x, y)];b.append(getConstantText(o));}}b.append("}");return b.toString();}
| [
"public",
"String",
"toFormulaString",
"(",
")",
"{",
"StringBuilder",
"b",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"b",
".",
"append",
"(",
"\"{\"",
")",
";",
"for",
"(",
"int",
"y",
"=",
"0",
";",
"y",
"<",
"_nRows",
";",
"y",
"++",
")",
"{",
"if",
"(",
"y",
">",
"0",
")",
"{",
"b",
".",
"append",
"(",
"\";\"",
")",
";",
"}",
"for",
"(",
"int",
"x",
"=",
"0",
";",
"x",
"<",
"_nColumns",
";",
"x",
"++",
")",
"{",
"if",
"(",
"x",
">",
"0",
")",
"{",
"b",
".",
"append",
"(",
"\",\"",
")",
";",
"}",
"Object",
"o",
"=",
"_arrayValues",
"[",
"getValueIndex",
"(",
"x",
",",
"y",
")",
"]",
";",
"b",
".",
"append",
"(",
"getConstantText",
"(",
"o",
")",
")",
";",
"}",
"}",
"b",
".",
"append",
"(",
"\"}\"",
")",
";",
"return",
"b",
".",
"toString",
"(",
")",
";",
"}"
] | public override String ToFormulaString(){StringBuilder b = new StringBuilder();b.Append("{");for (int y = 0; y < RowCount; y++){if (y > 0){b.Append(";");}for (int x = 0; x < ColumnCount; x++){if (x > 0){b.Append(",");}Object o = _arrayValues.GetValue(GetValueIndex(x, y));b.Append(GetConstantText(o));}}b.Append("}");return b.ToString();}
| train | false |
573 | public ShingleFilterFactory(Map<String, String> args) {super(args);maxShingleSize = getInt(args, "maxShingleSize", ShingleFilter.DEFAULT_MAX_SHINGLE_SIZE);if (maxShingleSize < 2) {throw new IllegalArgumentException("Invalid maxShingleSize (" + maxShingleSize + ") - must be at least 2");}minShingleSize = getInt(args, "minShingleSize", ShingleFilter.DEFAULT_MIN_SHINGLE_SIZE);if (minShingleSize < 2) {throw new IllegalArgumentException("Invalid minShingleSize (" + minShingleSize + ") - must be at least 2");}if (minShingleSize > maxShingleSize) {throw new IllegalArgumentException("Invalid minShingleSize (" + minShingleSize + ") - must be no greater than maxShingleSize (" + maxShingleSize + ")");}outputUnigrams = getBoolean(args, "outputUnigrams", true);outputUnigramsIfNoShingles = getBoolean(args, "outputUnigramsIfNoShingles", false);tokenSeparator = get(args, "tokenSeparator", ShingleFilter.DEFAULT_TOKEN_SEPARATOR);fillerToken = get(args, "fillerToken", ShingleFilter.DEFAULT_FILLER_TOKEN);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"ShingleFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"maxShingleSize",
"=",
"getInt",
"(",
"args",
",",
"\"maxShingleSize\"",
",",
"ShingleFilter",
".",
"DEFAULT_MAX_SHINGLE_SIZE",
")",
";",
"if",
"(",
"maxShingleSize",
"<",
"2",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Invalid maxShingleSize (\"",
"+",
"maxShingleSize",
"+",
"\") - must be at least 2\"",
")",
";",
"}",
"minShingleSize",
"=",
"getInt",
"(",
"args",
",",
"\"minShingleSize\"",
",",
"ShingleFilter",
".",
"DEFAULT_MIN_SHINGLE_SIZE",
")",
";",
"if",
"(",
"minShingleSize",
"<",
"2",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Invalid minShingleSize (\"",
"+",
"minShingleSize",
"+",
"\") - must be at least 2\"",
")",
";",
"}",
"if",
"(",
"minShingleSize",
">",
"maxShingleSize",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Invalid minShingleSize (\"",
"+",
"minShingleSize",
"+",
"\") - must be no greater than maxShingleSize (\"",
"+",
"maxShingleSize",
"+",
"\")\"",
")",
";",
"}",
"outputUnigrams",
"=",
"getBoolean",
"(",
"args",
",",
"\"outputUnigrams\"",
",",
"true",
")",
";",
"outputUnigramsIfNoShingles",
"=",
"getBoolean",
"(",
"args",
",",
"\"outputUnigramsIfNoShingles\"",
",",
"false",
")",
";",
"tokenSeparator",
"=",
"get",
"(",
"args",
",",
"\"tokenSeparator\"",
",",
"ShingleFilter",
".",
"DEFAULT_TOKEN_SEPARATOR",
")",
";",
"fillerToken",
"=",
"get",
"(",
"args",
",",
"\"fillerToken\"",
",",
"ShingleFilter",
".",
"DEFAULT_FILLER_TOKEN",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown parameters: \"",
"+",
"args",
")",
";",
"}",
"}"
] | public ShingleFilterFactory(IDictionary<string, string> args): base(args){maxShingleSize = GetInt32(args, "maxShingleSize", ShingleFilter.DEFAULT_MAX_SHINGLE_SIZE);if (maxShingleSize < 2){throw new ArgumentOutOfRangeException("Invalid maxShingleSize (" + maxShingleSize + ") - must be at least 2");}minShingleSize = GetInt32(args, "minShingleSize", ShingleFilter.DEFAULT_MIN_SHINGLE_SIZE);if (minShingleSize < 2){throw new ArgumentOutOfRangeException("Invalid minShingleSize (" + minShingleSize + ") - must be at least 2");}if (minShingleSize > maxShingleSize){throw new ArgumentOutOfRangeException("Invalid minShingleSize (" + minShingleSize + ") - must be no greater than maxShingleSize (" + maxShingleSize + ")");}outputUnigrams = GetBoolean(args, "outputUnigrams", true);outputUnigramsIfNoShingles = GetBoolean(args, "outputUnigramsIfNoShingles", false);tokenSeparator = Get(args, "tokenSeparator", ShingleFilter.DEFAULT_TOKEN_SEPARATOR);fillerToken = Get(args, "fillerToken", ShingleFilter.DEFAULT_FILLER_TOKEN);if (args.Count > 0){throw new ArgumentException("Unknown parameters: " + args);}}
| train | false |
574 | public UpdateRelationalDatabaseParametersResult updateRelationalDatabaseParameters(UpdateRelationalDatabaseParametersRequest request) {request = beforeClientExecution(request);return executeUpdateRelationalDatabaseParameters(request);}
| [
"public",
"UpdateRelationalDatabaseParametersResult",
"updateRelationalDatabaseParameters",
"(",
"UpdateRelationalDatabaseParametersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateRelationalDatabaseParameters",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateRelationalDatabaseParametersResponse UpdateRelationalDatabaseParameters(UpdateRelationalDatabaseParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRelationalDatabaseParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRelationalDatabaseParametersResponseUnmarshaller.Instance;return Invoke<UpdateRelationalDatabaseParametersResponse>(request, options);}
| train | true |
575 | public static Collection<ParseTree> findAllRuleNodes(ParseTree t, int ruleIndex) {return findAllNodes(t, ruleIndex, false);}
| [
"public",
"static",
"Collection",
"<",
"ParseTree",
">",
"findAllRuleNodes",
"(",
"ParseTree",
"t",
",",
"int",
"ruleIndex",
")",
"{",
"return",
"findAllNodes",
"(",
"t",
",",
"ruleIndex",
",",
"false",
")",
";",
"}"
] | public static ICollection<IParseTree> FindAllRuleNodes(IParseTree t, int ruleIndex){return FindAllNodes(t, ruleIndex, false);}
| train | false |
576 | public int getObjectCount() {return entryCount;}
| [
"public",
"int",
"getObjectCount",
"(",
")",
"{",
"return",
"entryCount",
";",
"}"
] | public virtual int GetObjectCount(){return entryCount;}
| train | false |
577 | public ActionTransition(ATNState target, int ruleIndex, int actionIndex, boolean isCtxDependent) {super(target);this.ruleIndex = ruleIndex;this.actionIndex = actionIndex;this.isCtxDependent = isCtxDependent;}
| [
"public",
"ActionTransition",
"(",
"ATNState",
"target",
",",
"int",
"ruleIndex",
",",
"int",
"actionIndex",
",",
"boolean",
"isCtxDependent",
")",
"{",
"super",
"(",
"target",
")",
";",
"this",
".",
"ruleIndex",
"=",
"ruleIndex",
";",
"this",
".",
"actionIndex",
"=",
"actionIndex",
";",
"this",
".",
"isCtxDependent",
"=",
"isCtxDependent",
";",
"}"
] | public ActionTransition(ATNState target, int ruleIndex, int actionIndex, bool isCtxDependent): base(target){this.ruleIndex = ruleIndex;this.actionIndex = actionIndex;this.isCtxDependent = isCtxDependent;}
| train | false |
578 | public long get(int index) {final int blockOffset = index / valuesPerBlock;final long skip = ((long) blockOffset) << 3;try {in.seek(startPointer + skip);long block = in.readLong();final int offsetInBlock = index % valuesPerBlock;return (block >>> (offsetInBlock * bitsPerValue)) & mask;} catch (IOException e) {throw new IllegalStateException("failed", e);}}
| [
"public",
"long",
"get",
"(",
"int",
"index",
")",
"{",
"final",
"int",
"blockOffset",
"=",
"index",
"/",
"valuesPerBlock",
";",
"final",
"long",
"skip",
"=",
"(",
"(",
"long",
")",
"blockOffset",
")",
"<<",
"3",
";",
"try",
"{",
"in",
".",
"seek",
"(",
"startPointer",
"+",
"skip",
")",
";",
"long",
"block",
"=",
"in",
".",
"readLong",
"(",
")",
";",
"final",
"int",
"offsetInBlock",
"=",
"index",
"%",
"valuesPerBlock",
";",
"return",
"(",
"block",
">",
">",
">",
"(",
"offsetInBlock",
"*",
"bitsPerValue",
")",
")",
"&",
"mask",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"failed\"",
",",
"e",
")",
";",
"}",
"}"
] | public override long Get(int index){int blockOffset = index / valuesPerBlock;long skip = ((long)blockOffset) << 3;try{@in.Seek(startPointer + skip);long block = @in.ReadInt64();int offsetInBlock = index % valuesPerBlock;return ((long)((ulong)block >> (offsetInBlock * m_bitsPerValue))) & mask;}catch (System.IO.IOException e){throw new InvalidOperationException("failed", e);}}
| train | false |
579 | public String getSignerType() {return "BEARERTOKEN";}
| [
"public",
"String",
"getSignerType",
"(",
")",
"{",
"return",
"\"BEARERTOKEN\"",
";",
"}"
] | public override string GetSignerType(){return "BEARERTOKEN";}
| train | false |
580 | public PipedOutputStream(PipedInputStream target) throws IOException {connect(target);}
| [
"public",
"PipedOutputStream",
"(",
"PipedInputStream",
"target",
")",
"throws",
"IOException",
"{",
"connect",
"(",
"target",
")",
";",
"}"
] | public PipedOutputStream(java.io.PipedInputStream target){throw new System.NotImplementedException();}
| train | false |
581 | public DeleteLedgerResult deleteLedger(DeleteLedgerRequest request) {request = beforeClientExecution(request);return executeDeleteLedger(request);}
| [
"public",
"DeleteLedgerResult",
"deleteLedger",
"(",
"DeleteLedgerRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteLedger",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteLedgerResponse DeleteLedger(DeleteLedgerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLedgerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLedgerResponseUnmarshaller.Instance;return Invoke<DeleteLedgerResponse>(request, options);}
| train | false |
582 | public GetCognitoEventsResult getCognitoEvents(GetCognitoEventsRequest request) {request = beforeClientExecution(request);return executeGetCognitoEvents(request);}
| [
"public",
"GetCognitoEventsResult",
"getCognitoEvents",
"(",
"GetCognitoEventsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetCognitoEvents",
"(",
"request",
")",
";",
"}"
] | public virtual GetCognitoEventsResponse GetCognitoEvents(GetCognitoEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCognitoEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCognitoEventsResponseUnmarshaller.Instance;return Invoke<GetCognitoEventsResponse>(request, options);}
| train | true |
583 | public NameXPtg getNameXPtg(String name, SheetIdentifier sheet) {int sheetRefIndex = getSheetExtIx(sheet);return _iBook.getNameXPtg(name, sheetRefIndex, _uBook.getUDFFinder());}
| [
"public",
"NameXPtg",
"getNameXPtg",
"(",
"String",
"name",
",",
"SheetIdentifier",
"sheet",
")",
"{",
"int",
"sheetRefIndex",
"=",
"getSheetExtIx",
"(",
"sheet",
")",
";",
"return",
"_iBook",
".",
"getNameXPtg",
"(",
"name",
",",
"sheetRefIndex",
",",
"_uBook",
".",
"getUDFFinder",
"(",
")",
")",
";",
"}"
] | public Ptg GetNameXPtg(String name, SheetIdentifier sheet){int sheetRefIndex = GetSheetExtIx(sheet);return _iBook.GetNameXPtg(name, sheetRefIndex, _uBook.GetUDFFinder());}
| train | false |
584 | public ListResolverEndpointsResult listResolverEndpoints(ListResolverEndpointsRequest request) {request = beforeClientExecution(request);return executeListResolverEndpoints(request);}
| [
"public",
"ListResolverEndpointsResult",
"listResolverEndpoints",
"(",
"ListResolverEndpointsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListResolverEndpoints",
"(",
"request",
")",
";",
"}"
] | public virtual ListResolverEndpointsResponse ListResolverEndpoints(ListResolverEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListResolverEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListResolverEndpointsResponseUnmarshaller.Instance;return Invoke<ListResolverEndpointsResponse>(request, options);}
| train | true |
585 | public String readLine() {try {return reader.readLine();} catch (IOException e) {throw new IOError(e);}}
| [
"public",
"String",
"readLine",
"(",
")",
"{",
"try",
"{",
"return",
"reader",
".",
"readLine",
"(",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"throw",
"new",
"IOError",
"(",
"e",
")",
";",
"}",
"}"
] | public string readLine(){try{return _reader.readLine();}catch (System.IO.IOException e){throw new java.io.IOError(e);}}
| train | false |
586 | public int hash2(char carray[]) {int hash = 5381;for (int i = 0; i < carray.length; i++) {char d = carray[i];hash = ((hash << 5) + hash) + d & 0x00FF;hash = ((hash << 5) + hash) + d >> 8;}return hash;}
| [
"public",
"int",
"hash2",
"(",
"char",
"carray",
"[",
"]",
")",
"{",
"int",
"hash",
"=",
"5381",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"carray",
".",
"length",
";",
"i",
"++",
")",
"{",
"char",
"d",
"=",
"carray",
"[",
"i",
"]",
";",
"hash",
"=",
"(",
"(",
"hash",
"<<",
"5",
")",
"+",
"hash",
")",
"+",
"d",
"&",
"0x00FF",
";",
"hash",
"=",
"(",
"(",
"hash",
"<<",
"5",
")",
"+",
"hash",
")",
"+",
"d",
">",
">",
"8",
";",
"}",
"return",
"hash",
";",
"}"
] | public virtual int Hash2(char[] carray){int hash = 5381;for (int i = 0; i < carray.Length; i++){char d = carray[i];hash = ((hash << 5) + hash) + d & 0x00FF;hash = ((hash << 5) + hash) + d >> 8;}return hash;}
| train | false |
587 | public static long toBookSheetColumn(int bookIndex, int sheetIndex, int columnIndex) {return ((bookIndex & 0xFFFFL) << 48) +((sheetIndex & 0xFFFFL) << 32) +((columnIndex & 0xFFFFL) << 0);}
| [
"public",
"static",
"long",
"toBookSheetColumn",
"(",
"int",
"bookIndex",
",",
"int",
"sheetIndex",
",",
"int",
"columnIndex",
")",
"{",
"return",
"(",
"(",
"bookIndex",
"&",
"0xFFFFL",
")",
"<<",
"48",
")",
"+",
"(",
"(",
"sheetIndex",
"&",
"0xFFFFL",
")",
"<<",
"32",
")",
"+",
"(",
"(",
"columnIndex",
"&",
"0xFFFFL",
")",
"<<",
"0",
")",
";",
"}"
] | public static long ToBookSheetColumn(int bookIndex, int sheetIndex, int columnIndex){return ((bookIndex & 0xFFFFL) << 48) + ((sheetIndex & 0xFFFFL) << 32) + ((columnIndex & 0xFFFFL) << 0);}
| train | false |
588 | public CreateConfigurationProfileResult createConfigurationProfile(CreateConfigurationProfileRequest request) {request = beforeClientExecution(request);return executeCreateConfigurationProfile(request);}
| [
"public",
"CreateConfigurationProfileResult",
"createConfigurationProfile",
"(",
"CreateConfigurationProfileRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateConfigurationProfile",
"(",
"request",
")",
";",
"}"
] | public virtual CreateConfigurationProfileResponse CreateConfigurationProfile(CreateConfigurationProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConfigurationProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateConfigurationProfileResponseUnmarshaller.Instance;return Invoke<CreateConfigurationProfileResponse>(request, options);}
| train | false |
589 | public ReplicationGroup startMigration(StartMigrationRequest request) {request = beforeClientExecution(request);return executeStartMigration(request);}
| [
"public",
"ReplicationGroup",
"startMigration",
"(",
"StartMigrationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStartMigration",
"(",
"request",
")",
";",
"}"
] | public virtual StartMigrationResponse StartMigration(StartMigrationRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartMigrationRequestMarshaller.Instance;options.ResponseUnmarshaller = StartMigrationResponseUnmarshaller.Instance;return Invoke<StartMigrationResponse>(request, options);}
| train | false |
590 | public OffsetLimitTokenFilter(TokenStream input, int offsetLimit) {super(input);this.offsetLimit = offsetLimit;}
| [
"public",
"OffsetLimitTokenFilter",
"(",
"TokenStream",
"input",
",",
"int",
"offsetLimit",
")",
"{",
"super",
"(",
"input",
")",
";",
"this",
".",
"offsetLimit",
"=",
"offsetLimit",
";",
"}"
] | public OffsetLimitTokenFilter(TokenStream input, int offsetLimit) : base(input){this.offsetLimit = offsetLimit;offsetAttrib = GetAttribute<IOffsetAttribute>();}
| train | false |
591 | public final void write(byte[] b, int off, int len)throws IOException {while (0 < len) {final int n = Math.min(len, BYTES_TO_WRITE_BEFORE_CANCEL_CHECK);count += n;if (checkCancelAt <= count) {if (writeMonitor.isCancelled()) {throw new IOException(JGitText.get().packingCancelledDuringObjectsWriting);}checkCancelAt = count + BYTES_TO_WRITE_BEFORE_CANCEL_CHECK;}out.write(b, off, n);md.update(b, off, n);off += n;len -= n;}}
| [
"public",
"final",
"void",
"write",
"(",
"byte",
"[",
"]",
"b",
",",
"int",
"off",
",",
"int",
"len",
")",
"throws",
"IOException",
"{",
"while",
"(",
"0",
"<",
"len",
")",
"{",
"final",
"int",
"n",
"=",
"Math",
".",
"min",
"(",
"len",
",",
"BYTES_TO_WRITE_BEFORE_CANCEL_CHECK",
")",
";",
"count",
"+=",
"n",
";",
"if",
"(",
"checkCancelAt",
"<=",
"count",
")",
"{",
"if",
"(",
"writeMonitor",
".",
"isCancelled",
"(",
")",
")",
"{",
"throw",
"new",
"IOException",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"packingCancelledDuringObjectsWriting",
")",
";",
"}",
"checkCancelAt",
"=",
"count",
"+",
"BYTES_TO_WRITE_BEFORE_CANCEL_CHECK",
";",
"}",
"out",
".",
"write",
"(",
"b",
",",
"off",
",",
"n",
")",
";",
"md",
".",
"update",
"(",
"b",
",",
"off",
",",
"n",
")",
";",
"off",
"+=",
"n",
";",
"len",
"-=",
"n",
";",
"}",
"}"
] | public override void Write(byte[] b, int off, int len){while (0 < len){int n = Math.Min(len, BYTES_TO_WRITE_BEFORE_CANCEL_CHECK);count += n;if (checkCancelAt <= count){if (writeMonitor.IsCancelled()){throw new IOException(JGitText.Get().packingCancelledDuringObjectsWriting);}checkCancelAt = count + BYTES_TO_WRITE_BEFORE_CANCEL_CHECK;}@out.Write(b, off, n);crc.Update(b, off, n);md.Update(b, off, n);off += n;len -= n;}}
| train | false |
592 | public Cell merge(Cell m, Cell e) {Cell n = new Cell();if (m.skip != e.skip) {return null;}if (m.cmd >= 0) {if (e.cmd >= 0) {if (m.cmd == e.cmd) {n.cmd = m.cmd;} else {return null;}} else {n.cmd = m.cmd;}} else {n.cmd = e.cmd;}if (m.ref >= 0) {if (e.ref >= 0) {if (m.ref == e.ref) {if (m.skip == e.skip) {n.ref = m.ref;} else {return null;}} else {return null;}} else {n.ref = m.ref;}} else {n.ref = e.ref;}n.cnt = m.cnt + e.cnt;n.skip = m.skip;return n;}
| [
"public",
"Cell",
"merge",
"(",
"Cell",
"m",
",",
"Cell",
"e",
")",
"{",
"Cell",
"n",
"=",
"new",
"Cell",
"(",
")",
";",
"if",
"(",
"m",
".",
"skip",
"!=",
"e",
".",
"skip",
")",
"{",
"return",
"null",
";",
"}",
"if",
"(",
"m",
".",
"cmd",
">=",
"0",
")",
"{",
"if",
"(",
"e",
".",
"cmd",
">=",
"0",
")",
"{",
"if",
"(",
"m",
".",
"cmd",
"==",
"e",
".",
"cmd",
")",
"{",
"n",
".",
"cmd",
"=",
"m",
".",
"cmd",
";",
"}",
"else",
"{",
"return",
"null",
";",
"}",
"}",
"else",
"{",
"n",
".",
"cmd",
"=",
"m",
".",
"cmd",
";",
"}",
"}",
"else",
"{",
"n",
".",
"cmd",
"=",
"e",
".",
"cmd",
";",
"}",
"if",
"(",
"m",
".",
"ref",
">=",
"0",
")",
"{",
"if",
"(",
"e",
".",
"ref",
">=",
"0",
")",
"{",
"if",
"(",
"m",
".",
"ref",
"==",
"e",
".",
"ref",
")",
"{",
"if",
"(",
"m",
".",
"skip",
"==",
"e",
".",
"skip",
")",
"{",
"n",
".",
"ref",
"=",
"m",
".",
"ref",
";",
"}",
"else",
"{",
"return",
"null",
";",
"}",
"}",
"else",
"{",
"return",
"null",
";",
"}",
"}",
"else",
"{",
"n",
".",
"ref",
"=",
"m",
".",
"ref",
";",
"}",
"}",
"else",
"{",
"n",
".",
"ref",
"=",
"e",
".",
"ref",
";",
"}",
"n",
".",
"cnt",
"=",
"m",
".",
"cnt",
"+",
"e",
".",
"cnt",
";",
"n",
".",
"skip",
"=",
"m",
".",
"skip",
";",
"return",
"n",
";",
"}"
] | public virtual Cell Merge(Cell m, Cell e){Cell n = new Cell();if (m.skip != e.skip){return null;}if (m.cmd >= 0){if (e.cmd >= 0){if (m.cmd == e.cmd){n.cmd = m.cmd;}else{return null;}}else{n.cmd = m.cmd;}}else{n.cmd = e.cmd;}if (m.@ref >= 0){if (e.@ref >= 0){if (m.@ref == e.@ref){if (m.skip == e.skip){n.@ref = m.@ref;}else{return null;}}else{return null;}}else{n.@ref = m.@ref;}}else{n.@ref = e.@ref;}n.cnt = m.cnt + e.cnt;n.skip = m.skip;return n;}
| train | false |
593 | public GetCampaignActivitiesResult getCampaignActivities(GetCampaignActivitiesRequest request) {request = beforeClientExecution(request);return executeGetCampaignActivities(request);}
| [
"public",
"GetCampaignActivitiesResult",
"getCampaignActivities",
"(",
"GetCampaignActivitiesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetCampaignActivities",
"(",
"request",
")",
";",
"}"
] | public virtual GetCampaignActivitiesResponse GetCampaignActivities(GetCampaignActivitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCampaignActivitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCampaignActivitiesResponseUnmarshaller.Instance;return Invoke<GetCampaignActivitiesResponse>(request, options);}
| train | true |
594 | public long estimateBytesUsed() {return bytesUsed;}
| [
"public",
"long",
"estimateBytesUsed",
"(",
")",
"{",
"return",
"bytesUsed",
";",
"}"
] | public virtual long EstimateBytesUsed(){return this.bytesUsed;}
| train | false |
595 | public FunctionNameEval(String functionName) {_functionName = functionName;}
| [
"public",
"FunctionNameEval",
"(",
"String",
"functionName",
")",
"{",
"_functionName",
"=",
"functionName",
";",
"}"
] | public FunctionNameEval(String functionName) {_functionName = functionName;}
| train | false |
596 | public final float averageBytesPerChar() {return averageBytesPerChar;}
| [
"public",
"final",
"float",
"averageBytesPerChar",
"(",
")",
"{",
"return",
"averageBytesPerChar",
";",
"}"
] | public float averageBytesPerChar(){return _averageBytesPerChar;}
| train | false |
597 | public CreateCacheSecurityGroupRequest(String cacheSecurityGroupName, String description) {setCacheSecurityGroupName(cacheSecurityGroupName);setDescription(description);}
| [
"public",
"CreateCacheSecurityGroupRequest",
"(",
"String",
"cacheSecurityGroupName",
",",
"String",
"description",
")",
"{",
"setCacheSecurityGroupName",
"(",
"cacheSecurityGroupName",
")",
";",
"setDescription",
"(",
"description",
")",
";",
"}"
] | public CreateCacheSecurityGroupRequest(string cacheSecurityGroupName, string description){_cacheSecurityGroupName = cacheSecurityGroupName;_description = description;}
| train | false |
598 | public void removeAt(int index) {System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1));System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1));mSize--;}
| [
"public",
"void",
"removeAt",
"(",
"int",
"index",
")",
"{",
"System",
".",
"arraycopy",
"(",
"mKeys",
",",
"index",
"+",
"1",
",",
"mKeys",
",",
"index",
",",
"mSize",
"-",
"(",
"index",
"+",
"1",
")",
")",
";",
"System",
".",
"arraycopy",
"(",
"mValues",
",",
"index",
"+",
"1",
",",
"mValues",
",",
"index",
",",
"mSize",
"-",
"(",
"index",
"+",
"1",
")",
")",
";",
"mSize",
"--",
";",
"}"
] | public virtual void removeAt(int index){System.Array.Copy(mKeys, index + 1, mKeys, index, mSize - (index + 1));System.Array.Copy(mValues, index + 1, mValues, index, mSize - (index + 1));mSize--;}
| train | true |
599 | public DescribeIndexFieldsResult describeIndexFields(DescribeIndexFieldsRequest request) {request = beforeClientExecution(request);return executeDescribeIndexFields(request);}
| [
"public",
"DescribeIndexFieldsResult",
"describeIndexFields",
"(",
"DescribeIndexFieldsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeIndexFields",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeIndexFieldsResponse DescribeIndexFields(DescribeIndexFieldsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIndexFieldsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIndexFieldsResponseUnmarshaller.Instance;return Invoke<DescribeIndexFieldsResponse>(request, options);}
| train | true |
600 | public void remove(int key) {delete(key);}
| [
"public",
"void",
"remove",
"(",
"int",
"key",
")",
"{",
"delete",
"(",
"key",
")",
";",
"}"
] | public virtual void remove(int key){delete(key);}
| train | false |
601 | public ShortBuffer duplicate() {ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());ShortToByteBufferAdapter buf = new ShortToByteBufferAdapter(bb);buf.limit = limit;buf.position = position;buf.mark = mark;return buf;}
| [
"public",
"ShortBuffer",
"duplicate",
"(",
")",
"{",
"ByteBuffer",
"bb",
"=",
"byteBuffer",
".",
"duplicate",
"(",
")",
".",
"order",
"(",
"byteBuffer",
".",
"order",
"(",
")",
")",
";",
"ShortToByteBufferAdapter",
"buf",
"=",
"new",
"ShortToByteBufferAdapter",
"(",
"bb",
")",
";",
"buf",
".",
"limit",
"=",
"limit",
";",
"buf",
".",
"position",
"=",
"position",
";",
"buf",
".",
"mark",
"=",
"mark",
";",
"return",
"buf",
";",
"}"
] | public override java.nio.ShortBuffer duplicate(){java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());java.nio.ShortToByteBufferAdapter buf = new java.nio.ShortToByteBufferAdapter(bb);buf._limit = _limit;buf._position = _position;buf._mark = _mark;return buf;}
| train | false |
602 | public void addDbcell(int cell){if (field_5_dbcells == null){field_5_dbcells = new IntList();}field_5_dbcells.add(cell);}
| [
"public",
"void",
"addDbcell",
"(",
"int",
"cell",
")",
"{",
"if",
"(",
"field_5_dbcells",
"==",
"null",
")",
"{",
"field_5_dbcells",
"=",
"new",
"IntList",
"(",
")",
";",
"}",
"field_5_dbcells",
".",
"add",
"(",
"cell",
")",
";",
"}"
] | public void AddDbcell(int cell){if (field_5_dbcells == null){field_5_dbcells = new IntList();}field_5_dbcells.Add(cell);}
| train | false |
603 | public DeleteSubnetResult deleteSubnet(DeleteSubnetRequest request) {request = beforeClientExecution(request);return executeDeleteSubnet(request);}
| [
"public",
"DeleteSubnetResult",
"deleteSubnet",
"(",
"DeleteSubnetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteSubnet",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteSubnetResponse DeleteSubnet(DeleteSubnetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSubnetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSubnetResponseUnmarshaller.Instance;return Invoke<DeleteSubnetResponse>(request, options);}
| train | true |
604 | public List<HSSFPictureData> getAllPictures(){List<HSSFPictureData> pictures = new ArrayList<>();for (org.apache.poi.hssf.record.Record r : workbook.getRecords()) {if (r instanceof AbstractEscherHolderRecord) {((AbstractEscherHolderRecord) r).decode();List<EscherRecord> escherRecords = ((AbstractEscherHolderRecord) r).getEscherRecords();searchForPictures(escherRecords, pictures);}}return Collections.unmodifiableList(pictures);}
| [
"public",
"List",
"<",
"HSSFPictureData",
">",
"getAllPictures",
"(",
")",
"{",
"List",
"<",
"HSSFPictureData",
">",
"pictures",
"=",
"new",
"ArrayList",
"<",
">",
"(",
")",
";",
"for",
"(",
"org",
".",
"apache",
".",
"poi",
".",
"hssf",
".",
"record",
".",
"Record",
"r",
":",
"workbook",
".",
"getRecords",
"(",
")",
")",
"{",
"if",
"(",
"r",
"instanceof",
"AbstractEscherHolderRecord",
")",
"{",
"(",
"(",
"AbstractEscherHolderRecord",
")",
"r",
")",
".",
"decode",
"(",
")",
";",
"List",
"<",
"EscherRecord",
">",
"escherRecords",
"=",
"(",
"(",
"AbstractEscherHolderRecord",
")",
"r",
")",
".",
"getEscherRecords",
"(",
")",
";",
"searchForPictures",
"(",
"escherRecords",
",",
"pictures",
")",
";",
"}",
"}",
"return",
"Collections",
".",
"unmodifiableList",
"(",
"pictures",
")",
";",
"}"
] | public IList GetAllPictures(){List<HSSFPictureData> pictures = new List<HSSFPictureData>();IEnumerator recordIter = workbook.Records.GetEnumerator();while (recordIter.MoveNext()){Object obj = recordIter.Current;if (obj is AbstractEscherHolderRecord){((AbstractEscherHolderRecord)obj).Decode();IList escherRecords = ((AbstractEscherHolderRecord)obj).EscherRecords;SearchForPictures(escherRecords, pictures);}}return pictures;}
| train | false |
605 | public DescribeWorkspacesConnectionStatusResult describeWorkspacesConnectionStatus(DescribeWorkspacesConnectionStatusRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspacesConnectionStatus(request);}
| [
"public",
"DescribeWorkspacesConnectionStatusResult",
"describeWorkspacesConnectionStatus",
"(",
"DescribeWorkspacesConnectionStatusRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeWorkspacesConnectionStatus",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeWorkspacesConnectionStatusResponse DescribeWorkspacesConnectionStatus(DescribeWorkspacesConnectionStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkspacesConnectionStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkspacesConnectionStatusResponseUnmarshaller.Instance;return Invoke<DescribeWorkspacesConnectionStatusResponse>(request, options);}
| train | true |
607 | public InvokeServiceAsyncRequest() {super("industry-brain", "2018-07-12", "InvokeServiceAsync");setMethod(MethodType.POST);}
| [
"public",
"InvokeServiceAsyncRequest",
"(",
")",
"{",
"super",
"(",
"\"industry-brain\"",
",",
"\"2018-07-12\"",
",",
"\"InvokeServiceAsync\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] | public InvokeServiceAsyncRequest(): base("industry-brain", "2018-07-12", "InvokeServiceAsync"){Method = MethodType.POST;}
| train | false |
609 | public static byte[] readData(InputStream stream, String section ) throws IOException {try {StringBuilder sectionText = new StringBuilder();boolean inSection = false;int c = stream.read();while ( c != -1 ) {switch ( c ) {case '[':inSection = true;break;case '\n':case '\r':inSection = false;sectionText = new StringBuilder();break;case ']':inSection = false;if ( sectionText.toString().equals( section ) ) return readData( stream, '[' );sectionText = new StringBuilder();break;default:if ( inSection ) sectionText.append( (char) c );}c = stream.read();}} finally {stream.close();}throw new IOException( "Section '" + section + "' not found" );}
| [
"public",
"static",
"byte",
"[",
"]",
"readData",
"(",
"InputStream",
"stream",
",",
"String",
"section",
")",
"throws",
"IOException",
"{",
"try",
"{",
"StringBuilder",
"sectionText",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"boolean",
"inSection",
"=",
"false",
";",
"int",
"c",
"=",
"stream",
".",
"read",
"(",
")",
";",
"while",
"(",
"c",
"!=",
"-",
"1",
")",
"{",
"switch",
"(",
"c",
")",
"{",
"case",
"'['",
":",
"inSection",
"=",
"true",
";",
"break",
";",
"case",
"'\\n'",
":",
"case",
"'\\r'",
":",
"inSection",
"=",
"false",
";",
"sectionText",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"break",
";",
"case",
"']'",
":",
"inSection",
"=",
"false",
";",
"if",
"(",
"sectionText",
".",
"toString",
"(",
")",
".",
"equals",
"(",
"section",
")",
")",
"return",
"readData",
"(",
"stream",
",",
"'['",
")",
";",
"sectionText",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"break",
";",
"default",
":",
"if",
"(",
"inSection",
")",
"sectionText",
".",
"append",
"(",
"(",
"char",
")",
"c",
")",
";",
"}",
"c",
"=",
"stream",
".",
"read",
"(",
")",
";",
"}",
"}",
"finally",
"{",
"stream",
".",
"close",
"(",
")",
";",
"}",
"throw",
"new",
"IOException",
"(",
"\"Section '\"",
"+",
"section",
"+",
"\"' not found\"",
")",
";",
"}"
] | public static byte[] ReadData(Stream stream, String section ){try{StringBuilder sectionText = new StringBuilder();bool inSection = false;int c = stream.ReadByte();while ( c != -1 ){switch ( c ){case '[':inSection = true;break;case '\n':case '\r':inSection = false;sectionText = new StringBuilder();break;case ']':inSection = false;if (sectionText.ToString().Equals(section)){return ReadData(stream, '[');}sectionText = new StringBuilder();break;default:if ( inSection ) sectionText.Append( (char) c );break;}c = stream.ReadByte();}}finally{stream.Close();}throw new IOException( "Section '" + section + "' not found" );}
| train | false |
610 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE) {int number;try {number = OperandResolver.coerceValueToInt(numberVE);} catch (EvaluationException e) {return ErrorEval.VALUE_INVALID;}if (number < 0) {return ErrorEval.NUM_ERROR;}return new NumberEval(factorial(number).longValue());}
| [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"numberVE",
")",
"{",
"int",
"number",
";",
"try",
"{",
"number",
"=",
"OperandResolver",
".",
"coerceValueToInt",
"(",
"numberVE",
")",
";",
"}",
"catch",
"(",
"EvaluationException",
"e",
")",
"{",
"return",
"ErrorEval",
".",
"VALUE_INVALID",
";",
"}",
"if",
"(",
"number",
"<",
"0",
")",
"{",
"return",
"ErrorEval",
".",
"NUM_ERROR",
";",
"}",
"return",
"new",
"NumberEval",
"(",
"factorial",
"(",
"number",
")",
".",
"longValue",
"(",
")",
")",
";",
"}"
] | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE){int number;try{number = OperandResolver.CoerceValueToInt(numberVE);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}if (number < 0){return ErrorEval.NUM_ERROR;}return new NumberEval(factorial(number).LongValue());}
| train | false |
611 | public final LexerActionExecutor getLexerActionExecutor() {return lexerActionExecutor;}
| [
"public",
"final",
"LexerActionExecutor",
"getLexerActionExecutor",
"(",
")",
"{",
"return",
"lexerActionExecutor",
";",
"}"
] | public LexerActionExecutor getLexerActionExecutor(){return lexerActionExecutor;}
| train | false |
612 | public EnableUserResult enableUser(EnableUserRequest request) {request = beforeClientExecution(request);return executeEnableUser(request);}
| [
"public",
"EnableUserResult",
"enableUser",
"(",
"EnableUserRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeEnableUser",
"(",
"request",
")",
";",
"}"
] | public virtual EnableUserResponse EnableUser(EnableUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableUserRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableUserResponseUnmarshaller.Instance;return Invoke<EnableUserResponse>(request, options);}
| train | true |
613 | public void fillSlice(BytesRef b, long start, int length) {assert length >= 0: "length=" + length;assert length <= blockSize+1: "length=" + length;b.length = length;if (length == 0) {return;}final int index = (int) (start >> blockBits);final int offset = (int) (start & blockMask);if (blockSize - offset >= length) {b.bytes = blocks[index];b.offset = offset;} else {b.bytes = new byte[length];b.offset = 0;System.arraycopy(blocks[index], offset, b.bytes, 0, blockSize-offset);System.arraycopy(blocks[1+index], 0, b.bytes, blockSize-offset, length-(blockSize-offset));}}
| [
"public",
"void",
"fillSlice",
"(",
"BytesRef",
"b",
",",
"long",
"start",
",",
"int",
"length",
")",
"{",
"assert",
"length",
">=",
"0",
":",
"\"length=\"",
"+",
"length",
";",
"assert",
"length",
"<=",
"blockSize",
"+",
"1",
":",
"\"length=\"",
"+",
"length",
";",
"b",
".",
"length",
"=",
"length",
";",
"if",
"(",
"length",
"==",
"0",
")",
"{",
"return",
";",
"}",
"final",
"int",
"index",
"=",
"(",
"int",
")",
"(",
"start",
">",
">",
"blockBits",
")",
";",
"final",
"int",
"offset",
"=",
"(",
"int",
")",
"(",
"start",
"&",
"blockMask",
")",
";",
"if",
"(",
"blockSize",
"-",
"offset",
">=",
"length",
")",
"{",
"b",
".",
"bytes",
"=",
"blocks",
"[",
"index",
"]",
";",
"b",
".",
"offset",
"=",
"offset",
";",
"}",
"else",
"{",
"b",
".",
"bytes",
"=",
"new",
"byte",
"[",
"length",
"]",
";",
"b",
".",
"offset",
"=",
"0",
";",
"System",
".",
"arraycopy",
"(",
"blocks",
"[",
"index",
"]",
",",
"offset",
",",
"b",
".",
"bytes",
",",
"0",
",",
"blockSize",
"-",
"offset",
")",
";",
"System",
".",
"arraycopy",
"(",
"blocks",
"[",
"1",
"+",
"index",
"]",
",",
"0",
",",
"b",
".",
"bytes",
",",
"blockSize",
"-",
"offset",
",",
"length",
"-",
"(",
"blockSize",
"-",
"offset",
")",
")",
";",
"}",
"}"
] | public void FillSlice(BytesRef b, long start, int length){Debug.Assert(length >= 0, "length=" + length);Debug.Assert(length <= blockSize + 1, "length=" + length);b.Length = length;if (length == 0){return;}var index = (int)(start >> blockBits);var offset = (int)(start & blockMask);if (blockSize - offset >= length){b.Bytes = blocks[index];b.Offset = offset;}else{b.Bytes = new byte[length];b.Offset = 0;Array.Copy(blocks[index], offset, b.Bytes, 0, blockSize - offset);Array.Copy(blocks[1 + index], 0, b.Bytes, blockSize - offset, length - (blockSize - offset));}}
| train | false |
614 | public DescribeJournalS3ExportResult describeJournalS3Export(DescribeJournalS3ExportRequest request) {request = beforeClientExecution(request);return executeDescribeJournalS3Export(request);}
| [
"public",
"DescribeJournalS3ExportResult",
"describeJournalS3Export",
"(",
"DescribeJournalS3ExportRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeJournalS3Export",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeJournalS3ExportResponse DescribeJournalS3Export(DescribeJournalS3ExportRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeJournalS3ExportRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeJournalS3ExportResponseUnmarshaller.Instance;return Invoke<DescribeJournalS3ExportResponse>(request, options);}
| train | false |
616 | public DescribeTagsResult describeTags(DescribeTagsRequest request) {request = beforeClientExecution(request);return executeDescribeTags(request);}
| [
"public",
"DescribeTagsResult",
"describeTags",
"(",
"DescribeTagsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeTags",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeTagsResponse DescribeTags(DescribeTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTagsResponseUnmarshaller.Instance;return Invoke<DescribeTagsResponse>(request, options);}
| train | true |
617 | public int doLogic() {return 1;}
| [
"public",
"int",
"doLogic",
"(",
")",
"{",
"return",
"1",
";",
"}"
] | public override int DoLogic(){return 1;}
| train | false |
618 | public DeleteCustomerGatewayResult deleteCustomerGateway(DeleteCustomerGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteCustomerGateway(request);}
| [
"public",
"DeleteCustomerGatewayResult",
"deleteCustomerGateway",
"(",
"DeleteCustomerGatewayRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteCustomerGateway",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteCustomerGatewayResponse DeleteCustomerGateway(DeleteCustomerGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCustomerGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCustomerGatewayResponseUnmarshaller.Instance;return Invoke<DeleteCustomerGatewayResponse>(request, options);}
| train | true |
619 | public static Map newContext(IndexSearcher searcher) {Map context = new IdentityHashMap();context.put("searcher", searcher);return context;}
| [
"public",
"static",
"Map",
"newContext",
"(",
"IndexSearcher",
"searcher",
")",
"{",
"Map",
"context",
"=",
"new",
"IdentityHashMap",
"(",
")",
";",
"context",
".",
"put",
"(",
"\"searcher\"",
",",
"searcher",
")",
";",
"return",
"context",
";",
"}"
] | public static IDictionary NewContext(IndexSearcher searcher){return new Hashtable(IdentityEqualityComparer<object>.Default){["searcher"] = searcher};}
| train | false |
620 | public NameRecord getSpecificBuiltinRecord(byte builtInCode, int sheetNumber) {Iterator<NameRecord> iterator = _definedNames.iterator();while (iterator.hasNext()) {NameRecord record = iterator.next();if (record.getBuiltInName() == builtInCode && record.getSheetNumber() == sheetNumber) {return record;}}return null;}
| [
"public",
"NameRecord",
"getSpecificBuiltinRecord",
"(",
"byte",
"builtInCode",
",",
"int",
"sheetNumber",
")",
"{",
"Iterator",
"<",
"NameRecord",
">",
"iterator",
"=",
"_definedNames",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"iterator",
".",
"hasNext",
"(",
")",
")",
"{",
"NameRecord",
"record",
"=",
"iterator",
".",
"next",
"(",
")",
";",
"if",
"(",
"record",
".",
"getBuiltInName",
"(",
")",
"==",
"builtInCode",
"&&",
"record",
".",
"getSheetNumber",
"(",
")",
"==",
"sheetNumber",
")",
"{",
"return",
"record",
";",
"}",
"}",
"return",
"null",
";",
"}"
] | public NameRecord GetSpecificBuiltinRecord(byte builtInCode, int sheetNumber){IEnumerator<NameRecord> iterator = _definedNames.GetEnumerator();while (iterator.MoveNext()){NameRecord record = iterator.Current;if (record.BuiltInName == builtInCode && record.SheetNumber == sheetNumber){return record;}}return null;}
| train | false |
621 | public final double readDouble() throws IOException {return Double.longBitsToDouble(readLong());}
| [
"public",
"final",
"double",
"readDouble",
"(",
")",
"throws",
"IOException",
"{",
"return",
"Double",
".",
"longBitsToDouble",
"(",
"readLong",
"(",
")",
")",
";",
"}"
] | public virtual double readDouble(){throw new System.NotImplementedException();}
| train | false |
622 | public void write(byte[] buffer, int offset, int count) throws IOException {super.write(buffer, offset, count);}
| [
"public",
"void",
"write",
"(",
"byte",
"[",
"]",
"buffer",
",",
"int",
"offset",
",",
"int",
"count",
")",
"throws",
"IOException",
"{",
"super",
".",
"write",
"(",
"buffer",
",",
"offset",
",",
"count",
")",
";",
"}"
] | public override void write(byte[] buffer, int offset, int count){throw new System.NotImplementedException();}
| train | false |
623 | public TokenStream create(TokenStream input) {return new PersianNormalizationFilter(input);}
| [
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"PersianNormalizationFilter",
"(",
"input",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return new PersianNormalizationFilter(input);}
| train | false |
624 | public SpanishLightStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"SpanishLightStemFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown parameters: \"",
"+",
"args",
")",
";",
"}",
"}"
] | public SpanishLightStemFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
| train | false |
625 | public SmallDocSet(int size) {intSet = new SentinelIntSet(size, -1);}
| [
"public",
"SmallDocSet",
"(",
"int",
"size",
")",
"{",
"intSet",
"=",
"new",
"SentinelIntSet",
"(",
"size",
",",
"-",
"1",
")",
";",
"}"
] | public SmallDocSet(int size){intSet = new SentinelInt32Set(size, -1);}
| train | false |
626 | public RawCharSequence(byte[] buf, int start, int end) {buffer = buf;startPtr = start;endPtr = end;}
| [
"public",
"RawCharSequence",
"(",
"byte",
"[",
"]",
"buf",
",",
"int",
"start",
",",
"int",
"end",
")",
"{",
"buffer",
"=",
"buf",
";",
"startPtr",
"=",
"start",
";",
"endPtr",
"=",
"end",
";",
"}"
] | public RawCharSequence(byte[] buf, int start, int end){buffer = buf;startPtr = start;endPtr = end;}
| train | false |
627 | public GetCustomVerificationEmailTemplateResult getCustomVerificationEmailTemplate(GetCustomVerificationEmailTemplateRequest request) {request = beforeClientExecution(request);return executeGetCustomVerificationEmailTemplate(request);}
| [
"public",
"GetCustomVerificationEmailTemplateResult",
"getCustomVerificationEmailTemplate",
"(",
"GetCustomVerificationEmailTemplateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetCustomVerificationEmailTemplate",
"(",
"request",
")",
";",
"}"
] | public virtual GetCustomVerificationEmailTemplateResponse GetCustomVerificationEmailTemplate(GetCustomVerificationEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCustomVerificationEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCustomVerificationEmailTemplateResponseUnmarshaller.Instance;return Invoke<GetCustomVerificationEmailTemplateResponse>(request, options);}
| train | true |
628 | public SendMessageBatchRequest(String queueUrl, java.util.List<SendMessageBatchRequestEntry> entries) {setQueueUrl(queueUrl);setEntries(entries);}
| [
"public",
"SendMessageBatchRequest",
"(",
"String",
"queueUrl",
",",
"java",
".",
"util",
".",
"List",
"<",
"SendMessageBatchRequestEntry",
">",
"entries",
")",
"{",
"setQueueUrl",
"(",
"queueUrl",
")",
";",
"setEntries",
"(",
"entries",
")",
";",
"}"
] | public SendMessageBatchRequest(string queueUrl, List<SendMessageBatchRequestEntry> entries){_queueUrl = queueUrl;_entries = entries;}
| train | false |
629 | public void writeInt(int v) {writeContinueIfRequired(4);_ulrOutput.writeInt(v);}
| [
"public",
"void",
"writeInt",
"(",
"int",
"v",
")",
"{",
"writeContinueIfRequired",
"(",
"4",
")",
";",
"_ulrOutput",
".",
"writeInt",
"(",
"v",
")",
";",
"}"
] | public void WriteInt(int v){WriteContinueIfRequired(4);_ulrOutput.WriteInt(v);}
| train | false |
630 | public DescribeDataSourcesResult describeDataSources(DescribeDataSourcesRequest request) {request = beforeClientExecution(request);return executeDescribeDataSources(request);}
| [
"public",
"DescribeDataSourcesResult",
"describeDataSources",
"(",
"DescribeDataSourcesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeDataSources",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeDataSourcesResponse DescribeDataSources(DescribeDataSourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDataSourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDataSourcesResponseUnmarshaller.Instance;return Invoke<DescribeDataSourcesResponse>(request, options);}
| train | true |
631 | public ListRoomsResult listRooms(ListRoomsRequest request) {request = beforeClientExecution(request);return executeListRooms(request);}
| [
"public",
"ListRoomsResult",
"listRooms",
"(",
"ListRoomsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListRooms",
"(",
"request",
")",
";",
"}"
] | public virtual ListRoomsResponse ListRooms(ListRoomsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRoomsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRoomsResponseUnmarshaller.Instance;return Invoke<ListRoomsResponse>(request, options);}
| train | false |
632 | public char getConversion() {return c;}
| [
"public",
"char",
"getConversion",
"(",
")",
"{",
"return",
"c",
";",
"}"
] | public virtual char getConversion(){return c;}
| train | false |
633 | public boolean equals(Object _other) {FieldAndTerm other = (FieldAndTerm) _other;return other.field.equals(field) && term.bytesEquals(other.term);}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"_other",
")",
"{",
"FieldAndTerm",
"other",
"=",
"(",
"FieldAndTerm",
")",
"_other",
";",
"return",
"other",
".",
"field",
".",
"equals",
"(",
"field",
")",
"&&",
"term",
".",
"bytesEquals",
"(",
"other",
".",
"term",
")",
";",
"}"
] | public override bool Equals(object other){var o = (FieldAndTerm)other;return o.Field.Equals(Field, StringComparison.Ordinal) && Term.BytesEquals(o.Term);}
| train | false |
634 | public CreateConfigurationSetEventDestinationResult createConfigurationSetEventDestination(CreateConfigurationSetEventDestinationRequest request) {request = beforeClientExecution(request);return executeCreateConfigurationSetEventDestination(request);}
| [
"public",
"CreateConfigurationSetEventDestinationResult",
"createConfigurationSetEventDestination",
"(",
"CreateConfigurationSetEventDestinationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateConfigurationSetEventDestination",
"(",
"request",
")",
";",
"}"
] | public virtual CreateConfigurationSetEventDestinationResponse CreateConfigurationSetEventDestination(CreateConfigurationSetEventDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConfigurationSetEventDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateConfigurationSetEventDestinationResponseUnmarshaller.Instance;return Invoke<CreateConfigurationSetEventDestinationResponse>(request, options);}
| train | true |
635 | public Ole10Native(String label, String filename, String command, byte[] data) {setLabel(label);setFileName(filename);setCommand(command);setDataBuffer(data);mode = EncodingMode.parsed;}
| [
"public",
"Ole10Native",
"(",
"String",
"label",
",",
"String",
"filename",
",",
"String",
"command",
",",
"byte",
"[",
"]",
"data",
")",
"{",
"setLabel",
"(",
"label",
")",
";",
"setFileName",
"(",
"filename",
")",
";",
"setCommand",
"(",
"command",
")",
";",
"setDataBuffer",
"(",
"data",
")",
";",
"mode",
"=",
"EncodingMode",
".",
"parsed",
";",
"}"
] | public Ole10Native(String label, String filename, String command, byte[] data){Label=(label);FileName=(filename);Command=(command);DataBuffer=(data);mode = EncodingMode.parsed;}
| train | false |
636 | public String toString() {StringBuilder sb = new StringBuilder();if (fetchResult != null)sb.append(fetchResult.toString());elsesb.append("No fetch result");sb.append("\n");if (mergeResult != null)sb.append(mergeResult.toString());else if (rebaseResult != null)sb.append(rebaseResult.toString());elsesb.append("No update result");return sb.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"if",
"(",
"fetchResult",
"!=",
"null",
")",
"sb",
".",
"append",
"(",
"fetchResult",
".",
"toString",
"(",
")",
")",
";",
"elsesb",
".",
"append",
"(",
"\"No fetch result\"",
")",
";",
"sb",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"if",
"(",
"mergeResult",
"!=",
"null",
")",
"sb",
".",
"append",
"(",
"mergeResult",
".",
"toString",
"(",
")",
")",
";",
"else",
"if",
"(",
"rebaseResult",
"!=",
"null",
")",
"sb",
".",
"append",
"(",
"rebaseResult",
".",
"toString",
"(",
")",
")",
";",
"elsesb",
".",
"append",
"(",
"\"No update result\"",
")",
";",
"return",
"sb",
".",
"toString",
"(",
")",
";",
"}"
] | public override string ToString(){StringBuilder sb = new StringBuilder();if (fetchResult != null){sb.Append(fetchResult.ToString());}else{sb.Append("No fetch result");}sb.Append("\n");if (mergeResult != null){sb.Append(mergeResult.ToString());}else{if (rebaseResult != null){sb.Append(rebaseResult.ToString());}else{sb.Append("No update result");}}return sb.ToString();}
| train | false |
637 | public static Cell createCell(Row row, int column, String value) {return createCell(row, column, value, null);}
| [
"public",
"static",
"Cell",
"createCell",
"(",
"Row",
"row",
",",
"int",
"column",
",",
"String",
"value",
")",
"{",
"return",
"createCell",
"(",
"row",
",",
"column",
",",
"value",
",",
"null",
")",
";",
"}"
] | public static ICell CreateCell(IRow row, int column, String value){return CreateCell(row, column, value, null);}
| train | false |
638 | public TokenStream create(TokenStream input) {return new HindiNormalizationFilter(input);}
| [
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"HindiNormalizationFilter",
"(",
"input",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return new HindiNormalizationFilter(input);}
| train | false |
639 | public DescribeAddressesResult describeAddresses() {return describeAddresses(new DescribeAddressesRequest());}
| [
"public",
"DescribeAddressesResult",
"describeAddresses",
"(",
")",
"{",
"return",
"describeAddresses",
"(",
"new",
"DescribeAddressesRequest",
"(",
")",
")",
";",
"}"
] | public virtual DescribeAddressesResponse DescribeAddresses(){return DescribeAddresses(new DescribeAddressesRequest());}
| train | false |
641 | public void dispatch(RefsChangedListener listener) {listener.onRefsChanged(this);}
| [
"public",
"void",
"dispatch",
"(",
"RefsChangedListener",
"listener",
")",
"{",
"listener",
".",
"onRefsChanged",
"(",
"this",
")",
";",
"}"
] | public override void Dispatch(RefsChangedListener listener){listener.OnRefsChanged(this);}
| train | false |
642 | public SnowballFilter(TokenStream in, String name) {super(in);try {Class<? extends SnowballStemmer> stemClass =Class.forName("org.tartarus.snowball.ext." + name + "Stemmer").asSubclass(SnowballStemmer.class);stemmer = stemClass.getConstructor().newInstance();} catch (Exception e) {}}
| [
"public",
"SnowballFilter",
"(",
"TokenStream",
"in",
",",
"String",
"name",
")",
"{",
"super",
"(",
"in",
")",
";",
"try",
"{",
"Class",
"<",
"?",
"extends",
"SnowballStemmer",
">",
"stemClass",
"=",
"Class",
".",
"forName",
"(",
"\"org.tartarus.snowball.ext.\"",
"+",
"name",
"+",
"\"Stemmer\"",
")",
".",
"asSubclass",
"(",
"SnowballStemmer",
".",
"class",
")",
";",
"stemmer",
"=",
"stemClass",
".",
"getConstructor",
"(",
")",
".",
"newInstance",
"(",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"}",
"}"
] | public SnowballFilter(TokenStream @in, string name): base(@in){try{string className = typeof(SnowballProgram).Namespace + ".Ext." +name + "Stemmer, " + this.GetType().GetTypeInfo().Assembly.GetName().Name;Type stemClass = Type.GetType(className);stemmer = (SnowballProgram)Activator.CreateInstance(stemClass);}catch (Exception e){}}
| train | false |
643 | public UpgradeAppliedSchemaResult upgradeAppliedSchema(UpgradeAppliedSchemaRequest request) {request = beforeClientExecution(request);return executeUpgradeAppliedSchema(request);}
| [
"public",
"UpgradeAppliedSchemaResult",
"upgradeAppliedSchema",
"(",
"UpgradeAppliedSchemaRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpgradeAppliedSchema",
"(",
"request",
")",
";",
"}"
] | public virtual UpgradeAppliedSchemaResponse UpgradeAppliedSchema(UpgradeAppliedSchemaRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpgradeAppliedSchemaRequestMarshaller.Instance;options.ResponseUnmarshaller = UpgradeAppliedSchemaResponseUnmarshaller.Instance;return Invoke<UpgradeAppliedSchemaResponse>(request, options);}
| train | true |
644 | public String getParent() {int length = path.length(), firstInPath = 0;if (separatorChar == '\\' && length > 2 && path.charAt(1) == ':') {firstInPath = 2;}int index = path.lastIndexOf(separatorChar);if (index == -1 && firstInPath > 0) {index = 2;}if (index == -1 || path.charAt(length - 1) == separatorChar) {return null;}if (path.indexOf(separatorChar) == index&& path.charAt(firstInPath) == separatorChar) {return path.substring(0, index + 1);}return path.substring(0, index);}
| [
"public",
"String",
"getParent",
"(",
")",
"{",
"int",
"length",
"=",
"path",
".",
"length",
"(",
")",
",",
"firstInPath",
"=",
"0",
";",
"if",
"(",
"separatorChar",
"==",
"'\\\\'",
"&&",
"length",
">",
"2",
"&&",
"path",
".",
"charAt",
"(",
"1",
")",
"==",
"':'",
")",
"{",
"firstInPath",
"=",
"2",
";",
"}",
"int",
"index",
"=",
"path",
".",
"lastIndexOf",
"(",
"separatorChar",
")",
";",
"if",
"(",
"index",
"==",
"-",
"1",
"&&",
"firstInPath",
">",
"0",
")",
"{",
"index",
"=",
"2",
";",
"}",
"if",
"(",
"index",
"==",
"-",
"1",
"||",
"path",
".",
"charAt",
"(",
"length",
"-",
"1",
")",
"==",
"separatorChar",
")",
"{",
"return",
"null",
";",
"}",
"if",
"(",
"path",
".",
"indexOf",
"(",
"separatorChar",
")",
"==",
"index",
"&&",
"path",
".",
"charAt",
"(",
"firstInPath",
")",
"==",
"separatorChar",
")",
"{",
"return",
"path",
".",
"substring",
"(",
"0",
",",
"index",
"+",
"1",
")",
";",
"}",
"return",
"path",
".",
"substring",
"(",
"0",
",",
"index",
")",
";",
"}"
] | public string getParent(){int length_1 = path.Length;int firstInPath = 0;if (separatorChar == '\\' && length_1 > 2 && path[1] == ':'){firstInPath = 2;}int index = path.LastIndexOf(separatorChar);if (index == -1 && firstInPath > 0){index = 2;}if (index == -1 || path[length_1 - 1] == separatorChar){return null;}if (path.IndexOf(separatorChar) == index && path[firstInPath] == separatorChar){return Sharpen.StringHelper.Substring(path, 0, index + 1);}return Sharpen.StringHelper.Substring(path, 0, index);}
| train | true |
645 | public BufferedChecksumIndexInput(IndexInput main) {super("BufferedChecksumIndexInput(" + main + ")");this.main = main;this.digest = new BufferedChecksum(new CRC32());}
| [
"public",
"BufferedChecksumIndexInput",
"(",
"IndexInput",
"main",
")",
"{",
"super",
"(",
"\"BufferedChecksumIndexInput(\"",
"+",
"main",
"+",
"\")\"",
")",
";",
"this",
".",
"main",
"=",
"main",
";",
"this",
".",
"digest",
"=",
"new",
"BufferedChecksum",
"(",
"new",
"CRC32",
"(",
")",
")",
";",
"}"
] | public BufferedChecksumIndexInput(IndexInput main): base("BufferedChecksumIndexInput(" + main + ")"){this.main = main;this.digest = new BufferedChecksum(new CRC32());}
| train | false |
646 | public final void remove(RevFlagSet set) {flags &= ~set.mask;}
| [
"public",
"final",
"void",
"remove",
"(",
"RevFlagSet",
"set",
")",
"{",
"flags",
"&=",
"~",
"set",
".",
"mask",
";",
"}"
] | public void Remove(RevFlagSet set){flags &= ~set.mask;}
| train | false |
648 | public GetFaceSearchResult getFaceSearch(GetFaceSearchRequest request) {request = beforeClientExecution(request);return executeGetFaceSearch(request);}
| [
"public",
"GetFaceSearchResult",
"getFaceSearch",
"(",
"GetFaceSearchRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetFaceSearch",
"(",
"request",
")",
";",
"}"
] | public virtual GetFaceSearchResponse GetFaceSearch(GetFaceSearchRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFaceSearchRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFaceSearchResponseUnmarshaller.Instance;return Invoke<GetFaceSearchResponse>(request, options);}
| train | true |
649 | public DescribeUserStackAssociationsResult describeUserStackAssociations(DescribeUserStackAssociationsRequest request) {request = beforeClientExecution(request);return executeDescribeUserStackAssociations(request);}
| [
"public",
"DescribeUserStackAssociationsResult",
"describeUserStackAssociations",
"(",
"DescribeUserStackAssociationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeUserStackAssociations",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeUserStackAssociationsResponse DescribeUserStackAssociations(DescribeUserStackAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUserStackAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUserStackAssociationsResponseUnmarshaller.Instance;return Invoke<DescribeUserStackAssociationsResponse>(request, options);}
| train | true |
650 | public void close() throws IOException {in.close();in = new ClosedInputStream();}
| [
"public",
"void",
"close",
"(",
")",
"throws",
"IOException",
"{",
"in",
".",
"close",
"(",
")",
";",
"in",
"=",
"new",
"ClosedInputStream",
"(",
")",
";",
"}"
] | public override void close(){throw new System.NotImplementedException();}
| train | false |
651 | public CreateBranchCommand branchCreate() {return new CreateBranchCommand(repo);}
| [
"public",
"CreateBranchCommand",
"branchCreate",
"(",
")",
"{",
"return",
"new",
"CreateBranchCommand",
"(",
"repo",
")",
";",
"}"
] | public virtual CreateBranchCommand BranchCreate(){return new CreateBranchCommand(repo);}
| train | false |