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,137
|
public ListClustersResult listClusters() {return listClusters(new ListClustersRequest());}
|
[
"public",
"ListClustersResult",
"listClusters",
"(",
")",
"{",
"return",
"listClusters",
"(",
"new",
"ListClustersRequest",
"(",
")",
")",
";",
"}"
] |
public virtual ListClustersResponse ListClusters(){return ListClusters(new ListClustersRequest());}
|
train
| false
|
2,138
|
public CreateAddressResult createAddress(CreateAddressRequest request) {request = beforeClientExecution(request);return executeCreateAddress(request);}
|
[
"public",
"CreateAddressResult",
"createAddress",
"(",
"CreateAddressRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateAddress",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateAddressResponse CreateAddress(CreateAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAddressResponseUnmarshaller.Instance;return Invoke<CreateAddressResponse>(request, options);}
|
train
| true
|
2,139
|
public ListFacePhotosRequest() {super("CloudPhoto", "2017-07-11", "ListFacePhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
|
[
"public",
"ListFacePhotosRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"ListFacePhotos\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] |
public ListFacePhotosRequest(): base("CloudPhoto", "2017-07-11", "ListFacePhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
|
train
| false
|
2,140
|
public String toPrivateASCIIString() {return format(true, true);}
|
[
"public",
"String",
"toPrivateASCIIString",
"(",
")",
"{",
"return",
"format",
"(",
"true",
",",
"true",
")",
";",
"}"
] |
public virtual string ToPrivateASCIIString(){return Format(true, true);}
|
train
| false
|
2,141
|
public BatchGetNamedQueryResult batchGetNamedQuery(BatchGetNamedQueryRequest request) {request = beforeClientExecution(request);return executeBatchGetNamedQuery(request);}
|
[
"public",
"BatchGetNamedQueryResult",
"batchGetNamedQuery",
"(",
"BatchGetNamedQueryRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeBatchGetNamedQuery",
"(",
"request",
")",
";",
"}"
] |
public virtual BatchGetNamedQueryResponse BatchGetNamedQuery(BatchGetNamedQueryRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetNamedQueryRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetNamedQueryResponseUnmarshaller.Instance;return Invoke<BatchGetNamedQueryResponse>(request, options);}
|
train
| true
|
2,142
|
public CreateProfilingGroupResult createProfilingGroup(CreateProfilingGroupRequest request) {request = beforeClientExecution(request);return executeCreateProfilingGroup(request);}
|
[
"public",
"CreateProfilingGroupResult",
"createProfilingGroup",
"(",
"CreateProfilingGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateProfilingGroup",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateProfilingGroupResponse CreateProfilingGroup(CreateProfilingGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateProfilingGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateProfilingGroupResponseUnmarshaller.Instance;return Invoke<CreateProfilingGroupResponse>(request, options);}
|
train
| false
|
2,143
|
@Override public String toString() {return Arrays.toString(elements);}
|
[
"@",
"Override",
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"Arrays",
".",
"toString",
"(",
"elements",
")",
";",
"}"
] |
public override string ToString(){return java.util.Arrays.toString(elements);}
|
train
| false
|
2,144
|
public String toString() {String padd = getPadding();StringBuilder sb = new StringBuilder(padd);if (disableCounting) {sb.append('-');}sb.append(getName());if (getRunInBackground()) {sb.append(" &");int x = getBackgroundDeltaPriority();if (x != 0) {sb.append(x);}}return sb.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"String",
"padd",
"=",
"getPadding",
"(",
")",
";",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
"padd",
")",
";",
"if",
"(",
"disableCounting",
")",
"{",
"sb",
".",
"append",
"(",
"'-'",
")",
";",
"}",
"sb",
".",
"append",
"(",
"getName",
"(",
")",
")",
";",
"if",
"(",
"getRunInBackground",
"(",
")",
")",
"{",
"sb",
".",
"append",
"(",
"\" &\"",
")",
";",
"int",
"x",
"=",
"getBackgroundDeltaPriority",
"(",
")",
";",
"if",
"(",
"x",
"!=",
"0",
")",
"{",
"sb",
".",
"append",
"(",
"x",
")",
";",
"}",
"}",
"return",
"sb",
".",
"toString",
"(",
")",
";",
"}"
] |
public override string ToString(){string padd = GetPadding();StringBuilder sb = new StringBuilder(padd);if (disableCounting){sb.Append('-');}sb.Append(GetName());if (RunInBackground){sb.Append(" &");int x = BackgroundDeltaPriority;if (x != 0){sb.Append(x);}}return sb.ToString();}
|
train
| false
|
2,145
|
public Counter bytesUsed() {return bytesUsed;}
|
[
"public",
"Counter",
"bytesUsed",
"(",
")",
"{",
"return",
"bytesUsed",
";",
"}"
] |
public override Counter BytesUsed(){return bytesUsed;}
|
train
| false
|
2,146
|
public ListStreamingDistributionsResult listStreamingDistributions(ListStreamingDistributionsRequest request) {request = beforeClientExecution(request);return executeListStreamingDistributions(request);}
|
[
"public",
"ListStreamingDistributionsResult",
"listStreamingDistributions",
"(",
"ListStreamingDistributionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListStreamingDistributions",
"(",
"request",
")",
";",
"}"
] |
public virtual ListStreamingDistributionsResponse ListStreamingDistributions(ListStreamingDistributionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStreamingDistributionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStreamingDistributionsResponseUnmarshaller.Instance;return Invoke<ListStreamingDistributionsResponse>(request, options);}
|
train
| true
|
2,147
|
public final void writeInt(int val) throws IOException {Memory.pokeInt(scratch, 0, val, ByteOrder.BIG_ENDIAN);write(scratch, 0, SizeOf.INT);}
|
[
"public",
"final",
"void",
"writeInt",
"(",
"int",
"val",
")",
"throws",
"IOException",
"{",
"Memory",
".",
"pokeInt",
"(",
"scratch",
",",
"0",
",",
"val",
",",
"ByteOrder",
".",
"BIG_ENDIAN",
")",
";",
"write",
"(",
"scratch",
",",
"0",
",",
"SizeOf",
".",
"INT",
")",
";",
"}"
] |
public virtual void writeInt(int val){throw new System.NotImplementedException();}
|
train
| true
|
2,148
|
public static ExpandedDouble fromRawBitsAndExponent(long rawBits, int exp) {return new ExpandedDouble(getFrac(rawBits), exp);}
|
[
"public",
"static",
"ExpandedDouble",
"fromRawBitsAndExponent",
"(",
"long",
"rawBits",
",",
"int",
"exp",
")",
"{",
"return",
"new",
"ExpandedDouble",
"(",
"getFrac",
"(",
"rawBits",
")",
",",
"exp",
")",
";",
"}"
] |
public static ExpandedDouble FromRawBitsAndExponent(long rawBits, int exp){return new ExpandedDouble(GetFrac(rawBits), exp);}
|
train
| false
|
2,149
|
public boolean offerFirst(E e) {return addFirstImpl(e);}
|
[
"public",
"boolean",
"offerFirst",
"(",
"E",
"e",
")",
"{",
"return",
"addFirstImpl",
"(",
"e",
")",
";",
"}"
] |
public virtual bool offerFirst(E e){return addFirstImpl(e);}
|
train
| false
|
2,150
|
public BlockTermsWriter(TermsIndexWriterBase termsIndexWriter,SegmentWriteState state, PostingsWriterBase postingsWriter)throws IOException {final String termsFileName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, TERMS_EXTENSION);this.termsIndexWriter = termsIndexWriter;maxDoc = state.segmentInfo.maxDoc();out = state.directory.createOutput(termsFileName, state.context);boolean success = false;try {fieldInfos = state.fieldInfos;CodecUtil.writeIndexHeader(out, CODEC_NAME, VERSION_CURRENT, state.segmentInfo.getId(), state.segmentSuffix);currentField = null;this.postingsWriter = postingsWriter;postingsWriter.init(out, state); success = true;} finally {if (!success) {IOUtils.closeWhileHandlingException(out);}}}
|
[
"public",
"BlockTermsWriter",
"(",
"TermsIndexWriterBase",
"termsIndexWriter",
",",
"SegmentWriteState",
"state",
",",
"PostingsWriterBase",
"postingsWriter",
")",
"throws",
"IOException",
"{",
"final",
"String",
"termsFileName",
"=",
"IndexFileNames",
".",
"segmentFileName",
"(",
"state",
".",
"segmentInfo",
".",
"name",
",",
"state",
".",
"segmentSuffix",
",",
"TERMS_EXTENSION",
")",
";",
"this",
".",
"termsIndexWriter",
"=",
"termsIndexWriter",
";",
"maxDoc",
"=",
"state",
".",
"segmentInfo",
".",
"maxDoc",
"(",
")",
";",
"out",
"=",
"state",
".",
"directory",
".",
"createOutput",
"(",
"termsFileName",
",",
"state",
".",
"context",
")",
";",
"boolean",
"success",
"=",
"false",
";",
"try",
"{",
"fieldInfos",
"=",
"state",
".",
"fieldInfos",
";",
"CodecUtil",
".",
"writeIndexHeader",
"(",
"out",
",",
"CODEC_NAME",
",",
"VERSION_CURRENT",
",",
"state",
".",
"segmentInfo",
".",
"getId",
"(",
")",
",",
"state",
".",
"segmentSuffix",
")",
";",
"currentField",
"=",
"null",
";",
"this",
".",
"postingsWriter",
"=",
"postingsWriter",
";",
"postingsWriter",
".",
"init",
"(",
"out",
",",
"state",
")",
";",
"success",
"=",
"true",
";",
"}",
"finally",
"{",
"if",
"(",
"!",
"success",
")",
"{",
"IOUtils",
".",
"closeWhileHandlingException",
"(",
"out",
")",
";",
"}",
"}",
"}"
] |
public BlockTermsWriter(TermsIndexWriterBase termsIndexWriter,SegmentWriteState state, PostingsWriterBase postingsWriter){string termsFileName = IndexFileNames.SegmentFileName(state.SegmentInfo.Name, state.SegmentSuffix, TERMS_EXTENSION);this.termsIndexWriter = termsIndexWriter;m_output = state.Directory.CreateOutput(termsFileName, state.Context);bool success = false;try{fieldInfos = state.FieldInfos;WriteHeader(m_output);currentField = null;this.postingsWriter = postingsWriter;postingsWriter.Init(m_output); success = true;}finally{if (!success){IOUtils.DisposeWhileHandlingException(m_output);}}}
|
train
| false
|
2,151
|
public InstanceGroupModifyConfig(String instanceGroupId, Integer instanceCount) {setInstanceGroupId(instanceGroupId);setInstanceCount(instanceCount);}
|
[
"public",
"InstanceGroupModifyConfig",
"(",
"String",
"instanceGroupId",
",",
"Integer",
"instanceCount",
")",
"{",
"setInstanceGroupId",
"(",
"instanceGroupId",
")",
";",
"setInstanceCount",
"(",
"instanceCount",
")",
";",
"}"
] |
public InstanceGroupModifyConfig(string instanceGroupId, int instanceCount){_instanceGroupId = instanceGroupId;_instanceCount = instanceCount;}
|
train
| false
|
2,152
|
public void collect(int doc) {totalHits++;}
|
[
"public",
"void",
"collect",
"(",
"int",
"doc",
")",
"{",
"totalHits",
"++",
";",
"}"
] |
public virtual void Collect(int doc){totalHits++;}
|
train
| false
|
2,153
|
public void writeByte(int v) {try {out.write(v);} catch (IOException e) {throw new RuntimeException(e);}}
|
[
"public",
"void",
"writeByte",
"(",
"int",
"v",
")",
"{",
"try",
"{",
"out",
".",
"write",
"(",
"v",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"e",
")",
";",
"}",
"}"
] |
public void WriteByte(int v){try{out1.WriteByte((byte)v);}catch (IOException e){throw new RuntimeException(e);}}
|
train
| false
|
2,154
|
public int serializeComplexPart(byte[] data, int pos) {System.arraycopy(complexData, 0, data, pos, complexData.length);return complexData.length;}
|
[
"public",
"int",
"serializeComplexPart",
"(",
"byte",
"[",
"]",
"data",
",",
"int",
"pos",
")",
"{",
"System",
".",
"arraycopy",
"(",
"complexData",
",",
"0",
",",
"data",
",",
"pos",
",",
"complexData",
".",
"length",
")",
";",
"return",
"complexData",
".",
"length",
";",
"}"
] |
public override int SerializeComplexPart(byte[] data, int pos){Array.Copy(_complexData, 0, data, pos, _complexData.Length);return _complexData.Length;}
|
train
| false
|
2,155
|
public String toString() {return "<notokenfound/>";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"<notokenfound/>\"",
";",
"}"
] |
public override string ToString(){return "<notokenfound/>";}
|
train
| false
|
2,156
|
public DecisionInfo(int decision) {this.decision = decision;}
|
[
"public",
"DecisionInfo",
"(",
"int",
"decision",
")",
"{",
"this",
".",
"decision",
"=",
"decision",
";",
"}"
] |
public DecisionInfo(int decision){this.decision = decision;}
|
train
| false
|
2,157
|
public CFRuleRecord(RecordInputStream in) {setConditionType(in.readByte());setComparisonOperation(in.readByte());int field_3_formula1_len = in.readUShort();int field_4_formula2_len = in.readUShort();readFormatOptions(in);setFormula1(Formula.read(field_3_formula1_len, in));setFormula2(Formula.read(field_4_formula2_len, in));}
|
[
"public",
"CFRuleRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"setConditionType",
"(",
"in",
".",
"readByte",
"(",
")",
")",
";",
"setComparisonOperation",
"(",
"in",
".",
"readByte",
"(",
")",
")",
";",
"int",
"field_3_formula1_len",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"int",
"field_4_formula2_len",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"readFormatOptions",
"(",
"in",
")",
";",
"setFormula1",
"(",
"Formula",
".",
"read",
"(",
"field_3_formula1_len",
",",
"in",
")",
")",
";",
"setFormula2",
"(",
"Formula",
".",
"read",
"(",
"field_4_formula2_len",
",",
"in",
")",
")",
";",
"}"
] |
public CFRuleRecord(RecordInputStream in1){field_1_condition_type = (byte)in1.ReadByte();field_2_comparison_operator = (byte)in1.ReadByte();int field_3_formula1_len = in1.ReadUShort();int field_4_formula2_len = in1.ReadUShort();field_5_options = in1.ReadInt();field_6_not_used = in1.ReadShort();if (ContainsFontFormattingBlock){_fontFormatting = new FontFormatting(in1);}if (ContainsBorderFormattingBlock){_borderFormatting = new BorderFormatting(in1);}if (ContainsPatternFormattingBlock){_patternFormatting = new PatternFormatting(in1);}field_17_formula1 = FR.Formula.Read(field_3_formula1_len, in1);field_18_formula2 = FR.Formula.Read(field_4_formula2_len, in1);}
|
train
| false
|
2,158
|
public GroupMarkerSubRecord() {reserved = EMPTY_BYTE_ARRAY;}
|
[
"public",
"GroupMarkerSubRecord",
"(",
")",
"{",
"reserved",
"=",
"EMPTY_BYTE_ARRAY",
";",
"}"
] |
public GroupMarkerSubRecord(){reserved = EMPTY_BYTE_ARRAY;}
|
train
| false
|
2,159
|
public SegToken filter(SegToken token) {switch (token.wordType) {case WordType.FULLWIDTH_NUMBER:case WordType.FULLWIDTH_STRING: for (int i = 0; i < token.charArray.length; i++) {if (token.charArray[i] >= 0xFF10)token.charArray[i] -= 0xFEE0;if (token.charArray[i] >= 0x0041 && token.charArray[i] <= 0x005A) token.charArray[i] += 0x0020;}break;case WordType.STRING:for (int i = 0; i < token.charArray.length; i++) {if (token.charArray[i] >= 0x0041 && token.charArray[i] <= 0x005A) token.charArray[i] += 0x0020;}break;case WordType.DELIMITER: token.charArray = Utility.COMMON_DELIMITER;break;default:break;}return token;}
|
[
"public",
"SegToken",
"filter",
"(",
"SegToken",
"token",
")",
"{",
"switch",
"(",
"token",
".",
"wordType",
")",
"{",
"case",
"WordType",
".",
"FULLWIDTH_NUMBER",
":",
"case",
"WordType",
".",
"FULLWIDTH_STRING",
":",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"token",
".",
"charArray",
".",
"length",
";",
"i",
"++",
")",
"{",
"if",
"(",
"token",
".",
"charArray",
"[",
"i",
"]",
">=",
"0xFF10",
")",
"token",
".",
"charArray",
"[",
"i",
"]",
"-=",
"0xFEE0",
";",
"if",
"(",
"token",
".",
"charArray",
"[",
"i",
"]",
">=",
"0x0041",
"&&",
"token",
".",
"charArray",
"[",
"i",
"]",
"<=",
"0x005A",
")",
"token",
".",
"charArray",
"[",
"i",
"]",
"+=",
"0x0020",
";",
"}",
"break",
";",
"case",
"WordType",
".",
"STRING",
":",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"token",
".",
"charArray",
".",
"length",
";",
"i",
"++",
")",
"{",
"if",
"(",
"token",
".",
"charArray",
"[",
"i",
"]",
">=",
"0x0041",
"&&",
"token",
".",
"charArray",
"[",
"i",
"]",
"<=",
"0x005A",
")",
"token",
".",
"charArray",
"[",
"i",
"]",
"+=",
"0x0020",
";",
"}",
"break",
";",
"case",
"WordType",
".",
"DELIMITER",
":",
"token",
".",
"charArray",
"=",
"Utility",
".",
"COMMON_DELIMITER",
";",
"break",
";",
"default",
":",
"break",
";",
"}",
"return",
"token",
";",
"}"
] |
public virtual SegToken Filter(SegToken token){switch (token.WordType){case WordType.FULLWIDTH_NUMBER:case WordType.FULLWIDTH_STRING: for (int i = 0; i < token.CharArray.Length; i++){if (token.CharArray[i] >= 0xFF10){token.CharArray[i] = (char)(token.CharArray[i] - 0xFEE0);}if (token.CharArray[i] >= 0x0041 && token.CharArray[i] <= 0x005A) {token.CharArray[i] = (char)(token.CharArray[i] + 0x0020);}}break;case WordType.STRING:for (int i = 0; i < token.CharArray.Length; i++){if (token.CharArray[i] >= 0x0041 && token.CharArray[i] <= 0x005A) {token.CharArray[i] = (char)(token.CharArray[i] + 0x0020);}}break;case WordType.DELIMITER: token.CharArray = Utility.COMMON_DELIMITER;break;default:break;}return token;}
|
train
| false
|
2,160
|
public BarRecord(RecordInputStream in) {field_1_barSpace = in.readShort();field_2_categorySpace = in.readShort();field_3_formatFlags = in.readShort();}
|
[
"public",
"BarRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_barSpace",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_2_categorySpace",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_3_formatFlags",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"}"
] |
public BarRecord(RecordInputStream in1){field_1_barSpace = in1.ReadShort();field_2_categorySpace = in1.ReadShort();field_3_formatFlags = in1.ReadShort();}
|
train
| false
|
2,161
|
public final boolean tryIncRef() {int count;while ((count = refCount.get()) > 0) {if (refCount.compareAndSet(count, count+1)) {return true;}}return false;}
|
[
"public",
"final",
"boolean",
"tryIncRef",
"(",
")",
"{",
"int",
"count",
";",
"while",
"(",
"(",
"count",
"=",
"refCount",
".",
"get",
"(",
")",
")",
">",
"0",
")",
"{",
"if",
"(",
"refCount",
".",
"compareAndSet",
"(",
"count",
",",
"count",
"+",
"1",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";",
"}"
] |
public bool TryIncRef(){int count;while ((count = refCount) > 0){if (refCount.CompareAndSet(count, count + 1)){return true;}}return false;}
|
train
| false
|
2,162
|
public GetStackPolicyResult getStackPolicy(GetStackPolicyRequest request) {request = beforeClientExecution(request);return executeGetStackPolicy(request);}
|
[
"public",
"GetStackPolicyResult",
"getStackPolicy",
"(",
"GetStackPolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetStackPolicy",
"(",
"request",
")",
";",
"}"
] |
public virtual GetStackPolicyResponse GetStackPolicy(GetStackPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetStackPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetStackPolicyResponseUnmarshaller.Instance;return Invoke<GetStackPolicyResponse>(request, options);}
|
train
| true
|
2,163
|
public void removeKeywords() {remove1stProperty(PropertyIDMap.PID_KEYWORDS);}
|
[
"public",
"void",
"removeKeywords",
"(",
")",
"{",
"remove1stProperty",
"(",
"PropertyIDMap",
".",
"PID_KEYWORDS",
")",
";",
"}"
] |
public void RemoveKeywords(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_KEYWORDS);}
|
train
| false
|
2,164
|
public boolean follows(TextFragment fragment){return textStartPos == fragment.textEndPos;}
|
[
"public",
"boolean",
"follows",
"(",
"TextFragment",
"fragment",
")",
"{",
"return",
"textStartPos",
"==",
"fragment",
".",
"textEndPos",
";",
"}"
] |
public virtual bool Follows(TextFragment fragment){return TextStartPos == fragment.TextEndPos;}
|
train
| false
|
2,165
|
public DescribeHyperParameterTuningJobResult describeHyperParameterTuningJob(DescribeHyperParameterTuningJobRequest request) {request = beforeClientExecution(request);return executeDescribeHyperParameterTuningJob(request);}
|
[
"public",
"DescribeHyperParameterTuningJobResult",
"describeHyperParameterTuningJob",
"(",
"DescribeHyperParameterTuningJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeHyperParameterTuningJob",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeHyperParameterTuningJobResponse DescribeHyperParameterTuningJob(DescribeHyperParameterTuningJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeHyperParameterTuningJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeHyperParameterTuningJobResponseUnmarshaller.Instance;return Invoke<DescribeHyperParameterTuningJobResponse>(request, options);}
|
train
| true
|
2,167
|
public String toString() {return "State [entries=" + entries + ", hosts=" + hosts + "]";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"State [entries=\"",
"+",
"entries",
"+",
"\", hosts=\"",
"+",
"hosts",
"+",
"\"]\"",
";",
"}"
] |
public override string ToString(){return "PackWriter.State[" + this.phase + ", memory=" + this.bytesUsed + "]";}
|
train
| false
|
2,168
|
public DataFormatRecord(RecordInputStream in) {field_1_pointNumber = in.readShort();field_2_seriesIndex = in.readShort();field_3_seriesNumber = in.readShort();field_4_formatFlags = in.readShort();}
|
[
"public",
"DataFormatRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_pointNumber",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_2_seriesIndex",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_3_seriesNumber",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_4_formatFlags",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"}"
] |
public DataFormatRecord(RecordInputStream in1){field_1_pointNumber = in1.ReadShort();field_2_seriesIndex = in1.ReadShort();field_3_seriesNumber = in1.ReadShort();field_4_formatFlags = in1.ReadShort();}
|
train
| false
|
2,169
|
public ModifyVpcEndpointServiceConfigurationResult modifyVpcEndpointServiceConfiguration(ModifyVpcEndpointServiceConfigurationRequest request) {request = beforeClientExecution(request);return executeModifyVpcEndpointServiceConfiguration(request);}
|
[
"public",
"ModifyVpcEndpointServiceConfigurationResult",
"modifyVpcEndpointServiceConfiguration",
"(",
"ModifyVpcEndpointServiceConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyVpcEndpointServiceConfiguration",
"(",
"request",
")",
";",
"}"
] |
public virtual ModifyVpcEndpointServiceConfigurationResponse ModifyVpcEndpointServiceConfiguration(ModifyVpcEndpointServiceConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpcEndpointServiceConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpcEndpointServiceConfigurationResponseUnmarshaller.Instance;return Invoke<ModifyVpcEndpointServiceConfigurationResponse>(request, options);}
|
train
| true
|
2,170
|
public void serialize(LittleEndianOutput out) {out.writeShort(_encodedTokenLen);out.write(_byteEncoding);}
|
[
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"_encodedTokenLen",
")",
";",
"out",
".",
"write",
"(",
"_byteEncoding",
")",
";",
"}"
] |
public void Serialize(ILittleEndianOutput out1){out1.WriteShort(_encodedTokenLen);out1.Write(_byteEncoding);}
|
train
| false
|
2,172
|
public RecognizeLabelRequest() {super("visionai-poc", "2020-04-08", "RecognizeLabel");setMethod(MethodType.POST);}
|
[
"public",
"RecognizeLabelRequest",
"(",
")",
"{",
"super",
"(",
"\"visionai-poc\"",
",",
"\"2020-04-08\"",
",",
"\"RecognizeLabel\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] |
public RecognizeLabelRequest(): base("visionai-poc", "2020-04-08", "RecognizeLabel"){Method = MethodType.POST;}
|
train
| false
|
2,173
|
public ListStackSetsResult listStackSets(ListStackSetsRequest request) {request = beforeClientExecution(request);return executeListStackSets(request);}
|
[
"public",
"ListStackSetsResult",
"listStackSets",
"(",
"ListStackSetsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListStackSets",
"(",
"request",
")",
";",
"}"
] |
public virtual ListStackSetsResponse ListStackSets(ListStackSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStackSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStackSetsResponseUnmarshaller.Instance;return Invoke<ListStackSetsResponse>(request, options);}
|
train
| true
|
2,174
|
public ModifyNetworkInterfaceAttributeResult modifyNetworkInterfaceAttribute(ModifyNetworkInterfaceAttributeRequest request) {request = beforeClientExecution(request);return executeModifyNetworkInterfaceAttribute(request);}
|
[
"public",
"ModifyNetworkInterfaceAttributeResult",
"modifyNetworkInterfaceAttribute",
"(",
"ModifyNetworkInterfaceAttributeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyNetworkInterfaceAttribute",
"(",
"request",
")",
";",
"}"
] |
public virtual ModifyNetworkInterfaceAttributeResponse ModifyNetworkInterfaceAttribute(ModifyNetworkInterfaceAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyNetworkInterfaceAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyNetworkInterfaceAttributeResponseUnmarshaller.Instance;return Invoke<ModifyNetworkInterfaceAttributeResponse>(request, options);}
|
train
| true
|
2,175
|
public static RevFilter create(RevFilter a) {return new NotRevFilter(a);}
|
[
"public",
"static",
"RevFilter",
"create",
"(",
"RevFilter",
"a",
")",
"{",
"return",
"new",
"NotRevFilter",
"(",
"a",
")",
";",
"}"
] |
public static RevFilter Create(RevFilter a){return new NGit.Revwalk.Filter.NotRevFilter(a);}
|
train
| false
|
2,176
|
public String toString() {String up = parent!=null ? parent.toString() : "";if ( up.length()==0 ) {if ( returnState == EMPTY_RETURN_STATE ) {return "$";}return String.valueOf(returnState);}return String.valueOf(returnState)+" "+up;}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"String",
"up",
"=",
"parent",
"!=",
"null",
"?",
"parent",
".",
"toString",
"(",
")",
":",
"\"\"",
";",
"if",
"(",
"up",
".",
"length",
"(",
")",
"==",
"0",
")",
"{",
"if",
"(",
"returnState",
"==",
"EMPTY_RETURN_STATE",
")",
"{",
"return",
"\"$\"",
";",
"}",
"return",
"String",
".",
"valueOf",
"(",
"returnState",
")",
";",
"}",
"return",
"String",
".",
"valueOf",
"(",
"returnState",
")",
"+",
"\" \"",
"+",
"up",
";",
"}"
] |
public override string ToString(){string up = parent != null ? parent.ToString() : "";if (up.Length == 0){if (returnState == EMPTY_RETURN_STATE){return "$";}return returnState.ToString();}return returnState.ToString() + " " + up;}
|
train
| false
|
2,177
|
public ToParentBlockJoinQuery(Query childQuery, BitSetProducer parentsFilter, ScoreMode scoreMode) {super();this.childQuery = childQuery;this.parentsFilter = parentsFilter;this.scoreMode = scoreMode;}
|
[
"public",
"ToParentBlockJoinQuery",
"(",
"Query",
"childQuery",
",",
"BitSetProducer",
"parentsFilter",
",",
"ScoreMode",
"scoreMode",
")",
"{",
"super",
"(",
")",
";",
"this",
".",
"childQuery",
"=",
"childQuery",
";",
"this",
".",
"parentsFilter",
"=",
"parentsFilter",
";",
"this",
".",
"scoreMode",
"=",
"scoreMode",
";",
"}"
] |
public ToParentBlockJoinQuery(Query childQuery, Filter parentsFilter, ScoreMode scoreMode): base(){_origChildQuery = childQuery;_childQuery = childQuery;_parentsFilter = parentsFilter;_scoreMode = scoreMode;}
|
train
| false
|
2,178
|
public int previousIndex() {int previous = iterator.previousIndex();if (previous >= start) {return previous - start;}return -1;}
|
[
"public",
"int",
"previousIndex",
"(",
")",
"{",
"int",
"previous",
"=",
"iterator",
".",
"previousIndex",
"(",
")",
";",
"if",
"(",
"previous",
">=",
"start",
")",
"{",
"return",
"previous",
"-",
"start",
";",
"}",
"return",
"-",
"1",
";",
"}"
] |
public int previousIndex(){int previous_1 = iterator.previousIndex();if (previous_1 >= start){return previous_1 - start;}return -1;}
|
train
| false
|
2,179
|
public String getSourcePath(int idx) {return sourcePaths[idx];}
|
[
"public",
"String",
"getSourcePath",
"(",
"int",
"idx",
")",
"{",
"return",
"sourcePaths",
"[",
"idx",
"]",
";",
"}"
] |
public virtual string GetSourcePath(int idx){return sourcePaths[idx];}
|
train
| false
|
2,180
|
public DoubleBuffer slice() {return new ReadWriteDoubleArrayBuffer(remaining(), backingArray, offset + position);}
|
[
"public",
"DoubleBuffer",
"slice",
"(",
")",
"{",
"return",
"new",
"ReadWriteDoubleArrayBuffer",
"(",
"remaining",
"(",
")",
",",
"backingArray",
",",
"offset",
"+",
"position",
")",
";",
"}"
] |
public override java.nio.DoubleBuffer slice(){return new java.nio.ReadWriteDoubleArrayBuffer(remaining(), backingArray, offset+ _position);}
|
train
| false
|
2,181
|
public DescribeEvaluationsResult describeEvaluations(DescribeEvaluationsRequest request) {request = beforeClientExecution(request);return executeDescribeEvaluations(request);}
|
[
"public",
"DescribeEvaluationsResult",
"describeEvaluations",
"(",
"DescribeEvaluationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeEvaluations",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeEvaluationsResponse DescribeEvaluations(DescribeEvaluationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEvaluationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEvaluationsResponseUnmarshaller.Instance;return Invoke<DescribeEvaluationsResponse>(request, options);}
|
train
| true
|
2,182
|
public int getBigBlockSize() {return bigBlockSize;}
|
[
"public",
"int",
"getBigBlockSize",
"(",
")",
"{",
"return",
"bigBlockSize",
";",
"}"
] |
public int GetBigBlockSize(){return bigBlockSize;}
|
train
| false
|
2,183
|
public static ValueVector createRowVector(TwoDEval tableArray, int relativeRowIndex) {return new RowVector(tableArray, relativeRowIndex);}
|
[
"public",
"static",
"ValueVector",
"createRowVector",
"(",
"TwoDEval",
"tableArray",
",",
"int",
"relativeRowIndex",
")",
"{",
"return",
"new",
"RowVector",
"(",
"tableArray",
",",
"relativeRowIndex",
")",
";",
"}"
] |
public static ValueVector CreateRowVector(TwoDEval tableArray, int relativeRowIndex){return new RowVector((AreaEval)tableArray, relativeRowIndex);}
|
train
| false
|
2,184
|
public void setDbcell(int cell, int value){field_5_dbcells.set(cell, value);}
|
[
"public",
"void",
"setDbcell",
"(",
"int",
"cell",
",",
"int",
"value",
")",
"{",
"field_5_dbcells",
".",
"set",
"(",
"cell",
",",
"value",
")",
";",
"}"
] |
public void SetDbcell(int cell, int value){field_5_dbcells.Set(cell, value);}
|
train
| false
|
2,185
|
public int compareTo(MutableValue other) {Class<? extends MutableValue> c1 = this.getClass();Class<? extends MutableValue> c2 = other.getClass();if (c1 != c2) {int c = c1.hashCode() - c2.hashCode();if (c == 0) {c = c1.getCanonicalName().compareTo(c2.getCanonicalName());}return c;}return compareSameType(other);}
|
[
"public",
"int",
"compareTo",
"(",
"MutableValue",
"other",
")",
"{",
"Class",
"<",
"?",
"extends",
"MutableValue",
">",
"c1",
"=",
"this",
".",
"getClass",
"(",
")",
";",
"Class",
"<",
"?",
"extends",
"MutableValue",
">",
"c2",
"=",
"other",
".",
"getClass",
"(",
")",
";",
"if",
"(",
"c1",
"!=",
"c2",
")",
"{",
"int",
"c",
"=",
"c1",
".",
"hashCode",
"(",
")",
"-",
"c2",
".",
"hashCode",
"(",
")",
";",
"if",
"(",
"c",
"==",
"0",
")",
"{",
"c",
"=",
"c1",
".",
"getCanonicalName",
"(",
")",
".",
"compareTo",
"(",
"c2",
".",
"getCanonicalName",
"(",
")",
")",
";",
"}",
"return",
"c",
";",
"}",
"return",
"compareSameType",
"(",
"other",
")",
";",
"}"
] |
public virtual int CompareTo(MutableValue other){Type c1 = this.GetType();Type c2 = other.GetType();if (c1 != c2){int c = c1.GetHashCode() - c2.GetHashCode();if (c == 0){c = c1.FullName.CompareToOrdinal(c2.FullName);}return c;}return CompareSameType(other);}
|
train
| false
|
2,186
|
public StartSpeechSynthesisTaskResult startSpeechSynthesisTask(StartSpeechSynthesisTaskRequest request) {request = beforeClientExecution(request);return executeStartSpeechSynthesisTask(request);}
|
[
"public",
"StartSpeechSynthesisTaskResult",
"startSpeechSynthesisTask",
"(",
"StartSpeechSynthesisTaskRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStartSpeechSynthesisTask",
"(",
"request",
")",
";",
"}"
] |
public virtual StartSpeechSynthesisTaskResponse StartSpeechSynthesisTask(StartSpeechSynthesisTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartSpeechSynthesisTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = StartSpeechSynthesisTaskResponseUnmarshaller.Instance;return Invoke<StartSpeechSynthesisTaskResponse>(request, options);}
|
train
| true
|
2,187
|
public void removeParseListeners() {_parseListeners = null;}
|
[
"public",
"void",
"removeParseListeners",
"(",
")",
"{",
"_parseListeners",
"=",
"null",
";",
"}"
] |
public virtual void RemoveParseListeners(){_parseListeners = null;}
|
train
| false
|
2,188
|
public ListIdentityPoolsResult listIdentityPools(ListIdentityPoolsRequest request) {request = beforeClientExecution(request);return executeListIdentityPools(request);}
|
[
"public",
"ListIdentityPoolsResult",
"listIdentityPools",
"(",
"ListIdentityPoolsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListIdentityPools",
"(",
"request",
")",
";",
"}"
] |
public virtual ListIdentityPoolsResponse ListIdentityPools(ListIdentityPoolsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIdentityPoolsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIdentityPoolsResponseUnmarshaller.Instance;return Invoke<ListIdentityPoolsResponse>(request, options);}
|
train
| true
|
2,189
|
public String toString(){return text + '(' + startOffset + ',' + endOffset + ',' + position + ')';}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"text",
"+",
"'('",
"+",
"startOffset",
"+",
"','",
"+",
"endOffset",
"+",
"','",
"+",
"position",
"+",
"')'",
";",
"}"
] |
public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append(text).Append('(').Append(startOffset).Append(',').Append(endOffset).Append(',').Append(position).Append(')');return sb.ToString();}
|
train
| false
|
2,190
|
public void setWrapIfNotCachingTokenFilter(boolean wrap) {this.wrapToCaching = wrap;}
|
[
"public",
"void",
"setWrapIfNotCachingTokenFilter",
"(",
"boolean",
"wrap",
")",
"{",
"this",
".",
"wrapToCaching",
"=",
"wrap",
";",
"}"
] |
public virtual void SetWrapIfNotCachingTokenFilter(bool wrap){this.wrapToCaching = wrap;}
|
train
| false
|
2,191
|
public void onChange(boolean selfChange) {mCursor.requery();}
|
[
"public",
"void",
"onChange",
"(",
"boolean",
"selfChange",
")",
"{",
"mCursor",
".",
"requery",
"(",
")",
";",
"}"
] |
public override void onChange(bool selfChange){this._enclosing.onContentChanged();}
|
train
| false
|
2,192
|
public DeleteRuleResult deleteRule(DeleteRuleRequest request) {request = beforeClientExecution(request);return executeDeleteRule(request);}
|
[
"public",
"DeleteRuleResult",
"deleteRule",
"(",
"DeleteRuleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteRule",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteRuleResponse DeleteRule(DeleteRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRuleResponseUnmarshaller.Instance;return Invoke<DeleteRuleResponse>(request, options);}
|
train
| true
|
2,193
|
public void serialize(LittleEndianOutput out) {out.writeByte(getAddMenuCount());out.writeByte(getDelMenuCount());}
|
[
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeByte",
"(",
"getAddMenuCount",
"(",
")",
")",
";",
"out",
".",
"writeByte",
"(",
"getDelMenuCount",
"(",
")",
")",
";",
"}"
] |
public override void Serialize(ILittleEndianOutput out1){out1.WriteByte(AddMenuCount);out1.WriteByte(DelMenuCount);}
|
train
| false
|
2,194
|
public String getPattern() {return pattern;}
|
[
"public",
"String",
"getPattern",
"(",
")",
"{",
"return",
"pattern",
";",
"}"
] |
public virtual string getPattern(){return pattern;}
|
train
| false
|
2,196
|
public final void getText(CharTermAttribute t) {t.copyBuffer(zzBuffer, zzStartRead, zzMarkedPos-zzStartRead);}
|
[
"public",
"final",
"void",
"getText",
"(",
"CharTermAttribute",
"t",
")",
"{",
"t",
".",
"copyBuffer",
"(",
"zzBuffer",
",",
"zzStartRead",
",",
"zzMarkedPos",
"-",
"zzStartRead",
")",
";",
"}"
] |
public void GetText(ICharTermAttribute t){t.CopyBuffer(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);}
|
train
| false
|
2,197
|
public LinkedList() {voidLink = new Link<E>(null, null, null);voidLink.previous = voidLink;voidLink.next = voidLink;}
|
[
"public",
"LinkedList",
"(",
")",
"{",
"voidLink",
"=",
"new",
"Link",
"<",
"E",
">",
"(",
"null",
",",
"null",
",",
"null",
")",
";",
"voidLink",
".",
"previous",
"=",
"voidLink",
";",
"voidLink",
".",
"next",
"=",
"voidLink",
";",
"}"
] |
public LinkedList(){voidLink = new java.util.LinkedList.Link<E>(default(E), null, null);voidLink.previous = voidLink;voidLink.next = voidLink;}
|
train
| false
|
2,198
|
public SnapshotCopyGrant createSnapshotCopyGrant(CreateSnapshotCopyGrantRequest request) {request = beforeClientExecution(request);return executeCreateSnapshotCopyGrant(request);}
|
[
"public",
"SnapshotCopyGrant",
"createSnapshotCopyGrant",
"(",
"CreateSnapshotCopyGrantRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateSnapshotCopyGrant",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateSnapshotCopyGrantResponse CreateSnapshotCopyGrant(CreateSnapshotCopyGrantRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSnapshotCopyGrantRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSnapshotCopyGrantResponseUnmarshaller.Instance;return Invoke<CreateSnapshotCopyGrantResponse>(request, options);}
|
train
| true
|
2,199
|
public static int getSingleViableAlt(Collection<BitSet> altsets) {BitSet viableAlts = new BitSet();for (BitSet alts : altsets) {int minAlt = alts.nextSetBit(0);viableAlts.set(minAlt);if ( viableAlts.cardinality()>1 ) { return ATN.INVALID_ALT_NUMBER;}}return viableAlts.nextSetBit(0);}
|
[
"public",
"static",
"int",
"getSingleViableAlt",
"(",
"Collection",
"<",
"BitSet",
">",
"altsets",
")",
"{",
"BitSet",
"viableAlts",
"=",
"new",
"BitSet",
"(",
")",
";",
"for",
"(",
"BitSet",
"alts",
":",
"altsets",
")",
"{",
"int",
"minAlt",
"=",
"alts",
".",
"nextSetBit",
"(",
"0",
")",
";",
"viableAlts",
".",
"set",
"(",
"minAlt",
")",
";",
"if",
"(",
"viableAlts",
".",
"cardinality",
"(",
")",
">",
"1",
")",
"{",
"return",
"ATN",
".",
"INVALID_ALT_NUMBER",
";",
"}",
"}",
"return",
"viableAlts",
".",
"nextSetBit",
"(",
"0",
")",
";",
"}"
] |
public static int GetSingleViableAlt(IEnumerable<BitSet> altsets){BitSet viableAlts = new BitSet();foreach (BitSet alts in altsets){int minAlt = alts.NextSetBit(0);viableAlts.Set(minAlt);if (viableAlts.Cardinality() > 1){return ATN.INVALID_ALT_NUMBER;}}return viableAlts.NextSetBit(0);}
|
train
| false
|
2,200
|
public Builder() {this.similarity = new BM25Similarity();}
|
[
"public",
"Builder",
"(",
")",
"{",
"this",
".",
"similarity",
"=",
"new",
"BM25Similarity",
"(",
")",
";",
"}"
] |
public Builder(){InitializeInstanceFields();}
|
train
| false
|
2,201
|
public List<Ref> getRevertedRefs() {return revertedRefs;}
|
[
"public",
"List",
"<",
"Ref",
">",
"getRevertedRefs",
"(",
")",
"{",
"return",
"revertedRefs",
";",
"}"
] |
public virtual IList<Ref> GetRevertedRefs(){return revertedRefs;}
|
train
| false
|
2,202
|
public DetachPolicyResult detachPolicy(DetachPolicyRequest request) {request = beforeClientExecution(request);return executeDetachPolicy(request);}
|
[
"public",
"DetachPolicyResult",
"detachPolicy",
"(",
"DetachPolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDetachPolicy",
"(",
"request",
")",
";",
"}"
] |
public virtual DetachPolicyResponse DetachPolicy(DetachPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachPolicyResponseUnmarshaller.Instance;return Invoke<DetachPolicyResponse>(request, options);}
|
train
| true
|
2,203
|
public final void writeUTF(String str) throws IOException {write(ModifiedUtf8.encode(str));}
|
[
"public",
"final",
"void",
"writeUTF",
"(",
"String",
"str",
")",
"throws",
"IOException",
"{",
"write",
"(",
"ModifiedUtf8",
".",
"encode",
"(",
"str",
")",
")",
";",
"}"
] |
public virtual void writeUTF(string str){throw new System.NotImplementedException();}
|
train
| false
|
2,204
|
public DeleteBusinessReportScheduleResult deleteBusinessReportSchedule(DeleteBusinessReportScheduleRequest request) {request = beforeClientExecution(request);return executeDeleteBusinessReportSchedule(request);}
|
[
"public",
"DeleteBusinessReportScheduleResult",
"deleteBusinessReportSchedule",
"(",
"DeleteBusinessReportScheduleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteBusinessReportSchedule",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteBusinessReportScheduleResponse DeleteBusinessReportSchedule(DeleteBusinessReportScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteBusinessReportScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteBusinessReportScheduleResponseUnmarshaller.Instance;return Invoke<DeleteBusinessReportScheduleResponse>(request, options);}
|
train
| true
|
2,205
|
public JapanesePartOfSpeechStopFilterFactory(Map<String,String> args) {super(args);stopTagFiles = get(args, "tags");if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
|
[
"public",
"JapanesePartOfSpeechStopFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"stopTagFiles",
"=",
"get",
"(",
"args",
",",
"\"tags\"",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown parameters: \"",
"+",
"args",
")",
";",
"}",
"}"
] |
public JapanesePartOfSpeechStopFilterFactory(IDictionary<string, string> args): base(args){stopTagFiles = Get(args, "tags");enablePositionIncrements = GetBoolean(args, "enablePositionIncrements", true);if (args.Count > 0){throw new ArgumentException("Unknown parameters: " + args);}}
|
train
| false
|
2,206
|
public SetVaultNotificationsResult setVaultNotifications(SetVaultNotificationsRequest request) {request = beforeClientExecution(request);return executeSetVaultNotifications(request);}
|
[
"public",
"SetVaultNotificationsResult",
"setVaultNotifications",
"(",
"SetVaultNotificationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSetVaultNotifications",
"(",
"request",
")",
";",
"}"
] |
public virtual SetVaultNotificationsResponse SetVaultNotifications(SetVaultNotificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetVaultNotificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = SetVaultNotificationsResponseUnmarshaller.Instance;return Invoke<SetVaultNotificationsResponse>(request, options);}
|
train
| true
|
2,207
|
public void writeBytes(byte[] b, int offset, int length) {assert pos + length <= limit;System.arraycopy(b, offset, bytes, pos, length);pos += length;}
|
[
"public",
"void",
"writeBytes",
"(",
"byte",
"[",
"]",
"b",
",",
"int",
"offset",
",",
"int",
"length",
")",
"{",
"assert",
"pos",
"+",
"length",
"<=",
"limit",
";",
"System",
".",
"arraycopy",
"(",
"b",
",",
"offset",
",",
"bytes",
",",
"pos",
",",
"length",
")",
";",
"pos",
"+=",
"length",
";",
"}"
] |
public override void WriteBytes(byte[] b, int offset, int length){Debug.Assert(pos + length <= limit);System.Buffer.BlockCopy(b, offset, bytes, pos, length);pos += length;}
|
train
| false
|
2,208
|
public UpdateLedgerResult updateLedger(UpdateLedgerRequest request) {request = beforeClientExecution(request);return executeUpdateLedger(request);}
|
[
"public",
"UpdateLedgerResult",
"updateLedger",
"(",
"UpdateLedgerRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateLedger",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateLedgerResponse UpdateLedger(UpdateLedgerRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateLedgerRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateLedgerResponseUnmarshaller.Instance;return Invoke<UpdateLedgerResponse>(request, options);}
|
train
| false
|
2,209
|
public BatchDetectDominantLanguageResult batchDetectDominantLanguage(BatchDetectDominantLanguageRequest request) {request = beforeClientExecution(request);return executeBatchDetectDominantLanguage(request);}
|
[
"public",
"BatchDetectDominantLanguageResult",
"batchDetectDominantLanguage",
"(",
"BatchDetectDominantLanguageRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeBatchDetectDominantLanguage",
"(",
"request",
")",
";",
"}"
] |
public virtual BatchDetectDominantLanguageResponse BatchDetectDominantLanguage(BatchDetectDominantLanguageRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDetectDominantLanguageRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDetectDominantLanguageResponseUnmarshaller.Instance;return Invoke<BatchDetectDominantLanguageResponse>(request, options);}
|
train
| true
|
2,210
|
public void pollForUpdates() {assert isMainThread();doUpdates();}
|
[
"public",
"void",
"pollForUpdates",
"(",
")",
"{",
"assert",
"isMainThread",
"(",
")",
";",
"doUpdates",
"(",
")",
";",
"}"
] |
public virtual void PollForUpdates(){DoUpdates();}
|
train
| false
|
2,211
|
public int getAltNumber() { return ATN.INVALID_ALT_NUMBER; }
|
[
"public",
"int",
"getAltNumber",
"(",
")",
"{",
"return",
"ATN",
".",
"INVALID_ALT_NUMBER",
";",
"}"
] |
public virtual int getAltNumber() { return Atn.ATN.INVALID_ALT_NUMBER; }
|
train
| false
|
2,212
|
public String toString() {StringBuilder sb = new StringBuilder(64);sb.append(getClass().getName()).append(" [");sb.append("]");return sb.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
"64",
")",
";",
"sb",
".",
"append",
"(",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
")",
".",
"append",
"(",
"\" [\"",
")",
";",
"sb",
".",
"append",
"(",
"\"]\"",
")",
";",
"return",
"sb",
".",
"toString",
"(",
")",
";",
"}"
] |
public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(" [");sb.Append(FormatAsString());sb.Append("]");return sb.ToString();}
|
train
| false
|
2,213
|
public int getTimeout() {return timeout;}
|
[
"public",
"int",
"getTimeout",
"(",
")",
"{",
"return",
"timeout",
";",
"}"
] |
public virtual int GetTimeout(){return timeout;}
|
train
| false
|
2,214
|
public boolean canReuse(IndexInput in) {return in == inStart;}
|
[
"public",
"boolean",
"canReuse",
"(",
"IndexInput",
"in",
")",
"{",
"return",
"in",
"==",
"inStart",
";",
"}"
] |
public virtual bool CanReuse(IndexInput @in){return @in == _inStart;}
|
train
| false
|
2,215
|
public DescribeMetricFiltersRequest(String logGroupName) {setLogGroupName(logGroupName);}
|
[
"public",
"DescribeMetricFiltersRequest",
"(",
"String",
"logGroupName",
")",
"{",
"setLogGroupName",
"(",
"logGroupName",
")",
";",
"}"
] |
public DescribeMetricFiltersRequest(string logGroupName){_logGroupName = logGroupName;}
|
train
| false
|
2,217
|
public void trimToSize() {if (count < value.length) {char[] newValue = new char[count];System.arraycopy(value, 0, newValue, 0, count);value = newValue;shared = false;}}
|
[
"public",
"void",
"trimToSize",
"(",
")",
"{",
"if",
"(",
"count",
"<",
"value",
".",
"length",
")",
"{",
"char",
"[",
"]",
"newValue",
"=",
"new",
"char",
"[",
"count",
"]",
";",
"System",
".",
"arraycopy",
"(",
"value",
",",
"0",
",",
"newValue",
",",
"0",
",",
"count",
")",
";",
"value",
"=",
"newValue",
";",
"shared",
"=",
"false",
";",
"}",
"}"
] |
public virtual void trimToSize(){if (count < value.Length){char[] newValue = new char[count];System.Array.Copy(value, 0, newValue, 0, count);value = newValue;shared = false;}}
|
train
| false
|
2,218
|
public ListTransformJobsResult listTransformJobs(ListTransformJobsRequest request) {request = beforeClientExecution(request);return executeListTransformJobs(request);}
|
[
"public",
"ListTransformJobsResult",
"listTransformJobs",
"(",
"ListTransformJobsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListTransformJobs",
"(",
"request",
")",
";",
"}"
] |
public virtual ListTransformJobsResponse ListTransformJobs(ListTransformJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTransformJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTransformJobsResponseUnmarshaller.Instance;return Invoke<ListTransformJobsResponse>(request, options);}
|
train
| true
|
2,219
|
public EvaluationName getName(NamePtg namePtg) {int ix = namePtg.getIndex();return new Name(_iBook.getNameRecord(ix), ix);}
|
[
"public",
"EvaluationName",
"getName",
"(",
"NamePtg",
"namePtg",
")",
"{",
"int",
"ix",
"=",
"namePtg",
".",
"getIndex",
"(",
")",
";",
"return",
"new",
"Name",
"(",
"_iBook",
".",
"getNameRecord",
"(",
"ix",
")",
",",
"ix",
")",
";",
"}"
] |
public IEvaluationName GetName(NamePtg namePtg){int ix = namePtg.Index;return new Name(_iBook.GetNameRecord(ix), ix);}
|
train
| false
|
2,220
|
public StashCreateCommand setIndexMessage(String message) {indexMessage = message;return this;}
|
[
"public",
"StashCreateCommand",
"setIndexMessage",
"(",
"String",
"message",
")",
"{",
"indexMessage",
"=",
"message",
";",
"return",
"this",
";",
"}"
] |
public virtual NGit.Api.StashCreateCommand SetIndexMessage(string message){indexMessage = message;return this;}
|
train
| false
|
2,221
|
public HSSFPalette getCustomPalette(){return new HSSFPalette(workbook.getCustomPalette());}
|
[
"public",
"HSSFPalette",
"getCustomPalette",
"(",
")",
"{",
"return",
"new",
"HSSFPalette",
"(",
"workbook",
".",
"getCustomPalette",
"(",
")",
")",
";",
"}"
] |
public HSSFPalette GetCustomPalette(){return new HSSFPalette(workbook.CustomPalette);}
|
train
| false
|
2,222
|
public DeregisterTaskDefinitionResult deregisterTaskDefinition(DeregisterTaskDefinitionRequest request) {request = beforeClientExecution(request);return executeDeregisterTaskDefinition(request);}
|
[
"public",
"DeregisterTaskDefinitionResult",
"deregisterTaskDefinition",
"(",
"DeregisterTaskDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeregisterTaskDefinition",
"(",
"request",
")",
";",
"}"
] |
public virtual DeregisterTaskDefinitionResponse DeregisterTaskDefinition(DeregisterTaskDefinitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterTaskDefinitionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterTaskDefinitionResponseUnmarshaller.Instance;return Invoke<DeregisterTaskDefinitionResponse>(request, options);}
|
train
| true
|
2,223
|
public String pattern() {return pattern;}
|
[
"public",
"String",
"pattern",
"(",
")",
"{",
"return",
"pattern",
";",
"}"
] |
public string pattern(){return _pattern;}
|
train
| false
|
2,224
|
public void setThreads(int threads) {this.threads = threads;}
|
[
"public",
"void",
"setThreads",
"(",
"int",
"threads",
")",
"{",
"this",
".",
"threads",
"=",
"threads",
";",
"}"
] |
public virtual void SetThreads(int threads){this.threads = threads;}
|
train
| false
|
2,225
|
public void execute(ReceivePack rp) {try {String expTarget = getOldSymref();boolean detach = getNewSymref() != null|| (type == Type.DELETE && expTarget != null);RefUpdate ru = rp.getRepository().updateRef(getRefName(), detach);if (expTarget != null) {if (!ru.getRef().isSymbolic() || !ru.getRef().getTarget().getName().equals(expTarget)) {setResult(Result.LOCK_FAILURE);return;}}ru.setRefLogIdent(rp.getRefLogIdent());ru.setRefLogMessage(refLogMessage, refLogIncludeResult);switch (getType()) {case DELETE:if (!ObjectId.zeroId().equals(getOldId())) {ru.setExpectedOldObjectId(getOldId());}ru.setForceUpdate(true);setResult(ru.delete(rp.getRevWalk()));break;case CREATE:case UPDATE:case UPDATE_NONFASTFORWARD:ru.setForceUpdate(rp.isAllowNonFastForwards());ru.setExpectedOldObjectId(getOldId());ru.setRefLogMessage("push", true); if (getNewSymref() != null) {setResult(ru.link(getNewSymref()));} else {ru.setNewObjectId(getNewId());setResult(ru.update(rp.getRevWalk()));}break;}} catch (IOException err) {reject(err);}}
|
[
"public",
"void",
"execute",
"(",
"ReceivePack",
"rp",
")",
"{",
"try",
"{",
"String",
"expTarget",
"=",
"getOldSymref",
"(",
")",
";",
"boolean",
"detach",
"=",
"getNewSymref",
"(",
")",
"!=",
"null",
"||",
"(",
"type",
"==",
"Type",
".",
"DELETE",
"&&",
"expTarget",
"!=",
"null",
")",
";",
"RefUpdate",
"ru",
"=",
"rp",
".",
"getRepository",
"(",
")",
".",
"updateRef",
"(",
"getRefName",
"(",
")",
",",
"detach",
")",
";",
"if",
"(",
"expTarget",
"!=",
"null",
")",
"{",
"if",
"(",
"!",
"ru",
".",
"getRef",
"(",
")",
".",
"isSymbolic",
"(",
")",
"||",
"!",
"ru",
".",
"getRef",
"(",
")",
".",
"getTarget",
"(",
")",
".",
"getName",
"(",
")",
".",
"equals",
"(",
"expTarget",
")",
")",
"{",
"setResult",
"(",
"Result",
".",
"LOCK_FAILURE",
")",
";",
"return",
";",
"}",
"}",
"ru",
".",
"setRefLogIdent",
"(",
"rp",
".",
"getRefLogIdent",
"(",
")",
")",
";",
"ru",
".",
"setRefLogMessage",
"(",
"refLogMessage",
",",
"refLogIncludeResult",
")",
";",
"switch",
"(",
"getType",
"(",
")",
")",
"{",
"case",
"DELETE",
":",
"if",
"(",
"!",
"ObjectId",
".",
"zeroId",
"(",
")",
".",
"equals",
"(",
"getOldId",
"(",
")",
")",
")",
"{",
"ru",
".",
"setExpectedOldObjectId",
"(",
"getOldId",
"(",
")",
")",
";",
"}",
"ru",
".",
"setForceUpdate",
"(",
"true",
")",
";",
"setResult",
"(",
"ru",
".",
"delete",
"(",
"rp",
".",
"getRevWalk",
"(",
")",
")",
")",
";",
"break",
";",
"case",
"CREATE",
":",
"case",
"UPDATE",
":",
"case",
"UPDATE_NONFASTFORWARD",
":",
"ru",
".",
"setForceUpdate",
"(",
"rp",
".",
"isAllowNonFastForwards",
"(",
")",
")",
";",
"ru",
".",
"setExpectedOldObjectId",
"(",
"getOldId",
"(",
")",
")",
";",
"ru",
".",
"setRefLogMessage",
"(",
"\"push\"",
",",
"true",
")",
";",
"if",
"(",
"getNewSymref",
"(",
")",
"!=",
"null",
")",
"{",
"setResult",
"(",
"ru",
".",
"link",
"(",
"getNewSymref",
"(",
")",
")",
")",
";",
"}",
"else",
"{",
"ru",
".",
"setNewObjectId",
"(",
"getNewId",
"(",
")",
")",
";",
"setResult",
"(",
"ru",
".",
"update",
"(",
"rp",
".",
"getRevWalk",
"(",
")",
")",
")",
";",
"}",
"break",
";",
"}",
"}",
"catch",
"(",
"IOException",
"err",
")",
"{",
"reject",
"(",
"err",
")",
";",
"}",
"}"
] |
public virtual void Execute(BaseReceivePack rp){try{RefUpdate ru = rp.GetRepository().UpdateRef(GetRefName());ru.SetRefLogIdent(rp.GetRefLogIdent());switch (GetType()){case ReceiveCommand.Type.DELETE:{if (!ObjectId.ZeroId.Equals(GetOldId())){ru.SetExpectedOldObjectId(GetOldId());}ru.SetForceUpdate(true);SetResult(ru.Delete(rp.GetRevWalk()));break;}case ReceiveCommand.Type.CREATE:case ReceiveCommand.Type.UPDATE:case ReceiveCommand.Type.UPDATE_NONFASTFORWARD:{ru.SetForceUpdate(rp.IsAllowNonFastForwards());ru.SetExpectedOldObjectId(GetOldId());ru.SetNewObjectId(GetNewId());ru.SetRefLogMessage("push", true);SetResult(ru.Update(rp.GetRevWalk()));break;}}}catch (IOException err){Reject(err);}}
|
train
| false
|
2,226
|
public GetEbsDefaultKmsKeyIdResult getEbsDefaultKmsKeyId(GetEbsDefaultKmsKeyIdRequest request) {request = beforeClientExecution(request);return executeGetEbsDefaultKmsKeyId(request);}
|
[
"public",
"GetEbsDefaultKmsKeyIdResult",
"getEbsDefaultKmsKeyId",
"(",
"GetEbsDefaultKmsKeyIdRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetEbsDefaultKmsKeyId",
"(",
"request",
")",
";",
"}"
] |
public virtual GetEbsDefaultKmsKeyIdResponse GetEbsDefaultKmsKeyId(GetEbsDefaultKmsKeyIdRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEbsDefaultKmsKeyIdRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEbsDefaultKmsKeyIdResponseUnmarshaller.Instance;return Invoke<GetEbsDefaultKmsKeyIdResponse>(request, options);}
|
train
| false
|
2,228
|
public DeleteCacheParameterGroupRequest(String cacheParameterGroupName) {setCacheParameterGroupName(cacheParameterGroupName);}
|
[
"public",
"DeleteCacheParameterGroupRequest",
"(",
"String",
"cacheParameterGroupName",
")",
"{",
"setCacheParameterGroupName",
"(",
"cacheParameterGroupName",
")",
";",
"}"
] |
public DeleteCacheParameterGroupRequest(string cacheParameterGroupName){_cacheParameterGroupName = cacheParameterGroupName;}
|
train
| false
|
2,229
|
public NavigableMap<K, V> headMap(K to, boolean inclusive) {Bound toBound = inclusive ? INCLUSIVE : EXCLUSIVE;return subMap(null, NO_BOUND, to, toBound);}
|
[
"public",
"NavigableMap",
"<",
"K",
",",
"V",
">",
"headMap",
"(",
"K",
"to",
",",
"boolean",
"inclusive",
")",
"{",
"Bound",
"toBound",
"=",
"inclusive",
"?",
"INCLUSIVE",
":",
"EXCLUSIVE",
";",
"return",
"subMap",
"(",
"null",
",",
"NO_BOUND",
",",
"to",
",",
"toBound",
")",
";",
"}"
] |
public java.util.NavigableMap<K, V> headMap(K to, bool inclusive){java.util.TreeMap.Bound toBound = inclusive ? java.util.TreeMap.Bound.INCLUSIVE :java.util.TreeMap.Bound.EXCLUSIVE;return this.subMap(default(K), java.util.TreeMap.Bound.NO_BOUND, to, toBound);}
|
train
| false
|
2,230
|
public OutputStream getOutputStream() {return rawOut;}
|
[
"public",
"OutputStream",
"getOutputStream",
"(",
")",
"{",
"return",
"rawOut",
";",
"}"
] |
public virtual OutputStream GetOutputStream(){return rawOut;}
|
train
| false
|
2,231
|
public Boolean booleanValue(String key) {String value = responseMap.get(key);if (null == value || 0 == value.length()) {return null;}return Boolean.valueOf(responseMap.get(key));}
|
[
"public",
"Boolean",
"booleanValue",
"(",
"String",
"key",
")",
"{",
"String",
"value",
"=",
"responseMap",
".",
"get",
"(",
"key",
")",
";",
"if",
"(",
"null",
"==",
"value",
"||",
"0",
"==",
"value",
".",
"length",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"return",
"Boolean",
".",
"valueOf",
"(",
"responseMap",
".",
"get",
"(",
"key",
")",
")",
";",
"}"
] |
public bool? BooleanValue(string key){if (null != DictionaryUtil.Get(ResponseDictionary, key)){return bool.Parse(DictionaryUtil.Get(ResponseDictionary, key));}return null;}
|
train
| false
|
2,232
|
public ATN getATNWithBypassAlts() {String serializedAtn = getSerializedATN();if (serializedAtn == null) {throw new UnsupportedOperationException("The current parser does not support an ATN with bypass alternatives.");}synchronized (bypassAltsAtnCache) {ATN result = bypassAltsAtnCache.get(serializedAtn);if (result == null) {ATNDeserializationOptions deserializationOptions = new ATNDeserializationOptions();deserializationOptions.setGenerateRuleBypassTransitions(true);result = new ATNDeserializer(deserializationOptions).deserialize(serializedAtn.toCharArray());bypassAltsAtnCache.put(serializedAtn, result);}return result;}}
|
[
"public",
"ATN",
"getATNWithBypassAlts",
"(",
")",
"{",
"String",
"serializedAtn",
"=",
"getSerializedATN",
"(",
")",
";",
"if",
"(",
"serializedAtn",
"==",
"null",
")",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
"\"The current parser does not support an ATN with bypass alternatives.\"",
")",
";",
"}",
"synchronized",
"(",
"bypassAltsAtnCache",
")",
"{",
"ATN",
"result",
"=",
"bypassAltsAtnCache",
".",
"get",
"(",
"serializedAtn",
")",
";",
"if",
"(",
"result",
"==",
"null",
")",
"{",
"ATNDeserializationOptions",
"deserializationOptions",
"=",
"new",
"ATNDeserializationOptions",
"(",
")",
";",
"deserializationOptions",
".",
"setGenerateRuleBypassTransitions",
"(",
"true",
")",
";",
"result",
"=",
"new",
"ATNDeserializer",
"(",
"deserializationOptions",
")",
".",
"deserialize",
"(",
"serializedAtn",
".",
"toCharArray",
"(",
")",
")",
";",
"bypassAltsAtnCache",
".",
"put",
"(",
"serializedAtn",
",",
"result",
")",
";",
"}",
"return",
"result",
";",
"}",
"}"
] |
public virtual ATN GetATNWithBypassAlts(){string serializedAtn = SerializedAtn;if (serializedAtn == null){throw new NotSupportedException("The current parser does not support an ATN with bypass alternatives.");}lock (bypassAltsAtnCache){ATN result = bypassAltsAtnCache.Get(serializedAtn);if (result == null){ATNDeserializationOptions deserializationOptions = new ATNDeserializationOptions();deserializationOptions.GenerateRuleBypassTransitions = true;result = new ATNDeserializer(deserializationOptions).Deserialize(serializedAtn.ToCharArray());bypassAltsAtnCache.Put(serializedAtn, result);}return result;}}
|
train
| false
|
2,233
|
public GetDownloadUrlRequest() {super("CloudPhoto", "2017-07-11", "GetDownloadUrl", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
|
[
"public",
"GetDownloadUrlRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"GetDownloadUrl\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] |
public GetDownloadUrlRequest(): base("CloudPhoto", "2017-07-11", "GetDownloadUrl", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
|
train
| false
|
2,234
|
public int getCRC() {return crc;}
|
[
"public",
"int",
"getCRC",
"(",
")",
"{",
"return",
"crc",
";",
"}"
] |
public virtual int GetCRC(){return crc;}
|
train
| false
|
2,235
|
public boolean addEscherRecord(EscherRecord element){return escherRecords.add( element );}
|
[
"public",
"boolean",
"addEscherRecord",
"(",
"EscherRecord",
"element",
")",
"{",
"return",
"escherRecords",
".",
"add",
"(",
"element",
")",
";",
"}"
] |
public bool AddEscherRecord(EscherRecord element){escherRecords.Add(element);return true;}
|
train
| false
|
2,236
|
public CharBuffer put(String src, int start, int end) {throw new ReadOnlyBufferException();}
|
[
"public",
"CharBuffer",
"put",
"(",
"String",
"src",
",",
"int",
"start",
",",
"int",
"end",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] |
public override java.nio.CharBuffer put(string src, int start, int end){throw new java.nio.ReadOnlyBufferException();}
|
train
| false
|
2,237
|
public ModifyWorkspaceStateResult modifyWorkspaceState(ModifyWorkspaceStateRequest request) {request = beforeClientExecution(request);return executeModifyWorkspaceState(request);}
|
[
"public",
"ModifyWorkspaceStateResult",
"modifyWorkspaceState",
"(",
"ModifyWorkspaceStateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyWorkspaceState",
"(",
"request",
")",
";",
"}"
] |
public virtual ModifyWorkspaceStateResponse ModifyWorkspaceState(ModifyWorkspaceStateRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyWorkspaceStateRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyWorkspaceStateResponseUnmarshaller.Instance;return Invoke<ModifyWorkspaceStateResponse>(request, options);}
|
train
| true
|
2,238
|
public ICUTransformFilter(TokenStream input, Transliterator transform) {super(input);this.transform = transform;if (transform.getFilter() == null && transform instanceof com.ibm.icu.text.RuleBasedTransliterator) {final UnicodeSet sourceSet = transform.getSourceSet();if (sourceSet != null && !sourceSet.isEmpty())transform.setFilter(sourceSet);}}
|
[
"public",
"ICUTransformFilter",
"(",
"TokenStream",
"input",
",",
"Transliterator",
"transform",
")",
"{",
"super",
"(",
"input",
")",
";",
"this",
".",
"transform",
"=",
"transform",
";",
"if",
"(",
"transform",
".",
"getFilter",
"(",
")",
"==",
"null",
"&&",
"transform",
"instanceof",
"com",
".",
"ibm",
".",
"icu",
".",
"text",
".",
"RuleBasedTransliterator",
")",
"{",
"final",
"UnicodeSet",
"sourceSet",
"=",
"transform",
".",
"getSourceSet",
"(",
")",
";",
"if",
"(",
"sourceSet",
"!=",
"null",
"&&",
"!",
"sourceSet",
".",
"isEmpty",
"(",
")",
")",
"transform",
".",
"setFilter",
"(",
"sourceSet",
")",
";",
"}",
"}"
] |
public ICUTransformFilter(TokenStream input, Transliterator transform): base(input){this.transform = transform;this.termAtt = AddAttribute<ICharTermAttribute>();if (transform.Filter == null && transform is RuleBasedTransliterator){UnicodeSet sourceSet = transform.GetSourceSet();if (sourceSet != null && sourceSet.Any())transform.Filter=sourceSet;}}
|
train
| false
|
2,239
|
public StopGameSessionPlacementResult stopGameSessionPlacement(StopGameSessionPlacementRequest request) {request = beforeClientExecution(request);return executeStopGameSessionPlacement(request);}
|
[
"public",
"StopGameSessionPlacementResult",
"stopGameSessionPlacement",
"(",
"StopGameSessionPlacementRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStopGameSessionPlacement",
"(",
"request",
")",
";",
"}"
] |
public virtual StopGameSessionPlacementResponse StopGameSessionPlacement(StopGameSessionPlacementRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopGameSessionPlacementRequestMarshaller.Instance;options.ResponseUnmarshaller = StopGameSessionPlacementResponseUnmarshaller.Instance;return Invoke<StopGameSessionPlacementResponse>(request, options);}
|
train
| true
|
2,240
|
public ObjectId getDeltaBase() {return null;}
|
[
"public",
"ObjectId",
"getDeltaBase",
"(",
")",
"{",
"return",
"null",
";",
"}"
] |
public virtual ObjectId GetDeltaBase(){return null;}
|
train
| false
|
2,241
|
public RefModeRecord clone() {return copy();}
|
[
"public",
"RefModeRecord",
"clone",
"(",
")",
"{",
"return",
"copy",
"(",
")",
";",
"}"
] |
public override Object Clone(){RefModeRecord rec = new RefModeRecord();rec.field_1_mode = field_1_mode;return rec;}
|
train
| false
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.