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 |
|---|---|---|---|---|---|
7,117
|
public static int oversize(int minTargetSize, int bytesPerElement) {if (minTargetSize < 0) {throw new IllegalArgumentException("invalid array size " + minTargetSize);}if (minTargetSize == 0) {return 0;}if (minTargetSize > MAX_ARRAY_LENGTH) {throw new IllegalArgumentException("requested array size " + minTargetSize + " exceeds maximum array in java (" + MAX_ARRAY_LENGTH + ")");}int extra = minTargetSize >> 3;if (extra < 3) {extra = 3;}int newSize = minTargetSize + extra;if (newSize+7 < 0 || newSize+7 > MAX_ARRAY_LENGTH) {return MAX_ARRAY_LENGTH;}if (Constants.JRE_IS_64BIT) {switch(bytesPerElement) {case 4:return (newSize + 1) & 0x7ffffffe;case 2:return (newSize + 3) & 0x7ffffffc;case 1:return (newSize + 7) & 0x7ffffff8;case 8:default:return newSize;}} else {switch(bytesPerElement) {case 2:return (newSize + 1) & 0x7ffffffe;case 1:return (newSize + 3) & 0x7ffffffc;case 4:case 8:default:return newSize;}}}
|
[
"public",
"static",
"int",
"oversize",
"(",
"int",
"minTargetSize",
",",
"int",
"bytesPerElement",
")",
"{",
"if",
"(",
"minTargetSize",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"invalid array size \"",
"+",
"minTargetSize",
")",
";",
"}",
"if",
"(",
"minTargetSize",
"==",
"0",
")",
"{",
"return",
"0",
";",
"}",
"if",
"(",
"minTargetSize",
">",
"MAX_ARRAY_LENGTH",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"requested array size \"",
"+",
"minTargetSize",
"+",
"\" exceeds maximum array in java (\"",
"+",
"MAX_ARRAY_LENGTH",
"+",
"\")\"",
")",
";",
"}",
"int",
"extra",
"=",
"minTargetSize",
">",
">",
"3",
";",
"if",
"(",
"extra",
"<",
"3",
")",
"{",
"extra",
"=",
"3",
";",
"}",
"int",
"newSize",
"=",
"minTargetSize",
"+",
"extra",
";",
"if",
"(",
"newSize",
"+",
"7",
"<",
"0",
"||",
"newSize",
"+",
"7",
">",
"MAX_ARRAY_LENGTH",
")",
"{",
"return",
"MAX_ARRAY_LENGTH",
";",
"}",
"if",
"(",
"Constants",
".",
"JRE_IS_64BIT",
")",
"{",
"switch",
"(",
"bytesPerElement",
")",
"{",
"case",
"4",
":",
"return",
"(",
"newSize",
"+",
"1",
")",
"&",
"0x7ffffffe",
";",
"case",
"2",
":",
"return",
"(",
"newSize",
"+",
"3",
")",
"&",
"0x7ffffffc",
";",
"case",
"1",
":",
"return",
"(",
"newSize",
"+",
"7",
")",
"&",
"0x7ffffff8",
";",
"case",
"8",
":",
"default",
":",
"return",
"newSize",
";",
"}",
"}",
"else",
"{",
"switch",
"(",
"bytesPerElement",
")",
"{",
"case",
"2",
":",
"return",
"(",
"newSize",
"+",
"1",
")",
"&",
"0x7ffffffe",
";",
"case",
"1",
":",
"return",
"(",
"newSize",
"+",
"3",
")",
"&",
"0x7ffffffc",
";",
"case",
"4",
":",
"case",
"8",
":",
"default",
":",
"return",
"newSize",
";",
"}",
"}",
"}"
] |
public static int Oversize(int minTargetSize, int bytesPerElement){if (minTargetSize < 0){throw new System.ArgumentException("invalid array size " + minTargetSize);}if (minTargetSize == 0){return 0;}int extra = minTargetSize >> 3;if (extra < 3){extra = 3;}int newSize = minTargetSize + extra;if (newSize + 7 < 0){return int.MaxValue;}if (Constants.RUNTIME_IS_64BIT){switch (bytesPerElement){case 4:return (newSize + 1) & 0x7ffffffe;case 2:return (newSize + 3) & 0x7ffffffc;case 1:return (newSize + 7) & 0x7ffffff8;case 8:default:return newSize;}}else{switch (bytesPerElement){case 2:return (newSize + 1) & 0x7ffffffe;case 1:return (newSize + 3) & 0x7ffffffc;case 4:case 8:default:return newSize;}}}
|
train
| true
|
7,118
|
public IntervalSet complement(IntSet vocabulary) {if ( vocabulary==null || vocabulary.isNil() ) {return null; }IntervalSet vocabularyIS;if (vocabulary instanceof IntervalSet) {vocabularyIS = (IntervalSet)vocabulary;}else {vocabularyIS = new IntervalSet();vocabularyIS.addAll(vocabulary);}return vocabularyIS.subtract(this);}
|
[
"public",
"IntervalSet",
"complement",
"(",
"IntSet",
"vocabulary",
")",
"{",
"if",
"(",
"vocabulary",
"==",
"null",
"||",
"vocabulary",
".",
"isNil",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"IntervalSet",
"vocabularyIS",
";",
"if",
"(",
"vocabulary",
"instanceof",
"IntervalSet",
")",
"{",
"vocabularyIS",
"=",
"(",
"IntervalSet",
")",
"vocabulary",
";",
"}",
"else",
"{",
"vocabularyIS",
"=",
"new",
"IntervalSet",
"(",
")",
";",
"vocabularyIS",
".",
"addAll",
"(",
"vocabulary",
")",
";",
"}",
"return",
"vocabularyIS",
".",
"subtract",
"(",
"this",
")",
";",
"}"
] |
public virtual Antlr4.Runtime.Misc.IntervalSet Complement(IIntSet vocabulary){if (vocabulary == null || vocabulary.IsNil){return null;}Antlr4.Runtime.Misc.IntervalSet vocabularyIS;if (vocabulary is Antlr4.Runtime.Misc.IntervalSet){vocabularyIS = (Antlr4.Runtime.Misc.IntervalSet)vocabulary;}else{vocabularyIS = new Antlr4.Runtime.Misc.IntervalSet();vocabularyIS.AddAll(vocabulary);}return vocabularyIS.Subtract(this);}
|
train
| false
|
7,120
|
public GetApnsVoipSandboxChannelResult getApnsVoipSandboxChannel(GetApnsVoipSandboxChannelRequest request) {request = beforeClientExecution(request);return executeGetApnsVoipSandboxChannel(request);}
|
[
"public",
"GetApnsVoipSandboxChannelResult",
"getApnsVoipSandboxChannel",
"(",
"GetApnsVoipSandboxChannelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetApnsVoipSandboxChannel",
"(",
"request",
")",
";",
"}"
] |
public virtual GetApnsVoipSandboxChannelResponse GetApnsVoipSandboxChannel(GetApnsVoipSandboxChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApnsVoipSandboxChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApnsVoipSandboxChannelResponseUnmarshaller.Instance;return Invoke<GetApnsVoipSandboxChannelResponse>(request, options);}
|
train
| true
|
7,121
|
public TokenStream create(TokenStream input) {return new ArabicNormalizationFilter(input);}
|
[
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"ArabicNormalizationFilter",
"(",
"input",
")",
";",
"}"
] |
public override TokenStream Create(TokenStream input){return new ArabicNormalizationFilter(input);}
|
train
| false
|
7,122
|
@Override public boolean contains(Object o) {return Impl.this.containsValue(o);}
|
[
"@",
"Override",
"public",
"boolean",
"contains",
"(",
"Object",
"o",
")",
"{",
"return",
"Impl",
".",
"this",
".",
"containsValue",
"(",
"o",
")",
";",
"}"
] |
public override bool contains(object o){return this._enclosing.containsValue(o);}
|
train
| false
|
7,123
|
@Override public boolean isEmpty() {synchronized (mutex) {return c.isEmpty();}}
|
[
"@",
"Override",
"public",
"boolean",
"isEmpty",
"(",
")",
"{",
"synchronized",
"(",
"mutex",
")",
"{",
"return",
"c",
".",
"isEmpty",
"(",
")",
";",
"}",
"}"
] |
public virtual bool isEmpty(){lock (mutex){return c.isEmpty();}}
|
train
| false
|
7,124
|
public long get(int index) {return 0;}
|
[
"public",
"long",
"get",
"(",
"int",
"index",
")",
"{",
"return",
"0",
";",
"}"
] |
public override long Get(int index){return 0;}
|
train
| false
|
7,125
|
public DescribeSecurityGroupsResult describeSecurityGroups() {return describeSecurityGroups(new DescribeSecurityGroupsRequest());}
|
[
"public",
"DescribeSecurityGroupsResult",
"describeSecurityGroups",
"(",
")",
"{",
"return",
"describeSecurityGroups",
"(",
"new",
"DescribeSecurityGroupsRequest",
"(",
")",
")",
";",
"}"
] |
public virtual DescribeSecurityGroupsResponse DescribeSecurityGroups(){return DescribeSecurityGroups(new DescribeSecurityGroupsRequest());}
|
train
| false
|
7,126
|
public ListPartsRequest(String accountId, String vaultName, String uploadId) {setAccountId(accountId);setVaultName(vaultName);setUploadId(uploadId);}
|
[
"public",
"ListPartsRequest",
"(",
"String",
"accountId",
",",
"String",
"vaultName",
",",
"String",
"uploadId",
")",
"{",
"setAccountId",
"(",
"accountId",
")",
";",
"setVaultName",
"(",
"vaultName",
")",
";",
"setUploadId",
"(",
"uploadId",
")",
";",
"}"
] |
public ListPartsRequest(string accountId, string vaultName, string uploadId){_accountId = accountId;_vaultName = vaultName;_uploadId = uploadId;}
|
train
| false
|
7,127
|
public GetCloudFrontOriginAccessIdentityRequest(String id) {setId(id);}
|
[
"public",
"GetCloudFrontOriginAccessIdentityRequest",
"(",
"String",
"id",
")",
"{",
"setId",
"(",
"id",
")",
";",
"}"
] |
public GetCloudFrontOriginAccessIdentityRequest(string id){_id = id;}
|
train
| false
|
7,128
|
public DescribeAlarmHistoryResult describeAlarmHistory(DescribeAlarmHistoryRequest request) {request = beforeClientExecution(request);return executeDescribeAlarmHistory(request);}
|
[
"public",
"DescribeAlarmHistoryResult",
"describeAlarmHistory",
"(",
"DescribeAlarmHistoryRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeAlarmHistory",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeAlarmHistoryResponse DescribeAlarmHistory(DescribeAlarmHistoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAlarmHistoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAlarmHistoryResponseUnmarshaller.Instance;return Invoke<DescribeAlarmHistoryResponse>(request, options);}
|
train
| true
|
7,129
|
public DescribeJobRequest(String accountId, String vaultName, String jobId) {setAccountId(accountId);setVaultName(vaultName);setJobId(jobId);}
|
[
"public",
"DescribeJobRequest",
"(",
"String",
"accountId",
",",
"String",
"vaultName",
",",
"String",
"jobId",
")",
"{",
"setAccountId",
"(",
"accountId",
")",
";",
"setVaultName",
"(",
"vaultName",
")",
";",
"setJobId",
"(",
"jobId",
")",
";",
"}"
] |
public DescribeJobRequest(string accountId, string vaultName, string jobId){_accountId = accountId;_vaultName = vaultName;_jobId = jobId;}
|
train
| false
|
7,130
|
public DeleteTagCommand setTags(String... tags) {checkCallable();this.tags.clear();this.tags.addAll(Arrays.asList(tags));return this;}
|
[
"public",
"DeleteTagCommand",
"setTags",
"(",
"String",
"...",
"tags",
")",
"{",
"checkCallable",
"(",
")",
";",
"this",
".",
"tags",
".",
"clear",
"(",
")",
";",
"this",
".",
"tags",
".",
"addAll",
"(",
"Arrays",
".",
"asList",
"(",
"tags",
")",
")",
";",
"return",
"this",
";",
"}"
] |
public virtual NGit.Api.DeleteTagCommand SetTags(params string[] tags){CheckCallable();this.tags.Clear();foreach (string tagName in tags){this.tags.AddItem(tagName);}return this;}
|
train
| false
|
7,131
|
public ListVoiceConnectorGroupsResult listVoiceConnectorGroups(ListVoiceConnectorGroupsRequest request) {request = beforeClientExecution(request);return executeListVoiceConnectorGroups(request);}
|
[
"public",
"ListVoiceConnectorGroupsResult",
"listVoiceConnectorGroups",
"(",
"ListVoiceConnectorGroupsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListVoiceConnectorGroups",
"(",
"request",
")",
";",
"}"
] |
public virtual ListVoiceConnectorGroupsResponse ListVoiceConnectorGroups(ListVoiceConnectorGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListVoiceConnectorGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListVoiceConnectorGroupsResponseUnmarshaller.Instance;return Invoke<ListVoiceConnectorGroupsResponse>(request, options);}
|
train
| false
|
7,132
|
public Intercept() {func = new LinearRegressionFunction(FUNCTION.INTERCEPT);}
|
[
"public",
"Intercept",
"(",
")",
"{",
"func",
"=",
"new",
"LinearRegressionFunction",
"(",
"FUNCTION",
".",
"INTERCEPT",
")",
";",
"}"
] |
public Intercept(){func = new LinearRegressionFunction(LinearRegressionFunction.FUNCTION.INTERCEPT);}
|
train
| false
|
7,133
|
public ProvisionByoipCidrResult provisionByoipCidr(ProvisionByoipCidrRequest request) {request = beforeClientExecution(request);return executeProvisionByoipCidr(request);}
|
[
"public",
"ProvisionByoipCidrResult",
"provisionByoipCidr",
"(",
"ProvisionByoipCidrRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeProvisionByoipCidr",
"(",
"request",
")",
";",
"}"
] |
public virtual ProvisionByoipCidrResponse ProvisionByoipCidr(ProvisionByoipCidrRequest request){var options = new InvokeOptions();options.RequestMarshaller = ProvisionByoipCidrRequestMarshaller.Instance;options.ResponseUnmarshaller = ProvisionByoipCidrResponseUnmarshaller.Instance;return Invoke<ProvisionByoipCidrResponse>(request, options);}
|
train
| true
|
7,134
|
public BatchGetApplicationRevisionsResult batchGetApplicationRevisions(BatchGetApplicationRevisionsRequest request) {request = beforeClientExecution(request);return executeBatchGetApplicationRevisions(request);}
|
[
"public",
"BatchGetApplicationRevisionsResult",
"batchGetApplicationRevisions",
"(",
"BatchGetApplicationRevisionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeBatchGetApplicationRevisions",
"(",
"request",
")",
";",
"}"
] |
public virtual BatchGetApplicationRevisionsResponse BatchGetApplicationRevisions(BatchGetApplicationRevisionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetApplicationRevisionsRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetApplicationRevisionsResponseUnmarshaller.Instance;return Invoke<BatchGetApplicationRevisionsResponse>(request, options);}
|
train
| true
|
7,135
|
public void expandRow(int rowNumber) {if (rowNumber == -1)return;if (!isRowGroupCollapsed(rowNumber)) {return;}int startIdx = findStartOfRowOutlineGroup(rowNumber);RowRecord row = getRow(startIdx);int endIdx = findEndOfRowOutlineGroup(rowNumber);if (!isRowGroupHiddenByParent(rowNumber)) {for (int i = startIdx; i <= endIdx; i++) {RowRecord otherRow = getRow(i);if (row.getOutlineLevel() == otherRow.getOutlineLevel() || !isRowGroupCollapsed(i)) {otherRow.setZeroHeight(false);}}}getRow(endIdx + 1).setColapsed(false);}
|
[
"public",
"void",
"expandRow",
"(",
"int",
"rowNumber",
")",
"{",
"if",
"(",
"rowNumber",
"==",
"-",
"1",
")",
"return",
";",
"if",
"(",
"!",
"isRowGroupCollapsed",
"(",
"rowNumber",
")",
")",
"{",
"return",
";",
"}",
"int",
"startIdx",
"=",
"findStartOfRowOutlineGroup",
"(",
"rowNumber",
")",
";",
"RowRecord",
"row",
"=",
"getRow",
"(",
"startIdx",
")",
";",
"int",
"endIdx",
"=",
"findEndOfRowOutlineGroup",
"(",
"rowNumber",
")",
";",
"if",
"(",
"!",
"isRowGroupHiddenByParent",
"(",
"rowNumber",
")",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"startIdx",
";",
"i",
"<=",
"endIdx",
";",
"i",
"++",
")",
"{",
"RowRecord",
"otherRow",
"=",
"getRow",
"(",
"i",
")",
";",
"if",
"(",
"row",
".",
"getOutlineLevel",
"(",
")",
"==",
"otherRow",
".",
"getOutlineLevel",
"(",
")",
"||",
"!",
"isRowGroupCollapsed",
"(",
"i",
")",
")",
"{",
"otherRow",
".",
"setZeroHeight",
"(",
"false",
")",
";",
"}",
"}",
"}",
"getRow",
"(",
"endIdx",
"+",
"1",
")",
".",
"setColapsed",
"(",
"false",
")",
";",
"}"
] |
public void ExpandRow(int rowNumber){int idx = rowNumber;if (idx == -1)return;if (!IsRowGroupCollapsed(idx))return;int startIdx = FindStartOfRowOutlineGroup(idx);RowRecord row = GetRow(startIdx);int endIdx = FindEndOfRowOutlineGroup(idx);if (!IsRowGroupHiddenByParent(idx)){for (int i = startIdx; i <= endIdx; i++){if (row.OutlineLevel == GetRow(i).OutlineLevel)GetRow(i).ZeroHeight = (false);else if (!IsRowGroupCollapsed(i))GetRow(i).ZeroHeight = (false);}}GetRow(endIdx + 1).Colapsed = (false);}
|
train
| false
|
7,136
|
public GetSendQuotaResult getSendQuota(GetSendQuotaRequest request) {request = beforeClientExecution(request);return executeGetSendQuota(request);}
|
[
"public",
"GetSendQuotaResult",
"getSendQuota",
"(",
"GetSendQuotaRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetSendQuota",
"(",
"request",
")",
";",
"}"
] |
public virtual GetSendQuotaResponse GetSendQuota(GetSendQuotaRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSendQuotaRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSendQuotaResponseUnmarshaller.Instance;return Invoke<GetSendQuotaResponse>(request, options);}
|
train
| true
|
7,137
|
public FeatFormulaErr2(RecordInputStream in) {errorCheck = in.readInt();}
|
[
"public",
"FeatFormulaErr2",
"(",
"RecordInputStream",
"in",
")",
"{",
"errorCheck",
"=",
"in",
".",
"readInt",
"(",
")",
";",
"}"
] |
public FeatFormulaErr2(RecordInputStream in1){errorCheck = in1.ReadInt();}
|
train
| false
|
7,138
|
public DefineAnalysisSchemeResult defineAnalysisScheme(DefineAnalysisSchemeRequest request) {request = beforeClientExecution(request);return executeDefineAnalysisScheme(request);}
|
[
"public",
"DefineAnalysisSchemeResult",
"defineAnalysisScheme",
"(",
"DefineAnalysisSchemeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDefineAnalysisScheme",
"(",
"request",
")",
";",
"}"
] |
public virtual DefineAnalysisSchemeResponse DefineAnalysisScheme(DefineAnalysisSchemeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DefineAnalysisSchemeRequestMarshaller.Instance;options.ResponseUnmarshaller = DefineAnalysisSchemeResponseUnmarshaller.Instance;return Invoke<DefineAnalysisSchemeResponse>(request, options);}
|
train
| true
|
7,139
|
public boolean equals( Object o ) {return o instanceof IrishStemmer;}
|
[
"public",
"boolean",
"equals",
"(",
"Object",
"o",
")",
"{",
"return",
"o",
"instanceof",
"IrishStemmer",
";",
"}"
] |
public override bool Equals(object o){return o is IrishStemmer;}
|
train
| false
|
7,140
|
public UTF8Sequence() {bytes = new UTF8Byte[4];for(int i=0;i<4;i++) {bytes[i] = new UTF8Byte();}}
|
[
"public",
"UTF8Sequence",
"(",
")",
"{",
"bytes",
"=",
"new",
"UTF8Byte",
"[",
"4",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"4",
";",
"i",
"++",
")",
"{",
"bytes",
"[",
"i",
"]",
"=",
"new",
"UTF8Byte",
"(",
")",
";",
"}",
"}"
] |
public UTF8Sequence(){bytes = new UTF8Byte[4];for (int i = 0; i < 4; i++){bytes[i] = new UTF8Byte();}}
|
train
| false
|
7,141
|
public ListPhotosRequest() {super("CloudPhoto", "2017-07-11", "ListPhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
|
[
"public",
"ListPhotosRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"ListPhotos\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] |
public ListPhotosRequest(): base("CloudPhoto", "2017-07-11", "ListPhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
|
train
| false
|
7,142
|
public RegisterStreamConsumerResult registerStreamConsumer(RegisterStreamConsumerRequest request) {request = beforeClientExecution(request);return executeRegisterStreamConsumer(request);}
|
[
"public",
"RegisterStreamConsumerResult",
"registerStreamConsumer",
"(",
"RegisterStreamConsumerRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRegisterStreamConsumer",
"(",
"request",
")",
";",
"}"
] |
public virtual RegisterStreamConsumerResponse RegisterStreamConsumer(RegisterStreamConsumerRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterStreamConsumerRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterStreamConsumerResponseUnmarshaller.Instance;return Invoke<RegisterStreamConsumerResponse>(request, options);}
|
train
| true
|
7,143
|
public Formula copy() {return this;}
|
[
"public",
"Formula",
"copy",
"(",
")",
"{",
"return",
"this",
";",
"}"
] |
public Formula Copy(){return this;}
|
train
| false
|
7,144
|
public boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;MergeInfo other = (MergeInfo) obj;if (estimatedMergeBytes != other.estimatedMergeBytes)return false;if (isExternal != other.isExternal)return false;if (mergeMaxNumSegments != other.mergeMaxNumSegments)return false;if (totalMaxDoc != other.totalMaxDoc)return false;return true;}
|
[
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"this",
"==",
"obj",
")",
"return",
"true",
";",
"if",
"(",
"obj",
"==",
"null",
")",
"return",
"false",
";",
"if",
"(",
"getClass",
"(",
")",
"!=",
"obj",
".",
"getClass",
"(",
")",
")",
"return",
"false",
";",
"MergeInfo",
"other",
"=",
"(",
"MergeInfo",
")",
"obj",
";",
"if",
"(",
"estimatedMergeBytes",
"!=",
"other",
".",
"estimatedMergeBytes",
")",
"return",
"false",
";",
"if",
"(",
"isExternal",
"!=",
"other",
".",
"isExternal",
")",
"return",
"false",
";",
"if",
"(",
"mergeMaxNumSegments",
"!=",
"other",
".",
"mergeMaxNumSegments",
")",
"return",
"false",
";",
"if",
"(",
"totalMaxDoc",
"!=",
"other",
".",
"totalMaxDoc",
")",
"return",
"false",
";",
"return",
"true",
";",
"}"
] |
public override bool Equals(object obj){if (this == obj){return true;}if (obj == null){return false;}if (this.GetType() != obj.GetType()){return false;}MergeInfo other = (MergeInfo)obj;if (EstimatedMergeBytes != other.EstimatedMergeBytes){return false;}if (IsExternal != other.IsExternal){return false;}if (MergeMaxNumSegments != other.MergeMaxNumSegments){return false;}if (TotalDocCount != other.TotalDocCount){return false;}return true;}
|
train
| false
|
7,145
|
public float score(float freq, long norm) {float sum = 0.0f;for (SimScorer subScorer : subScorers) {sum += subScorer.score(freq, norm);}return sum;}
|
[
"public",
"float",
"score",
"(",
"float",
"freq",
",",
"long",
"norm",
")",
"{",
"float",
"sum",
"=",
"0.0f",
";",
"for",
"(",
"SimScorer",
"subScorer",
":",
"subScorers",
")",
"{",
"sum",
"+=",
"subScorer",
".",
"score",
"(",
"freq",
",",
"norm",
")",
";",
"}",
"return",
"sum",
";",
"}"
] |
public override float Score(int doc, float freq){float sum = 0.0f;foreach (SimScorer subScorer in subScorers){sum += subScorer.Score(doc, freq);}return sum;}
|
train
| false
|
7,146
|
public AddTagsRequest(String resourceId, java.util.List<Tag> tags) {setResourceId(resourceId);setTags(tags);}
|
[
"public",
"AddTagsRequest",
"(",
"String",
"resourceId",
",",
"java",
".",
"util",
".",
"List",
"<",
"Tag",
">",
"tags",
")",
"{",
"setResourceId",
"(",
"resourceId",
")",
";",
"setTags",
"(",
"tags",
")",
";",
"}"
] |
public AddTagsRequest(string resourceId, List<Tag> tags){_resourceId = resourceId;_tags = tags;}
|
train
| false
|
7,147
|
public DescribeEC2InstanceLimitsResult describeEC2InstanceLimits(DescribeEC2InstanceLimitsRequest request) {request = beforeClientExecution(request);return executeDescribeEC2InstanceLimits(request);}
|
[
"public",
"DescribeEC2InstanceLimitsResult",
"describeEC2InstanceLimits",
"(",
"DescribeEC2InstanceLimitsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeEC2InstanceLimits",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeEC2InstanceLimitsResponse DescribeEC2InstanceLimits(DescribeEC2InstanceLimitsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEC2InstanceLimitsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEC2InstanceLimitsResponseUnmarshaller.Instance;return Invoke<DescribeEC2InstanceLimitsResponse>(request, options);}
|
train
| true
|
7,148
|
public BlameGenerator setFollowFileRenames(boolean follow) {if (follow)renameDetector = new RenameDetector(getRepository());elserenameDetector = null;return this;}
|
[
"public",
"BlameGenerator",
"setFollowFileRenames",
"(",
"boolean",
"follow",
")",
"{",
"if",
"(",
"follow",
")",
"renameDetector",
"=",
"new",
"RenameDetector",
"(",
"getRepository",
"(",
")",
")",
";",
"elserenameDetector",
"=",
"null",
";",
"return",
"this",
";",
"}"
] |
public virtual NGit.Blame.BlameGenerator SetFollowFileRenames(bool follow){if (follow){renameDetector = new RenameDetector(GetRepository());}else{renameDetector = null;}return this;}
|
train
| false
|
7,149
|
public GetStagesResult getStages(GetStagesRequest request) {request = beforeClientExecution(request);return executeGetStages(request);}
|
[
"public",
"GetStagesResult",
"getStages",
"(",
"GetStagesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetStages",
"(",
"request",
")",
";",
"}"
] |
public virtual GetStagesResponse GetStages(GetStagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetStagesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetStagesResponseUnmarshaller.Instance;return Invoke<GetStagesResponse>(request, options);}
|
train
| true
|
7,150
|
public void setParsedExpression(Ptg[] ptgs) {field_5_name_definition = Formula.create(ptgs);}
|
[
"public",
"void",
"setParsedExpression",
"(",
"Ptg",
"[",
"]",
"ptgs",
")",
"{",
"field_5_name_definition",
"=",
"Formula",
".",
"create",
"(",
"ptgs",
")",
";",
"}"
] |
public void SetParsedExpression(Ptg[] ptgs){field_5_name_definition = Formula.Create(ptgs);}
|
train
| false
|
7,151
|
public int getRightId(int wordId) {return rightIds[wordId];}
|
[
"public",
"int",
"getRightId",
"(",
"int",
"wordId",
")",
"{",
"return",
"rightIds",
"[",
"wordId",
"]",
";",
"}"
] |
public int GetRightId(int wordId){return RIGHT_ID;}
|
train
| false
|
7,152
|
public GetChangeRequest(String id) {setId(id);}
|
[
"public",
"GetChangeRequest",
"(",
"String",
"id",
")",
"{",
"setId",
"(",
"id",
")",
";",
"}"
] |
public GetChangeRequest(string id){_id = id;}
|
train
| false
|
7,153
|
public RegisterPhotoRequest() {super("CloudPhoto", "2017-07-11", "RegisterPhoto", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
|
[
"public",
"RegisterPhotoRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"RegisterPhoto\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] |
public RegisterPhotoRequest(): base("CloudPhoto", "2017-07-11", "RegisterPhoto", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
|
train
| false
|
7,154
|
public void more() {_type = MORE;}
|
[
"public",
"void",
"more",
"(",
")",
"{",
"_type",
"=",
"MORE",
";",
"}"
] |
public virtual void More(){_type = TokenTypes.More;}
|
train
| false
|
7,155
|
public final Buffer position(int newPosition) {positionImpl(newPosition);return this;}
|
[
"public",
"final",
"Buffer",
"position",
"(",
"int",
"newPosition",
")",
"{",
"positionImpl",
"(",
"newPosition",
")",
";",
"return",
"this",
";",
"}"
] |
public java.nio.Buffer position(int newPosition){positionImpl(newPosition);return this;}
|
train
| false
|
7,156
|
public ScenarioProtectRecord(RecordInputStream in) {field_1_protect = in.readShort();}
|
[
"public",
"ScenarioProtectRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_protect",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"}"
] |
public ScenarioProtectRecord(RecordInputStream in1){field_1_protect = in1.ReadShort();}
|
train
| false
|
7,157
|
public static TopFieldDocs merge(Sort sort, int topN, TopFieldDocs[] shardHits) {return merge(sort, 0, topN, shardHits);}
|
[
"public",
"static",
"TopFieldDocs",
"merge",
"(",
"Sort",
"sort",
",",
"int",
"topN",
",",
"TopFieldDocs",
"[",
"]",
"shardHits",
")",
"{",
"return",
"merge",
"(",
"sort",
",",
"0",
",",
"topN",
",",
"shardHits",
")",
";",
"}"
] |
public static TopDocs Merge(Sort sort, int topN, TopDocs[] shardHits){return Merge(sort, 0, topN, shardHits);}
|
train
| false
|
7,158
|
public LexerModeAction(int mode) {this.mode = mode;}
|
[
"public",
"LexerModeAction",
"(",
"int",
"mode",
")",
"{",
"this",
".",
"mode",
"=",
"mode",
";",
"}"
] |
public LexerModeAction(int mode){this.mode = mode;}
|
train
| false
|
7,159
|
public boolean canExecute(File f) {return false;}
|
[
"public",
"boolean",
"canExecute",
"(",
"File",
"f",
")",
"{",
"return",
"false",
";",
"}"
] |
public override bool CanExecute(FilePath f){return false;}
|
train
| false
|
7,160
|
public int preceding(int pos) {if (pos < text.getBeginIndex() || pos > text.getEndIndex()) {throw new IllegalArgumentException("offset out of bounds");} else if (0 == sentenceStarts.length) {text.setIndex(text.getBeginIndex());currentSentence = 0;return DONE;} else if (pos < sentenceStarts[0]) {text.setIndex(text.getBeginIndex());currentSentence = 0;return DONE;} else {currentSentence = sentenceStarts.length / 2; moveToSentenceAt(pos, 0, sentenceStarts.length - 1);if (0 == currentSentence) {text.setIndex(text.getBeginIndex());return DONE;} else {text.setIndex(sentenceStarts[--currentSentence]);return current();}}}
|
[
"public",
"int",
"preceding",
"(",
"int",
"pos",
")",
"{",
"if",
"(",
"pos",
"<",
"text",
".",
"getBeginIndex",
"(",
")",
"||",
"pos",
">",
"text",
".",
"getEndIndex",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"offset out of bounds\"",
")",
";",
"}",
"else",
"if",
"(",
"0",
"==",
"sentenceStarts",
".",
"length",
")",
"{",
"text",
".",
"setIndex",
"(",
"text",
".",
"getBeginIndex",
"(",
")",
")",
";",
"currentSentence",
"=",
"0",
";",
"return",
"DONE",
";",
"}",
"else",
"if",
"(",
"pos",
"<",
"sentenceStarts",
"[",
"0",
"]",
")",
"{",
"text",
".",
"setIndex",
"(",
"text",
".",
"getBeginIndex",
"(",
")",
")",
";",
"currentSentence",
"=",
"0",
";",
"return",
"DONE",
";",
"}",
"else",
"{",
"currentSentence",
"=",
"sentenceStarts",
".",
"length",
"/",
"2",
";",
"moveToSentenceAt",
"(",
"pos",
",",
"0",
",",
"sentenceStarts",
".",
"length",
"-",
"1",
")",
";",
"if",
"(",
"0",
"==",
"currentSentence",
")",
"{",
"text",
".",
"setIndex",
"(",
"text",
".",
"getBeginIndex",
"(",
")",
")",
";",
"return",
"DONE",
";",
"}",
"else",
"{",
"text",
".",
"setIndex",
"(",
"sentenceStarts",
"[",
"--",
"currentSentence",
"]",
")",
";",
"return",
"current",
"(",
")",
";",
"}",
"}",
"}"
] |
public override int Preceding(int pos){if (pos < text.BeginIndex || pos > text.EndIndex){throw new ArgumentException("offset out of bounds");}else if (0 == sentenceStarts.Length){text.SetIndex(text.BeginIndex);currentSentence = 0;return Done;}else if (pos < sentenceStarts[0]){text.SetIndex(text.BeginIndex);currentSentence = 0;return Done;}else{currentSentence = sentenceStarts.Length / 2; MoveToSentenceAt(pos, 0, sentenceStarts.Length - 1);if (0 == currentSentence){text.SetIndex(text.BeginIndex);return Done;}else{text.SetIndex(sentenceStarts[--currentSentence]);return Current;}}}
|
train
| false
|
7,161
|
public int serialize(int offset, byte[] data) {throw new RecordFormatException("Cannot serialize a dummy record");}
|
[
"public",
"int",
"serialize",
"(",
"int",
"offset",
",",
"byte",
"[",
"]",
"data",
")",
"{",
"throw",
"new",
"RecordFormatException",
"(",
"\"Cannot serialize a dummy record\"",
")",
";",
"}"
] |
public override int Serialize(int offset, byte[] data){throw new RecordFormatException("Cannot serialize a dummy record");}
|
train
| false
|
7,162
|
public DetachObjectResult detachObject(DetachObjectRequest request) {request = beforeClientExecution(request);return executeDetachObject(request);}
|
[
"public",
"DetachObjectResult",
"detachObject",
"(",
"DetachObjectRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDetachObject",
"(",
"request",
")",
";",
"}"
] |
public virtual DetachObjectResponse DetachObject(DetachObjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachObjectRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachObjectResponseUnmarshaller.Instance;return Invoke<DetachObjectResponse>(request, options);}
|
train
| true
|
7,163
|
public WorkflowTypeDetail describeWorkflowType(DescribeWorkflowTypeRequest request) {request = beforeClientExecution(request);return executeDescribeWorkflowType(request);}
|
[
"public",
"WorkflowTypeDetail",
"describeWorkflowType",
"(",
"DescribeWorkflowTypeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeWorkflowType",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeWorkflowTypeResponse DescribeWorkflowType(DescribeWorkflowTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkflowTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkflowTypeResponseUnmarshaller.Instance;return Invoke<DescribeWorkflowTypeResponse>(request, options);}
|
train
| true
|
7,164
|
public static void clearModels() {sentenceModels.clear();tokenizerModels.clear();posTaggerModels.clear();chunkerModels.clear();nerModels.clear();lemmaDictionaries.clear();}
|
[
"public",
"static",
"void",
"clearModels",
"(",
")",
"{",
"sentenceModels",
".",
"clear",
"(",
")",
";",
"tokenizerModels",
".",
"clear",
"(",
")",
";",
"posTaggerModels",
".",
"clear",
"(",
")",
";",
"chunkerModels",
".",
"clear",
"(",
")",
";",
"nerModels",
".",
"clear",
"(",
")",
";",
"lemmaDictionaries",
".",
"clear",
"(",
")",
";",
"}"
] |
public static void ClearModels(){sentenceModels.Clear();tokenizerModels.Clear();posTaggerModels.Clear();chunkerModels.Clear();nerModels.Clear();lemmaDictionaries.Clear();}
|
train
| false
|
7,165
|
public static String refLockFor(String name) {return name + LOCK_SUFFIX;}
|
[
"public",
"static",
"String",
"refLockFor",
"(",
"String",
"name",
")",
"{",
"return",
"name",
"+",
"LOCK_SUFFIX",
";",
"}"
] |
public static string RefLockFor(string name){return name + LockFile.SUFFIX;}
|
train
| false
|
7,166
|
public DeleteComponentResult deleteComponent(DeleteComponentRequest request) {request = beforeClientExecution(request);return executeDeleteComponent(request);}
|
[
"public",
"DeleteComponentResult",
"deleteComponent",
"(",
"DeleteComponentRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteComponent",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteComponentResponse DeleteComponent(DeleteComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteComponentResponseUnmarshaller.Instance;return Invoke<DeleteComponentResponse>(request, options);}
|
train
| false
|
7,167
|
public String toString() {StringBuilder sb = new StringBuilder();sb.append("[STYLE]\n");sb.append(" .xf_index_raw =").append(HexDump.shortToHex(field_1_xf_index)).append("\n");sb.append(" .type =").append(isBuiltin() ? "built-in" : "user-defined").append("\n");sb.append(" .xf_index =").append(HexDump.shortToHex(getXFIndex())).append("\n");if (isBuiltin()){sb.append(" .builtin_style=").append(HexDump.byteToHex(field_2_builtin_style)).append("\n");sb.append(" .outline_level=").append(HexDump.byteToHex(field_3_outline_style_level)).append("\n");} else {sb.append(" .name =").append(getName()).append("\n");}sb.append("[/STYLE]\n");return sb.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"sb",
".",
"append",
"(",
"\"[STYLE]\\n\"",
")",
";",
"sb",
".",
"append",
"(",
"\" .xf_index_raw =\"",
")",
".",
"append",
"(",
"HexDump",
".",
"shortToHex",
"(",
"field_1_xf_index",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"sb",
".",
"append",
"(",
"\" .type =\"",
")",
".",
"append",
"(",
"isBuiltin",
"(",
")",
"?",
"\"built-in\"",
":",
"\"user-defined\"",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"sb",
".",
"append",
"(",
"\" .xf_index =\"",
")",
".",
"append",
"(",
"HexDump",
".",
"shortToHex",
"(",
"getXFIndex",
"(",
")",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"if",
"(",
"isBuiltin",
"(",
")",
")",
"{",
"sb",
".",
"append",
"(",
"\" .builtin_style=\"",
")",
".",
"append",
"(",
"HexDump",
".",
"byteToHex",
"(",
"field_2_builtin_style",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"sb",
".",
"append",
"(",
"\" .outline_level=\"",
")",
".",
"append",
"(",
"HexDump",
".",
"byteToHex",
"(",
"field_3_outline_style_level",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"}",
"else",
"{",
"sb",
".",
"append",
"(",
"\" .name =\"",
")",
".",
"append",
"(",
"getName",
"(",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"}",
"sb",
".",
"append",
"(",
"\"[/STYLE]\\n\"",
")",
";",
"return",
"sb",
".",
"toString",
"(",
")",
";",
"}"
] |
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[STYLE]\n");buffer.Append(" .xf_index_raw = ").Append(HexDump.ShortToHex(field_1_xf_index)).Append("\n");buffer.Append(" .type = ").Append(IsBuiltin?"built-in":"user-defined").Append("\n");buffer.Append(" .xf_index = ").Append(HexDump.ShortToHex(XFIndex)).Append("\n");if (IsBuiltin){buffer.Append(" .builtin_style = ").Append(HexDump.ByteToHex(field_2_builtin_style)).Append("\n");buffer.Append(" .outline_level = ").Append(HexDump.ByteToHex(field_3_outline_style_level)).Append("\n");}else{buffer.Append(" .name = ").Append(Name).Append("\n");}buffer.Append("[/STYLE]\n");return buffer.ToString();}
|
train
| false
|
7,168
|
public DescribeAuditStreamConfigurationResult describeAuditStreamConfiguration(DescribeAuditStreamConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeAuditStreamConfiguration(request);}
|
[
"public",
"DescribeAuditStreamConfigurationResult",
"describeAuditStreamConfiguration",
"(",
"DescribeAuditStreamConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeAuditStreamConfiguration",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeAuditStreamConfigurationResponse DescribeAuditStreamConfiguration(DescribeAuditStreamConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAuditStreamConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAuditStreamConfigurationResponseUnmarshaller.Instance;return Invoke<DescribeAuditStreamConfigurationResponse>(request, options);}
|
train
| true
|
7,169
|
public String toString() {if (getChildren() == null || getChildren().size() == 0)return "<any field='" + this.field + "' matchelements="+ this.minimumMatchingmElements + "/>";StringBuilder sb = new StringBuilder();sb.append("<any field='").append(this.field).append("' matchelements=").append(this.minimumMatchingmElements).append('>');for (QueryNode clause : getChildren()) {sb.append("\n");sb.append(clause.toString());}sb.append("\n</any>");return sb.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"if",
"(",
"getChildren",
"(",
")",
"==",
"null",
"||",
"getChildren",
"(",
")",
".",
"size",
"(",
")",
"==",
"0",
")",
"return",
"\"<any field='\"",
"+",
"this",
".",
"field",
"+",
"\"' matchelements=\"",
"+",
"this",
".",
"minimumMatchingmElements",
"+",
"\"/>\"",
";",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"sb",
".",
"append",
"(",
"\"<any field='\"",
")",
".",
"append",
"(",
"this",
".",
"field",
")",
".",
"append",
"(",
"\"' matchelements=\"",
")",
".",
"append",
"(",
"this",
".",
"minimumMatchingmElements",
")",
".",
"append",
"(",
"'>'",
")",
";",
"for",
"(",
"QueryNode",
"clause",
":",
"getChildren",
"(",
")",
")",
"{",
"sb",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"sb",
".",
"append",
"(",
"clause",
".",
"toString",
"(",
")",
")",
";",
"}",
"sb",
".",
"append",
"(",
"\"\\n</any>\"",
")",
";",
"return",
"sb",
".",
"toString",
"(",
")",
";",
"}"
] |
public override string ToString(){var children = GetChildren();if (children == null || children.Count == 0)return "<any field='" + this.field + "' matchelements="+ this.minimumMatchingmElements + "/>";StringBuilder sb = new StringBuilder();sb.Append("<any field='" + this.field + "' matchelements="+ this.minimumMatchingmElements + ">");foreach (IQueryNode clause in children){sb.Append("\n");sb.Append(clause.ToString());}sb.Append("\n</any>");return sb.ToString();}
|
train
| false
|
7,170
|
public AssociateSkillWithSkillGroupResult associateSkillWithSkillGroup(AssociateSkillWithSkillGroupRequest request) {request = beforeClientExecution(request);return executeAssociateSkillWithSkillGroup(request);}
|
[
"public",
"AssociateSkillWithSkillGroupResult",
"associateSkillWithSkillGroup",
"(",
"AssociateSkillWithSkillGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociateSkillWithSkillGroup",
"(",
"request",
")",
";",
"}"
] |
public virtual AssociateSkillWithSkillGroupResponse AssociateSkillWithSkillGroup(AssociateSkillWithSkillGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateSkillWithSkillGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateSkillWithSkillGroupResponseUnmarshaller.Instance;return Invoke<AssociateSkillWithSkillGroupResponse>(request, options);}
|
train
| true
|
7,171
|
public String getFetchedFrom() {return this.fetchedFrom;}
|
[
"public",
"String",
"getFetchedFrom",
"(",
")",
"{",
"return",
"this",
".",
"fetchedFrom",
";",
"}"
] |
public virtual string GetFetchedFrom(){return this.fetchedFrom;}
|
train
| false
|
7,172
|
public static Counter newCounter(boolean threadSafe) {return threadSafe ? new AtomicCounter() : new SerialCounter();}
|
[
"public",
"static",
"Counter",
"newCounter",
"(",
"boolean",
"threadSafe",
")",
"{",
"return",
"threadSafe",
"?",
"new",
"AtomicCounter",
"(",
")",
":",
"new",
"SerialCounter",
"(",
")",
";",
"}"
] |
public static Counter NewCounter(bool threadSafe){return threadSafe ? (Counter)new AtomicCounter() : new SerialCounter();}
|
train
| false
|
7,173
|
public FloatBuffer slice() {return new ReadWriteFloatArrayBuffer(remaining(), backingArray, offset + position);}
|
[
"public",
"FloatBuffer",
"slice",
"(",
")",
"{",
"return",
"new",
"ReadWriteFloatArrayBuffer",
"(",
"remaining",
"(",
")",
",",
"backingArray",
",",
"offset",
"+",
"position",
")",
";",
"}"
] |
public override java.nio.FloatBuffer slice(){return new java.nio.ReadWriteFloatArrayBuffer(remaining(), backingArray, offset +_position);}
|
train
| false
|
7,174
|
public ListProcessingJobsResult listProcessingJobs(ListProcessingJobsRequest request) {request = beforeClientExecution(request);return executeListProcessingJobs(request);}
|
[
"public",
"ListProcessingJobsResult",
"listProcessingJobs",
"(",
"ListProcessingJobsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListProcessingJobs",
"(",
"request",
")",
";",
"}"
] |
public virtual ListProcessingJobsResponse ListProcessingJobs(ListProcessingJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListProcessingJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListProcessingJobsResponseUnmarshaller.Instance;return Invoke<ListProcessingJobsResponse>(request, options);}
|
train
| false
|
7,175
|
public void recover(RecognitionException re) {_input.consume();}
|
[
"public",
"void",
"recover",
"(",
"RecognitionException",
"re",
")",
"{",
"_input",
".",
"consume",
"(",
")",
";",
"}"
] |
public virtual void Recover(RecognitionException re){_input.Consume();}
|
train
| false
|
7,176
|
public CreateTemplateAliasResult createTemplateAlias(CreateTemplateAliasRequest request) {request = beforeClientExecution(request);return executeCreateTemplateAlias(request);}
|
[
"public",
"CreateTemplateAliasResult",
"createTemplateAlias",
"(",
"CreateTemplateAliasRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateTemplateAlias",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateTemplateAliasResponse CreateTemplateAlias(CreateTemplateAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTemplateAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTemplateAliasResponseUnmarshaller.Instance;return Invoke<CreateTemplateAliasResponse>(request, options);}
|
train
| false
|
7,177
|
public final Buffer reset() {if (mark == UNSET_MARK) {throw new InvalidMarkException("Mark not set");}position = mark;return this;}
|
[
"public",
"final",
"Buffer",
"reset",
"(",
")",
"{",
"if",
"(",
"mark",
"==",
"UNSET_MARK",
")",
"{",
"throw",
"new",
"InvalidMarkException",
"(",
"\"Mark not set\"",
")",
";",
"}",
"position",
"=",
"mark",
";",
"return",
"this",
";",
"}"
] |
public java.nio.Buffer reset(){if (_mark == UNSET_MARK){throw new java.nio.InvalidMarkException("Mark not set");}_position = _mark;return this;}
|
train
| false
|
7,178
|
@Override public synchronized boolean equals(Object object) {return (object instanceof Map) &&entrySet().equals(((Map<?, ?>)object).entrySet());}
|
[
"@",
"Override",
"public",
"synchronized",
"boolean",
"equals",
"(",
"Object",
"object",
")",
"{",
"return",
"(",
"object",
"instanceof",
"Map",
")",
"&&",
"entrySet",
"(",
")",
".",
"equals",
"(",
"(",
"(",
"Map",
"<",
"?",
",",
"?",
">",
")",
"object",
")",
".",
"entrySet",
"(",
")",
")",
";",
"}"
] |
public override bool Equals(object @object){lock (this){return (@object is java.util.Map<K, V>) && entrySet().Equals(((java.util.Map<object, object>)@object).entrySet());}}
|
train
| false
|
7,179
|
public void tagResource(TagResourceRequest request) {request = beforeClientExecution(request);executeTagResource(request);}
|
[
"public",
"void",
"tagResource",
"(",
"TagResourceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"executeTagResource",
"(",
"request",
")",
";",
"}"
] |
public virtual TagResourceResponse TagResource(TagResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = TagResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;return Invoke<TagResourceResponse>(request, options);}
|
train
| true
|
7,180
|
public BytesRef common(BytesRef output1, BytesRef output2) {assert output1 != null;assert output2 != null;int pos1 = output1.offset;int pos2 = output2.offset;int stopAt1 = pos1 + Math.min(output1.length, output2.length);while(pos1 < stopAt1) {if (output1.bytes[pos1] != output2.bytes[pos2]) {break;}pos1++;pos2++;}if (pos1 == output1.offset) {return NO_OUTPUT;} else if (pos1 == output1.offset + output1.length) {return output1;} else if (pos2 == output2.offset + output2.length) {return output2;} else {return new BytesRef(output1.bytes, output1.offset, pos1-output1.offset);}}
|
[
"public",
"BytesRef",
"common",
"(",
"BytesRef",
"output1",
",",
"BytesRef",
"output2",
")",
"{",
"assert",
"output1",
"!=",
"null",
";",
"assert",
"output2",
"!=",
"null",
";",
"int",
"pos1",
"=",
"output1",
".",
"offset",
";",
"int",
"pos2",
"=",
"output2",
".",
"offset",
";",
"int",
"stopAt1",
"=",
"pos1",
"+",
"Math",
".",
"min",
"(",
"output1",
".",
"length",
",",
"output2",
".",
"length",
")",
";",
"while",
"(",
"pos1",
"<",
"stopAt1",
")",
"{",
"if",
"(",
"output1",
".",
"bytes",
"[",
"pos1",
"]",
"!=",
"output2",
".",
"bytes",
"[",
"pos2",
"]",
")",
"{",
"break",
";",
"}",
"pos1",
"++",
";",
"pos2",
"++",
";",
"}",
"if",
"(",
"pos1",
"==",
"output1",
".",
"offset",
")",
"{",
"return",
"NO_OUTPUT",
";",
"}",
"else",
"if",
"(",
"pos1",
"==",
"output1",
".",
"offset",
"+",
"output1",
".",
"length",
")",
"{",
"return",
"output1",
";",
"}",
"else",
"if",
"(",
"pos2",
"==",
"output2",
".",
"offset",
"+",
"output2",
".",
"length",
")",
"{",
"return",
"output2",
";",
"}",
"else",
"{",
"return",
"new",
"BytesRef",
"(",
"output1",
".",
"bytes",
",",
"output1",
".",
"offset",
",",
"pos1",
"-",
"output1",
".",
"offset",
")",
";",
"}",
"}"
] |
public override BytesRef Common(BytesRef output1, BytesRef output2){Debug.Assert(output1 != null);Debug.Assert(output2 != null);int pos1 = output1.Offset;int pos2 = output2.Offset;int stopAt1 = pos1 + Math.Min(output1.Length, output2.Length);while (pos1 < stopAt1){if (output1.Bytes[pos1] != output2.Bytes[pos2]){break;}pos1++;pos2++;}if (pos1 == output1.Offset){return NO_OUTPUT;}else if (pos1 == output1.Offset + output1.Length){return output1;}else if (pos2 == output2.Offset + output2.Length){return output2;}else{return new BytesRef(output1.Bytes, output1.Offset, pos1 - output1.Offset);}}
|
train
| false
|
7,181
|
public E getFirst() {return getFirstImpl();}
|
[
"public",
"E",
"getFirst",
"(",
")",
"{",
"return",
"getFirstImpl",
"(",
")",
";",
"}"
] |
public virtual E getFirst(){return getFirstImpl();}
|
train
| false
|
7,182
|
public ObjectId computeId(ObjectInserter ins) {if (buf != null)return ins.idFor(OBJ_TREE, buf, 0, ptr);final long len = overflowBuffer.length();try {return ins.idFor(OBJ_TREE, len, overflowBuffer.openInputStream());} catch (IOException e) {throw new RuntimeException(e);}}
|
[
"public",
"ObjectId",
"computeId",
"(",
"ObjectInserter",
"ins",
")",
"{",
"if",
"(",
"buf",
"!=",
"null",
")",
"return",
"ins",
".",
"idFor",
"(",
"OBJ_TREE",
",",
"buf",
",",
"0",
",",
"ptr",
")",
";",
"final",
"long",
"len",
"=",
"overflowBuffer",
".",
"length",
"(",
")",
";",
"try",
"{",
"return",
"ins",
".",
"idFor",
"(",
"OBJ_TREE",
",",
"len",
",",
"overflowBuffer",
".",
"openInputStream",
"(",
")",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"e",
")",
";",
"}",
"}"
] |
public virtual ObjectId ComputeId(ObjectInserter ins){if (buf != null){return ins.IdFor(Constants.OBJ_TREE, buf, 0, ptr);}long len = overflowBuffer.Length();try{return ins.IdFor(Constants.OBJ_TREE, len, overflowBuffer.OpenInputStream());}catch (IOException e){throw new RuntimeException(e);}}
|
train
| false
|
7,183
|
public TransferDomainResult transferDomain(TransferDomainRequest request) {request = beforeClientExecution(request);return executeTransferDomain(request);}
|
[
"public",
"TransferDomainResult",
"transferDomain",
"(",
"TransferDomainRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeTransferDomain",
"(",
"request",
")",
";",
"}"
] |
public virtual TransferDomainResponse TransferDomain(TransferDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = TransferDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = TransferDomainResponseUnmarshaller.Instance;return Invoke<TransferDomainResponse>(request, options);}
|
train
| true
|
7,184
|
public String toString() {synchronized (lock) {return new String(buf, 0, count);}}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"synchronized",
"(",
"lock",
")",
"{",
"return",
"new",
"String",
"(",
"buf",
",",
"0",
",",
"count",
")",
";",
"}",
"}"
] |
public override string ToString(){lock (@lock){return new string(buf, 0, count);}}
|
train
| false
|
7,185
|
public DescribeReservedNodeOfferingsResult describeReservedNodeOfferings(DescribeReservedNodeOfferingsRequest request) {request = beforeClientExecution(request);return executeDescribeReservedNodeOfferings(request);}
|
[
"public",
"DescribeReservedNodeOfferingsResult",
"describeReservedNodeOfferings",
"(",
"DescribeReservedNodeOfferingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeReservedNodeOfferings",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeReservedNodeOfferingsResponse DescribeReservedNodeOfferings(DescribeReservedNodeOfferingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedNodeOfferingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedNodeOfferingsResponseUnmarshaller.Instance;return Invoke<DescribeReservedNodeOfferingsResponse>(request, options);}
|
train
| true
|
7,186
|
public String toString(String field) {StringBuilder buffer = new StringBuilder();if (!term.field().equals(field)) {buffer.append(term.field());buffer.append(":");}buffer.append(term.text());return buffer.toString();}
|
[
"public",
"String",
"toString",
"(",
"String",
"field",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"if",
"(",
"!",
"term",
".",
"field",
"(",
")",
".",
"equals",
"(",
"field",
")",
")",
"{",
"buffer",
".",
"append",
"(",
"term",
".",
"field",
"(",
")",
")",
";",
"buffer",
".",
"append",
"(",
"\":\"",
")",
";",
"}",
"buffer",
".",
"append",
"(",
"term",
".",
"text",
"(",
")",
")",
";",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] |
public override string ToString(string field){StringBuilder buffer = new StringBuilder();if (!term.Field.Equals(field, StringComparison.Ordinal)){buffer.Append(term.Field);buffer.Append(":");}buffer.Append(term.Text());buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}
|
train
| false
|
7,187
|
public IntBuffer duplicate() {ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());IntToByteBufferAdapter buf = new IntToByteBufferAdapter(bb);buf.limit = limit;buf.position = position;buf.mark = mark;return buf;}
|
[
"public",
"IntBuffer",
"duplicate",
"(",
")",
"{",
"ByteBuffer",
"bb",
"=",
"byteBuffer",
".",
"duplicate",
"(",
")",
".",
"order",
"(",
"byteBuffer",
".",
"order",
"(",
")",
")",
";",
"IntToByteBufferAdapter",
"buf",
"=",
"new",
"IntToByteBufferAdapter",
"(",
"bb",
")",
";",
"buf",
".",
"limit",
"=",
"limit",
";",
"buf",
".",
"position",
"=",
"position",
";",
"buf",
".",
"mark",
"=",
"mark",
";",
"return",
"buf",
";",
"}"
] |
public override java.nio.IntBuffer duplicate(){java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());java.nio.IntToByteBufferAdapter buf = new java.nio.IntToByteBufferAdapter(bb);buf._limit = _limit;buf._position = _position;buf._mark = _mark;return buf;}
|
train
| false
|
7,189
|
public boolean canHandle(URIish uri) {return canHandle(uri, null, null);}
|
[
"public",
"boolean",
"canHandle",
"(",
"URIish",
"uri",
")",
"{",
"return",
"canHandle",
"(",
"uri",
",",
"null",
",",
"null",
")",
";",
"}"
] |
public virtual bool CanHandle(URIish uri){return CanHandle(uri, null, null);}
|
train
| false
|
7,190
|
public GetImportJobResult getImportJob(GetImportJobRequest request) {request = beforeClientExecution(request);return executeGetImportJob(request);}
|
[
"public",
"GetImportJobResult",
"getImportJob",
"(",
"GetImportJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetImportJob",
"(",
"request",
")",
";",
"}"
] |
public virtual GetImportJobResponse GetImportJob(GetImportJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetImportJobRequestMarshaller.Instance;options.ResponseUnmarshaller = GetImportJobResponseUnmarshaller.Instance;return Invoke<GetImportJobResponse>(request, options);}
|
train
| true
|
7,191
|
public LookupDeveloperIdentityResult lookupDeveloperIdentity(LookupDeveloperIdentityRequest request) {request = beforeClientExecution(request);return executeLookupDeveloperIdentity(request);}
|
[
"public",
"LookupDeveloperIdentityResult",
"lookupDeveloperIdentity",
"(",
"LookupDeveloperIdentityRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeLookupDeveloperIdentity",
"(",
"request",
")",
";",
"}"
] |
public virtual LookupDeveloperIdentityResponse LookupDeveloperIdentity(LookupDeveloperIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = LookupDeveloperIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = LookupDeveloperIdentityResponseUnmarshaller.Instance;return Invoke<LookupDeveloperIdentityResponse>(request, options);}
|
train
| true
|
7,192
|
public FloatBuffer put(float c) {if (position == limit) {throw new BufferOverflowException();}backingArray[offset + position++] = c;return this;}
|
[
"public",
"FloatBuffer",
"put",
"(",
"float",
"c",
")",
"{",
"if",
"(",
"position",
"==",
"limit",
")",
"{",
"throw",
"new",
"BufferOverflowException",
"(",
")",
";",
"}",
"backingArray",
"[",
"offset",
"+",
"position",
"++",
"]",
"=",
"c",
";",
"return",
"this",
";",
"}"
] |
public override java.nio.FloatBuffer put(float c){if (_position == _limit){throw new java.nio.BufferOverflowException();}backingArray[offset + _position++] = c;return this;}
|
train
| false
|
7,193
|
public RefModeRecord(RecordInputStream in) {field_1_mode = in.readShort();}
|
[
"public",
"RefModeRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_mode",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"}"
] |
public RefModeRecord(RecordInputStream in1){field_1_mode = in1.ReadShort();}
|
train
| false
|
7,194
|
public BulkOperationPackedSingleBlock(int bitsPerValue) {this.bitsPerValue = bitsPerValue;this.valueCount = 64 / bitsPerValue;this.mask = (1L << bitsPerValue) - 1;}
|
[
"public",
"BulkOperationPackedSingleBlock",
"(",
"int",
"bitsPerValue",
")",
"{",
"this",
".",
"bitsPerValue",
"=",
"bitsPerValue",
";",
"this",
".",
"valueCount",
"=",
"64",
"/",
"bitsPerValue",
";",
"this",
".",
"mask",
"=",
"(",
"1L",
"<<",
"bitsPerValue",
")",
"-",
"1",
";",
"}"
] |
public BulkOperationPackedSingleBlock(int bitsPerValue){this.bitsPerValue = bitsPerValue;this.valueCount = 64 / bitsPerValue;this.mask = (1L << bitsPerValue) - 1;}
|
train
| false
|
7,195
|
public static String dateToString(Date date, Resolution resolution) {return timeToString(date.getTime(), resolution);}
|
[
"public",
"static",
"String",
"dateToString",
"(",
"Date",
"date",
",",
"Resolution",
"resolution",
")",
"{",
"return",
"timeToString",
"(",
"date",
".",
"getTime",
"(",
")",
",",
"resolution",
")",
";",
"}"
] |
public static string DateToString(DateTime date, Resolution resolution){return TimeToString(date.Ticks / TimeSpan.TicksPerMillisecond, resolution);}
|
train
| false
|
7,196
|
public DescribeUserHierarchyStructureResult describeUserHierarchyStructure(DescribeUserHierarchyStructureRequest request) {request = beforeClientExecution(request);return executeDescribeUserHierarchyStructure(request);}
|
[
"public",
"DescribeUserHierarchyStructureResult",
"describeUserHierarchyStructure",
"(",
"DescribeUserHierarchyStructureRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeUserHierarchyStructure",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeUserHierarchyStructureResponse DescribeUserHierarchyStructure(DescribeUserHierarchyStructureRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUserHierarchyStructureRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUserHierarchyStructureResponseUnmarshaller.Instance;return Invoke<DescribeUserHierarchyStructureResponse>(request, options);}
|
train
| true
|
7,197
|
public GetDomainsResult getDomains(GetDomainsRequest request) {request = beforeClientExecution(request);return executeGetDomains(request);}
|
[
"public",
"GetDomainsResult",
"getDomains",
"(",
"GetDomainsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDomains",
"(",
"request",
")",
";",
"}"
] |
public virtual GetDomainsResponse GetDomains(GetDomainsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDomainsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDomainsResponseUnmarshaller.Instance;return Invoke<GetDomainsResponse>(request, options);}
|
train
| true
|
7,198
|
public int getStreamFileThreshold() {return streamFileThreshold;}
|
[
"public",
"int",
"getStreamFileThreshold",
"(",
")",
"{",
"return",
"streamFileThreshold",
";",
"}"
] |
public virtual int GetStreamFileThreshold(){return streamFileThreshold;}
|
train
| false
|
7,199
|
public BatchGetDeploymentInstancesResult batchGetDeploymentInstances(BatchGetDeploymentInstancesRequest request) {request = beforeClientExecution(request);return executeBatchGetDeploymentInstances(request);}
|
[
"public",
"BatchGetDeploymentInstancesResult",
"batchGetDeploymentInstances",
"(",
"BatchGetDeploymentInstancesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeBatchGetDeploymentInstances",
"(",
"request",
")",
";",
"}"
] |
public virtual BatchGetDeploymentInstancesResponse BatchGetDeploymentInstances(BatchGetDeploymentInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetDeploymentInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetDeploymentInstancesResponseUnmarshaller.Instance;return Invoke<BatchGetDeploymentInstancesResponse>(request, options);}
|
train
| false
|
7,200
|
public GetIdentityVerificationAttributesResult getIdentityVerificationAttributes(GetIdentityVerificationAttributesRequest request) {request = beforeClientExecution(request);return executeGetIdentityVerificationAttributes(request);}
|
[
"public",
"GetIdentityVerificationAttributesResult",
"getIdentityVerificationAttributes",
"(",
"GetIdentityVerificationAttributesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetIdentityVerificationAttributes",
"(",
"request",
")",
";",
"}"
] |
public virtual GetIdentityVerificationAttributesResponse GetIdentityVerificationAttributes(GetIdentityVerificationAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdentityVerificationAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdentityVerificationAttributesResponseUnmarshaller.Instance;return Invoke<GetIdentityVerificationAttributesResponse>(request, options);}
|
train
| true
|
7,201
|
public LittleEndianOutputStream(OutputStream out) {super(out);}
|
[
"public",
"LittleEndianOutputStream",
"(",
"OutputStream",
"out",
")",
"{",
"super",
"(",
"out",
")",
";",
"}"
] |
public LittleEndianOutputStream(Stream out1){this.out1 = out1;}
|
train
| false
|
7,202
|
public GetDeploymentGroupResult getDeploymentGroup(GetDeploymentGroupRequest request) {request = beforeClientExecution(request);return executeGetDeploymentGroup(request);}
|
[
"public",
"GetDeploymentGroupResult",
"getDeploymentGroup",
"(",
"GetDeploymentGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDeploymentGroup",
"(",
"request",
")",
";",
"}"
] |
public virtual GetDeploymentGroupResponse GetDeploymentGroup(GetDeploymentGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDeploymentGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDeploymentGroupResponseUnmarshaller.Instance;return Invoke<GetDeploymentGroupResponse>(request, options);}
|
train
| true
|
7,203
|
public boolean containsKey(char[] text, int off, int len) {if(text == null)throw new NullPointerException();return false;}
|
[
"public",
"boolean",
"containsKey",
"(",
"char",
"[",
"]",
"text",
",",
"int",
"off",
",",
"int",
"len",
")",
"{",
"if",
"(",
"text",
"==",
"null",
")",
"throw",
"new",
"NullPointerException",
"(",
")",
";",
"return",
"false",
";",
"}"
] |
public override bool ContainsKey(char[] text, int offset, int length){if (text == null){throw new ArgumentNullException("text");}return false;}
|
train
| false
|
7,204
|
public void inform(ResourceLoader loader) throws IOException {clazz = registry.get(name.toUpperCase(Locale.ROOT));if( clazz == null ) {clazz = resolveEncoder(name, loader);}if (maxCodeLength != null) {try {setMaxCodeLenMethod = clazz.getMethod("setMaxCodeLen", int.class);} catch (Exception e) {throw new IllegalArgumentException("Encoder " + name + " / " + clazz + " does not support " + MAX_CODE_LENGTH, e);}}getEncoder();}
|
[
"public",
"void",
"inform",
"(",
"ResourceLoader",
"loader",
")",
"throws",
"IOException",
"{",
"clazz",
"=",
"registry",
".",
"get",
"(",
"name",
".",
"toUpperCase",
"(",
"Locale",
".",
"ROOT",
")",
")",
";",
"if",
"(",
"clazz",
"==",
"null",
")",
"{",
"clazz",
"=",
"resolveEncoder",
"(",
"name",
",",
"loader",
")",
";",
"}",
"if",
"(",
"maxCodeLength",
"!=",
"null",
")",
"{",
"try",
"{",
"setMaxCodeLenMethod",
"=",
"clazz",
".",
"getMethod",
"(",
"\"setMaxCodeLen\"",
",",
"int",
".",
"class",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Encoder \"",
"+",
"name",
"+",
"\" / \"",
"+",
"clazz",
"+",
"\" does not support \"",
"+",
"MAX_CODE_LENGTH",
",",
"e",
")",
";",
"}",
"}",
"getEncoder",
"(",
")",
";",
"}"
] |
public virtual void Inform(IResourceLoader loader){registry.TryGetValue(name.ToUpperInvariant(), out clazz);if (clazz == null){clazz = ResolveEncoder(name, loader);}if (maxCodeLength != null){try{setMaxCodeLenMethod = clazz.GetMethod("set_MaxCodeLen");}catch (Exception e){throw new ArgumentException("Encoder " + name + " / " + clazz + " does not support " + MAX_CODE_LENGTH, e);}}GetEncoder();}
|
train
| false
|
7,205
|
public DescribeOrganizationConfigurationResult describeOrganizationConfiguration(DescribeOrganizationConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeOrganizationConfiguration(request);}
|
[
"public",
"DescribeOrganizationConfigurationResult",
"describeOrganizationConfiguration",
"(",
"DescribeOrganizationConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeOrganizationConfiguration",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeOrganizationConfigurationResponse DescribeOrganizationConfiguration(DescribeOrganizationConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeOrganizationConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeOrganizationConfigurationResponseUnmarshaller.Instance;return Invoke<DescribeOrganizationConfigurationResponse>(request, options);}
|
train
| false
|
7,206
|
public AbbreviatedObjectId getOldId() {return getOldId(0);}
|
[
"public",
"AbbreviatedObjectId",
"getOldId",
"(",
")",
"{",
"return",
"getOldId",
"(",
"0",
")",
";",
"}"
] |
public override AbbreviatedObjectId GetOldId(){return GetOldId(0);}
|
train
| false
|
7,207
|
public UpdateRuleMetadataResult updateRuleMetadata(UpdateRuleMetadataRequest request) {request = beforeClientExecution(request);return executeUpdateRuleMetadata(request);}
|
[
"public",
"UpdateRuleMetadataResult",
"updateRuleMetadata",
"(",
"UpdateRuleMetadataRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateRuleMetadata",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateRuleMetadataResponse UpdateRuleMetadata(UpdateRuleMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRuleMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRuleMetadataResponseUnmarshaller.Instance;return Invoke<UpdateRuleMetadataResponse>(request, options);}
|
train
| false
|
7,208
|
public K lowerKey(K key) {Entry<K, V> entry = findBounded(key, LOWER);return entry != null ? entry.getKey() : null;}
|
[
"public",
"K",
"lowerKey",
"(",
"K",
"key",
")",
"{",
"Entry",
"<",
"K",
",",
"V",
">",
"entry",
"=",
"findBounded",
"(",
"key",
",",
"LOWER",
")",
";",
"return",
"entry",
"!=",
"null",
"?",
"entry",
".",
"getKey",
"(",
")",
":",
"null",
";",
"}"
] |
public K lowerKey(K key){java.util.MapClass.Entry<K, V> entry = this.findBounded(key, java.util.TreeMap.Relation.LOWER);return entry != null ? entry.getKey() : default(K);}
|
train
| false
|
7,209
|
public FtCfSubRecord clone() {return copy();}
|
[
"public",
"FtCfSubRecord",
"clone",
"(",
")",
"{",
"return",
"copy",
"(",
")",
";",
"}"
] |
public override Object Clone(){FtCfSubRecord rec = new FtCfSubRecord();rec.flags = this.flags;return rec;}
|
train
| false
|
7,210
|
public HCenterRecord clone() {return copy();}
|
[
"public",
"HCenterRecord",
"clone",
"(",
")",
"{",
"return",
"copy",
"(",
")",
";",
"}"
] |
public override Object Clone(){HCenterRecord rec = new HCenterRecord();rec.field_1_hcenter = field_1_hcenter;return rec;}
|
train
| false
|
7,211
|
public void serialize(LittleEndianOutput out) {out.writeInt(field_1_foregroundColor);out.writeInt(field_2_backgroundColor);out.writeShort(field_3_pattern);out.writeShort(field_4_formatFlags);out.writeShort(field_5_forecolorIndex);out.writeShort(field_6_backcolorIndex);}
|
[
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeInt",
"(",
"field_1_foregroundColor",
")",
";",
"out",
".",
"writeInt",
"(",
"field_2_backgroundColor",
")",
";",
"out",
".",
"writeShort",
"(",
"field_3_pattern",
")",
";",
"out",
".",
"writeShort",
"(",
"field_4_formatFlags",
")",
";",
"out",
".",
"writeShort",
"(",
"field_5_forecolorIndex",
")",
";",
"out",
".",
"writeShort",
"(",
"field_6_backcolorIndex",
")",
";",
"}"
] |
public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(field_1_foregroundColor);out1.WriteInt(field_2_backgroundColor);out1.WriteShort(field_3_pattern);out1.WriteShort(field_4_formatFlags);out1.WriteShort(field_5_forecolorIndex);out1.WriteShort(field_6_backcolorIndex);}
|
train
| false
|
7,212
|
public GetDashboardEmbedUrlResult getDashboardEmbedUrl(GetDashboardEmbedUrlRequest request) {request = beforeClientExecution(request);return executeGetDashboardEmbedUrl(request);}
|
[
"public",
"GetDashboardEmbedUrlResult",
"getDashboardEmbedUrl",
"(",
"GetDashboardEmbedUrlRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDashboardEmbedUrl",
"(",
"request",
")",
";",
"}"
] |
public virtual GetDashboardEmbedUrlResponse GetDashboardEmbedUrl(GetDashboardEmbedUrlRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDashboardEmbedUrlRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDashboardEmbedUrlResponseUnmarshaller.Instance;return Invoke<GetDashboardEmbedUrlResponse>(request, options);}
|
train
| true
|
7,213
|
public BinaryDocValues getBinaryDocValues(String field) {return getSortedDocValues(field, DocValuesType.BINARY);}
|
[
"public",
"BinaryDocValues",
"getBinaryDocValues",
"(",
"String",
"field",
")",
"{",
"return",
"getSortedDocValues",
"(",
"field",
",",
"DocValuesType",
".",
"BINARY",
")",
";",
"}"
] |
public override BinaryDocValues GetBinaryDocValues(string field){return null;}
|
train
| false
|
7,215
|
public DeleteApnsVoipSandboxChannelResult deleteApnsVoipSandboxChannel(DeleteApnsVoipSandboxChannelRequest request) {request = beforeClientExecution(request);return executeDeleteApnsVoipSandboxChannel(request);}
|
[
"public",
"DeleteApnsVoipSandboxChannelResult",
"deleteApnsVoipSandboxChannel",
"(",
"DeleteApnsVoipSandboxChannelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteApnsVoipSandboxChannel",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteApnsVoipSandboxChannelResponse DeleteApnsVoipSandboxChannel(DeleteApnsVoipSandboxChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApnsVoipSandboxChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApnsVoipSandboxChannelResponseUnmarshaller.Instance;return Invoke<DeleteApnsVoipSandboxChannelResponse>(request, options);}
|
train
| true
|
7,216
|
public FreeRefFunction findFunction(String name) {return _functionsByName.get(name.toUpperCase(Locale.ROOT));}
|
[
"public",
"FreeRefFunction",
"findFunction",
"(",
"String",
"name",
")",
"{",
"return",
"_functionsByName",
".",
"get",
"(",
"name",
".",
"toUpperCase",
"(",
"Locale",
".",
"ROOT",
")",
")",
";",
"}"
] |
public override FreeRefFunction FindFunction(String name){if (!_functionsByName.ContainsKey(name.ToUpper()))return null;return _functionsByName[name.ToUpper()];}
|
train
| false
|
7,217
|
public Credentials(String accessKeyId, String secretAccessKey, String sessionToken, java.util.Date expiration) {setAccessKeyId(accessKeyId);setSecretAccessKey(secretAccessKey);setSessionToken(sessionToken);setExpiration(expiration);}
|
[
"public",
"Credentials",
"(",
"String",
"accessKeyId",
",",
"String",
"secretAccessKey",
",",
"String",
"sessionToken",
",",
"java",
".",
"util",
".",
"Date",
"expiration",
")",
"{",
"setAccessKeyId",
"(",
"accessKeyId",
")",
";",
"setSecretAccessKey",
"(",
"secretAccessKey",
")",
";",
"setSessionToken",
"(",
"sessionToken",
")",
";",
"setExpiration",
"(",
"expiration",
")",
";",
"}"
] |
public Credentials(string accessKeyId, string secretAccessKey, string sessionToken, DateTime expiration){_accessKeyId = accessKeyId;_secretAccessKey = secretAccessKey;_sessionToken = sessionToken;_expiration = expiration;}
|
train
| false
|
7,218
|
public ReadTask(PerfRunData runData) {super(runData);if (withSearch()) {queryMaker = getQueryMaker();} else {queryMaker = null;}}
|
[
"public",
"ReadTask",
"(",
"PerfRunData",
"runData",
")",
"{",
"super",
"(",
"runData",
")",
";",
"if",
"(",
"withSearch",
"(",
")",
")",
"{",
"queryMaker",
"=",
"getQueryMaker",
"(",
")",
";",
"}",
"else",
"{",
"queryMaker",
"=",
"null",
";",
"}",
"}"
] |
public ReadTask(PerfRunData runData): base(runData){if (WithSearch){queryMaker = GetQueryMaker();}else{queryMaker = null;}}
|
train
| false
|
7,219
|
public int getPositionIncrementGap(String fieldName) {return 0;}
|
[
"public",
"int",
"getPositionIncrementGap",
"(",
"String",
"fieldName",
")",
"{",
"return",
"0",
";",
"}"
] |
public virtual int GetPositionIncrementGap(string fieldName){return 0;}
|
train
| false
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.