id_within_dataset
int64
0
10.3k
snippet
stringlengths
29
1.4k
tokens
listlengths
10
314
cs
stringlengths
28
1.38k
split_within_dataset
stringclasses
1 value
is_duplicated
bool
2 classes
7,749
public PatchFormatException(List<FormatError> errors) {super(MessageFormat.format(JGitText.get().patchFormatException, errors));this.errors = errors;}
[ "public", "PatchFormatException", "(", "List", "<", "FormatError", ">", "errors", ")", "{", "super", "(", "MessageFormat", ".", "format", "(", "JGitText", ".", "get", "(", ")", ".", "patchFormatException", ",", "errors", ")", ")", ";", "this", ".", "errors", "=", "errors", ";", "}" ]
public PatchFormatException(IList<FormatError> errors) : base(MessageFormat.Format(JGitText.Get().patchFormatException, errors)){this.errors = errors;}
train
false
7,750
public String finish() {sb.append(formatTrailer());return sb.toString();}
[ "public", "String", "finish", "(", ")", "{", "sb", ".", "append", "(", "formatTrailer", "(", ")", ")", ";", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public virtual string Finish(){sb.Append(FormatTrailer());return sb.ToString();}
train
false
7,752
public int[] init() {final int[] ord = super.init();boost = new float[ArrayUtil.oversize(ord.length, Float.BYTES)];termState = new TermStates[ArrayUtil.oversize(ord.length, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];assert termState.length >= ord.length && boost.length >= ord.length;return ord;}
[ "public", "int", "[", "]", "init", "(", ")", "{", "final", "int", "[", "]", "ord", "=", "super", ".", "init", "(", ")", ";", "boost", "=", "new", "float", "[", "ArrayUtil", ".", "oversize", "(", "ord", ".", "length", ",", "Float", ".", "BYTES", ")", "]", ";", "termState", "=", "new", "TermStates", "[", "ArrayUtil", ".", "oversize", "(", "ord", ".", "length", ",", "RamUsageEstimator", ".", "NUM_BYTES_OBJECT_REF", ")", "]", ";", "assert", "termState", ".", "length", ">=", "ord", ".", "length", "&&", "boost", ".", "length", ">=", "ord", ".", "length", ";", "return", "ord", ";", "}" ]
public override int[] Init(){int[] ord = base.Init();boost = new float[ArrayUtil.Oversize(ord.Length, RamUsageEstimator.NUM_BYTES_SINGLE)];termState = new TermContext[ArrayUtil.Oversize(ord.Length, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];Debug.Assert(termState.Length >= ord.Length && boost.Length >= ord.Length);return ord;}
train
false
7,754
public void deleteFile(String name) {throw new UnsupportedOperationException();}
[ "public", "void", "deleteFile", "(", "String", "name", ")", "{", "throw", "new", "UnsupportedOperationException", "(", ")", ";", "}" ]
public override void DeleteFile(string name){throw new NotSupportedException();}
train
false
7,755
public StopTrainingDocumentClassifierResult stopTrainingDocumentClassifier(StopTrainingDocumentClassifierRequest request) {request = beforeClientExecution(request);return executeStopTrainingDocumentClassifier(request);}
[ "public", "StopTrainingDocumentClassifierResult", "stopTrainingDocumentClassifier", "(", "StopTrainingDocumentClassifierRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStopTrainingDocumentClassifier", "(", "request", ")", ";", "}" ]
public virtual StopTrainingDocumentClassifierResponse StopTrainingDocumentClassifier(StopTrainingDocumentClassifierRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopTrainingDocumentClassifierRequestMarshaller.Instance;options.ResponseUnmarshaller = StopTrainingDocumentClassifierResponseUnmarshaller.Instance;return Invoke<StopTrainingDocumentClassifierResponse>(request, options);}
train
true
7,756
public TermStats(int docFreq, long totalTermFreq) {this.docFreq = docFreq;this.totalTermFreq = totalTermFreq;}
[ "public", "TermStats", "(", "int", "docFreq", ",", "long", "totalTermFreq", ")", "{", "this", ".", "docFreq", "=", "docFreq", ";", "this", ".", "totalTermFreq", "=", "totalTermFreq", ";", "}" ]
public TermStats(int docFreq, long totalTermFreq){this.DocFreq = docFreq;this.TotalTermFreq = totalTermFreq;}
train
false
7,757
public GetAuthorizersResult getAuthorizers(GetAuthorizersRequest request) {request = beforeClientExecution(request);return executeGetAuthorizers(request);}
[ "public", "GetAuthorizersResult", "getAuthorizers", "(", "GetAuthorizersRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetAuthorizers", "(", "request", ")", ";", "}" ]
public virtual GetAuthorizersResponse GetAuthorizers(GetAuthorizersRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAuthorizersRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAuthorizersResponseUnmarshaller.Instance;return Invoke<GetAuthorizersResponse>(request, options);}
train
true
7,758
public void dispatch(RepositoryEvent event) {List<ListenerHandle> list = lists.get(event.getListenerType());if (list != null) {for (ListenerHandle handle : list)event.dispatch(handle.listener);}}
[ "public", "void", "dispatch", "(", "RepositoryEvent", "event", ")", "{", "List", "<", "ListenerHandle", ">", "list", "=", "lists", ".", "get", "(", "event", ".", "getListenerType", "(", ")", ")", ";", "if", "(", "list", "!=", "null", ")", "{", "for", "(", "ListenerHandle", "handle", ":", "list", ")", "event", ".", "dispatch", "(", "handle", ".", "listener", ")", ";", "}", "}" ]
public virtual void Dispatch(RepositoryEvent @event){IList<ListenerHandle> list = lists.Get(@event.GetListenerType());if (list != null){foreach (ListenerHandle handle in list){@event.Dispatch(handle.listener);}}}
train
false
7,759
public String toString(String field) {StringBuilder buffer = new StringBuilder();buffer.append("spanNot(");buffer.append(include.toString(field));buffer.append(", ");buffer.append(exclude.toString(field));buffer.append(", ");buffer.append(Integer.toString(pre));buffer.append(", ");buffer.append(Integer.toString(post));buffer.append(")");return buffer.toString();}
[ "public", "String", "toString", "(", "String", "field", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "buffer", ".", "append", "(", "\"spanNot(\"", ")", ";", "buffer", ".", "append", "(", "include", ".", "toString", "(", "field", ")", ")", ";", "buffer", ".", "append", "(", "\", \"", ")", ";", "buffer", ".", "append", "(", "exclude", ".", "toString", "(", "field", ")", ")", ";", "buffer", ".", "append", "(", "\", \"", ")", ";", "buffer", ".", "append", "(", "Integer", ".", "toString", "(", "pre", ")", ")", ";", "buffer", ".", "append", "(", "\", \"", ")", ";", "buffer", ".", "append", "(", "Integer", ".", "toString", "(", "post", ")", ")", ";", "buffer", ".", "append", "(", "\")\"", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(string field){StringBuilder buffer = new StringBuilder();buffer.Append("spanNot(");buffer.Append(include.ToString(field));buffer.Append(", ");buffer.Append(exclude.ToString(field));buffer.Append(", ");buffer.Append(Convert.ToString(pre));buffer.Append(", ");buffer.Append(Convert.ToString(post));buffer.Append(")");buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}
train
false
7,760
public SearchGameSessionsResult searchGameSessions(SearchGameSessionsRequest request) {request = beforeClientExecution(request);return executeSearchGameSessions(request);}
[ "public", "SearchGameSessionsResult", "searchGameSessions", "(", "SearchGameSessionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeSearchGameSessions", "(", "request", ")", ";", "}" ]
public virtual SearchGameSessionsResponse SearchGameSessions(SearchGameSessionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchGameSessionsRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchGameSessionsResponseUnmarshaller.Instance;return Invoke<SearchGameSessionsResponse>(request, options);}
train
true
7,761
public int stem(char s[], int len) {if (len < 4)return len;for (int i = 0; i < len; i++)switch(s[i]) {case 'ä':case 'å': s[i] = 'a'; break;case 'ö': s[i] = 'o'; break;}len = step1(s, len);len = step2(s, len);len = step3(s, len);len = norm1(s, len);len = norm2(s, len);return len;}
[ "public", "int", "stem", "(", "char", "s", "[", "]", ",", "int", "len", ")", "{", "if", "(", "len", "<", "4", ")", "return", "len", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "++", ")", "switch", "(", "s", "[", "i", "]", ")", "{", "case", "'ä'", ":", "case", "'å'", ":", "s", "[", "i", "]", "=", "'a'", ";", "break", ";", "case", "'ö'", ":", "s", "[", "i", "]", "=", "'o'", ";", "break", ";", "}", "len", "=", "step1", "(", "s", ",", "len", ")", ";", "len", "=", "step2", "(", "s", ",", "len", ")", ";", "len", "=", "step3", "(", "s", ",", "len", ")", ";", "len", "=", "norm1", "(", "s", ",", "len", ")", ";", "len", "=", "norm2", "(", "s", ",", "len", ")", ";", "return", "len", ";", "}" ]
public virtual int Stem(char[] s, int len){if (len < 4){return len;}for (int i = 0; i < len; i++){switch (s[i]){case 'ä':case 'å':s[i] = 'a';break;case 'ö':s[i] = 'o';break;}}len = Step1(s, len);len = Step2(s, len);len = Step3(s, len);len = Norm1(s, len);len = Norm2(s, len);return len;}
train
false
7,762
public PutConfigurationSetReputationOptionsResult putConfigurationSetReputationOptions(PutConfigurationSetReputationOptionsRequest request) {request = beforeClientExecution(request);return executePutConfigurationSetReputationOptions(request);}
[ "public", "PutConfigurationSetReputationOptionsResult", "putConfigurationSetReputationOptions", "(", "PutConfigurationSetReputationOptionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePutConfigurationSetReputationOptions", "(", "request", ")", ";", "}" ]
public virtual PutConfigurationSetReputationOptionsResponse PutConfigurationSetReputationOptions(PutConfigurationSetReputationOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutConfigurationSetReputationOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutConfigurationSetReputationOptionsResponseUnmarshaller.Instance;return Invoke<PutConfigurationSetReputationOptionsResponse>(request, options);}
train
true
7,763
public ListAttendeeTagsResult listAttendeeTags(ListAttendeeTagsRequest request) {request = beforeClientExecution(request);return executeListAttendeeTags(request);}
[ "public", "ListAttendeeTagsResult", "listAttendeeTags", "(", "ListAttendeeTagsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListAttendeeTags", "(", "request", ")", ";", "}" ]
public virtual ListAttendeeTagsResponse ListAttendeeTags(ListAttendeeTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAttendeeTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAttendeeTagsResponseUnmarshaller.Instance;return Invoke<ListAttendeeTagsResponse>(request, options);}
train
false
7,764
public static void validateSheetName(String sheetName) {if (sheetName == null) {throw new IllegalArgumentException("sheetName must not be null");}int len = sheetName.length();if (len < 1 || len > 31) {throw new IllegalArgumentException("sheetName '" + sheetName+ "' is invalid - character count MUST be greater than or equal to 1 and less than or equal to 31");}for (int i=0; i<len; i++) {char ch = sheetName.charAt(i);switch (ch) {case '/':case '\\':case '?':case '*':case ']':case '[':case ':':break;default:continue;}throw new IllegalArgumentException("Invalid char (" + ch+ ") found at index (" + i + ") in sheet name '" + sheetName + "'");}if (sheetName.charAt(0) == '\'' || sheetName.charAt(len-1) == '\'') {throw new IllegalArgumentException("Invalid sheet name '" + sheetName+ "'. Sheet names must not begin or end with (').");}}
[ "public", "static", "void", "validateSheetName", "(", "String", "sheetName", ")", "{", "if", "(", "sheetName", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"sheetName must not be null\"", ")", ";", "}", "int", "len", "=", "sheetName", ".", "length", "(", ")", ";", "if", "(", "len", "<", "1", "||", "len", ">", "31", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"sheetName '\"", "+", "sheetName", "+", "\"' is invalid - character count MUST be greater than or equal to 1 and less than or equal to 31\"", ")", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "++", ")", "{", "char", "ch", "=", "sheetName", ".", "charAt", "(", "i", ")", ";", "switch", "(", "ch", ")", "{", "case", "'/'", ":", "case", "'\\\\'", ":", "case", "'?'", ":", "case", "'*'", ":", "case", "']'", ":", "case", "'['", ":", "case", "':'", ":", "break", ";", "default", ":", "continue", ";", "}", "throw", "new", "IllegalArgumentException", "(", "\"Invalid char (\"", "+", "ch", "+", "\") found at index (\"", "+", "i", "+", "\") in sheet name '\"", "+", "sheetName", "+", "\"'\"", ")", ";", "}", "if", "(", "sheetName", ".", "charAt", "(", "0", ")", "==", "'\\''", "||", "sheetName", ".", "charAt", "(", "len", "-", "1", ")", "==", "'\\''", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Invalid sheet name '\"", "+", "sheetName", "+", "\"'. Sheet names must not begin or end with (').\"", ")", ";", "}", "}" ]
public static void ValidateSheetName(String sheetName) {if (sheetName == null) {throw new ArgumentException("sheetName must not be null");}int len = sheetName.Length;if (len < 1 || len > 31) {throw new ArgumentException("sheetName '" + sheetName+ "' is invalid - character count MUST be greater than or equal to 1 and less than or equal to 31");}for (int i=0; i<len; i++) {char ch = sheetName[i];switch (ch) {case '/':case '\\':case '?':case '*':case ']':case '[':case ':':break;default:continue;}throw new ArgumentException("Invalid char (" + ch+ ") found at index (" + i + ") in sheet name '" + sheetName + "'");}if (sheetName[0] == '\'' || sheetName[len-1] == '\'') {throw new ArgumentException("Invalid sheet name '" + sheetName+ "'. Sheet names must not begin or end with (').");}}
train
false
7,765
public long getPosition() {return getPointer();}
[ "public", "long", "getPosition", "(", ")", "{", "return", "getPointer", "(", ")", ";", "}" ]
public long GetPosition(){return outerInstance.GetPointer();}
train
false
7,766
public void reset(DataOutput out) {assert out != null;this.out = out;off = 0;ord = 0L;finished = false;}
[ "public", "void", "reset", "(", "DataOutput", "out", ")", "{", "assert", "out", "!=", "null", ";", "this", ".", "out", "=", "out", ";", "off", "=", "0", ";", "ord", "=", "0L", ";", "finished", "=", "false", ";", "}" ]
public virtual void Reset(DataOutput @out){Debug.Assert(@out != null);this.m_out = @out;m_off = 0;m_ord = 0L;m_finished = false;}
train
false
7,768
public RevFilter clone() {return new MaxCountRevFilter(maxCount);}
[ "public", "RevFilter", "clone", "(", ")", "{", "return", "new", "MaxCountRevFilter", "(", "maxCount", ")", ";", "}" ]
public override RevFilter Clone(){return new NGit.Revwalk.Filter.MaxCountRevFilter(maxCount);}
train
false
7,769
public DisableUserResult disableUser(DisableUserRequest request) {request = beforeClientExecution(request);return executeDisableUser(request);}
[ "public", "DisableUserResult", "disableUser", "(", "DisableUserRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDisableUser", "(", "request", ")", ";", "}" ]
public virtual DisableUserResponse DisableUser(DisableUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableUserRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableUserResponseUnmarshaller.Instance;return Invoke<DisableUserResponse>(request, options);}
train
true
7,770
public void append(String stringToMatch) {for (int i = 0; i < stringToMatch.length(); i++) {final char c = stringToMatch.charAt(i);if (!extendStringToMatchByOneCharacter(c))break;}}
[ "public", "void", "append", "(", "String", "stringToMatch", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "stringToMatch", ".", "length", "(", ")", ";", "i", "++", ")", "{", "final", "char", "c", "=", "stringToMatch", ".", "charAt", "(", "i", ")", ";", "if", "(", "!", "extendStringToMatchByOneCharacter", "(", "c", ")", ")", "break", ";", "}", "}" ]
public virtual void Append(string stringToMatch){for (int i = 0; i < stringToMatch.Length; i++){char c = stringToMatch[i];ExtendStringToMatchByOneCharacter(c);}}
train
true
7,771
public StopTrainingJobResult stopTrainingJob(StopTrainingJobRequest request) {request = beforeClientExecution(request);return executeStopTrainingJob(request);}
[ "public", "StopTrainingJobResult", "stopTrainingJob", "(", "StopTrainingJobRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStopTrainingJob", "(", "request", ")", ";", "}" ]
public virtual StopTrainingJobResponse StopTrainingJob(StopTrainingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopTrainingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopTrainingJobResponseUnmarshaller.Instance;return Invoke<StopTrainingJobResponse>(request, options);}
train
true
7,772
public IndexInput openInput(String name, IOContext context) throws IOException {ensureOpen();final String id = IndexFileNames.stripSegmentName(name);final FileEntry entry = entries.get(id);if (entry == null) {String datFileName = IndexFileNames.segmentFileName(segmentName, "", Lucene50CompoundFormat.DATA_EXTENSION);throw new FileNotFoundException("No sub-file with id " + id + " found in compound file \"" + datFileName + "\" (fileName=" + name + " files: " + entries.keySet() + ")");}return handle.slice(name, entry.offset, entry.length);}
[ "public", "IndexInput", "openInput", "(", "String", "name", ",", "IOContext", "context", ")", "throws", "IOException", "{", "ensureOpen", "(", ")", ";", "final", "String", "id", "=", "IndexFileNames", ".", "stripSegmentName", "(", "name", ")", ";", "final", "FileEntry", "entry", "=", "entries", ".", "get", "(", "id", ")", ";", "if", "(", "entry", "==", "null", ")", "{", "String", "datFileName", "=", "IndexFileNames", ".", "segmentFileName", "(", "segmentName", ",", "\"\"", ",", "Lucene50CompoundFormat", ".", "DATA_EXTENSION", ")", ";", "throw", "new", "FileNotFoundException", "(", "\"No sub-file with id \"", "+", "id", "+", "\" found in compound file \\\"\"", "+", "datFileName", "+", "\"\\\" (fileName=\"", "+", "name", "+", "\" files: \"", "+", "entries", ".", "keySet", "(", ")", "+", "\")\"", ")", ";", "}", "return", "handle", ".", "slice", "(", "name", ",", "entry", ".", "offset", ",", "entry", ".", "length", ")", ";", "}" ]
public override IndexInput OpenInput(string name, IOContext context){lock (this){EnsureOpen();Debug.Assert(!openForWrite);string id = IndexFileNames.StripSegmentName(name);if (!entries.TryGetValue(id, out FileEntry entry) || entry == null){throw new FileNotFoundException("No sub-file with id " + id +" found (fileName=" + name + " files: " +string.Format(J2N.Text.StringFormatter.InvariantCulture, "{0}", entries.Keys) + ")");}return handle.OpenSlice(name, entry.Offset, entry.Length);}}
train
false
7,773
public GetSnowballUsageResult getSnowballUsage(GetSnowballUsageRequest request) {request = beforeClientExecution(request);return executeGetSnowballUsage(request);}
[ "public", "GetSnowballUsageResult", "getSnowballUsage", "(", "GetSnowballUsageRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetSnowballUsage", "(", "request", ")", ";", "}" ]
public virtual GetSnowballUsageResponse GetSnowballUsage(GetSnowballUsageRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSnowballUsageRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSnowballUsageResponseUnmarshaller.Instance;return Invoke<GetSnowballUsageResponse>(request, options);}
train
true
7,774
public DeleteUserProfileResult deleteUserProfile(DeleteUserProfileRequest request) {request = beforeClientExecution(request);return executeDeleteUserProfile(request);}
[ "public", "DeleteUserProfileResult", "deleteUserProfile", "(", "DeleteUserProfileRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteUserProfile", "(", "request", ")", ";", "}" ]
public virtual DeleteUserProfileResponse DeleteUserProfile(DeleteUserProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUserProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUserProfileResponseUnmarshaller.Instance;return Invoke<DeleteUserProfileResponse>(request, options);}
train
true
7,775
public int compare(ConfigLine a, ConfigLine b) {return compare2(a.section, a.subsection, a.name,b.section, b.subsection, b.name);}
[ "public", "int", "compare", "(", "ConfigLine", "a", ",", "ConfigLine", "b", ")", "{", "return", "compare2", "(", "a", ".", "section", ",", "a", ".", "subsection", ",", "a", ".", "name", ",", "b", ".", "section", ",", "b", ".", "subsection", ",", "b", ".", "name", ")", ";", "}" ]
public virtual int Compare(ConfigLine a, ConfigLine b){var value = Compare2(a.section, a.subsection, a.name, b.section, b.subsection, b.name);return value != 0 ? value : string.CompareOrdinal (a.value, b.value);}
train
false
7,776
public LongBuffer asReadOnlyBuffer() {return duplicate();}
[ "public", "LongBuffer", "asReadOnlyBuffer", "(", ")", "{", "return", "duplicate", "(", ")", ";", "}" ]
public override java.nio.LongBuffer asReadOnlyBuffer(){return duplicate();}
train
false
7,777
public HSSFComment createCellComment(ClientAnchor anchor) {return createComment((HSSFAnchor) anchor);}
[ "public", "HSSFComment", "createCellComment", "(", "ClientAnchor", "anchor", ")", "{", "return", "createComment", "(", "(", "HSSFAnchor", ")", "anchor", ")", ";", "}" ]
public IComment CreateCellComment(IClientAnchor anchor){return CreateComment((HSSFAnchor)anchor);}
train
false
7,778
public CollatedTermAttributeImpl(Collator collator) {this.collator = (Collator) collator.clone();}
[ "public", "CollatedTermAttributeImpl", "(", "Collator", "collator", ")", "{", "this", ".", "collator", "=", "(", "Collator", ")", "collator", ".", "clone", "(", ")", ";", "}" ]
public CollatedTermAttributeImpl(Collator collator){this.collator = (Collator)collator.Clone();}
train
false
7,779
public UpdatePipelineStatusResult updatePipelineStatus(UpdatePipelineStatusRequest request) {request = beforeClientExecution(request);return executeUpdatePipelineStatus(request);}
[ "public", "UpdatePipelineStatusResult", "updatePipelineStatus", "(", "UpdatePipelineStatusRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdatePipelineStatus", "(", "request", ")", ";", "}" ]
public virtual UpdatePipelineStatusResponse UpdatePipelineStatus(UpdatePipelineStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePipelineStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePipelineStatusResponseUnmarshaller.Instance;return Invoke<UpdatePipelineStatusResponse>(request, options);}
train
true
7,780
public void copyTo(char[] tmp, StringBuilder w) {toHexCharArray(tmp);w.append(tmp, 0, Constants.OBJECT_ID_STRING_LENGTH);}
[ "public", "void", "copyTo", "(", "char", "[", "]", "tmp", ",", "StringBuilder", "w", ")", "{", "toHexCharArray", "(", "tmp", ")", ";", "w", ".", "append", "(", "tmp", ",", "0", ",", "Constants", ".", "OBJECT_ID_STRING_LENGTH", ")", ";", "}" ]
public virtual void CopyTo(char[] tmp, StringBuilder w){ToHexCharArray(tmp);w.Append(tmp, 0, Constants.OBJECT_ID_STRING_LENGTH);}
train
false
7,781
public BytesReader getBytesReader() {if (fst == null) {return null;} else {return fst.getBytesReader();}}
[ "public", "BytesReader", "getBytesReader", "(", ")", "{", "if", "(", "fst", "==", "null", ")", "{", "return", "null", ";", "}", "else", "{", "return", "fst", ".", "getBytesReader", "(", ")", ";", "}", "}" ]
public FST.BytesReader GetBytesReader(){if (fst == null){return null;}else{return fst.GetBytesReader();}}
train
false
7,782
public CreateRouteTableResult createRouteTable(CreateRouteTableRequest request) {request = beforeClientExecution(request);return executeCreateRouteTable(request);}
[ "public", "CreateRouteTableResult", "createRouteTable", "(", "CreateRouteTableRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateRouteTable", "(", "request", ")", ";", "}" ]
public virtual CreateRouteTableResponse CreateRouteTable(CreateRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRouteTableResponseUnmarshaller.Instance;return Invoke<CreateRouteTableResponse>(request, options);}
train
true
7,783
public String toString(String field) {return "ToParentBlockJoinQuery ("+childQuery.toString()+")";}
[ "public", "String", "toString", "(", "String", "field", ")", "{", "return", "\"ToParentBlockJoinQuery (\"", "+", "childQuery", ".", "toString", "(", ")", "+", "\")\"", ";", "}" ]
public override string ToString(string field){return "ToParentBlockJoinQuery (" + _childQuery + ")";}
train
false
7,784
public DisassociateClientVpnTargetNetworkResult disassociateClientVpnTargetNetwork(DisassociateClientVpnTargetNetworkRequest request) {request = beforeClientExecution(request);return executeDisassociateClientVpnTargetNetwork(request);}
[ "public", "DisassociateClientVpnTargetNetworkResult", "disassociateClientVpnTargetNetwork", "(", "DisassociateClientVpnTargetNetworkRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDisassociateClientVpnTargetNetwork", "(", "request", ")", ";", "}" ]
public virtual DisassociateClientVpnTargetNetworkResponse DisassociateClientVpnTargetNetwork(DisassociateClientVpnTargetNetworkRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateClientVpnTargetNetworkRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateClientVpnTargetNetworkResponseUnmarshaller.Instance;return Invoke<DisassociateClientVpnTargetNetworkResponse>(request, options);}
train
true
7,785
public String toString() {return "<slop value='" + getValueString() + "'>" + "\n"+ getChild().toString() + "\n</slop>";}
[ "public", "String", "toString", "(", ")", "{", "return", "\"<slop value='\"", "+", "getValueString", "(", ")", "+", "\"'>\"", "+", "\"\\n\"", "+", "getChild", "(", ")", ".", "toString", "(", ")", "+", "\"\\n</slop>\"", ";", "}" ]
public override string ToString(){return "<slop value='" + GetValueString() + "'>" + "\n"+ GetChild().ToString() + "\n</slop>";}
train
false
7,786
public GetExportJobsResult getExportJobs(GetExportJobsRequest request) {request = beforeClientExecution(request);return executeGetExportJobs(request);}
[ "public", "GetExportJobsResult", "getExportJobs", "(", "GetExportJobsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetExportJobs", "(", "request", ")", ";", "}" ]
public virtual GetExportJobsResponse GetExportJobs(GetExportJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetExportJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetExportJobsResponseUnmarshaller.Instance;return Invoke<GetExportJobsResponse>(request, options);}
train
true
7,787
public UpdateBaiduChannelResult updateBaiduChannel(UpdateBaiduChannelRequest request) {request = beforeClientExecution(request);return executeUpdateBaiduChannel(request);}
[ "public", "UpdateBaiduChannelResult", "updateBaiduChannel", "(", "UpdateBaiduChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateBaiduChannel", "(", "request", ")", ";", "}" ]
public virtual UpdateBaiduChannelResponse UpdateBaiduChannel(UpdateBaiduChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBaiduChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBaiduChannelResponseUnmarshaller.Instance;return Invoke<UpdateBaiduChannelResponse>(request, options);}
train
true
7,788
public ImportApiResult importApi(ImportApiRequest request) {request = beforeClientExecution(request);return executeImportApi(request);}
[ "public", "ImportApiResult", "importApi", "(", "ImportApiRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeImportApi", "(", "request", ")", ";", "}" ]
public virtual ImportApiResponse ImportApi(ImportApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportApiRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportApiResponseUnmarshaller.Instance;return Invoke<ImportApiResponse>(request, options);}
train
false
7,789
public synchronized int read() {return pos < count ? buffer.charAt(pos++) & 0xFF : -1;}
[ "public", "synchronized", "int", "read", "(", ")", "{", "return", "pos", "<", "count", "?", "buffer", ".", "charAt", "(", "pos", "++", ")", "&", "0xFF", ":", "-", "1", ";", "}" ]
public override int read(){lock (this){return pos < count ? buffer[pos++] & unchecked((int)(0xFF)) : -1;}}
train
false
7,790
public GetUserResult getUser(GetUserRequest request) {request = beforeClientExecution(request);return executeGetUser(request);}
[ "public", "GetUserResult", "getUser", "(", "GetUserRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetUser", "(", "request", ")", ";", "}" ]
public virtual GetUserResponse GetUser(GetUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUserRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUserResponseUnmarshaller.Instance;return Invoke<GetUserResponse>(request, options);}
train
true
7,791
public GetHealthCheckLastFailureReasonResult getHealthCheckLastFailureReason(GetHealthCheckLastFailureReasonRequest request) {request = beforeClientExecution(request);return executeGetHealthCheckLastFailureReason(request);}
[ "public", "GetHealthCheckLastFailureReasonResult", "getHealthCheckLastFailureReason", "(", "GetHealthCheckLastFailureReasonRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetHealthCheckLastFailureReason", "(", "request", ")", ";", "}" ]
public virtual GetHealthCheckLastFailureReasonResponse GetHealthCheckLastFailureReason(GetHealthCheckLastFailureReasonRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHealthCheckLastFailureReasonRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHealthCheckLastFailureReasonResponseUnmarshaller.Instance;return Invoke<GetHealthCheckLastFailureReasonResponse>(request, options);}
train
true
7,792
public String getRawQuery() {return query;}
[ "public", "String", "getRawQuery", "(", ")", "{", "return", "query", ";", "}" ]
public string getRawQuery(){return query;}
train
false
7,794
public boolean equals(Object obj) {if (obj instanceof StatePair) {StatePair p = (StatePair) obj;return p.s1 == s1 && p.s2 == s2;} else return false;}
[ "public", "boolean", "equals", "(", "Object", "obj", ")", "{", "if", "(", "obj", "instanceof", "StatePair", ")", "{", "StatePair", "p", "=", "(", "StatePair", ")", "obj", ";", "return", "p", ".", "s1", "==", "s1", "&&", "p", ".", "s2", "==", "s2", ";", "}", "else", "return", "false", ";", "}" ]
public override bool Equals(object obj){if (obj is StatePair){StatePair p = (StatePair)obj;return p.S1 == S1 && p.S2 == S2;}else{return false;}}
train
false
7,795
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[OLD STRING]\n");buffer.append(" .string = ").append(getString()).append("\n");buffer.append("[/OLD STRING]\n");return buffer.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "buffer", ".", "append", "(", "\"[OLD STRING]\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .string = \"", ")", ".", "append", "(", "getString", "(", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\"[/OLD STRING]\\n\"", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}" ]
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[OLD STRING]\n");buffer.Append(" .string = ").Append(GetString()).Append("\n");buffer.Append("[/OLD STRING]\n");return buffer.ToString();}
train
false
7,796
public ExecutePolicyResult executePolicy(ExecutePolicyRequest request) {request = beforeClientExecution(request);return executeExecutePolicy(request);}
[ "public", "ExecutePolicyResult", "executePolicy", "(", "ExecutePolicyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeExecutePolicy", "(", "request", ")", ";", "}" ]
public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExecutePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = ExecutePolicyResponseUnmarshaller.Instance;return Invoke<ExecutePolicyResponse>(request, options);}
train
true
7,797
public UpdateEmailTemplateResult updateEmailTemplate(UpdateEmailTemplateRequest request) {request = beforeClientExecution(request);return executeUpdateEmailTemplate(request);}
[ "public", "UpdateEmailTemplateResult", "updateEmailTemplate", "(", "UpdateEmailTemplateRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateEmailTemplate", "(", "request", ")", ";", "}" ]
public virtual UpdateEmailTemplateResponse UpdateEmailTemplate(UpdateEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateEmailTemplateResponseUnmarshaller.Instance;return Invoke<UpdateEmailTemplateResponse>(request, options);}
train
false
7,798
public boolean equalsContents(final Object o) {final CustomProperty c = (CustomProperty) o;final String name1 = c.getName();final String name2 = this.getName();boolean equalNames = true;if (name1 == null) {equalNames = name2 == null;} else {equalNames = name1.equals(name2);}return equalNames && c.getID() == this.getID()&& c.getType() == this.getType()&& c.getValue().equals(this.getValue());}
[ "public", "boolean", "equalsContents", "(", "final", "Object", "o", ")", "{", "final", "CustomProperty", "c", "=", "(", "CustomProperty", ")", "o", ";", "final", "String", "name1", "=", "c", ".", "getName", "(", ")", ";", "final", "String", "name2", "=", "this", ".", "getName", "(", ")", ";", "boolean", "equalNames", "=", "true", ";", "if", "(", "name1", "==", "null", ")", "{", "equalNames", "=", "name2", "==", "null", ";", "}", "else", "{", "equalNames", "=", "name1", ".", "equals", "(", "name2", ")", ";", "}", "return", "equalNames", "&&", "c", ".", "getID", "(", ")", "==", "this", ".", "getID", "(", ")", "&&", "c", ".", "getType", "(", ")", "==", "this", ".", "getType", "(", ")", "&&", "c", ".", "getValue", "(", ")", ".", "equals", "(", "this", ".", "getValue", "(", ")", ")", ";", "}" ]
public bool EqualsContents(Object o){CustomProperty c = (CustomProperty)o;String name1 = c.Name;String name2 = this.Name;bool equalNames = true;if (name1 == null)equalNames = name2 == null;elseequalNames = name1.Equals(name2);return equalNames && c.ID == this.ID&& c.Type == this.Type&& c.Value.Equals(this.Value);}
train
false
7,799
public DuplicateFormatFlagsException(String f) {if (f == null) {throw new NullPointerException();}flags = f;}
[ "public", "DuplicateFormatFlagsException", "(", "String", "f", ")", "{", "if", "(", "f", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", ")", ";", "}", "flags", "=", "f", ";", "}" ]
public DuplicateFormatFlagsException(string f){if (f == null){throw new System.ArgumentNullException();}flags = f;}
train
false
7,800
public synchronized void mark(int readlimit) {marklimit = readlimit;markpos = pos;}
[ "public", "synchronized", "void", "mark", "(", "int", "readlimit", ")", "{", "marklimit", "=", "readlimit", ";", "markpos", "=", "pos", ";", "}" ]
public override void mark(int readlimit){lock (this){marklimit = readlimit;markpos = pos;}}
train
false
7,801
public final int prefixCompare(AnyObjectId other) {int cmp;cmp = NB.compareUInt32(w1, mask(1, other.w1));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w2, mask(2, other.w2));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w3, mask(3, other.w3));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w4, mask(4, other.w4));if (cmp != 0)return cmp;return NB.compareUInt32(w5, mask(5, other.w5));}
[ "public", "final", "int", "prefixCompare", "(", "AnyObjectId", "other", ")", "{", "int", "cmp", ";", "cmp", "=", "NB", ".", "compareUInt32", "(", "w1", ",", "mask", "(", "1", ",", "other", ".", "w1", ")", ")", ";", "if", "(", "cmp", "!=", "0", ")", "return", "cmp", ";", "cmp", "=", "NB", ".", "compareUInt32", "(", "w2", ",", "mask", "(", "2", ",", "other", ".", "w2", ")", ")", ";", "if", "(", "cmp", "!=", "0", ")", "return", "cmp", ";", "cmp", "=", "NB", ".", "compareUInt32", "(", "w3", ",", "mask", "(", "3", ",", "other", ".", "w3", ")", ")", ";", "if", "(", "cmp", "!=", "0", ")", "return", "cmp", ";", "cmp", "=", "NB", ".", "compareUInt32", "(", "w4", ",", "mask", "(", "4", ",", "other", ".", "w4", ")", ")", ";", "if", "(", "cmp", "!=", "0", ")", "return", "cmp", ";", "return", "NB", ".", "compareUInt32", "(", "w5", ",", "mask", "(", "5", ",", "other", ".", "w5", ")", ")", ";", "}" ]
public int PrefixCompare(AnyObjectId other){int cmp;cmp = NB.CompareUInt32(w1, Mask(1, other.w1));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w2, Mask(2, other.w2));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w3, Mask(3, other.w3));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w4, Mask(4, other.w4));if (cmp != 0){return cmp;}return NB.CompareUInt32(w5, Mask(5, other.w5));}
train
false
7,802
public UpdateRequestValidatorResult updateRequestValidator(UpdateRequestValidatorRequest request) {request = beforeClientExecution(request);return executeUpdateRequestValidator(request);}
[ "public", "UpdateRequestValidatorResult", "updateRequestValidator", "(", "UpdateRequestValidatorRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateRequestValidator", "(", "request", ")", ";", "}" ]
public virtual UpdateRequestValidatorResponse UpdateRequestValidator(UpdateRequestValidatorRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRequestValidatorRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRequestValidatorResponseUnmarshaller.Instance;return Invoke<UpdateRequestValidatorResponse>(request, options);}
train
true
7,803
public Extensions(char extensionFieldDelimiter) {this.extensionFieldDelimiter = extensionFieldDelimiter;}
[ "public", "Extensions", "(", "char", "extensionFieldDelimiter", ")", "{", "this", ".", "extensionFieldDelimiter", "=", "extensionFieldDelimiter", ";", "}" ]
public Extensions(char extensionFieldDelimiter){this.extensionFieldDelimiter = extensionFieldDelimiter;}
train
false
7,804
public TokenStream create(TokenStream input) {return new EnglishMinimalStemFilter(input);}
[ "public", "TokenStream", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "EnglishMinimalStemFilter", "(", "input", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new EnglishMinimalStemFilter(input);}
train
false
7,805
public QueryText getPathElement(int index) {return values.get(index);}
[ "public", "QueryText", "getPathElement", "(", "int", "index", ")", "{", "return", "values", ".", "get", "(", "index", ")", ";", "}" ]
public virtual QueryText GetPathElement(int index){return values[index];}
train
false
7,806
public void serialize(LittleEndianOutput out) {out.writeShort(_sid);out.writeShort(_data.length);out.write(_data);}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeShort", "(", "_sid", ")", ";", "out", ".", "writeShort", "(", "_data", ".", "length", ")", ";", "out", ".", "write", "(", "_data", ")", ";", "}" ]
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(_sid);out1.WriteShort(_data.Length);out1.Write(_data);}
train
false
7,807
public void setQueryConfigHandler(QueryConfigHandler queryConfigHandler) {this.queryConfig = queryConfigHandler;for (QueryNodeProcessor processor : this.processors) {processor.setQueryConfigHandler(this.queryConfig);}}
[ "public", "void", "setQueryConfigHandler", "(", "QueryConfigHandler", "queryConfigHandler", ")", "{", "this", ".", "queryConfig", "=", "queryConfigHandler", ";", "for", "(", "QueryNodeProcessor", "processor", ":", "this", ".", "processors", ")", "{", "processor", ".", "setQueryConfigHandler", "(", "this", ".", "queryConfig", ")", ";", "}", "}" ]
public virtual void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler){this.queryConfig = queryConfigHandler;foreach (IQueryNodeProcessor processor in this.processors){processor.SetQueryConfigHandler(this.queryConfig);}}
train
false
7,808
public DeleteGameSessionQueueResult deleteGameSessionQueue(DeleteGameSessionQueueRequest request) {request = beforeClientExecution(request);return executeDeleteGameSessionQueue(request);}
[ "public", "DeleteGameSessionQueueResult", "deleteGameSessionQueue", "(", "DeleteGameSessionQueueRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteGameSessionQueue", "(", "request", ")", ";", "}" ]
public virtual DeleteGameSessionQueueResponse DeleteGameSessionQueue(DeleteGameSessionQueueRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGameSessionQueueRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGameSessionQueueResponseUnmarshaller.Instance;return Invoke<DeleteGameSessionQueueResponse>(request, options);}
train
true
7,809
public List<DFAState> getStates() {List<DFAState> result = new ArrayList<DFAState>(states.keySet());Collections.sort(result, new Comparator<DFAState>());}
[ "public", "List", "<", "DFAState", ">", "getStates", "(", ")", "{", "List", "<", "DFAState", ">", "result", "=", "new", "ArrayList", "<", "DFAState", ">", "(", "states", ".", "keySet", "(", ")", ")", ";", "Collections", ".", "sort", "(", "result", ",", "new", "Comparator", "<", "DFAState", ">", "(", ")", ")", ";", "}" ]
public List<DFAState> GetStates(){List<DFAState> result = new List<DFAState>(states.Keys);result.Sort((x, y) => x.stateNumber - y.stateNumber);return result;}
train
false
7,810
public static CmpOp getOperator(String value) {int len = value.length();if (len < 1) {return OP_NONE;}char firstChar = value.charAt(0);switch(firstChar) {case '=':return OP_EQ;case '>':if (len > 1) {switch(value.charAt(1)) {case '=':return OP_GE;}}return OP_GT;case '<':if (len > 1) {switch(value.charAt(1)) {case '=':return OP_LE;case '>':return OP_NE;}}return OP_LT;}return OP_NONE;}
[ "public", "static", "CmpOp", "getOperator", "(", "String", "value", ")", "{", "int", "len", "=", "value", ".", "length", "(", ")", ";", "if", "(", "len", "<", "1", ")", "{", "return", "OP_NONE", ";", "}", "char", "firstChar", "=", "value", ".", "charAt", "(", "0", ")", ";", "switch", "(", "firstChar", ")", "{", "case", "'='", ":", "return", "OP_EQ", ";", "case", "'>'", ":", "if", "(", "len", ">", "1", ")", "{", "switch", "(", "value", ".", "charAt", "(", "1", ")", ")", "{", "case", "'='", ":", "return", "OP_GE", ";", "}", "}", "return", "OP_GT", ";", "case", "'<'", ":", "if", "(", "len", ">", "1", ")", "{", "switch", "(", "value", ".", "charAt", "(", "1", ")", ")", "{", "case", "'='", ":", "return", "OP_LE", ";", "case", "'>'", ":", "return", "OP_NE", ";", "}", "}", "return", "OP_LT", ";", "}", "return", "OP_NONE", ";", "}" ]
public static CmpOp GetOperator(String value){int len = value.Length;if (len < 1){return OP_NONE;}char firstChar = value[0];switch (firstChar){case '=':return OP_EQ;case '>':if (len > 1){switch (value[1]){case '=':return OP_GE;}}return OP_GT;case '<':if (len > 1){switch (value[1]){case '=':return OP_LE;case '>':return OP_NE;}}return OP_LT;}return OP_NONE;}
train
false
7,811
public void addChars( char[] characters, int[] widths ){for ( int i = 0; i < characters.length; i++ ){charWidths.put( Character.valueOf(characters[i]), Integer.valueOf(widths[i]));}}
[ "public", "void", "addChars", "(", "char", "[", "]", "characters", ",", "int", "[", "]", "widths", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "characters", ".", "length", ";", "i", "++", ")", "{", "charWidths", ".", "put", "(", "Character", ".", "valueOf", "(", "characters", "[", "i", "]", ")", ",", "Integer", ".", "valueOf", "(", "widths", "[", "i", "]", ")", ")", ";", "}", "}" ]
public void AddChars(char[] Chars, int[] widths){for (int i = 0; i < Chars.Length; i++){if (Chars[i] != ' '){charWidths[Chars[i]] = widths[i];}}}
train
false
7,812
public ShortBuffer duplicate() {return copy(this, mark);}
[ "public", "ShortBuffer", "duplicate", "(", ")", "{", "return", "copy", "(", "this", ",", "mark", ")", ";", "}" ]
public override java.nio.ShortBuffer duplicate(){return copy(this, _mark);}
train
false
7,813
public void setValidating(boolean validating) {features.put (XmlPullParser.FEATURE_VALIDATION, validating);}
[ "public", "void", "setValidating", "(", "boolean", "validating", ")", "{", "features", ".", "put", "(", "XmlPullParser", ".", "FEATURE_VALIDATION", ",", "validating", ")", ";", "}" ]
public virtual void setValidating(bool validating){features.put(org.xmlpull.v1.XmlPullParserClass.FEATURE_VALIDATION, validating);}
train
false
7,814
public DedicatedCapacityInner create(String resourceGroupName, String dedicatedCapacityName, DedicatedCapacityInner capacityParameters) {return createWithServiceResponseAsync(resourceGroupName, dedicatedCapacityName, capacityParameters).toBlocking().last().body();}
[ "public", "DedicatedCapacityInner", "create", "(", "String", "resourceGroupName", ",", "String", "dedicatedCapacityName", ",", "DedicatedCapacityInner", "capacityParameters", ")", "{", "return", "createWithServiceResponseAsync", "(", "resourceGroupName", ",", "dedicatedCapacityName", ",", "capacityParameters", ")", ".", "toBlocking", "(", ")", ".", "last", "(", ")", ".", "body", "(", ")", ";", "}" ]
public async Task<AzureOperationResponse<DedicatedCapacity>> CreateWithHttpMessagesAsync(string resourceGroupName, string dedicatedCapacityName, DedicatedCapacity capacityParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)){return await innerCapacityOperations.CreateWithHttpMessagesAsync(resourceGroupName, dedicatedCapacityName, capacityParameters, customHeaders, cancellationToken).ConfigureAwait(false);}
train
false
7,815
public CancelIngestionResult cancelIngestion(CancelIngestionRequest request) {request = beforeClientExecution(request);return executeCancelIngestion(request);}
[ "public", "CancelIngestionResult", "cancelIngestion", "(", "CancelIngestionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCancelIngestion", "(", "request", ")", ";", "}" ]
public virtual CancelIngestionResponse CancelIngestion(CancelIngestionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelIngestionRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelIngestionResponseUnmarshaller.Instance;return Invoke<CancelIngestionResponse>(request, options);}
train
false
7,816
public void setEncoding(String encodingName) {encoding = Charset.forName(encodingName);}
[ "public", "void", "setEncoding", "(", "String", "encodingName", ")", "{", "encoding", "=", "Charset", ".", "forName", "(", "encodingName", ")", ";", "}" ]
public virtual void SetEncoding(string encodingName){encoding = Sharpen.Extensions.GetEncoding(encodingName);}
train
false
7,817
public DeleteTemplateAliasResult deleteTemplateAlias(DeleteTemplateAliasRequest request) {request = beforeClientExecution(request);return executeDeleteTemplateAlias(request);}
[ "public", "DeleteTemplateAliasResult", "deleteTemplateAlias", "(", "DeleteTemplateAliasRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteTemplateAlias", "(", "request", ")", ";", "}" ]
public virtual DeleteTemplateAliasResponse DeleteTemplateAlias(DeleteTemplateAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTemplateAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTemplateAliasResponseUnmarshaller.Instance;return Invoke<DeleteTemplateAliasResponse>(request, options);}
train
false
7,818
public String resolveNameXText(int refIndex, int definedNameIndex, InternalWorkbook workbook) {int extBookIndex = _externSheetRecord.getExtbookIndexFromRefIndex(refIndex);int firstTabIndex = _externSheetRecord.getFirstSheetIndexFromRefIndex(refIndex);if (firstTabIndex == -1) {throw new RuntimeException("Referenced sheet could not be found");}ExternalBookBlock externalBook = _externalBookBlocks[extBookIndex];if (externalBook._externalNameRecords.length > definedNameIndex) {return _externalBookBlocks[extBookIndex].getNameText(definedNameIndex);} else if (firstTabIndex == -2) {NameRecord nr = getNameRecord(definedNameIndex);int sheetNumber = nr.getSheetNumber();StringBuilder text = new StringBuilder(64);if (sheetNumber > 0) {String sheetName = workbook.getSheetName(sheetNumber - 1);SheetNameFormatter.appendFormat(text, sheetName);text.append("!");}text.append(nr.getNameText());return text.toString();} else {throw new ArrayIndexOutOfBoundsException("Ext Book Index relative but beyond the supported length, was " +extBookIndex + " but maximum is " + _externalBookBlocks.length);}}
[ "public", "String", "resolveNameXText", "(", "int", "refIndex", ",", "int", "definedNameIndex", ",", "InternalWorkbook", "workbook", ")", "{", "int", "extBookIndex", "=", "_externSheetRecord", ".", "getExtbookIndexFromRefIndex", "(", "refIndex", ")", ";", "int", "firstTabIndex", "=", "_externSheetRecord", ".", "getFirstSheetIndexFromRefIndex", "(", "refIndex", ")", ";", "if", "(", "firstTabIndex", "==", "-", "1", ")", "{", "throw", "new", "RuntimeException", "(", "\"Referenced sheet could not be found\"", ")", ";", "}", "ExternalBookBlock", "externalBook", "=", "_externalBookBlocks", "[", "extBookIndex", "]", ";", "if", "(", "externalBook", ".", "_externalNameRecords", ".", "length", ">", "definedNameIndex", ")", "{", "return", "_externalBookBlocks", "[", "extBookIndex", "]", ".", "getNameText", "(", "definedNameIndex", ")", ";", "}", "else", "if", "(", "firstTabIndex", "==", "-", "2", ")", "{", "NameRecord", "nr", "=", "getNameRecord", "(", "definedNameIndex", ")", ";", "int", "sheetNumber", "=", "nr", ".", "getSheetNumber", "(", ")", ";", "StringBuilder", "text", "=", "new", "StringBuilder", "(", "64", ")", ";", "if", "(", "sheetNumber", ">", "0", ")", "{", "String", "sheetName", "=", "workbook", ".", "getSheetName", "(", "sheetNumber", "-", "1", ")", ";", "SheetNameFormatter", ".", "appendFormat", "(", "text", ",", "sheetName", ")", ";", "text", ".", "append", "(", "\"!\"", ")", ";", "}", "text", ".", "append", "(", "nr", ".", "getNameText", "(", ")", ")", ";", "return", "text", ".", "toString", "(", ")", ";", "}", "else", "{", "throw", "new", "ArrayIndexOutOfBoundsException", "(", "\"Ext Book Index relative but beyond the supported length, was \"", "+", "extBookIndex", "+", "\" but maximum is \"", "+", "_externalBookBlocks", ".", "length", ")", ";", "}", "}" ]
public String ResolveNameXText(int refIndex, int definedNameIndex, InternalWorkbook workbook){int extBookIndex = _externSheetRecord.GetExtbookIndexFromRefIndex(refIndex);int firstTabIndex = _externSheetRecord.GetFirstSheetIndexFromRefIndex(refIndex);if (firstTabIndex == -1){throw new RuntimeException("Referenced sheet could not be found");}ExternalBookBlock externalBook = _externalBookBlocks[extBookIndex];if (externalBook._externalNameRecords.Length > definedNameIndex){return _externalBookBlocks[extBookIndex].GetNameText(definedNameIndex);}else if (firstTabIndex == -2){NameRecord nr = GetNameRecord(definedNameIndex);int sheetNumber = nr.SheetNumber;StringBuilder text = new StringBuilder();if (sheetNumber > 0){String sheetName = workbook.GetSheetName(sheetNumber - 1);SheetNameFormatter.AppendFormat(text, sheetName);text.Append("!");}text.Append(nr.NameText);return text.ToString();}else{throw new IndexOutOfRangeException("Ext Book Index relative but beyond the supported length, was " +extBookIndex + " but maximum is " + _externalBookBlocks.Length);}}
train
false
7,819
public InetAddress getRemoteAddress() {return peer;}
[ "public", "InetAddress", "getRemoteAddress", "(", ")", "{", "return", "peer", ";", "}" ]
public virtual IPAddress GetRemoteAddress(){return peer;}
train
false
7,820
public boolean equals(Object obj) {if (obj == this) {return true;}else if (!(obj instanceof LexerTypeAction)) {return false;}return type == ((LexerTypeAction)obj).type;}
[ "public", "boolean", "equals", "(", "Object", "obj", ")", "{", "if", "(", "obj", "==", "this", ")", "{", "return", "true", ";", "}", "else", "if", "(", "!", "(", "obj", "instanceof", "LexerTypeAction", ")", ")", "{", "return", "false", ";", "}", "return", "type", "==", "(", "(", "LexerTypeAction", ")", "obj", ")", ".", "type", ";", "}" ]
public override bool Equals(object obj){if (obj == this){return true;}else{if (!(obj is Antlr4.Runtime.Atn.LexerTypeAction)){return false;}}return type == ((Antlr4.Runtime.Atn.LexerTypeAction)obj).type;}
train
false
7,821
public RefValueArray(RefEval ref) {super(ref.getNumberOfSheets());_ref = ref;_width = ref.getNumberOfSheets();}
[ "public", "RefValueArray", "(", "RefEval", "ref", ")", "{", "super", "(", "ref", ".", "getNumberOfSheets", "(", ")", ")", ";", "_ref", "=", "ref", ";", "_width", "=", "ref", ".", "getNumberOfSheets", "(", ")", ";", "}" ]
public RefValueArray(RefEval ref1): base(ref1.NumberOfSheets){_ref = ref1;_width = ref1.NumberOfSheets;}
train
false
7,822
public static Git wrap(Repository repo) {return new Git(repo);}
[ "public", "static", "Git", "wrap", "(", "Repository", "repo", ")", "{", "return", "new", "Git", "(", "repo", ")", ";", "}" ]
public static NGit.Api.Git Wrap(Repository repo){return new NGit.Api.Git(repo);}
train
false
7,823
public int get64BitNormalisedExponent() {return _binaryExponent + _significand.bitLength() - C_64;}
[ "public", "int", "get64BitNormalisedExponent", "(", ")", "{", "return", "_binaryExponent", "+", "_significand", ".", "bitLength", "(", ")", "-", "C_64", ";", "}" ]
public int Get64BitNormalisedExponent(){return _binaryExponent + _significand.BitLength() - C_64;}
train
false
7,824
public GetRepoWebhookRequest() {super("cr", "2016-06-07", "GetRepoWebhook", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/webhooks");setMethod(MethodType.GET);}
[ "public", "GetRepoWebhookRequest", "(", ")", "{", "super", "(", "\"cr\"", ",", "\"2016-06-07\"", ",", "\"GetRepoWebhook\"", ",", "\"cr\"", ")", ";", "setUriPattern", "(", "\"/repos/[RepoNamespace]/[RepoName]/webhooks\"", ")", ";", "setMethod", "(", "MethodType", ".", "GET", ")", ";", "}" ]
public GetRepoWebhookRequest(): base("cr", "2016-06-07", "GetRepoWebhook", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/webhooks";Method = MethodType.GET;}
train
false
7,825
public Object merge(Object first, Object second) {List<T> outputList = new ArrayList<>();if (!(first instanceof List)) {outputList.add((T) first);} else {outputList.addAll((List<T>) first);}if (!(second instanceof List)) {outputList.add((T) second);} else {outputList.addAll((List<T>) second);}return outputList;}
[ "public", "Object", "merge", "(", "Object", "first", ",", "Object", "second", ")", "{", "List", "<", "T", ">", "outputList", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "if", "(", "!", "(", "first", "instanceof", "List", ")", ")", "{", "outputList", ".", "add", "(", "(", "T", ")", "first", ")", ";", "}", "else", "{", "outputList", ".", "addAll", "(", "(", "List", "<", "T", ">", ")", "first", ")", ";", "}", "if", "(", "!", "(", "second", "instanceof", "List", ")", ")", "{", "outputList", ".", "add", "(", "(", "T", ")", "second", ")", ";", "}", "else", "{", "outputList", ".", "addAll", "(", "(", "List", "<", "T", ">", ")", "second", ")", ";", "}", "return", "outputList", ";", "}" ]
public override object Merge(object first, object second){IList<T> outputList = new JCG.List<T>();if (!(first is IList<T> firstList)){outputList.Add((T)first);}else{foreach (T value in firstList){outputList.Add(value);}}if (!(second is IList<T> secondList)){outputList.Add((T)second);}else{foreach (T value in secondList){outputList.Add(value);}}return outputList;}
train
false
7,826
public UpdateThreatIntelSetResult updateThreatIntelSet(UpdateThreatIntelSetRequest request) {request = beforeClientExecution(request);return executeUpdateThreatIntelSet(request);}
[ "public", "UpdateThreatIntelSetResult", "updateThreatIntelSet", "(", "UpdateThreatIntelSetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateThreatIntelSet", "(", "request", ")", ";", "}" ]
public virtual UpdateThreatIntelSetResponse UpdateThreatIntelSet(UpdateThreatIntelSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateThreatIntelSetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateThreatIntelSetResponseUnmarshaller.Instance;return Invoke<UpdateThreatIntelSetResponse>(request, options);}
train
true
7,827
public final float getFloat(int index) {return Float.intBitsToFloat(getInt(index));}
[ "public", "final", "float", "getFloat", "(", "int", "index", ")", "{", "return", "Float", ".", "intBitsToFloat", "(", "getInt", "(", "index", ")", ")", ";", "}" ]
public sealed override float getFloat(int index){return Sharpen.Util.IntBitsToFloat(getInt(index));}
train
false
7,828
public SortingFields(final Fields in, FieldInfos infos, Sorter.DocMap docMap) {super(in);this.docMap = docMap;this.infos = infos;}
[ "public", "SortingFields", "(", "final", "Fields", "in", ",", "FieldInfos", "infos", ",", "Sorter", ".", "DocMap", "docMap", ")", "{", "super", "(", "in", ")", ";", "this", ".", "docMap", "=", "docMap", ";", "this", ".", "infos", "=", "infos", ";", "}" ]
public SortingFields(Fields input, FieldInfos infos, Sorter.DocMap docMap): base(input){this.docMap = docMap;this.infos = infos;}
train
false
7,829
public static SupBookRecord createAddInFunctions() {return new SupBookRecord(true, (short)1 );}
[ "public", "static", "SupBookRecord", "createAddInFunctions", "(", ")", "{", "return", "new", "SupBookRecord", "(", "true", ",", "(", "short", ")", "1", ")", ";", "}" ]
public static SupBookRecord CreateAddInFunctions(){return new SupBookRecord(true, (short)1);}
train
false
7,830
public ImportClientVpnClientCertificateRevocationListResult importClientVpnClientCertificateRevocationList(ImportClientVpnClientCertificateRevocationListRequest request) {request = beforeClientExecution(request);return executeImportClientVpnClientCertificateRevocationList(request);}
[ "public", "ImportClientVpnClientCertificateRevocationListResult", "importClientVpnClientCertificateRevocationList", "(", "ImportClientVpnClientCertificateRevocationListRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeImportClientVpnClientCertificateRevocationList", "(", "request", ")", ";", "}" ]
public virtual ImportClientVpnClientCertificateRevocationListResponse ImportClientVpnClientCertificateRevocationList(ImportClientVpnClientCertificateRevocationListRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportClientVpnClientCertificateRevocationListRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportClientVpnClientCertificateRevocationListResponseUnmarshaller.Instance;return Invoke<ImportClientVpnClientCertificateRevocationListResponse>(request, options);}
train
true
7,831
public GetVoiceConnectorOriginationResult getVoiceConnectorOrigination(GetVoiceConnectorOriginationRequest request) {request = beforeClientExecution(request);return executeGetVoiceConnectorOrigination(request);}
[ "public", "GetVoiceConnectorOriginationResult", "getVoiceConnectorOrigination", "(", "GetVoiceConnectorOriginationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetVoiceConnectorOrigination", "(", "request", ")", ";", "}" ]
public virtual GetVoiceConnectorOriginationResponse GetVoiceConnectorOrigination(GetVoiceConnectorOriginationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceConnectorOriginationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceConnectorOriginationResponseUnmarshaller.Instance;return Invoke<GetVoiceConnectorOriginationResponse>(request, options);}
train
true
7,832
public GetTypedLinkFacetInformationResult getTypedLinkFacetInformation(GetTypedLinkFacetInformationRequest request) {request = beforeClientExecution(request);return executeGetTypedLinkFacetInformation(request);}
[ "public", "GetTypedLinkFacetInformationResult", "getTypedLinkFacetInformation", "(", "GetTypedLinkFacetInformationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetTypedLinkFacetInformation", "(", "request", ")", ";", "}" ]
public virtual GetTypedLinkFacetInformationResponse GetTypedLinkFacetInformation(GetTypedLinkFacetInformationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTypedLinkFacetInformationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTypedLinkFacetInformationResponseUnmarshaller.Instance;return Invoke<GetTypedLinkFacetInformationResponse>(request, options);}
train
true
7,834
public UpdateDeploymentGroupResult updateDeploymentGroup(UpdateDeploymentGroupRequest request) {request = beforeClientExecution(request);return executeUpdateDeploymentGroup(request);}
[ "public", "UpdateDeploymentGroupResult", "updateDeploymentGroup", "(", "UpdateDeploymentGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateDeploymentGroup", "(", "request", ")", ";", "}" ]
public virtual UpdateDeploymentGroupResponse UpdateDeploymentGroup(UpdateDeploymentGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDeploymentGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDeploymentGroupResponseUnmarshaller.Instance;return Invoke<UpdateDeploymentGroupResponse>(request, options);}
train
true
7,835
public DeleteVaultNotificationsRequest(String accountId, String vaultName) {setAccountId(accountId);setVaultName(vaultName);}
[ "public", "DeleteVaultNotificationsRequest", "(", "String", "accountId", ",", "String", "vaultName", ")", "{", "setAccountId", "(", "accountId", ")", ";", "setVaultName", "(", "vaultName", ")", ";", "}" ]
public DeleteVaultNotificationsRequest(string accountId, string vaultName){_accountId = accountId;_vaultName = vaultName;}
train
false
7,836
@Override public boolean contains(Object key) {return subMap.containsKey(key);}
[ "@", "Override", "public", "boolean", "contains", "(", "Object", "key", ")", "{", "return", "subMap", ".", "containsKey", "(", "key", ")", ";", "}" ]
public override bool contains(object o){return this._enclosing.containsKey(o);}
train
false
7,838
public DeleteGitHubAccountTokenResult deleteGitHubAccountToken(DeleteGitHubAccountTokenRequest request) {request = beforeClientExecution(request);return executeDeleteGitHubAccountToken(request);}
[ "public", "DeleteGitHubAccountTokenResult", "deleteGitHubAccountToken", "(", "DeleteGitHubAccountTokenRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteGitHubAccountToken", "(", "request", ")", ";", "}" ]
public virtual DeleteGitHubAccountTokenResponse DeleteGitHubAccountToken(DeleteGitHubAccountTokenRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGitHubAccountTokenRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGitHubAccountTokenResponseUnmarshaller.Instance;return Invoke<DeleteGitHubAccountTokenResponse>(request, options);}
train
true
7,839
public GetPasswordDataRequest(String instanceId) {setInstanceId(instanceId);}
[ "public", "GetPasswordDataRequest", "(", "String", "instanceId", ")", "{", "setInstanceId", "(", "instanceId", ")", ";", "}" ]
public GetPasswordDataRequest(string instanceId){_instanceId = instanceId;}
train
false
7,840
public GetCloudFrontOriginAccessIdentityConfigRequest(String id) {setId(id);}
[ "public", "GetCloudFrontOriginAccessIdentityConfigRequest", "(", "String", "id", ")", "{", "setId", "(", "id", ")", ";", "}" ]
public GetCloudFrontOriginAccessIdentityConfigRequest(string id){_id = id;}
train
false
7,841
public STSAssumeRoleSessionCredentialsProvider withRoleSessionDurationSeconds(long roleSessionDurationSeconds) {if (roleSessionDurationSeconds < 900 || roleSessionDurationSeconds > 3600) {throw new IllegalArgumentException("Assume Role session duration should be in the range of 15min - 1Hr");}this.roleSessionDurationSeconds = roleSessionDurationSeconds;return this;}
[ "public", "STSAssumeRoleSessionCredentialsProvider", "withRoleSessionDurationSeconds", "(", "long", "roleSessionDurationSeconds", ")", "{", "if", "(", "roleSessionDurationSeconds", "<", "900", "||", "roleSessionDurationSeconds", ">", "3600", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Assume Role session duration should be in the range of 15min - 1Hr\"", ")", ";", "}", "this", ".", "roleSessionDurationSeconds", "=", "roleSessionDurationSeconds", ";", "return", "this", ";", "}" ]
public void WithRoleSessionDurationSeconds(long roleSessionDurationSeconds){if (roleSessionDurationSeconds < 180 || roleSessionDurationSeconds > 3600){throw new ArgumentOutOfRangeException("Assume Role session duration should be in the range of 3min - 1Hr");}this.roleSessionDurationSeconds = roleSessionDurationSeconds;}
train
false
7,842
final public QueryNode ModClause(CharSequence field) throws ParseException {QueryNode q;ModifierQueryNode.Modifier mods;mods = Modifiers();q = Clause(field);if (mods != ModifierQueryNode.Modifier.MOD_NONE) {q = new ModifierQueryNode(q, mods);}{if (true) return q;}throw new Error("Missing return statement in function");}
[ "final", "public", "QueryNode", "ModClause", "(", "CharSequence", "field", ")", "throws", "ParseException", "{", "QueryNode", "q", ";", "ModifierQueryNode", ".", "Modifier", "mods", ";", "mods", "=", "Modifiers", "(", ")", ";", "q", "=", "Clause", "(", "field", ")", ";", "if", "(", "mods", "!=", "ModifierQueryNode", ".", "Modifier", ".", "MOD_NONE", ")", "{", "q", "=", "new", "ModifierQueryNode", "(", "q", ",", "mods", ")", ";", "}", "{", "if", "(", "true", ")", "return", "q", ";", "}", "throw", "new", "Error", "(", "\"Missing return statement in function\"", ")", ";", "}" ]
public IQueryNode ModClause(string field){IQueryNode q;Modifier mods;mods = Modifiers();q = Clause(field);if (mods != Modifier.MOD_NONE){q = new ModifierQueryNode(q, mods);}{ if (true) return q; }throw new Exception("Missing return statement in function");}
train
false
7,843
public AbbreviatedObjectId getOldId(int nthParent) {return oldIds[nthParent];}
[ "public", "AbbreviatedObjectId", "getOldId", "(", "int", "nthParent", ")", "{", "return", "oldIds", "[", "nthParent", "]", ";", "}" ]
public virtual AbbreviatedObjectId GetOldId(int nthParent){return oldIds[nthParent];}
train
false
7,844
public HttpRequest(String strUrl, Map<String, String> tmpHeaders) {super(strUrl);if (null != tmpHeaders) {this.headers = tmpHeaders;}}
[ "public", "HttpRequest", "(", "String", "strUrl", ",", "Map", "<", "String", ",", "String", ">", "tmpHeaders", ")", "{", "super", "(", "strUrl", ")", ";", "if", "(", "null", "!=", "tmpHeaders", ")", "{", "this", ".", "headers", "=", "tmpHeaders", ";", "}", "}" ]
public HttpRequest(string strUrl, Dictionary<string, string> tmpHeaders){Url = strUrl;if (null != tmpHeaders){Headers = tmpHeaders;}}
train
false
7,845
public AcceptInvitationResult acceptInvitation(AcceptInvitationRequest request) {request = beforeClientExecution(request);return executeAcceptInvitation(request);}
[ "public", "AcceptInvitationResult", "acceptInvitation", "(", "AcceptInvitationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAcceptInvitation", "(", "request", ")", ";", "}" ]
public virtual AcceptInvitationResponse AcceptInvitation(AcceptInvitationRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptInvitationRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptInvitationResponseUnmarshaller.Instance;return Invoke<AcceptInvitationResponse>(request, options);}
train
true
7,846
public int getFormatIndex(CellValueRecordInterface cell) {ExtendedFormatRecord xfr = _xfRecords.get(cell.getXFIndex());if (xfr == null) {logger.log( POILogger.ERROR, "Cell " + cell.getRow() + "," + cell.getColumn()+ " uses XF with index " + cell.getXFIndex() + ", but we don't have that");return -1;}return xfr.getFormatIndex();}
[ "public", "int", "getFormatIndex", "(", "CellValueRecordInterface", "cell", ")", "{", "ExtendedFormatRecord", "xfr", "=", "_xfRecords", ".", "get", "(", "cell", ".", "getXFIndex", "(", ")", ")", ";", "if", "(", "xfr", "==", "null", ")", "{", "logger", ".", "log", "(", "POILogger", ".", "ERROR", ",", "\"Cell \"", "+", "cell", ".", "getRow", "(", ")", "+", "\",\"", "+", "cell", ".", "getColumn", "(", ")", "+", "\" uses XF with index \"", "+", "cell", ".", "getXFIndex", "(", ")", "+", "\", but we don't have that\"", ")", ";", "return", "-", "1", ";", "}", "return", "xfr", ".", "getFormatIndex", "(", ")", ";", "}" ]
public int GetFormatIndex(CellValueRecordInterface cell){ExtendedFormatRecord xfr = (ExtendedFormatRecord)xfRecords[cell.XFIndex];if (xfr == null){logger.Log(POILogger.ERROR, "Cell " + cell.Row + "," + cell.Column + " uses XF with index " + cell.XFIndex + ", but we don't have that");return -1;}return xfr.FormatIndex;}
train
true
7,847
public final File getFile() {return path;}
[ "public", "final", "File", "getFile", "(", ")", "{", "return", "path", ";", "}" ]
public FilePath GetFile(){return path;}
train
false
7,850
public PushCommand setRefSpecs(List<RefSpec> specs) {checkCallable();this.refSpecs.clear();this.refSpecs.addAll(specs);return this;}
[ "public", "PushCommand", "setRefSpecs", "(", "List", "<", "RefSpec", ">", "specs", ")", "{", "checkCallable", "(", ")", ";", "this", ".", "refSpecs", ".", "clear", "(", ")", ";", "this", ".", "refSpecs", ".", "addAll", "(", "specs", ")", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.PushCommand SetRefSpecs(IList<RefSpec> specs){CheckCallable();this.refSpecs.Clear();Sharpen.Collections.AddAll(this.refSpecs, specs);return this;}
train
false
7,851
public static boolean isBinary(byte[] raw, int length) {if (length > FIRST_FEW_BYTES)length = FIRST_FEW_BYTES;for (int ptr = 0; ptr < length; ptr++)if (raw[ptr] == '\0')return true;return false;}
[ "public", "static", "boolean", "isBinary", "(", "byte", "[", "]", "raw", ",", "int", "length", ")", "{", "if", "(", "length", ">", "FIRST_FEW_BYTES", ")", "length", "=", "FIRST_FEW_BYTES", ";", "for", "(", "int", "ptr", "=", "0", ";", "ptr", "<", "length", ";", "ptr", "++", ")", "if", "(", "raw", "[", "ptr", "]", "==", "'\\0'", ")", "return", "true", ";", "return", "false", ";", "}" ]
public static bool IsBinary(byte[] raw, int length){if (length > FIRST_FEW_BYTES){length = FIRST_FEW_BYTES;}for (int ptr = 0; ptr < length; ptr++){if (raw[ptr] == '\0'){return true;}}return false;}
train
false
7,852
@Override public void clear() {AbstractBiMap.this.clear();}
[ "@", "Override", "public", "void", "clear", "(", ")", "{", "AbstractBiMap", ".", "this", ".", "clear", "(", ")", ";", "}" ]
public override void clear(){this._enclosing.clear();}
train
false
7,853
public PackingPhase getPhase() {return phase;}
[ "public", "PackingPhase", "getPhase", "(", ")", "{", "return", "phase", ";", "}" ]
public virtual PackWriter.PackingPhase GetPhase(){return this.phase;}
train
false
7,854
public State clone() {State clone = new State();clone.attribute = attribute.clone();if (next != null) {clone.next = next.clone();}return clone;}
[ "public", "State", "clone", "(", ")", "{", "State", "clone", "=", "new", "State", "(", ")", ";", "clone", ".", "attribute", "=", "attribute", ".", "clone", "(", ")", ";", "if", "(", "next", "!=", "null", ")", "{", "clone", ".", "next", "=", "next", ".", "clone", "(", ")", ";", "}", "return", "clone", ";", "}" ]
public object Clone(){State clone = new State();clone.attribute = (Attribute)attribute.Clone();if (next != null){clone.next = (State)next.Clone();}return clone;}
train
false
7,855
public static double acosh(double a) {return Math.log(Math.sqrt(a * a - 1.0d) + a);}
[ "public", "static", "double", "acosh", "(", "double", "a", ")", "{", "return", "Math", ".", "log", "(", "Math", ".", "sqrt", "(", "a", "*", "a", "-", "1.0d", ")", "+", "a", ")", ";", "}" ]
public static double Acosh(double a){return Math.Log(Math.Sqrt(a * a - 1.0d) + a);}
train
false
7,856
public GetSearchSuggestionsResult getSearchSuggestions(GetSearchSuggestionsRequest request) {request = beforeClientExecution(request);return executeGetSearchSuggestions(request);}
[ "public", "GetSearchSuggestionsResult", "getSearchSuggestions", "(", "GetSearchSuggestionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetSearchSuggestions", "(", "request", ")", ";", "}" ]
public virtual GetSearchSuggestionsResponse GetSearchSuggestions(GetSearchSuggestionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSearchSuggestionsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSearchSuggestionsResponseUnmarshaller.Instance;return Invoke<GetSearchSuggestionsResponse>(request, options);}
train
true