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 |
|---|---|---|---|---|---|
4,670 | public DescribePoliciesResult describePolicies(DescribePoliciesRequest request) {request = beforeClientExecution(request);return executeDescribePolicies(request);}
| [
"public",
"DescribePoliciesResult",
"describePolicies",
"(",
"DescribePoliciesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribePolicies",
"(",
"request",
")",
";",
"}"
] | public virtual DescribePoliciesResponse DescribePolicies(DescribePoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePoliciesResponseUnmarshaller.Instance;return Invoke<DescribePoliciesResponse>(request,... | train | true |
4,671 | public boolean isEmpty(){return _limit == 0;}
| [
"public",
"boolean",
"isEmpty",
"(",
")",
"{",
"return",
"_limit",
"==",
"0",
";",
"}"
] | public bool IsEmpty(){return _limit == 0;}
| train | false |
4,672 | public HSSFCombobox(HSSFShape parent, HSSFAnchor anchor) {super(parent, anchor);super.setShapeType(OBJECT_TYPE_COMBO_BOX);CommonObjectDataSubRecord cod = (CommonObjectDataSubRecord) getObjRecord().getSubRecords().get(0);cod.setObjectType(CommonObjectDataSubRecord.OBJECT_TYPE_COMBO_BOX);}
| [
"public",
"HSSFCombobox",
"(",
"HSSFShape",
"parent",
",",
"HSSFAnchor",
"anchor",
")",
"{",
"super",
"(",
"parent",
",",
"anchor",
")",
";",
"super",
".",
"setShapeType",
"(",
"OBJECT_TYPE_COMBO_BOX",
")",
";",
"CommonObjectDataSubRecord",
"cod",
"=",
"(",
"C... | public HSSFCombobox(HSSFShape parent, HSSFAnchor anchor): base(parent, anchor){base.ShapeType = (OBJECT_TYPE_COMBO_BOX);CommonObjectDataSubRecord cod = (CommonObjectDataSubRecord)GetObjRecord().SubRecords[0];cod.ObjectType = CommonObjectType.ComboBox;}
| train | false |
4,673 | public void setCalcMode(short calcmode){field_1_calcmode = calcmode;}
| [
"public",
"void",
"setCalcMode",
"(",
"short",
"calcmode",
")",
"{",
"field_1_calcmode",
"=",
"calcmode",
";",
"}"
] | public void SetCalcMode(short calcmode){field_1_calcmode = calcmode;}
| train | false |
4,674 | public void resize(double scale) {resize(scale,scale);}
| [
"public",
"void",
"resize",
"(",
"double",
"scale",
")",
"{",
"resize",
"(",
"scale",
",",
"scale",
")",
";",
"}"
] | public void Resize(double scale){Resize(scale, scale);}
| train | false |
4,675 | public AssociateAddressResult associateAddress(AssociateAddressRequest request) {request = beforeClientExecution(request);return executeAssociateAddress(request);}
| [
"public",
"AssociateAddressResult",
"associateAddress",
"(",
"AssociateAddressRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociateAddress",
"(",
"request",
")",
";",
"}"
] | public virtual AssociateAddressResponse AssociateAddress(AssociateAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateAddressResponseUnmarshaller.Instance;return Invoke<AssociateAddressResponse>(request,... | train | true |
4,676 | public ConfirmConnectionResult confirmConnection(ConfirmConnectionRequest request) {request = beforeClientExecution(request);return executeConfirmConnection(request);}
| [
"public",
"ConfirmConnectionResult",
"confirmConnection",
"(",
"ConfirmConnectionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeConfirmConnection",
"(",
"request",
")",
";",
"}"
] | public virtual ConfirmConnectionResponse ConfirmConnection(ConfirmConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = ConfirmConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = ConfirmConnectionResponseUnmarshaller.Instance;return Invoke<ConfirmConnectionResponse>(re... | train | true |
4,677 | public UseSelFSRecord(boolean b) {this(0);_options = useNaturalLanguageFormulasFlag.setBoolean(_options, b);}
| [
"public",
"UseSelFSRecord",
"(",
"boolean",
"b",
")",
"{",
"this",
"(",
"0",
")",
";",
"_options",
"=",
"useNaturalLanguageFormulasFlag",
".",
"setBoolean",
"(",
"_options",
",",
"b",
")",
";",
"}"
] | public UseSelFSRecord(bool b): this(0){_options = useNaturalLanguageFormulasFlag.SetBoolean(_options, b);}
| train | false |
4,678 | public void start(String originalText, TokenStream stream) {offsetAtt = stream.addAttribute(OffsetAttribute.class);currentNumFrags = 1;}
| [
"public",
"void",
"start",
"(",
"String",
"originalText",
",",
"TokenStream",
"stream",
")",
"{",
"offsetAtt",
"=",
"stream",
".",
"addAttribute",
"(",
"OffsetAttribute",
".",
"class",
")",
";",
"currentNumFrags",
"=",
"1",
";",
"}"
] | public virtual void Start(string originalText, TokenStream stream){offsetAtt = stream.AddAttribute<IOffsetAttribute>();currentNumFrags = 1;}
| train | false |
4,679 | public FieldFragList createFieldFragList( FieldPhraseList fieldPhraseList, int fragCharSize ){return createFieldFragList( fieldPhraseList, new SimpleFieldFragList( fragCharSize ), fragCharSize );}
| [
"public",
"FieldFragList",
"createFieldFragList",
"(",
"FieldPhraseList",
"fieldPhraseList",
",",
"int",
"fragCharSize",
")",
"{",
"return",
"createFieldFragList",
"(",
"fieldPhraseList",
",",
"new",
"SimpleFieldFragList",
"(",
"fragCharSize",
")",
",",
"fragCharSize",
... | public override FieldFragList CreateFieldFragList(FieldPhraseList fieldPhraseList, int fragCharSize){return CreateFieldFragList(fieldPhraseList, new SimpleFieldFragList(fragCharSize), fragCharSize);}
| train | false |
4,680 | public StopImageBuilderResult stopImageBuilder(StopImageBuilderRequest request) {request = beforeClientExecution(request);return executeStopImageBuilder(request);}
| [
"public",
"StopImageBuilderResult",
"stopImageBuilder",
"(",
"StopImageBuilderRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStopImageBuilder",
"(",
"request",
")",
";",
"}"
] | public virtual StopImageBuilderResponse StopImageBuilder(StopImageBuilderRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopImageBuilderRequestMarshaller.Instance;options.ResponseUnmarshaller = StopImageBuilderResponseUnmarshaller.Instance;return Invoke<StopImageBuilderResponse>(request,... | train | true |
4,681 | public final int readUnsignedShort() throws IOException {return ((int) readShort()) & 0xffff;}
| [
"public",
"final",
"int",
"readUnsignedShort",
"(",
")",
"throws",
"IOException",
"{",
"return",
"(",
"(",
"int",
")",
"readShort",
"(",
")",
")",
"&",
"0xffff",
";",
"}"
] | public virtual int readUnsignedShort(){throw new System.NotImplementedException();}
| train | false |
4,682 | public static long pop_xor(long[] arr1, long[] arr2, int wordOffset, int numWords) {long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i) {popCount += Long.bitCount(arr1[i] ^ arr2[i]);}return popCount;}
| [
"public",
"static",
"long",
"pop_xor",
"(",
"long",
"[",
"]",
"arr1",
",",
"long",
"[",
"]",
"arr2",
",",
"int",
"wordOffset",
",",
"int",
"numWords",
")",
"{",
"long",
"popCount",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"wordOffset",
",",
"end... | public static long Pop_Xor(long[] arr1, long[] arr2, int wordOffset, int numWords){long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i){popCount += (arr1[i] ^ arr2[i]).PopCount();}return popCount;}
| train | true |
4,683 | public GetDocumentResult getDocument(GetDocumentRequest request) {request = beforeClientExecution(request);return executeGetDocument(request);}
| [
"public",
"GetDocumentResult",
"getDocument",
"(",
"GetDocumentRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDocument",
"(",
"request",
")",
";",
"}"
] | public virtual GetDocumentResponse GetDocument(GetDocumentRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDocumentRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDocumentResponseUnmarshaller.Instance;return Invoke<GetDocumentResponse>(request, options);}
| train | true |
4,684 | public AutocompletePagedResponse(SimpleResponse<AutocompleteResult> autocompleteResponse) {super(autocompleteResponse.getRequest(),autocompleteResponse.getStatusCode(),autocompleteResponse.getHeaders(),autocompleteResponse.getValue().getResults(),null,null);}
| [
"public",
"AutocompletePagedResponse",
"(",
"SimpleResponse",
"<",
"AutocompleteResult",
">",
"autocompleteResponse",
")",
"{",
"super",
"(",
"autocompleteResponse",
".",
"getRequest",
"(",
")",
",",
"autocompleteResponse",
".",
"getStatusCode",
"(",
")",
",",
"autoco... | public partial interface IOperations{Task<AzureOperationResponse<IEnumerable<Operation>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));}
| train | false |
4,685 | public PutPermissionResult putPermission(PutPermissionRequest request) {request = beforeClientExecution(request);return executePutPermission(request);}
| [
"public",
"PutPermissionResult",
"putPermission",
"(",
"PutPermissionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutPermission",
"(",
"request",
")",
";",
"}"
] | public virtual PutPermissionResponse PutPermission(PutPermissionRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutPermissionRequestMarshaller.Instance;options.ResponseUnmarshaller = PutPermissionResponseUnmarshaller.Instance;return Invoke<PutPermissionResponse>(request, options);}
| train | true |
4,686 | public void serialize(LittleEndianOutput out) {out.writeInt(0);out.writeInt(getFirstRow());out.writeInt(getLastRowAdd1());out.writeInt(field_4_zero);for (int k = 0; k < getNumDbcells(); k++) {out.writeInt(getDbcellAt(k));}}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeInt",
"(",
"0",
")",
";",
"out",
".",
"writeInt",
"(",
"getFirstRow",
"(",
")",
")",
";",
"out",
".",
"writeInt",
"(",
"getLastRowAdd1",
"(",
")",
")",
";",
... | public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(0);out1.WriteInt(FirstRow);out1.WriteInt(LastRowAdd1);out1.WriteInt(field_4_zero);for (int k = 0; k < NumDbcells; k++){out1.WriteInt(GetDbcellAt(k));}}
| train | false |
4,687 | public HSSFFormulaEvaluator(HSSFWorkbook workbook) {this(workbook, null);}
| [
"public",
"HSSFFormulaEvaluator",
"(",
"HSSFWorkbook",
"workbook",
")",
"{",
"this",
"(",
"workbook",
",",
"null",
")",
";",
"}"
] | public HSSFFormulaEvaluator(IWorkbook workbook): this(workbook, null){this.workbook = workbook;}
| train | false |
4,690 | public static SimpleFraction buildFractionExactDenominator(double val, int exactDenom){int num = (int)Math.round(val*exactDenom);return new SimpleFraction(num,exactDenom);}
| [
"public",
"static",
"SimpleFraction",
"buildFractionExactDenominator",
"(",
"double",
"val",
",",
"int",
"exactDenom",
")",
"{",
"int",
"num",
"=",
"(",
"int",
")",
"Math",
".",
"round",
"(",
"val",
"*",
"exactDenom",
")",
";",
"return",
"new",
"SimpleFracti... | public static SimpleFraction BuildFractionExactDenominator(double val, int exactDenom){int num = (int)Math.Round(val * (double)exactDenom, MidpointRounding.AwayFromZero);return new SimpleFraction(num, exactDenom);}
| train | false |
4,691 | public DescribeInsightRulesResult describeInsightRules(DescribeInsightRulesRequest request) {request = beforeClientExecution(request);return executeDescribeInsightRules(request);}
| [
"public",
"DescribeInsightRulesResult",
"describeInsightRules",
"(",
"DescribeInsightRulesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeInsightRules",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeInsightRulesResponse DescribeInsightRules(DescribeInsightRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInsightRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInsightRulesResponseUnmarshaller.Instance;return Invoke<DescribeInsigh... | train | false |
4,692 | public ListMFADevicesRequest(String userName) {setUserName(userName);}
| [
"public",
"ListMFADevicesRequest",
"(",
"String",
"userName",
")",
"{",
"setUserName",
"(",
"userName",
")",
";",
"}"
] | public ListMFADevicesRequest(string userName){_userName = userName;}
| train | false |
4,693 | public void removeRow(RowRecord row) {int rowIndex = row.getRowNumber();_valuesAgg.removeAllCellsValuesForRow(rowIndex);Integer key = Integer.valueOf(rowIndex);RowRecord rr = _rowRecords.remove(key);if (rr == null) {throw new RuntimeException("Invalid row index (" + key.intValue() + ")");}if (row != rr) {_rowRecords.pu... | [
"public",
"void",
"removeRow",
"(",
"RowRecord",
"row",
")",
"{",
"int",
"rowIndex",
"=",
"row",
".",
"getRowNumber",
"(",
")",
";",
"_valuesAgg",
".",
"removeAllCellsValuesForRow",
"(",
"rowIndex",
")",
";",
"Integer",
"key",
"=",
"Integer",
".",
"valueOf",... | public void RemoveRow(RowRecord row){int rowIndex = row.RowNumber;_valuesAgg.RemoveAllCellsValuesForRow(rowIndex);int key = rowIndex;RowRecord rr = (RowRecord)_rowRecords[key];_rowRecords.Remove(key);if (rr == null){throw new Exception("Invalid row index (" + key + ")");}if (row != rr){_rowRecords[key] = rr;throw new E... | train | false |
4,694 | public DeleteRepositoryPolicyResult deleteRepositoryPolicy(DeleteRepositoryPolicyRequest request) {request = beforeClientExecution(request);return executeDeleteRepositoryPolicy(request);}
| [
"public",
"DeleteRepositoryPolicyResult",
"deleteRepositoryPolicy",
"(",
"DeleteRepositoryPolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteRepositoryPolicy",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteRepositoryPolicyResponse DeleteRepositoryPolicy(DeleteRepositoryPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRepositoryPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRepositoryPolicyResponseUnmarshaller.Instance;return Invoke<Dele... | train | true |
4,695 | public BackupRecord(RecordInputStream in) {field_1_backup = in.readShort();}
| [
"public",
"BackupRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_backup",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"}"
] | public BackupRecord(RecordInputStream in1){field_1_backup = in1.ReadShort();}
| train | false |
4,696 | public DiffCommand setNewTree(AbstractTreeIterator newTree) {this.newTree = newTree;return this;}
| [
"public",
"DiffCommand",
"setNewTree",
"(",
"AbstractTreeIterator",
"newTree",
")",
"{",
"this",
".",
"newTree",
"=",
"newTree",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Api.DiffCommand SetNewTree(AbstractTreeIterator newTree){this.newTree = newTree;return this;}
| train | false |
4,698 | public void execute(Lexer lexer) {action.execute(lexer);}
| [
"public",
"void",
"execute",
"(",
"Lexer",
"lexer",
")",
"{",
"action",
".",
"execute",
"(",
"lexer",
")",
";",
"}"
] | public void Execute(Lexer lexer){action.Execute(lexer);}
| train | false |
4,699 | public DeleteModelPackageResult deleteModelPackage(DeleteModelPackageRequest request) {request = beforeClientExecution(request);return executeDeleteModelPackage(request);}
| [
"public",
"DeleteModelPackageResult",
"deleteModelPackage",
"(",
"DeleteModelPackageRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteModelPackage",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteModelPackageResponse DeleteModelPackage(DeleteModelPackageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteModelPackageRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteModelPackageResponseUnmarshaller.Instance;return Invoke<DeleteModelPackageRespon... | train | true |
4,700 | public Object getValue() {return value;}
| [
"public",
"Object",
"getValue",
"(",
")",
"{",
"return",
"value",
";",
"}"
] | public virtual string getValue(){return mValue;}
| train | false |
4,701 | public void applyFont( short fontIndex ) {applyFont(0, _string.getCharCount(), fontIndex);}
| [
"public",
"void",
"applyFont",
"(",
"short",
"fontIndex",
")",
"{",
"applyFont",
"(",
"0",
",",
"_string",
".",
"getCharCount",
"(",
")",
",",
"fontIndex",
")",
";",
"}"
] | public void ApplyFont(short fontIndex){ApplyFont(0, _string.CharCount, fontIndex);}
| train | false |
4,702 | public SliceWriter(IntBlockPool pool) {this.pool = pool;}
| [
"public",
"SliceWriter",
"(",
"IntBlockPool",
"pool",
")",
"{",
"this",
".",
"pool",
"=",
"pool",
";",
"}"
] | public SliceWriter(Int32BlockPool pool){this.pool = pool;}
| train | false |
4,703 | public DisableVgwRoutePropagationResult disableVgwRoutePropagation(DisableVgwRoutePropagationRequest request) {request = beforeClientExecution(request);return executeDisableVgwRoutePropagation(request);}
| [
"public",
"DisableVgwRoutePropagationResult",
"disableVgwRoutePropagation",
"(",
"DisableVgwRoutePropagationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDisableVgwRoutePropagation",
"(",
"request",
")",
";... | public virtual DisableVgwRoutePropagationResponse DisableVgwRoutePropagation(DisableVgwRoutePropagationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableVgwRoutePropagationRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableVgwRoutePropagationResponseUnmarshaller.Instanc... | train | true |
4,704 | public String toString() {return getClass().getName() + " [" +_name.getNameText() +"]";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
"+",
"\" [\"",
"+",
"_name",
".",
"getNameText",
"(",
")",
"+",
"\"]\"",
";",
"}"
] | public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(" [");sb.Append(_name.NameText);sb.Append("]");return sb.ToString();}
| train | false |
4,705 | public AttachObjectResult attachObject(AttachObjectRequest request) {request = beforeClientExecution(request);return executeAttachObject(request);}
| [
"public",
"AttachObjectResult",
"attachObject",
"(",
"AttachObjectRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAttachObject",
"(",
"request",
")",
";",
"}"
] | public virtual AttachObjectResponse AttachObject(AttachObjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachObjectRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachObjectResponseUnmarshaller.Instance;return Invoke<AttachObjectResponse>(request, options);}
| train | true |
4,706 | public DBClusterParameterGroup copyDBClusterParameterGroup(CopyDBClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeCopyDBClusterParameterGroup(request);}
| [
"public",
"DBClusterParameterGroup",
"copyDBClusterParameterGroup",
"(",
"CopyDBClusterParameterGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCopyDBClusterParameterGroup",
"(",
"request",
")",
";",
"... | public virtual CopyDBClusterParameterGroupResponse CopyDBClusterParameterGroup(CopyDBClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopyDBClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CopyDBClusterParameterGroupResponseUnmarshaller.In... | train | true |
4,707 | public GetRoutesResult getRoutes(GetRoutesRequest request) {request = beforeClientExecution(request);return executeGetRoutes(request);}
| [
"public",
"GetRoutesResult",
"getRoutes",
"(",
"GetRoutesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetRoutes",
"(",
"request",
")",
";",
"}"
] | public virtual GetRoutesResponse GetRoutes(GetRoutesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRoutesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRoutesResponseUnmarshaller.Instance;return Invoke<GetRoutesResponse>(request, options);}
| train | true |
4,708 | public Entry<String, Ref> next() {if (hasNext()) {Entry<String, Ref> r = next;next = peek();return r;}throw new NoSuchElementException();}
| [
"public",
"Entry",
"<",
"String",
",",
"Ref",
">",
"next",
"(",
")",
"{",
"if",
"(",
"hasNext",
"(",
")",
")",
"{",
"Entry",
"<",
"String",
",",
"Ref",
">",
"r",
"=",
"next",
";",
"next",
"=",
"peek",
"(",
")",
";",
"return",
"r",
";",
"}",
... | public override KeyValuePair<string, Ref> Next(){if (this.HasNext()){Ent r = this.next;this.next = this.Peek();return r;}throw new NoSuchElementException();}
| train | false |
4,709 | public boolean containsKey(Object key) {return ((key instanceof Long && dictionary.containsKey(key)) || dictionary.containsValue(key));}
| [
"public",
"boolean",
"containsKey",
"(",
"Object",
"key",
")",
"{",
"return",
"(",
"(",
"key",
"instanceof",
"Long",
"&&",
"dictionary",
".",
"containsKey",
"(",
"key",
")",
")",
"||",
"dictionary",
".",
"containsValue",
"(",
"key",
")",
")",
";",
"}"
] | public override bool ContainsKey(Object key){if (key is long){return base.ContainsKey((long)key);}if (key is String){return base.ContainsKey((long)dictionaryNameToID[(key)]);}return false;}
| train | false |
4,710 | public UpdateNamespaceRequest() {super("cr", "2016-06-07", "UpdateNamespace", "cr");setUriPattern("/namespace/[Namespace]");setMethod(MethodType.POST);}
| [
"public",
"UpdateNamespaceRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"UpdateNamespace\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/namespace/[Namespace]\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
... | public UpdateNamespaceRequest(): base("cr", "2016-06-07", "UpdateNamespace", "cr", "openAPI"){UriPattern = "/namespace/[Namespace]";Method = MethodType.POST;}
| train | false |
4,711 | public ListNotebookInstancesResult listNotebookInstances(ListNotebookInstancesRequest request) {request = beforeClientExecution(request);return executeListNotebookInstances(request);}
| [
"public",
"ListNotebookInstancesResult",
"listNotebookInstances",
"(",
"ListNotebookInstancesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListNotebookInstances",
"(",
"request",
")",
";",
"}"
] | public virtual ListNotebookInstancesResponse ListNotebookInstances(ListNotebookInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListNotebookInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListNotebookInstancesResponseUnmarshaller.Instance;return Invoke<ListNoteb... | train | true |
4,713 | public DescribeGroupsResult describeGroups(DescribeGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeGroups(request);}
| [
"public",
"DescribeGroupsResult",
"describeGroups",
"(",
"DescribeGroupsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeGroups",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeGroupsResponse DescribeGroups(DescribeGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGroupsResponseUnmarshaller.Instance;return Invoke<DescribeGroupsResponse>(request, options);}
| train | true |
4,714 | public GetShippingLabelResult getShippingLabel(GetShippingLabelRequest request) {request = beforeClientExecution(request);return executeGetShippingLabel(request);}
| [
"public",
"GetShippingLabelResult",
"getShippingLabel",
"(",
"GetShippingLabelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetShippingLabel",
"(",
"request",
")",
";",
"}"
] | public virtual GetShippingLabelResponse GetShippingLabel(GetShippingLabelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetShippingLabelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetShippingLabelResponseUnmarshaller.Instance;return Invoke<GetShippingLabelResponse>(request,... | train | true |
4,715 | public MonitorInstancesRequest(java.util.List<String> instanceIds) {setInstanceIds(instanceIds);}
| [
"public",
"MonitorInstancesRequest",
"(",
"java",
".",
"util",
".",
"List",
"<",
"String",
">",
"instanceIds",
")",
"{",
"setInstanceIds",
"(",
"instanceIds",
")",
";",
"}"
] | public MonitorInstancesRequest(List<string> instanceIds){_instanceIds = instanceIds;}
| train | false |
4,716 | public AtomTransition(ATNState target, int label) {super(target);this.label = label;}
| [
"public",
"AtomTransition",
"(",
"ATNState",
"target",
",",
"int",
"label",
")",
"{",
"super",
"(",
"target",
")",
";",
"this",
".",
"label",
"=",
"label",
";",
"}"
] | public AtomTransition(ATNState target, int token): base(target){this.token = token;}
| train | false |
4,717 | public MulRKRecord(RecordInputStream in) {field_1_row = in.readUShort();field_2_first_col = in.readShort();field_3_rks = RkRec.parseRKs(in);field_4_last_col = in.readShort();}
| [
"public",
"MulRKRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_row",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"field_2_first_col",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_3_rks",
"=",
"RkRec",
".",
"parseRKs",
"(",
"in",
")",
... | public MulRKRecord(RecordInputStream in1){field_1_row = in1.ReadUShort();field_2_first_col = in1.ReadShort();field_3_rks = RkRec.ParseRKs(in1);field_4_last_col = in1.ReadShort();}
| train | false |
4,718 | public State complete() {if (this.stateRegistry == null) throw new IllegalStateException();if (root.hasChildren()) replaceOrRegister(root);stateRegistry = null;return root;}
| [
"public",
"State",
"complete",
"(",
")",
"{",
"if",
"(",
"this",
".",
"stateRegistry",
"==",
"null",
")",
"throw",
"new",
"IllegalStateException",
"(",
")",
";",
"if",
"(",
"root",
".",
"hasChildren",
"(",
")",
")",
"replaceOrRegister",
"(",
"root",
")",... | public State Complete(){if (this.stateRegistry == null){throw new InvalidOperationException();}if (root.HasChildren){ReplaceOrRegister(root);}stateRegistry = null;return root;}
| train | false |
4,719 | public DescribeWorkspaceDirectoriesResult describeWorkspaceDirectories(DescribeWorkspaceDirectoriesRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspaceDirectories(request);}
| [
"public",
"DescribeWorkspaceDirectoriesResult",
"describeWorkspaceDirectories",
"(",
"DescribeWorkspaceDirectoriesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeWorkspaceDirectories",
"(",
"request",
"... | public virtual DescribeWorkspaceDirectoriesResponse DescribeWorkspaceDirectories(DescribeWorkspaceDirectoriesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkspaceDirectoriesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkspaceDirectoriesResponseUnmarshall... | train | true |
4,720 | @Override public E remove(int index) {synchronized (CopyOnWriteArrayList.this) {slice.checkElementIndex(index);slice.checkConcurrentModification(elements);E removed = CopyOnWriteArrayList.this.remove(slice.from + index);slice = new Slice(elements, slice.from, slice.to - 1);return removed;}}
| [
"@",
"Override",
"public",
"E",
"remove",
"(",
"int",
"index",
")",
"{",
"synchronized",
"(",
"CopyOnWriteArrayList",
".",
"this",
")",
"{",
"slice",
".",
"checkElementIndex",
"(",
"index",
")",
";",
"slice",
".",
"checkConcurrentModification",
"(",
"elements"... | public virtual E remove(int index){lock (this){E removed = (E)elements[index];removeRange(index, index + 1);return removed;}}
| train | false |
4,721 | public StreamTokenizer(InputStream is) {this();if (is == null) {throw new NullPointerException();}inStream = is;}
| [
"public",
"StreamTokenizer",
"(",
"InputStream",
"is",
")",
"{",
"this",
"(",
")",
";",
"if",
"(",
"is",
"==",
"null",
")",
"{",
"throw",
"new",
"NullPointerException",
"(",
")",
";",
"}",
"inStream",
"=",
"is",
";",
"}"
] | public StreamTokenizer(java.io.InputStream @is){throw new System.NotImplementedException();}
| train | false |
4,722 | public ModifyVpcPeeringConnectionOptionsResult modifyVpcPeeringConnectionOptions(ModifyVpcPeeringConnectionOptionsRequest request) {request = beforeClientExecution(request);return executeModifyVpcPeeringConnectionOptions(request);}
| [
"public",
"ModifyVpcPeeringConnectionOptionsResult",
"modifyVpcPeeringConnectionOptions",
"(",
"ModifyVpcPeeringConnectionOptionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyVpcPeeringConnectionOptions",
"... | public virtual ModifyVpcPeeringConnectionOptionsResponse ModifyVpcPeeringConnectionOptions(ModifyVpcPeeringConnectionOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpcPeeringConnectionOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpcPeeringConnection... | train | true |
4,723 | public GetAppResult getApp(GetAppRequest request) {request = beforeClientExecution(request);return executeGetApp(request);}
| [
"public",
"GetAppResult",
"getApp",
"(",
"GetAppRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetApp",
"(",
"request",
")",
";",
"}"
] | public virtual GetAppResponse GetApp(GetAppRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAppRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAppResponseUnmarshaller.Instance;return Invoke<GetAppResponse>(request, options);}
| train | true |
4,724 | public void start(int totalTasks) {if (!isMainThread())throw new IllegalStateException();pm.start(totalTasks);}
| [
"public",
"void",
"start",
"(",
"int",
"totalTasks",
")",
"{",
"if",
"(",
"!",
"isMainThread",
"(",
")",
")",
"throw",
"new",
"IllegalStateException",
"(",
")",
";",
"pm",
".",
"start",
"(",
"totalTasks",
")",
";",
"}"
] | public override void Start(int totalTasks){if (!IsMainThread()){throw new InvalidOperationException();}pm.Start(totalTasks);}
| train | false |
4,725 | public ModifyFleetResult modifyFleet(ModifyFleetRequest request) {request = beforeClientExecution(request);return executeModifyFleet(request);}
| [
"public",
"ModifyFleetResult",
"modifyFleet",
"(",
"ModifyFleetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyFleet",
"(",
"request",
")",
";",
"}"
] | public virtual ModifyFleetResponse ModifyFleet(ModifyFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyFleetResponseUnmarshaller.Instance;return Invoke<ModifyFleetResponse>(request, options);}
| train | true |
4,726 | public UpdateFolderResult updateFolder(UpdateFolderRequest request) {request = beforeClientExecution(request);return executeUpdateFolder(request);}
| [
"public",
"UpdateFolderResult",
"updateFolder",
"(",
"UpdateFolderRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateFolder",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateFolderResponse UpdateFolder(UpdateFolderRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFolderRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFolderResponseUnmarshaller.Instance;return Invoke<UpdateFolderResponse>(request, options);}
| train | true |
4,727 | public CreateAppResult createApp(CreateAppRequest request) {request = beforeClientExecution(request);return executeCreateApp(request);}
| [
"public",
"CreateAppResult",
"createApp",
"(",
"CreateAppRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateApp",
"(",
"request",
")",
";",
"}"
] | public virtual CreateAppResponse CreateApp(CreateAppRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAppRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAppResponseUnmarshaller.Instance;return Invoke<CreateAppResponse>(request, options);}
| train | true |
4,728 | public static DVConstraint createDateConstraint(int comparisonOperator, String expr1, String expr2, String dateFormat) {if (expr1 == null) {throw new IllegalArgumentException("expr1 must be supplied");}OperatorType.validateSecondArg(comparisonOperator, expr2);SimpleDateFormat df = null;if (dateFormat != null) {df = new... | [
"public",
"static",
"DVConstraint",
"createDateConstraint",
"(",
"int",
"comparisonOperator",
",",
"String",
"expr1",
",",
"String",
"expr2",
",",
"String",
"dateFormat",
")",
"{",
"if",
"(",
"expr1",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentExcep... | public static DVConstraint CreateDateConstraint(int comparisonOperator, String expr1, String expr2, String dateFormat){if (expr1 == null){throw new ArgumentException("expr1 must be supplied");}OperatorType.ValidateSecondArg(comparisonOperator, expr2);SimpleDateFormat df = dateFormat == null ? null : new SimpleDateForma... | train | false |
4,729 | public final String toString() {return getClass().getName() + " [" + lookupName(_functionIndex) + " nArgs=" + _numberOfArgs + "]";}
| [
"public",
"final",
"String",
"toString",
"(",
")",
"{",
"return",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
"+",
"\" [\"",
"+",
"lookupName",
"(",
"_functionIndex",
")",
"+",
"\" nArgs=\"",
"+",
"_numberOfArgs",
"+",
"\"]\"",
";",
"}"
] | public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(" [");sb.Append(LookupName(_functionIndex));sb.Append(" nArgs=").Append(_numberOfArgs);sb.Append("]");return sb.ToString();}
| train | false |
4,730 | public ModifyDefaultCreditSpecificationResult modifyDefaultCreditSpecification(ModifyDefaultCreditSpecificationRequest request) {request = beforeClientExecution(request);return executeModifyDefaultCreditSpecification(request);}
| [
"public",
"ModifyDefaultCreditSpecificationResult",
"modifyDefaultCreditSpecification",
"(",
"ModifyDefaultCreditSpecificationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyDefaultCreditSpecification",
"(",
... | public virtual ModifyDefaultCreditSpecificationResponse ModifyDefaultCreditSpecification(ModifyDefaultCreditSpecificationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDefaultCreditSpecificationRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDefaultCreditSpecificati... | train | false |
4,731 | public Iterator<Note> iterator() {try {return root.iterator(new MutableObjectId(), reader);} catch (IOException e) {throw new RuntimeException(e);}}
| [
"public",
"Iterator",
"<",
"Note",
">",
"iterator",
"(",
")",
"{",
"try",
"{",
"return",
"root",
".",
"iterator",
"(",
"new",
"MutableObjectId",
"(",
")",
",",
"reader",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"throw",
"new",
"Runt... | public override Sharpen.Iterator<Note> Iterator(){try{return root.Iterator(new MutableObjectId(), reader);}catch (IOException e){throw new RuntimeException(e);}}
| train | false |
4,732 | public ObjectId idFor(TreeFormatter formatter) {return delegate().idFor(formatter);}
| [
"public",
"ObjectId",
"idFor",
"(",
"TreeFormatter",
"formatter",
")",
"{",
"return",
"delegate",
"(",
")",
".",
"idFor",
"(",
"formatter",
")",
";",
"}"
] | public virtual ObjectId IdFor(TreeFormatter formatter){return formatter.ComputeId(this);}
| train | false |
4,733 | public int getInputLength() {return this.inputLength;}
| [
"public",
"int",
"getInputLength",
"(",
")",
"{",
"return",
"this",
".",
"inputLength",
";",
"}"
] | public virtual int getInputLength(){return this.inputLength;}
| train | false |
4,734 | public void onInvalidated() {Log.d(TAG, mSrc + ": invalidated");}
| [
"public",
"void",
"onInvalidated",
"(",
")",
"{",
"Log",
".",
"d",
"(",
"TAG",
",",
"mSrc",
"+",
"\": invalidated\"",
")",
";",
"}"
] | public override void onInvalidated(){this._enclosing.refreshExpGroupMetadataList(true, true);this._enclosing.notifyDataSetInvalidated();}
| train | false |
4,735 | public TerminalNode addChild(Token matchedToken) {TerminalNodeImpl t = new TerminalNodeImpl(matchedToken);addAnyChild(t);t.setParent(this);return t;}
| [
"public",
"TerminalNode",
"addChild",
"(",
"Token",
"matchedToken",
")",
"{",
"TerminalNodeImpl",
"t",
"=",
"new",
"TerminalNodeImpl",
"(",
"matchedToken",
")",
";",
"addAnyChild",
"(",
"t",
")",
";",
"t",
".",
"setParent",
"(",
"this",
")",
";",
"return",
... | public virtual ITerminalNode AddChild(IToken matchedToken){TerminalNodeImpl t = new TerminalNodeImpl(matchedToken);AddChild(t);t.Parent = this;return t;}
| train | false |
4,736 | public boolean isUnknown() {return type == Type.UNKNOWN;}
| [
"public",
"boolean",
"isUnknown",
"(",
")",
"{",
"return",
"type",
"==",
"Type",
".",
"UNKNOWN",
";",
"}"
] | public virtual bool IsUnknown(){return type == JapaneseTokenizerType.UNKNOWN;}
| train | false |
4,737 | public boolean promptPassword(String msg) {CredentialItem.Password p = new CredentialItem.Password(msg);if (provider.get(uri, p)) {password = new String(p.getValue());return true;}password = null;return false;}
| [
"public",
"boolean",
"promptPassword",
"(",
"String",
"msg",
")",
"{",
"CredentialItem",
".",
"Password",
"p",
"=",
"new",
"CredentialItem",
".",
"Password",
"(",
"msg",
")",
";",
"if",
"(",
"provider",
".",
"get",
"(",
"uri",
",",
"p",
")",
")",
"{",
... | public virtual bool PromptPassword(string msg){CredentialItem.Password p = new CredentialItem.Password(msg);if (provider.Get(uri, p)){password = new string(p.GetValue());return true;}else{password = null;return false;}}
| train | false |
4,738 | public CreateTransitGatewayResult createTransitGateway(CreateTransitGatewayRequest request) {request = beforeClientExecution(request);return executeCreateTransitGateway(request);}
| [
"public",
"CreateTransitGatewayResult",
"createTransitGateway",
"(",
"CreateTransitGatewayRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateTransitGateway",
"(",
"request",
")",
";",
"}"
] | public virtual CreateTransitGatewayResponse CreateTransitGateway(CreateTransitGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitGatewayResponseUnmarshaller.Instance;return Invoke<CreateTransitG... | train | true |
4,739 | public CreateCampaignResult createCampaign(CreateCampaignRequest request) {request = beforeClientExecution(request);return executeCreateCampaign(request);}
| [
"public",
"CreateCampaignResult",
"createCampaign",
"(",
"CreateCampaignRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateCampaign",
"(",
"request",
")",
";",
"}"
] | public virtual CreateCampaignResponse CreateCampaign(CreateCampaignRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCampaignRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCampaignResponseUnmarshaller.Instance;return Invoke<CreateCampaignResponse>(request, options);}
| train | true |
4,740 | public ClientException(String errCode, String errMsg) {super(errCode + " : " + errMsg);this.errCode = errCode;this.errMsg = errMsg;this.setErrorType(ErrorType.Client);}
| [
"public",
"ClientException",
"(",
"String",
"errCode",
",",
"String",
"errMsg",
")",
"{",
"super",
"(",
"errCode",
"+",
"\" : \"",
"+",
"errMsg",
")",
";",
"this",
".",
"errCode",
"=",
"errCode",
";",
"this",
".",
"errMsg",
"=",
"errMsg",
";",
"this",
... | public ClientException(string errCode, string errMsg) : base(errCode + " : " + errMsg){ErrorCode = errCode;ErrorMessage = errMsg;ErrorType = ErrorType.Client;}
| train | false |
4,741 | public void removeConditionalFormatting(int index) {_conditionalFormattingTable.remove(index);}
| [
"public",
"void",
"removeConditionalFormatting",
"(",
"int",
"index",
")",
"{",
"_conditionalFormattingTable",
".",
"remove",
"(",
"index",
")",
";",
"}"
] | public void RemoveConditionalFormatting(int index){_conditionalFormattingTable.Remove(index);}
| train | false |
4,742 | public static void fill(float[] array, float value) {for (int i = 0; i < array.length; i++) {array[i] = value;}}
| [
"public",
"static",
"void",
"fill",
"(",
"float",
"[",
"]",
"array",
",",
"float",
"value",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"array",
".",
"length",
";",
"i",
"++",
")",
"{",
"array",
"[",
"i",
"]",
"=",
"value",
";"... | public static void fill(float[] array, float value){{for (int i = 0; i < array.Length; i++){array[i] = value;}}}
| train | true |
4,743 | public TokenStream create(TokenStream input) {return dictionary == null ? input : new StemmerOverrideFilter(input, dictionary);}
| [
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"dictionary",
"==",
"null",
"?",
"input",
":",
"new",
"StemmerOverrideFilter",
"(",
"input",
",",
"dictionary",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return dictionary == null ? input : new StemmerOverrideFilter(input, dictionary);}
| train | false |
4,744 | public ListS3ResourcesResult listS3Resources(ListS3ResourcesRequest request) {request = beforeClientExecution(request);return executeListS3Resources(request);}
| [
"public",
"ListS3ResourcesResult",
"listS3Resources",
"(",
"ListS3ResourcesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListS3Resources",
"(",
"request",
")",
";",
"}"
] | public virtual ListS3ResourcesResponse ListS3Resources(ListS3ResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListS3ResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListS3ResourcesResponseUnmarshaller.Instance;return Invoke<ListS3ResourcesResponse>(request, optio... | train | true |
4,745 | public String toString() {return new StringBuilder("'").appendCodePoint(from).append("'..'").appendCodePoint(to).append("'").toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"new",
"StringBuilder",
"(",
"\"'\"",
")",
".",
"appendCodePoint",
"(",
"from",
")",
".",
"append",
"(",
"\"'..'\"",
")",
".",
"appendCodePoint",
"(",
"to",
")",
".",
"append",
"(",
"\"'\"",
")",
... | public override string ToString(){return "'" + (char)from + "'..'" + (char)to + "'";}
| train | false |
4,747 | public CreatePresignedNotebookInstanceUrlResult createPresignedNotebookInstanceUrl(CreatePresignedNotebookInstanceUrlRequest request) {request = beforeClientExecution(request);return executeCreatePresignedNotebookInstanceUrl(request);}
| [
"public",
"CreatePresignedNotebookInstanceUrlResult",
"createPresignedNotebookInstanceUrl",
"(",
"CreatePresignedNotebookInstanceUrlRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreatePresignedNotebookInstanceUrl",... | public virtual CreatePresignedNotebookInstanceUrlResponse CreatePresignedNotebookInstanceUrl(CreatePresignedNotebookInstanceUrlRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePresignedNotebookInstanceUrlRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePresignedNoteboo... | train | true |
4,748 | public IterationRecord(RecordInputStream in) {_flags = in.readShort();}
| [
"public",
"IterationRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"_flags",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"}"
] | public IterationRecord(RecordInputStream in1){_flags = in1.ReadShort();}
| train | false |
4,749 | public CreateUserInfoRequest() {super("cr", "2016-06-07", "CreateUserInfo", "cr");setUriPattern("/users");setMethod(MethodType.PUT);}
| [
"public",
"CreateUserInfoRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"CreateUserInfo\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/users\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"PUT",
")",
";",
"}"
] | public CreateUserInfoRequest(): base("cr", "2016-06-07", "CreateUserInfo", "cr", "openAPI"){UriPattern = "/users";Method = MethodType.PUT;}
| train | false |
4,750 | public void notifyUpdatedBlankCell(BookSheetKey bsk, int rowIndex, int columnIndex, IEvaluationListener evaluationListener) {if (_usedBlankCellGroup != null) {if (_usedBlankCellGroup.containsCell(bsk, rowIndex, columnIndex)) {clearFormulaEntry();recurseClearCachedFormulaResults(evaluationListener);}}}
| [
"public",
"void",
"notifyUpdatedBlankCell",
"(",
"BookSheetKey",
"bsk",
",",
"int",
"rowIndex",
",",
"int",
"columnIndex",
",",
"IEvaluationListener",
"evaluationListener",
")",
"{",
"if",
"(",
"_usedBlankCellGroup",
"!=",
"null",
")",
"{",
"if",
"(",
"_usedBlankC... | public void NotifyUpdatedBlankCell(BookSheetKey bsk, int rowIndex, int columnIndex, IEvaluationListener evaluationListener){if (_usedBlankCellGroup != null){if (_usedBlankCellGroup.ContainsCell(bsk, rowIndex, columnIndex)){ClearFormulaEntry();RecurseClearCachedFormulaResults(evaluationListener);}}}
| train | false |
4,751 | public IntervalSet addAll(IntSet set) {if ( set==null ) {return this;}if (set instanceof IntervalSet) {IntervalSet other = (IntervalSet)set;int n = other.intervals.size();for (int i = 0; i < n; i++) {Interval I = other.intervals.get(i);this.add(I.a,I.b);}}else {for (int value : set.toList()) {add(value);}}return this;}... | [
"public",
"IntervalSet",
"addAll",
"(",
"IntSet",
"set",
")",
"{",
"if",
"(",
"set",
"==",
"null",
")",
"{",
"return",
"this",
";",
"}",
"if",
"(",
"set",
"instanceof",
"IntervalSet",
")",
"{",
"IntervalSet",
"other",
"=",
"(",
"IntervalSet",
")",
"set... | public virtual Antlr4.Runtime.Misc.IntervalSet AddAll(IIntSet set){if (set == null){return this;}if (set is Antlr4.Runtime.Misc.IntervalSet){Antlr4.Runtime.Misc.IntervalSet other = (Antlr4.Runtime.Misc.IntervalSet)set;int n = other.intervals.Count;for (int i = 0; i < n; i++){Interval I = other.intervals[i];this.Add(I.a... | train | false |
4,752 | public OpenStringBuilder(char[] arr, int len) {set(arr, len);}
| [
"public",
"OpenStringBuilder",
"(",
"char",
"[",
"]",
"arr",
",",
"int",
"len",
")",
"{",
"set",
"(",
"arr",
",",
"len",
")",
";",
"}"
] | public OpenStringBuilder(char[] arr, int len){Set(arr, len);}
| train | false |
4,753 | public boolean isRefLogIncludingResult() {return refLogIncludeResult;}
| [
"public",
"boolean",
"isRefLogIncludingResult",
"(",
")",
"{",
"return",
"refLogIncludeResult",
";",
"}"
] | public virtual bool IsRefLogIncludingResult(){return refLogIncludeResult;}
| train | false |
4,754 | public HeaderFooterRecord(byte[] data) {_rawData = data;}
| [
"public",
"HeaderFooterRecord",
"(",
"byte",
"[",
"]",
"data",
")",
"{",
"_rawData",
"=",
"data",
";",
"}"
] | public HeaderFooterRecord(byte[] data){_rawData = data;}
| train | false |
4,755 | public byte[] getPath(){return Arrays.copyOf(path, path.length);}
| [
"public",
"byte",
"[",
"]",
"getPath",
"(",
")",
"{",
"return",
"Arrays",
".",
"copyOf",
"(",
"path",
",",
"path",
".",
"length",
")",
";",
"}"
] | public byte[] GetPath(){return Arrays.CopyOf(path, path.Length);}
| train | false |
4,756 | public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[REFMODE]\n");buffer.append(" .mode = ").append(Integer.toHexString(getMode())).append("\n");buffer.append("[/REFMODE]\n");return buffer.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[REFMODE]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .mode = \"",
")",
".",
"append",
... | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[REFMODE]\n");buffer.Append(" .mode = ").Append(StringUtil.ToHexString(Mode)).Append("\n");buffer.Append("[/REFMODE]\n");return buffer.ToString();}
| train | false |
4,757 | public HSSFChildAnchor() {_escherChildAnchor = new EscherChildAnchorRecord();}
| [
"public",
"HSSFChildAnchor",
"(",
")",
"{",
"_escherChildAnchor",
"=",
"new",
"EscherChildAnchorRecord",
"(",
")",
";",
"}"
] | public HSSFChildAnchor(){_escherChildAnchor = new EscherChildAnchorRecord();}
| train | false |
4,758 | public final boolean isRegistered() {return !canonicalName.startsWith("x-") && !canonicalName.startsWith("X-");}
| [
"public",
"final",
"boolean",
"isRegistered",
"(",
")",
"{",
"return",
"!",
"canonicalName",
".",
"startsWith",
"(",
"\"x-\"",
")",
"&&",
"!",
"canonicalName",
".",
"startsWith",
"(",
"\"X-\"",
")",
";",
"}"
] | public bool isRegistered(){return !canonicalName.StartsWith("x-") && !canonicalName.StartsWith("X-");}
| train | false |
4,759 | @Override public boolean remove(Object o) {if (containsKey(o)) {unfiltered.remove(o);return true;}return false;}
| [
"@",
"Override",
"public",
"boolean",
"remove",
"(",
"Object",
"o",
")",
"{",
"if",
"(",
"containsKey",
"(",
"o",
")",
")",
"{",
"unfiltered",
".",
"remove",
"(",
"o",
")",
";",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}"
] | public override bool remove(object o){lock (this._enclosing){int oldSize = this._enclosing._size;this._enclosing.remove(o);return this._enclosing._size != oldSize;}}
| train | false |
4,761 | public float overheadPerValue(int bitsPerValue) {assert isSupported(bitsPerValue);final int valuesPerBlock = 64 / bitsPerValue;final int overhead = 64 % bitsPerValue;return (float) overhead / valuesPerBlock;}
| [
"public",
"float",
"overheadPerValue",
"(",
"int",
"bitsPerValue",
")",
"{",
"assert",
"isSupported",
"(",
"bitsPerValue",
")",
";",
"final",
"int",
"valuesPerBlock",
"=",
"64",
"/",
"bitsPerValue",
";",
"final",
"int",
"overhead",
"=",
"64",
"%",
"bitsPerValu... | public virtual float OverheadPerValue(int bitsPerValue){Debug.Assert(IsSupported(bitsPerValue));return 0f;}
| train | false |
4,762 | public void clear() {backingMap.clear();}
| [
"public",
"void",
"clear",
"(",
")",
"{",
"backingMap",
".",
"clear",
"(",
")",
";",
"}"
] | public override void clear(){backingMap.clear();}
| train | false |
4,763 | public CompoundException(Collection<Throwable> why) {super(format(why));causeList = Collections.unmodifiableList(new ArrayList<>(why));}
| [
"public",
"CompoundException",
"(",
"Collection",
"<",
"Throwable",
">",
"why",
")",
"{",
"super",
"(",
"format",
"(",
"why",
")",
")",
";",
"causeList",
"=",
"Collections",
".",
"unmodifiableList",
"(",
"new",
"ArrayList",
"<",
">",
"(",
"why",
")",
")"... | public CompoundException(ICollection<Exception> why) : base(Format(why)){causeList = Sharpen.Collections.UnmodifiableList(new AList<Exception>(why));}
| train | false |
4,764 | public DeleteEnvironmentConfigurationRequest(String applicationName, String environmentName) {setApplicationName(applicationName);setEnvironmentName(environmentName);}
| [
"public",
"DeleteEnvironmentConfigurationRequest",
"(",
"String",
"applicationName",
",",
"String",
"environmentName",
")",
"{",
"setApplicationName",
"(",
"applicationName",
")",
";",
"setEnvironmentName",
"(",
"environmentName",
")",
";",
"}"
] | public DeleteEnvironmentConfigurationRequest(string applicationName, string environmentName){_applicationName = applicationName;_environmentName = environmentName;}
| train | false |
4,765 | public ModifyImageAttributeRequest(String imageId, String attribute) {setImageId(imageId);setAttribute(attribute);}
| [
"public",
"ModifyImageAttributeRequest",
"(",
"String",
"imageId",
",",
"String",
"attribute",
")",
"{",
"setImageId",
"(",
"imageId",
")",
";",
"setAttribute",
"(",
"attribute",
")",
";",
"}"
] | public ModifyImageAttributeRequest(string imageId, string attribute){_imageId = imageId;_attribute = attribute;}
| train | false |
4,766 | public LastCellOfRowDummyRecord(int row, int lastColumnNumber) {this.row = row;this.lastColumnNumber = lastColumnNumber;}
| [
"public",
"LastCellOfRowDummyRecord",
"(",
"int",
"row",
",",
"int",
"lastColumnNumber",
")",
"{",
"this",
".",
"row",
"=",
"row",
";",
"this",
".",
"lastColumnNumber",
"=",
"lastColumnNumber",
";",
"}"
] | public LastCellOfRowDummyRecord(int row, int lastColumnNumber){this.row = row;this.lastColumnNumber = lastColumnNumber;}
| train | false |
4,767 | public String toString() {return path.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"path",
".",
"toString",
"(",
")",
";",
"}"
] | public override string ToString(){return path.ToString();}
| train | false |
4,769 | public void abort() {try {reset();} finally {if (nextTermsHash != null) {nextTermsHash.abort();}}}
| [
"public",
"void",
"abort",
"(",
")",
"{",
"try",
"{",
"reset",
"(",
")",
";",
"}",
"finally",
"{",
"if",
"(",
"nextTermsHash",
"!=",
"null",
")",
"{",
"nextTermsHash",
".",
"abort",
"(",
")",
";",
"}",
"}",
"}"
] | public override void Abort(){Reset();try{consumer.Abort();}finally{if (nextTermsHash != null){nextTermsHash.Abort();}}}
| train | false |
4,770 | public CreateUsagePlanKeyResult createUsagePlanKey(CreateUsagePlanKeyRequest request) {request = beforeClientExecution(request);return executeCreateUsagePlanKey(request);}
| [
"public",
"CreateUsagePlanKeyResult",
"createUsagePlanKey",
"(",
"CreateUsagePlanKeyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateUsagePlanKey",
"(",
"request",
")",
";",
"}"
] | public virtual CreateUsagePlanKeyResponse CreateUsagePlanKey(CreateUsagePlanKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateUsagePlanKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateUsagePlanKeyResponseUnmarshaller.Instance;return Invoke<CreateUsagePlanKeyRespon... | train | true |
4,771 | public boolean isOutOfBounds(int lowValidIx, int highValidIx) {if(_offset < lowValidIx) {return true;}if(getLastIndex() > highValidIx) {return true;}return false;}
| [
"public",
"boolean",
"isOutOfBounds",
"(",
"int",
"lowValidIx",
",",
"int",
"highValidIx",
")",
"{",
"if",
"(",
"_offset",
"<",
"lowValidIx",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"getLastIndex",
"(",
")",
">",
"highValidIx",
")",
"{",
"return... | public bool IsOutOfBounds(int lowValidIx, int highValidIx){if (_offset < lowValidIx){return true;}if (LastIndex > highValidIx){return true;}return false;}
| train | false |
4,772 | public CherryPickStatus getStatus() {return status;}
| [
"public",
"CherryPickStatus",
"getStatus",
"(",
")",
"{",
"return",
"status",
";",
"}"
] | public virtual CherryPickResult.CherryPickStatus GetStatus(){return status;}
| train | false |
4,773 | public static String getRomanization(String s) {StringBuilder out = new StringBuilder();try {getRomanization(out, s);} catch (IOException bogus) {throw new RuntimeException(bogus);}return out.toString();}
| [
"public",
"static",
"String",
"getRomanization",
"(",
"String",
"s",
")",
"{",
"StringBuilder",
"out",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"try",
"{",
"getRomanization",
"(",
"out",
",",
"s",
")",
";",
"}",
"catch",
"(",
"IOException",
"bogus",
"... | public static string GetRomanization(string s){StringBuilder result = new StringBuilder();try{GetRomanization(result, s);}catch (IOException bogus){throw new Exception(bogus.ToString(), bogus);}return result.ToString();}
| train | false |
4,774 | public GetDistributionRequest(String id) {setId(id);}
| [
"public",
"GetDistributionRequest",
"(",
"String",
"id",
")",
"{",
"setId",
"(",
"id",
")",
";",
"}"
] | public GetDistributionRequest(string id){_id = id;}
| train | false |
4,775 | public String signString(String stringToSign, String accessKeySecret) {return null;}
| [
"public",
"String",
"signString",
"(",
"String",
"stringToSign",
",",
"String",
"accessKeySecret",
")",
"{",
"return",
"null",
";",
"}"
] | public override string SignString(string stringToSign, string accessKeySecret){return "";}
| train | false |
4,776 | public Repository open(C req, String name)throws RepositoryNotFoundException, ServiceNotEnabledException {if (isUnreasonableName(name))throw new RepositoryNotFoundException(name);Repository db = exports.get(nameWithDotGit(name));if (db != null) {db.incrementOpen();return db;}for (File base : exportBase) {File dir = Fil... | [
"public",
"Repository",
"open",
"(",
"C",
"req",
",",
"String",
"name",
")",
"throws",
"RepositoryNotFoundException",
",",
"ServiceNotEnabledException",
"{",
"if",
"(",
"isUnreasonableName",
"(",
"name",
")",
")",
"throw",
"new",
"RepositoryNotFoundException",
"(",
... | public override Repository Open(C req, string name){if (IsUnreasonableName(name)){throw new RepositoryNotFoundException(name);}Repository db = exports.Get(NameWithDotGit(name));if (db != null){db.IncrementOpen();return db;}foreach (FilePath @base in exportBase){FilePath dir = RepositoryCache.FileKey.Resolve(new FilePat... | train | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.