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
1,817
public Snapshot createSnapshot(CreateSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateSnapshot(request);}
[ "public", "Snapshot", "createSnapshot", "(", "CreateSnapshotRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateSnapshot", "(", "request", ")", ";", "}" ]
public virtual CreateSnapshotResponse CreateSnapshot(CreateSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSnapshotResponseUnmarshaller.Instance;return Invoke<CreateSnapshotResponse>(request, options);}
train
true
1,818
public Token get(int i) {if ( i < 0 || i >= tokens.size() ) {throw new IndexOutOfBoundsException("token index "+i+" out of range 0.."+(tokens.size()-1));}return tokens.get(i);}
[ "public", "Token", "get", "(", "int", "i", ")", "{", "if", "(", "i", "<", "0", "||", "i", ">=", "tokens", ".", "size", "(", ")", ")", "{", "throw", "new", "IndexOutOfBoundsException", "(", "\"token index \"", "+", "i", "+", "\" out of range 0..\"", "+", "(", "tokens", ".", "size", "(", ")", "-", "1", ")", ")", ";", "}", "return", "tokens", ".", "get", "(", "i", ")", ";", "}" ]
public virtual IToken Get(int i){if (i < 0 || i >= tokens.Count){throw new ArgumentOutOfRangeException("token index " + i + " out of range 0.." + (tokens.Count - 1));}return tokens[i];}
train
false
1,819
public DescribeAlarmsResult describeAlarms(DescribeAlarmsRequest request) {request = beforeClientExecution(request);return executeDescribeAlarms(request);}
[ "public", "DescribeAlarmsResult", "describeAlarms", "(", "DescribeAlarmsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeAlarms", "(", "request", ")", ";", "}" ]
public virtual DescribeAlarmsResponse DescribeAlarms(DescribeAlarmsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAlarmsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAlarmsResponseUnmarshaller.Instance;return Invoke<DescribeAlarmsResponse>(request, options);}
train
true
1,821
public int serialize( int offset, byte[] data, EscherSerializationListener listener ){listener.beforeRecordSerialize( offset, getRecordId(), this );LittleEndian.putShort( data, offset, getOptions() );LittleEndian.putShort( data, offset + 2, getRecordId() );int remainingBytes = 8;LittleEndian.putInt( data, offset + 4, remainingBytes );LittleEndian.putInt( data, offset + 8, field_1_shapeId );LittleEndian.putInt( data, offset + 12, field_2_flags );listener.afterRecordSerialize( offset + getRecordSize(), getRecordId(), getRecordSize(), this );return 8 + 8;}
[ "public", "int", "serialize", "(", "int", "offset", ",", "byte", "[", "]", "data", ",", "EscherSerializationListener", "listener", ")", "{", "listener", ".", "beforeRecordSerialize", "(", "offset", ",", "getRecordId", "(", ")", ",", "this", ")", ";", "LittleEndian", ".", "putShort", "(", "data", ",", "offset", ",", "getOptions", "(", ")", ")", ";", "LittleEndian", ".", "putShort", "(", "data", ",", "offset", "+", "2", ",", "getRecordId", "(", ")", ")", ";", "int", "remainingBytes", "=", "8", ";", "LittleEndian", ".", "putInt", "(", "data", ",", "offset", "+", "4", ",", "remainingBytes", ")", ";", "LittleEndian", ".", "putInt", "(", "data", ",", "offset", "+", "8", ",", "field_1_shapeId", ")", ";", "LittleEndian", ".", "putInt", "(", "data", ",", "offset", "+", "12", ",", "field_2_flags", ")", ";", "listener", ".", "afterRecordSerialize", "(", "offset", "+", "getRecordSize", "(", ")", ",", "getRecordId", "(", ")", ",", "getRecordSize", "(", ")", ",", "this", ")", ";", "return", "8", "+", "8", ";", "}" ]
public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);LittleEndian.PutShort(data, offset, Options);LittleEndian.PutShort(data, offset + 2, RecordId);int remainingBytes = 8;LittleEndian.PutInt(data, offset + 4, remainingBytes);LittleEndian.PutInt(data, offset + 8, field_1_shapeId);LittleEndian.PutInt(data, offset + 12, field_2_flags);listener.AfterRecordSerialize(offset + RecordSize, RecordId, RecordSize, this);return 8 + 8;}
train
false
1,822
public LsRemoteCommand setTags(boolean tags) {this.tags = tags;return this;}
[ "public", "LsRemoteCommand", "setTags", "(", "boolean", "tags", ")", "{", "this", ".", "tags", "=", "tags", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.LsRemoteCommand SetTags(bool tags){this.tags = tags;return this;}
train
false
1,823
public ASCIIFoldingFilterFactory(Map<String,String> args) {super(args);preserveOriginal = getBoolean(args, PRESERVE_ORIGINAL, false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "ASCIIFoldingFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "preserveOriginal", "=", "getBoolean", "(", "args", ",", "PRESERVE_ORIGINAL", ",", "false", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public ASCIIFoldingFilterFactory(IDictionary<string, string> args): base(args){preserveOriginal = GetBoolean(args, "preserveOriginal", false);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
1,824
public String toString() {return "input=" + input.get() + " output=" + output + " context=" + context + " boost=" + boost + " payload=" + payload;}
[ "public", "String", "toString", "(", ")", "{", "return", "\"input=\"", "+", "input", ".", "get", "(", ")", "+", "\" output=\"", "+", "output", "+", "\" context=\"", "+", "context", "+", "\" boost=\"", "+", "boost", "+", "\" payload=\"", "+", "payload", ";", "}" ]
public override string ToString(){return "input=" + Input + " cost=" + Cost;}
train
false
1,825
public ListNotesCommand setNotesRef(String notesRef) {checkCallable();this.notesRef = notesRef;return this;}
[ "public", "ListNotesCommand", "setNotesRef", "(", "String", "notesRef", ")", "{", "checkCallable", "(", ")", ";", "this", ".", "notesRef", "=", "notesRef", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.ListNotesCommand SetNotesRef(string notesRef){CheckCallable();this.notesRef = notesRef;return this;}
train
false
1,826
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[SXVD]\n");buffer.append(" .sxaxis = ").append(HexDump.shortToHex(_sxaxis)).append('\n');buffer.append(" .cSub = ").append(HexDump.shortToHex(_cSub)).append('\n');buffer.append(" .grbitSub = ").append(HexDump.shortToHex(_grbitSub)).append('\n');buffer.append(" .cItm = ").append(HexDump.shortToHex(_cItm)).append('\n');buffer.append(" .name = ").append(_name).append('\n');buffer.append("[/SXVD]\n");return buffer.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "buffer", ".", "append", "(", "\"[SXVD]\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .sxaxis = \"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "_sxaxis", ")", ")", ".", "append", "(", "'\\n'", ")", ";", "buffer", ".", "append", "(", "\" .cSub = \"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "_cSub", ")", ")", ".", "append", "(", "'\\n'", ")", ";", "buffer", ".", "append", "(", "\" .grbitSub = \"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "_grbitSub", ")", ")", ".", "append", "(", "'\\n'", ")", ";", "buffer", ".", "append", "(", "\" .cItm = \"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "_cItm", ")", ")", ".", "append", "(", "'\\n'", ")", ";", "buffer", ".", "append", "(", "\" .name = \"", ")", ".", "append", "(", "_name", ")", ".", "append", "(", "'\\n'", ")", ";", "buffer", ".", "append", "(", "\"[/SXVD]\\n\"", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[SXVD]\n");buffer.Append(" .sxaxis = ").Append(HexDump.ShortToHex(sxaxis)).Append('\n');buffer.Append(" .cSub = ").Append(HexDump.ShortToHex(cSub)).Append('\n');buffer.Append(" .grbitSub = ").Append(HexDump.ShortToHex(grbitSub)).Append('\n');buffer.Append(" .cItm = ").Append(HexDump.ShortToHex(cItm)).Append('\n');buffer.Append(" .name = ").Append(_name).Append('\n');buffer.Append("[/SXVD]\n");return buffer.ToString();}
train
false
1,827
public V get(Object o) {if(o == null)throw new NullPointerException();return null;}
[ "public", "V", "get", "(", "Object", "o", ")", "{", "if", "(", "o", "==", "null", ")", "throw", "new", "NullPointerException", "(", ")", ";", "return", "null", ";", "}" ]
public override V Get(object o){if (o == null){throw new ArgumentNullException("o");}return default(V);}
train
false
1,828
public String toString() {final StringBuilder sb = new StringBuilder();sb.append("[NAMECMT]\n");sb.append(" .record type = ").append(HexDump.shortToHex(field_1_record_type)).append("\n");sb.append(" .frt cell ref flag = ").append(HexDump.byteToHex(field_2_frt_cell_ref_flag)).append("\n");sb.append(" .reserved = ").append(field_3_reserved).append("\n");sb.append(" .name length = ").append(field_6_name_text.length()).append("\n");sb.append(" .comment length = ").append(field_7_comment_text.length()).append("\n");sb.append(" .name = ").append(field_6_name_text).append("\n");sb.append(" .comment = ").append(field_7_comment_text).append("\n");sb.append("[/NAMECMT]\n");return sb.toString();}
[ "public", "String", "toString", "(", ")", "{", "final", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "sb", ".", "append", "(", "\"[NAMECMT]\\n\"", ")", ";", "sb", ".", "append", "(", "\" .record type = \"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "field_1_record_type", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "sb", ".", "append", "(", "\" .frt cell ref flag = \"", ")", ".", "append", "(", "HexDump", ".", "byteToHex", "(", "field_2_frt_cell_ref_flag", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "sb", ".", "append", "(", "\" .reserved = \"", ")", ".", "append", "(", "field_3_reserved", ")", ".", "append", "(", "\"\\n\"", ")", ";", "sb", ".", "append", "(", "\" .name length = \"", ")", ".", "append", "(", "field_6_name_text", ".", "length", "(", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "sb", ".", "append", "(", "\" .comment length = \"", ")", ".", "append", "(", "field_7_comment_text", ".", "length", "(", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "sb", ".", "append", "(", "\" .name = \"", ")", ".", "append", "(", "field_6_name_text", ")", ".", "append", "(", "\"\\n\"", ")", ";", "sb", ".", "append", "(", "\" .comment = \"", ")", ".", "append", "(", "field_7_comment_text", ")", ".", "append", "(", "\"\\n\"", ")", ";", "sb", ".", "append", "(", "\"[/NAMECMT]\\n\"", ")", ";", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append("[NAMECMT]\n");sb.Append(" .record type = ").Append(HexDump.ShortToHex(field_1_record_type)).Append("\n");sb.Append(" .frt cell ref flag = ").Append(HexDump.ByteToHex(field_2_frt_cell_ref_flag)).Append("\n");sb.Append(" .reserved = ").Append(field_3_reserved).Append("\n");sb.Append(" .name length = ").Append(field_6_name_text.Length).Append("\n");sb.Append(" .comment length = ").Append(field_7_comment_text.Length).Append("\n");sb.Append(" .name = ").Append(field_6_name_text).Append("\n");sb.Append(" .comment = ").Append(field_7_comment_text).Append("\n");sb.Append("[/NAMECMT]\n");return sb.ToString();}
train
false
1,829
public CodepointCountFilterFactory(Map<String, String> args) {super(args);min = requireInt(args, MIN_KEY);max = requireInt(args, MAX_KEY);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "CodepointCountFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "min", "=", "requireInt", "(", "args", ",", "MIN_KEY", ")", ";", "max", "=", "requireInt", "(", "args", ",", "MAX_KEY", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public CodepointCountFilterFactory(IDictionary<string, string> args): base(args){min = RequireInt32(args, MIN_KEY);max = RequireInt32(args, MAX_KEY);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
1,830
public Entry<K, V> ceilingEntry(K key) {return immutableCopy(findBounded(key, CEILING));}
[ "public", "Entry", "<", "K", ",", "V", ">", "ceilingEntry", "(", "K", "key", ")", "{", "return", "immutableCopy", "(", "findBounded", "(", "key", ",", "CEILING", ")", ")", ";", "}" ]
public java.util.MapClass.Entry<K, V> ceilingEntry(K key){return this._enclosing.immutableCopy(this.findBounded(key, java.util.TreeMap.Relation.CEILING));}
train
false
1,831
public long setStartTimeMillis() {startTimeMillis = System.currentTimeMillis();return startTimeMillis;}
[ "public", "long", "setStartTimeMillis", "(", ")", "{", "startTimeMillis", "=", "System", ".", "currentTimeMillis", "(", ")", ";", "return", "startTimeMillis", ";", "}" ]
public virtual long SetStartTimeMillis(){startTimeMillis = J2N.Time.CurrentTimeMilliseconds();return startTimeMillis;}
train
false
1,832
public ListProfilingGroupsResult listProfilingGroups(ListProfilingGroupsRequest request) {request = beforeClientExecution(request);return executeListProfilingGroups(request);}
[ "public", "ListProfilingGroupsResult", "listProfilingGroups", "(", "ListProfilingGroupsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListProfilingGroups", "(", "request", ")", ";", "}" ]
public virtual ListProfilingGroupsResponse ListProfilingGroups(ListProfilingGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListProfilingGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListProfilingGroupsResponseUnmarshaller.Instance;return Invoke<ListProfilingGroupsResponse>(request, options);}
train
false
1,833
public static PersonIdent parsePersonIdent(String in) {return parsePersonIdent(Constants.encode(in), 0);}
[ "public", "static", "PersonIdent", "parsePersonIdent", "(", "String", "in", ")", "{", "return", "parsePersonIdent", "(", "Constants", ".", "encode", "(", "in", ")", ",", "0", ")", ";", "}" ]
public static PersonIdent ParsePersonIdent(string @in){return ParsePersonIdent(Constants.Encode(@in), 0);}
train
false
1,834
public void serialize(LittleEndianOutput out) {out.writeShort(field_1_numerator);out.writeShort(field_2_denominator);}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeShort", "(", "field_1_numerator", ")", ";", "out", ".", "writeShort", "(", "field_2_denominator", ")", ";", "}" ]
public override void Serialize(ILittleEndianOutput out1) {out1.WriteShort(field_1_numerator);out1.WriteShort(field_2_denominator);}
train
false
1,835
public AddCommand setUpdate(boolean update) {this.update = update;return this;}
[ "public", "AddCommand", "setUpdate", "(", "boolean", "update", ")", "{", "this", ".", "update", "=", "update", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.AddCommand SetUpdate(bool update){this.update = update;return this;}
train
false
1,836
public static <T> T[] copyOf(T[] original, int newLength) {if (original == null) {throw new NullPointerException();}if (newLength < 0) {throw new NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}
[ "public", "static", "<", "T", ">", "T", "[", "]", "copyOf", "(", "T", "[", "]", "original", ",", "int", "newLength", ")", "{", "if", "(", "original", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", ")", ";", "}", "if", "(", "newLength", "<", "0", ")", "{", "throw", "new", "NegativeArraySizeException", "(", ")", ";", "}", "return", "copyOfRange", "(", "original", ",", "0", ",", "newLength", ")", ";", "}" ]
public static int[] copyOf(int[] original, int newLength){if (newLength < 0){throw new java.lang.NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}
train
false
1,838
public DeleteDBInstanceRequest(String dBInstanceIdentifier) {setDBInstanceIdentifier(dBInstanceIdentifier);}
[ "public", "DeleteDBInstanceRequest", "(", "String", "dBInstanceIdentifier", ")", "{", "setDBInstanceIdentifier", "(", "dBInstanceIdentifier", ")", ";", "}" ]
public DeleteDBInstanceRequest(string dbInstanceIdentifier){_dbInstanceIdentifier = dbInstanceIdentifier;}
train
false
1,839
public void reset() {previousValue = value = minValue;}
[ "public", "void", "reset", "(", ")", "{", "previousValue", "=", "value", "=", "minValue", ";", "}" ]
public virtual void Reset(){previousValue = value = minValue;}
train
false
1,840
public void setLength(long sz) {setLength((int) sz);}
[ "public", "void", "setLength", "(", "long", "sz", ")", "{", "setLength", "(", "(", "int", ")", "sz", ")", ";", "}" ]
public virtual void SetLength(long sz){SetLength((int)sz);}
train
false
1,841
public static String revisionVersion(IndexCommit indexCommit, IndexCommit taxoCommit) {return Long.toString(indexCommit.getGeneration(), RADIX) + ":" + Long.toString(taxoCommit.getGeneration(), RADIX);}
[ "public", "static", "String", "revisionVersion", "(", "IndexCommit", "indexCommit", ",", "IndexCommit", "taxoCommit", ")", "{", "return", "Long", ".", "toString", "(", "indexCommit", ".", "getGeneration", "(", ")", ",", "RADIX", ")", "+", "\":\"", "+", "Long", ".", "toString", "(", "taxoCommit", ".", "getGeneration", "(", ")", ",", "RADIX", ")", ";", "}" ]
public static string RevisionVersion(IndexCommit indexCommit, IndexCommit taxonomyCommit){return string.Format("{0:X}:{1:X}", indexCommit.Generation, taxonomyCommit.Generation);}
train
false
1,842
public String pattern() {return needleString;}
[ "public", "String", "pattern", "(", ")", "{", "return", "needleString", ";", "}" ]
public virtual string Pattern(){return needleString;}
train
false
1,843
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append( "[SST]\n" );buffer.append( " .numstrings = " ).append( Integer.toHexString( getNumStrings() ) ).append( "\n" );buffer.append( " .uniquestrings = " ).append( Integer.toHexString( getNumUniqueStrings() ) ).append( "\n" );for ( int k = 0; k < field_3_strings.size(); k++ ){UnicodeString s = field_3_strings.get( k );buffer.append(" .string_").append(k).append(" = ").append( s.getDebugInfo() ).append( "\n" );}buffer.append( "[/SST]\n" );return buffer.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "buffer", ".", "append", "(", "\"[SST]\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .numstrings = \"", ")", ".", "append", "(", "Integer", ".", "toHexString", "(", "getNumStrings", "(", ")", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .uniquestrings = \"", ")", ".", "append", "(", "Integer", ".", "toHexString", "(", "getNumUniqueStrings", "(", ")", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "for", "(", "int", "k", "=", "0", ";", "k", "<", "field_3_strings", ".", "size", "(", ")", ";", "k", "++", ")", "{", "UnicodeString", "s", "=", "field_3_strings", ".", "get", "(", "k", ")", ";", "buffer", ".", "append", "(", "\" .string_\"", ")", ".", "append", "(", "k", ")", ".", "append", "(", "\" = \"", ")", ".", "append", "(", "s", ".", "getDebugInfo", "(", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "}", "buffer", ".", "append", "(", "\"[/SST]\\n\"", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}" ]
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[SST]\n");buffer.Append(" .numstrings = ").Append(StringUtil.ToHexString(NumStrings)).Append("\n");buffer.Append(" .uniquestrings = ").Append(StringUtil.ToHexString(NumUniqueStrings)).Append("\n");for (int k = 0; k < field_3_strings.Size; k++){UnicodeString s = (UnicodeString)field_3_strings[k];buffer.Append(" .string_" + k + " = ").Append(s.GetDebugInfo()).Append("\n");}buffer.Append("[/SST]\n");return buffer.ToString();}
train
false
1,844
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChildren() == null || getChildren().size() == 0)return "";StringBuilder sb = new StringBuilder();String filler = "";for (Iterator<QueryNode> it = getChildren().iterator(); it.hasNext();) {sb.append(filler).append(it.next().toQueryString(escapeSyntaxParser));filler = " OR ";}if ((getParent() != null && getParent() instanceof GroupQueryNode)|| isRoot())return sb.toString();else return "( " + sb.toString() + " )";}
[ "public", "CharSequence", "toQueryString", "(", "EscapeQuerySyntax", "escapeSyntaxParser", ")", "{", "if", "(", "getChildren", "(", ")", "==", "null", "||", "getChildren", "(", ")", ".", "size", "(", ")", "==", "0", ")", "return", "\"\"", ";", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "String", "filler", "=", "\"\"", ";", "for", "(", "Iterator", "<", "QueryNode", ">", "it", "=", "getChildren", "(", ")", ".", "iterator", "(", ")", ";", "it", ".", "hasNext", "(", ")", ";", ")", "{", "sb", ".", "append", "(", "filler", ")", ".", "append", "(", "it", ".", "next", "(", ")", ".", "toQueryString", "(", "escapeSyntaxParser", ")", ")", ";", "filler", "=", "\" OR \"", ";", "}", "if", "(", "(", "getParent", "(", ")", "!=", "null", "&&", "getParent", "(", ")", "instanceof", "GroupQueryNode", ")", "||", "isRoot", "(", ")", ")", "return", "sb", ".", "toString", "(", ")", ";", "else", "return", "\"( \"", "+", "sb", ".", "toString", "(", ")", "+", "\" )\"", ";", "}" ]
public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){var children = GetChildren();if (children == null || children.Count == 0)return "";StringBuilder sb = new StringBuilder();string filler = "";foreach (var child in children){sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));filler = " OR ";}if ((Parent != null && Parent is GroupQueryNode)|| IsRoot)return sb.ToString();else return "( " + sb.ToString() + " )";}
train
false
1,845
public PushCommand setReceivePack(String receivePack) {checkCallable();this.receivePack = receivePack;return this;}
[ "public", "PushCommand", "setReceivePack", "(", "String", "receivePack", ")", "{", "checkCallable", "(", ")", ";", "this", ".", "receivePack", "=", "receivePack", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.PushCommand SetReceivePack(string receivePack){CheckCallable();this.receivePack = receivePack;return this;}
train
false
1,846
public DeleteImagePermissionsResult deleteImagePermissions(DeleteImagePermissionsRequest request) {request = beforeClientExecution(request);return executeDeleteImagePermissions(request);}
[ "public", "DeleteImagePermissionsResult", "deleteImagePermissions", "(", "DeleteImagePermissionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteImagePermissions", "(", "request", ")", ";", "}" ]
public virtual DeleteImagePermissionsResponse DeleteImagePermissions(DeleteImagePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteImagePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteImagePermissionsResponseUnmarshaller.Instance;return Invoke<DeleteImagePermissionsResponse>(request, options);}
train
true
1,847
public static Ptg[] getTokens(Formula formula) {if (formula == null) {return null;}return formula.getTokens();}
[ "public", "static", "Ptg", "[", "]", "getTokens", "(", "Formula", "formula", ")", "{", "if", "(", "formula", "==", "null", ")", "{", "return", "null", ";", "}", "return", "formula", ".", "getTokens", "(", ")", ";", "}" ]
public static Ptg[] GetTokens(Formula formula){if (formula == null){return null;}return formula.Tokens;}
train
false
1,848
public void skipToNextByte() {remainingBits = 0;}
[ "public", "void", "skipToNextByte", "(", ")", "{", "remainingBits", "=", "0", ";", "}" ]
public void SkipToNextByte(){remainingBits = 0;}
train
false
1,849
public GetJourneyExecutionActivityMetricsResult getJourneyExecutionActivityMetrics(GetJourneyExecutionActivityMetricsRequest request) {request = beforeClientExecution(request);return executeGetJourneyExecutionActivityMetrics(request);}
[ "public", "GetJourneyExecutionActivityMetricsResult", "getJourneyExecutionActivityMetrics", "(", "GetJourneyExecutionActivityMetricsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetJourneyExecutionActivityMetrics", "(", "request", ")", ";", "}" ]
public virtual GetJourneyExecutionActivityMetricsResponse GetJourneyExecutionActivityMetrics(GetJourneyExecutionActivityMetricsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetJourneyExecutionActivityMetricsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetJourneyExecutionActivityMetricsResponseUnmarshaller.Instance;return Invoke<GetJourneyExecutionActivityMetricsResponse>(request, options);}
train
false
1,850
public DeregisterContainerInstanceResult deregisterContainerInstance(DeregisterContainerInstanceRequest request) {request = beforeClientExecution(request);return executeDeregisterContainerInstance(request);}
[ "public", "DeregisterContainerInstanceResult", "deregisterContainerInstance", "(", "DeregisterContainerInstanceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeregisterContainerInstance", "(", "request", ")", ";", "}" ]
public virtual DeregisterContainerInstanceResponse DeregisterContainerInstance(DeregisterContainerInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterContainerInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterContainerInstanceResponseUnmarshaller.Instance;return Invoke<DeregisterContainerInstanceResponse>(request, options);}
train
true
1,851
public DeleteEntityRecognizerResult deleteEntityRecognizer(DeleteEntityRecognizerRequest request) {request = beforeClientExecution(request);return executeDeleteEntityRecognizer(request);}
[ "public", "DeleteEntityRecognizerResult", "deleteEntityRecognizer", "(", "DeleteEntityRecognizerRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteEntityRecognizer", "(", "request", ")", ";", "}" ]
public virtual DeleteEntityRecognizerResponse DeleteEntityRecognizer(DeleteEntityRecognizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEntityRecognizerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEntityRecognizerResponseUnmarshaller.Instance;return Invoke<DeleteEntityRecognizerResponse>(request, options);}
train
true
1,852
public DescribeGameSessionsResult describeGameSessions(DescribeGameSessionsRequest request) {request = beforeClientExecution(request);return executeDescribeGameSessions(request);}
[ "public", "DescribeGameSessionsResult", "describeGameSessions", "(", "DescribeGameSessionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeGameSessions", "(", "request", ")", ";", "}" ]
public virtual DescribeGameSessionsResponse DescribeGameSessions(DescribeGameSessionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGameSessionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGameSessionsResponseUnmarshaller.Instance;return Invoke<DescribeGameSessionsResponse>(request, options);}
train
true
1,853
public SegToken(char[] idArray, int start, int end, int wordType, int weight) {this.charArray = idArray;this.startOffset = start;this.endOffset = end;this.wordType = wordType;this.weight = weight;}
[ "public", "SegToken", "(", "char", "[", "]", "idArray", ",", "int", "start", ",", "int", "end", ",", "int", "wordType", ",", "int", "weight", ")", "{", "this", ".", "charArray", "=", "idArray", ";", "this", ".", "startOffset", "=", "start", ";", "this", ".", "endOffset", "=", "end", ";", "this", ".", "wordType", "=", "wordType", ";", "this", ".", "weight", "=", "weight", ";", "}" ]
public SegToken(char[] idArray, int start, int end, WordType wordType, int weight){this.CharArray = idArray;this.StartOffset = start;this.EndOffset = end;this.WordType = wordType;this.Weight = weight;}
train
false
1,854
public int compareTo( TermInfo o ){return ( this.position - o.position );}
[ "public", "int", "compareTo", "(", "TermInfo", "o", ")", "{", "return", "(", "this", ".", "position", "-", "o", ".", "position", ")", ";", "}" ]
public virtual int CompareTo(TermInfo o){return (this.position - o.position);}
train
false
1,855
public TagMeetingResult tagMeeting(TagMeetingRequest request) {request = beforeClientExecution(request);return executeTagMeeting(request);}
[ "public", "TagMeetingResult", "tagMeeting", "(", "TagMeetingRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeTagMeeting", "(", "request", ")", ";", "}" ]
public virtual TagMeetingResponse TagMeeting(TagMeetingRequest request){var options = new InvokeOptions();options.RequestMarshaller = TagMeetingRequestMarshaller.Instance;options.ResponseUnmarshaller = TagMeetingResponseUnmarshaller.Instance;return Invoke<TagMeetingResponse>(request, options);}
train
false
1,856
public final Buffer limit(int newLimit) {limitImpl(newLimit);return this;}
[ "public", "final", "Buffer", "limit", "(", "int", "newLimit", ")", "{", "limitImpl", "(", "newLimit", ")", ";", "return", "this", ";", "}" ]
public java.nio.Buffer limit(int newLimit){limitImpl(newLimit);return this;}
train
false
1,857
public final DoubleValuesSource makeRecipDistanceValueSource(Shape queryShape) {Rectangle bbox = queryShape.getBoundingBox();double diagonalDist = ctx.getDistCalc().distance(ctx.makePoint(bbox.getMinX(), bbox.getMinY()), bbox.getMaxX(), bbox.getMaxY());double distToEdge = diagonalDist * 0.5;float c = (float)distToEdge * 0.1f;DoubleValuesSource distance = makeDistanceValueSource(queryShape.getCenter(), 1.0);return new ReciprocalDoubleValuesSource(c, distance);}
[ "public", "final", "DoubleValuesSource", "makeRecipDistanceValueSource", "(", "Shape", "queryShape", ")", "{", "Rectangle", "bbox", "=", "queryShape", ".", "getBoundingBox", "(", ")", ";", "double", "diagonalDist", "=", "ctx", ".", "getDistCalc", "(", ")", ".", "distance", "(", "ctx", ".", "makePoint", "(", "bbox", ".", "getMinX", "(", ")", ",", "bbox", ".", "getMinY", "(", ")", ")", ",", "bbox", ".", "getMaxX", "(", ")", ",", "bbox", ".", "getMaxY", "(", ")", ")", ";", "double", "distToEdge", "=", "diagonalDist", "*", "0.5", ";", "float", "c", "=", "(", "float", ")", "distToEdge", "*", "0.1f", ";", "DoubleValuesSource", "distance", "=", "makeDistanceValueSource", "(", "queryShape", ".", "getCenter", "(", ")", ",", "1.0", ")", ";", "return", "new", "ReciprocalDoubleValuesSource", "(", "c", ",", "distance", ")", ";", "}" ]
public ValueSource MakeRecipDistanceValueSource(IShape queryShape){IRectangle bbox = queryShape.BoundingBox;double diagonalDist = m_ctx.DistCalc.Distance(m_ctx.MakePoint(bbox.MinX, bbox.MinY), bbox.MaxX, bbox.MaxY);double distToEdge = diagonalDist * 0.5;float c = (float)distToEdge * 0.1f; return new ReciprocalSingleFunction(MakeDistanceValueSource(queryShape.Center, 1.0), 1f, c, c);}
train
false
1,858
public GetLoginProfileRequest(String userName) {setUserName(userName);}
[ "public", "GetLoginProfileRequest", "(", "String", "userName", ")", "{", "setUserName", "(", "userName", ")", ";", "}" ]
public GetLoginProfileRequest(string userName){_userName = userName;}
train
false
1,859
public int serializeComplexPart( byte[] data, int pos ){return 0;}
[ "public", "int", "serializeComplexPart", "(", "byte", "[", "]", "data", ",", "int", "pos", ")", "{", "return", "0", ";", "}" ]
public override int SerializeComplexPart(byte[] data, int pos){return 0;}
train
false
1,860
public DBCellRecord(int rowOffset, short[] cellOffsets) {field_1_row_offset = rowOffset;field_2_cell_offsets = cellOffsets;}
[ "public", "DBCellRecord", "(", "int", "rowOffset", ",", "short", "[", "]", "cellOffsets", ")", "{", "field_1_row_offset", "=", "rowOffset", ";", "field_2_cell_offsets", "=", "cellOffsets", ";", "}" ]
public DBCellRecord(int rowOffset, short[]cellOffsets) {field_1_row_offset = rowOffset;field_2_cell_offsets = cellOffsets;}
train
false
1,862
public final Locale getLocale() {return locale;}
[ "public", "final", "Locale", "getLocale", "(", ")", "{", "return", "locale", ";", "}" ]
public CultureInfo GetLocale(){return locale;}
train
false
1,863
public SpanNotBuilder(SpanQueryBuilder factory) {this.factory = factory;}
[ "public", "SpanNotBuilder", "(", "SpanQueryBuilder", "factory", ")", "{", "this", ".", "factory", "=", "factory", ";", "}" ]
public SpanNotBuilder(ISpanQueryBuilder factory){this.factory = factory;}
train
false
1,864
public String toString() {return toString(0);}
[ "public", "String", "toString", "(", ")", "{", "return", "toString", "(", "0", ")", ";", "}" ]
public override string ToString(){return ToString(Info.Dir, 0);}
train
false
1,865
public int compareTo(ExtRst o) {int result;result = reserved - o.reserved;if (result != 0) {return result;}result = formattingFontIndex - o.formattingFontIndex;if (result != 0) {return result;}result = formattingOptions - o.formattingOptions;if (result != 0) {return result;}result = numberOfRuns - o.numberOfRuns;if (result != 0) {return result;}result = phoneticText.compareTo(o.phoneticText);if (result != 0) {return result;}result = phRuns.length - o.phRuns.length;if (result != 0) {return result;}for(int i=0; i<phRuns.length; i++) {result = phRuns[i].phoneticTextFirstCharacterOffset - o.phRuns[i].phoneticTextFirstCharacterOffset;if (result != 0) {return result;}result = phRuns[i].realTextFirstCharacterOffset - o.phRuns[i].realTextFirstCharacterOffset;if (result != 0) {return result;}result = phRuns[i].realTextLength - o.phRuns[i].realTextLength;if (result != 0) {return result;}}result = Arrays.hashCode(extraData)-Arrays.hashCode(o.extraData);return result;}
[ "public", "int", "compareTo", "(", "ExtRst", "o", ")", "{", "int", "result", ";", "result", "=", "reserved", "-", "o", ".", "reserved", ";", "if", "(", "result", "!=", "0", ")", "{", "return", "result", ";", "}", "result", "=", "formattingFontIndex", "-", "o", ".", "formattingFontIndex", ";", "if", "(", "result", "!=", "0", ")", "{", "return", "result", ";", "}", "result", "=", "formattingOptions", "-", "o", ".", "formattingOptions", ";", "if", "(", "result", "!=", "0", ")", "{", "return", "result", ";", "}", "result", "=", "numberOfRuns", "-", "o", ".", "numberOfRuns", ";", "if", "(", "result", "!=", "0", ")", "{", "return", "result", ";", "}", "result", "=", "phoneticText", ".", "compareTo", "(", "o", ".", "phoneticText", ")", ";", "if", "(", "result", "!=", "0", ")", "{", "return", "result", ";", "}", "result", "=", "phRuns", ".", "length", "-", "o", ".", "phRuns", ".", "length", ";", "if", "(", "result", "!=", "0", ")", "{", "return", "result", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "phRuns", ".", "length", ";", "i", "++", ")", "{", "result", "=", "phRuns", "[", "i", "]", ".", "phoneticTextFirstCharacterOffset", "-", "o", ".", "phRuns", "[", "i", "]", ".", "phoneticTextFirstCharacterOffset", ";", "if", "(", "result", "!=", "0", ")", "{", "return", "result", ";", "}", "result", "=", "phRuns", "[", "i", "]", ".", "realTextFirstCharacterOffset", "-", "o", ".", "phRuns", "[", "i", "]", ".", "realTextFirstCharacterOffset", ";", "if", "(", "result", "!=", "0", ")", "{", "return", "result", ";", "}", "result", "=", "phRuns", "[", "i", "]", ".", "realTextLength", "-", "o", ".", "phRuns", "[", "i", "]", ".", "realTextLength", ";", "if", "(", "result", "!=", "0", ")", "{", "return", "result", ";", "}", "}", "result", "=", "Arrays", ".", "hashCode", "(", "extraData", ")", "-", "Arrays", ".", "hashCode", "(", "o", ".", "extraData", ")", ";", "return", "result", ";", "}" ]
public int CompareTo(ExtRst o){int result;result = reserved - o.reserved;if (result != 0) return result;result = formattingFontIndex - o.formattingFontIndex;if (result != 0) return result;result = formattingOptions - o.formattingOptions;if (result != 0) return result;result = numberOfRuns - o.numberOfRuns;if (result != 0) return result;result = string.Compare(phoneticText, o.phoneticText, StringComparison.CurrentCulture);if (result != 0) return result;result = phRuns.Length - o.phRuns.Length;if (result != 0) return result;for (int i = 0; i < phRuns.Length; i++){result = phRuns[i].phoneticTextFirstCharacterOffset - o.phRuns[i].phoneticTextFirstCharacterOffset;if (result != 0) return result;result = phRuns[i].realTextFirstCharacterOffset - o.phRuns[i].realTextFirstCharacterOffset;if (result != 0) return result;result = phRuns[i].realTextLength - o.phRuns[i].realTextLength;if (result != 0) return result;}result = Arrays.HashCode(extraData) - Arrays.HashCode(o.extraData);return result;}
train
false
1,866
public GetInstanceSnapshotsResult getInstanceSnapshots(GetInstanceSnapshotsRequest request) {request = beforeClientExecution(request);return executeGetInstanceSnapshots(request);}
[ "public", "GetInstanceSnapshotsResult", "getInstanceSnapshots", "(", "GetInstanceSnapshotsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetInstanceSnapshots", "(", "request", ")", ";", "}" ]
public virtual GetInstanceSnapshotsResponse GetInstanceSnapshots(GetInstanceSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInstanceSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInstanceSnapshotsResponseUnmarshaller.Instance;return Invoke<GetInstanceSnapshotsResponse>(request, options);}
train
true
1,868
public TranslateTextResult translateText(TranslateTextRequest request) {request = beforeClientExecution(request);return executeTranslateText(request);}
[ "public", "TranslateTextResult", "translateText", "(", "TranslateTextRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeTranslateText", "(", "request", ")", ";", "}" ]
public virtual TranslateTextResponse TranslateText(TranslateTextRequest request){var options = new InvokeOptions();options.RequestMarshaller = TranslateTextRequestMarshaller.Instance;options.ResponseUnmarshaller = TranslateTextResponseUnmarshaller.Instance;return Invoke<TranslateTextResponse>(request, options);}
train
true
1,869
public DimensionsRecord(RecordInputStream in) {field_1_first_row = in.readInt();field_2_last_row = in.readInt();field_3_first_col = in.readShort();field_4_last_col = in.readShort();field_5_zero = in.readShort();if (in.available() == 2) {logger.log(POILogger.INFO, "DimensionsRecord has extra 2 bytes.");in.readShort();}}
[ "public", "DimensionsRecord", "(", "RecordInputStream", "in", ")", "{", "field_1_first_row", "=", "in", ".", "readInt", "(", ")", ";", "field_2_last_row", "=", "in", ".", "readInt", "(", ")", ";", "field_3_first_col", "=", "in", ".", "readShort", "(", ")", ";", "field_4_last_col", "=", "in", ".", "readShort", "(", ")", ";", "field_5_zero", "=", "in", ".", "readShort", "(", ")", ";", "if", "(", "in", ".", "available", "(", ")", "==", "2", ")", "{", "logger", ".", "log", "(", "POILogger", ".", "INFO", ",", "\"DimensionsRecord has extra 2 bytes.\"", ")", ";", "in", ".", "readShort", "(", ")", ";", "}", "}" ]
public DimensionsRecord(RecordInputStream in1){field_1_first_row = in1.ReadInt();field_2_last_row = in1.ReadInt();field_3_first_col = in1.ReadShort();field_4_last_col = in1.ReadShort();field_5_zero = in1.ReadShort();}
train
false
1,870
public int flags() {return flags;}
[ "public", "int", "flags", "(", ")", "{", "return", "flags", ";", "}" ]
public int flags(){return _flags;}
train
false
1,871
public Vector(int capacity, int capacityIncrement) {if (capacity < 0) {throw new IllegalArgumentException();}elementData = newElementArray(capacity);elementCount = 0;this.capacityIncrement = capacityIncrement;}
[ "public", "Vector", "(", "int", "capacity", ",", "int", "capacityIncrement", ")", "{", "if", "(", "capacity", "<", "0", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "elementData", "=", "newElementArray", "(", "capacity", ")", ";", "elementCount", "=", "0", ";", "this", ".", "capacityIncrement", "=", "capacityIncrement", ";", "}" ]
public Vector(int capacity_1, int capacityIncrement){if (capacity_1 < 0){throw new System.ArgumentException();}elementData = new object[capacity_1];elementCount = 0;this.capacityIncrement = capacityIncrement;}
train
false
1,872
public DeleteLogGroupRequest(String logGroupName) {setLogGroupName(logGroupName);}
[ "public", "DeleteLogGroupRequest", "(", "String", "logGroupName", ")", "{", "setLogGroupName", "(", "logGroupName", ")", ";", "}" ]
public DeleteLogGroupRequest(string logGroupName){_logGroupName = logGroupName;}
train
false
1,873
public RemoveManagedScalingPolicyResult removeManagedScalingPolicy(RemoveManagedScalingPolicyRequest request) {request = beforeClientExecution(request);return executeRemoveManagedScalingPolicy(request);}
[ "public", "RemoveManagedScalingPolicyResult", "removeManagedScalingPolicy", "(", "RemoveManagedScalingPolicyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRemoveManagedScalingPolicy", "(", "request", ")", ";", "}" ]
public virtual RemoveManagedScalingPolicyResponse RemoveManagedScalingPolicy(RemoveManagedScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveManagedScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveManagedScalingPolicyResponseUnmarshaller.Instance;return Invoke<RemoveManagedScalingPolicyResponse>(request, options);}
train
false
1,874
public GetDataRetrievalPolicyResult getDataRetrievalPolicy(GetDataRetrievalPolicyRequest request) {request = beforeClientExecution(request);return executeGetDataRetrievalPolicy(request);}
[ "public", "GetDataRetrievalPolicyResult", "getDataRetrievalPolicy", "(", "GetDataRetrievalPolicyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetDataRetrievalPolicy", "(", "request", ")", ";", "}" ]
public virtual GetDataRetrievalPolicyResponse GetDataRetrievalPolicy(GetDataRetrievalPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDataRetrievalPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDataRetrievalPolicyResponseUnmarshaller.Instance;return Invoke<GetDataRetrievalPolicyResponse>(request, options);}
train
true
1,875
public DescribeExportImageTasksResult describeExportImageTasks(DescribeExportImageTasksRequest request) {request = beforeClientExecution(request);return executeDescribeExportImageTasks(request);}
[ "public", "DescribeExportImageTasksResult", "describeExportImageTasks", "(", "DescribeExportImageTasksRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeExportImageTasks", "(", "request", ")", ";", "}" ]
public virtual DescribeExportImageTasksResponse DescribeExportImageTasks(DescribeExportImageTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeExportImageTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeExportImageTasksResponseUnmarshaller.Instance;return Invoke<DescribeExportImageTasksResponse>(request, options);}
train
false
1,876
public DefaultICUTokenizerConfig(boolean cjkAsWords, boolean myanmarAsWords) {this.cjkAsWords = cjkAsWords;this.myanmarAsWords = myanmarAsWords;}
[ "public", "DefaultICUTokenizerConfig", "(", "boolean", "cjkAsWords", ",", "boolean", "myanmarAsWords", ")", "{", "this", ".", "cjkAsWords", "=", "cjkAsWords", ";", "this", ".", "myanmarAsWords", "=", "myanmarAsWords", ";", "}" ]
public DefaultICUTokenizerConfig(bool cjkAsWords, bool myanmarAsWords){this.cjkAsWords = cjkAsWords;this.myanmarAsWords = myanmarAsWords;}
train
false
1,877
public DisableAvailabilityZonesForLoadBalancerResult disableAvailabilityZonesForLoadBalancer(DisableAvailabilityZonesForLoadBalancerRequest request) {request = beforeClientExecution(request);return executeDisableAvailabilityZonesForLoadBalancer(request);}
[ "public", "DisableAvailabilityZonesForLoadBalancerResult", "disableAvailabilityZonesForLoadBalancer", "(", "DisableAvailabilityZonesForLoadBalancerRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDisableAvailabilityZonesForLoadBalancer", "(", "request", ")", ";", "}" ]
public virtual DisableAvailabilityZonesForLoadBalancerResponse DisableAvailabilityZonesForLoadBalancer(DisableAvailabilityZonesForLoadBalancerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableAvailabilityZonesForLoadBalancerRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableAvailabilityZonesForLoadBalancerResponseUnmarshaller.Instance;return Invoke<DisableAvailabilityZonesForLoadBalancerResponse>(request, options);}
train
true
1,878
public synchronized void setIndexFieldName(String dimName, String indexFieldName) {DimConfig ft = fieldTypes.get(dimName);if (ft == null) {ft = new DimConfig();fieldTypes.put(dimName, ft);}ft.indexFieldName = indexFieldName;}
[ "public", "synchronized", "void", "setIndexFieldName", "(", "String", "dimName", ",", "String", "indexFieldName", ")", "{", "DimConfig", "ft", "=", "fieldTypes", ".", "get", "(", "dimName", ")", ";", "if", "(", "ft", "==", "null", ")", "{", "ft", "=", "new", "DimConfig", "(", ")", ";", "fieldTypes", ".", "put", "(", "dimName", ",", "ft", ")", ";", "}", "ft", ".", "indexFieldName", "=", "indexFieldName", ";", "}" ]
public virtual void SetIndexFieldName(string dimName, string indexFieldName){lock (this){if (!fieldTypes.TryGetValue(dimName, out DimConfig fieldType)){fieldTypes[dimName] = new DimConfig { IndexFieldName = indexFieldName };}else{fieldType.IndexFieldName = indexFieldName;}}}
train
false
1,879
public BytesRef encode(char[] buffer, int offset, int length) {int payload = ArrayUtil.parseInt(buffer, offset, length);byte[] bytes = PayloadHelper.encodeInt(payload);BytesRef result = new BytesRef(bytes);return result;}
[ "public", "BytesRef", "encode", "(", "char", "[", "]", "buffer", ",", "int", "offset", ",", "int", "length", ")", "{", "int", "payload", "=", "ArrayUtil", ".", "parseInt", "(", "buffer", ",", "offset", ",", "length", ")", ";", "byte", "[", "]", "bytes", "=", "PayloadHelper", ".", "encodeInt", "(", "payload", ")", ";", "BytesRef", "result", "=", "new", "BytesRef", "(", "bytes", ")", ";", "return", "result", ";", "}" ]
public override BytesRef Encode(char[] buffer, int offset, int length){int payload = ArrayUtil.ParseInt32(buffer, offset, length); byte[] bytes = PayloadHelper.EncodeInt32(payload);BytesRef result = new BytesRef(bytes);return result;}
train
false
1,880
public HideObjRecord(RecordInputStream in) {field_1_hide_obj = in.readShort();}
[ "public", "HideObjRecord", "(", "RecordInputStream", "in", ")", "{", "field_1_hide_obj", "=", "in", ".", "readShort", "(", ")", ";", "}" ]
public HideObjRecord(RecordInputStream in1){field_1_hide_obj = in1.ReadShort();}
train
false
1,881
public String toString() {if ( isEmpty() ) return "[]";StringBuilder buf = new StringBuilder();buf.append("[");for (int i=0; i<returnStates.length; i++) {if ( i>0 ) buf.append(", ");if ( returnStates[i]==EMPTY_RETURN_STATE ) {buf.append("$");continue;}buf.append(returnStates[i]);if ( parents[i]!=null ) {buf.append(' ');buf.append(parents[i].toString());}else {buf.append("null");}}buf.append("]");return buf.toString();}
[ "public", "String", "toString", "(", ")", "{", "if", "(", "isEmpty", "(", ")", ")", "return", "\"[]\"", ";", "StringBuilder", "buf", "=", "new", "StringBuilder", "(", ")", ";", "buf", ".", "append", "(", "\"[\"", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "returnStates", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "buf", ".", "append", "(", "\", \"", ")", ";", "if", "(", "returnStates", "[", "i", "]", "==", "EMPTY_RETURN_STATE", ")", "{", "buf", ".", "append", "(", "\"$\"", ")", ";", "continue", ";", "}", "buf", ".", "append", "(", "returnStates", "[", "i", "]", ")", ";", "if", "(", "parents", "[", "i", "]", "!=", "null", ")", "{", "buf", ".", "append", "(", "' '", ")", ";", "buf", ".", "append", "(", "parents", "[", "i", "]", ".", "toString", "(", ")", ")", ";", "}", "else", "{", "buf", ".", "append", "(", "\"null\"", ")", ";", "}", "}", "buf", ".", "append", "(", "\"]\"", ")", ";", "return", "buf", ".", "toString", "(", ")", ";", "}" ]
public override String ToString(){if (IsEmpty)return "[]";StringBuilder buf = new StringBuilder();buf.Append("[");for (int i = 0; i < returnStates.Length; i++){if (i > 0) buf.Append(", ");if (returnStates[i] == EMPTY_RETURN_STATE){buf.Append("$");continue;}buf.Append(returnStates[i]);if (parents[i] != null){buf.Append(' ');buf.Append(parents[i].ToString());}else {buf.Append("null");}}buf.Append("]");return buf.ToString();}
train
false
1,882
public synchronized int getSecondaryProgress() {return mIndeterminate ? 0 : mSecondaryProgress;}
[ "public", "synchronized", "int", "getSecondaryProgress", "(", ")", "{", "return", "mIndeterminate", "?", "0", ":", "mSecondaryProgress", ";", "}" ]
public virtual int getSecondaryProgress(){lock (this){return mIndeterminate ? 0 : mSecondaryProgress;}}
train
false
1,883
public DeleteContactMethodResult deleteContactMethod(DeleteContactMethodRequest request) {request = beforeClientExecution(request);return executeDeleteContactMethod(request);}
[ "public", "DeleteContactMethodResult", "deleteContactMethod", "(", "DeleteContactMethodRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteContactMethod", "(", "request", ")", ";", "}" ]
public virtual DeleteContactMethodResponse DeleteContactMethod(DeleteContactMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteContactMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteContactMethodResponseUnmarshaller.Instance;return Invoke<DeleteContactMethodResponse>(request, options);}
train
false
1,884
@Override public List<E> subList(int start, int end) {synchronized (mutex) {return new SynchronizedList<E>(list.subList(start, end), mutex);}}
[ "@", "Override", "public", "List", "<", "E", ">", "subList", "(", "int", "start", ",", "int", "end", ")", "{", "synchronized", "(", "mutex", ")", "{", "return", "new", "SynchronizedList", "<", "E", ">", "(", "list", ".", "subList", "(", "start", ",", "end", ")", ",", "mutex", ")", ";", "}", "}" ]
public virtual java.util.List<E> subList(int start, int end){lock (mutex){return new java.util.Collections.SynchronizedList<E>(list.subList(start, end), mutex);}}
train
false
1,885
@Override public boolean equals(Object object) {return m.equals(object);}
[ "@", "Override", "public", "boolean", "equals", "(", "Object", "object", ")", "{", "return", "m", ".", "equals", "(", "object", ")", ";", "}" ]
public override bool Equals(object @object){return mapEntry.Equals(@object);}
train
false
1,886
public static String getSchemePrefix(String spec) {int colon = spec.indexOf(':');if (colon < 1) {return null;}for (int i = 0; i < colon; i++) {char c = spec.charAt(i);if (!isValidSchemeChar(i, c)) {return null;}}return spec.substring(0, colon).toLowerCase(Locale.US);}
[ "public", "static", "String", "getSchemePrefix", "(", "String", "spec", ")", "{", "int", "colon", "=", "spec", ".", "indexOf", "(", "':'", ")", ";", "if", "(", "colon", "<", "1", ")", "{", "return", "null", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "colon", ";", "i", "++", ")", "{", "char", "c", "=", "spec", ".", "charAt", "(", "i", ")", ";", "if", "(", "!", "isValidSchemeChar", "(", "i", ",", "c", ")", ")", "{", "return", "null", ";", "}", "}", "return", "spec", ".", "substring", "(", "0", ",", "colon", ")", ".", "toLowerCase", "(", "Locale", ".", "US", ")", ";", "}" ]
public static string getSchemePrefix(string spec){int colon = spec.IndexOf(':');if (colon < 1){return null;}{for (int i = 0; i < colon; i++){char c = spec[i];if (!isValidSchemeChar(i, c)){return null;}}}return Sharpen.StringHelper.Substring(spec, 0, colon).ToLower(System.Globalization.CultureInfo.InvariantCulture);}
train
true
1,888
public CreateServiceResult createService(CreateServiceRequest request) {request = beforeClientExecution(request);return executeCreateService(request);}
[ "public", "CreateServiceResult", "createService", "(", "CreateServiceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateService", "(", "request", ")", ";", "}" ]
public virtual CreateServiceResponse CreateService(CreateServiceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateServiceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateServiceResponseUnmarshaller.Instance;return Invoke<CreateServiceResponse>(request, options);}
train
true
1,889
public void serialize(LittleEndianOutput out) {out.writeShort(_numberOfRegions);for (int i = 0; i < _numberOfRegions; i++) {_regions[_startIndex + i].serialize(out);}}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeShort", "(", "_numberOfRegions", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "_numberOfRegions", ";", "i", "++", ")", "{", "_regions", "[", "_startIndex", "+", "i", "]", ".", "serialize", "(", "out", ")", ";", "}", "}" ]
public override void Serialize(ILittleEndianOutput out1){int nItems = _numberOfRegions;out1.WriteShort(nItems);for (int i = 0; i < _numberOfRegions; i++){_regions[_startIndex + i].Serialize(out1);}}
train
false
1,890
public StringBuilder insert(int offset, char c) {insert0(offset, c);return this;}
[ "public", "StringBuilder", "insert", "(", "int", "offset", ",", "char", "c", ")", "{", "insert0", "(", "offset", ",", "c", ")", ";", "return", "this", ";", "}" ]
public java.lang.StringBuilder insert(int offset, char c){insert0(offset, c);return this;}
train
false
1,891
public LabelSSTRecord(RecordInputStream in) {super(in);field_4_sst_index = in.readInt();}
[ "public", "LabelSSTRecord", "(", "RecordInputStream", "in", ")", "{", "super", "(", "in", ")", ";", "field_4_sst_index", "=", "in", ".", "readInt", "(", ")", ";", "}" ]
public LabelSSTRecord(RecordInputStream in1): base(in1){field_4_sst_index = in1.ReadInt();}
train
false
1,892
public void setObjectId(AnyObjectId id) {if (objectId == null)objectId = id.copy();}
[ "public", "void", "setObjectId", "(", "AnyObjectId", "id", ")", "{", "if", "(", "objectId", "==", "null", ")", "objectId", "=", "id", ".", "copy", "(", ")", ";", "}" ]
public virtual void SetObjectId(AnyObjectId id){if (objectId == null){objectId = id.Copy();}}
train
false
1,893
public int add(CFRecordsAggregate cfAggregate) {cfAggregate.getHeader().setID(_cfHeaders.size());_cfHeaders.add(cfAggregate);return _cfHeaders.size() - 1;}
[ "public", "int", "add", "(", "CFRecordsAggregate", "cfAggregate", ")", "{", "cfAggregate", ".", "getHeader", "(", ")", ".", "setID", "(", "_cfHeaders", ".", "size", "(", ")", ")", ";", "_cfHeaders", ".", "add", "(", "cfAggregate", ")", ";", "return", "_cfHeaders", ".", "size", "(", ")", "-", "1", ";", "}" ]
public int Add(CFRecordsAggregate cfAggregate){_cfHeaders.Add(cfAggregate);return _cfHeaders.Count - 1;}
train
false
1,894
public TermVectorsPostingsArray(int size) {super(size);freqs = new int[size];lastOffsets = new int[size];lastPositions = new int[size];}
[ "public", "TermVectorsPostingsArray", "(", "int", "size", ")", "{", "super", "(", "size", ")", ";", "freqs", "=", "new", "int", "[", "size", "]", ";", "lastOffsets", "=", "new", "int", "[", "size", "]", ";", "lastPositions", "=", "new", "int", "[", "size", "]", ";", "}" ]
public TermVectorsPostingsArray(int size): base(size){freqs = new int[size];lastOffsets = new int[size];lastPositions = new int[size];}
train
false
1,895
public FieldsQuery(SrndQuery q, List<String> fieldNames, char fieldOp) {this.q = q;this.fieldNames = fieldNames;this.fieldOp = fieldOp;}
[ "public", "FieldsQuery", "(", "SrndQuery", "q", ",", "List", "<", "String", ">", "fieldNames", ",", "char", "fieldOp", ")", "{", "this", ".", "q", "=", "q", ";", "this", ".", "fieldNames", "=", "fieldNames", ";", "this", ".", "fieldOp", "=", "fieldOp", ";", "}" ]
public FieldsQuery(SrndQuery q, IList<string> fieldNames, char fieldOp){this.q = q;this.fieldNames = fieldNames;this.fieldOp = fieldOp;}
train
false
1,896
public TokenStream create(TokenStream in) {return new GreekLowerCaseFilter(in);}
[ "public", "TokenStream", "create", "(", "TokenStream", "in", ")", "{", "return", "new", "GreekLowerCaseFilter", "(", "in", ")", ";", "}" ]
public override TokenStream Create(TokenStream @in){return new GreekLowerCaseFilter(m_luceneMatchVersion, @in);}
train
false
1,897
public ECSMetadataServiceCredentialsFetcher() {this.connectionTimeoutInMilliseconds = DEFAULT_TIMEOUT_IN_MILLISECONDS;}
[ "public", "ECSMetadataServiceCredentialsFetcher", "(", ")", "{", "this", ".", "connectionTimeoutInMilliseconds", "=", "DEFAULT_TIMEOUT_IN_MILLISECONDS", ";", "}" ]
public ECSMetadataServiceCredentialsFetcher(){connectionTimeoutInMilliseconds = DEFAULT_TIMEOUT_IN_MILLISECONDS;}
train
false
1,898
public static Decoder getDecoder(Format format, int version, int bitsPerValue) {checkVersion(version);return BulkOperation.of(format, bitsPerValue);}
[ "public", "static", "Decoder", "getDecoder", "(", "Format", "format", ",", "int", "version", ",", "int", "bitsPerValue", ")", "{", "checkVersion", "(", "version", ")", ";", "return", "BulkOperation", ".", "of", "(", "format", ",", "bitsPerValue", ")", ";", "}" ]
public static IDecoder GetDecoder(Format format, int version, int bitsPerValue){CheckVersion(version);return BulkOperation.Of(format, bitsPerValue);}
train
false
1,899
public synchronized void reset() {nameFinder.clearAdaptiveData();}
[ "public", "synchronized", "void", "reset", "(", ")", "{", "nameFinder", ".", "clearAdaptiveData", "(", ")", ";", "}" ]
public virtual void Reset(){lock (this){nameFinder.clearAdaptiveData();}}
train
false
1,900
public String nextKeyString() {return new String(nextKey());}
[ "public", "String", "nextKeyString", "(", ")", "{", "return", "new", "String", "(", "nextKey", "(", ")", ")", ";", "}" ]
public virtual string NextKeyString(){return new string(NextKey());}
train
false
1,901
public DescribeEventsResult describeEvents() {return describeEvents(new DescribeEventsRequest());}
[ "public", "DescribeEventsResult", "describeEvents", "(", ")", "{", "return", "describeEvents", "(", "new", "DescribeEventsRequest", "(", ")", ")", ";", "}" ]
public virtual DescribeEventsResponse DescribeEvents(){return DescribeEvents(new DescribeEventsRequest());}
train
false
1,902
public UpdateNodeResult updateNode(UpdateNodeRequest request) {request = beforeClientExecution(request);return executeUpdateNode(request);}
[ "public", "UpdateNodeResult", "updateNode", "(", "UpdateNodeRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateNode", "(", "request", ")", ";", "}" ]
public virtual UpdateNodeResponse UpdateNode(UpdateNodeRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateNodeRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateNodeResponseUnmarshaller.Instance;return Invoke<UpdateNodeResponse>(request, options);}
train
false
1,905
public DescribeLaunchTemplatesResult describeLaunchTemplates(DescribeLaunchTemplatesRequest request) {request = beforeClientExecution(request);return executeDescribeLaunchTemplates(request);}
[ "public", "DescribeLaunchTemplatesResult", "describeLaunchTemplates", "(", "DescribeLaunchTemplatesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeLaunchTemplates", "(", "request", ")", ";", "}" ]
public virtual DescribeLaunchTemplatesResponse DescribeLaunchTemplates(DescribeLaunchTemplatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLaunchTemplatesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLaunchTemplatesResponseUnmarshaller.Instance;return Invoke<DescribeLaunchTemplatesResponse>(request, options);}
train
true
1,906
public SynonymFilterFactory(Map<String,String> args) {super(args);ignoreCase = getBoolean(args, "ignoreCase", false);synonyms = require(args, "synonyms");format = get(args, "format");expand = getBoolean(args, "expand", true);analyzerName = get(args, "analyzer");tokenizerFactory = get(args, "tokenizerFactory");if (analyzerName != null && tokenizerFactory != null) {throw new IllegalArgumentException("Analyzer and TokenizerFactory can't be specified both: " +analyzerName + " and " + tokenizerFactory);}if (tokenizerFactory != null) {tokArgs.put("luceneMatchVersion", getLuceneMatchVersion().toString());for (Iterator<String> itr = args.keySet().iterator(); itr.hasNext();) {String key = itr.next();tokArgs.put(key.replaceAll("^tokenizerFactory\\.",""), args.get(key));itr.remove();}}if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "SynonymFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "ignoreCase", "=", "getBoolean", "(", "args", ",", "\"ignoreCase\"", ",", "false", ")", ";", "synonyms", "=", "require", "(", "args", ",", "\"synonyms\"", ")", ";", "format", "=", "get", "(", "args", ",", "\"format\"", ")", ";", "expand", "=", "getBoolean", "(", "args", ",", "\"expand\"", ",", "true", ")", ";", "analyzerName", "=", "get", "(", "args", ",", "\"analyzer\"", ")", ";", "tokenizerFactory", "=", "get", "(", "args", ",", "\"tokenizerFactory\"", ")", ";", "if", "(", "analyzerName", "!=", "null", "&&", "tokenizerFactory", "!=", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Analyzer and TokenizerFactory can't be specified both: \"", "+", "analyzerName", "+", "\" and \"", "+", "tokenizerFactory", ")", ";", "}", "if", "(", "tokenizerFactory", "!=", "null", ")", "{", "tokArgs", ".", "put", "(", "\"luceneMatchVersion\"", ",", "getLuceneMatchVersion", "(", ")", ".", "toString", "(", ")", ")", ";", "for", "(", "Iterator", "<", "String", ">", "itr", "=", "args", ".", "keySet", "(", ")", ".", "iterator", "(", ")", ";", "itr", ".", "hasNext", "(", ")", ";", ")", "{", "String", "key", "=", "itr", ".", "next", "(", ")", ";", "tokArgs", ".", "put", "(", "key", ".", "replaceAll", "(", "\"^tokenizerFactory\\\\.\"", ",", "\"\"", ")", ",", "args", ".", "get", "(", "key", ")", ")", ";", "itr", ".", "remove", "(", ")", ";", "}", "}", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public SynonymFilterFactory(IDictionary<string, string> args): base(args){AssureMatchVersion();if (m_luceneMatchVersion.OnOrAfter(Lucene.Net.Util.LuceneVersion.LUCENE_34)){delegator = new FSTSynonymFilterFactory(new Dictionary<string, string>(OriginalArgs));}else{if (args.TryGetValue("format", out string value) && !value.Equals("solr", StringComparison.Ordinal)){throw new System.ArgumentException("You must specify luceneMatchVersion >= 3.4 to use alternate synonyms formats");} delegator = new SlowSynonymFilterFactory(new Dictionary<string, string>(OriginalArgs));}}
train
false
1,907
public void removePrintArea(int sheetIndex) {getWorkbook().removeBuiltinRecord(NameRecord.BUILTIN_PRINT_AREA, sheetIndex+1);}
[ "public", "void", "removePrintArea", "(", "int", "sheetIndex", ")", "{", "getWorkbook", "(", ")", ".", "removeBuiltinRecord", "(", "NameRecord", ".", "BUILTIN_PRINT_AREA", ",", "sheetIndex", "+", "1", ")", ";", "}" ]
public void RemovePrintArea(int sheetIndex){Workbook.RemoveBuiltinRecord(NameRecord.BUILTIN_PRINT_AREA, sheetIndex + 1);}
train
false
1,908
public ModifyTrafficMirrorFilterNetworkServicesResult modifyTrafficMirrorFilterNetworkServices(ModifyTrafficMirrorFilterNetworkServicesRequest request) {request = beforeClientExecution(request);return executeModifyTrafficMirrorFilterNetworkServices(request);}
[ "public", "ModifyTrafficMirrorFilterNetworkServicesResult", "modifyTrafficMirrorFilterNetworkServices", "(", "ModifyTrafficMirrorFilterNetworkServicesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyTrafficMirrorFilterNetworkServices", "(", "request", ")", ";", "}" ]
public virtual ModifyTrafficMirrorFilterNetworkServicesResponse ModifyTrafficMirrorFilterNetworkServices(ModifyTrafficMirrorFilterNetworkServicesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyTrafficMirrorFilterNetworkServicesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyTrafficMirrorFilterNetworkServicesResponseUnmarshaller.Instance;return Invoke<ModifyTrafficMirrorFilterNetworkServicesResponse>(request, options);}
train
false
1,910
public DeltaRecord(double maxChange) {field_1_max_change = maxChange;}
[ "public", "DeltaRecord", "(", "double", "maxChange", ")", "{", "field_1_max_change", "=", "maxChange", ";", "}" ]
public DeltaRecord(double maxChange){field_1_max_change = maxChange;}
train
false
1,911
public UpdateDomainEntryResult updateDomainEntry(UpdateDomainEntryRequest request) {request = beforeClientExecution(request);return executeUpdateDomainEntry(request);}
[ "public", "UpdateDomainEntryResult", "updateDomainEntry", "(", "UpdateDomainEntryRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateDomainEntry", "(", "request", ")", ";", "}" ]
public virtual UpdateDomainEntryResponse UpdateDomainEntry(UpdateDomainEntryRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDomainEntryRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDomainEntryResponseUnmarshaller.Instance;return Invoke<UpdateDomainEntryResponse>(request, options);}
train
true
1,912
public SegmentCommitInfo clone() {SegmentCommitInfo other = new SegmentCommitInfo(info, delCount, softDelCount, delGen, fieldInfosGen, docValuesGen);other.nextWriteDelGen = nextWriteDelGen;other.nextWriteFieldInfosGen = nextWriteFieldInfosGen;other.nextWriteDocValuesGen = nextWriteDocValuesGen;for (Entry<Integer,Set<String>> e : dvUpdatesFiles.entrySet()) {other.dvUpdatesFiles.put(e.getKey(), new HashSet<>(e.getValue()));}other.fieldInfosFiles.addAll(fieldInfosFiles);return other;}
[ "public", "SegmentCommitInfo", "clone", "(", ")", "{", "SegmentCommitInfo", "other", "=", "new", "SegmentCommitInfo", "(", "info", ",", "delCount", ",", "softDelCount", ",", "delGen", ",", "fieldInfosGen", ",", "docValuesGen", ")", ";", "other", ".", "nextWriteDelGen", "=", "nextWriteDelGen", ";", "other", ".", "nextWriteFieldInfosGen", "=", "nextWriteFieldInfosGen", ";", "other", ".", "nextWriteDocValuesGen", "=", "nextWriteDocValuesGen", ";", "for", "(", "Entry", "<", "Integer", ",", "Set", "<", "String", ">", ">", "e", ":", "dvUpdatesFiles", ".", "entrySet", "(", ")", ")", "{", "other", ".", "dvUpdatesFiles", ".", "put", "(", "e", ".", "getKey", "(", ")", ",", "new", "HashSet", "<", ">", "(", "e", ".", "getValue", "(", ")", ")", ")", ";", "}", "other", ".", "fieldInfosFiles", ".", "addAll", "(", "fieldInfosFiles", ")", ";", "return", "other", ";", "}" ]
public virtual object Clone(){SegmentCommitInfo other = new SegmentCommitInfo(Info, delCount, delGen, fieldInfosGen);other.nextWriteDelGen = nextWriteDelGen;other.nextWriteFieldInfosGen = nextWriteFieldInfosGen;foreach (KeyValuePair<long, ISet<string>> e in genUpdatesFiles){other.genUpdatesFiles[e.Key] = new JCG.HashSet<string>(e.Value);}return other;}
train
false
1,913
public String putAttribute(String key, String value) {HashMap<String, String> newMap = new HashMap<>(attributes);String oldValue = newMap.put(key, value);attributes = Collections.unmodifiableMap(newMap);return oldValue;}
[ "public", "String", "putAttribute", "(", "String", "key", ",", "String", "value", ")", "{", "HashMap", "<", "String", ",", "String", ">", "newMap", "=", "new", "HashMap", "<", ">", "(", "attributes", ")", ";", "String", "oldValue", "=", "newMap", ".", "put", "(", "key", ",", "value", ")", ";", "attributes", "=", "Collections", ".", "unmodifiableMap", "(", "newMap", ")", ";", "return", "oldValue", ";", "}" ]
public string PutAttribute(string key, string value){if (attributes == null){attributes = new Dictionary<string, string>();}return attributes[key] = value;}
train
false
1,914
public void write(int oneChar) {buf.append((char) oneChar);}
[ "public", "void", "write", "(", "int", "oneChar", ")", "{", "buf", ".", "append", "(", "(", "char", ")", "oneChar", ")", ";", "}" ]
public override void write(int oneChar){buf.append((char)oneChar);}
train
false
1,916
public EvaluationSheet getSheet(int sheetIndex) {return new HSSFEvaluationSheet(_uBook.getSheetAt(sheetIndex));}
[ "public", "EvaluationSheet", "getSheet", "(", "int", "sheetIndex", ")", "{", "return", "new", "HSSFEvaluationSheet", "(", "_uBook", ".", "getSheetAt", "(", "sheetIndex", ")", ")", ";", "}" ]
public IEvaluationSheet GetSheet(int sheetIndex){return new HSSFEvaluationSheet((HSSFSheet)_uBook.GetSheetAt(sheetIndex));}
train
false
1,917
public void removeSlideCount() {remove1stProperty(PropertyIDMap.PID_SLIDECOUNT);}
[ "public", "void", "removeSlideCount", "(", ")", "{", "remove1stProperty", "(", "PropertyIDMap", ".", "PID_SLIDECOUNT", ")", ";", "}" ]
public void RemoveSlideCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_SLIDECOUNT);}
train
false
1,918
public DescribeFlowDefinitionResult describeFlowDefinition(DescribeFlowDefinitionRequest request) {request = beforeClientExecution(request);return executeDescribeFlowDefinition(request);}
[ "public", "DescribeFlowDefinitionResult", "describeFlowDefinition", "(", "DescribeFlowDefinitionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeFlowDefinition", "(", "request", ")", ";", "}" ]
public virtual DescribeFlowDefinitionResponse DescribeFlowDefinition(DescribeFlowDefinitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFlowDefinitionRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFlowDefinitionResponseUnmarshaller.Instance;return Invoke<DescribeFlowDefinitionResponse>(request, options);}
train
false
1,919
public void set(int index) {intSet.put(index);if (index > maxInt)maxInt = index;}
[ "public", "void", "set", "(", "int", "index", ")", "{", "intSet", ".", "put", "(", "index", ")", ";", "if", "(", "index", ">", "maxInt", ")", "maxInt", "=", "index", ";", "}" ]
public virtual void Set(int index){intSet.Put(index);if (index > maxInt){maxInt = index;}}
train
false
1,920
public boolean equals(Object other) {if (other == null) {return false;}if (other instanceof CharsRef) {return this.charsEquals((CharsRef) other);}return false;}
[ "public", "boolean", "equals", "(", "Object", "other", ")", "{", "if", "(", "other", "==", "null", ")", "{", "return", "false", ";", "}", "if", "(", "other", "instanceof", "CharsRef", ")", "{", "return", "this", ".", "charsEquals", "(", "(", "CharsRef", ")", "other", ")", ";", "}", "return", "false", ";", "}" ]
public override bool Equals(object other){if (other == null){return false;}if (other is CharsRef){return this.CharsEquals(((CharsRef)other));}return false;}
train
false
1,921
public StopFilterFactory(Map<String,String> args) {super(args);stopWordFiles = get(args, "words");format = get(args, "format", (null == stopWordFiles ? null : FORMAT_WORDSET));ignoreCase = getBoolean(args, "ignoreCase", false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "StopFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "stopWordFiles", "=", "get", "(", "args", ",", "\"words\"", ")", ";", "format", "=", "get", "(", "args", ",", "\"format\"", ",", "(", "null", "==", "stopWordFiles", "?", "null", ":", "FORMAT_WORDSET", ")", ")", ";", "ignoreCase", "=", "getBoolean", "(", "args", ",", "\"ignoreCase\"", ",", "false", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public StopFilterFactory(IDictionary<string, string> args): base(args){AssureMatchVersion();stopWordFiles = Get(args, "words");format = Get(args, "format", (null == stopWordFiles ? null : FORMAT_WORDSET));ignoreCase = GetBoolean(args, "ignoreCase", false);enablePositionIncrements = GetBoolean(args, "enablePositionIncrements", true);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
1,922
public void addState(ATNState state) {if (state != null) {state.atn = this;state.stateNumber = states.size();}states.add(state);}
[ "public", "void", "addState", "(", "ATNState", "state", ")", "{", "if", "(", "state", "!=", "null", ")", "{", "state", ".", "atn", "=", "this", ";", "state", ".", "stateNumber", "=", "states", ".", "size", "(", ")", ";", "}", "states", ".", "add", "(", "state", ")", ";", "}" ]
public virtual void AddState(ATNState state){if (state != null){state.atn = this;state.stateNumber = states.Count;}states.Add(state);}
train
false
1,923
public String batchUrl() {return this.batchUrl;}
[ "public", "String", "batchUrl", "(", ")", "{", "return", "this", ".", "batchUrl", ";", "}" ]
public string BatchUrl { get; set; }
train
false
1,924
public ParseException generateParseException() {jj_expentries.clear();boolean[] la1tokens = new boolean[33];if (jj_kind >= 0) {la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 25; i++) {if (jj_la1[i] == jj_gen) {for (int j = 0; j < 32; j++) {if ((jj_la1_0[i] & (1<<j)) != 0) {la1tokens[j] = true;}if ((jj_la1_1[i] & (1<<j)) != 0) {la1tokens[32+j] = true;}}}}for (int i = 0; i < 33; i++) {if (la1tokens[i]) {jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.add(jj_expentry);}}jj_endpos = 0;jj_rescan_token();jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.size()][];for (int i = 0; i < jj_expentries.size(); i++) {exptokseq[i] = jj_expentries.get(i);}return new ParseException(token, exptokseq, tokenImage);}
[ "public", "ParseException", "generateParseException", "(", ")", "{", "jj_expentries", ".", "clear", "(", ")", ";", "boolean", "[", "]", "la1tokens", "=", "new", "boolean", "[", "33", "]", ";", "if", "(", "jj_kind", ">=", "0", ")", "{", "la1tokens", "[", "jj_kind", "]", "=", "true", ";", "jj_kind", "=", "-", "1", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "25", ";", "i", "++", ")", "{", "if", "(", "jj_la1", "[", "i", "]", "==", "jj_gen", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "32", ";", "j", "++", ")", "{", "if", "(", "(", "jj_la1_0", "[", "i", "]", "&", "(", "1", "<<", "j", ")", ")", "!=", "0", ")", "{", "la1tokens", "[", "j", "]", "=", "true", ";", "}", "if", "(", "(", "jj_la1_1", "[", "i", "]", "&", "(", "1", "<<", "j", ")", ")", "!=", "0", ")", "{", "la1tokens", "[", "32", "+", "j", "]", "=", "true", ";", "}", "}", "}", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "33", ";", "i", "++", ")", "{", "if", "(", "la1tokens", "[", "i", "]", ")", "{", "jj_expentry", "=", "new", "int", "[", "1", "]", ";", "jj_expentry", "[", "0", "]", "=", "i", ";", "jj_expentries", ".", "add", "(", "jj_expentry", ")", ";", "}", "}", "jj_endpos", "=", "0", ";", "jj_rescan_token", "(", ")", ";", "jj_add_error_token", "(", "0", ",", "0", ")", ";", "int", "[", "]", "[", "]", "exptokseq", "=", "new", "int", "[", "jj_expentries", ".", "size", "(", ")", "]", "[", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "jj_expentries", ".", "size", "(", ")", ";", "i", "++", ")", "{", "exptokseq", "[", "i", "]", "=", "jj_expentries", ".", "get", "(", "i", ")", ";", "}", "return", "new", "ParseException", "(", "token", ",", "exptokseq", ",", "tokenImage", ")", ";", "}" ]
public virtual ParseException GenerateParseException(){jj_expentries.Clear();bool[] la1tokens = new bool[33];if (jj_kind >= 0){la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 21; i++){if (jj_la1[i] == jj_gen){for (int j = 0; j < 32; j++){if ((jj_la1_0[i] & (1 << j)) != 0){la1tokens[j] = true;}if ((jj_la1_1[i] & (1 << j)) != 0){la1tokens[32 + j] = true;}}}}for (int i = 0; i < 33; i++){if (la1tokens[i]){jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.Add(jj_expentry);}}jj_endpos = 0;Jj_rescan_token();Jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.Count][];for (int i = 0; i < jj_expentries.Count; i++){exptokseq[i] = jj_expentries[i];}return new ParseException(Token, exptokseq, QueryParserConstants.TokenImage);}
train
true
1,925
@Override public Iterator<K> iterator() {return new KeyIterator();}
[ "@", "Override", "public", "Iterator", "<", "K", ">", "iterator", "(", ")", "{", "return", "new", "KeyIterator", "(", ")", ";", "}" ]
public override java.util.Iterator<K> iterator(){return new java.util.Hashtable<K, V>.KeyIterator(this._enclosing);}
train
false