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 |
|---|---|---|---|---|---|
5,621 | public String getRawFragment() {return fragment;}
| [
"public",
"String",
"getRawFragment",
"(",
")",
"{",
"return",
"fragment",
";",
"}"
] | public string getRawFragment(){return fragment;}
| train | false |
5,622 | public String toString() {StringBuilder s = new StringBuilder();for(int i=0;i<count;i++) {if (i > 0) {s.append(' ');}s.append(points[i].point).append(':').append(points[i].starts.next/3).append(',').append(points[i].ends.next/3);}return s.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"s",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"count",
";",
"i",
"++",
")",
"{",
"if",
"(",
"i",
">",
"0",
")",
"{",
"s",
".",... | public override string ToString(){StringBuilder s = new StringBuilder();for (int i = 0; i < count; i++){if (i > 0){s.Append(' ');}s.Append(points[i].point).Append(':').Append(points[i].starts.count).Append(',').Append(points[i].ends.count);}return s.ToString();}
| train | false |
5,623 | public static double sinh(double d) {double ePowX = Math.pow(Math.E, d);double ePowNegX = Math.pow(Math.E, -d);return (ePowX - ePowNegX) / 2;}
| [
"public",
"static",
"double",
"sinh",
"(",
"double",
"d",
")",
"{",
"double",
"ePowX",
"=",
"Math",
".",
"pow",
"(",
"Math",
".",
"E",
",",
"d",
")",
";",
"double",
"ePowNegX",
"=",
"Math",
".",
"pow",
"(",
"Math",
".",
"E",
",",
"-",
"d",
")",... | public static double Sinh(double d){double ePowX = Math.Pow(Math.E, d);double ePowNegX = Math.Pow(Math.E, -d);d = (ePowX - ePowNegX) / 2;return d;}
| train | false |
5,624 | public GetMembersResult getMembers(GetMembersRequest request) {request = beforeClientExecution(request);return executeGetMembers(request);}
| [
"public",
"GetMembersResult",
"getMembers",
"(",
"GetMembersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetMembers",
"(",
"request",
")",
";",
"}"
] | public virtual GetMembersResponse GetMembers(GetMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMembersResponseUnmarshaller.Instance;return Invoke<GetMembersResponse>(request, options);}
| train | true |
5,625 | public HSSFPatternFormatting createPatternFormatting(){return getPatternFormatting(true);}
| [
"public",
"HSSFPatternFormatting",
"createPatternFormatting",
"(",
")",
"{",
"return",
"getPatternFormatting",
"(",
"true",
")",
";",
"}"
] | public IPatternFormatting CreatePatternFormatting(){return GetPatternFormatting(true);}
| train | false |
5,626 | public DeleteSpotDatafeedSubscriptionResult deleteSpotDatafeedSubscription(DeleteSpotDatafeedSubscriptionRequest request) {request = beforeClientExecution(request);return executeDeleteSpotDatafeedSubscription(request);}
| [
"public",
"DeleteSpotDatafeedSubscriptionResult",
"deleteSpotDatafeedSubscription",
"(",
"DeleteSpotDatafeedSubscriptionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteSpotDatafeedSubscription",
"(",
"reque... | public virtual DeleteSpotDatafeedSubscriptionResponse DeleteSpotDatafeedSubscription(DeleteSpotDatafeedSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSpotDatafeedSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSpotDatafeedSubscriptionResponse... | train | true |
5,627 | public RevFilter clone() {return new SkipRevFilter(skip);}
| [
"public",
"RevFilter",
"clone",
"(",
")",
"{",
"return",
"new",
"SkipRevFilter",
"(",
"skip",
")",
";",
"}"
] | public override RevFilter Clone(){return new NGit.Revwalk.Filter.SkipRevFilter(skip);}
| train | false |
5,628 | public BinarySearchIndexes(int highIx) {_lowIx = -1;_highIx = highIx;}
| [
"public",
"BinarySearchIndexes",
"(",
"int",
"highIx",
")",
"{",
"_lowIx",
"=",
"-",
"1",
";",
"_highIx",
"=",
"highIx",
";",
"}"
] | public BinarySearchIndexes(int highIx){_lowIx = -1;_highIx = highIx;}
| train | false |
5,630 | public static CloneCommand cloneRepository() {return new CloneCommand();}
| [
"public",
"static",
"CloneCommand",
"cloneRepository",
"(",
")",
"{",
"return",
"new",
"CloneCommand",
"(",
")",
";",
"}"
] | public static CloneCommand CloneRepository(){return new CloneCommand();}
| train | false |
5,631 | public EnableMetricsCollectionResult enableMetricsCollection(EnableMetricsCollectionRequest request) {request = beforeClientExecution(request);return executeEnableMetricsCollection(request);}
| [
"public",
"EnableMetricsCollectionResult",
"enableMetricsCollection",
"(",
"EnableMetricsCollectionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeEnableMetricsCollection",
"(",
"request",
")",
";",
"}"
] | public virtual EnableMetricsCollectionResponse EnableMetricsCollection(EnableMetricsCollectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableMetricsCollectionRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableMetricsCollectionResponseUnmarshaller.Instance;return Invoke... | train | true |
5,632 | public DescribePlayerSessionsResult describePlayerSessions(DescribePlayerSessionsRequest request) {request = beforeClientExecution(request);return executeDescribePlayerSessions(request);}
| [
"public",
"DescribePlayerSessionsResult",
"describePlayerSessions",
"(",
"DescribePlayerSessionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribePlayerSessions",
"(",
"request",
")",
";",
"}"
] | public virtual DescribePlayerSessionsResponse DescribePlayerSessions(DescribePlayerSessionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePlayerSessionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePlayerSessionsResponseUnmarshaller.Instance;return Invoke<Desc... | train | true |
5,633 | public UpdateDocumentVersionResult updateDocumentVersion(UpdateDocumentVersionRequest request) {request = beforeClientExecution(request);return executeUpdateDocumentVersion(request);}
| [
"public",
"UpdateDocumentVersionResult",
"updateDocumentVersion",
"(",
"UpdateDocumentVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateDocumentVersion",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateDocumentVersionResponse UpdateDocumentVersion(UpdateDocumentVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDocumentVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDocumentVersionResponseUnmarshaller.Instance;return Invoke<UpdateDoc... | train | true |
5,634 | public TagCommand setTagger(PersonIdent tagger) {this.tagger = tagger;return this;}
| [
"public",
"TagCommand",
"setTagger",
"(",
"PersonIdent",
"tagger",
")",
"{",
"this",
".",
"tagger",
"=",
"tagger",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Api.TagCommand SetTagger(PersonIdent tagger){this.tagger = tagger;return this;}
| train | false |
5,635 | public void setCellValue(boolean value) {int row=_record.getRow();short col=_record.getColumn();short styleIndex=_record.getXFIndex();switch (_cellType) {default:setCellType(CellType.BOOLEAN, false, row, col, styleIndex);case BOOLEAN:(( BoolErrRecord ) _record).setValue(value);break;case FORMULA:((FormulaRecordAggregat... | [
"public",
"void",
"setCellValue",
"(",
"boolean",
"value",
")",
"{",
"int",
"row",
"=",
"_record",
".",
"getRow",
"(",
")",
";",
"short",
"col",
"=",
"_record",
".",
"getColumn",
"(",
")",
";",
"short",
"styleIndex",
"=",
"_record",
".",
"getXFIndex",
... | public void SetCellValue(double value){if(double.IsInfinity(value)){SetCellErrorValue(FormulaError.DIV0.Code);}else if (double.IsNaN(value)){SetCellErrorValue(FormulaError.NUM.Code);}else{int row = _record.Row;int col = _record.Column;short styleIndex = _record.XFIndex;switch (cellType){case CellType.Numeric:((NumberRe... | train | false |
5,636 | public PatternReplaceFilterFactory(Map<String, String> args) {super(args);pattern = getPattern(args, "pattern");replacement = get(args, "replacement");replaceAll = "all".equals(get(args, "replace", Arrays.asList("all", "first"), "all"));if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + a... | [
"public",
"PatternReplaceFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"pattern",
"=",
"getPattern",
"(",
"args",
",",
"\"pattern\"",
")",
";",
"replacement",
"=",
"get",
"(",
"args",
","... | public PatternReplaceFilterFactory(IDictionary<string, string> args) : base(args){pattern = GetPattern(args, "pattern");replacement = Get(args, "replacement");replaceAll = "all".Equals(Get(args, "replace", new string[] { "all", "first" }, "all"), StringComparison.Ordinal);if (args.Count > 0){throw new System.ArgumentEx... | train | false |
5,637 | public List<T> asList(Object output) {if (!(output instanceof List)) {List<T> result = new ArrayList<>(1);result.add((T) output);return result;} else {return (List<T>) output;}}
| [
"public",
"List",
"<",
"T",
">",
"asList",
"(",
"Object",
"output",
")",
"{",
"if",
"(",
"!",
"(",
"output",
"instanceof",
"List",
")",
")",
"{",
"List",
"<",
"T",
">",
"result",
"=",
"new",
"ArrayList",
"<",
">",
"(",
"1",
")",
";",
"result",
... | public IList<T> AsList(object output){if (!(output is IList<T> outputList)){return new JCG.List<T>(1) { (T)output };}else{return outputList;}}
| train | false |
5,638 | public FooterKey(String keyName) {name = keyName;raw = Constants.encode(keyName.toLowerCase(Locale.ROOT));}
| [
"public",
"FooterKey",
"(",
"String",
"keyName",
")",
"{",
"name",
"=",
"keyName",
";",
"raw",
"=",
"Constants",
".",
"encode",
"(",
"keyName",
".",
"toLowerCase",
"(",
"Locale",
".",
"ROOT",
")",
")",
";",
"}"
] | public FooterKey(string keyName){name = keyName;raw = Constants.Encode(keyName.ToLower());}
| train | false |
5,639 | public List<Token> getTokens() { return tokens; }
| [
"public",
"List",
"<",
"Token",
">",
"getTokens",
"(",
")",
"{",
"return",
"tokens",
";",
"}"
] | public virtual IList<IToken> GetTokens(){return tokens;}
| train | false |
5,640 | public DeleteTaskSetResult deleteTaskSet(DeleteTaskSetRequest request) {request = beforeClientExecution(request);return executeDeleteTaskSet(request);}
| [
"public",
"DeleteTaskSetResult",
"deleteTaskSet",
"(",
"DeleteTaskSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteTaskSet",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteTaskSetResponse DeleteTaskSet(DeleteTaskSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTaskSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTaskSetResponseUnmarshaller.Instance;return Invoke<DeleteTaskSetResponse>(request, options);}
| train | true |
5,641 | public DescribeLifecycleConfigurationResult describeLifecycleConfiguration(DescribeLifecycleConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeLifecycleConfiguration(request);}
| [
"public",
"DescribeLifecycleConfigurationResult",
"describeLifecycleConfiguration",
"(",
"DescribeLifecycleConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeLifecycleConfiguration",
"(",
"reque... | public virtual DescribeLifecycleConfigurationResponse DescribeLifecycleConfiguration(DescribeLifecycleConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLifecycleConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLifecycleConfigurationResponse... | train | true |
5,642 | public DescribeNodegroupResult describeNodegroup(DescribeNodegroupRequest request) {request = beforeClientExecution(request);return executeDescribeNodegroup(request);}
| [
"public",
"DescribeNodegroupResult",
"describeNodegroup",
"(",
"DescribeNodegroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeNodegroup",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeNodegroupResponse DescribeNodegroup(DescribeNodegroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNodegroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNodegroupResponseUnmarshaller.Instance;return Invoke<DescribeNodegroupResponse>(re... | train | false |
5,643 | public CustomProperty() {this.name = null;}
| [
"public",
"CustomProperty",
"(",
")",
"{",
"this",
".",
"name",
"=",
"null",
";",
"}"
] | public CustomProperty(){this.name = null;}
| train | false |
5,644 | public DeleteDirectConnectGatewayResult deleteDirectConnectGateway(DeleteDirectConnectGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteDirectConnectGateway(request);}
| [
"public",
"DeleteDirectConnectGatewayResult",
"deleteDirectConnectGateway",
"(",
"DeleteDirectConnectGatewayRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteDirectConnectGateway",
"(",
"request",
")",
";... | public virtual DeleteDirectConnectGatewayResponse DeleteDirectConnectGateway(DeleteDirectConnectGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDirectConnectGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDirectConnectGatewayResponseUnmarshaller.Instanc... | train | true |
5,645 | public AddCommand(Repository repo) {super(repo);filepatterns = new LinkedList<>();}
| [
"public",
"AddCommand",
"(",
"Repository",
"repo",
")",
"{",
"super",
"(",
"repo",
")",
";",
"filepatterns",
"=",
"new",
"LinkedList",
"<",
">",
"(",
")",
";",
"}"
] | protected internal AddCommand(Repository repo) : base(repo){filepatterns = new List<string>();}
| train | false |
5,646 | public UpdateStageResult updateStage(UpdateStageRequest request) {request = beforeClientExecution(request);return executeUpdateStage(request);}
| [
"public",
"UpdateStageResult",
"updateStage",
"(",
"UpdateStageRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateStage",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateStageResponse UpdateStage(UpdateStageRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateStageRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateStageResponseUnmarshaller.Instance;return Invoke<UpdateStageResponse>(request, options);}
| train | true |
5,647 | public ModifyIdFormatResult modifyIdFormat(ModifyIdFormatRequest request) {request = beforeClientExecution(request);return executeModifyIdFormat(request);}
| [
"public",
"ModifyIdFormatResult",
"modifyIdFormat",
"(",
"ModifyIdFormatRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyIdFormat",
"(",
"request",
")",
";",
"}"
] | public virtual ModifyIdFormatResponse ModifyIdFormat(ModifyIdFormatRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyIdFormatRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyIdFormatResponseUnmarshaller.Instance;return Invoke<ModifyIdFormatResponse>(request, options);}
| train | true |
5,648 | public RemoveRoleFromDBClusterResult removeRoleFromDBCluster(RemoveRoleFromDBClusterRequest request) {request = beforeClientExecution(request);return executeRemoveRoleFromDBCluster(request);}
| [
"public",
"RemoveRoleFromDBClusterResult",
"removeRoleFromDBCluster",
"(",
"RemoveRoleFromDBClusterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRemoveRoleFromDBCluster",
"(",
"request",
")",
";",
"}"
] | public virtual RemoveRoleFromDBClusterResponse RemoveRoleFromDBCluster(RemoveRoleFromDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveRoleFromDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveRoleFromDBClusterResponseUnmarshaller.Instance;return Invoke... | train | true |
5,649 | public E set(int location, E object) {if (location >= 0 && location < size) {Link<E> link = voidLink;if (location < (size / 2)) {for (int i = 0; i <= location; i++) {link = link.next;}} else {for (int i = size; i > location; i--) {link = link.previous;}}E result = link.data;link.data = object;return result;}throw new I... | [
"public",
"E",
"set",
"(",
"int",
"location",
",",
"E",
"object",
")",
"{",
"if",
"(",
"location",
">=",
"0",
"&&",
"location",
"<",
"size",
")",
"{",
"Link",
"<",
"E",
">",
"link",
"=",
"voidLink",
";",
"if",
"(",
"location",
"<",
"(",
"size",
... | public override E set(int location, E @object){if (location >= 0 && location < _size){java.util.LinkedList.Link<E> link = voidLink;if (location < (_size / 2)){{for (int i = 0; i <= location; i++){link = link.next;}}}else{{for (int i = _size; i > location; i--){link = link.previous;}}}E result = link.data;link.data = @o... | train | false |
5,650 | public ListPhoneNumbersResult listPhoneNumbers(ListPhoneNumbersRequest request) {request = beforeClientExecution(request);return executeListPhoneNumbers(request);}
| [
"public",
"ListPhoneNumbersResult",
"listPhoneNumbers",
"(",
"ListPhoneNumbersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListPhoneNumbers",
"(",
"request",
")",
";",
"}"
] | public virtual ListPhoneNumbersResponse ListPhoneNumbers(ListPhoneNumbersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPhoneNumbersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPhoneNumbersResponseUnmarshaller.Instance;return Invoke<ListPhoneNumbersResponse>(request,... | train | true |
5,651 | public GermanNormalizationFilter(TokenStream input) {super(input);}
| [
"public",
"GermanNormalizationFilter",
"(",
"TokenStream",
"input",
")",
"{",
"super",
"(",
"input",
")",
";",
"}"
] | public GermanNormalizationFilter(TokenStream input): base(input){termAtt = AddAttribute<ICharTermAttribute>();}
| train | false |
5,652 | @Override public boolean equals(Object object) {return list.equals(object);}
| [
"@",
"Override",
"public",
"boolean",
"equals",
"(",
"Object",
"object",
")",
"{",
"return",
"list",
".",
"equals",
"(",
"object",
")",
";",
"}"
] | public override bool Equals(object @object){return list.Equals(@object);}
| train | false |
5,653 | public PullCommand pull() {return new PullCommand(repo);}
| [
"public",
"PullCommand",
"pull",
"(",
")",
"{",
"return",
"new",
"PullCommand",
"(",
"repo",
")",
";",
"}"
] | public virtual PullCommand Pull(){return new PullCommand(repo);}
| train | false |
5,654 | public String toString() {return "ALL"; }
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"ALL\"",
";",
"}"
] | public override string ToString(){return "ALL";}
| train | false |
5,655 | public CreateIngestionResult createIngestion(CreateIngestionRequest request) {request = beforeClientExecution(request);return executeCreateIngestion(request);}
| [
"public",
"CreateIngestionResult",
"createIngestion",
"(",
"CreateIngestionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateIngestion",
"(",
"request",
")",
";",
"}"
] | public virtual CreateIngestionResponse CreateIngestion(CreateIngestionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIngestionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIngestionResponseUnmarshaller.Instance;return Invoke<CreateIngestionResponse>(request, optio... | train | false |
5,656 | public StashCreateCommand(Repository repo) {super(repo);person = new PersonIdent(repo);}
| [
"public",
"StashCreateCommand",
"(",
"Repository",
"repo",
")",
"{",
"super",
"(",
"repo",
")",
";",
"person",
"=",
"new",
"PersonIdent",
"(",
"repo",
")",
";",
"}"
] | protected internal StashCreateCommand(Repository repo) : base(repo){person = new PersonIdent(repo);}
| train | false |
5,657 | public final ShortBuffer asShortBuffer() {return ShortToByteBufferAdapter.asShortBuffer(this);}
| [
"public",
"final",
"ShortBuffer",
"asShortBuffer",
"(",
")",
"{",
"return",
"ShortToByteBufferAdapter",
".",
"asShortBuffer",
"(",
"this",
")",
";",
"}"
] | public sealed override java.nio.ShortBuffer asShortBuffer(){return java.nio.ShortToByteBufferAdapter.asShortBuffer(this);}
| train | false |
5,658 | public FeatSmartTag() {data = new byte[0];}
| [
"public",
"FeatSmartTag",
"(",
")",
"{",
"data",
"=",
"new",
"byte",
"[",
"0",
"]",
";",
"}"
] | public FeatSmartTag(){data = new byte[0];}
| train | false |
5,659 | public LogCommand setSkip(int skip) {checkCallable();this.skip = skip;return this;}
| [
"public",
"LogCommand",
"setSkip",
"(",
"int",
"skip",
")",
"{",
"checkCallable",
"(",
")",
";",
"this",
".",
"skip",
"=",
"skip",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Api.LogCommand SetSkip(int skip){CheckCallable();this.skip = skip;return this;}
| train | false |
5,660 | public Ptg[] getFormulaTokens(FormulaRecord formula) {int formulaRow = formula.getRow();int formulaColumn = formula.getColumn();if (!isInRange(formulaRow, formulaColumn)) {throw new RuntimeException("Shared Formula Conversion: Coding Error");}SharedFormula sf = new SharedFormula(SpreadsheetVersion.EXCEL97);return sf.co... | [
"public",
"Ptg",
"[",
"]",
"getFormulaTokens",
"(",
"FormulaRecord",
"formula",
")",
"{",
"int",
"formulaRow",
"=",
"formula",
".",
"getRow",
"(",
")",
";",
"int",
"formulaColumn",
"=",
"formula",
".",
"getColumn",
"(",
")",
";",
"if",
"(",
"!",
"isInRan... | public Ptg[] GetFormulaTokens(FormulaRecord formula){int formulaRow = formula.Row;int formulaColumn = formula.Column;if (!IsInRange(formulaRow, formulaColumn)){throw new Exception("Shared Formula Conversion: Coding Error");}SharedFormula sf = new SharedFormula(SpreadsheetVersion.EXCEL97);return sf.ConvertSharedFormulas... | train | false |
5,661 | public int regionEnd() {return regionEnd;}
| [
"public",
"int",
"regionEnd",
"(",
")",
"{",
"return",
"regionEnd",
";",
"}"
] | public int regionEnd(){return _regionEnd;}
| train | false |
5,662 | public int getBehindCount() {return behindCount;}
| [
"public",
"int",
"getBehindCount",
"(",
")",
"{",
"return",
"behindCount",
";",
"}"
] | public virtual int GetBehindCount(){return behindCount;}
| train | false |
5,664 | public PutImageScanningConfigurationResult putImageScanningConfiguration(PutImageScanningConfigurationRequest request) {request = beforeClientExecution(request);return executePutImageScanningConfiguration(request);}
| [
"public",
"PutImageScanningConfigurationResult",
"putImageScanningConfiguration",
"(",
"PutImageScanningConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutImageScanningConfiguration",
"(",
"request",... | public virtual PutImageScanningConfigurationResponse PutImageScanningConfiguration(PutImageScanningConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutImageScanningConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutImageScanningConfigurationResponseUnmar... | train | false |
5,665 | public BlameCommand blame() {return new BlameCommand(repo);}
| [
"public",
"BlameCommand",
"blame",
"(",
")",
"{",
"return",
"new",
"BlameCommand",
"(",
"repo",
")",
";",
"}"
] | public virtual BlameCommand Blame(){return new BlameCommand(repo);}
| train | false |
5,666 | public BytesRef textToBytesRef() {return new BytesRef(text);}
| [
"public",
"BytesRef",
"textToBytesRef",
"(",
")",
"{",
"return",
"new",
"BytesRef",
"(",
"text",
")",
";",
"}"
] | public virtual BytesRef TextToBytesRef(){return new BytesRef(text.ToString());}
| train | false |
5,667 | public int compareTo(DoubleBuffer otherBuffer) {int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining(): otherBuffer.remaining();int thisPos = position;int otherPos = otherBuffer.position;double thisDouble, otherDouble;while (compareRemaining > 0) {thisDouble = get(thisPos);otherDouble = otherBuffe... | [
"public",
"int",
"compareTo",
"(",
"DoubleBuffer",
"otherBuffer",
")",
"{",
"int",
"compareRemaining",
"=",
"(",
"remaining",
"(",
")",
"<",
"otherBuffer",
".",
"remaining",
"(",
")",
")",
"?",
"remaining",
"(",
")",
":",
"otherBuffer",
".",
"remaining",
"... | public virtual int compareTo(java.nio.DoubleBuffer otherBuffer){int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining();int thisPos = _position;int otherPos = otherBuffer._position;double thisDouble;double otherDouble;while (compareRemaining > 0){thisDouble = get(thisPos);... | train | true |
5,668 | public CreateIpGroupResult createIpGroup(CreateIpGroupRequest request) {request = beforeClientExecution(request);return executeCreateIpGroup(request);}
| [
"public",
"CreateIpGroupResult",
"createIpGroup",
"(",
"CreateIpGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateIpGroup",
"(",
"request",
")",
";",
"}"
] | public virtual CreateIpGroupResponse CreateIpGroup(CreateIpGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIpGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIpGroupResponseUnmarshaller.Instance;return Invoke<CreateIpGroupResponse>(request, options);}
| train | true |
5,669 | public synchronized E set(int index, E e) {Object[] newElements = elements.clone();@SuppressWarnings("unchecked")E result = (E) newElements[index];newElements[index] = e;elements = newElements;return result;}
| [
"public",
"synchronized",
"E",
"set",
"(",
"int",
"index",
",",
"E",
"e",
")",
"{",
"Object",
"[",
"]",
"newElements",
"=",
"elements",
".",
"clone",
"(",
")",
";",
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"E",
"result",
"=",
"(",
"E",
")"... | public virtual E set(int index, E e){lock (this){object[] newElements = (object[])elements.Clone();E result = (E)newElements[index];newElements[index] = e;elements = newElements;return result;}}
| train | true |
5,671 | public synchronized String substring(int start, int end) {return super.substring(start, end);}
| [
"public",
"synchronized",
"String",
"substring",
"(",
"int",
"start",
",",
"int",
"end",
")",
"{",
"return",
"super",
".",
"substring",
"(",
"start",
",",
"end",
")",
";",
"}"
] | public override string substring(int start, int end){lock (this){return base.substring(start, end);}}
| train | false |
5,673 | public static String authoritySafePath(String authority, String path) {if (authority != null && !authority.isEmpty() && !path.isEmpty() && !path.startsWith("/")) {return "/" + path;}return path;}
| [
"public",
"static",
"String",
"authoritySafePath",
"(",
"String",
"authority",
",",
"String",
"path",
")",
"{",
"if",
"(",
"authority",
"!=",
"null",
"&&",
"!",
"authority",
".",
"isEmpty",
"(",
")",
"&&",
"!",
"path",
".",
"isEmpty",
"(",
")",
"&&",
"... | public static string authoritySafePath(string authority, string path){if (authority != null && !string.IsNullOrEmpty(authority) && !string.IsNullOrEmpty(path) && !path.StartsWith("/")){return "/" + path;}return path;}
| train | true |
5,674 | public final void smudgeRacilyClean() {final int base = infoOffset + P_SIZE;Arrays.fill(info, base, base + 4, (byte) 0);}
| [
"public",
"final",
"void",
"smudgeRacilyClean",
"(",
")",
"{",
"final",
"int",
"base",
"=",
"infoOffset",
"+",
"P_SIZE",
";",
"Arrays",
".",
"fill",
"(",
"info",
",",
"base",
",",
"base",
"+",
"4",
",",
"(",
"byte",
")",
"0",
")",
";",
"}"
] | public void SmudgeRacilyClean(){int @base = infoOffset + P_SIZE;Arrays.Fill(info, @base, @base + 4, unchecked((byte)0));}
| train | false |
5,675 | public SeriesListRecord clone() {return copy();}
| [
"public",
"SeriesListRecord",
"clone",
"(",
")",
"{",
"return",
"copy",
"(",
")",
";",
"}"
] | public override Object Clone(){return new SeriesListRecord((short[])field_1_seriesNumbers.Clone());}
| train | false |
5,676 | public void decode(){if (null == escherRecords || 0 == escherRecords.size()){byte[] rawData = getRawData();convertToEscherRecords(0, rawData.length, rawData );}}
| [
"public",
"void",
"decode",
"(",
")",
"{",
"if",
"(",
"null",
"==",
"escherRecords",
"||",
"0",
"==",
"escherRecords",
".",
"size",
"(",
")",
")",
"{",
"byte",
"[",
"]",
"rawData",
"=",
"getRawData",
"(",
")",
";",
"convertToEscherRecords",
"(",
"0",
... | public void Decode(){if (null == escherRecords || 0 == escherRecords.Count){byte[] rawData = RawData;ConvertToEscherRecords(0, rawData.Length, rawData);}}
| train | false |
5,677 | public RemoveAutoScalingPolicyResult removeAutoScalingPolicy(RemoveAutoScalingPolicyRequest request) {request = beforeClientExecution(request);return executeRemoveAutoScalingPolicy(request);}
| [
"public",
"RemoveAutoScalingPolicyResult",
"removeAutoScalingPolicy",
"(",
"RemoveAutoScalingPolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRemoveAutoScalingPolicy",
"(",
"request",
")",
";",
"}"
] | public virtual RemoveAutoScalingPolicyResponse RemoveAutoScalingPolicy(RemoveAutoScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveAutoScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveAutoScalingPolicyResponseUnmarshaller.Instance;return Invoke... | train | true |
5,678 | public byte readByte() {assert !eof();assert upto <= limit;if (upto == limit)nextSlice();return buffer[upto++];}
| [
"public",
"byte",
"readByte",
"(",
")",
"{",
"assert",
"!",
"eof",
"(",
")",
";",
"assert",
"upto",
"<=",
"limit",
";",
"if",
"(",
"upto",
"==",
"limit",
")",
"nextSlice",
"(",
")",
";",
"return",
"buffer",
"[",
"upto",
"++",
"]",
";",
"}"
] | public override byte ReadByte(){Debug.Assert(!Eof());Debug.Assert(upto <= limit);if (upto == limit){NextSlice();}return (byte)buffer[upto++];}
| train | false |
5,679 | public CreateAliasResult createAlias(CreateAliasRequest request) {request = beforeClientExecution(request);return executeCreateAlias(request);}
| [
"public",
"CreateAliasResult",
"createAlias",
"(",
"CreateAliasRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateAlias",
"(",
"request",
")",
";",
"}"
] | public virtual CreateAliasResponse CreateAlias(CreateAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAliasResponseUnmarshaller.Instance;return Invoke<CreateAliasResponse>(request, options);}
| train | true |
5,680 | public boolean markSupported() {return in.markSupported();}
| [
"public",
"boolean",
"markSupported",
"(",
")",
"{",
"return",
"in",
".",
"markSupported",
"(",
")",
";",
"}"
] | public override bool markSupported(){return @in.markSupported();}
| train | false |
5,681 | public String getRawSchemeSpecificPart() {return schemeSpecificPart;}
| [
"public",
"String",
"getRawSchemeSpecificPart",
"(",
")",
"{",
"return",
"schemeSpecificPart",
";",
"}"
] | public string getRawSchemeSpecificPart(){return schemeSpecificPart;}
| train | false |
5,682 | public CreateRouteResponseResult createRouteResponse(CreateRouteResponseRequest request) {request = beforeClientExecution(request);return executeCreateRouteResponse(request);}
| [
"public",
"CreateRouteResponseResult",
"createRouteResponse",
"(",
"CreateRouteResponseRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateRouteResponse",
"(",
"request",
")",
";",
"}"
] | public virtual CreateRouteResponseResponse CreateRouteResponse(CreateRouteResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRouteResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRouteResponseResponseUnmarshaller.Instance;return Invoke<CreateRouteResponse... | train | true |
5,683 | public void remove() {if (lastEntryReturned == null)throw new IllegalStateException();if (modCount != expectedModCount)throw new ConcurrentModificationException();HashMap.this.remove(lastEntryReturned.key);lastEntryReturned = null;expectedModCount = modCount;}
| [
"public",
"void",
"remove",
"(",
")",
"{",
"if",
"(",
"lastEntryReturned",
"==",
"null",
")",
"throw",
"new",
"IllegalStateException",
"(",
")",
";",
"if",
"(",
"modCount",
"!=",
"expectedModCount",
")",
"throw",
"new",
"ConcurrentModificationException",
"(",
... | public virtual void remove(){if (this.lastEntryReturned == null){throw new System.InvalidOperationException();}if (this._enclosing.modCount != this.expectedModCount){throw new java.util.ConcurrentModificationException();}this._enclosing.remove(this.lastEntryReturned.key);this.lastEntryReturned = null;this.expectedModCo... | train | false |
5,684 | public void put(int key, E value) {int i = binarySearch(mKeys, 0, mSize, key);if (i >= 0) {mValues[i] = value;} else {i = ~i;if (i < mSize && mValues[i] == DELETED) {mKeys[i] = key;mValues[i] = value;return;}if (mGarbage && mSize >= mKeys.length) {gc();i = ~binarySearch(mKeys, 0, mSize, key);}if (mSize >= mKeys.length)... | [
"public",
"void",
"put",
"(",
"int",
"key",
",",
"E",
"value",
")",
"{",
"int",
"i",
"=",
"binarySearch",
"(",
"mKeys",
",",
"0",
",",
"mSize",
",",
"key",
")",
";",
"if",
"(",
"i",
">=",
"0",
")",
"{",
"mValues",
"[",
"i",
"]",
"=",
"value",... | public virtual void put(int key, E value){int i = binarySearch(mKeys, 0, mSize, key);if (i >= 0){mValues[i] = value;}else{i = ~i;if (i < mSize && mValues[i] == DELETED){mKeys[i] = key;mValues[i] = value;return;}if (mGarbage && mSize >= mKeys.Length){gc();i = ~binarySearch(mKeys, 0, mSize, key);}if (mSize >= mKeys.Lengt... | train | true |
5,685 | public boolean equals(Object obj) {if (obj == this) {return true;}else if (!(obj instanceof LexerCustomAction)) {return false;}LexerCustomAction other = (LexerCustomAction)obj;return ruleIndex == other.ruleIndex&& actionIndex == other.actionIndex;}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"obj",
"==",
"this",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"!",
"(",
"obj",
"instanceof",
"LexerCustomAction",
")",
")",
"{",
"return",
"false",
";",
"}",
... | public override bool Equals(object obj){if (obj == this){return true;}else{if (!(obj is Antlr4.Runtime.Atn.LexerCustomAction)){return false;}}Antlr4.Runtime.Atn.LexerCustomAction other = (Antlr4.Runtime.Atn.LexerCustomAction)obj;return ruleIndex == other.ruleIndex && actionIndex == other.actionIndex;}
| train | false |
5,686 | public void seekExact(BytesRef term, TermState state) throws IOException {throw new UnsupportedOperationException(getClass().getName()+" does not support seeking");}
| [
"public",
"void",
"seekExact",
"(",
"BytesRef",
"term",
",",
"TermState",
"state",
")",
"throws",
"IOException",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
"+",
"\" does not support seeking\"",
")",
... | public override void SeekExact(BytesRef term, TermState state){throw new System.NotSupportedException(this.GetType().Name + " does not support seeking");}
| train | false |
5,687 | public void readBytes(byte[] b, int offset, int len) {assert b.length >= offset + len;final int offsetEnd = offset + len;while (true) {final int blockLeft = blockSize - currentBlockUpto;final int left = offsetEnd - offset;if (blockLeft < left) {System.arraycopy(currentBlock, currentBlockUpto,b, offset,blockLeft);nextBl... | [
"public",
"void",
"readBytes",
"(",
"byte",
"[",
"]",
"b",
",",
"int",
"offset",
",",
"int",
"len",
")",
"{",
"assert",
"b",
".",
"length",
">=",
"offset",
"+",
"len",
";",
"final",
"int",
"offsetEnd",
"=",
"offset",
"+",
"len",
";",
"while",
"(",
... | public override void ReadBytes(byte[] b, int offset, int len){Debug.Assert(b.Length >= offset + len);int offsetEnd = offset + len;while (true){int blockLeft = outerInstance.blockSize - currentBlockUpto;int left = offsetEnd - offset;if (blockLeft < left){System.Buffer.BlockCopy(currentBlock, currentBlockUpto, b, offset,... | train | false |
5,688 | public FileResolver(File basePath, boolean exportAll) {this();exportDirectory(basePath);setExportAll(exportAll);}
| [
"public",
"FileResolver",
"(",
"File",
"basePath",
",",
"boolean",
"exportAll",
")",
"{",
"this",
"(",
")",
";",
"exportDirectory",
"(",
"basePath",
")",
";",
"setExportAll",
"(",
"exportAll",
")",
";",
"}"
] | public FileResolver(FilePath basePath, bool exportAll) : this(){ExportDirectory(basePath);SetExportAll(exportAll);}
| train | false |
5,689 | @Override public void add(int location, E object) {synchronized (mutex) {list.add(location, object);}}
| [
"@",
"Override",
"public",
"void",
"add",
"(",
"int",
"location",
",",
"E",
"object",
")",
"{",
"synchronized",
"(",
"mutex",
")",
"{",
"list",
".",
"add",
"(",
"location",
",",
"object",
")",
";",
"}",
"}"
] | public virtual void add(int location, E @object){lock (mutex){list.add(location, @object);}}
| train | false |
5,690 | public String replaceFirst(String replacement) {reset();StringBuffer buffer = new StringBuffer(input.length());if (find()) {appendReplacement(buffer, replacement);}return appendTail(buffer).toString();}
| [
"public",
"String",
"replaceFirst",
"(",
"String",
"replacement",
")",
"{",
"reset",
"(",
")",
";",
"StringBuffer",
"buffer",
"=",
"new",
"StringBuffer",
"(",
"input",
".",
"length",
"(",
")",
")",
";",
"if",
"(",
"find",
"(",
")",
")",
"{",
"appendRep... | public string replaceFirst(string replacement){reset();java.lang.StringBuffer buffer = new java.lang.StringBuffer(input.Length);if (find()){appendReplacement(buffer, replacement);}return appendTail(buffer).ToString();}
| train | true |
5,691 | public String format2DRefAsString() {return formatReferenceAsString();}
| [
"public",
"String",
"format2DRefAsString",
"(",
")",
"{",
"return",
"formatReferenceAsString",
"(",
")",
";",
"}"
] | public String Format2DRefAsString(){return FormatReferenceAsString();}
| train | false |
5,692 | public static String trimFromLast(String str, String stripString) {int pos = str.lastIndexOf(stripString);if (pos > -1) {return str.substring(0, pos);} else {return str;}}
| [
"public",
"static",
"String",
"trimFromLast",
"(",
"String",
"str",
",",
"String",
"stripString",
")",
"{",
"int",
"pos",
"=",
"str",
".",
"lastIndexOf",
"(",
"stripString",
")",
";",
"if",
"(",
"pos",
">",
"-",
"1",
")",
"{",
"return",
"str",
".",
"... | public static string TrimFromLast(string str, string stripString){var pos = str.LastIndexOf(stripString);if (pos > -1){return str.Substring(0, pos);}return str;}
| train | false |
5,693 | public float hyperbolicTf(float freq) {if (0.0f == freq) return 0.0f;final float min = tf_hyper_min;final float max = tf_hyper_max;final double base = tf_hyper_base;final float xoffset = tf_hyper_xoffset;final double x = (double)(freq - xoffset);final float result = min +(float)((max-min) / 2.0f*(( ( Math.pow(base,x) -... | [
"public",
"float",
"hyperbolicTf",
"(",
"float",
"freq",
")",
"{",
"if",
"(",
"0.0f",
"==",
"freq",
")",
"return",
"0.0f",
";",
"final",
"float",
"min",
"=",
"tf_hyper_min",
";",
"final",
"float",
"max",
"=",
"tf_hyper_max",
";",
"final",
"double",
"base... | public virtual float HyperbolicTf(float freq){if (0.0f == freq){return 0.0f;}float min = tf_hyper_min;float max = tf_hyper_max;double @base = tf_hyper_base;float xoffset = tf_hyper_xoffset;double x = (double)(freq - xoffset);float result = min + (float)((max - min) / 2.0f * (((Math.Pow(@base, x) - Math.Pow(@base, -x)) ... | train | false |
5,694 | public void setConfig(Config config) {super.setConfig(config);sortRange = config.get("sort.rng", 20000);r = new Random(config.get("rand.seed", 13));}
| [
"public",
"void",
"setConfig",
"(",
"Config",
"config",
")",
"{",
"super",
".",
"setConfig",
"(",
"config",
")",
";",
"sortRange",
"=",
"config",
".",
"get",
"(",
"\"sort.rng\"",
",",
"20000",
")",
";",
"r",
"=",
"new",
"Random",
"(",
"config",
".",
... | public override void SetConfig(Config config){base.SetConfig(config);sortRange = config.Get("sort.rng", 20000);r = new Random(config.Get("rand.seed", 13));}
| train | false |
5,697 | public void setObjectInserter(ObjectInserter oi) {walk.close();reader.close();inserter.close();inserter = oi;reader = oi.newReader();walk = new RevWalk(reader);}
| [
"public",
"void",
"setObjectInserter",
"(",
"ObjectInserter",
"oi",
")",
"{",
"walk",
".",
"close",
"(",
")",
";",
"reader",
".",
"close",
"(",
")",
";",
"inserter",
".",
"close",
"(",
")",
";",
"inserter",
"=",
"oi",
";",
"reader",
"=",
"oi",
".",
... | public virtual void SetObjectInserter(ObjectInserter oi){if (inserter != null){inserter.Release();}inserter = oi;}
| train | false |
5,698 | public void clear() {head = null;free = null;index = null;inQueue = 0;sinceLastIndex = 0;last = -1;}
| [
"public",
"void",
"clear",
"(",
")",
"{",
"head",
"=",
"null",
";",
"free",
"=",
"null",
";",
"index",
"=",
"null",
";",
"inQueue",
"=",
"0",
";",
"sinceLastIndex",
"=",
"0",
";",
"last",
"=",
"-",
"1",
";",
"}"
] | public override void Clear(){head = null;free = null;}
| train | false |
5,699 | public void ReInit(CharStream stream, int lexState){ReInit(stream);SwitchTo(lexState);}
| [
"public",
"void",
"ReInit",
"(",
"CharStream",
"stream",
",",
"int",
"lexState",
")",
"{",
"ReInit",
"(",
"stream",
")",
";",
"SwitchTo",
"(",
"lexState",
")",
";",
"}"
] | public void ReInit(ICharStream stream, int lexState){ReInit(stream);SwitchTo(lexState);}
| train | false |
5,700 | public boolean contains(Object o) {if (!(o instanceof Map.Entry))return false;Map.Entry<?,?> e = (Map.Entry<?,?>)o;V v = ConcurrentHashMap.this.get(e.getKey());return v != null && v.equals(e.getValue());}
| [
"public",
"boolean",
"contains",
"(",
"Object",
"o",
")",
"{",
"if",
"(",
"!",
"(",
"o",
"instanceof",
"Map",
".",
"Entry",
")",
")",
"return",
"false",
";",
"Map",
".",
"Entry",
"<",
"?",
",",
"?",
">",
"e",
"=",
"(",
"Map",
".",
"Entry",
"<",... | public override bool contains(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.containsMapping(e.getKey(), e.getValue());}
| train | false |
5,701 | public List<String> getRemovedList() {return removedList;}
| [
"public",
"List",
"<",
"String",
">",
"getRemovedList",
"(",
")",
"{",
"return",
"removedList",
";",
"}"
] | public virtual IList<string> GetRemovedList(){return removedList;}
| train | false |
5,702 | public synchronized TaxonomyReader getTaxonomyReader() {if (taxonomyReader != null) {taxonomyReader.incRef();}return taxonomyReader;}
| [
"public",
"synchronized",
"TaxonomyReader",
"getTaxonomyReader",
"(",
")",
"{",
"if",
"(",
"taxonomyReader",
"!=",
"null",
")",
"{",
"taxonomyReader",
".",
"incRef",
"(",
")",
";",
"}",
"return",
"taxonomyReader",
";",
"}"
] | public virtual TaxonomyReader GetTaxonomyReader(){lock (this){if (taxonomyReader != null){taxonomyReader.IncRef();}return taxonomyReader;}}
| train | false |
5,703 | public String toString(String field) {return getBooleanQuery().toString(field);}
| [
"public",
"String",
"toString",
"(",
"String",
"field",
")",
"{",
"return",
"getBooleanQuery",
"(",
")",
".",
"toString",
"(",
"field",
")",
";",
"}"
] | public override string ToString(string field){return query.ToString(field);}
| train | false |
5,704 | public HSSFShapeGroup createGroup(HSSFClientAnchor anchor) {HSSFShapeGroup group = new HSSFShapeGroup(null, anchor);addShape(group);onCreate(group);return group;}
| [
"public",
"HSSFShapeGroup",
"createGroup",
"(",
"HSSFClientAnchor",
"anchor",
")",
"{",
"HSSFShapeGroup",
"group",
"=",
"new",
"HSSFShapeGroup",
"(",
"null",
",",
"anchor",
")",
";",
"addShape",
"(",
"group",
")",
";",
"onCreate",
"(",
"group",
")",
";",
"re... | public HSSFShapeGroup CreateGroup(HSSFClientAnchor anchor){HSSFShapeGroup group = new HSSFShapeGroup(null, anchor);AddShape(group);OnCreate(group);return group;}
| train | false |
5,705 | public String toString(){StringBuilder sb = new StringBuilder();sb.append( getText() ).append( '(' ).append( boost ).append( ")(" );for( Toffs to : termsOffsets ){sb.append( to );}sb.append( ')' );return sb.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"sb",
".",
"append",
"(",
"getText",
"(",
")",
")",
".",
"append",
"(",
"'('",
")",
".",
"append",
"(",
"boost",
")",
".",
"append",
"... | public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetText()).Append('(').Append(Number.ToString(boost)).Append(")(");foreach (Toffs to in termsOffsets){sb.Append(to);}sb.Append(')');return sb.ToString();}
| train | false |
5,706 | public ClassicFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"ClassicFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown par... | public ClassicFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
| train | false |
5,707 | public UpdateApplicationResult updateApplication(UpdateApplicationRequest request) {request = beforeClientExecution(request);return executeUpdateApplication(request);}
| [
"public",
"UpdateApplicationResult",
"updateApplication",
"(",
"UpdateApplicationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateApplication",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateApplicationResponse UpdateApplication(UpdateApplicationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance;return Invoke<UpdateApplicationResponse>(re... | train | true |
5,708 | public PackParser newPackParser(InputStream in) throws IOException {throw new UnsupportedOperationException();}
| [
"public",
"PackParser",
"newPackParser",
"(",
"InputStream",
"in",
")",
"throws",
"IOException",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
")",
";",
"}"
] | public override PackParser NewPackParser(InputStream @in){throw new NotSupportedException();}
| train | false |
5,709 | public void print(boolean bool) {print(String.valueOf(bool));}
| [
"public",
"void",
"print",
"(",
"boolean",
"bool",
")",
"{",
"print",
"(",
"String",
".",
"valueOf",
"(",
"bool",
")",
")",
";",
"}"
] | public virtual void print(bool @bool){print(@bool.ToString());}
| train | false |
5,710 | public int centerY() {return y + h / 2;}
| [
"public",
"int",
"centerY",
"(",
")",
"{",
"return",
"y",
"+",
"h",
"/",
"2",
";",
"}"
] | public int centerY(){return (top + bottom) >> 1;}
| train | false |
5,711 | public Query makeQuery(SpatialArgs args) {if(! SpatialOperation.is( args.getOperation(),SpatialOperation.Intersects,SpatialOperation.IsWithin ))throw new UnsupportedSpatialOperation(args.getOperation());Shape shape = args.getShape();if (shape instanceof Rectangle) {Rectangle bbox = (Rectangle) shape;return new Constant... | [
"public",
"Query",
"makeQuery",
"(",
"SpatialArgs",
"args",
")",
"{",
"if",
"(",
"!",
"SpatialOperation",
".",
"is",
"(",
"args",
".",
"getOperation",
"(",
")",
",",
"SpatialOperation",
".",
"Intersects",
",",
"SpatialOperation",
".",
"IsWithin",
")",
")",
... | public override ConstantScoreQuery MakeQuery(SpatialArgs args){if (!SpatialOperation.Is(args.Operation,SpatialOperation.Intersects,SpatialOperation.IsWithin)){throw new UnsupportedSpatialOperation(args.Operation);}IShape shape = args.Shape;if (shape is IRectangle){var bbox = (IRectangle)shape;return new ConstantScoreQu... | train | false |
5,713 | public GetManagedScalingPolicyResult getManagedScalingPolicy(GetManagedScalingPolicyRequest request) {request = beforeClientExecution(request);return executeGetManagedScalingPolicy(request);}
| [
"public",
"GetManagedScalingPolicyResult",
"getManagedScalingPolicy",
"(",
"GetManagedScalingPolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetManagedScalingPolicy",
"(",
"request",
")",
";",
"}"
] | public virtual GetManagedScalingPolicyResponse GetManagedScalingPolicy(GetManagedScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetManagedScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetManagedScalingPolicyResponseUnmarshaller.Instance;return Invoke... | train | false |
5,714 | public ListApplicationsResult listApplications() {return listApplications(new ListApplicationsRequest());}
| [
"public",
"ListApplicationsResult",
"listApplications",
"(",
")",
"{",
"return",
"listApplications",
"(",
"new",
"ListApplicationsRequest",
"(",
")",
")",
";",
"}"
] | public virtual ListApplicationsResponse ListApplications(){return ListApplications(new ListApplicationsRequest());}
| train | false |
5,715 | public String getFormatSpecifier() {return s;}
| [
"public",
"String",
"getFormatSpecifier",
"(",
")",
"{",
"return",
"s",
";",
"}"
] | public virtual string getFormatSpecifier(){return s;}
| train | false |
5,716 | public static String getBuiltinFormat(short index) {return BuiltinFormats.getBuiltinFormat(index);}
| [
"public",
"static",
"String",
"getBuiltinFormat",
"(",
"short",
"index",
")",
"{",
"return",
"BuiltinFormats",
".",
"getBuiltinFormat",
"(",
"index",
")",
";",
"}"
] | public static String GetBuiltinFormat(short index){return (String)builtinFormats[index];}
| train | false |
5,717 | public void addTask(PerfTask task) {tasks.add(task);task.setDepth(getDepth()+1);}
| [
"public",
"void",
"addTask",
"(",
"PerfTask",
"task",
")",
"{",
"tasks",
".",
"add",
"(",
"task",
")",
";",
"task",
".",
"setDepth",
"(",
"getDepth",
"(",
")",
"+",
"1",
")",
";",
"}"
] | public virtual void AddTask(PerfTask task){tasks.Add(task);task.Depth = Depth + 1;}
| train | false |
5,718 | public GetQueueUrlResult getQueueUrl(String queueName) {return getQueueUrl(new GetQueueUrlRequest().withQueueName(queueName));}
| [
"public",
"GetQueueUrlResult",
"getQueueUrl",
"(",
"String",
"queueName",
")",
"{",
"return",
"getQueueUrl",
"(",
"new",
"GetQueueUrlRequest",
"(",
")",
".",
"withQueueName",
"(",
"queueName",
")",
")",
";",
"}"
] | public virtual GetQueueUrlResponse GetQueueUrl(string queueName){var request = new GetQueueUrlRequest();request.QueueName = queueName;return GetQueueUrl(request);}
| train | false |
5,719 | public static double asinh(double d) {return Math.log(Math.sqrt(d*d + 1) + d);}
| [
"public",
"static",
"double",
"asinh",
"(",
"double",
"d",
")",
"{",
"return",
"Math",
".",
"log",
"(",
"Math",
".",
"sqrt",
"(",
"d",
"*",
"d",
"+",
"1",
")",
"+",
"d",
")",
";",
"}"
] | public static double Asinh(double d){double d2 = d * d;return Math.Log(Math.Sqrt(d * d + 1) + d);}
| train | false |
5,720 | public ActivityTypeDetail describeActivityType(DescribeActivityTypeRequest request) {request = beforeClientExecution(request);return executeDescribeActivityType(request);}
| [
"public",
"ActivityTypeDetail",
"describeActivityType",
"(",
"DescribeActivityTypeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeActivityType",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeActivityTypeResponse DescribeActivityType(DescribeActivityTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeActivityTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeActivityTypeResponseUnmarshaller.Instance;return Invoke<DescribeActivi... | train | true |
5,721 | public RegisterTransitGatewayMulticastGroupSourcesResult registerTransitGatewayMulticastGroupSources(RegisterTransitGatewayMulticastGroupSourcesRequest request) {request = beforeClientExecution(request);return executeRegisterTransitGatewayMulticastGroupSources(request);}
| [
"public",
"RegisterTransitGatewayMulticastGroupSourcesResult",
"registerTransitGatewayMulticastGroupSources",
"(",
"RegisterTransitGatewayMulticastGroupSourcesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRegisterT... | public virtual RegisterTransitGatewayMulticastGroupSourcesResponse RegisterTransitGatewayMulticastGroupSources(RegisterTransitGatewayMulticastGroupSourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterTransitGatewayMulticastGroupSourcesRequestMarshaller.Instance;options.ResponseU... | train | false |
5,722 | public void onRelease() {mPullDistance = 0;if (mState != STATE_PULL && mState != STATE_PULL_DECAY) {return;}mState = STATE_RECEDE;mEdgeAlphaStart = mEdgeAlpha;mEdgeScaleYStart = mEdgeScaleY;mGlowAlphaStart = mGlowAlpha;mGlowScaleYStart = mGlowScaleY;mEdgeAlphaFinish = 0.f;mEdgeScaleYFinish = 0.f;mGlowAlphaFinish = 0.f;... | [
"public",
"void",
"onRelease",
"(",
")",
"{",
"mPullDistance",
"=",
"0",
";",
"if",
"(",
"mState",
"!=",
"STATE_PULL",
"&&",
"mState",
"!=",
"STATE_PULL_DECAY",
")",
"{",
"return",
";",
"}",
"mState",
"=",
"STATE_RECEDE",
";",
"mEdgeAlphaStart",
"=",
"mEdg... | public virtual void onRelease(){mPullDistance = 0;if (mState != STATE_PULL && mState != STATE_PULL_DECAY){return;}mState = STATE_RECEDE;mEdgeAlphaStart = mEdgeAlpha;mEdgeScaleYStart = mEdgeScaleY;mGlowAlphaStart = mGlowAlpha;mGlowScaleYStart = mGlowScaleY;mEdgeAlphaFinish = 0.0f;mEdgeScaleYFinish = 0.0f;mGlowAlphaFinis... | train | false |
5,723 | public ImportKeyPairResult importKeyPair(ImportKeyPairRequest request) {request = beforeClientExecution(request);return executeImportKeyPair(request);}
| [
"public",
"ImportKeyPairResult",
"importKeyPair",
"(",
"ImportKeyPairRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeImportKeyPair",
"(",
"request",
")",
";",
"}"
] | public virtual ImportKeyPairResponse ImportKeyPair(ImportKeyPairRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportKeyPairRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportKeyPairResponseUnmarshaller.Instance;return Invoke<ImportKeyPairResponse>(request, options);}
| train | true |
5,724 | public String metricFilterPattern() {return this.metricFilterPattern;}
| [
"public",
"String",
"metricFilterPattern",
"(",
")",
"{",
"return",
"this",
".",
"metricFilterPattern",
";",
"}"
] | public override void Validate(){base.Validate();}
| train | false |
5,725 | public long getTotalTimeInPrediction() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long t = 0;for (int i=0; i<decisions.length; i++) {t += decisions[i].timeInPrediction;}return t;}
| [
"public",
"long",
"getTotalTimeInPrediction",
"(",
")",
"{",
"DecisionInfo",
"[",
"]",
"decisions",
"=",
"atnSimulator",
".",
"getDecisionInfo",
"(",
")",
";",
"long",
"t",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"decisions",
".... | public long getTotalTimeInPrediction(){DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long t = 0;for (int i = 0; i < decisions.Length; i++){t += decisions[i].timeInPrediction;}return t;}
| train | false |
5,726 | public TokenStream create(TokenStream input) {return new HungarianLightStemFilter(input);}
| [
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"HungarianLightStemFilter",
"(",
"input",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return new HungarianLightStemFilter(input);}
| train | false |
5,727 | public String getDescription() {return desc;}
| [
"public",
"String",
"getDescription",
"(",
")",
"{",
"return",
"desc",
";",
"}"
] | public virtual string getDescription(){return desc;}
| train | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.