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 |
|---|---|---|---|---|---|
6,267 | public FormulaRecordAggregate createFormula(int row, int col) {FormulaRecord fr = new FormulaRecord();fr.setRow(row);fr.setColumn((short) col);return new FormulaRecordAggregate(fr, null, _sharedValueManager);}
| [
"public",
"FormulaRecordAggregate",
"createFormula",
"(",
"int",
"row",
",",
"int",
"col",
")",
"{",
"FormulaRecord",
"fr",
"=",
"new",
"FormulaRecord",
"(",
")",
";",
"fr",
".",
"setRow",
"(",
"row",
")",
";",
"fr",
".",
"setColumn",
"(",
"(",
"short",
... | public FormulaRecordAggregate CreateFormula(int row, int col){FormulaRecord fr = new FormulaRecord();fr.Row=(row);fr.Column=((short)col);return new FormulaRecordAggregate(fr, null, _sharedValueManager);}
| train | false |
6,268 | public DetectSyntaxResult detectSyntax(DetectSyntaxRequest request) {request = beforeClientExecution(request);return executeDetectSyntax(request);}
| [
"public",
"DetectSyntaxResult",
"detectSyntax",
"(",
"DetectSyntaxRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDetectSyntax",
"(",
"request",
")",
";",
"}"
] | public virtual DetectSyntaxResponse DetectSyntax(DetectSyntaxRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectSyntaxRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectSyntaxResponseUnmarshaller.Instance;return Invoke<DetectSyntaxResponse>(request, options);}
| train | true |
6,269 | public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) { if (args.length < 2 || args.length > 3) {return ErrorEval.VALUE_INVALID;}int srcCellRow = ec.getRowIndex();int srcCellCol = ec.getColumnIndex();double start, end;double[] holidays;try {start = this.evaluator.evaluateDateArg(args[0], srcCellRow... | [
"public",
"ValueEval",
"evaluate",
"(",
"ValueEval",
"[",
"]",
"args",
",",
"OperationEvaluationContext",
"ec",
")",
"{",
"if",
"(",
"args",
".",
"length",
"<",
"2",
"||",
"args",
".",
"length",
">",
"3",
")",
"{",
"return",
"ErrorEval",
".",
"VALUE_INVA... | public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){if (args.Length < 2 || args.Length > 3){return ErrorEval.VALUE_INVALID;}int srcCellRow = ec.RowIndex;int srcCellCol = ec.ColumnIndex;double start, end;double[] holidays;try{start = this.evaluator.EvaluateDateArg(args[0], srcCellRow, srcCellCol);... | train | false |
6,270 | public HSSFDataValidationHelper(HSSFSheet sheet) {super();}
| [
"public",
"HSSFDataValidationHelper",
"(",
"HSSFSheet",
"sheet",
")",
"{",
"super",
"(",
")",
";",
"}"
] | public HSSFDataValidationHelper(HSSFSheet sheet): base(){this.sheet = sheet;}
| train | false |
6,271 | public SyncFacePicturesRequest() {super("LinkFace", "2018-07-20", "SyncFacePictures");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
| [
"public",
"SyncFacePicturesRequest",
"(",
")",
"{",
"super",
"(",
"\"LinkFace\"",
",",
"\"2018-07-20\"",
",",
"\"SyncFacePictures\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"... | public SyncFacePicturesRequest(): base("LinkFace", "2018-07-20", "SyncFacePictures"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
| train | false |
6,272 | public static String shortToHex(int value) {StringBuilder sb = new StringBuilder(6);writeHex(sb, value & 0xFFFFL, 4, "0x");return sb.toString();}
| [
"public",
"static",
"String",
"shortToHex",
"(",
"int",
"value",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
"6",
")",
";",
"writeHex",
"(",
"sb",
",",
"value",
"&",
"0xFFFFL",
",",
"4",
",",
"\"0x\"",
")",
";",
"return",
"sb",
... | public static char[] ShortToHex(int value){return ToHexChars(value, 2);}
| train | false |
6,273 | public String toString() {switch (state) {case SET:return key;case UNSET:return "-" + key; case UNSPECIFIED:return "!" + key; case CUSTOM:default:return key + "=" + value; }}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"switch",
"(",
"state",
")",
"{",
"case",
"SET",
":",
"return",
"key",
";",
"case",
"UNSET",
":",
"return",
"\"-\"",
"+",
"key",
";",
"case",
"UNSPECIFIED",
":",
"return",
"\"!\"",
"+",
"key",
";",
"case... | public override string ToString(){return "PackWriter.State[" + this.phase + ", memory=" + this.bytesUsed + "]";}
| train | false |
6,274 | public void seek(int index) {lazyInit();p = adjustSeekIndex(index);}
| [
"public",
"void",
"seek",
"(",
"int",
"index",
")",
"{",
"lazyInit",
"(",
")",
";",
"p",
"=",
"adjustSeekIndex",
"(",
"index",
")",
";",
"}"
] | public virtual void Seek(int index){LazyInit();p = AdjustSeekIndex(index);}
| train | false |
6,275 | public CreateTransitGatewayPeeringAttachmentResult createTransitGatewayPeeringAttachment(CreateTransitGatewayPeeringAttachmentRequest request) {request = beforeClientExecution(request);return executeCreateTransitGatewayPeeringAttachment(request);}
| [
"public",
"CreateTransitGatewayPeeringAttachmentResult",
"createTransitGatewayPeeringAttachment",
"(",
"CreateTransitGatewayPeeringAttachmentRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateTransitGatewayPeering... | public virtual CreateTransitGatewayPeeringAttachmentResponse CreateTransitGatewayPeeringAttachment(CreateTransitGatewayPeeringAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitGatewayPeeringAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTran... | train | false |
6,276 | public static BytesRef deepCopyOf(BytesRef other) {return new BytesRef(ArrayUtil.copyOfSubArray(other.bytes, other.offset, other.offset + other.length), 0, other.length);}
| [
"public",
"static",
"BytesRef",
"deepCopyOf",
"(",
"BytesRef",
"other",
")",
"{",
"return",
"new",
"BytesRef",
"(",
"ArrayUtil",
".",
"copyOfSubArray",
"(",
"other",
".",
"bytes",
",",
"other",
".",
"offset",
",",
"other",
".",
"offset",
"+",
"other",
".",... | public static BytesRef DeepCopyOf(BytesRef other){BytesRef copy = new BytesRef();copy.CopyBytes(other);return copy;}
| train | false |
6,277 | public TokenCollector(int tokenCount) {_ptgs = new Ptg[tokenCount];_offset = 0;}
| [
"public",
"TokenCollector",
"(",
"int",
"tokenCount",
")",
"{",
"_ptgs",
"=",
"new",
"Ptg",
"[",
"tokenCount",
"]",
";",
"_offset",
"=",
"0",
";",
"}"
] | public TokenCollector(int tokenCount){_ptgs = new Ptg[tokenCount];_offset = 0;}
| train | false |
6,278 | public static String[] tokenize( String format ) {List<String> result = new ArrayList<>();DateFormatTokenizer tokenizer = new DateFormatTokenizer(format);String token;while( ( token = tokenizer.getNextToken() ) != null ) {result.add(token);}return result.toArray(new String[0]);}
| [
"public",
"static",
"String",
"[",
"]",
"tokenize",
"(",
"String",
"format",
")",
"{",
"List",
"<",
"String",
">",
"result",
"=",
"new",
"ArrayList",
"<",
">",
"(",
")",
";",
"DateFormatTokenizer",
"tokenizer",
"=",
"new",
"DateFormatTokenizer",
"(",
"form... | public static string[] Tokenize(string format){List<string> result = new List<string>();DateFormatTokenizer tokenizer = new DateFormatTokenizer(format);string token;while ((token = tokenizer.GetNextToken()) != null){result.Add(token);}return result.ToArray();}
| train | false |
6,279 | public DescribeNatGatewaysResult describeNatGateways(DescribeNatGatewaysRequest request) {request = beforeClientExecution(request);return executeDescribeNatGateways(request);}
| [
"public",
"DescribeNatGatewaysResult",
"describeNatGateways",
"(",
"DescribeNatGatewaysRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeNatGateways",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeNatGatewaysResponse DescribeNatGateways(DescribeNatGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNatGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNatGatewaysResponseUnmarshaller.Instance;return Invoke<DescribeNatGateways... | train | true |
6,280 | public ResetImageAttributeResult resetImageAttribute(ResetImageAttributeRequest request) {request = beforeClientExecution(request);return executeResetImageAttribute(request);}
| [
"public",
"ResetImageAttributeResult",
"resetImageAttribute",
"(",
"ResetImageAttributeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeResetImageAttribute",
"(",
"request",
")",
";",
"}"
] | public virtual ResetImageAttributeResponse ResetImageAttribute(ResetImageAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetImageAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetImageAttributeResponseUnmarshaller.Instance;return Invoke<ResetImageAttribute... | train | true |
6,281 | public void setHorizontalBorder(boolean value){field_1_options = horizontalBorder.setShortBoolean(field_1_options, value);}
| [
"public",
"void",
"setHorizontalBorder",
"(",
"boolean",
"value",
")",
"{",
"field_1_options",
"=",
"horizontalBorder",
".",
"setShortBoolean",
"(",
"field_1_options",
",",
"value",
")",
";",
"}"
] | public void SetHorizontalBorder(bool value){field_1_options = horizontalBorder.SetShortBoolean(field_1_options, value);}
| train | false |
6,282 | public ReplicationGroup modifyReplicationGroup(ModifyReplicationGroupRequest request) {request = beforeClientExecution(request);return executeModifyReplicationGroup(request);}
| [
"public",
"ReplicationGroup",
"modifyReplicationGroup",
"(",
"ModifyReplicationGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyReplicationGroup",
"(",
"request",
")",
";",
"}"
] | public virtual ModifyReplicationGroupResponse ModifyReplicationGroup(ModifyReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyReplicationGroupResponseUnmarshaller.Instance;return Invoke<Modi... | train | true |
6,284 | public GetIntegrationsResult getIntegrations(GetIntegrationsRequest request) {request = beforeClientExecution(request);return executeGetIntegrations(request);}
| [
"public",
"GetIntegrationsResult",
"getIntegrations",
"(",
"GetIntegrationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetIntegrations",
"(",
"request",
")",
";",
"}"
] | public virtual GetIntegrationsResponse GetIntegrations(GetIntegrationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIntegrationsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIntegrationsResponseUnmarshaller.Instance;return Invoke<GetIntegrationsResponse>(request, optio... | train | true |
6,285 | public LabelRecord(RecordInputStream in) {field_1_row = in.readUShort();field_2_column = in.readShort();field_3_xf_index = in.readShort();field_4_string_len = in.readShort();field_5_unicode_flag = in.readByte();if (field_4_string_len > 0) {if (isUnCompressedUnicode()) {field_6_value = in.readUnicod... | [
"public",
"LabelRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_row",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"field_2_column",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_3_xf_index",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"... | public LabelRecord(RecordInputStream in1){field_1_row = in1.ReadUShort();field_2_column = in1.ReadUShort();field_3_xf_index = in1.ReadShort();field_4_string_len = in1.ReadShort();field_5_unicode_flag = (byte)in1.ReadByte();if (field_4_string_len > 0){if (IsUncompressedUnicode){field_6_value = in1.ReadUnicodeLEString(fi... | train | false |
6,286 | public SubmoduleAddCommand setProgressMonitor(ProgressMonitor monitor) {this.monitor = monitor;return this;}
| [
"public",
"SubmoduleAddCommand",
"setProgressMonitor",
"(",
"ProgressMonitor",
"monitor",
")",
"{",
"this",
".",
"monitor",
"=",
"monitor",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Api.SubmoduleAddCommand SetProgressMonitor(ProgressMonitor monitor){this.monitor = monitor;return this;}
| train | false |
6,287 | public byte readByte() {if (currentBlockUpto == blockSize) {nextBlock();}return currentBlock[currentBlockUpto++];}
| [
"public",
"byte",
"readByte",
"(",
")",
"{",
"if",
"(",
"currentBlockUpto",
"==",
"blockSize",
")",
"{",
"nextBlock",
"(",
")",
";",
"}",
"return",
"currentBlock",
"[",
"currentBlockUpto",
"++",
"]",
";",
"}"
] | public override byte ReadByte(){if (currentBlockUpto == outerInstance.blockSize){NextBlock();}return (byte)currentBlock[currentBlockUpto++];}
| train | false |
6,288 | public TestAlarmResult testAlarm(TestAlarmRequest request) {request = beforeClientExecution(request);return executeTestAlarm(request);}
| [
"public",
"TestAlarmResult",
"testAlarm",
"(",
"TestAlarmRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeTestAlarm",
"(",
"request",
")",
";",
"}"
] | public virtual TestAlarmResponse TestAlarm(TestAlarmRequest request){var options = new InvokeOptions();options.RequestMarshaller = TestAlarmRequestMarshaller.Instance;options.ResponseUnmarshaller = TestAlarmResponseUnmarshaller.Instance;return Invoke<TestAlarmResponse>(request, options);}
| train | false |
6,289 | public void clear() {HashMap.this.clear();}
| [
"public",
"void",
"clear",
"(",
")",
"{",
"HashMap",
".",
"this",
".",
"clear",
"(",
")",
";",
"}"
] | public override void clear(){this._enclosing.clear();}
| train | false |
6,290 | public void visitContainedRecords(RecordVisitor rv) {int nRegions = _mergedRegions.size();if (nRegions < 1) {return;}int nFullMergedCellsRecords = nRegions / MAX_MERGED_REGIONS;int nLeftoverMergedRegions = nRegions % MAX_MERGED_REGIONS;CellRangeAddress[] cras = new CellRangeAddress[nRegions];_mergedRegions.toArray(cras... | [
"public",
"void",
"visitContainedRecords",
"(",
"RecordVisitor",
"rv",
")",
"{",
"int",
"nRegions",
"=",
"_mergedRegions",
".",
"size",
"(",
")",
";",
"if",
"(",
"nRegions",
"<",
"1",
")",
"{",
"return",
";",
"}",
"int",
"nFullMergedCellsRecords",
"=",
"nR... | public override void VisitContainedRecords(RecordVisitor rv){int nRegions = _mergedRegions.Count;if (nRegions < 1){return;}int nFullMergedCellsRecords = nRegions / MAX_MERGED_REGIONS;int nLeftoverMergedRegions = nRegions % MAX_MERGED_REGIONS;CellRangeAddress[] cras = (CellRangeAddress[])_mergedRegions.ToArray();for (in... | train | false |
6,291 | public CharArrayWriter() {buf = new char[32];lock = buf;}
| [
"public",
"CharArrayWriter",
"(",
")",
"{",
"buf",
"=",
"new",
"char",
"[",
"32",
"]",
";",
"lock",
"=",
"buf",
";",
"}"
] | public CharArrayWriter(){buf = new char[32];@lock = buf;}
| train | false |
6,292 | public SendEmailRequest(String source, Destination destination, Message message) {setSource(source);setDestination(destination);setMessage(message);}
| [
"public",
"SendEmailRequest",
"(",
"String",
"source",
",",
"Destination",
"destination",
",",
"Message",
"message",
")",
"{",
"setSource",
"(",
"source",
")",
";",
"setDestination",
"(",
"destination",
")",
";",
"setMessage",
"(",
"message",
")",
";",
"}"
] | public SendEmailRequest(string source, Destination destination, Message message){_source = source;_destination = destination;_message = message;}
| train | false |
6,293 | public DescribeReservedNodesResult describeReservedNodes() {return describeReservedNodes(new DescribeReservedNodesRequest());}
| [
"public",
"DescribeReservedNodesResult",
"describeReservedNodes",
"(",
")",
"{",
"return",
"describeReservedNodes",
"(",
"new",
"DescribeReservedNodesRequest",
"(",
")",
")",
";",
"}"
] | public virtual DescribeReservedNodesResponse DescribeReservedNodes(){return DescribeReservedNodes(new DescribeReservedNodesRequest());}
| train | false |
6,295 | public String getSignerType() {return "PRIVATEKEY";}
| [
"public",
"String",
"getSignerType",
"(",
")",
"{",
"return",
"\"PRIVATEKEY\"",
";",
"}"
] | public override string GetSignerType(){return "PRIVATEKEY";}
| train | false |
6,296 | public StopProjectVersionResult stopProjectVersion(StopProjectVersionRequest request) {request = beforeClientExecution(request);return executeStopProjectVersion(request);}
| [
"public",
"StopProjectVersionResult",
"stopProjectVersion",
"(",
"StopProjectVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStopProjectVersion",
"(",
"request",
")",
";",
"}"
] | public virtual StopProjectVersionResponse StopProjectVersion(StopProjectVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopProjectVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = StopProjectVersionResponseUnmarshaller.Instance;return Invoke<StopProjectVersionRespon... | train | false |
6,297 | public CacheCluster createCacheCluster(CreateCacheClusterRequest request) {request = beforeClientExecution(request);return executeCreateCacheCluster(request);}
| [
"public",
"CacheCluster",
"createCacheCluster",
"(",
"CreateCacheClusterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateCacheCluster",
"(",
"request",
")",
";",
"}"
] | public virtual CreateCacheClusterResponse CreateCacheCluster(CreateCacheClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCacheClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCacheClusterResponseUnmarshaller.Instance;return Invoke<CreateCacheClusterRespon... | train | true |
6,298 | public boolean equals(Object _other) {if ((_other instanceof LabelAndValue) == false) {return false;}LabelAndValue other = (LabelAndValue) _other;return label.equals(other.label) && value.equals(other.value);}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"_other",
")",
"{",
"if",
"(",
"(",
"_other",
"instanceof",
"LabelAndValue",
")",
"==",
"false",
")",
"{",
"return",
"false",
";",
"}",
"LabelAndValue",
"other",
"=",
"(",
"LabelAndValue",
")",
"_other",
";",
... | public override bool Equals(object other){if ((other is LabelAndValue) == false){return false;}LabelAndValue _other = (LabelAndValue)other;return Label.Equals(_other.Label, StringComparison.Ordinal) && Value.Equals(_other.Value);}
| train | false |
6,299 | public JobFlowInstancesDetail(String masterInstanceType, String slaveInstanceType, Integer instanceCount) {setMasterInstanceType(masterInstanceType);setSlaveInstanceType(slaveInstanceType);setInstanceCount(instanceCount);}
| [
"public",
"JobFlowInstancesDetail",
"(",
"String",
"masterInstanceType",
",",
"String",
"slaveInstanceType",
",",
"Integer",
"instanceCount",
")",
"{",
"setMasterInstanceType",
"(",
"masterInstanceType",
")",
";",
"setSlaveInstanceType",
"(",
"slaveInstanceType",
")",
";"... | public JobFlowInstancesDetail(string masterInstanceType, string slaveInstanceType, int instanceCount){_masterInstanceType = masterInstanceType;_slaveInstanceType = slaveInstanceType;_instanceCount = instanceCount;}
| train | false |
6,300 | public boolean stem() {r_mark_regions();limit_backward = cursor;cursor = limit;int v_2 = limit - cursor;r_attached_pronoun();cursor = limit - v_2;int v_3 = limit - cursor;lab0: {lab1: {int v_4 = limit - cursor;lab2: {if (!r_standard_suffix()){break lab2;}break lab1;}cursor = limit - v_4;if (!r_verb_suffix()){break lab0... | [
"public",
"boolean",
"stem",
"(",
")",
"{",
"r_mark_regions",
"(",
")",
";",
"limit_backward",
"=",
"cursor",
";",
"cursor",
"=",
"limit",
";",
"int",
"v_2",
"=",
"limit",
"-",
"cursor",
";",
"r_attached_pronoun",
"(",
")",
";",
"cursor",
"=",
"limit",
... | public override bool Stem(){int v_1;int v_2;int v_3;int v_4;int v_5;int v_6;v_1 = m_cursor;do{if (!r_mark_regions()){goto lab0;}} while (false);lab0:m_cursor = v_1;m_limit_backward = m_cursor; m_cursor = m_limit;v_2 = m_limit - m_cursor;do{if (!r_attached_pronoun()){goto lab1;}} while (false);lab1:m_cursor = m_limit - ... | train | false |
6,301 | public HSSFPictureData( EscherBlipRecord blip ){this.blip = blip;}
| [
"public",
"HSSFPictureData",
"(",
"EscherBlipRecord",
"blip",
")",
"{",
"this",
".",
"blip",
"=",
"blip",
";",
"}"
] | public HSSFPictureData(EscherBlipRecord blip){this.blip = blip;}
| train | false |
6,303 | public String[] list(FilenameFilter filter) {String[] filenames = list();if (filter == null || filenames == null) {return filenames;}List<String> result = new ArrayList<String>(filenames.length);for (String filename : filenames) {if (filter.accept(this, filename)) {result.add(filename);}}return result.toArray(new Strin... | [
"public",
"String",
"[",
"]",
"list",
"(",
"FilenameFilter",
"filter",
")",
"{",
"String",
"[",
"]",
"filenames",
"=",
"list",
"(",
")",
";",
"if",
"(",
"filter",
"==",
"null",
"||",
"filenames",
"==",
"null",
")",
"{",
"return",
"filenames",
";",
"}... | public string[] list(java.io.FilenameFilter filter){string[] filenames = list();if (filter == null || filenames == null){return filenames;}java.util.List<string> result = new java.util.ArrayList<string>(filenames.Length);foreach (string filename in filenames){if (filter.accept(this, filename)){result.add(filename);}}re... | train | true |
6,304 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1) {String arg;int index;try {arg = evaluateStringArg(arg0, srcRowIndex, srcColumnIndex);index = evaluateIntArg(arg1, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {return e.getErrorEval();}if(index < 0) {return Er... | [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"arg0",
",",
"ValueEval",
"arg1",
")",
"{",
"String",
"arg",
";",
"int",
"index",
";",
"try",
"{",
"arg",
"=",
"evaluateStringArg",
"(",
"arg0",
"... | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1){String arg;int index;try{arg = TextFunction.EvaluateStringArg(arg0, srcRowIndex, srcColumnIndex);index = TextFunction.EvaluateIntArg(arg1, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){return e.GetErrorE... | train | false |
6,305 | public void serialize(LittleEndianOutput out) {out.writeShort(sid);out.writeShort(reserved.length);out.write(reserved);}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"sid",
")",
";",
"out",
".",
"writeShort",
"(",
"reserved",
".",
"length",
")",
";",
"out",
".",
"write",
"(",
"reserved",
")",
";",
"}"
] | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(sid);out1.WriteShort(reserved.Length);out1.Write(reserved);}
| train | false |
6,306 | public HadoopJarStepConfig(String jar) {setJar(jar);}
| [
"public",
"HadoopJarStepConfig",
"(",
"String",
"jar",
")",
"{",
"setJar",
"(",
"jar",
")",
";",
"}"
] | public HadoopJarStepConfig(string jar){_jar = jar;}
| train | false |
6,307 | public CharArrayWriter append(char c) {write(c);return this;}
| [
"public",
"CharArrayWriter",
"append",
"(",
"char",
"c",
")",
"{",
"write",
"(",
"c",
")",
";",
"return",
"this",
";",
"}"
] | public override java.io.Writer append(char c){write(c);return this;}
| train | false |
6,308 | public GetChannelsResult getChannels(GetChannelsRequest request) {request = beforeClientExecution(request);return executeGetChannels(request);}
| [
"public",
"GetChannelsResult",
"getChannels",
"(",
"GetChannelsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetChannels",
"(",
"request",
")",
";",
"}"
] | public virtual GetChannelsResponse GetChannels(GetChannelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetChannelsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetChannelsResponseUnmarshaller.Instance;return Invoke<GetChannelsResponse>(request, options);}
| train | true |
6,309 | public File getParentFile() {String tempParent = getParent();if (tempParent == null) {return null;}return new File(tempParent);}
| [
"public",
"File",
"getParentFile",
"(",
")",
"{",
"String",
"tempParent",
"=",
"getParent",
"(",
")",
";",
"if",
"(",
"tempParent",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"new",
"File",
"(",
"tempParent",
")",
";",
"}"
] | public java.io.File getParentFile(){string tempParent = getParent();if (tempParent == null){return null;}return new java.io.File(tempParent);}
| train | true |
6,310 | public URI resolve(String relative) {return resolve(create(relative));}
| [
"public",
"URI",
"resolve",
"(",
"String",
"relative",
")",
"{",
"return",
"resolve",
"(",
"create",
"(",
"relative",
")",
")",
";",
"}"
] | public java.net.URI resolve(string relative){return resolve(create(relative));}
| train | false |
6,311 | public static IntervalSet of(int a, int b) {IntervalSet s = new IntervalSet();s.add(a,b);return s;}
| [
"public",
"static",
"IntervalSet",
"of",
"(",
"int",
"a",
",",
"int",
"b",
")",
"{",
"IntervalSet",
"s",
"=",
"new",
"IntervalSet",
"(",
")",
";",
"s",
".",
"add",
"(",
"a",
",",
"b",
")",
";",
"return",
"s",
";",
"}"
] | public static Antlr4.Runtime.Misc.IntervalSet Of(int a, int b){Antlr4.Runtime.Misc.IntervalSet s = new Antlr4.Runtime.Misc.IntervalSet();s.Add(a, b);return s;}
| train | false |
6,312 | public void setCompressionLevel(int level) {compressionLevel = level;}
| [
"public",
"void",
"setCompressionLevel",
"(",
"int",
"level",
")",
"{",
"compressionLevel",
"=",
"level",
";",
"}"
] | public virtual void SetCompressionLevel(int level){compressionLevel = level;}
| train | false |
6,313 | public void reset() {offset = 0;length = 0;lastTrailingHighSurrogate = 0;}
| [
"public",
"void",
"reset",
"(",
")",
"{",
"offset",
"=",
"0",
";",
"length",
"=",
"0",
";",
"lastTrailingHighSurrogate",
"=",
"0",
";",
"}"
] | public void Reset(){offset = 0;length = 0;lastTrailingHighSurrogate = (char)0;}
| train | false |
6,314 | public AttributeValue(String s) {setS(s);}
| [
"public",
"AttributeValue",
"(",
"String",
"s",
")",
"{",
"setS",
"(",
"s",
")",
";",
"}"
] | public AttributeValue(string s){_s = s;}
| train | false |
6,315 | public Token(int kind, String image){this.kind = kind;this.image = image;}
| [
"public",
"Token",
"(",
"int",
"kind",
",",
"String",
"image",
")",
"{",
"this",
".",
"kind",
"=",
"kind",
";",
"this",
".",
"image",
"=",
"image",
";",
"}"
] | public Token(int start, int end){CheckOffsets(start, end);startOffset = start;endOffset = end;}
| train | false |
6,316 | public XmlSerializer newSerializer() throws XmlPullParserException {if (serializerClasses == null) {throw new XmlPullParserException("Factory initialization incomplete - has not tried "+classNamesLocation);}if(serializerClasses.size() == 0) {throw new XmlPullParserException("No valid serializer classes found in "+class... | [
"public",
"XmlSerializer",
"newSerializer",
"(",
")",
"throws",
"XmlPullParserException",
"{",
"if",
"(",
"serializerClasses",
"==",
"null",
")",
"{",
"throw",
"new",
"XmlPullParserException",
"(",
"\"Factory initialization incomplete - has not tried \"",
"+",
"classNamesLo... | public virtual org.xmlpull.v1.XmlSerializer newSerializer(){if (serializerClasses == null){throw new org.xmlpull.v1.XmlPullParserException("Factory initialization incomplete - has not tried "+ classNamesLocation);}if (serializerClasses.size() == 0){throw new org.xmlpull.v1.XmlPullParserException("No valid serializer cl... | train | false |
6,317 | public UpdateDomainContactPrivacyResult updateDomainContactPrivacy(UpdateDomainContactPrivacyRequest request) {request = beforeClientExecution(request);return executeUpdateDomainContactPrivacy(request);}
| [
"public",
"UpdateDomainContactPrivacyResult",
"updateDomainContactPrivacy",
"(",
"UpdateDomainContactPrivacyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateDomainContactPrivacy",
"(",
"request",
")",
";... | public virtual UpdateDomainContactPrivacyResponse UpdateDomainContactPrivacy(UpdateDomainContactPrivacyRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDomainContactPrivacyRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDomainContactPrivacyResponseUnmarshaller.Instanc... | train | true |
6,318 | public String toString(String enc) throws UnsupportedEncodingException {return new String(buf, 0, count, enc);}
| [
"public",
"String",
"toString",
"(",
"String",
"enc",
")",
"throws",
"UnsupportedEncodingException",
"{",
"return",
"new",
"String",
"(",
"buf",
",",
"0",
",",
"count",
",",
"enc",
")",
";",
"}"
] | public virtual string toString(string enc){throw new System.NotImplementedException();}
| train | false |
6,319 | public DescribeStaleSecurityGroupsResult describeStaleSecurityGroups(DescribeStaleSecurityGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeStaleSecurityGroups(request);}
| [
"public",
"DescribeStaleSecurityGroupsResult",
"describeStaleSecurityGroups",
"(",
"DescribeStaleSecurityGroupsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeStaleSecurityGroups",
"(",
"request",
")",
... | public virtual DescribeStaleSecurityGroupsResponse DescribeStaleSecurityGroups(DescribeStaleSecurityGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStaleSecurityGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStaleSecurityGroupsResponseUnmarshaller.In... | train | true |
6,320 | public DisassociateWebsiteCertificateAuthorityResult disassociateWebsiteCertificateAuthority(DisassociateWebsiteCertificateAuthorityRequest request) {request = beforeClientExecution(request);return executeDisassociateWebsiteCertificateAuthority(request);}
| [
"public",
"DisassociateWebsiteCertificateAuthorityResult",
"disassociateWebsiteCertificateAuthority",
"(",
"DisassociateWebsiteCertificateAuthorityRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDisassociateWebsiteCe... | public virtual DisassociateWebsiteCertificateAuthorityResponse DisassociateWebsiteCertificateAuthority(DisassociateWebsiteCertificateAuthorityRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateWebsiteCertificateAuthorityRequestMarshaller.Instance;options.ResponseUnmarshaller = Di... | train | true |
6,321 | public DeleteTransitGatewayVpcAttachmentResult deleteTransitGatewayVpcAttachment(DeleteTransitGatewayVpcAttachmentRequest request) {request = beforeClientExecution(request);return executeDeleteTransitGatewayVpcAttachment(request);}
| [
"public",
"DeleteTransitGatewayVpcAttachmentResult",
"deleteTransitGatewayVpcAttachment",
"(",
"DeleteTransitGatewayVpcAttachmentRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteTransitGatewayVpcAttachment",
"... | public virtual DeleteTransitGatewayVpcAttachmentResponse DeleteTransitGatewayVpcAttachment(DeleteTransitGatewayVpcAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTransitGatewayVpcAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTransitGatewayVpcAtt... | train | true |
6,322 | public ObjectId idFor(TreeFormatter formatter) {return formatter.computeId(this);}
| [
"public",
"ObjectId",
"idFor",
"(",
"TreeFormatter",
"formatter",
")",
"{",
"return",
"formatter",
".",
"computeId",
"(",
"this",
")",
";",
"}"
] | public virtual ObjectId IdFor(TreeFormatter formatter){return formatter.ComputeId(this);}
| train | false |
6,323 | public static boolean startsWith(char s[], int len, String prefix) {final int prefixLen = prefix.length();if (prefixLen > len)return false;for (int i = 0; i < prefixLen; i++)if (s[i] != prefix.charAt(i))return false;return true;}
| [
"public",
"static",
"boolean",
"startsWith",
"(",
"char",
"s",
"[",
"]",
",",
"int",
"len",
",",
"String",
"prefix",
")",
"{",
"final",
"int",
"prefixLen",
"=",
"prefix",
".",
"length",
"(",
")",
";",
"if",
"(",
"prefixLen",
">",
"len",
")",
"return"... | public static bool StartsWith(char[] s, int len, string prefix){int prefixLen = prefix.Length;if (prefixLen > len){return false;}for (int i = 0; i < prefixLen; i++){if (s[i] != prefix[i]){return false;}}return true;}
| train | false |
6,324 | public UpdateBatchPredictionResult updateBatchPrediction(UpdateBatchPredictionRequest request) {request = beforeClientExecution(request);return executeUpdateBatchPrediction(request);}
| [
"public",
"UpdateBatchPredictionResult",
"updateBatchPrediction",
"(",
"UpdateBatchPredictionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateBatchPrediction",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateBatchPredictionResponse UpdateBatchPrediction(UpdateBatchPredictionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBatchPredictionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBatchPredictionResponseUnmarshaller.Instance;return Invoke<UpdateBat... | train | true |
6,325 | public final void remove(RevFlag flag) {flags &= ~flag.mask;}
| [
"public",
"final",
"void",
"remove",
"(",
"RevFlag",
"flag",
")",
"{",
"flags",
"&=",
"~",
"flag",
".",
"mask",
";",
"}"
] | public void Remove(RevFlag flag){flags &= ~flag.mask;}
| train | false |
6,327 | public String toString() {StringBuilder sb = new StringBuilder("[ArrayPtg]\n");sb.append("nRows = ").append(getRowCount()).append("\n");sb.append("nCols = ").append(getColumnCount()).append("\n");if (_arrayValues == null) {sb.append(" #values#uninitialised#\n");} else {sb.append(" ").append(toFormulaString());}return... | [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
"\"[ArrayPtg]\\n\"",
")",
";",
"sb",
".",
"append",
"(",
"\"nRows = \"",
")",
".",
"append",
"(",
"getRowCount",
"(",
")",
")",
".",
"append",
"(",
"\... | public override String ToString(){StringBuilder buffer = new StringBuilder("[ArrayPtg]\n");buffer.Append("columns = ").Append(ColumnCount).Append("\n");buffer.Append("rows = ").Append(RowCount).Append("\n");for (int x = 0; x < ColumnCount; x++){for (int y = 0; y < RowCount; y++){Object o = _arrayValues.GetValue(GetValu... | train | false |
6,328 | public ObjectId getHeadId() {return headId;}
| [
"public",
"ObjectId",
"getHeadId",
"(",
")",
"{",
"return",
"headId",
";",
"}"
] | public virtual ObjectId GetHeadId(){return headId;}
| train | false |
6,329 | public GetAssociatedIpv6PoolCidrsResult getAssociatedIpv6PoolCidrs(GetAssociatedIpv6PoolCidrsRequest request) {request = beforeClientExecution(request);return executeGetAssociatedIpv6PoolCidrs(request);}
| [
"public",
"GetAssociatedIpv6PoolCidrsResult",
"getAssociatedIpv6PoolCidrs",
"(",
"GetAssociatedIpv6PoolCidrsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetAssociatedIpv6PoolCidrs",
"(",
"request",
")",
";... | public virtual GetAssociatedIpv6PoolCidrsResponse GetAssociatedIpv6PoolCidrs(GetAssociatedIpv6PoolCidrsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAssociatedIpv6PoolCidrsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAssociatedIpv6PoolCidrsResponseUnmarshaller.Instanc... | train | false |
6,330 | public void copyValue(Cell destCell) {switch (_cellType) {case BLANK: destCell.setBlank(); return;case NUMERIC: destCell.setCellValue(_numberValue); return;case BOOLEAN: destCell.setCellValue(_booleanValue); return;case STRING: destCell.setCellValue(_stringValue); ... | [
"public",
"void",
"copyValue",
"(",
"Cell",
"destCell",
")",
"{",
"switch",
"(",
"_cellType",
")",
"{",
"case",
"BLANK",
":",
"destCell",
".",
"setBlank",
"(",
")",
";",
"return",
";",
"case",
"NUMERIC",
":",
"destCell",
".",
"setCellValue",
"(",
"_numbe... | public void CopyValue(ICell destCell){switch (_cellType){case CellType.Blank: destCell.SetCellType(CellType.Blank); return;case CellType.Numeric: destCell.SetCellValue(_numberValue); return;case CellType.Boolean: destCell.SetCellValue(_boolValue); return;case CellType.String: destCell.SetCellValue(_stringValue); return... | train | false |
6,331 | public DescribeLaunchTemplateVersionsResult describeLaunchTemplateVersions(DescribeLaunchTemplateVersionsRequest request) {request = beforeClientExecution(request);return executeDescribeLaunchTemplateVersions(request);}
| [
"public",
"DescribeLaunchTemplateVersionsResult",
"describeLaunchTemplateVersions",
"(",
"DescribeLaunchTemplateVersionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeLaunchTemplateVersions",
"(",
"reque... | public virtual DescribeLaunchTemplateVersionsResponse DescribeLaunchTemplateVersions(DescribeLaunchTemplateVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLaunchTemplateVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLaunchTemplateVersionsResponse... | train | true |
6,332 | public static DVConstraint createCustomFormulaConstraint(String formula) {if (formula == null) {throw new IllegalArgumentException("formula must be supplied");}return new DVConstraint(ValidationType.FORMULA, OperatorType.IGNORED, formula, null, null, null, null);}
| [
"public",
"static",
"DVConstraint",
"createCustomFormulaConstraint",
"(",
"String",
"formula",
")",
"{",
"if",
"(",
"formula",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"formula must be supplied\"",
")",
";",
"}",
"return",
"new",
... | public static DVConstraint CreateCustomFormulaConstraint(String formula){if (formula == null){throw new ArgumentException("formula must be supplied");}return new DVConstraint(ValidationType.FORMULA, OperatorType.IGNORED, formula, null, double.NaN, double.NaN, null);}
| train | false |
6,333 | public DeleteProjectVersionResult deleteProjectVersion(DeleteProjectVersionRequest request) {request = beforeClientExecution(request);return executeDeleteProjectVersion(request);}
| [
"public",
"DeleteProjectVersionResult",
"deleteProjectVersion",
"(",
"DeleteProjectVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteProjectVersion",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteProjectVersionResponse DeleteProjectVersion(DeleteProjectVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteProjectVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteProjectVersionResponseUnmarshaller.Instance;return Invoke<DeleteProjectV... | train | false |
6,334 | public String toStringUnquoted() {return getTermText();}
| [
"public",
"String",
"toStringUnquoted",
"(",
")",
"{",
"return",
"getTermText",
"(",
")",
";",
"}"
] | public override string ToStringUnquoted(){return TermText;}
| train | false |
6,335 | public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[RECALCID]\n");buffer.append(" .reserved = ").append(HexDump.shortToHex(_reserved0)).append("\n");buffer.append(" .engineId = ").append(HexDump.intToHex(_engineId)).append("\n");buffer.append("[/RECALCID]\n");return buffer.toStrin... | [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[RECALCID]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .reserved = \"",
")",
".",
"append",
"(",
... | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[RECALCID]\n");buffer.Append(" .reserved = ").Append(HexDump.ShortToHex(_reserved0)).Append("\n");buffer.Append(" .engineId = ").Append(HexDump.IntToHex(_engineId)).Append("\n");buffer.Append("[/RECALCID]\n");return buffer... | train | false |
6,336 | public String toString() {return "RandomAccessInput(" + IndexInput.this.toString() + ")";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"RandomAccessInput(\"",
"+",
"IndexInput",
".",
"this",
".",
"toString",
"(",
")",
"+",
"\")\"",
";",
"}"
] | public override string ToString(){return resourceDescription;}
| train | false |
6,337 | public static int countArg(ValueEval eval, I_MatchPredicate criteriaPredicate) {if (eval == null) {throw new IllegalArgumentException("eval must not be null");}if (eval instanceof ThreeDEval) {return countMatchingCellsInArea((ThreeDEval) eval, criteriaPredicate);}if (eval instanceof TwoDEval) {throw new IllegalArgument... | [
"public",
"static",
"int",
"countArg",
"(",
"ValueEval",
"eval",
",",
"I_MatchPredicate",
"criteriaPredicate",
")",
"{",
"if",
"(",
"eval",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"eval must not be null\"",
")",
";",
"}",
"if",... | public static int CountArg(ValueEval eval, IMatchPredicate criteriaPredicate){if (eval == null){throw new ArgumentException("eval must not be null");}if (eval is ThreeDEval){return CountUtils.CountMatchingCellsInArea((ThreeDEval)eval, criteriaPredicate);}if (eval is TwoDEval){throw new ArgumentException("Count requires... | train | false |
6,338 | public void parse(byte[] buf, int ptr, int end) {while (ptr < end)ptr = parseFile(buf, ptr, end);}
| [
"public",
"void",
"parse",
"(",
"byte",
"[",
"]",
"buf",
",",
"int",
"ptr",
",",
"int",
"end",
")",
"{",
"while",
"(",
"ptr",
"<",
"end",
")",
"ptr",
"=",
"parseFile",
"(",
"buf",
",",
"ptr",
",",
"end",
")",
";",
"}"
] | public virtual void Parse(byte[] buf, int ptr, int end){while (ptr < end){ptr = ParseFile(buf, ptr, end);}}
| train | false |
6,339 | public ListQueuesResult listQueues(String queueNamePrefix) {return listQueues(new ListQueuesRequest().withQueueNamePrefix(queueNamePrefix));}
| [
"public",
"ListQueuesResult",
"listQueues",
"(",
"String",
"queueNamePrefix",
")",
"{",
"return",
"listQueues",
"(",
"new",
"ListQueuesRequest",
"(",
")",
".",
"withQueueNamePrefix",
"(",
"queueNamePrefix",
")",
")",
";",
"}"
] | public virtual ListQueuesResponse ListQueues(string queueNamePrefix){var request = new ListQueuesRequest();request.QueueNamePrefix = queueNamePrefix;return ListQueues(request);}
| train | false |
6,340 | public DescribeVolumeAttributeResult describeVolumeAttribute(DescribeVolumeAttributeRequest request) {request = beforeClientExecution(request);return executeDescribeVolumeAttribute(request);}
| [
"public",
"DescribeVolumeAttributeResult",
"describeVolumeAttribute",
"(",
"DescribeVolumeAttributeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeVolumeAttribute",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeVolumeAttributeResponse DescribeVolumeAttribute(DescribeVolumeAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVolumeAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVolumeAttributeResponseUnmarshaller.Instance;return Invoke... | train | true |
6,341 | public Trie optimize(Trie orig) {List<CharSequence> cmds = orig.cmds;List<Row> rows = new ArrayList<>();List<Row> orows = orig.rows;int remap[] = new int[orows.size()];for (int j = orows.size() - 1; j >= 0; j--) {liftUp(orows.get(j), orows);}Arrays.fill(remap, -1);rows = removeGaps(orig.root, orows, new ArrayList<Row>(... | [
"public",
"Trie",
"optimize",
"(",
"Trie",
"orig",
")",
"{",
"List",
"<",
"CharSequence",
">",
"cmds",
"=",
"orig",
".",
"cmds",
";",
"List",
"<",
"Row",
">",
"rows",
"=",
"new",
"ArrayList",
"<",
">",
"(",
")",
";",
"List",
"<",
"Row",
">",
"oro... | public override Trie Optimize(Trie orig){IList<string> cmds = orig.cmds;IList<Row> rows = new List<Row>();IList<Row> orows = orig.rows;int[] remap = new int[orows.Count];for (int j = orows.Count - 1; j >= 0; j--){LiftUp(orows[j], orows);}Arrays.Fill(remap, -1);rows = RemoveGaps(orig.root, orows, new List<Row>(), remap)... | train | false |
6,342 | public WorkingTreeOptions getOptions() {return state.options;}
| [
"public",
"WorkingTreeOptions",
"getOptions",
"(",
")",
"{",
"return",
"state",
".",
"options",
";",
"}"
] | public virtual WorkingTreeOptions GetOptions(){return state.options;}
| train | false |
6,343 | public SendInvitationResult sendInvitation(SendInvitationRequest request) {request = beforeClientExecution(request);return executeSendInvitation(request);}
| [
"public",
"SendInvitationResult",
"sendInvitation",
"(",
"SendInvitationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSendInvitation",
"(",
"request",
")",
";",
"}"
] | public virtual SendInvitationResponse SendInvitation(SendInvitationRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendInvitationRequestMarshaller.Instance;options.ResponseUnmarshaller = SendInvitationResponseUnmarshaller.Instance;return Invoke<SendInvitationResponse>(request, options);}
| train | true |
6,344 | public DeleteAlarmsResult deleteAlarms(DeleteAlarmsRequest request) {request = beforeClientExecution(request);return executeDeleteAlarms(request);}
| [
"public",
"DeleteAlarmsResult",
"deleteAlarms",
"(",
"DeleteAlarmsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteAlarms",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteAlarmsResponse DeleteAlarms(DeleteAlarmsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAlarmsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAlarmsResponseUnmarshaller.Instance;return Invoke<DeleteAlarmsResponse>(request, options);}
| train | true |
6,345 | public static void main(String[] args) throws Exception {FSDirectory dir = null;String inputStr = null;String field = null;if (args.length == 3) {dir = FSDirectory.open(Paths.get(args[0]));field = args[1];inputStr = args[2];} else {usage();System.exit(1);}getTermInfo(dir,new Term(field, inputStr));}
| [
"public",
"static",
"void",
"main",
"(",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"FSDirectory",
"dir",
"=",
"null",
";",
"String",
"inputStr",
"=",
"null",
";",
"String",
"field",
"=",
"null",
";",
"if",
"(",
"args",
".",
"length",... | public static void Main(string[] args){FSDirectory dir = null;string inputStr = null;string field = null;if (args.Length == 3){dir = FSDirectory.Open(new DirectoryInfo(args[0]));field = args[1];inputStr = args[2];}else{throw new ArgumentException();}TermInfo(dir, new Term(field, inputStr));}
| train | false |
6,346 | public DBSnapshotAttributesResult modifyDBSnapshotAttribute(ModifyDBSnapshotAttributeRequest request) {request = beforeClientExecution(request);return executeModifyDBSnapshotAttribute(request);}
| [
"public",
"DBSnapshotAttributesResult",
"modifyDBSnapshotAttribute",
"(",
"ModifyDBSnapshotAttributeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyDBSnapshotAttribute",
"(",
"request",
")",
";",
"}"
... | public virtual ModifyDBSnapshotAttributeResponse ModifyDBSnapshotAttribute(ModifyDBSnapshotAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBSnapshotAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBSnapshotAttributeResponseUnmarshaller.Instance;ret... | train | true |
6,347 | public static final String readUTF(DataInput in) throws IOException {return decodeUTF(in.readUnsignedShort(), in);}
| [
"public",
"static",
"final",
"String",
"readUTF",
"(",
"DataInput",
"in",
")",
"throws",
"IOException",
"{",
"return",
"decodeUTF",
"(",
"in",
".",
"readUnsignedShort",
"(",
")",
",",
"in",
")",
";",
"}"
] | public static string readUTF(java.io.DataInput @in){throw new System.NotImplementedException();}
| train | false |
6,348 | public synchronized E remove(int index) {@SuppressWarnings("unchecked")E removed = (E) elements[index];removeRange(index, index + 1);return removed;}
| [
"public",
"synchronized",
"E",
"remove",
"(",
"int",
"index",
")",
"{",
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"E",
"removed",
"=",
"(",
"E",
")",
"elements",
"[",
"index",
"]",
";",
"removeRange",
"(",
"index",
",",
"index",
"+",
"1",
")"... | public virtual E remove(int index){lock (this){E removed = (E)elements[index];removeRange(index, index + 1);return removed;}}
| train | true |
6,349 | public byte[] getElement(int index) {int actualSize = getActualSizeOfElements(getSizeOfElements());byte[] result = IOUtils.safelyAllocate(actualSize, MAX_RECORD_LENGTH);System.arraycopy(getComplexData(), FIXED_SIZE + index * actualSize, result, 0, result.length );return result;}
| [
"public",
"byte",
"[",
"]",
"getElement",
"(",
"int",
"index",
")",
"{",
"int",
"actualSize",
"=",
"getActualSizeOfElements",
"(",
"getSizeOfElements",
"(",
")",
")",
";",
"byte",
"[",
"]",
"result",
"=",
"IOUtils",
".",
"safelyAllocate",
"(",
"actualSize",
... | public byte[] GetElement(int index){int actualSize = GetActualSizeOfElements(SizeOfElements);byte[] result = new byte[actualSize];Array.Copy(_complexData, FIXED_SIZE + index * actualSize, result, 0, result.Length);return result;}
| train | false |
6,350 | public String signString(String stringToSign, AlibabaCloudCredentials credentials) {return null;}
| [
"public",
"String",
"signString",
"(",
"String",
"stringToSign",
",",
"AlibabaCloudCredentials",
"credentials",
")",
"{",
"return",
"null",
";",
"}"
] | public override string SignString(string stringToSign, AlibabaCloudCredentials credentials){return SignString(stringToSign, credentials.GetAccessKeyId());}
| train | false |
6,351 | public void writeData(final ByteBuffer block) {block.put( serialize() );}
| [
"public",
"void",
"writeData",
"(",
"final",
"ByteBuffer",
"block",
")",
"{",
"block",
".",
"put",
"(",
"serialize",
"(",
")",
")",
";",
"}"
] | public void WriteData(ByteBuffer block){block.Write(Serialize());}
| train | false |
6,352 | public void setSshSessionFactory(SshSessionFactory factory) {if (factory == null)throw new NullPointerException(JGitText.get().theFactoryMustNotBeNull);if (sock != null)throw new IllegalStateException(JGitText.get().anSSHSessionHasBeenAlreadyCreated);sch = factory;}
| [
"public",
"void",
"setSshSessionFactory",
"(",
"SshSessionFactory",
"factory",
")",
"{",
"if",
"(",
"factory",
"==",
"null",
")",
"throw",
"new",
"NullPointerException",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"theFactoryMustNotBeNull",
")",
";",
"if",
"("... | public virtual void SetSshSessionFactory(SshSessionFactory factory){if (factory == null){throw new ArgumentNullException(JGitText.Get().theFactoryMustNotBeNull);}if (sock != null){throw new InvalidOperationException(JGitText.Get().anSSHSessionHasBeenAlreadyCreated);}sch = factory;}
| train | false |
6,354 | public RawText getSourceContents() {return outCandidate.sourceText;}
| [
"public",
"RawText",
"getSourceContents",
"(",
")",
"{",
"return",
"outCandidate",
".",
"sourceText",
";",
"}"
] | public virtual RawText GetSourceContents(){return currentSource.sourceText;}
| train | false |
6,355 | public static <T> T[] copyOfRange(T[] original, int start, int end) {int originalLength = original.length; if (start > end) {throw new IllegalArgumentException();}if (start < 0 || start > originalLength) {throw new ArrayIndexOutOfBoundsException();}int resultLength = end - start;int copyLength = Math.min(resultLength, ... | [
"public",
"static",
"<",
"T",
">",
"T",
"[",
"]",
"copyOfRange",
"(",
"T",
"[",
"]",
"original",
",",
"int",
"start",
",",
"int",
"end",
")",
"{",
"int",
"originalLength",
"=",
"original",
".",
"length",
";",
"if",
"(",
"start",
">",
"end",
")",
... | public static int[] copyOfRange(int[] original, int start, int end){if (start > end){throw new System.ArgumentException();}int originalLength = original.Length;if (start < 0 || start > originalLength){throw new System.IndexOutOfRangeException();}int resultLength = end - start;int copyLength = System.Math.Min(resultLeng... | train | false |
6,356 | public boolean isPeeled() {return false;}
| [
"public",
"boolean",
"isPeeled",
"(",
")",
"{",
"return",
"false",
";",
"}"
] | public override bool IsPeeled(){return false;}
| train | false |
6,357 | public ProgressMonitor getProgressMonitor() {return monitor;}
| [
"public",
"ProgressMonitor",
"getProgressMonitor",
"(",
")",
"{",
"return",
"monitor",
";",
"}"
] | public virtual ProgressMonitor GetProgressMonitor(){return monitor;}
| train | false |
6,358 | public Content(String data) {setData(data);}
| [
"public",
"Content",
"(",
"String",
"data",
")",
"{",
"setData",
"(",
"data",
")",
";",
"}"
] | public Content(string data){_data = data;}
| train | false |
6,359 | public boolean add(Object o) {return map.put(o, PLACEHOLDER) == null;}
| [
"public",
"boolean",
"add",
"(",
"Object",
"o",
")",
"{",
"return",
"map",
".",
"put",
"(",
"o",
",",
"PLACEHOLDER",
")",
"==",
"null",
";",
"}"
] | public virtual bool Add(object o){return map.Put(o);}
| train | false |
6,360 | public String getLockMessage() {return lockMessage;}
| [
"public",
"String",
"getLockMessage",
"(",
")",
"{",
"return",
"lockMessage",
";",
"}"
] | public virtual string GetLockMessage(){return lockMessage;}
| train | false |
6,361 | public E previous() {if (index > from) {return (E) snapshot[--index];} else {throw new NoSuchElementException();}}
| [
"public",
"E",
"previous",
"(",
")",
"{",
"if",
"(",
"index",
">",
"from",
")",
"{",
"return",
"(",
"E",
")",
"snapshot",
"[",
"--",
"index",
"]",
";",
"}",
"else",
"{",
"throw",
"new",
"NoSuchElementException",
"(",
")",
";",
"}",
"}"
] | public virtual E previous(){if (index > from){return (E)snapshot[--index];}else{throw new java.util.NoSuchElementException();}}
| train | false |
6,362 | public InviteUsersResult inviteUsers(InviteUsersRequest request) {request = beforeClientExecution(request);return executeInviteUsers(request);}
| [
"public",
"InviteUsersResult",
"inviteUsers",
"(",
"InviteUsersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeInviteUsers",
"(",
"request",
")",
";",
"}"
] | public virtual InviteUsersResponse InviteUsers(InviteUsersRequest request){var options = new InvokeOptions();options.RequestMarshaller = InviteUsersRequestMarshaller.Instance;options.ResponseUnmarshaller = InviteUsersResponseUnmarshaller.Instance;return Invoke<InviteUsersResponse>(request, options);}
| train | true |
6,363 | public boolean lessThan(ShardRef first, ShardRef second) {assert first != second;ScoreDoc firstScoreDoc = shardHits[first.shardIndex][first.hitIndex];ScoreDoc secondScoreDoc = shardHits[second.shardIndex][second.hitIndex];if (firstScoreDoc.score < secondScoreDoc.score) {return false;} else if (firstScoreDoc.score > sec... | [
"public",
"boolean",
"lessThan",
"(",
"ShardRef",
"first",
",",
"ShardRef",
"second",
")",
"{",
"assert",
"first",
"!=",
"second",
";",
"ScoreDoc",
"firstScoreDoc",
"=",
"shardHits",
"[",
"first",
".",
"shardIndex",
"]",
"[",
"first",
".",
"hitIndex",
"]",
... | protected internal override bool LessThan(ShardRef first, ShardRef second){Debug.Assert(first != second);float firstScore = shardHits[first.ShardIndex][first.HitIndex].Score;float secondScore = shardHits[second.ShardIndex][second.HitIndex].Score;if (firstScore < secondScore){return false;}else if (firstScore > secondSc... | train | false |
6,364 | public ListSubscriptionsRequest(String nextToken) {setNextToken(nextToken);}
| [
"public",
"ListSubscriptionsRequest",
"(",
"String",
"nextToken",
")",
"{",
"setNextToken",
"(",
"nextToken",
")",
";",
"}"
] | public ListSubscriptionsRequest(string nextToken){_nextToken = nextToken;}
| train | false |
6,365 | public RemoveTagsFromResourceResult removeTagsFromResource(RemoveTagsFromResourceRequest request) {request = beforeClientExecution(request);return executeRemoveTagsFromResource(request);}
| [
"public",
"RemoveTagsFromResourceResult",
"removeTagsFromResource",
"(",
"RemoveTagsFromResourceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRemoveTagsFromResource",
"(",
"request",
")",
";",
"}"
] | public virtual RemoveTagsFromResourceResponse RemoveTagsFromResource(RemoveTagsFromResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveTagsFromResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveTagsFromResourceResponseUnmarshaller.Instance;return Invoke<Remo... | train | true |
6,366 | public ListHostedZonesResult listHostedZones() {return listHostedZones(new ListHostedZonesRequest());}
| [
"public",
"ListHostedZonesResult",
"listHostedZones",
"(",
")",
"{",
"return",
"listHostedZones",
"(",
"new",
"ListHostedZonesRequest",
"(",
")",
")",
";",
"}"
] | public virtual ListHostedZonesResponse ListHostedZones(){return ListHostedZones(new ListHostedZonesRequest());}
| train | false |
6,367 | public String toString() {StringBuilder sb = new StringBuilder(64);sb.append(getClass().getName()).append(" [");if(isSemiVolatile()) {sb.append("volatile ");}if(isSpace()) {sb.append("space count=").append((_data >> 8) & 0x00FF);sb.append(" type=").append(_data & 0x00FF).append(" ");}if(isOptimizedIf()) {sb.append("if ... | [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
"64",
")",
";",
"sb",
".",
"append",
"(",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
")",
".",
"append",
"(",
"\" [\"",
")",
";",
"if",
"("... | public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(" [");if (IsSemiVolatile){sb.Append("volatile ");}if (IsSpace){sb.Append("space count=").Append((field_2_data >> 8) & 0x00FF);sb.Append(" type=").Append(field_2_data & 0x00FF).Append(" ");}if (IsOptimizedIf){sb.A... | train | false |
6,368 | public static double stdev(double[] v) {double r = Double.NaN;if (v!=null && v.length > 1) {r = Math.sqrt( devsq(v) / (v.length - 1) );}return r;}
| [
"public",
"static",
"double",
"stdev",
"(",
"double",
"[",
"]",
"v",
")",
"{",
"double",
"r",
"=",
"Double",
".",
"NaN",
";",
"if",
"(",
"v",
"!=",
"null",
"&&",
"v",
".",
"length",
">",
"1",
")",
"{",
"r",
"=",
"Math",
".",
"sqrt",
"(",
"dev... | public static double stdev(double[] v){double r = double.NaN;if (v != null && v.Length > 1){r = Math.Sqrt(devsq(v) / (v.Length - 1));}return r;}
| train | false |
6,369 | public GetVoiceConnectorLoggingConfigurationResult getVoiceConnectorLoggingConfiguration(GetVoiceConnectorLoggingConfigurationRequest request) {request = beforeClientExecution(request);return executeGetVoiceConnectorLoggingConfiguration(request);}
| [
"public",
"GetVoiceConnectorLoggingConfigurationResult",
"getVoiceConnectorLoggingConfiguration",
"(",
"GetVoiceConnectorLoggingConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetVoiceConnectorLoggingCon... | public virtual GetVoiceConnectorLoggingConfigurationResponse GetVoiceConnectorLoggingConfiguration(GetVoiceConnectorLoggingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceConnectorLoggingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceCo... | train | false |
6,370 | public GetQueueUrlResult getQueueUrl(GetQueueUrlRequest request) {request = beforeClientExecution(request);return executeGetQueueUrl(request);}
| [
"public",
"GetQueueUrlResult",
"getQueueUrl",
"(",
"GetQueueUrlRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetQueueUrl",
"(",
"request",
")",
";",
"}"
] | public virtual GetQueueUrlResponse GetQueueUrl(GetQueueUrlRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetQueueUrlRequestMarshaller.Instance;options.ResponseUnmarshaller = GetQueueUrlResponseUnmarshaller.Instance;return Invoke<GetQueueUrlResponse>(request, options);}
| train | true |
6,371 | public TblPtg(LittleEndianInput in) {field_1_first_row = in.readUShort();field_2_first_col = in.readUShort();}
| [
"public",
"TblPtg",
"(",
"LittleEndianInput",
"in",
")",
"{",
"field_1_first_row",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"field_2_first_col",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"}"
] | public TblPtg(ILittleEndianInput in1){field_1_first_row = in1.ReadUShort();field_2_first_col = in1.ReadUShort();}
| train | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.