id_within_dataset
int64 0
10.3k
| snippet
stringlengths 29
1.4k
| tokens
sequencelengths 10
314
| cs
stringlengths 28
1.38k
| split_within_dataset
stringclasses 1
value | is_duplicated
bool 2
classes |
---|---|---|---|---|---|
652 | public void serialize(LittleEndianOutput out) {out.writeShort(rt);out.writeShort(grbitFrt);out.writeShort(wOffset);out.writeShort(at);out.writeShort(grbit);if(unused != null)out.writeShort(unused);}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"rt",
")",
";",
"out",
".",
"writeShort",
"(",
"grbitFrt",
")",
";",
"out",
".",
"writeShort",
"(",
"wOffset",
")",
";",
"out",
".",
"writeShort",
"(",
"at",
")",
";",
"out",
".",
"writeShort",
"(",
"grbit",
")",
";",
"if",
"(",
"unused",
"!=",
"null",
")",
"out",
".",
"writeShort",
"(",
"unused",
")",
";",
"}"
] | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(rt);out1.WriteShort(grbitFrt);out1.WriteShort(wOffset);out1.WriteShort(at);out1.WriteShort(grbit);if (unused != null)out1.WriteShort((short)unused);}
| train | false |
653 | public StringBuilder insert(int offset, Object obj) {insert0(offset, obj == null ? "null" : obj.toString());return this;}
| [
"public",
"StringBuilder",
"insert",
"(",
"int",
"offset",
",",
"Object",
"obj",
")",
"{",
"insert0",
"(",
"offset",
",",
"obj",
"==",
"null",
"?",
"\"null\"",
":",
"obj",
".",
"toString",
"(",
")",
")",
";",
"return",
"this",
";",
"}"
] | public java.lang.StringBuilder insert(int offset, object obj){insert0(offset, obj == null ? "null" : obj.ToString());return this;}
| train | false |
654 | public int next() {int res = child;if (child != TaxonomyReader.INVALID_ORDINAL) {child = siblings[child];}return res;}
| [
"public",
"int",
"next",
"(",
")",
"{",
"int",
"res",
"=",
"child",
";",
"if",
"(",
"child",
"!=",
"TaxonomyReader",
".",
"INVALID_ORDINAL",
")",
"{",
"child",
"=",
"siblings",
"[",
"child",
"]",
";",
"}",
"return",
"res",
";",
"}"
] | public virtual int Next(){int res = child;if (child != TaxonomyReader.INVALID_ORDINAL){child = siblings[child];}return res;}
| train | false |
655 | public DeleteStackResult deleteStack(DeleteStackRequest request) {request = beforeClientExecution(request);return executeDeleteStack(request);}
| [
"public",
"DeleteStackResult",
"deleteStack",
"(",
"DeleteStackRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteStack",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteStackResponse DeleteStack(DeleteStackRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteStackRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteStackResponseUnmarshaller.Instance;return Invoke<DeleteStackResponse>(request, options);}
| train | true |
657 | public String toString() {return "Z(" + z + ")";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"Z(\"",
"+",
"z",
"+",
"\")\"",
";",
"}"
] | public override string ToString(){return "Z(" + z + ")";}
| train | false |
658 | public static org.apache.poi.hssf.record.Record create(RecordInputStream in) {switch (in.remaining()) {case 0:return instance;case 2:return new InterfaceHdrRecord(in);}throw new RecordFormatException("Invalid record data size: " + in.remaining());}
| [
"public",
"static",
"org",
".",
"apache",
".",
"poi",
".",
"hssf",
".",
"record",
".",
"Record",
"create",
"(",
"RecordInputStream",
"in",
")",
"{",
"switch",
"(",
"in",
".",
"remaining",
"(",
")",
")",
"{",
"case",
"0",
":",
"return",
"instance",
";",
"case",
"2",
":",
"return",
"new",
"InterfaceHdrRecord",
"(",
"in",
")",
";",
"}",
"throw",
"new",
"RecordFormatException",
"(",
"\"Invalid record data size: \"",
"+",
"in",
".",
"remaining",
"(",
")",
")",
";",
"}"
] | public static Record Create(RecordInputStream in1){switch (in1.Remaining){case 0:return Instance;case 2:return new InterfaceHdrRecord(in1);}throw new RecordFormatException("Invalid record data size: " + in1.Remaining);}
| train | false |
659 | public int getCellsPnt() {int size = 0;for (Row row : rows)size += row.getCellsPnt();return size;}
| [
"public",
"int",
"getCellsPnt",
"(",
")",
"{",
"int",
"size",
"=",
"0",
";",
"for",
"(",
"Row",
"row",
":",
"rows",
")",
"size",
"+=",
"row",
".",
"getCellsPnt",
"(",
")",
";",
"return",
"size",
";",
"}"
] | public virtual int GetCellsPnt(){int size = 0;foreach (Row row in rows)size += row.GetCellsPnt();return size;}
| train | false |
660 | public boolean equals(Object obj) {if (obj == this) {return true;}else if (!(obj instanceof LexerActionExecutor)) {return false;}LexerActionExecutor other = (LexerActionExecutor)obj;return hashCode == other.hashCode&& Arrays.equals(lexerActions, other.lexerActions);}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"obj",
"==",
"this",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"!",
"(",
"obj",
"instanceof",
"LexerActionExecutor",
")",
")",
"{",
"return",
"false",
";",
"}",
"LexerActionExecutor",
"other",
"=",
"(",
"LexerActionExecutor",
")",
"obj",
";",
"return",
"hashCode",
"==",
"other",
".",
"hashCode",
"&&",
"Arrays",
".",
"equals",
"(",
"lexerActions",
",",
"other",
".",
"lexerActions",
")",
";",
"}"
] | public override bool Equals(object obj){if (obj == this){return true;}else{if (!(obj is Antlr4.Runtime.Atn.LexerActionExecutor)){return false;}}Antlr4.Runtime.Atn.LexerActionExecutor other = (Antlr4.Runtime.Atn.LexerActionExecutor)obj;return hashCode == other.hashCode && Arrays.Equals(lexerActions, other.lexerActions);}
| train | false |
661 | public static final Analyzer createAnalyzer(String className) throws Exception{final Class<? extends Analyzer> clazz = Class.forName(className).asSubclass(Analyzer.class);try {Constructor<? extends Analyzer> cnstr = clazz.getConstructor(Version.class);return cnstr.newInstance(Version.LATEST);} catch (NoSuchMethodException nsme) {return clazz.getConstructor().newInstance();}}
| [
"public",
"static",
"final",
"Analyzer",
"createAnalyzer",
"(",
"String",
"className",
")",
"throws",
"Exception",
"{",
"final",
"Class",
"<",
"?",
"extends",
"Analyzer",
">",
"clazz",
"=",
"Class",
".",
"forName",
"(",
"className",
")",
".",
"asSubclass",
"(",
"Analyzer",
".",
"class",
")",
";",
"try",
"{",
"Constructor",
"<",
"?",
"extends",
"Analyzer",
">",
"cnstr",
"=",
"clazz",
".",
"getConstructor",
"(",
"Version",
".",
"class",
")",
";",
"return",
"cnstr",
".",
"newInstance",
"(",
"Version",
".",
"LATEST",
")",
";",
"}",
"catch",
"(",
"NoSuchMethodException",
"nsme",
")",
"{",
"return",
"clazz",
".",
"getConstructor",
"(",
")",
".",
"newInstance",
"(",
")",
";",
"}",
"}"
] | public static Analyzer CreateAnalyzer(string className){Type clazz = Type.GetType(className);try{return (Analyzer)Activator.CreateInstance(clazz,LuceneVersion.LUCENE_CURRENT);}catch (MissingMethodException ){return (Analyzer)Activator.CreateInstance(clazz);}}
| train | false |
662 | public GetSegmentVersionsResult getSegmentVersions(GetSegmentVersionsRequest request) {request = beforeClientExecution(request);return executeGetSegmentVersions(request);}
| [
"public",
"GetSegmentVersionsResult",
"getSegmentVersions",
"(",
"GetSegmentVersionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetSegmentVersions",
"(",
"request",
")",
";",
"}"
] | public virtual GetSegmentVersionsResponse GetSegmentVersions(GetSegmentVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSegmentVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSegmentVersionsResponseUnmarshaller.Instance;return Invoke<GetSegmentVersionsResponse>(request, options);}
| train | true |
663 | public int getDeltaBaseCacheLimit() {return deltaBaseCacheLimit;}
| [
"public",
"int",
"getDeltaBaseCacheLimit",
"(",
")",
"{",
"return",
"deltaBaseCacheLimit",
";",
"}"
] | public virtual int GetDeltaBaseCacheLimit(){return deltaBaseCacheLimit;}
| train | false |
664 | public GroupMerger(Sort groupSort) {groupComp = new GroupComparator<>(groupSort);queue = new TreeSet<>(groupComp);groupsSeen = new HashMap<>();}
| [
"public",
"GroupMerger",
"(",
"Sort",
"groupSort",
")",
"{",
"groupComp",
"=",
"new",
"GroupComparator",
"<",
">",
"(",
"groupSort",
")",
";",
"queue",
"=",
"new",
"TreeSet",
"<",
">",
"(",
"groupComp",
")",
";",
"groupsSeen",
"=",
"new",
"HashMap",
"<",
">",
"(",
")",
";",
"}"
] | public GroupMerger(Sort groupSort){groupComp = new GroupComparer<T>(groupSort);queue = new JCG.SortedSet<MergedGroup<T>>(groupComp);groupsSeen = new JCG.Dictionary<T, MergedGroup<T>>();}
| train | false |
666 | public FileIdCluster( int drawingGroupId, int numShapeIdsUsed ) {this.field_1_drawingGroupId = drawingGroupId;this.field_2_numShapeIdsUsed = numShapeIdsUsed;}
| [
"public",
"FileIdCluster",
"(",
"int",
"drawingGroupId",
",",
"int",
"numShapeIdsUsed",
")",
"{",
"this",
".",
"field_1_drawingGroupId",
"=",
"drawingGroupId",
";",
"this",
".",
"field_2_numShapeIdsUsed",
"=",
"numShapeIdsUsed",
";",
"}"
] | public FileIdCluster(int drawingGroupId, int numShapeIdsUsed){this.field_1_drawingGroupId = drawingGroupId;this.field_2_numShapeIdsUsed = numShapeIdsUsed;}
| train | false |
667 | public CharArrayIterator clone() {CharArrayIterator clone = new CharArrayIterator();clone.setText(array, start, length);clone.index = index;return clone;}
| [
"public",
"CharArrayIterator",
"clone",
"(",
")",
"{",
"CharArrayIterator",
"clone",
"=",
"new",
"CharArrayIterator",
"(",
")",
";",
"clone",
".",
"setText",
"(",
"array",
",",
"start",
",",
"length",
")",
";",
"clone",
".",
"index",
"=",
"index",
";",
"return",
"clone",
";",
"}"
] | public override object Clone(){CharArrayIterator clone = new CharArrayIterator();clone.SetText(array, start, length);clone.index = index;return clone;}
| train | false |
668 | public DescribeReservedNodesResult describeReservedNodes(DescribeReservedNodesRequest request) {request = beforeClientExecution(request);return executeDescribeReservedNodes(request);}
| [
"public",
"DescribeReservedNodesResult",
"describeReservedNodes",
"(",
"DescribeReservedNodesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeReservedNodes",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeReservedNodesResponse DescribeReservedNodes(DescribeReservedNodesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedNodesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedNodesResponseUnmarshaller.Instance;return Invoke<DescribeReservedNodesResponse>(request, options);}
| train | true |
669 | public ObjectWalk(Repository repo, int depth) {super(repo);this.depth = depth;this.deepenNots = Collections.emptyList();this.UNSHALLOW = newFlag("UNSHALLOW"); this.REINTERESTING = newFlag("REINTERESTING"); this.DEEPEN_NOT = newFlag("DEEPEN_NOT"); }
| [
"public",
"ObjectWalk",
"(",
"Repository",
"repo",
",",
"int",
"depth",
")",
"{",
"super",
"(",
"repo",
")",
";",
"this",
".",
"depth",
"=",
"depth",
";",
"this",
".",
"deepenNots",
"=",
"Collections",
".",
"emptyList",
"(",
")",
";",
"this",
".",
"UNSHALLOW",
"=",
"newFlag",
"(",
"\"UNSHALLOW\"",
")",
";",
"this",
".",
"REINTERESTING",
"=",
"newFlag",
"(",
"\"REINTERESTING\"",
")",
";",
"this",
".",
"DEEPEN_NOT",
"=",
"newFlag",
"(",
"\"DEEPEN_NOT\"",
")",
";",
"}"
] | public ObjectWalk(Repository repo, int depth) : base(repo){this.depth = depth;this.UNSHALLOW = NewFlag("UNSHALLOW");this.REINTERESTING = NewFlag("REINTERESTING");}
| train | false |
670 | public boolean isRefLogDisabled() {return refLogMessage == null;}
| [
"public",
"boolean",
"isRefLogDisabled",
"(",
")",
"{",
"return",
"refLogMessage",
"==",
"null",
";",
"}"
] | public virtual bool IsRefLogDisabled(){return refLogMessage == null;}
| train | false |
671 | public SetLoadBalancerListenerSSLCertificateResult setLoadBalancerListenerSSLCertificate(SetLoadBalancerListenerSSLCertificateRequest request) {request = beforeClientExecution(request);return executeSetLoadBalancerListenerSSLCertificate(request);}
| [
"public",
"SetLoadBalancerListenerSSLCertificateResult",
"setLoadBalancerListenerSSLCertificate",
"(",
"SetLoadBalancerListenerSSLCertificateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSetLoadBalancerListenerSSLCertificate",
"(",
"request",
")",
";",
"}"
] | public virtual SetLoadBalancerListenerSSLCertificateResponse SetLoadBalancerListenerSSLCertificate(SetLoadBalancerListenerSSLCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetLoadBalancerListenerSSLCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = SetLoadBalancerListenerSSLCertificateResponseUnmarshaller.Instance;return Invoke<SetLoadBalancerListenerSSLCertificateResponse>(request, options);}
| train | true |
672 | public DescribeRulesPackagesResult describeRulesPackages(DescribeRulesPackagesRequest request) {request = beforeClientExecution(request);return executeDescribeRulesPackages(request);}
| [
"public",
"DescribeRulesPackagesResult",
"describeRulesPackages",
"(",
"DescribeRulesPackagesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeRulesPackages",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeRulesPackagesResponse DescribeRulesPackages(DescribeRulesPackagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRulesPackagesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRulesPackagesResponseUnmarshaller.Instance;return Invoke<DescribeRulesPackagesResponse>(request, options);}
| train | true |
673 | public byte readByte() throws IOException {return primitiveTypes.readByte();}
| [
"public",
"byte",
"readByte",
"(",
")",
"throws",
"IOException",
"{",
"return",
"primitiveTypes",
".",
"readByte",
"(",
")",
";",
"}"
] | public virtual byte readByte(){throw new System.NotImplementedException();}
| train | false |
674 | public String getConversion() {return s;}
| [
"public",
"String",
"getConversion",
"(",
")",
"{",
"return",
"s",
";",
"}"
] | public virtual string getConversion(){return s;}
| train | false |
675 | public StandardSyntaxParserTokenManager(CharStream stream, int lexState){this(stream);SwitchTo(lexState);}
| [
"public",
"StandardSyntaxParserTokenManager",
"(",
"CharStream",
"stream",
",",
"int",
"lexState",
")",
"{",
"this",
"(",
"stream",
")",
";",
"SwitchTo",
"(",
"lexState",
")",
";",
"}"
] | public StandardSyntaxParserTokenManager(ICharStream stream, int lexState): this(stream){SwitchTo(lexState);}
| train | false |
676 | public TokenStream create(TokenStream input) {return new TurkishLowerCaseFilter(input);}
| [
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"TurkishLowerCaseFilter",
"(",
"input",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return new TurkishLowerCaseFilter(input);}
| train | false |
677 | public String toString() {return "B";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"B\"",
";",
"}"
] | public override string ToString(){return "B";}
| train | false |
678 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {return evaluate(srcRowIndex, srcColumnIndex, arg0, DEFAULT_ARG1);}
| [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"arg0",
")",
"{",
"return",
"evaluate",
"(",
"srcRowIndex",
",",
"srcColumnIndex",
",",
"arg0",
",",
"DEFAULT_ARG1",
")",
";",
"}"
] | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){return Evaluate(srcRowIndex, srcColumnIndex, arg0, DEFAULT_ARG1);}
| train | false |
679 | public void doubleField(FieldInfo fieldInfo, double value) {doc.add(new StoredField(fieldInfo.name, value));}
| [
"public",
"void",
"doubleField",
"(",
"FieldInfo",
"fieldInfo",
",",
"double",
"value",
")",
"{",
"doc",
".",
"add",
"(",
"new",
"StoredField",
"(",
"fieldInfo",
".",
"name",
",",
"value",
")",
")",
";",
"}"
] | public override void DoubleField(FieldInfo fieldInfo, double value){doc.Add(new StoredField(fieldInfo.Name, value));}
| train | false |
680 | public GetDistributionConfigRequest(String id) {setId(id);}
| [
"public",
"GetDistributionConfigRequest",
"(",
"String",
"id",
")",
"{",
"setId",
"(",
"id",
")",
";",
"}"
] | public GetDistributionConfigRequest(string id){_id = id;}
| train | false |
681 | public DescribeCacheSecurityGroupsResult describeCacheSecurityGroups() {return describeCacheSecurityGroups(new DescribeCacheSecurityGroupsRequest());}
| [
"public",
"DescribeCacheSecurityGroupsResult",
"describeCacheSecurityGroups",
"(",
")",
"{",
"return",
"describeCacheSecurityGroups",
"(",
"new",
"DescribeCacheSecurityGroupsRequest",
"(",
")",
")",
";",
"}"
] | public virtual DescribeCacheSecurityGroupsResponse DescribeCacheSecurityGroups(){return DescribeCacheSecurityGroups(new DescribeCacheSecurityGroupsRequest());}
| train | false |
682 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {double d;try {ValueEval ve = OperandResolver.getSingleValue(arg0, srcRowIndex, srcColumnIndex);d = OperandResolver.coerceValueToDouble(ve);} catch (EvaluationException e) {return e.getErrorEval();}if (d == 0.0) { return NumberEval.ZERO;}return new NumberEval(d / 100);}
| [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"arg0",
")",
"{",
"double",
"d",
";",
"try",
"{",
"ValueEval",
"ve",
"=",
"OperandResolver",
".",
"getSingleValue",
"(",
"arg0",
",",
"srcRowIndex",
",",
"srcColumnIndex",
")",
";",
"d",
"=",
"OperandResolver",
".",
"coerceValueToDouble",
"(",
"ve",
")",
";",
"}",
"catch",
"(",
"EvaluationException",
"e",
")",
"{",
"return",
"e",
".",
"getErrorEval",
"(",
")",
";",
"}",
"if",
"(",
"d",
"==",
"0.0",
")",
"{",
"return",
"NumberEval",
".",
"ZERO",
";",
"}",
"return",
"new",
"NumberEval",
"(",
"d",
"/",
"100",
")",
";",
"}"
] | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){double d0;try{ValueEval ve = OperandResolver.GetSingleValue(arg0, srcRowIndex, srcColumnIndex);d0 = OperandResolver.CoerceValueToDouble(ve);}catch (EvaluationException e){return e.GetErrorEval();}if (d0 == 0.0){ return NumberEval.ZERO;}return new NumberEval(d0 / 100);}
| train | false |
683 | public boolean containsCell(int rowIndex, int columnIndex) {if (columnIndex < _firstColumnIndex) {return false;}if (columnIndex > _lastColumnIndex) {return false;}if (rowIndex < _firstRowIndex) {return false;}if (rowIndex > _lastRowIndex) {return false;}return true;}
| [
"public",
"boolean",
"containsCell",
"(",
"int",
"rowIndex",
",",
"int",
"columnIndex",
")",
"{",
"if",
"(",
"columnIndex",
"<",
"_firstColumnIndex",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"columnIndex",
">",
"_lastColumnIndex",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"rowIndex",
"<",
"_firstRowIndex",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"rowIndex",
">",
"_lastRowIndex",
")",
"{",
"return",
"false",
";",
"}",
"return",
"true",
";",
"}"
] | public bool ContainsCell(int rowIndex, int columnIndex){if (columnIndex < _firstColumnIndex){return false;}if (columnIndex > _lastColumnIndex){return false;}if (rowIndex < _firstRowIndex){return false;}if (rowIndex > _lastRowIndex){return false;}return true;}
| train | false |
684 | public GetSegmentVersionResult getSegmentVersion(GetSegmentVersionRequest request) {request = beforeClientExecution(request);return executeGetSegmentVersion(request);}
| [
"public",
"GetSegmentVersionResult",
"getSegmentVersion",
"(",
"GetSegmentVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetSegmentVersion",
"(",
"request",
")",
";",
"}"
] | public virtual GetSegmentVersionResponse GetSegmentVersion(GetSegmentVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSegmentVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSegmentVersionResponseUnmarshaller.Instance;return Invoke<GetSegmentVersionResponse>(request, options);}
| train | true |
685 | public final FloatBuffer put(float[] src, int srcOffset, int byteCount) {throw new ReadOnlyBufferException();}
| [
"public",
"final",
"FloatBuffer",
"put",
"(",
"float",
"[",
"]",
"src",
",",
"int",
"srcOffset",
",",
"int",
"byteCount",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] | public sealed override java.nio.FloatBuffer put(float[] src, int srcOffset, int byteCount){throw new java.nio.ReadOnlyBufferException();}
| train | false |
686 | public final IntBuffer put(int[] src) {return put(src, 0, src.length);}
| [
"public",
"final",
"IntBuffer",
"put",
"(",
"int",
"[",
"]",
"src",
")",
"{",
"return",
"put",
"(",
"src",
",",
"0",
",",
"src",
".",
"length",
")",
";",
"}"
] | public java.nio.IntBuffer put(int[] src){return put(src, 0, src.Length);}
| train | false |
687 | public SearchFaceRequest() {super("LinkFace", "2018-07-20", "SearchFace");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
| [
"public",
"SearchFaceRequest",
"(",
")",
"{",
"super",
"(",
"\"LinkFace\"",
",",
"\"2018-07-20\"",
",",
"\"SearchFace\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] | public SearchFaceRequest(): base("LinkFace", "2018-07-20", "SearchFace"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
| train | false |
688 | public TagStreamResult tagStream(TagStreamRequest request) {request = beforeClientExecution(request);return executeTagStream(request);}
| [
"public",
"TagStreamResult",
"tagStream",
"(",
"TagStreamRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeTagStream",
"(",
"request",
")",
";",
"}"
] | public virtual TagStreamResponse TagStream(TagStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = TagStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = TagStreamResponseUnmarshaller.Instance;return Invoke<TagStreamResponse>(request, options);}
| train | true |
689 | public String getAccessKeyId() {return this.accessKeyId;}
| [
"public",
"String",
"getAccessKeyId",
"(",
")",
"{",
"return",
"this",
".",
"accessKeyId",
";",
"}"
] | public string GetAccessKeyId(){return AccessKeyId;}
| train | false |
690 | public ET previous() {if (expectedModCount == list.modCount) {if (link != list.voidLink) {lastLink = link;link = link.previous;pos--;return lastLink.data;}throw new NoSuchElementException();}throw new ConcurrentModificationException();}
| [
"public",
"ET",
"previous",
"(",
")",
"{",
"if",
"(",
"expectedModCount",
"==",
"list",
".",
"modCount",
")",
"{",
"if",
"(",
"link",
"!=",
"list",
".",
"voidLink",
")",
"{",
"lastLink",
"=",
"link",
";",
"link",
"=",
"link",
".",
"previous",
";",
"pos",
"--",
";",
"return",
"lastLink",
".",
"data",
";",
"}",
"throw",
"new",
"NoSuchElementException",
"(",
")",
";",
"}",
"throw",
"new",
"ConcurrentModificationException",
"(",
")",
";",
"}"
] | public ET previous(){if (expectedModCount == list.modCount){if (link != list.voidLink){lastLink = link;link = link.previous;pos--;return lastLink.data;}throw new java.util.NoSuchElementException();}throw new java.util.ConcurrentModificationException();}
| train | false |
691 | public CreateLBCookieStickinessPolicyResult createLBCookieStickinessPolicy(CreateLBCookieStickinessPolicyRequest request) {request = beforeClientExecution(request);return executeCreateLBCookieStickinessPolicy(request);}
| [
"public",
"CreateLBCookieStickinessPolicyResult",
"createLBCookieStickinessPolicy",
"(",
"CreateLBCookieStickinessPolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateLBCookieStickinessPolicy",
"(",
"request",
")",
";",
"}"
] | public virtual CreateLBCookieStickinessPolicyResponse CreateLBCookieStickinessPolicy(CreateLBCookieStickinessPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLBCookieStickinessPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLBCookieStickinessPolicyResponseUnmarshaller.Instance;return Invoke<CreateLBCookieStickinessPolicyResponse>(request, options);}
| train | true |
692 | public CreateDataSourceFromRDSResult createDataSourceFromRDS(CreateDataSourceFromRDSRequest request) {request = beforeClientExecution(request);return executeCreateDataSourceFromRDS(request);}
| [
"public",
"CreateDataSourceFromRDSResult",
"createDataSourceFromRDS",
"(",
"CreateDataSourceFromRDSRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateDataSourceFromRDS",
"(",
"request",
")",
";",
"}"
] | public virtual CreateDataSourceFromRDSResponse CreateDataSourceFromRDS(CreateDataSourceFromRDSRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDataSourceFromRDSRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDataSourceFromRDSResponseUnmarshaller.Instance;return Invoke<CreateDataSourceFromRDSResponse>(request, options);}
| train | true |
693 | public CreateReceiptFilterResult createReceiptFilter(CreateReceiptFilterRequest request) {request = beforeClientExecution(request);return executeCreateReceiptFilter(request);}
| [
"public",
"CreateReceiptFilterResult",
"createReceiptFilter",
"(",
"CreateReceiptFilterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateReceiptFilter",
"(",
"request",
")",
";",
"}"
] | public virtual CreateReceiptFilterResponse CreateReceiptFilter(CreateReceiptFilterRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateReceiptFilterRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateReceiptFilterResponseUnmarshaller.Instance;return Invoke<CreateReceiptFilterResponse>(request, options);}
| train | true |
695 | public CherryPickCommand include(AnyObjectId commit) {return include(commit.getName(), commit);}
| [
"public",
"CherryPickCommand",
"include",
"(",
"AnyObjectId",
"commit",
")",
"{",
"return",
"include",
"(",
"commit",
".",
"getName",
"(",
")",
",",
"commit",
")",
";",
"}"
] | public virtual NGit.Api.CherryPickCommand Include(Ref commit){CheckCallable();commits.AddItem(commit);return this;}
| train | false |
696 | public ATNDeserializationOptions() {this.verifyATN = true;this.generateRuleBypassTransitions = false;}
| [
"public",
"ATNDeserializationOptions",
"(",
")",
"{",
"this",
".",
"verifyATN",
"=",
"true",
";",
"this",
".",
"generateRuleBypassTransitions",
"=",
"false",
";",
"}"
] | public ATNDeserializationOptions(){this.verifyATN = true;this.generateRuleBypassTransitions = false;this.optimize = true;}
| train | false |
697 | public ListIdentityPoliciesResult listIdentityPolicies(ListIdentityPoliciesRequest request) {request = beforeClientExecution(request);return executeListIdentityPolicies(request);}
| [
"public",
"ListIdentityPoliciesResult",
"listIdentityPolicies",
"(",
"ListIdentityPoliciesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListIdentityPolicies",
"(",
"request",
")",
";",
"}"
] | public virtual ListIdentityPoliciesResponse ListIdentityPolicies(ListIdentityPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIdentityPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIdentityPoliciesResponseUnmarshaller.Instance;return Invoke<ListIdentityPoliciesResponse>(request, options);}
| train | true |
698 | public static boolean isValidCode(int errorCode) {for (FormulaError error : values()) {if (error.getCode() == errorCode) return true;if (error.getLongCode() == errorCode) return true;}return false;}
| [
"public",
"static",
"boolean",
"isValidCode",
"(",
"int",
"errorCode",
")",
"{",
"for",
"(",
"FormulaError",
"error",
":",
"values",
"(",
")",
")",
"{",
"if",
"(",
"error",
".",
"getCode",
"(",
")",
"==",
"errorCode",
")",
"return",
"true",
";",
"if",
"(",
"error",
".",
"getLongCode",
"(",
")",
"==",
"errorCode",
")",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}"
] | public static bool IsValidCode(int errorCode){foreach (FormulaError error in _values){if (error.Code == errorCode) return true;if (error.LongCode == errorCode) return true;}return false;}
| train | false |
699 | public RKRecord(RecordInputStream in) {super(in);field_4_rk_number = in.readInt();}
| [
"public",
"RKRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"super",
"(",
"in",
")",
";",
"field_4_rk_number",
"=",
"in",
".",
"readInt",
"(",
")",
";",
"}"
] | public RKRecord(RecordInputStream in1): base(in1){field_4_rk_number = in1.ReadInt();}
| train | false |
700 | public void copyTo(ByteBuffer b) {b.put(toHexByteArray());}
| [
"public",
"void",
"copyTo",
"(",
"ByteBuffer",
"b",
")",
"{",
"b",
".",
"put",
"(",
"toHexByteArray",
"(",
")",
")",
";",
"}"
] | public virtual void CopyTo(ByteBuffer b){b.Put(ToHexByteArray());}
| train | false |
701 | public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[DAT]\n");buffer.append(" .options = ").append("0x").append(HexDump.toHex( getOptions ())).append(" (").append( getOptions() ).append(" )");buffer.append(System.getProperty("line.separator"));buffer.append(" .horizontalBorder = ").append(isHorizontalBorder()).append('\n');buffer.append(" .verticalBorder = ").append(isVerticalBorder()).append('\n');buffer.append(" .border = ").append(isBorder()).append('\n');buffer.append(" .showSeriesKey = ").append(isShowSeriesKey()).append('\n');buffer.append("[/DAT]\n");return buffer.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[DAT]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .options = \"",
")",
".",
"append",
"(",
"\"0x\"",
")",
".",
"append",
"(",
"HexDump",
".",
"toHex",
"(",
"getOptions",
"(",
")",
")",
")",
".",
"append",
"(",
"\" (\"",
")",
".",
"append",
"(",
"getOptions",
"(",
")",
")",
".",
"append",
"(",
"\" )\"",
")",
";",
"buffer",
".",
"append",
"(",
"System",
".",
"getProperty",
"(",
"\"line.separator\"",
")",
")",
";",
"buffer",
".",
"append",
"(",
"\" .horizontalBorder = \"",
")",
".",
"append",
"(",
"isHorizontalBorder",
"(",
")",
")",
".",
"append",
"(",
"'\\n'",
")",
";",
"buffer",
".",
"append",
"(",
"\" .verticalBorder = \"",
")",
".",
"append",
"(",
"isVerticalBorder",
"(",
")",
")",
".",
"append",
"(",
"'\\n'",
")",
";",
"buffer",
".",
"append",
"(",
"\" .border = \"",
")",
".",
"append",
"(",
"isBorder",
"(",
")",
")",
".",
"append",
"(",
"'\\n'",
")",
";",
"buffer",
".",
"append",
"(",
"\" .showSeriesKey = \"",
")",
".",
"append",
"(",
"isShowSeriesKey",
"(",
")",
")",
".",
"append",
"(",
"'\\n'",
")",
";",
"buffer",
".",
"append",
"(",
"\"[/DAT]\\n\"",
")",
";",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[DAT]\n");buffer.Append(" .options = ").Append("0x").Append(HexDump.ToHex(Options)).Append(" (").Append(Options).Append(" )");buffer.Append(Environment.NewLine);buffer.Append(" .horizontalBorder = ").Append(IsHorizontalBorder()).Append('\n');buffer.Append(" .verticalBorder = ").Append(IsVerticalBorder()).Append('\n');buffer.Append(" .border = ").Append(IsBorder()).Append('\n');buffer.Append(" .showSeriesKey = ").Append(IsShowSeriesKey()).Append('\n');buffer.Append("[/DAT]\n");return buffer.ToString();}
| train | false |
702 | public UpdateDashboardResult updateDashboard(UpdateDashboardRequest request) {request = beforeClientExecution(request);return executeUpdateDashboard(request);}
| [
"public",
"UpdateDashboardResult",
"updateDashboard",
"(",
"UpdateDashboardRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateDashboard",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateDashboardResponse UpdateDashboard(UpdateDashboardRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDashboardRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDashboardResponseUnmarshaller.Instance;return Invoke<UpdateDashboardResponse>(request, options);}
| train | false |
703 | public RegisterTagRequest() {super("CloudPhoto", "2017-07-11", "RegisterTag", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"RegisterTagRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"RegisterTag\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public RegisterTagRequest(): base("CloudPhoto", "2017-07-11", "RegisterTag", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
704 | public DiffCommand setPathFilter(TreeFilter pathFilter) {this.pathFilter = pathFilter;return this;}
| [
"public",
"DiffCommand",
"setPathFilter",
"(",
"TreeFilter",
"pathFilter",
")",
"{",
"this",
".",
"pathFilter",
"=",
"pathFilter",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Api.DiffCommand SetPathFilter(TreeFilter pathFilter){this.pathFilter = pathFilter;return this;}
| train | false |
705 | public boolean markSupported() {return true;}
| [
"public",
"boolean",
"markSupported",
"(",
")",
"{",
"return",
"true",
";",
"}"
] | public override bool MarkSupported(){return true;}
| train | false |
706 | public String toString() {StringBuilder sb = new StringBuilder(getClass().getSimpleName() + ": ");sb.append("maxThreadCount=").append(maxThreadCount).append(", ");sb.append("maxMergeCount=").append(maxMergeCount).append(", ");sb.append("ioThrottle=").append(doAutoIOThrottle);return sb.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
"getClass",
"(",
")",
".",
"getSimpleName",
"(",
")",
"+",
"\": \"",
")",
";",
"sb",
".",
"append",
"(",
"\"maxThreadCount=\"",
")",
".",
"append",
"(",
"maxThreadCount",
")",
".",
"append",
"(",
"\", \"",
")",
";",
"sb",
".",
"append",
"(",
"\"maxMergeCount=\"",
")",
".",
"append",
"(",
"maxMergeCount",
")",
".",
"append",
"(",
"\", \"",
")",
";",
"sb",
".",
"append",
"(",
"\"ioThrottle=\"",
")",
".",
"append",
"(",
"doAutoIOThrottle",
")",
";",
"return",
"sb",
".",
"toString",
"(",
")",
";",
"}"
] | public override string ToString(){StringBuilder sb = new StringBuilder(this.GetType().Name + ": ");sb.Append("maxThreadCount=").Append(maxThreadCount).Append(", ");sb.Append("maxMergeCount=").Append(maxMergeCount).Append(", ");sb.Append("mergeThreadPriority=").Append(mergeThreadPriority);return sb.ToString();}
| train | false |
707 | public synchronized void println(String str) {print(str);newline();}
| [
"public",
"synchronized",
"void",
"println",
"(",
"String",
"str",
")",
"{",
"print",
"(",
"str",
")",
";",
"newline",
"(",
")",
";",
"}"
] | public virtual void println(string str){lock (this){print(str);newline();}}
| train | false |
708 | public UpdateApiResult updateApi(UpdateApiRequest request) {request = beforeClientExecution(request);return executeUpdateApi(request);}
| [
"public",
"UpdateApiResult",
"updateApi",
"(",
"UpdateApiRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateApi",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateApiResponse UpdateApi(UpdateApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApiRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApiResponseUnmarshaller.Instance;return Invoke<UpdateApiResponse>(request, options);}
| train | true |
709 | public FlushStageAuthorizersCacheResult flushStageAuthorizersCache(FlushStageAuthorizersCacheRequest request) {request = beforeClientExecution(request);return executeFlushStageAuthorizersCache(request);}
| [
"public",
"FlushStageAuthorizersCacheResult",
"flushStageAuthorizersCache",
"(",
"FlushStageAuthorizersCacheRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeFlushStageAuthorizersCache",
"(",
"request",
")",
";",
"}"
] | public virtual FlushStageAuthorizersCacheResponse FlushStageAuthorizersCache(FlushStageAuthorizersCacheRequest request){var options = new InvokeOptions();options.RequestMarshaller = FlushStageAuthorizersCacheRequestMarshaller.Instance;options.ResponseUnmarshaller = FlushStageAuthorizersCacheResponseUnmarshaller.Instance;return Invoke<FlushStageAuthorizersCacheResponse>(request, options);}
| train | true |
710 | public BasicQueryFactory(int maxBasicQueries) {this.maxBasicQueries = maxBasicQueries;this.queriesMade = 0;}
| [
"public",
"BasicQueryFactory",
"(",
"int",
"maxBasicQueries",
")",
"{",
"this",
".",
"maxBasicQueries",
"=",
"maxBasicQueries",
";",
"this",
".",
"queriesMade",
"=",
"0",
";",
"}"
] | public BasicQueryFactory(int maxBasicQueries){this.maxBasicQueries = maxBasicQueries;this.queriesMade = 0;}
| train | false |
711 | public TrackingRefUpdate getTrackingRefUpdate(String localName) {return updates.get(localName);}
| [
"public",
"TrackingRefUpdate",
"getTrackingRefUpdate",
"(",
"String",
"localName",
")",
"{",
"return",
"updates",
".",
"get",
"(",
"localName",
")",
";",
"}"
] | public virtual TrackingRefUpdate GetTrackingRefUpdate(string localName){return updates.Get(localName);}
| train | false |
712 | public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[CATLAB]\n");buffer.append(" .rt =").append(HexDump.shortToHex(rt)).append('\n');buffer.append(" .grbitFrt=").append(HexDump.shortToHex(grbitFrt)).append('\n');buffer.append(" .wOffset =").append(HexDump.shortToHex(wOffset)).append('\n');buffer.append(" .at =").append(HexDump.shortToHex(at)).append('\n');buffer.append(" .grbit =").append(HexDump.shortToHex(grbit)).append('\n');if(unused != null)buffer.append(" .unused =").append(HexDump.shortToHex(unused)).append('\n');buffer.append("[/CATLAB]\n");return buffer.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[CATLAB]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .rt =\"",
")",
".",
"append",
"(",
"HexDump",
".",
"shortToHex",
"(",
"rt",
")",
")",
".",
"append",
"(",
"'\\n'",
")",
";",
"buffer",
".",
"append",
"(",
"\" .grbitFrt=\"",
")",
".",
"append",
"(",
"HexDump",
".",
"shortToHex",
"(",
"grbitFrt",
")",
")",
".",
"append",
"(",
"'\\n'",
")",
";",
"buffer",
".",
"append",
"(",
"\" .wOffset =\"",
")",
".",
"append",
"(",
"HexDump",
".",
"shortToHex",
"(",
"wOffset",
")",
")",
".",
"append",
"(",
"'\\n'",
")",
";",
"buffer",
".",
"append",
"(",
"\" .at =\"",
")",
".",
"append",
"(",
"HexDump",
".",
"shortToHex",
"(",
"at",
")",
")",
".",
"append",
"(",
"'\\n'",
")",
";",
"buffer",
".",
"append",
"(",
"\" .grbit =\"",
")",
".",
"append",
"(",
"HexDump",
".",
"shortToHex",
"(",
"grbit",
")",
")",
".",
"append",
"(",
"'\\n'",
")",
";",
"if",
"(",
"unused",
"!=",
"null",
")",
"buffer",
".",
"append",
"(",
"\" .unused =\"",
")",
".",
"append",
"(",
"HexDump",
".",
"shortToHex",
"(",
"unused",
")",
")",
".",
"append",
"(",
"'\\n'",
")",
";",
"buffer",
".",
"append",
"(",
"\"[/CATLAB]\\n\"",
")",
";",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[CATLAB]\n");buffer.Append(" .rt =").Append(HexDump.ShortToHex(rt)).Append('\n');buffer.Append(" .grbitFrt=").Append(HexDump.ShortToHex(grbitFrt)).Append('\n');buffer.Append(" .wOffset =").Append(HexDump.ShortToHex(wOffset)).Append('\n');buffer.Append(" .at =").Append(HexDump.ShortToHex(at)).Append('\n');buffer.Append(" .grbit =").Append(HexDump.ShortToHex(grbit)).Append('\n');buffer.Append(" .unused =").Append(HexDump.ShortToHex((short)unused)).Append('\n');buffer.Append("[/CATLAB]\n");return buffer.ToString();}
| train | false |
713 | public EnableDirectoryResult enableDirectory(EnableDirectoryRequest request) {request = beforeClientExecution(request);return executeEnableDirectory(request);}
| [
"public",
"EnableDirectoryResult",
"enableDirectory",
"(",
"EnableDirectoryRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeEnableDirectory",
"(",
"request",
")",
";",
"}"
] | public virtual EnableDirectoryResponse EnableDirectory(EnableDirectoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableDirectoryRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableDirectoryResponseUnmarshaller.Instance;return Invoke<EnableDirectoryResponse>(request, options);}
| train | true |
714 | public IntBuffer put(int[] src, int srcOffset, int intCount) {if (intCount > remaining()) {throw new BufferOverflowException();}System.arraycopy(src, srcOffset, backingArray, offset + position, intCount);position += intCount;return this;}
| [
"public",
"IntBuffer",
"put",
"(",
"int",
"[",
"]",
"src",
",",
"int",
"srcOffset",
",",
"int",
"intCount",
")",
"{",
"if",
"(",
"intCount",
">",
"remaining",
"(",
")",
")",
"{",
"throw",
"new",
"BufferOverflowException",
"(",
")",
";",
"}",
"System",
".",
"arraycopy",
"(",
"src",
",",
"srcOffset",
",",
"backingArray",
",",
"offset",
"+",
"position",
",",
"intCount",
")",
";",
"position",
"+=",
"intCount",
";",
"return",
"this",
";",
"}"
] | public override java.nio.IntBuffer put(int[] src, int srcOffset, int intCount){if (intCount > remaining()){throw new java.nio.BufferOverflowException();}System.Array.Copy(src, srcOffset, backingArray, offset + _position, intCount);_position += intCount;return this;}
| train | false |
715 | public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[PROT4REVPASSWORD]\n");buffer.append(" .password = ").append(HexDump.shortToHex(field_1_password)).append("\n");buffer.append("[/PROT4REVPASSWORD]\n");return buffer.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[PROT4REVPASSWORD]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .password = \"",
")",
".",
"append",
"(",
"HexDump",
".",
"shortToHex",
"(",
"field_1_password",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\"[/PROT4REVPASSWORD]\\n\"",
")",
";",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[PROT4REVPASSWORD]\n");buffer.Append(" .password = ").Append(StringUtil.ToHexString(field_1_password)).Append("\n");buffer.Append("[/PROT4REVPASSWORD]\n");return buffer.ToString();}
| train | false |
716 | public DescribeProjectVersionsResult describeProjectVersions(DescribeProjectVersionsRequest request) {request = beforeClientExecution(request);return executeDescribeProjectVersions(request);}
| [
"public",
"DescribeProjectVersionsResult",
"describeProjectVersions",
"(",
"DescribeProjectVersionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeProjectVersions",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeProjectVersionsResponse DescribeProjectVersions(DescribeProjectVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeProjectVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeProjectVersionsResponseUnmarshaller.Instance;return Invoke<DescribeProjectVersionsResponse>(request, options);}
| train | false |
717 | public UpdateHostedZoneCommentResult updateHostedZoneComment(UpdateHostedZoneCommentRequest request) {request = beforeClientExecution(request);return executeUpdateHostedZoneComment(request);}
| [
"public",
"UpdateHostedZoneCommentResult",
"updateHostedZoneComment",
"(",
"UpdateHostedZoneCommentRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateHostedZoneComment",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateHostedZoneCommentResponse UpdateHostedZoneComment(UpdateHostedZoneCommentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateHostedZoneCommentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateHostedZoneCommentResponseUnmarshaller.Instance;return Invoke<UpdateHostedZoneCommentResponse>(request, options);}
| train | true |
718 | public Rescorer getRescorer(Bindings bindings) {return new ExpressionRescorer(this, bindings);}
| [
"public",
"Rescorer",
"getRescorer",
"(",
"Bindings",
"bindings",
")",
"{",
"return",
"new",
"ExpressionRescorer",
"(",
"this",
",",
"bindings",
")",
";",
"}"
] | public virtual Rescorer GetRescorer(Bindings bindings){return new ExpressionRescorer(this, bindings);}
| train | false |
719 | public SortedSet<E> headSet(E end) {return headSet(end, false);}
| [
"public",
"SortedSet",
"<",
"E",
">",
"headSet",
"(",
"E",
"end",
")",
"{",
"return",
"headSet",
"(",
"end",
",",
"false",
")",
";",
"}"
] | public virtual java.util.SortedSet<E> headSet(E end){return headSet(end, false);}
| train | false |
720 | final public QueryNode DisjQuery(CharSequence field) throws ParseException {QueryNode first, c;Vector<QueryNode> clauses = null;first = ConjQuery(field);label_2:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case OR:;break;default:jj_la1[3] = jj_gen;break label_2;}jj_consume_token(OR);c = ConjQuery(field);if (clauses == null) {clauses = new Vector<QueryNode>();clauses.addElement(first);}clauses.addElement(c);}if (clauses != null) {{if (true) return new OrQueryNode(clauses);}} else {{if (true) return first;}}throw new Error("Missing return statement in function");}
| [
"final",
"public",
"QueryNode",
"DisjQuery",
"(",
"CharSequence",
"field",
")",
"throws",
"ParseException",
"{",
"QueryNode",
"first",
",",
"c",
";",
"Vector",
"<",
"QueryNode",
">",
"clauses",
"=",
"null",
";",
"first",
"=",
"ConjQuery",
"(",
"field",
")",
";",
"label_2",
":",
"while",
"(",
"true",
")",
"{",
"switch",
"(",
"(",
"jj_ntk",
"==",
"-",
"1",
")",
"?",
"jj_ntk",
"(",
")",
":",
"jj_ntk",
")",
"{",
"case",
"OR",
":",
";",
"break",
";",
"default",
":",
"jj_la1",
"[",
"3",
"]",
"=",
"jj_gen",
";",
"break",
"label_2",
";",
"}",
"jj_consume_token",
"(",
"OR",
")",
";",
"c",
"=",
"ConjQuery",
"(",
"field",
")",
";",
"if",
"(",
"clauses",
"==",
"null",
")",
"{",
"clauses",
"=",
"new",
"Vector",
"<",
"QueryNode",
">",
"(",
")",
";",
"clauses",
".",
"addElement",
"(",
"first",
")",
";",
"}",
"clauses",
".",
"addElement",
"(",
"c",
")",
";",
"}",
"if",
"(",
"clauses",
"!=",
"null",
")",
"{",
"{",
"if",
"(",
"true",
")",
"return",
"new",
"OrQueryNode",
"(",
"clauses",
")",
";",
"}",
"}",
"else",
"{",
"{",
"if",
"(",
"true",
")",
"return",
"first",
";",
"}",
"}",
"throw",
"new",
"Error",
"(",
"\"Missing return statement in function\"",
")",
";",
"}"
] | public IQueryNode DisjQuery(string field){IQueryNode first, c;List<IQueryNode> clauses = null;first = ConjQuery(field);while (true){switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.OR:;break;default:jj_la1[5] = jj_gen;goto label_2_break;}Jj_consume_token(RegexpToken.OR);c = ConjQuery(field);if (clauses == null){clauses = new List<IQueryNode>();clauses.Add(first);}clauses.Add(c);}label_2_break:if (clauses != null){{ if (true) return new OrQueryNode(clauses); }}else{{ if (true) return first; }}throw new Exception("Missing return statement in function");}
| train | false |
721 | public DataValidationConstraint createExplicitListConstraint(String[] listOfValues) {return DVConstraint.createExplicitListConstraint(listOfValues);}
| [
"public",
"DataValidationConstraint",
"createExplicitListConstraint",
"(",
"String",
"[",
"]",
"listOfValues",
")",
"{",
"return",
"DVConstraint",
".",
"createExplicitListConstraint",
"(",
"listOfValues",
")",
";",
"}"
] | public IDataValidationConstraint CreateExplicitListConstraint(String[] listOfValues){return DVConstraint.CreateExplicitListConstraint(listOfValues);}
| train | false |
722 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1) {String s0;String s1;try {s0 = evaluateStringArg(arg0, srcRowIndex, srcColumnIndex);s1 = evaluateStringArg(arg1, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {return e.getErrorEval();}return BoolEval.valueOf(s0.equals(s1));}
| [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"arg0",
",",
"ValueEval",
"arg1",
")",
"{",
"String",
"s0",
";",
"String",
"s1",
";",
"try",
"{",
"s0",
"=",
"evaluateStringArg",
"(",
"arg0",
",",
"srcRowIndex",
",",
"srcColumnIndex",
")",
";",
"s1",
"=",
"evaluateStringArg",
"(",
"arg1",
",",
"srcRowIndex",
",",
"srcColumnIndex",
")",
";",
"}",
"catch",
"(",
"EvaluationException",
"e",
")",
"{",
"return",
"e",
".",
"getErrorEval",
"(",
")",
";",
"}",
"return",
"BoolEval",
".",
"valueOf",
"(",
"s0",
".",
"equals",
"(",
"s1",
")",
")",
";",
"}"
] | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1){String arg;int index;try{arg = TextFunction.EvaluateStringArg(arg0, srcRowIndex, srcColumnIndex);index = TextFunction.EvaluateIntArg(arg1, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){return e.GetErrorEval();}if (index < 0){return ErrorEval.VALUE_INVALID;}String result;if (_isLeft){result = arg.Substring(0, Math.Min(arg.Length, index));}else{result = arg.Substring(Math.Max(0, arg.Length - index));}return new StringEval(result);}
| train | false |
723 | public boolean offer(E o) {return addLastImpl(o);}
| [
"public",
"boolean",
"offer",
"(",
"E",
"o",
")",
"{",
"return",
"addLastImpl",
"(",
"o",
")",
";",
"}"
] | public virtual bool offer(E o){return addLastImpl(o);}
| train | false |
724 | public ListInvalidationsRequest(String distributionId) {setDistributionId(distributionId);}
| [
"public",
"ListInvalidationsRequest",
"(",
"String",
"distributionId",
")",
"{",
"setDistributionId",
"(",
"distributionId",
")",
";",
"}"
] | public ListInvalidationsRequest(string distributionId){_distributionId = distributionId;}
| train | false |
725 | public TagPhotoRequest() {super("CloudPhoto", "2017-07-11", "TagPhoto", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"TagPhotoRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"TagPhoto\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public TagPhotoRequest(): base("CloudPhoto", "2017-07-11", "TagPhoto", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
726 | public CreateFleetResult createFleet(CreateFleetRequest request) {request = beforeClientExecution(request);return executeCreateFleet(request);}
| [
"public",
"CreateFleetResult",
"createFleet",
"(",
"CreateFleetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateFleet",
"(",
"request",
")",
";",
"}"
] | public virtual CreateFleetResponse CreateFleet(CreateFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFleetResponseUnmarshaller.Instance;return Invoke<CreateFleetResponse>(request, options);}
| train | true |
727 | public GetTransitGatewayAttachmentPropagationsResult getTransitGatewayAttachmentPropagations(GetTransitGatewayAttachmentPropagationsRequest request) {request = beforeClientExecution(request);return executeGetTransitGatewayAttachmentPropagations(request);}
| [
"public",
"GetTransitGatewayAttachmentPropagationsResult",
"getTransitGatewayAttachmentPropagations",
"(",
"GetTransitGatewayAttachmentPropagationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetTransitGatewayAttachmentPropagations",
"(",
"request",
")",
";",
"}"
] | public virtual GetTransitGatewayAttachmentPropagationsResponse GetTransitGatewayAttachmentPropagations(GetTransitGatewayAttachmentPropagationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTransitGatewayAttachmentPropagationsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTransitGatewayAttachmentPropagationsResponseUnmarshaller.Instance;return Invoke<GetTransitGatewayAttachmentPropagationsResponse>(request, options);}
| train | true |
728 | public ListWorkteamsResult listWorkteams(ListWorkteamsRequest request) {request = beforeClientExecution(request);return executeListWorkteams(request);}
| [
"public",
"ListWorkteamsResult",
"listWorkteams",
"(",
"ListWorkteamsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListWorkteams",
"(",
"request",
")",
";",
"}"
] | public virtual ListWorkteamsResponse ListWorkteams(ListWorkteamsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListWorkteamsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListWorkteamsResponseUnmarshaller.Instance;return Invoke<ListWorkteamsResponse>(request, options);}
| train | true |
729 | public DetachVpnGatewayResult detachVpnGateway(DetachVpnGatewayRequest request) {request = beforeClientExecution(request);return executeDetachVpnGateway(request);}
| [
"public",
"DetachVpnGatewayResult",
"detachVpnGateway",
"(",
"DetachVpnGatewayRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDetachVpnGateway",
"(",
"request",
")",
";",
"}"
] | public virtual DetachVpnGatewayResponse DetachVpnGateway(DetachVpnGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachVpnGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachVpnGatewayResponseUnmarshaller.Instance;return Invoke<DetachVpnGatewayResponse>(request, options);}
| train | true |
730 | public ListGeoLocationsResult listGeoLocations() {return listGeoLocations(new ListGeoLocationsRequest());}
| [
"public",
"ListGeoLocationsResult",
"listGeoLocations",
"(",
")",
"{",
"return",
"listGeoLocations",
"(",
"new",
"ListGeoLocationsRequest",
"(",
")",
")",
";",
"}"
] | public virtual ListGeoLocationsResponse ListGeoLocations(){return ListGeoLocations(new ListGeoLocationsRequest());}
| train | false |
731 | public String toString() {return getClass().getName() + " [" +getStringValue() +"]";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
"+",
"\" [\"",
"+",
"getStringValue",
"(",
")",
"+",
"\"]\"",
";",
"}"
] | public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(" [");sb.Append(StringValue);sb.Append("]");return sb.ToString();}
| train | false |
732 | public static double decodeNumber(int number) {long raw_number = number;raw_number = raw_number >> 2;double rvalue = 0;if ((number & 0x02) == 0x02){rvalue = raw_number;}else{rvalue = Double.longBitsToDouble(raw_number << 34);}if ((number & 0x01) == 0x01){rvalue /= 100;}return rvalue;}
| [
"public",
"static",
"double",
"decodeNumber",
"(",
"int",
"number",
")",
"{",
"long",
"raw_number",
"=",
"number",
";",
"raw_number",
"=",
"raw_number",
">",
">",
"2",
";",
"double",
"rvalue",
"=",
"0",
";",
"if",
"(",
"(",
"number",
"&",
"0x02",
")",
"==",
"0x02",
")",
"{",
"rvalue",
"=",
"raw_number",
";",
"}",
"else",
"{",
"rvalue",
"=",
"Double",
".",
"longBitsToDouble",
"(",
"raw_number",
"<<",
"34",
")",
";",
"}",
"if",
"(",
"(",
"number",
"&",
"0x01",
")",
"==",
"0x01",
")",
"{",
"rvalue",
"/=",
"100",
";",
"}",
"return",
"rvalue",
";",
"}"
] | public static double DecodeNumber(int number){long raw_number = number;raw_number = raw_number >> 2;double rvalue = 0;if ((number & 0x02) == 0x02){rvalue = (double)(raw_number);}else{rvalue = BitConverter.Int64BitsToDouble(raw_number << 34);}if ((number & 0x01) == 0x01){rvalue /= 100;}return rvalue;}
| train | false |
733 | public long get(long index) {assert index >= 0 && index < valueCount;final int block = (int) (index >>> blockShift);final int idx = (int) (index & blockMask);return (minValues == null ? 0 : minValues[block]) + subReaders[block].get(idx);}
| [
"public",
"long",
"get",
"(",
"long",
"index",
")",
"{",
"assert",
"index",
">=",
"0",
"&&",
"index",
"<",
"valueCount",
";",
"final",
"int",
"block",
"=",
"(",
"int",
")",
"(",
"index",
">",
">",
">",
"blockShift",
")",
";",
"final",
"int",
"idx",
"=",
"(",
"int",
")",
"(",
"index",
"&",
"blockMask",
")",
";",
"return",
"(",
"minValues",
"==",
"null",
"?",
"0",
":",
"minValues",
"[",
"block",
"]",
")",
"+",
"subReaders",
"[",
"block",
"]",
".",
"get",
"(",
"idx",
")",
";",
"}"
] | public override long Get(long index){Debug.Assert(index >= 0 && index < valueCount);int block = (int)((long)((ulong)index >> blockShift));int idx = (int)(index & blockMask);return (minValues == null ? 0 : minValues[block]) + subReaders[block].Get(idx);}
| train | false |
734 | public UpdatePublishingDestinationResult updatePublishingDestination(UpdatePublishingDestinationRequest request) {request = beforeClientExecution(request);return executeUpdatePublishingDestination(request);}
| [
"public",
"UpdatePublishingDestinationResult",
"updatePublishingDestination",
"(",
"UpdatePublishingDestinationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdatePublishingDestination",
"(",
"request",
")",
";",
"}"
] | public virtual UpdatePublishingDestinationResponse UpdatePublishingDestination(UpdatePublishingDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePublishingDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePublishingDestinationResponseUnmarshaller.Instance;return Invoke<UpdatePublishingDestinationResponse>(request, options);}
| train | false |
735 | public void notifyDeleteCell(EvaluationCell cell) {int sheetIndex = getSheetIndex(cell.getSheet());_cache.notifyDeleteCell(_workbookIx, sheetIndex, cell);}
| [
"public",
"void",
"notifyDeleteCell",
"(",
"EvaluationCell",
"cell",
")",
"{",
"int",
"sheetIndex",
"=",
"getSheetIndex",
"(",
"cell",
".",
"getSheet",
"(",
")",
")",
";",
"_cache",
".",
"notifyDeleteCell",
"(",
"_workbookIx",
",",
"sheetIndex",
",",
"cell",
")",
";",
"}"
] | public void NotifyDeleteCell(IEvaluationCell cell){int sheetIndex = GetSheetIndex(cell.Sheet);_cache.NotifyDeleteCell(_workbookIx, sheetIndex, cell);}
| train | false |
736 | public Request<GetPolicyRequest> marshall(GetPolicyRequest getPolicyRequest) {if (getPolicyRequest == null) {throw new SdkClientException("Invalid argument passed to marshall(...)");}Request<GetPolicyRequest> request = new DefaultRequest<GetPolicyRequest>(getPolicyRequest, "AmazonIdentityManagement");request.addParameter("Action", "GetPolicy");request.addParameter("Version", "2010-05-08");request.setHttpMethod(HttpMethodName.POST);if (getPolicyRequest.getPolicyArn() != null) {request.addParameter("PolicyArn", StringUtils.fromString(getPolicyRequest.getPolicyArn()));}return request;}
| [
"public",
"Request",
"<",
"GetPolicyRequest",
">",
"marshall",
"(",
"GetPolicyRequest",
"getPolicyRequest",
")",
"{",
"if",
"(",
"getPolicyRequest",
"==",
"null",
")",
"{",
"throw",
"new",
"SdkClientException",
"(",
"\"Invalid argument passed to marshall(...)\"",
")",
";",
"}",
"Request",
"<",
"GetPolicyRequest",
">",
"request",
"=",
"new",
"DefaultRequest",
"<",
"GetPolicyRequest",
">",
"(",
"getPolicyRequest",
",",
"\"AmazonIdentityManagement\"",
")",
";",
"request",
".",
"addParameter",
"(",
"\"Action\"",
",",
"\"GetPolicy\"",
")",
";",
"request",
".",
"addParameter",
"(",
"\"Version\"",
",",
"\"2010-05-08\"",
")",
";",
"request",
".",
"setHttpMethod",
"(",
"HttpMethodName",
".",
"POST",
")",
";",
"if",
"(",
"getPolicyRequest",
".",
"getPolicyArn",
"(",
")",
"!=",
"null",
")",
"{",
"request",
".",
"addParameter",
"(",
"\"PolicyArn\"",
",",
"StringUtils",
".",
"fromString",
"(",
"getPolicyRequest",
".",
"getPolicyArn",
"(",
")",
")",
")",
";",
"}",
"return",
"request",
";",
"}"
] | public IRequest Marshall(GetPolicyRequest publicRequest){IRequest request = new DefaultRequest(publicRequest, "Amazon.Lambda");request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-03-31";request.HttpMethod = "GET";if (!publicRequest.IsSetFunctionName())throw new AmazonLambdaException("Request object does not have required field FunctionName set");request.AddPathResource("{FunctionName}", StringUtils.FromString(publicRequest.FunctionName));if (publicRequest.IsSetQualifier())request.Parameters.Add("Qualifier", StringUtils.FromString(publicRequest.Qualifier));request.ResourcePath = "/2015-03-31/functions/{FunctionName}/policy";request.MarshallerVersion = 2;request.UseQueryString = true;return request;}
| train | true |
737 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval real_num, ValueEval i_num) {return this.evaluate(srcRowIndex, srcColumnIndex, real_num, i_num, new StringEval(DEFAULT_SUFFIX));}
| [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"real_num",
",",
"ValueEval",
"i_num",
")",
"{",
"return",
"this",
".",
"evaluate",
"(",
"srcRowIndex",
",",
"srcColumnIndex",
",",
"real_num",
",",
"i_num",
",",
"new",
"StringEval",
"(",
"DEFAULT_SUFFIX",
")",
")",
";",
"}"
] | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval real_num, ValueEval i_num){return this.Evaluate(srcRowIndex, srcColumnIndex, real_num, i_num, new StringEval(DEFAULT_SUFFIX));}
| train | false |
738 | public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) { readHeader( data, offset );int pos = offset + 8;int size = 0;field_1_numShapes = LittleEndian.getInt( data, pos + size ); size += 4;field_2_lastMSOSPID = LittleEndian.getInt( data, pos + size ); size += 4;return getRecordSize();}
| [
"public",
"int",
"fillFields",
"(",
"byte",
"[",
"]",
"data",
",",
"int",
"offset",
",",
"EscherRecordFactory",
"recordFactory",
")",
"{",
"readHeader",
"(",
"data",
",",
"offset",
")",
";",
"int",
"pos",
"=",
"offset",
"+",
"8",
";",
"int",
"size",
"=",
"0",
";",
"field_1_numShapes",
"=",
"LittleEndian",
".",
"getInt",
"(",
"data",
",",
"pos",
"+",
"size",
")",
";",
"size",
"+=",
"4",
";",
"field_2_lastMSOSPID",
"=",
"LittleEndian",
".",
"getInt",
"(",
"data",
",",
"pos",
"+",
"size",
")",
";",
"size",
"+=",
"4",
";",
"return",
"getRecordSize",
"(",
")",
";",
"}"
] | public override int FillFields(byte[] data, int offset, IEscherRecordFactory recordFactory){int bytesRemaining = ReadHeader(data, offset);int pos = offset + 8;int size = 0;field_1_numShapes = LittleEndian.GetInt(data, pos + size); size += 4;field_2_lastMSOSPID = LittleEndian.GetInt(data, pos + size); size += 4;return RecordSize;}
| train | false |
739 | public final CharsetEncoder reset() {status = INIT;implReset();return this;}
| [
"public",
"final",
"CharsetEncoder",
"reset",
"(",
")",
"{",
"status",
"=",
"INIT",
";",
"implReset",
"(",
")",
";",
"return",
"this",
";",
"}"
] | public java.nio.charset.CharsetEncoder reset(){status = INIT;implReset();return this;}
| train | false |
740 | public void emit(Token token) {this._token = token;}
| [
"public",
"void",
"emit",
"(",
"Token",
"token",
")",
"{",
"this",
".",
"_token",
"=",
"token",
";",
"}"
] | public virtual void Emit(IToken token){this._token = token;}
| train | false |
742 | public GreekLowerCaseFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"GreekLowerCaseFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown parameters: \"",
"+",
"args",
")",
";",
"}",
"}"
] | public GreekLowerCaseFilterFactory(IDictionary<string, string> args) : base(args){AssureMatchVersion();if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
| train | false |
743 | public URI relativize(URI relative) {if (relative.opaque || opaque) {return relative;}if (scheme == null ? relative.scheme != null : !scheme.equals(relative.scheme)) {return relative;}if (authority == null ? relative.authority != null : !authority.equals(relative.authority)) {return relative;}String thisPath = normalize(path, false);String relativePath = normalize(relative.path, false);if (!thisPath.equals(relativePath)) {thisPath = thisPath.substring(0, thisPath.lastIndexOf('/') + 1);if (!relativePath.startsWith(thisPath)) {return relative;}}URI result = new URI();result.fragment = relative.fragment;result.query = relative.query;result.path = relativePath.substring(thisPath.length());result.setSchemeSpecificPart();return result;}
| [
"public",
"URI",
"relativize",
"(",
"URI",
"relative",
")",
"{",
"if",
"(",
"relative",
".",
"opaque",
"||",
"opaque",
")",
"{",
"return",
"relative",
";",
"}",
"if",
"(",
"scheme",
"==",
"null",
"?",
"relative",
".",
"scheme",
"!=",
"null",
":",
"!",
"scheme",
".",
"equals",
"(",
"relative",
".",
"scheme",
")",
")",
"{",
"return",
"relative",
";",
"}",
"if",
"(",
"authority",
"==",
"null",
"?",
"relative",
".",
"authority",
"!=",
"null",
":",
"!",
"authority",
".",
"equals",
"(",
"relative",
".",
"authority",
")",
")",
"{",
"return",
"relative",
";",
"}",
"String",
"thisPath",
"=",
"normalize",
"(",
"path",
",",
"false",
")",
";",
"String",
"relativePath",
"=",
"normalize",
"(",
"relative",
".",
"path",
",",
"false",
")",
";",
"if",
"(",
"!",
"thisPath",
".",
"equals",
"(",
"relativePath",
")",
")",
"{",
"thisPath",
"=",
"thisPath",
".",
"substring",
"(",
"0",
",",
"thisPath",
".",
"lastIndexOf",
"(",
"'/'",
")",
"+",
"1",
")",
";",
"if",
"(",
"!",
"relativePath",
".",
"startsWith",
"(",
"thisPath",
")",
")",
"{",
"return",
"relative",
";",
"}",
"}",
"URI",
"result",
"=",
"new",
"URI",
"(",
")",
";",
"result",
".",
"fragment",
"=",
"relative",
".",
"fragment",
";",
"result",
".",
"query",
"=",
"relative",
".",
"query",
";",
"result",
".",
"path",
"=",
"relativePath",
".",
"substring",
"(",
"thisPath",
".",
"length",
"(",
")",
")",
";",
"result",
".",
"setSchemeSpecificPart",
"(",
")",
";",
"return",
"result",
";",
"}"
] | public java.net.URI relativize(java.net.URI relative){if (relative.opaque || opaque){return relative;}if (scheme == null ? relative.scheme != null : !scheme.Equals(relative.scheme)){return relative;}if (authority == null ? relative.authority != null : !authority.Equals(relative.authority)){return relative;}string thisPath = normalize(path, false);string relativePath = normalize(relative.path, false);if (!thisPath.Equals(relativePath)){thisPath = Sharpen.StringHelper.Substring(thisPath, 0, thisPath.LastIndexOf('/')+ 1);if (!relativePath.StartsWith(thisPath)){return relative;}}java.net.URI result = new java.net.URI();result.fragment = relative.fragment;result.query = relative.query;result.path = Sharpen.StringHelper.Substring(relativePath, thisPath.Length);result.setSchemeSpecificPart();return result;}
| train | false |
744 | public Reader freeze(boolean trim) {if (frozen) {throw new IllegalStateException("already frozen");}if (didSkipBytes) {throw new IllegalStateException("cannot freeze when copy(BytesRef, BytesRef) was used");}if (trim && upto < blockSize) {final byte[] newBlock = new byte[upto];System.arraycopy(currentBlock, 0, newBlock, 0, upto);currentBlock = newBlock;}if (currentBlock == null) {currentBlock = EMPTY_BYTES;}addBlock(currentBlock);frozen = true;currentBlock = null;return new PagedBytes.Reader(this);}
| [
"public",
"Reader",
"freeze",
"(",
"boolean",
"trim",
")",
"{",
"if",
"(",
"frozen",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"already frozen\"",
")",
";",
"}",
"if",
"(",
"didSkipBytes",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"cannot freeze when copy(BytesRef, BytesRef) was used\"",
")",
";",
"}",
"if",
"(",
"trim",
"&&",
"upto",
"<",
"blockSize",
")",
"{",
"final",
"byte",
"[",
"]",
"newBlock",
"=",
"new",
"byte",
"[",
"upto",
"]",
";",
"System",
".",
"arraycopy",
"(",
"currentBlock",
",",
"0",
",",
"newBlock",
",",
"0",
",",
"upto",
")",
";",
"currentBlock",
"=",
"newBlock",
";",
"}",
"if",
"(",
"currentBlock",
"==",
"null",
")",
"{",
"currentBlock",
"=",
"EMPTY_BYTES",
";",
"}",
"addBlock",
"(",
"currentBlock",
")",
";",
"frozen",
"=",
"true",
";",
"currentBlock",
"=",
"null",
";",
"return",
"new",
"PagedBytes",
".",
"Reader",
"(",
"this",
")",
";",
"}"
] | public Reader Freeze(bool trim){if (frozen){throw new InvalidOperationException("already frozen");}if (didSkipBytes){throw new InvalidOperationException("cannot freeze when copy(BytesRef, BytesRef) was used");}if (trim && upto < blockSize){var newBlock = new byte[upto];Array.Copy(currentBlock, 0, newBlock, 0, upto);currentBlock = newBlock;}if (currentBlock == null){currentBlock = EMPTY_BYTES;}blocks.Add(currentBlock);blockEnd.Add(upto);frozen = true;currentBlock = null;return new PagedBytes.Reader(this);}
| train | false |
746 | public Cluster createCluster(CreateClusterRequest request) {request = beforeClientExecution(request);return executeCreateCluster(request);}
| [
"public",
"Cluster",
"createCluster",
"(",
"CreateClusterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateCluster",
"(",
"request",
")",
";",
"}"
] | public virtual CreateClusterResponse CreateCluster(CreateClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateClusterResponseUnmarshaller.Instance;return Invoke<CreateClusterResponse>(request, options);}
| train | true |
747 | public PersistentSnapshotDeletionPolicy(IndexDeletionPolicy primary,Directory dir, OpenMode mode) throws IOException {super(primary);this.dir = dir;if (mode == OpenMode.CREATE) {clearPriorSnapshots();}loadPriorSnapshots();if (mode == OpenMode.APPEND && nextWriteGen == 0) {throw new IllegalStateException("no snapshots stored in this directory");}}
| [
"public",
"PersistentSnapshotDeletionPolicy",
"(",
"IndexDeletionPolicy",
"primary",
",",
"Directory",
"dir",
",",
"OpenMode",
"mode",
")",
"throws",
"IOException",
"{",
"super",
"(",
"primary",
")",
";",
"this",
".",
"dir",
"=",
"dir",
";",
"if",
"(",
"mode",
"==",
"OpenMode",
".",
"CREATE",
")",
"{",
"clearPriorSnapshots",
"(",
")",
";",
"}",
"loadPriorSnapshots",
"(",
")",
";",
"if",
"(",
"mode",
"==",
"OpenMode",
".",
"APPEND",
"&&",
"nextWriteGen",
"==",
"0",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"no snapshots stored in this directory\"",
")",
";",
"}",
"}"
] | public PersistentSnapshotDeletionPolicy(IndexDeletionPolicy primary, Directory dir, OpenMode mode): base(primary){this.dir = dir;if (mode == OpenMode.CREATE){ClearPriorSnapshots();}LoadPriorSnapshots();if (mode == OpenMode.APPEND && nextWriteGen == 0){throw new InvalidOperationException("no snapshots stored in this directory");}}
| train | false |
748 | public String getText(RuleContext ctx) {return getText(ctx.getSourceInterval());}
| [
"public",
"String",
"getText",
"(",
"RuleContext",
"ctx",
")",
"{",
"return",
"getText",
"(",
"ctx",
".",
"getSourceInterval",
"(",
")",
")",
";",
"}"
] | public virtual string GetText(RuleContext ctx){return GetText(ctx.SourceInterval);}
| train | false |
749 | public final float get() {if (position == limit) {throw new BufferUnderflowException();}return backingArray[offset + position++];}
| [
"public",
"final",
"float",
"get",
"(",
")",
"{",
"if",
"(",
"position",
"==",
"limit",
")",
"{",
"throw",
"new",
"BufferUnderflowException",
"(",
")",
";",
"}",
"return",
"backingArray",
"[",
"offset",
"+",
"position",
"++",
"]",
";",
"}"
] | public sealed override float get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return backingArray[offset + _position++];}
| train | false |
750 | public DeleteDataSetResult deleteDataSet(DeleteDataSetRequest request) {request = beforeClientExecution(request);return executeDeleteDataSet(request);}
| [
"public",
"DeleteDataSetResult",
"deleteDataSet",
"(",
"DeleteDataSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteDataSet",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteDataSetResponse DeleteDataSet(DeleteDataSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDataSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDataSetResponseUnmarshaller.Instance;return Invoke<DeleteDataSetResponse>(request, options);}
| train | false |
752 | public boolean matches(char s[], int len) {return super.matches(s, len) && !exceptions.contains(s, 0, len);}
| [
"public",
"boolean",
"matches",
"(",
"char",
"s",
"[",
"]",
",",
"int",
"len",
")",
"{",
"return",
"super",
".",
"matches",
"(",
"s",
",",
"len",
")",
"&&",
"!",
"exceptions",
".",
"contains",
"(",
"s",
",",
"0",
",",
"len",
")",
";",
"}"
] | public override bool Matches(char[] s, int len){return base.Matches(s, len) && !m_exceptions.Contains(s, 0, len);}
| train | false |
753 | public int getDeltaSearchWindowSize() {return deltaSearchWindowSize;}
| [
"public",
"int",
"getDeltaSearchWindowSize",
"(",
")",
"{",
"return",
"deltaSearchWindowSize",
";",
"}"
] | public virtual int GetDeltaSearchWindowSize(){return deltaSearchWindowSize;}
| train | false |
754 | public GetDomainNameResult getDomainName(GetDomainNameRequest request) {request = beforeClientExecution(request);return executeGetDomainName(request);}
| [
"public",
"GetDomainNameResult",
"getDomainName",
"(",
"GetDomainNameRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDomainName",
"(",
"request",
")",
";",
"}"
] | public virtual GetDomainNameResponse GetDomainName(GetDomainNameRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDomainNameRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDomainNameResponseUnmarshaller.Instance;return Invoke<GetDomainNameResponse>(request, options);}
| train | true |
755 | public DeleteAccessLogSettingsResult deleteAccessLogSettings(DeleteAccessLogSettingsRequest request) {request = beforeClientExecution(request);return executeDeleteAccessLogSettings(request);}
| [
"public",
"DeleteAccessLogSettingsResult",
"deleteAccessLogSettings",
"(",
"DeleteAccessLogSettingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteAccessLogSettings",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteAccessLogSettingsResponse DeleteAccessLogSettings(DeleteAccessLogSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAccessLogSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAccessLogSettingsResponseUnmarshaller.Instance;return Invoke<DeleteAccessLogSettingsResponse>(request, options);}
| train | false |
756 | public QueryValueSource(Query q, float defVal) {this.q = q;this.defVal = defVal;}
| [
"public",
"QueryValueSource",
"(",
"Query",
"q",
",",
"float",
"defVal",
")",
"{",
"this",
".",
"q",
"=",
"q",
";",
"this",
".",
"defVal",
"=",
"defVal",
";",
"}"
] | public QueryValueSource(Query q, float defVal){this.q = q;this.defVal = defVal;}
| train | false |
757 | @Override public Object[] toArray() {return snapshot().toArray();}
| [
"@",
"Override",
"public",
"Object",
"[",
"]",
"toArray",
"(",
")",
"{",
"return",
"snapshot",
"(",
")",
".",
"toArray",
"(",
")",
";",
"}"
] | public override object[] toArray(){lock (this._enclosing){return base.toArray();}}
| train | false |
Subsets and Splits