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 |
|---|---|---|---|---|---|
2,986 | public CRNRecord[] getCrns() {return _crns.clone();}
| [
"public",
"CRNRecord",
"[",
"]",
"getCrns",
"(",
")",
"{",
"return",
"_crns",
".",
"clone",
"(",
")",
";",
"}"
] | public CRNRecord[] GetCrns(){return (CRNRecord[])_crns.Clone();}
| train | false |
2,987 | public String toString() {return "slot:" + slot + " " + super.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"slot:\"",
"+",
"slot",
"+",
"\" \"",
"+",
"super",
".",
"toString",
"(",
")",
";",
"}"
] | public override string ToString(){return "slot:" + Slot + " " + base.ToString();}
| train | false |
2,988 | public int apply(char s[], int len) {if (len < min)return len;if (suffixes != null) {boolean found = false;for (int i = 0; i < suffixes.length; i++)if (endsWith(s, len, suffixes[i])) {found = true;break;}if (!found) return len;}for (int i = 0; i < rules.length; i++) {if (rules[i].matches(s, len))return rules[i].replace... | [
"public",
"int",
"apply",
"(",
"char",
"s",
"[",
"]",
",",
"int",
"len",
")",
"{",
"if",
"(",
"len",
"<",
"min",
")",
"return",
"len",
";",
"if",
"(",
"suffixes",
"!=",
"null",
")",
"{",
"boolean",
"found",
"=",
"false",
";",
"for",
"(",
"int",... | public virtual int Apply(char[] s, int len){if (len < m_min){return len;}if (m_suffixes != null){bool found = false;for (int i = 0; i < m_suffixes.Length; i++){if (StemmerUtil.EndsWith(s, len, m_suffixes[i])){found = true;break;}}if (!found){return len;}}for (int i = 0; i < m_rules.Length; i++){if (m_rules[i].Matches(s... | train | false |
2,989 | public ModifyInstanceAttributeRequest(String instanceId, InstanceAttributeName attribute) {setInstanceId(instanceId);setAttribute(attribute.toString());}
| [
"public",
"ModifyInstanceAttributeRequest",
"(",
"String",
"instanceId",
",",
"InstanceAttributeName",
"attribute",
")",
"{",
"setInstanceId",
"(",
"instanceId",
")",
";",
"setAttribute",
"(",
"attribute",
".",
"toString",
"(",
")",
")",
";",
"}"
] | public ModifyInstanceAttributeRequest(string instanceId, InstanceAttributeName attribute){_instanceId = instanceId;_attribute = attribute;}
| train | false |
2,990 | public ListEventTrackersResult listEventTrackers(ListEventTrackersRequest request) {request = beforeClientExecution(request);return executeListEventTrackers(request);}
| [
"public",
"ListEventTrackersResult",
"listEventTrackers",
"(",
"ListEventTrackersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListEventTrackers",
"(",
"request",
")",
";",
"}"
] | public virtual ListEventTrackersResponse ListEventTrackers(ListEventTrackersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEventTrackersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEventTrackersResponseUnmarshaller.Instance;return Invoke<ListEventTrackersResponse>(re... | train | false |
2,991 | public boolean isNewFragment() {boolean isNewFrag = offsetAtt.endOffset() >= (fragmentSize * currentNumFrags);if (isNewFrag) {currentNumFrags++;}return isNewFrag;}
| [
"public",
"boolean",
"isNewFragment",
"(",
")",
"{",
"boolean",
"isNewFrag",
"=",
"offsetAtt",
".",
"endOffset",
"(",
")",
">=",
"(",
"fragmentSize",
"*",
"currentNumFrags",
")",
";",
"if",
"(",
"isNewFrag",
")",
"{",
"currentNumFrags",
"++",
";",
"}",
"re... | public virtual bool IsNewFragment(){bool isNewFrag = offsetAtt.EndOffset >= (FragmentSize*currentNumFrags);if (isNewFrag){currentNumFrags++;}return isNewFrag;}
| train | false |
2,992 | public BatchGetQueryExecutionResult batchGetQueryExecution(BatchGetQueryExecutionRequest request) {request = beforeClientExecution(request);return executeBatchGetQueryExecution(request);}
| [
"public",
"BatchGetQueryExecutionResult",
"batchGetQueryExecution",
"(",
"BatchGetQueryExecutionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeBatchGetQueryExecution",
"(",
"request",
")",
";",
"}"
] | public virtual BatchGetQueryExecutionResponse BatchGetQueryExecution(BatchGetQueryExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetQueryExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetQueryExecutionResponseUnmarshaller.Instance;return Invoke<Batc... | train | true |
2,993 | public static double cos(double a) {if (a < 0.0) {a = -a;}if (a > SIN_COS_MAX_VALUE_FOR_INT_MODULO) {return Math.cos(a);}int index = (int)(a * SIN_COS_INDEXER + 0.5);double delta = (a - index * SIN_COS_DELTA_HI) - index * SIN_COS_DELTA_LO;index &= (SIN_COS_TABS_SIZE-2); double indexCos = cosTab[index];double indexSin =... | [
"public",
"static",
"double",
"cos",
"(",
"double",
"a",
")",
"{",
"if",
"(",
"a",
"<",
"0.0",
")",
"{",
"a",
"=",
"-",
"a",
";",
"}",
"if",
"(",
"a",
">",
"SIN_COS_MAX_VALUE_FOR_INT_MODULO",
")",
"{",
"return",
"Math",
".",
"cos",
"(",
"a",
")",... | public static double Cos(double a){if (a < 0.0){a = -a;}if (a > SIN_COS_MAX_VALUE_FOR_INT_MODULO){return Math.Cos(a);}int index = (int)(a * SIN_COS_INDEXER + 0.5);double delta = (a - index * SIN_COS_DELTA_HI) - index * SIN_COS_DELTA_LO;index &= (SIN_COS_TABS_SIZE - 2); double indexCos = cosTab[index];double indexSin = ... | train | false |
2,994 | public ByteBuffer putLong(long value) {throw new ReadOnlyBufferException();}
| [
"public",
"ByteBuffer",
"putLong",
"(",
"long",
"value",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] | public override java.nio.ByteBuffer putLong(long value){throw new System.NotImplementedException();}
| train | false |
2,996 | public STSAssumeRoleSessionCredentialsProvider(AlibabaCloudCredentials longLivedCredentials,String roleArn, IClientProfile clientProfile) {this(new StaticCredentialsProvider(longLivedCredentials), roleArn, clientProfile);}
| [
"public",
"STSAssumeRoleSessionCredentialsProvider",
"(",
"AlibabaCloudCredentials",
"longLivedCredentials",
",",
"String",
"roleArn",
",",
"IClientProfile",
"clientProfile",
")",
"{",
"this",
"(",
"new",
"StaticCredentialsProvider",
"(",
"longLivedCredentials",
")",
",",
"... | public STSAssumeRoleSessionCredentialsProvider(AlibabaCloudCredentials longLivedCredentials,string roleArn,IClientProfile clientProfile){AlibabaCloudCredentialsProvider longLivedCredentialsProvider =new StaticCredentialsProvider(longLivedCredentials);this.roleArn = roleArn;roleSessionName = GetNewRoleSessionName();stsC... | train | false |
2,997 | public SessionToken(String id, Revision revision) {this.id = id;this.version = revision.getVersion();this.sourceFiles = revision.getSourceFiles();}
| [
"public",
"SessionToken",
"(",
"String",
"id",
",",
"Revision",
"revision",
")",
"{",
"this",
".",
"id",
"=",
"id",
";",
"this",
".",
"version",
"=",
"revision",
".",
"getVersion",
"(",
")",
";",
"this",
".",
"sourceFiles",
"=",
"revision",
".",
"getSo... | public SessionToken(string id, IRevision revision){Id = id;Version = revision.Version;SourceFiles = revision.SourceFiles;}
| train | false |
2,998 | public Collection<String> call() throws GitAPIException {checkCallable();try (SubmoduleWalk generator = SubmoduleWalk.forIndex(repo)) {if (!paths.isEmpty())generator.setFilter(PathFilterGroup.createFromStrings(paths));StoredConfig config = repo.getConfig();List<String> initialized = new ArrayList<>();while (generator.n... | [
"public",
"Collection",
"<",
"String",
">",
"call",
"(",
")",
"throws",
"GitAPIException",
"{",
"checkCallable",
"(",
")",
";",
"try",
"(",
"SubmoduleWalk",
"generator",
"=",
"SubmoduleWalk",
".",
"forIndex",
"(",
"repo",
")",
")",
"{",
"if",
"(",
"!",
"... | public override ICollection<string> Call(){CheckCallable();try{SubmoduleWalk generator = SubmoduleWalk.ForIndex(repo);if (!paths.IsEmpty()){generator.SetFilter(PathFilterGroup.CreateFromStrings(paths));}StoredConfig config = repo.GetConfig();IList<string> initialized = new AList<string>();while (generator.Next()){if (g... | train | false |
2,999 | public CreateVaultRequest(String accountId, String vaultName) {setAccountId(accountId);setVaultName(vaultName);}
| [
"public",
"CreateVaultRequest",
"(",
"String",
"accountId",
",",
"String",
"vaultName",
")",
"{",
"setAccountId",
"(",
"accountId",
")",
";",
"setVaultName",
"(",
"vaultName",
")",
";",
"}"
] | public CreateVaultRequest(string accountId, string vaultName){_accountId = accountId;_vaultName = vaultName;}
| train | false |
3,000 | public BooleanQueryNode(List<QueryNode> clauses) {setLeaf(false);allocate();set(clauses);}
| [
"public",
"BooleanQueryNode",
"(",
"List",
"<",
"QueryNode",
">",
"clauses",
")",
"{",
"setLeaf",
"(",
"false",
")",
";",
"allocate",
"(",
")",
";",
"set",
"(",
"clauses",
")",
";",
"}"
] | public BooleanQueryNode(IList<IQueryNode> clauses){IsLeaf = false;Allocate();Set(clauses);}
| train | false |
3,001 | public DVALRecord() {field_cbo_id = 0xFFFFFFFF;field_5_dv_no = 0x00000000;}
| [
"public",
"DVALRecord",
"(",
")",
"{",
"field_cbo_id",
"=",
"0xFFFFFFFF",
";",
"field_5_dv_no",
"=",
"0x00000000",
";",
"}"
] | public DVALRecord(){field_cbo_id = unchecked((int)0xFFFFFFFF);field_5_dv_no = 0x00000000;}
| train | false |
3,002 | public ListConfigurationsResult listConfigurations(ListConfigurationsRequest request) {request = beforeClientExecution(request);return executeListConfigurations(request);}
| [
"public",
"ListConfigurationsResult",
"listConfigurations",
"(",
"ListConfigurationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListConfigurations",
"(",
"request",
")",
";",
"}"
] | public virtual ListConfigurationsResponse ListConfigurations(ListConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListConfigurationsResponseUnmarshaller.Instance;return Invoke<ListConfigurationsRespon... | train | true |
3,003 | public String toFormulaString() {throw new RuntimeException("3D references need a workbook to determine formula text");}
| [
"public",
"String",
"toFormulaString",
"(",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"3D references need a workbook to determine formula text\"",
")",
";",
"}"
] | public override String ToFormulaString(){throw new Exception("3D references need a workbook to determine formula text");}
| train | false |
3,004 | public int LA(int i) { return LT(i).getType(); }
| [
"public",
"int",
"LA",
"(",
"int",
"i",
")",
"{",
"return",
"LT",
"(",
"i",
")",
".",
"getType",
"(",
")",
";",
"}"
] | public virtual int LA(int i){return LT(i).Type;}
| train | false |
3,006 | public UntagDeliveryStreamResult untagDeliveryStream(UntagDeliveryStreamRequest request) {request = beforeClientExecution(request);return executeUntagDeliveryStream(request);}
| [
"public",
"UntagDeliveryStreamResult",
"untagDeliveryStream",
"(",
"UntagDeliveryStreamRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUntagDeliveryStream",
"(",
"request",
")",
";",
"}"
] | public virtual UntagDeliveryStreamResponse UntagDeliveryStream(UntagDeliveryStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = UntagDeliveryStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = UntagDeliveryStreamResponseUnmarshaller.Instance;return Invoke<UntagDeliveryStream... | train | true |
3,007 | public CJKBigramFilterFactory(Map<String,String> args) {super(args);int flags = 0;if (getBoolean(args, "han", true)) {flags |= CJKBigramFilter.HAN;}if (getBoolean(args, "hiragana", true)) {flags |= CJKBigramFilter.HIRAGANA;}if (getBoolean(args, "katakana", true)) {flags |= CJKBigramFilter.KATAKANA;}if (getBoolean(args,... | [
"public",
"CJKBigramFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"int",
"flags",
"=",
"0",
";",
"if",
"(",
"getBoolean",
"(",
"args",
",",
"\"han\"",
",",
"true",
")",
")",
"{",
"f... | public CJKBigramFilterFactory(IDictionary<string, string> args): base(args){CJKScript flags = 0;if (GetBoolean(args, "han", true)){flags |= CJKScript.HAN;}if (GetBoolean(args, "hiragana", true)){flags |= CJKScript.HIRAGANA;}if (GetBoolean(args, "katakana", true)){flags |= CJKScript.KATAKANA;}if (GetBoolean(args, "hangu... | train | false |
3,008 | public static int toChars(int[] src, int srcOff, int srcLen, char[] dest, int destOff) {if (srcLen < 0) {throw new IllegalArgumentException("srcLen must be >= 0");}int written = 0;for (int i = 0; i < srcLen; ++i) {written += Character.toChars(src[srcOff + i], dest, destOff + written);}return written;}
| [
"public",
"static",
"int",
"toChars",
"(",
"int",
"[",
"]",
"src",
",",
"int",
"srcOff",
",",
"int",
"srcLen",
",",
"char",
"[",
"]",
"dest",
",",
"int",
"destOff",
")",
"{",
"if",
"(",
"srcLen",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgument... | public int ToChars(int[] src, int srcOff, int srcLen, char[] dest, int destOff){if (srcLen < 0){throw new ArgumentException("srcLen must be >= 0");}int written = 0;for (int i = 0; i < srcLen; ++i){written += Character.ToChars(src[srcOff + i], dest, destOff + written);}return written;}
| train | true |
3,010 | public static CFRuleRecord create(HSSFSheet sheet, byte comparisonOperation,String formulaText1, String formulaText2) {Ptg[] formula1 = parseFormula(formulaText1, sheet);Ptg[] formula2 = parseFormula(formulaText2, sheet);return new CFRuleRecord(CONDITION_TYPE_CELL_VALUE_IS, comparisonOperation, formula1, formula2);}
| [
"public",
"static",
"CFRuleRecord",
"create",
"(",
"HSSFSheet",
"sheet",
",",
"byte",
"comparisonOperation",
",",
"String",
"formulaText1",
",",
"String",
"formulaText2",
")",
"{",
"Ptg",
"[",
"]",
"formula1",
"=",
"parseFormula",
"(",
"formulaText1",
",",
"shee... | public static CFRuleRecord Create(HSSFSheet sheet, byte comparisonOperation,String formulaText1, String formulaText2){Ptg[] formula1 = ParseFormula(formulaText1, sheet);Ptg[] formula2 = ParseFormula(formulaText2, sheet);return new CFRuleRecord(CONDITION_TYPE_CELL_VALUE_IS, (ComparisonOperator)comparisonOperation, formu... | train | false |
3,011 | public int newSlice(final int size) {if (byteUpto > BYTE_BLOCK_SIZE-size)nextBuffer();final int upto = byteUpto;byteUpto += size;buffer[byteUpto-1] = 16;return upto;}
| [
"public",
"int",
"newSlice",
"(",
"final",
"int",
"size",
")",
"{",
"if",
"(",
"byteUpto",
">",
"BYTE_BLOCK_SIZE",
"-",
"size",
")",
"nextBuffer",
"(",
")",
";",
"final",
"int",
"upto",
"=",
"byteUpto",
";",
"byteUpto",
"+=",
"size",
";",
"buffer",
"["... | public int NewSlice(int size){if (ByteUpto > BYTE_BLOCK_SIZE - size){NextBuffer();}int upto = ByteUpto;ByteUpto += size;buffer[ByteUpto - 1] = 16;return upto;}
| train | false |
3,012 | public DescribeWorkspaceDirectoriesResult describeWorkspaceDirectories() {return describeWorkspaceDirectories(new DescribeWorkspaceDirectoriesRequest());}
| [
"public",
"DescribeWorkspaceDirectoriesResult",
"describeWorkspaceDirectories",
"(",
")",
"{",
"return",
"describeWorkspaceDirectories",
"(",
"new",
"DescribeWorkspaceDirectoriesRequest",
"(",
")",
")",
";",
"}"
] | public virtual DescribeWorkspaceDirectoriesResponse DescribeWorkspaceDirectories(){var request = new DescribeWorkspaceDirectoriesRequest();return DescribeWorkspaceDirectories(request);}
| train | false |
3,013 | public String toString() {return getClass().getName() + " [" +_functionName +"]";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
"+",
"\" [\"",
"+",
"_functionName",
"+",
"\"]\"",
";",
"}"
] | public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(" [");sb.Append(_functionName);sb.Append("]");return sb.ToString();}
| train | false |
3,014 | public void writeBytes(int stream, byte[] b, int offset, int len) {final int end = offset + len;for(int i=offset;i<end;i++)writeByte(stream, b[i]);}
| [
"public",
"void",
"writeBytes",
"(",
"int",
"stream",
",",
"byte",
"[",
"]",
"b",
",",
"int",
"offset",
",",
"int",
"len",
")",
"{",
"final",
"int",
"end",
"=",
"offset",
"+",
"len",
";",
"for",
"(",
"int",
"i",
"=",
"offset",
";",
"i",
"<",
"e... | public void WriteBytes(int stream, byte[] b, int offset, int len){int end = offset + len;for (int i = offset; i < end; i++){WriteByte(stream, b[i]);}}
| train | false |
3,015 | public GetExportSnapshotRecordsResult getExportSnapshotRecords(GetExportSnapshotRecordsRequest request) {request = beforeClientExecution(request);return executeGetExportSnapshotRecords(request);}
| [
"public",
"GetExportSnapshotRecordsResult",
"getExportSnapshotRecords",
"(",
"GetExportSnapshotRecordsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetExportSnapshotRecords",
"(",
"request",
")",
";",
"}"... | public virtual GetExportSnapshotRecordsResponse GetExportSnapshotRecords(GetExportSnapshotRecordsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetExportSnapshotRecordsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetExportSnapshotRecordsResponseUnmarshaller.Instance;return I... | train | true |
3,016 | public DeleteMessageResult deleteMessage(String queueUrl, String receiptHandle) {return deleteMessage(new DeleteMessageRequest().withQueueUrl(queueUrl).withReceiptHandle(receiptHandle));}
| [
"public",
"DeleteMessageResult",
"deleteMessage",
"(",
"String",
"queueUrl",
",",
"String",
"receiptHandle",
")",
"{",
"return",
"deleteMessage",
"(",
"new",
"DeleteMessageRequest",
"(",
")",
".",
"withQueueUrl",
"(",
"queueUrl",
")",
".",
"withReceiptHandle",
"(",
... | public virtual DeleteMessageResponse DeleteMessage(string queueUrl, string receiptHandle){var request = new DeleteMessageRequest();request.QueueUrl = queueUrl;request.ReceiptHandle = receiptHandle;return DeleteMessage(request);}
| train | true |
3,017 | public ModifyInstanceAttributeResult modifyInstanceAttribute(ModifyInstanceAttributeRequest request) {request = beforeClientExecution(request);return executeModifyInstanceAttribute(request);}
| [
"public",
"ModifyInstanceAttributeResult",
"modifyInstanceAttribute",
"(",
"ModifyInstanceAttributeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyInstanceAttribute",
"(",
"request",
")",
";",
"}"
] | public virtual ModifyInstanceAttributeResponse ModifyInstanceAttribute(ModifyInstanceAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyInstanceAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyInstanceAttributeResponseUnmarshaller.Instance;return Invoke... | train | true |
3,019 | public TokenFilter create(TokenStream input) {SnowballStemmer program;try {program = stemClass.getConstructor().newInstance();} catch (Exception e) {}}
| [
"public",
"TokenFilter",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"SnowballStemmer",
"program",
";",
"try",
"{",
"program",
"=",
"stemClass",
".",
"getConstructor",
"(",
")",
".",
"newInstance",
"(",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
"... | public override TokenStream Create(TokenStream input){SnowballProgram program;try{program = (SnowballProgram)Activator.CreateInstance(stemClass);}catch (Exception e){}}
| train | false |
3,020 | public GetPhotosByMd5sRequest() {super("CloudPhoto", "2017-07-11", "GetPhotosByMd5s", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"GetPhotosByMd5sRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"GetPhotosByMd5s\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public GetPhotosByMd5sRequest(): base("CloudPhoto", "2017-07-11", "GetPhotosByMd5s", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
3,021 | public StartOutboundVoiceContactResult startOutboundVoiceContact(StartOutboundVoiceContactRequest request) {request = beforeClientExecution(request);return executeStartOutboundVoiceContact(request);}
| [
"public",
"StartOutboundVoiceContactResult",
"startOutboundVoiceContact",
"(",
"StartOutboundVoiceContactRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStartOutboundVoiceContact",
"(",
"request",
")",
";",
... | public virtual StartOutboundVoiceContactResponse StartOutboundVoiceContact(StartOutboundVoiceContactRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartOutboundVoiceContactRequestMarshaller.Instance;options.ResponseUnmarshaller = StartOutboundVoiceContactResponseUnmarshaller.Instance;ret... | train | true |
3,022 | public void serialize(LittleEndianOutput out) {out.writeInt(field_1_x);out.writeInt(field_2_y);out.writeInt(field_3_width);out.writeInt(field_4_height);}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeInt",
"(",
"field_1_x",
")",
";",
"out",
".",
"writeInt",
"(",
"field_2_y",
")",
";",
"out",
".",
"writeInt",
"(",
"field_3_width",
")",
";",
"out",
".",
"writeI... | public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(field_1_x);out1.WriteInt(field_2_y);out1.WriteInt(field_3_width);out1.WriteInt(field_4_height);}
| train | false |
3,023 | public String getEmailAddress() {return emailAddress;}
| [
"public",
"String",
"getEmailAddress",
"(",
")",
"{",
"return",
"emailAddress",
";",
"}"
] | public virtual string GetEmailAddress(){return emailAddress;}
| train | false |
3,024 | public ValueEval getRelativeValue(int sheetIndex, int relativeRowIndex, int relativeColumnIndex) {int rowIx = (relativeRowIndex + getFirstRow() ) ;int colIx = (relativeColumnIndex + getFirstColumn() ) ;return _evaluator.getEvalForCell(sheetIndex, rowIx, colIx);}
| [
"public",
"ValueEval",
"getRelativeValue",
"(",
"int",
"sheetIndex",
",",
"int",
"relativeRowIndex",
",",
"int",
"relativeColumnIndex",
")",
"{",
"int",
"rowIx",
"=",
"(",
"relativeRowIndex",
"+",
"getFirstRow",
"(",
")",
")",
";",
"int",
"colIx",
"=",
"(",
... | public override ValueEval GetRelativeValue(int sheetIndex, int relativeRowIndex, int relativeColumnIndex){int rowIx = (relativeRowIndex + FirstRow);int colIx = (relativeColumnIndex + FirstColumn);return _evaluator.GetEvalForCell(sheetIndex, rowIx, colIx);}
| train | false |
3,026 | public void stopNow() {super.stopNow();if (runningParallelTasks != null) {for(ParallelTask t : runningParallelTasks) {if (t != null) {t.task.stopNow();}}}}
| [
"public",
"void",
"stopNow",
"(",
")",
"{",
"super",
".",
"stopNow",
"(",
")",
";",
"if",
"(",
"runningParallelTasks",
"!=",
"null",
")",
"{",
"for",
"(",
"ParallelTask",
"t",
":",
"runningParallelTasks",
")",
"{",
"if",
"(",
"t",
"!=",
"null",
")",
... | public override void StopNow(){base.StopNow();if (runningParallelTasks != null){foreach (ParallelTask t in runningParallelTasks){if (t != null){t.Task.StopNow();}}}}
| train | false |
3,027 | public UpdateLogPatternResult updateLogPattern(UpdateLogPatternRequest request) {request = beforeClientExecution(request);return executeUpdateLogPattern(request);}
| [
"public",
"UpdateLogPatternResult",
"updateLogPattern",
"(",
"UpdateLogPatternRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateLogPattern",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateLogPatternResponse UpdateLogPattern(UpdateLogPatternRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateLogPatternRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateLogPatternResponseUnmarshaller.Instance;return Invoke<UpdateLogPatternResponse>(request,... | train | false |
3,028 | public FileMode getMode() {return mode;}
| [
"public",
"FileMode",
"getMode",
"(",
")",
"{",
"return",
"mode",
";",
"}"
] | public override FileMode GetMode(){return mode;}
| train | false |
3,029 | public ValueEval getEvalForCell(int sheetIndex, int rowIndex, int columnIndex) {return getSheetEvaluator(sheetIndex).getEvalForCell(rowIndex, columnIndex);}
| [
"public",
"ValueEval",
"getEvalForCell",
"(",
"int",
"sheetIndex",
",",
"int",
"rowIndex",
",",
"int",
"columnIndex",
")",
"{",
"return",
"getSheetEvaluator",
"(",
"sheetIndex",
")",
".",
"getEvalForCell",
"(",
"rowIndex",
",",
"columnIndex",
")",
";",
"}"
] | public ValueEval GetEvalForCell(int sheetIndex, int rowIndex, int columnIndex){return GetSheetEvaluator(sheetIndex).GetEvalForCell(rowIndex, columnIndex);}
| train | false |
3,030 | public String toString() {final StringBuilder buffer = new StringBuilder();for (Class<?> clazz = getClass(); clazz != null; clazz = clazz.getSuperclass()) {if (!clazz.isAnonymousClass()) {buffer.append(clazz.getSimpleName());break;}}buffer.append('(');final List<? extends IndexReader> subReaders = getSequentialSubReade... | [
"public",
"String",
"toString",
"(",
")",
"{",
"final",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"for",
"(",
"Class",
"<",
"?",
">",
"clazz",
"=",
"getClass",
"(",
")",
";",
"clazz",
"!=",
"null",
";",
"clazz",
"=",
"cla... | public override string ToString(){StringBuilder buffer = new StringBuilder();for (Type clazz = this.GetType(); clazz != null; clazz = clazz.GetTypeInfo().BaseType){if (clazz.Name != null){buffer.Append(clazz.Name);break;}}buffer.Append('(');var subReaders = GetSequentialSubReaders();Debug.Assert(subReaders != null);if ... | train | false |
3,031 | public CreateTypedLinkFacetResult createTypedLinkFacet(CreateTypedLinkFacetRequest request) {request = beforeClientExecution(request);return executeCreateTypedLinkFacet(request);}
| [
"public",
"CreateTypedLinkFacetResult",
"createTypedLinkFacet",
"(",
"CreateTypedLinkFacetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateTypedLinkFacet",
"(",
"request",
")",
";",
"}"
] | public virtual CreateTypedLinkFacetResponse CreateTypedLinkFacet(CreateTypedLinkFacetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTypedLinkFacetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTypedLinkFacetResponseUnmarshaller.Instance;return Invoke<CreateTypedLin... | train | true |
3,032 | public PutResolverRulePolicyResult putResolverRulePolicy(PutResolverRulePolicyRequest request) {request = beforeClientExecution(request);return executePutResolverRulePolicy(request);}
| [
"public",
"PutResolverRulePolicyResult",
"putResolverRulePolicy",
"(",
"PutResolverRulePolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutResolverRulePolicy",
"(",
"request",
")",
";",
"}"
] | public virtual PutResolverRulePolicyResponse PutResolverRulePolicy(PutResolverRulePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutResolverRulePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = PutResolverRulePolicyResponseUnmarshaller.Instance;return Invoke<PutResolv... | train | true |
3,033 | public ConfirmPublicVirtualInterfaceResult confirmPublicVirtualInterface(ConfirmPublicVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeConfirmPublicVirtualInterface(request);}
| [
"public",
"ConfirmPublicVirtualInterfaceResult",
"confirmPublicVirtualInterface",
"(",
"ConfirmPublicVirtualInterfaceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeConfirmPublicVirtualInterface",
"(",
"request",... | public virtual ConfirmPublicVirtualInterfaceResponse ConfirmPublicVirtualInterface(ConfirmPublicVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ConfirmPublicVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = ConfirmPublicVirtualInterfaceResponseUnmar... | train | true |
3,034 | public FieldInfo add(FieldInfo fi) {return add(fi, -1);}
| [
"public",
"FieldInfo",
"add",
"(",
"FieldInfo",
"fi",
")",
"{",
"return",
"add",
"(",
"fi",
",",
"-",
"1",
")",
";",
"}"
] | public FieldInfo Add(FieldInfo fi){return AddOrUpdateInternal(fi.Name, fi.Number, fi.IsIndexed, fi.HasVectors, fi.OmitsNorms, fi.HasPayloads, fi.IndexOptions, fi.DocValuesType, fi.NormType);}
| train | false |
3,035 | public AssociateFleetResult associateFleet(AssociateFleetRequest request) {request = beforeClientExecution(request);return executeAssociateFleet(request);}
| [
"public",
"AssociateFleetResult",
"associateFleet",
"(",
"AssociateFleetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociateFleet",
"(",
"request",
")",
";",
"}"
] | public virtual AssociateFleetResponse AssociateFleet(AssociateFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateFleetResponseUnmarshaller.Instance;return Invoke<AssociateFleetResponse>(request, options);}
| train | true |
3,036 | public void close() {ctx.close();}
| [
"public",
"void",
"close",
"(",
")",
"{",
"ctx",
".",
"close",
"(",
")",
";",
"}"
] | public override void Close(){wc.Release();}
| train | false |
3,037 | public InclusiveRange(long start, long end) {assert end >= start;this.start = start;this.end = end;}
| [
"public",
"InclusiveRange",
"(",
"long",
"start",
",",
"long",
"end",
")",
"{",
"assert",
"end",
">=",
"start",
";",
"this",
".",
"start",
"=",
"start",
";",
"this",
".",
"end",
"=",
"end",
";",
"}"
] | public InclusiveRange(long start, long end){Debug.Assert(end >= start);this.Start = start;this.End = end;}
| train | false |
3,038 | public UpdateProfilingGroupResult updateProfilingGroup(UpdateProfilingGroupRequest request) {request = beforeClientExecution(request);return executeUpdateProfilingGroup(request);}
| [
"public",
"UpdateProfilingGroupResult",
"updateProfilingGroup",
"(",
"UpdateProfilingGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateProfilingGroup",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateProfilingGroupResponse UpdateProfilingGroup(UpdateProfilingGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateProfilingGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateProfilingGroupResponseUnmarshaller.Instance;return Invoke<UpdateProfilin... | train | false |
3,039 | public void seekExact(long ord) throws IOException {throw new UnsupportedOperationException(getClass().getName()+" does not support seeking");}
| [
"public",
"void",
"seekExact",
"(",
"long",
"ord",
")",
"throws",
"IOException",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
"+",
"\" does not support seeking\"",
")",
";",
"}"
] | public override void SeekExact(long ord){throw new System.NotSupportedException(this.GetType().Name + " does not support seeking");}
| train | false |
3,040 | public DetectStackSetDriftResult detectStackSetDrift(DetectStackSetDriftRequest request) {request = beforeClientExecution(request);return executeDetectStackSetDrift(request);}
| [
"public",
"DetectStackSetDriftResult",
"detectStackSetDrift",
"(",
"DetectStackSetDriftRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDetectStackSetDrift",
"(",
"request",
")",
";",
"}"
] | public virtual DetectStackSetDriftResponse DetectStackSetDrift(DetectStackSetDriftRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectStackSetDriftRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectStackSetDriftResponseUnmarshaller.Instance;return Invoke<DetectStackSetDrift... | train | false |
3,041 | public ListConfigurationProfilesResult listConfigurationProfiles(ListConfigurationProfilesRequest request) {request = beforeClientExecution(request);return executeListConfigurationProfiles(request);}
| [
"public",
"ListConfigurationProfilesResult",
"listConfigurationProfiles",
"(",
"ListConfigurationProfilesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListConfigurationProfiles",
"(",
"request",
")",
";",
... | public virtual ListConfigurationProfilesResponse ListConfigurationProfiles(ListConfigurationProfilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListConfigurationProfilesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListConfigurationProfilesResponseUnmarshaller.Instance;ret... | train | false |
3,042 | public int getFormat() {return FORMAT_OTHER;}
| [
"public",
"int",
"getFormat",
"(",
")",
"{",
"return",
"FORMAT_OTHER",
";",
"}"
] | public virtual int GetFormat(){return FORMAT_OTHER;}
| train | false |
3,043 | public K lastKey() {Entry<K, V> entry = endpoint(false);if (entry == null) {throw new NoSuchElementException();}return entry.getKey();}
| [
"public",
"K",
"lastKey",
"(",
")",
"{",
"Entry",
"<",
"K",
",",
"V",
">",
"entry",
"=",
"endpoint",
"(",
"false",
")",
";",
"if",
"(",
"entry",
"==",
"null",
")",
"{",
"throw",
"new",
"NoSuchElementException",
"(",
")",
";",
"}",
"return",
"entry"... | public K lastKey(){java.util.MapClass.Entry<K, V> entry = this.endpoint(false);if (entry == null){throw new java.util.NoSuchElementException();}return entry.getKey();}
| train | false |
3,044 | public final void writeChars(String str) throws IOException {write(str.getBytes("UTF-16BE"));}
| [
"public",
"final",
"void",
"writeChars",
"(",
"String",
"str",
")",
"throws",
"IOException",
"{",
"write",
"(",
"str",
".",
"getBytes",
"(",
"\"UTF-16BE\"",
")",
")",
";",
"}"
] | public virtual void writeChars(string str){throw new System.NotImplementedException();}
| train | false |
3,045 | public UpdateFleetPortSettingsResult updateFleetPortSettings(UpdateFleetPortSettingsRequest request) {request = beforeClientExecution(request);return executeUpdateFleetPortSettings(request);}
| [
"public",
"UpdateFleetPortSettingsResult",
"updateFleetPortSettings",
"(",
"UpdateFleetPortSettingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateFleetPortSettings",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateFleetPortSettingsResponse UpdateFleetPortSettings(UpdateFleetPortSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFleetPortSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFleetPortSettingsResponseUnmarshaller.Instance;return Invoke... | train | true |
3,046 | public RuleTransition(RuleStartState ruleStart,int ruleIndex,int precedence,ATNState followState){super(ruleStart);this.ruleIndex = ruleIndex;this.precedence = precedence;this.followState = followState;}
| [
"public",
"RuleTransition",
"(",
"RuleStartState",
"ruleStart",
",",
"int",
"ruleIndex",
",",
"int",
"precedence",
",",
"ATNState",
"followState",
")",
"{",
"super",
"(",
"ruleStart",
")",
";",
"this",
".",
"ruleIndex",
"=",
"ruleIndex",
";",
"this",
".",
"p... | public RuleTransition(RuleStartState ruleStart, int ruleIndex, int precedence, ATNState followState): base(ruleStart){this.ruleIndex = ruleIndex;this.precedence = precedence;this.followState = followState;}
| train | false |
3,047 | public GetConferenceProviderResult getConferenceProvider(GetConferenceProviderRequest request) {request = beforeClientExecution(request);return executeGetConferenceProvider(request);}
| [
"public",
"GetConferenceProviderResult",
"getConferenceProvider",
"(",
"GetConferenceProviderRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetConferenceProvider",
"(",
"request",
")",
";",
"}"
] | public virtual GetConferenceProviderResponse GetConferenceProvider(GetConferenceProviderRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetConferenceProviderRequestMarshaller.Instance;options.ResponseUnmarshaller = GetConferenceProviderResponseUnmarshaller.Instance;return Invoke<GetConfer... | train | true |
3,049 | public void serialize(LittleEndianOutput out) {out.write(_data);}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"write",
"(",
"_data",
")",
";",
"}"
] | public override void Serialize(ILittleEndianOutput out1){out1.Write(field_1_data);}
| train | false |
3,050 | public void upgrade() throws IOException {if (!DirectoryReader.indexExists(dir)) {throw new IndexNotFoundException(dir.toString());}if (!deletePriorCommits) {final Collection<IndexCommit> commits = DirectoryReader.listCommits(dir);if (commits.size() > 1) {throw new IllegalArgumentException("This tool was invoked to not... | [
"public",
"void",
"upgrade",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"!",
"DirectoryReader",
".",
"indexExists",
"(",
"dir",
")",
")",
"{",
"throw",
"new",
"IndexNotFoundException",
"(",
"dir",
".",
"toString",
"(",
")",
")",
";",
"}",
"if",
... | public void Upgrade(){if (!DirectoryReader.IndexExists(dir)){throw new IndexNotFoundException(dir.ToString());}if (!deletePriorCommits){ICollection<IndexCommit> commits = DirectoryReader.ListCommits(dir);if (commits.Count > 1){throw new System.ArgumentException("this tool was invoked to not delete prior commit points, ... | train | false |
3,051 | public byte[] getThumbnailAsWMF() throws HPSFException{if (!(getClipboardFormatTag() == CFTAG_WINDOWS))throw new HPSFException("Clipboard Format Tag of Thumbnail must " +"be CFTAG_WINDOWS.");if (!(getClipboardFormat() == CF_METAFILEPICT)) {throw new HPSFException("Clipboard Format of Thumbnail must " +"be CF_METAFILEPI... | [
"public",
"byte",
"[",
"]",
"getThumbnailAsWMF",
"(",
")",
"throws",
"HPSFException",
"{",
"if",
"(",
"!",
"(",
"getClipboardFormatTag",
"(",
")",
"==",
"CFTAG_WINDOWS",
")",
")",
"throw",
"new",
"HPSFException",
"(",
"\"Clipboard Format Tag of Thumbnail must \"",
... | public byte[] GetThumbnailAsWMF(){if (!(ClipboardFormatTag == CFTAG_WINDOWS))throw new HPSFException("Clipboard Format Tag of Thumbnail must " +"be CFTAG_WINDOWS.");if (!(GetClipboardFormat() == CF_METAFILEPICT))throw new HPSFException("Clipboard Format of Thumbnail must " +"be CF_METAFILEPICT.");else{byte[] thumbnail ... | train | false |
3,052 | public DescribeKeyPhrasesDetectionJobResult describeKeyPhrasesDetectionJob(DescribeKeyPhrasesDetectionJobRequest request) {request = beforeClientExecution(request);return executeDescribeKeyPhrasesDetectionJob(request);}
| [
"public",
"DescribeKeyPhrasesDetectionJobResult",
"describeKeyPhrasesDetectionJob",
"(",
"DescribeKeyPhrasesDetectionJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeKeyPhrasesDetectionJob",
"(",
"reque... | public virtual DescribeKeyPhrasesDetectionJobResponse DescribeKeyPhrasesDetectionJob(DescribeKeyPhrasesDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeKeyPhrasesDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeKeyPhrasesDetectionJobResponse... | train | true |
3,053 | public LabelAndValue(String label, Number value) {this.label = label;this.value = value;}
| [
"public",
"LabelAndValue",
"(",
"String",
"label",
",",
"Number",
"value",
")",
"{",
"this",
".",
"label",
"=",
"label",
";",
"this",
".",
"value",
"=",
"value",
";",
"}"
] | public LabelAndValue(string label, int value){this.Label = label;this.Value = value;this.TypeOfValue = typeof(int);}
| train | false |
3,054 | public RebaseCommand setUpstreamName(String upstreamName) {if (upstreamCommit == null) {throw new IllegalStateException("setUpstreamName must be called after setUpstream."); }this.upstreamCommitName = upstreamName;return this;}
| [
"public",
"RebaseCommand",
"setUpstreamName",
"(",
"String",
"upstreamName",
")",
"{",
"if",
"(",
"upstreamCommit",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"setUpstreamName must be called after setUpstream.\"",
")",
";",
"}",
"this",
".... | public virtual NGit.Api.RebaseCommand SetUpstreamName(string upstreamName){if (upstreamCommit == null){throw new InvalidOperationException("setUpstreamName must be called after setUpstream.");}this.upstreamCommitName = upstreamName;return this;}
| train | false |
3,055 | public SearchDashboardsResult searchDashboards(SearchDashboardsRequest request) {request = beforeClientExecution(request);return executeSearchDashboards(request);}
| [
"public",
"SearchDashboardsResult",
"searchDashboards",
"(",
"SearchDashboardsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSearchDashboards",
"(",
"request",
")",
";",
"}"
] | public virtual SearchDashboardsResponse SearchDashboards(SearchDashboardsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchDashboardsRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchDashboardsResponseUnmarshaller.Instance;return Invoke<SearchDashboardsResponse>(request,... | train | false |
3,056 | public ClusterSubnetGroup createClusterSubnetGroup(CreateClusterSubnetGroupRequest request) {request = beforeClientExecution(request);return executeCreateClusterSubnetGroup(request);}
| [
"public",
"ClusterSubnetGroup",
"createClusterSubnetGroup",
"(",
"CreateClusterSubnetGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateClusterSubnetGroup",
"(",
"request",
")",
";",
"}"
] | public virtual CreateClusterSubnetGroupResponse CreateClusterSubnetGroup(CreateClusterSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateClusterSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateClusterSubnetGroupResponseUnmarshaller.Instance;return I... | train | true |
3,057 | public static int endOfFooterLineKey(byte[] raw, int ptr) {try {for (;;) {final byte c = raw[ptr];if (footerLineKeyChars[c] == 0) {if (c == ':')return ptr;return -1;}ptr++;}} catch (ArrayIndexOutOfBoundsException e) {return -1;}}
| [
"public",
"static",
"int",
"endOfFooterLineKey",
"(",
"byte",
"[",
"]",
"raw",
",",
"int",
"ptr",
")",
"{",
"try",
"{",
"for",
"(",
";",
";",
")",
"{",
"final",
"byte",
"c",
"=",
"raw",
"[",
"ptr",
"]",
";",
"if",
"(",
"footerLineKeyChars",
"[",
... | public static int EndOfFooterLineKey(byte[] raw, int ptr){try{for (; ; ){byte c = raw[ptr];if (footerLineKeyChars[c] == 0){if (c == ':'){return ptr;}return -1;}ptr++;}}catch (IndexOutOfRangeException){return -1;}}
| train | false |
3,058 | public final char[] GetSuffix(int len) {char[] value = new char[len];System.arraycopy(buffer, bufferPosition - len, value, 0, len);return value;}
| [
"public",
"final",
"char",
"[",
"]",
"GetSuffix",
"(",
"int",
"len",
")",
"{",
"char",
"[",
"]",
"value",
"=",
"new",
"char",
"[",
"len",
"]",
";",
"System",
".",
"arraycopy",
"(",
"buffer",
",",
"bufferPosition",
"-",
"len",
",",
"value",
",",
"0"... | public char[] GetSuffix(int len){char[] value = new char[len];System.Array.Copy(buffer, bufferPosition - len, value, 0, len);return value;}
| train | false |
3,059 | public boolean containsValue(Object value) {if(value instanceof CustomProperty) {return props.containsValue(value);}for(CustomProperty cp : props.values()) {if(cp.getValue() == value) {return true;}}return false;}
| [
"public",
"boolean",
"containsValue",
"(",
"Object",
"value",
")",
"{",
"if",
"(",
"value",
"instanceof",
"CustomProperty",
")",
"{",
"return",
"props",
".",
"containsValue",
"(",
"value",
")",
";",
"}",
"for",
"(",
"CustomProperty",
"cp",
":",
"props",
".... | public override bool ContainsValue(Object value){if (value is CustomProperty){return base.ContainsValue(value);}else{foreach (object cp in base.Values){if ((cp as CustomProperty).Value == value){return true;}}}return false;}
| train | false |
3,060 | public RecordInputStream createDecryptingStream(InputStream original) {String userPassword = Biff8EncryptionKey.getCurrentUserPassword();if (userPassword == null) {userPassword = Decryptor.DEFAULT_PASSWORD;}EncryptionInfo info = _filePassRec.getEncryptionInfo();try {if (!info.getDecryptor().verifyPassword(userPassword)... | [
"public",
"RecordInputStream",
"createDecryptingStream",
"(",
"InputStream",
"original",
")",
"{",
"String",
"userPassword",
"=",
"Biff8EncryptionKey",
".",
"getCurrentUserPassword",
"(",
")",
";",
"if",
"(",
"userPassword",
"==",
"null",
")",
"{",
"userPassword",
"... | public RecordInputStream CreateDecryptingStream(Stream original){FilePassRecord fpr = _filePassRec;String userPassword = Biff8EncryptionKey.CurrentUserPassword;Biff8EncryptionKey key;if (userPassword == null){key = Biff8EncryptionKey.Create(fpr.DocId);}else{key = Biff8EncryptionKey.Create(userPassword, fpr.DocId);}if (... | train | false |
3,061 | public UpdateComponentConfigurationResult updateComponentConfiguration(UpdateComponentConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateComponentConfiguration(request);}
| [
"public",
"UpdateComponentConfigurationResult",
"updateComponentConfiguration",
"(",
"UpdateComponentConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateComponentConfiguration",
"(",
"request",
"... | public virtual UpdateComponentConfigurationResponse UpdateComponentConfiguration(UpdateComponentConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateComponentConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateComponentConfigurationResponseUnmarshall... | train | false |
3,062 | public String toString() {CellReference crA = new CellReference(getFirstRow(), getFirstColumn());CellReference crB = new CellReference(getLastRow(), getLastColumn());return getClass().getName() + "[" +_evaluator.getSheetNameRange() +'!' +crA.formatAsString() +':' +crB.formatAsString() +"]";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"CellReference",
"crA",
"=",
"new",
"CellReference",
"(",
"getFirstRow",
"(",
")",
",",
"getFirstColumn",
"(",
")",
")",
";",
"CellReference",
"crB",
"=",
"new",
"CellReference",
"(",
"getLastRow",
"(",
")",
"... | public override String ToString(){CellReference crA = new CellReference(FirstRow, FirstColumn);CellReference crB = new CellReference(LastRow, LastColumn);StringBuilder sb = new StringBuilder();sb.Append(GetType().Name).Append("[");sb.Append(_evaluator.SheetNameRange);sb.Append('!');sb.Append(crA.FormatAsString());sb.Ap... | train | false |
3,063 | public SetDesiredCapacityResult setDesiredCapacity(SetDesiredCapacityRequest request) {request = beforeClientExecution(request);return executeSetDesiredCapacity(request);}
| [
"public",
"SetDesiredCapacityResult",
"setDesiredCapacity",
"(",
"SetDesiredCapacityRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSetDesiredCapacity",
"(",
"request",
")",
";",
"}"
] | public virtual SetDesiredCapacityResponse SetDesiredCapacity(SetDesiredCapacityRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetDesiredCapacityRequestMarshaller.Instance;options.ResponseUnmarshaller = SetDesiredCapacityResponseUnmarshaller.Instance;return Invoke<SetDesiredCapacityRespon... | train | true |
3,064 | public long getTotalLLATNLookaheadOps() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.length; i++) {k += decisions[i].LL_ATNTransitions;}return k;}
| [
"public",
"long",
"getTotalLLATNLookaheadOps",
"(",
")",
"{",
"DecisionInfo",
"[",
"]",
"decisions",
"=",
"atnSimulator",
".",
"getDecisionInfo",
"(",
")",
";",
"long",
"k",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"decisions",
"... | public long getTotalLLATNLookaheadOps(){DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.Length; i++){k += decisions[i].LL_ATNTransitions;}return k;}
| train | false |
3,065 | public ListQueuesResult listQueues(ListQueuesRequest request) {request = beforeClientExecution(request);return executeListQueues(request);}
| [
"public",
"ListQueuesResult",
"listQueues",
"(",
"ListQueuesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListQueues",
"(",
"request",
")",
";",
"}"
] | public virtual ListQueuesResponse ListQueues(ListQueuesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListQueuesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListQueuesResponseUnmarshaller.Instance;return Invoke<ListQueuesResponse>(request, options);}
| train | true |
3,067 | public EnableVolumeIOResult enableVolumeIO(EnableVolumeIORequest request) {request = beforeClientExecution(request);return executeEnableVolumeIO(request);}
| [
"public",
"EnableVolumeIOResult",
"enableVolumeIO",
"(",
"EnableVolumeIORequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeEnableVolumeIO",
"(",
"request",
")",
";",
"}"
] | public virtual EnableVolumeIOResponse EnableVolumeIO(EnableVolumeIORequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableVolumeIORequestMarshaller.Instance;options.ResponseUnmarshaller = EnableVolumeIOResponseUnmarshaller.Instance;return Invoke<EnableVolumeIOResponse>(request, options);}
| train | true |
3,068 | public long seek(BytesRef target) throws IOException {current = fstEnum.seekFloor(target);return current.output;}
| [
"public",
"long",
"seek",
"(",
"BytesRef",
"target",
")",
"throws",
"IOException",
"{",
"current",
"=",
"fstEnum",
".",
"seekFloor",
"(",
"target",
")",
";",
"return",
"current",
".",
"output",
";",
"}"
] | public override long Seek(BytesRef target){current = fstEnum.SeekFloor(target);if (current.Output.HasValue){return current.Output.Value;}else{throw new NullReferenceException("_current.Output is null"); }}
| train | false |
3,069 | public GetStreamingDistributionConfigRequest(String id) {setId(id);}
| [
"public",
"GetStreamingDistributionConfigRequest",
"(",
"String",
"id",
")",
"{",
"setId",
"(",
"id",
")",
";",
"}"
] | public GetStreamingDistributionConfigRequest(string id){_id = id;}
| train | false |
3,070 | public WordnetSynonymParser(boolean dedup, boolean expand, Analyzer analyzer) {super(dedup, analyzer);this.expand = expand;}
| [
"public",
"WordnetSynonymParser",
"(",
"boolean",
"dedup",
",",
"boolean",
"expand",
",",
"Analyzer",
"analyzer",
")",
"{",
"super",
"(",
"dedup",
",",
"analyzer",
")",
";",
"this",
".",
"expand",
"=",
"expand",
";",
"}"
] | public WordnetSynonymParser(bool dedup, bool expand, Analyzer analyzer): base(dedup, analyzer){this.expand = expand;}
| train | false |
3,071 | public DescribeProblemResult describeProblem(DescribeProblemRequest request) {request = beforeClientExecution(request);return executeDescribeProblem(request);}
| [
"public",
"DescribeProblemResult",
"describeProblem",
"(",
"DescribeProblemRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeProblem",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeProblemResponse DescribeProblem(DescribeProblemRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeProblemRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeProblemResponseUnmarshaller.Instance;return Invoke<DescribeProblemResponse>(request, optio... | train | false |
3,072 | public E floor(E e) {return backingMap.floorKey(e);}
| [
"public",
"E",
"floor",
"(",
"E",
"e",
")",
"{",
"return",
"backingMap",
".",
"floorKey",
"(",
"e",
")",
";",
"}"
] | public virtual E floor(E e){return backingMap.floorKey(e);}
| train | false |
3,073 | public IrishLowerCaseFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"IrishLowerCaseFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unkn... | public IrishLowerCaseFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
| train | false |
3,074 | public EnableAvailabilityZonesForLoadBalancerRequest(String loadBalancerName, java.util.List<String> availabilityZones) {setLoadBalancerName(loadBalancerName);setAvailabilityZones(availabilityZones);}
| [
"public",
"EnableAvailabilityZonesForLoadBalancerRequest",
"(",
"String",
"loadBalancerName",
",",
"java",
".",
"util",
".",
"List",
"<",
"String",
">",
"availabilityZones",
")",
"{",
"setLoadBalancerName",
"(",
"loadBalancerName",
")",
";",
"setAvailabilityZones",
"(",... | public EnableAvailabilityZonesForLoadBalancerRequest(string loadBalancerName, List<string> availabilityZones){_loadBalancerName = loadBalancerName;_availabilityZones = availabilityZones;}
| train | false |
3,075 | public DescribeLoadBalancerTargetGroupsResult describeLoadBalancerTargetGroups(DescribeLoadBalancerTargetGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeLoadBalancerTargetGroups(request);}
| [
"public",
"DescribeLoadBalancerTargetGroupsResult",
"describeLoadBalancerTargetGroups",
"(",
"DescribeLoadBalancerTargetGroupsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeLoadBalancerTargetGroups",
"(",
... | public virtual DescribeLoadBalancerTargetGroupsResponse DescribeLoadBalancerTargetGroups(DescribeLoadBalancerTargetGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoadBalancerTargetGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoadBalancerTargetGrou... | train | true |
3,076 | public Snapshot copySnapshot(CopySnapshotRequest request) {request = beforeClientExecution(request);return executeCopySnapshot(request);}
| [
"public",
"Snapshot",
"copySnapshot",
"(",
"CopySnapshotRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCopySnapshot",
"(",
"request",
")",
";",
"}"
] | public virtual CopySnapshotResponse CopySnapshot(CopySnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopySnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CopySnapshotResponseUnmarshaller.Instance;return Invoke<CopySnapshotResponse>(request, options);}
| train | true |
3,077 | public Map<String, String> readForHideArrayItem(String response, String endpoint) {return readForHideItem(new StringCharacterIterator(response), endpoint, FIRST_POSITION);}
| [
"public",
"Map",
"<",
"String",
",",
"String",
">",
"readForHideArrayItem",
"(",
"String",
"response",
",",
"String",
"endpoint",
")",
"{",
"return",
"readForHideItem",
"(",
"new",
"StringCharacterIterator",
"(",
"response",
")",
",",
"endpoint",
",",
"FIRST_POS... | public Dictionary<string, string> ReadForHideArrayItem(string response, string endpoint){return ReadForHideArrayItem(response.GetEnumerator(), endpoint);}
| train | false |
3,078 | public LbsDropData(LittleEndianInput in) {_wStyle = in.readUShort();_cLine = in.readUShort();_dxMin = in.readUShort();_str = StringUtil.readUnicodeString(in);if(StringUtil.getEncodedSize(_str) % 2 != 0){_unused = in.readByte();}}
| [
"public",
"LbsDropData",
"(",
"LittleEndianInput",
"in",
")",
"{",
"_wStyle",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"_cLine",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"_dxMin",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"_str",
"=",
"Str... | public LbsDropData(ILittleEndianInput in1){_wStyle = in1.ReadUShort();_cLine = in1.ReadUShort();_dxMin = in1.ReadUShort();_str = StringUtil.ReadUnicodeString(in1);if(StringUtil.GetEncodedSize(_str) % 2 != 0){_unused = (byte)in1.ReadByte();}}
| train | false |
3,079 | public void decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block = blocks[blocksOffset++];for (int shift = 60; shift >= 0; shift -= 4) {values[valuesOffset++] = (block >>> shift) & 15;}}}
| [
"public",
"void",
"decode",
"(",
"long",
"[",
"]",
"blocks",
",",
"int",
"blocksOffset",
",",
"long",
"[",
"]",
"values",
",",
"int",
"valuesOffset",
",",
"int",
"iterations",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"iterations",
... | public override void Decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = blocks[blocksOffset++];for (int shift = 60; shift >= 0; shift -= 4){values[valuesOffset++] = ((long)((ulong)block >> shift)) & 15;}}}
| train | false |
3,080 | public int doLogic() throws Exception {final String docID = doc.get(DocMaker.ID_FIELD);if (docID == null) {throw new IllegalStateException("document must define the docid field");}final IndexWriter iw = getRunData().getIndexWriter();iw.updateDocument(new Term(DocMaker.ID_FIELD, docID), doc);return 1;}
| [
"public",
"int",
"doLogic",
"(",
")",
"throws",
"Exception",
"{",
"final",
"String",
"docID",
"=",
"doc",
".",
"get",
"(",
"DocMaker",
".",
"ID_FIELD",
")",
";",
"if",
"(",
"docID",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
... | public override int DoLogic(){string docID = doc.Get(DocMaker.ID_FIELD);if (docID == null){throw new InvalidOperationException("document must define the docid field");}IndexWriter iw = RunData.IndexWriter;iw.UpdateDocument(new Term(DocMaker.ID_FIELD, docID), doc);return 1;}
| train | false |
3,081 | public ListInstanceFleetsResult listInstanceFleets(ListInstanceFleetsRequest request) {request = beforeClientExecution(request);return executeListInstanceFleets(request);}
| [
"public",
"ListInstanceFleetsResult",
"listInstanceFleets",
"(",
"ListInstanceFleetsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListInstanceFleets",
"(",
"request",
")",
";",
"}"
] | public virtual ListInstanceFleetsResponse ListInstanceFleets(ListInstanceFleetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListInstanceFleetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListInstanceFleetsResponseUnmarshaller.Instance;return Invoke<ListInstanceFleetsRespon... | train | true |
3,082 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex,ValueEval arg0, ValueEval arg1) {return func.evaluate(srcRowIndex, srcColumnIndex, arg0, arg1);}
| [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"arg0",
",",
"ValueEval",
"arg1",
")",
"{",
"return",
"func",
".",
"evaluate",
"(",
"srcRowIndex",
",",
"srcColumnIndex",
",",
"arg0",
",",
"arg1",
... | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex,ValueEval arg0, ValueEval arg1){return func.Evaluate(srcRowIndex, srcColumnIndex, arg0, arg1);}
| train | false |
3,083 | public DescribeDBParametersResult describeDBParameters(DescribeDBParametersRequest request) {request = beforeClientExecution(request);return executeDescribeDBParameters(request);}
| [
"public",
"DescribeDBParametersResult",
"describeDBParameters",
"(",
"DescribeDBParametersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeDBParameters",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeDBParametersResponse DescribeDBParameters(DescribeDBParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBParametersResponseUnmarshaller.Instance;return Invoke<DescribeDBPara... | train | true |
3,084 | public CreateFargateProfileResult createFargateProfile(CreateFargateProfileRequest request) {request = beforeClientExecution(request);return executeCreateFargateProfile(request);}
| [
"public",
"CreateFargateProfileResult",
"createFargateProfile",
"(",
"CreateFargateProfileRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateFargateProfile",
"(",
"request",
")",
";",
"}"
] | public virtual CreateFargateProfileResponse CreateFargateProfile(CreateFargateProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFargateProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFargateProfileResponseUnmarshaller.Instance;return Invoke<CreateFargateP... | train | false |
3,085 | public char previous() {if (offset == start) {return DONE;}return string.charAt(--offset);}
| [
"public",
"char",
"previous",
"(",
")",
"{",
"if",
"(",
"offset",
"==",
"start",
")",
"{",
"return",
"DONE",
";",
"}",
"return",
"string",
".",
"charAt",
"(",
"--",
"offset",
")",
";",
"}"
] | public char previous(){if (offset == start){return java.text.CharacterIteratorClass.DONE;}return @string[--offset];}
| train | false |
3,086 | public List<String> call() throws GitAPIException {checkCallable();List<String> result = new ArrayList<>();if (tags.isEmpty())return result;try {setCallable(false);for (String tagName : tags) {if (tagName == null)continue;Ref currentRef = repo.findRef(tagName);if (currentRef == null)continue;String fullName = currentRe... | [
"public",
"List",
"<",
"String",
">",
"call",
"(",
")",
"throws",
"GitAPIException",
"{",
"checkCallable",
"(",
")",
";",
"List",
"<",
"String",
">",
"result",
"=",
"new",
"ArrayList",
"<",
">",
"(",
")",
";",
"if",
"(",
"tags",
".",
"isEmpty",
"(",
... | public override IList<string> Call(){CheckCallable();IList<string> result = new AList<string>();if (tags.IsEmpty()){return result;}try{SetCallable(false);foreach (string tagName in tags){if (tagName == null){continue;}Ref currentRef = repo.GetRef(tagName);if (currentRef == null){continue;}string fullName = currentRef.G... | train | false |
3,088 | public CreateSampleFindingsResult createSampleFindings(CreateSampleFindingsRequest request) {request = beforeClientExecution(request);return executeCreateSampleFindings(request);}
| [
"public",
"CreateSampleFindingsResult",
"createSampleFindings",
"(",
"CreateSampleFindingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateSampleFindings",
"(",
"request",
")",
";",
"}"
] | public virtual CreateSampleFindingsResponse CreateSampleFindings(CreateSampleFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSampleFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSampleFindingsResponseUnmarshaller.Instance;return Invoke<CreateSampleFi... | train | true |
3,090 | public boolean run(char[] s, int offset, int length) {int p = 0;int l = offset + length;for (int i = offset, cp = 0; i < l; i += Character.charCount(cp)) {p = step(p, cp = Character.codePointAt(s, i, l));if (p == -1) return false;}return accept.get(p);}
| [
"public",
"boolean",
"run",
"(",
"char",
"[",
"]",
"s",
",",
"int",
"offset",
",",
"int",
"length",
")",
"{",
"int",
"p",
"=",
"0",
";",
"int",
"l",
"=",
"offset",
"+",
"length",
";",
"for",
"(",
"int",
"i",
"=",
"offset",
",",
"cp",
"=",
"0"... | public virtual bool Run(char[] s, int offset, int length){int p = m_initial;int l = offset + length;for (int i = offset, cp = 0; i < l; i += Character.CharCount(cp)){p = Step(p, cp = Character.CodePointAt(s, i, l));if (p == -1) return false;}return m_accept[p];}
| train | false |
3,091 | public String toFormulaString() {return "ERR#";}
| [
"public",
"String",
"toFormulaString",
"(",
")",
"{",
"return",
"\"ERR#\"",
";",
"}"
] | public override String ToFormulaString(){return "ERR#";}
| train | false |
3,092 | public void close() {synchronized (lock) {if (out != null) {try {out.close();} catch (IOException e) {setError();}out = null;}}}
| [
"public",
"void",
"close",
"(",
")",
"{",
"synchronized",
"(",
"lock",
")",
"{",
"if",
"(",
"out",
"!=",
"null",
")",
"{",
"try",
"{",
"out",
".",
"close",
"(",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"setError",
"(",
")",
";... | public override void close(){lock (@lock){if (@out != null){try{@out.close();}catch (System.IO.IOException){setError();}@out = null;}}}
| train | false |
3,093 | public int fillFields( byte[] data, int offset,EscherRecordFactory recordFactory ){int bytesRemaining = readHeader( data, offset );short propertiesCount = readInstance( data, offset );int pos = offset + 8;EscherPropertyFactory f = new EscherPropertyFactory();properties.clear();properties.addAll( f.createProperties( dat... | [
"public",
"int",
"fillFields",
"(",
"byte",
"[",
"]",
"data",
",",
"int",
"offset",
",",
"EscherRecordFactory",
"recordFactory",
")",
"{",
"int",
"bytesRemaining",
"=",
"readHeader",
"(",
"data",
",",
"offset",
")",
";",
"short",
"propertiesCount",
"=",
"rea... | public override int FillFields(byte[] data, int offset,IEscherRecordFactory recordFactory){int bytesRemaining = ReadHeader(data, offset);short propertiesCount = ReadInstance(data, offset);int pos = offset + 8;EscherPropertyFactory f = new EscherPropertyFactory();properties = f.CreateProperties(data, pos, propertiesCoun... | train | false |
3,094 | public EveryNOrDocFreqTermSelector(int docFreqThresh, int interval) {this.interval = interval;this.docFreqThresh = docFreqThresh;count = interval;}
| [
"public",
"EveryNOrDocFreqTermSelector",
"(",
"int",
"docFreqThresh",
",",
"int",
"interval",
")",
"{",
"this",
".",
"interval",
"=",
"interval",
";",
"this",
".",
"docFreqThresh",
"=",
"docFreqThresh",
";",
"count",
"=",
"interval",
";",
"}"
] | public EveryNOrDocFreqTermSelector(int docFreqThresh, int interval){this.interval = interval;this.docFreqThresh = docFreqThresh;count = interval;}
| train | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.