id_within_dataset
int64
0
10.3k
snippet
stringlengths
29
1.4k
tokens
sequencelengths
10
314
cs
stringlengths
28
1.38k
split_within_dataset
stringclasses
1 value
is_duplicated
bool
2 classes
216
public UDFFinder getUDFFinder(){return _uBook.getUDFFinder();}
[ "public", "UDFFinder", "getUDFFinder", "(", ")", "{", "return", "_uBook", ".", "getUDFFinder", "(", ")", ";", "}" ]
public UDFFinder GetUDFFinder(){return _uBook.GetUDFFinder();}
train
false
217
public ExternalName getExternalName(String nameName, String sheetName, int externalWorkbookNumber) {throw new IllegalStateException("XSSF-style external names are not supported for HSSF");}
[ "public", "ExternalName", "getExternalName", "(", "String", "nameName", ",", "String", "sheetName", ",", "int", "externalWorkbookNumber", ")", "{", "throw", "new", "IllegalStateException", "(", "\"XSSF-style external names are not supported for HSSF\"", ")", ";", "}" ]
public ExternalName GetExternalName(String nameName, String sheetName, int externalWorkbookNumber){throw new InvalidOperationException("XSSF-style external names are not supported for HSSF");}
train
false
218
public OldFormulaRecord(RecordInputStream ris) {super(ris, ris.getSid() == biff2_sid);if (isBiff2()) {field_4_value = ris.readDouble();} else {long valueLongBits = ris.readLong();specialCachedValue = FormulaSpecialCachedValue.create(valueLongBits);if (specialCachedValue == null) {field_4_value = Double.longBitsToDouble(valueLongBits);}}if (isBiff2()) {field_5_options = (short)ris.readUByte();} else {field_5_options = ris.readShort();}int expression_len = ris.readShort();int nBytesAvailable = ris.available();field_6_parsed_expr = Formula.read(expression_len, ris, nBytesAvailable);}
[ "public", "OldFormulaRecord", "(", "RecordInputStream", "ris", ")", "{", "super", "(", "ris", ",", "ris", ".", "getSid", "(", ")", "==", "biff2_sid", ")", ";", "if", "(", "isBiff2", "(", ")", ")", "{", "field_4_value", "=", "ris", ".", "readDouble", "(", ")", ";", "}", "else", "{", "long", "valueLongBits", "=", "ris", ".", "readLong", "(", ")", ";", "specialCachedValue", "=", "FormulaSpecialCachedValue", ".", "create", "(", "valueLongBits", ")", ";", "if", "(", "specialCachedValue", "==", "null", ")", "{", "field_4_value", "=", "Double", ".", "longBitsToDouble", "(", "valueLongBits", ")", ";", "}", "}", "if", "(", "isBiff2", "(", ")", ")", "{", "field_5_options", "=", "(", "short", ")", "ris", ".", "readUByte", "(", ")", ";", "}", "else", "{", "field_5_options", "=", "ris", ".", "readShort", "(", ")", ";", "}", "int", "expression_len", "=", "ris", ".", "readShort", "(", ")", ";", "int", "nBytesAvailable", "=", "ris", ".", "available", "(", ")", ";", "field_6_parsed_expr", "=", "Formula", ".", "read", "(", "expression_len", ",", "ris", ",", "nBytesAvailable", ")", ";", "}" ]
public OldFormulaRecord(RecordInputStream ris) :base(ris, ris.Sid == biff2_sid){;if (IsBiff2){field_4_value = ris.ReadDouble();}else{long valueLongBits = ris.ReadLong();specialCachedValue = SpecialCachedValue.Create(valueLongBits);if (specialCachedValue == null){field_4_value = BitConverter.Int64BitsToDouble(valueLongBits);}}if (IsBiff2){field_5_options = (short)ris.ReadUByte();}else{field_5_options = ris.ReadShort();}int expression_len = ris.ReadShort();int nBytesAvailable = ris.Available();field_6_Parsed_expr = Formula.Read(expression_len, ris, nBytesAvailable);}
train
false
219
public int stem(char s[], int len) {assert s.length >= len + 1 : "this stemmer requires an oversized array of at least 1";len = plural.apply(s, len);len = unification.apply(s, len);len = adverb.apply(s, len);int oldlen;do {oldlen = len;len = augmentative.apply(s, len);} while (len != oldlen);oldlen = len;len = noun.apply(s, len);if (len == oldlen) { len = verb.apply(s, len);}len = vowel.apply(s, len);for (int i = 0; i < len; i++)switch(s[i]) {case 'á': s[i] = 'a'; break;case 'é':case 'ê': s[i] = 'e'; break;case 'í': s[i] = 'i'; break;case 'ó': s[i] = 'o'; break;case 'ú': s[i] = 'u'; break;}return len;}
[ "public", "int", "stem", "(", "char", "s", "[", "]", ",", "int", "len", ")", "{", "assert", "s", ".", "length", ">=", "len", "+", "1", ":", "\"this stemmer requires an oversized array of at least 1\"", ";", "len", "=", "plural", ".", "apply", "(", "s", ",", "len", ")", ";", "len", "=", "unification", ".", "apply", "(", "s", ",", "len", ")", ";", "len", "=", "adverb", ".", "apply", "(", "s", ",", "len", ")", ";", "int", "oldlen", ";", "do", "{", "oldlen", "=", "len", ";", "len", "=", "augmentative", ".", "apply", "(", "s", ",", "len", ")", ";", "}", "while", "(", "len", "!=", "oldlen", ")", ";", "oldlen", "=", "len", ";", "len", "=", "noun", ".", "apply", "(", "s", ",", "len", ")", ";", "if", "(", "len", "==", "oldlen", ")", "{", "len", "=", "verb", ".", "apply", "(", "s", ",", "len", ")", ";", "}", "len", "=", "vowel", ".", "apply", "(", "s", ",", "len", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "++", ")", "switch", "(", "s", "[", "i", "]", ")", "{", "case", "'á'", ":", "s", "[", "i", "]", "=", "'a'", ";", "break", ";", "case", "'é'", ":", "case", "'ê'", ":", "s", "[", "i", "]", "=", "'e'", ";", "break", ";", "case", "'í'", ":", "s", "[", "i", "]", "=", "'i'", ";", "break", ";", "case", "'ó'", ":", "s", "[", "i", "]", "=", "'o'", ";", "break", ";", "case", "'ú'", ":", "s", "[", "i", "]", "=", "'u'", ";", "break", ";", "}", "return", "len", ";", "}" ]
public virtual int Stem(char[] s, int len){Debug.Assert(s.Length >= len + 1, "this stemmer requires an oversized array of at least 1");len = plural.Apply(s, len);len = unification.Apply(s, len);len = adverb.Apply(s, len);int oldlen;do{oldlen = len;len = augmentative.Apply(s, len);} while (len != oldlen);oldlen = len;len = noun.Apply(s, len);if (len == oldlen) {len = verb.Apply(s, len);}len = vowel.Apply(s, len);for (int i = 0; i < len; i++){switch (s[i]){case 'á':s[i] = 'a';break;case 'é':case 'ê':s[i] = 'e';break;case 'í':s[i] = 'i';break;case 'ó':s[i] = 'o';break;case 'ú':s[i] = 'u';break;}}return len;}
train
false
220
public boolean sameProperties(FontRecord other) {returnfield_1_font_height == other.field_1_font_height &&field_2_attributes == other.field_2_attributes &&field_3_color_palette_index == other.field_3_color_palette_index &&field_4_bold_weight == other.field_4_bold_weight &&field_5_super_sub_script == other.field_5_super_sub_script &&field_6_underline == other.field_6_underline &&field_7_family == other.field_7_family &&field_8_charset == other.field_8_charset &&field_9_zero == other.field_9_zero &&Objects.equals(this.field_11_font_name, other.field_11_font_name);}
[ "public", "boolean", "sameProperties", "(", "FontRecord", "other", ")", "{", "returnfield_1_font_height", "==", "other", ".", "field_1_font_height", "&&", "field_2_attributes", "==", "other", ".", "field_2_attributes", "&&", "field_3_color_palette_index", "==", "other", ".", "field_3_color_palette_index", "&&", "field_4_bold_weight", "==", "other", ".", "field_4_bold_weight", "&&", "field_5_super_sub_script", "==", "other", ".", "field_5_super_sub_script", "&&", "field_6_underline", "==", "other", ".", "field_6_underline", "&&", "field_7_family", "==", "other", ".", "field_7_family", "&&", "field_8_charset", "==", "other", ".", "field_8_charset", "&&", "field_9_zero", "==", "other", ".", "field_9_zero", "&&", "Objects", ".", "equals", "(", "this", ".", "field_11_font_name", ",", "other", ".", "field_11_font_name", ")", ";", "}" ]
public bool SameProperties(FontRecord other){returnfield_1_font_height == other.field_1_font_height &&field_2_attributes == other.field_2_attributes &&field_3_color_palette_index == other.field_3_color_palette_index &&field_4_bold_weight == other.field_4_bold_weight &&field_5_base_sub_script == other.field_5_base_sub_script &&field_6_underline == other.field_6_underline &&field_7_family == other.field_7_family &&field_8_charset == other.field_8_charset &&field_9_zero == other.field_9_zero &&field_11_font_name.Equals(other.field_11_font_name);}
train
false
221
public String toFormulaString() {return FormulaError.REF.getString();}
[ "public", "String", "toFormulaString", "(", ")", "{", "return", "FormulaError", ".", "REF", ".", "getString", "(", ")", ";", "}" ]
public override String ToFormulaString(){return HSSFErrorConstants.GetText(HSSFErrorConstants.ERROR_REF);}
train
false
222
public StartTextDetectionResult startTextDetection(StartTextDetectionRequest request) {request = beforeClientExecution(request);return executeStartTextDetection(request);}
[ "public", "StartTextDetectionResult", "startTextDetection", "(", "StartTextDetectionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStartTextDetection", "(", "request", ")", ";", "}" ]
public virtual StartTextDetectionResponse StartTextDetection(StartTextDetectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartTextDetectionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartTextDetectionResponseUnmarshaller.Instance;return Invoke<StartTextDetectionResponse>(request, options);}
train
false
223
public DeleteMessageBatchRequestEntry(String id, String receiptHandle) {setId(id);setReceiptHandle(receiptHandle);}
[ "public", "DeleteMessageBatchRequestEntry", "(", "String", "id", ",", "String", "receiptHandle", ")", "{", "setId", "(", "id", ")", ";", "setReceiptHandle", "(", "receiptHandle", ")", ";", "}" ]
public DeleteMessageBatchRequestEntry(string id, string receiptHandle){_id = id;_receiptHandle = receiptHandle;}
train
false
224
public PatternCaptureGroupTokenFilter create(TokenStream input) {return new PatternCaptureGroupTokenFilter(input, preserveOriginal, pattern);}
[ "public", "PatternCaptureGroupTokenFilter", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "PatternCaptureGroupTokenFilter", "(", "input", ",", "preserveOriginal", ",", "pattern", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new PatternCaptureGroupTokenFilter(input, preserveOriginal, pattern);}
train
false
225
public SigningCertificate(String userName, String certificateId, String certificateBody, StatusType status) {setUserName(userName);setCertificateId(certificateId);setCertificateBody(certificateBody);setStatus(status.toString());}
[ "public", "SigningCertificate", "(", "String", "userName", ",", "String", "certificateId", ",", "String", "certificateBody", ",", "StatusType", "status", ")", "{", "setUserName", "(", "userName", ")", ";", "setCertificateId", "(", "certificateId", ")", ";", "setCertificateBody", "(", "certificateBody", ")", ";", "setStatus", "(", "status", ".", "toString", "(", ")", ")", ";", "}" ]
public SigningCertificate(string userName, string certificateId, string certificateBody, StatusType status){_userName = userName;_certificateId = certificateId;_certificateBody = certificateBody;_status = status;}
train
false
226
public DistributionConfig(String callerReference, Boolean enabled) {setCallerReference(callerReference);setEnabled(enabled);}
[ "public", "DistributionConfig", "(", "String", "callerReference", ",", "Boolean", "enabled", ")", "{", "setCallerReference", "(", "callerReference", ")", ";", "setEnabled", "(", "enabled", ")", ";", "}" ]
public DistributionConfig(string callerReference, bool enabled){_callerReference = callerReference;_enabled = enabled;}
train
false
227
public FastCharStream(Reader r) {input = r;}
[ "public", "FastCharStream", "(", "Reader", "r", ")", "{", "input", "=", "r", ";", "}" ]
public FastCharStream(TextReader r){input = r;}
train
false
228
public int end(int group) {ensureMatch();return matchOffsets[(group * 2) + 1];}
[ "public", "int", "end", "(", "int", "group", ")", "{", "ensureMatch", "(", ")", ";", "return", "matchOffsets", "[", "(", "group", "*", "2", ")", "+", "1", "]", ";", "}" ]
public int end(int group_1){ensureMatch();return matchOffsets[(group_1 * 2) + 1];}
train
false
230
public BlameCommand setTextComparator(RawTextComparator textComparator) {this.textComparator = textComparator;return this;}
[ "public", "BlameCommand", "setTextComparator", "(", "RawTextComparator", "textComparator", ")", "{", "this", ".", "textComparator", "=", "textComparator", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.BlameCommand SetTextComparator(RawTextComparator textComparator){this.textComparator = textComparator;return this;}
train
false
231
public final T pop() {if (size > 0) {T result = heap[1]; heap[1] = heap[size]; heap[size] = null; size--;downHeap(1); return result;} else {return null;}}
[ "public", "final", "T", "pop", "(", ")", "{", "if", "(", "size", ">", "0", ")", "{", "T", "result", "=", "heap", "[", "1", "]", ";", "heap", "[", "1", "]", "=", "heap", "[", "size", "]", ";", "heap", "[", "size", "]", "=", "null", ";", "size", "--", ";", "downHeap", "(", "1", ")", ";", "return", "result", ";", "}", "else", "{", "return", "null", ";", "}", "}" ]
public T Pop(){if (size > 0){T result = heap[1]; heap[1] = heap[size]; heap[size] = default(T); size--;DownHeap(); return result;}else{return default(T);}}
train
true
233
public static String shortenRefName(String noteRefName) {if (noteRefName.startsWith(Constants.R_NOTES))return noteRefName.substring(Constants.R_NOTES.length());return noteRefName;}
[ "public", "static", "String", "shortenRefName", "(", "String", "noteRefName", ")", "{", "if", "(", "noteRefName", ".", "startsWith", "(", "Constants", ".", "R_NOTES", ")", ")", "return", "noteRefName", ".", "substring", "(", "Constants", ".", "R_NOTES", ".", "length", "(", ")", ")", ";", "return", "noteRefName", ";", "}" ]
public static string ShortenRefName(string noteRefName){if (noteRefName.StartsWith(Constants.R_NOTES)){return Sharpen.Runtime.Substring(noteRefName, Constants.R_NOTES.Length);}return noteRefName;}
train
false
234
public DescribeDomainsResult describeDomains() {return describeDomains(new DescribeDomainsRequest());}
[ "public", "DescribeDomainsResult", "describeDomains", "(", ")", "{", "return", "describeDomains", "(", "new", "DescribeDomainsRequest", "(", ")", ")", ";", "}" ]
public virtual DescribeDomainsResponse DescribeDomains(){return DescribeDomains(new DescribeDomainsRequest());}
train
false
235
public int available() {return ccis.available();}
[ "public", "int", "available", "(", ")", "{", "return", "ccis", ".", "available", "(", ")", ";", "}" ]
public int Available(){return _le.Available();}
train
false
236
public GetContentModerationResult getContentModeration(GetContentModerationRequest request) {request = beforeClientExecution(request);return executeGetContentModeration(request);}
[ "public", "GetContentModerationResult", "getContentModeration", "(", "GetContentModerationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetContentModeration", "(", "request", ")", ";", "}" ]
public virtual GetContentModerationResponse GetContentModeration(GetContentModerationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetContentModerationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetContentModerationResponseUnmarshaller.Instance;return Invoke<GetContentModerationResponse>(request, options);}
train
true
237
public PrintStream(OutputStream out) {super(out);if (out == null) {throw new NullPointerException();}}
[ "public", "PrintStream", "(", "OutputStream", "out", ")", "{", "super", "(", "out", ")", ";", "if", "(", "out", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", ")", ";", "}", "}" ]
public PrintStream(java.io.OutputStream @out) : base(@out){if (@out == null){throw new System.ArgumentNullException();}}
train
false
239
public GetIntegrationResult getIntegration(GetIntegrationRequest request) {request = beforeClientExecution(request);return executeGetIntegration(request);}
[ "public", "GetIntegrationResult", "getIntegration", "(", "GetIntegrationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetIntegration", "(", "request", ")", ";", "}" ]
public virtual GetIntegrationResponse GetIntegration(GetIntegrationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIntegrationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIntegrationResponseUnmarshaller.Instance;return Invoke<GetIntegrationResponse>(request, options);}
train
true
240
public void setVisibility(int v) {if (getVisibility() != v) {super.setVisibility(v);if (mIndeterminate) {if (v == GONE || v == INVISIBLE) {stopAnimation();} else {startAnimation();}}}}
[ "public", "void", "setVisibility", "(", "int", "v", ")", "{", "if", "(", "getVisibility", "(", ")", "!=", "v", ")", "{", "super", ".", "setVisibility", "(", "v", ")", ";", "if", "(", "mIndeterminate", ")", "{", "if", "(", "v", "==", "GONE", "||", "v", "==", "INVISIBLE", ")", "{", "stopAnimation", "(", ")", ";", "}", "else", "{", "startAnimation", "(", ")", ";", "}", "}", "}", "}" ]
public override void setVisibility(int v){if (getVisibility() != v){base.setVisibility(v);if (mIndeterminate){if (v == GONE || v == INVISIBLE){stopAnimation();}else{startAnimation();}}}}
train
true
241
public boolean matches(char s[], int len) {if (!super.matches(s, len))return false;for (int i = 0; i < exceptions.length; i++)if (endsWith(s, len, exceptions[i]))return false;return true;}
[ "public", "boolean", "matches", "(", "char", "s", "[", "]", ",", "int", "len", ")", "{", "if", "(", "!", "super", ".", "matches", "(", "s", ",", "len", ")", ")", "return", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "exceptions", ".", "length", ";", "i", "++", ")", "if", "(", "endsWith", "(", "s", ",", "len", ",", "exceptions", "[", "i", "]", ")", ")", "return", "false", ";", "return", "true", ";", "}" ]
public override bool Matches(char[] s, int len){if (!base.Matches(s, len)){return false;}for (int i = 0; i < m_exceptions.Length; i++){if (StemmerUtil.EndsWith(s, len, m_exceptions[i])){return false;}}return true;}
train
false
242
public DescribeFleetCapacityResult describeFleetCapacity(DescribeFleetCapacityRequest request) {request = beforeClientExecution(request);return executeDescribeFleetCapacity(request);}
[ "public", "DescribeFleetCapacityResult", "describeFleetCapacity", "(", "DescribeFleetCapacityRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeFleetCapacity", "(", "request", ")", ";", "}" ]
public virtual DescribeFleetCapacityResponse DescribeFleetCapacity(DescribeFleetCapacityRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFleetCapacityRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFleetCapacityResponseUnmarshaller.Instance;return Invoke<DescribeFleetCapacityResponse>(request, options);}
train
true
243
public UploadPackInternalServerErrorException(Throwable why) {initCause(why);}
[ "public", "UploadPackInternalServerErrorException", "(", "Throwable", "why", ")", "{", "initCause", "(", "why", ")", ";", "}" ]
public UploadPackInternalServerErrorException(Exception why){Sharpen.Extensions.InitCause(this, why);}
train
false
244
public GetNetworkResult getNetwork(GetNetworkRequest request) {request = beforeClientExecution(request);return executeGetNetwork(request);}
[ "public", "GetNetworkResult", "getNetwork", "(", "GetNetworkRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetNetwork", "(", "request", ")", ";", "}" ]
public virtual GetNetworkResponse GetNetwork(GetNetworkRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetNetworkRequestMarshaller.Instance;options.ResponseUnmarshaller = GetNetworkResponseUnmarshaller.Instance;return Invoke<GetNetworkResponse>(request, options);}
train
false
245
public AllocatePrivateVirtualInterfaceResult allocatePrivateVirtualInterface(AllocatePrivateVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeAllocatePrivateVirtualInterface(request);}
[ "public", "AllocatePrivateVirtualInterfaceResult", "allocatePrivateVirtualInterface", "(", "AllocatePrivateVirtualInterfaceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAllocatePrivateVirtualInterface", "(", "request", ")", ";", "}" ]
public virtual AllocatePrivateVirtualInterfaceResponse AllocatePrivateVirtualInterface(AllocatePrivateVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AllocatePrivateVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = AllocatePrivateVirtualInterfaceResponseUnmarshaller.Instance;return Invoke<AllocatePrivateVirtualInterfaceResponse>(request, options);}
train
true
246
public GetDeploymentResult getDeployment(GetDeploymentRequest request) {request = beforeClientExecution(request);return executeGetDeployment(request);}
[ "public", "GetDeploymentResult", "getDeployment", "(", "GetDeploymentRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetDeployment", "(", "request", ")", ";", "}" ]
public virtual GetDeploymentResponse GetDeployment(GetDeploymentRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDeploymentRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDeploymentResponseUnmarshaller.Instance;return Invoke<GetDeploymentResponse>(request, options);}
train
true
247
public UpdateRepoAuthorizationRequest() {super("cr", "2016-06-07", "UpdateRepoAuthorization", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/authorizations/[AuthorizeId]");setMethod(MethodType.POST);}
[ "public", "UpdateRepoAuthorizationRequest", "(", ")", "{", "super", "(", "\"cr\"", ",", "\"2016-06-07\"", ",", "\"UpdateRepoAuthorization\"", ",", "\"cr\"", ")", ";", "setUriPattern", "(", "\"/repos/[RepoNamespace]/[RepoName]/authorizations/[AuthorizeId]\"", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ")", ";", "}" ]
public UpdateRepoAuthorizationRequest(): base("cr", "2016-06-07", "UpdateRepoAuthorization", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/authorizations/[AuthorizeId]";Method = MethodType.POST;}
train
false
248
public void foldToASCII(char[] input, int length){final int maxSizeNeeded = 4 * length;if (output.length < maxSizeNeeded) {output = new char[ArrayUtil.oversize(maxSizeNeeded, Character.BYTES)];}outputPos = foldToASCII(input, 0, output, 0, length);if (preserveOriginal && needToPreserve(input, length)) {state = captureState();}}
[ "public", "void", "foldToASCII", "(", "char", "[", "]", "input", ",", "int", "length", ")", "{", "final", "int", "maxSizeNeeded", "=", "4", "*", "length", ";", "if", "(", "output", ".", "length", "<", "maxSizeNeeded", ")", "{", "output", "=", "new", "char", "[", "ArrayUtil", ".", "oversize", "(", "maxSizeNeeded", ",", "Character", ".", "BYTES", ")", "]", ";", "}", "outputPos", "=", "foldToASCII", "(", "input", ",", "0", ",", "output", ",", "0", ",", "length", ")", ";", "if", "(", "preserveOriginal", "&&", "needToPreserve", "(", "input", ",", "length", ")", ")", "{", "state", "=", "captureState", "(", ")", ";", "}", "}" ]
public void FoldToASCII(char[] input, int length){if (preserveOriginal){state = CaptureState();}int maxSizeNeeded = 4 * length;if (output.Length < maxSizeNeeded){output = new char[ArrayUtil.Oversize(maxSizeNeeded, RamUsageEstimator.NUM_BYTES_CHAR)];}outputPos = FoldToASCII(input, 0, output, 0, length);}
train
false
249
public boolean hasEntry(String name) {if (excludes.contains(name)) {return false;}return directory.hasEntry(name);}
[ "public", "boolean", "hasEntry", "(", "String", "name", ")", "{", "if", "(", "excludes", ".", "contains", "(", "name", ")", ")", "{", "return", "false", ";", "}", "return", "directory", ".", "hasEntry", "(", "name", ")", ";", "}" ]
public bool HasEntry(String name){if (excludes.Contains(name)){return false;}return directory.HasEntry(name);}
train
false
250
public void setLockMessage(String msg) {lockMessage = msg;}
[ "public", "void", "setLockMessage", "(", "String", "msg", ")", "{", "lockMessage", "=", "msg", ";", "}" ]
public virtual void SetLockMessage(string msg){lockMessage = msg;}
train
false
251
public ReflogCommand reflog() {return new ReflogCommand(repo);}
[ "public", "ReflogCommand", "reflog", "(", ")", "{", "return", "new", "ReflogCommand", "(", "repo", ")", ";", "}" ]
public virtual ReflogCommand Reflog(){return new ReflogCommand(repo);}
train
false
252
public void serialize(LittleEndianOutput out) {out.writeShort(getFirstRow());out.writeShort(getLastRow());out.writeShort(getFirstColumn());out.writeShort(getLastColumn());}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeShort", "(", "getFirstRow", "(", ")", ")", ";", "out", ".", "writeShort", "(", "getLastRow", "(", ")", ")", ";", "out", ".", "writeShort", "(", "getFirstColumn", "(", ")", ")", ";", "out", ".", "writeShort", "(", "getLastColumn", "(", ")", ")", ";", "}" ]
public void Serialize(ILittleEndianOutput out1){out1.WriteShort(FirstRow);out1.WriteShort(LastRow);out1.WriteShort(FirstColumn);out1.WriteShort(LastColumn);}
train
false
255
public void serialize(LittleEndianOutput out) {out.writeInt(getPositionOfBof());out.writeShort(field_2_option_flags);String name = field_5_sheetname;out.writeByte(name.length());out.writeByte(field_4_isMultibyteUnicode);if (isMultibyte()) {StringUtil.putUnicodeLE(name, out);} else {StringUtil.putCompressedUnicode(name, out);}}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeInt", "(", "getPositionOfBof", "(", ")", ")", ";", "out", ".", "writeShort", "(", "field_2_option_flags", ")", ";", "String", "name", "=", "field_5_sheetname", ";", "out", ".", "writeByte", "(", "name", ".", "length", "(", ")", ")", ";", "out", ".", "writeByte", "(", "field_4_isMultibyteUnicode", ")", ";", "if", "(", "isMultibyte", "(", ")", ")", "{", "StringUtil", ".", "putUnicodeLE", "(", "name", ",", "out", ")", ";", "}", "else", "{", "StringUtil", ".", "putCompressedUnicode", "(", "name", ",", "out", ")", ";", "}", "}" ]
public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(PositionOfBof);out1.WriteShort(field_2_option_flags);String name = field_5_sheetname;out1.WriteByte(name.Length);out1.WriteByte(field_4_isMultibyteUnicode);if (IsMultibyte){StringUtil.PutUnicodeLE(name, out1);}else{StringUtil.PutCompressedUnicode(name, out1);}}
train
false
256
public static String getNonBlankTextOrFail(Element e) throws ParserException {String v = getText(e);if (null != v)v = v.trim();if (null == v || 0 == v.length()) {throw new ParserException(e.getTagName() + " has no text");}return v;}
[ "public", "static", "String", "getNonBlankTextOrFail", "(", "Element", "e", ")", "throws", "ParserException", "{", "String", "v", "=", "getText", "(", "e", ")", ";", "if", "(", "null", "!=", "v", ")", "v", "=", "v", ".", "trim", "(", ")", ";", "if", "(", "null", "==", "v", "||", "0", "==", "v", ".", "length", "(", ")", ")", "{", "throw", "new", "ParserException", "(", "e", ".", "getTagName", "(", ")", "+", "\" has no text\"", ")", ";", "}", "return", "v", ";", "}" ]
public static string GetNonBlankTextOrFail(XmlElement e){string v = GetText(e);if (null != v)v = v.Trim();if (null == v || 0 == v.Length){throw new ParserException(e.ToString() + " has no text");}return v;}
train
false
257
public void buildFieldConfig(FieldConfig fieldConfig) {Map<String, Float> fieldBoostMap = this.config.get(ConfigurationKeys.FIELD_BOOST_MAP);if (fieldBoostMap != null) {Float boost = fieldBoostMap.get(fieldConfig.getField());if (boost != null) {fieldConfig.set(ConfigurationKeys.BOOST, boost);}}}
[ "public", "void", "buildFieldConfig", "(", "FieldConfig", "fieldConfig", ")", "{", "Map", "<", "String", ",", "Float", ">", "fieldBoostMap", "=", "this", ".", "config", ".", "get", "(", "ConfigurationKeys", ".", "FIELD_BOOST_MAP", ")", ";", "if", "(", "fieldBoostMap", "!=", "null", ")", "{", "Float", "boost", "=", "fieldBoostMap", ".", "get", "(", "fieldConfig", ".", "getField", "(", ")", ")", ";", "if", "(", "boost", "!=", "null", ")", "{", "fieldConfig", ".", "set", "(", "ConfigurationKeys", ".", "BOOST", ",", "boost", ")", ";", "}", "}", "}" ]
public virtual void BuildFieldConfig(FieldConfig fieldConfig){IDictionary<string, float?> fieldBoostMap = this.config.Get(ConfigurationKeys.FIELD_BOOST_MAP);if (fieldBoostMap != null){float? boost;if (fieldBoostMap.TryGetValue(fieldConfig.Field, out boost) && boost != null){fieldConfig.Set(ConfigurationKeys.BOOST, boost);}}}
train
false
258
public PutLifecyclePolicyResult putLifecyclePolicy(PutLifecyclePolicyRequest request) {request = beforeClientExecution(request);return executePutLifecyclePolicy(request);}
[ "public", "PutLifecyclePolicyResult", "putLifecyclePolicy", "(", "PutLifecyclePolicyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePutLifecyclePolicy", "(", "request", ")", ";", "}" ]
public virtual PutLifecyclePolicyResponse PutLifecyclePolicy(PutLifecyclePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutLifecyclePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = PutLifecyclePolicyResponseUnmarshaller.Instance;return Invoke<PutLifecyclePolicyResponse>(request, options);}
train
true
259
public SortedSet<E> subSet(E start, E end) {return subSet(start, true, end, false);}
[ "public", "SortedSet", "<", "E", ">", "subSet", "(", "E", "start", ",", "E", "end", ")", "{", "return", "subSet", "(", "start", ",", "true", ",", "end", ",", "false", ")", ";", "}" ]
public virtual java.util.SortedSet<E> subSet(E start, E end){return subSet(start, true, end, false);}
train
false
260
public void setParams(String params) {super.setParams(params);if (params != null) {int multiplier;if (params.endsWith("s")) {multiplier = 1;params = params.substring(0, params.length()-1);} else if (params.endsWith("m")) {multiplier = 60;params = params.substring(0, params.length()-1);} else if (params.endsWith("h")) {multiplier = 3600;params = params.substring(0, params.length()-1);} else {multiplier = 1;}waitTimeSec = Double.parseDouble(params) * multiplier;} else {throw new IllegalArgumentException("you must specify the wait time, eg: 10.0s, 4.5m, 2h");}}
[ "public", "void", "setParams", "(", "String", "params", ")", "{", "super", ".", "setParams", "(", "params", ")", ";", "if", "(", "params", "!=", "null", ")", "{", "int", "multiplier", ";", "if", "(", "params", ".", "endsWith", "(", "\"s\"", ")", ")", "{", "multiplier", "=", "1", ";", "params", "=", "params", ".", "substring", "(", "0", ",", "params", ".", "length", "(", ")", "-", "1", ")", ";", "}", "else", "if", "(", "params", ".", "endsWith", "(", "\"m\"", ")", ")", "{", "multiplier", "=", "60", ";", "params", "=", "params", ".", "substring", "(", "0", ",", "params", ".", "length", "(", ")", "-", "1", ")", ";", "}", "else", "if", "(", "params", ".", "endsWith", "(", "\"h\"", ")", ")", "{", "multiplier", "=", "3600", ";", "params", "=", "params", ".", "substring", "(", "0", ",", "params", ".", "length", "(", ")", "-", "1", ")", ";", "}", "else", "{", "multiplier", "=", "1", ";", "}", "waitTimeSec", "=", "Double", ".", "parseDouble", "(", "params", ")", "*", "multiplier", ";", "}", "else", "{", "throw", "new", "IllegalArgumentException", "(", "\"you must specify the wait time, eg: 10.0s, 4.5m, 2h\"", ")", ";", "}", "}" ]
public override void SetParams(string @params){base.SetParams(@params);if (@params != null){int multiplier;if (@params.EndsWith("s", StringComparison.Ordinal)){multiplier = 1;@params = @params.Substring(0, @params.Length - 1);}else if (@params.EndsWith("m", StringComparison.Ordinal)){multiplier = 60;@params = @params.Substring(0, @params.Length - 1);}else if (@params.EndsWith("h", StringComparison.Ordinal)){multiplier = 3600;@params = @params.Substring(0, @params.Length - 1);}else{multiplier = 1;}waitTimeSec = double.Parse(@params, CultureInfo.InvariantCulture) * multiplier;}else{throw new ArgumentException("you must specify the wait time, eg: 10.0s, 4.5m, 2h");}}
train
false
262
public DescribeStreamConsumerResult describeStreamConsumer(DescribeStreamConsumerRequest request) {request = beforeClientExecution(request);return executeDescribeStreamConsumer(request);}
[ "public", "DescribeStreamConsumerResult", "describeStreamConsumer", "(", "DescribeStreamConsumerRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeStreamConsumer", "(", "request", ")", ";", "}" ]
public virtual DescribeStreamConsumerResponse DescribeStreamConsumer(DescribeStreamConsumerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStreamConsumerRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStreamConsumerResponseUnmarshaller.Instance;return Invoke<DescribeStreamConsumerResponse>(request, options);}
train
true
263
public void freeze() {this.frozen = true;}
[ "public", "void", "freeze", "(", ")", "{", "this", ".", "frozen", "=", "true", ";", "}" ]
public virtual void Freeze(){this.frozen = true;}
train
false
264
public FuzzyLikeThisQueryBuilder(Analyzer analyzer) {this.analyzer = analyzer;}
[ "public", "FuzzyLikeThisQueryBuilder", "(", "Analyzer", "analyzer", ")", "{", "this", ".", "analyzer", "=", "analyzer", ";", "}" ]
public FuzzyLikeThisQueryBuilder(Analyzer analyzer){this.analyzer = analyzer;}
train
false
265
public DBClusterSnapshot copyDBClusterSnapshot(CopyDBClusterSnapshotRequest request) {request = beforeClientExecution(request);return executeCopyDBClusterSnapshot(request);}
[ "public", "DBClusterSnapshot", "copyDBClusterSnapshot", "(", "CopyDBClusterSnapshotRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCopyDBClusterSnapshot", "(", "request", ")", ";", "}" ]
public virtual CopyDBClusterSnapshotResponse CopyDBClusterSnapshot(CopyDBClusterSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopyDBClusterSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CopyDBClusterSnapshotResponseUnmarshaller.Instance;return Invoke<CopyDBClusterSnapshotResponse>(request, options);}
train
true
266
public OutputStreamDataOutput(OutputStream os) {this.os = os;}
[ "public", "OutputStreamDataOutput", "(", "OutputStream", "os", ")", "{", "this", ".", "os", "=", "os", ";", "}" ]
public OutputStreamDataOutput(Stream os){this._writer = new BinaryWriter(os);}
train
false
267
public String findPattern(String pat) {int k = super.find(pat);if (k >= 0) {return unpackValues(k);}return "";}
[ "public", "String", "findPattern", "(", "String", "pat", ")", "{", "int", "k", "=", "super", ".", "find", "(", "pat", ")", ";", "if", "(", "k", ">=", "0", ")", "{", "return", "unpackValues", "(", "k", ")", ";", "}", "return", "\"\"", ";", "}" ]
public virtual string FindPattern(string pat){int k = base.Find(pat);if (k >= 0){return UnpackValues(k);}return "";}
train
true
268
public static int murmurhash3_x86_32(BytesRef bytes, int seed) {return murmurhash3_x86_32(bytes.bytes, bytes.offset, bytes.length, seed);}
[ "public", "static", "int", "murmurhash3_x86_32", "(", "BytesRef", "bytes", ",", "int", "seed", ")", "{", "return", "murmurhash3_x86_32", "(", "bytes", ".", "bytes", ",", "bytes", ".", "offset", ",", "bytes", ".", "length", ",", "seed", ")", ";", "}" ]
public static int Murmurhash3_x86_32(BytesRef bytes, int seed){return Murmurhash3_x86_32(bytes.Bytes, bytes.Offset, bytes.Length, seed);}
train
false
269
public boolean isOverridable() {return overridable;}
[ "public", "boolean", "isOverridable", "(", ")", "{", "return", "overridable", ";", "}" ]
public virtual bool IsOverridable(){return overridable;}
train
false
270
public UpdateMemberResult updateMember(UpdateMemberRequest request) {request = beforeClientExecution(request);return executeUpdateMember(request);}
[ "public", "UpdateMemberResult", "updateMember", "(", "UpdateMemberRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateMember", "(", "request", ")", ";", "}" ]
public virtual UpdateMemberResponse UpdateMember(UpdateMemberRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateMemberRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateMemberResponseUnmarshaller.Instance;return Invoke<UpdateMemberResponse>(request, options);}
train
false
271
public CopyFpgaImageResult copyFpgaImage(CopyFpgaImageRequest request) {request = beforeClientExecution(request);return executeCopyFpgaImage(request);}
[ "public", "CopyFpgaImageResult", "copyFpgaImage", "(", "CopyFpgaImageRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCopyFpgaImage", "(", "request", ")", ";", "}" ]
public virtual CopyFpgaImageResponse CopyFpgaImage(CopyFpgaImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopyFpgaImageRequestMarshaller.Instance;options.ResponseUnmarshaller = CopyFpgaImageResponseUnmarshaller.Instance;return Invoke<CopyFpgaImageResponse>(request, options);}
train
true
272
public void inform(ResourceLoader loader) {try { OpenNLPOpsFactory.getPOSTaggerModel(posTaggerModelFile, loader);} catch (IOException e) {throw new IllegalArgumentException(e);}}
[ "public", "void", "inform", "(", "ResourceLoader", "loader", ")", "{", "try", "{", "OpenNLPOpsFactory", ".", "getPOSTaggerModel", "(", "posTaggerModelFile", ",", "loader", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "throw", "new", "IllegalArgumentException", "(", "e", ")", ";", "}", "}" ]
public virtual void Inform(IResourceLoader loader){try{ OpenNLPOpsFactory.GetPOSTaggerModel(posTaggerModelFile, loader);}catch (IOException e){throw new ArgumentException(e.ToString(), e);}}
train
false
273
public CellRangeAddress(int firstRow, int lastRow, int firstCol, int lastCol) {super(firstRow, lastRow, firstCol, lastCol);if (lastRow < firstRow || lastCol < firstCol) {throw new IllegalArgumentException("Invalid cell range, having lastRow < firstRow || lastCol < firstCol, " +"had rows " + lastRow + " >= " + firstRow + " or cells " + lastCol + " >= " + firstCol);}}
[ "public", "CellRangeAddress", "(", "int", "firstRow", ",", "int", "lastRow", ",", "int", "firstCol", ",", "int", "lastCol", ")", "{", "super", "(", "firstRow", ",", "lastRow", ",", "firstCol", ",", "lastCol", ")", ";", "if", "(", "lastRow", "<", "firstRow", "||", "lastCol", "<", "firstCol", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Invalid cell range, having lastRow < firstRow || lastCol < firstCol, \"", "+", "\"had rows \"", "+", "lastRow", "+", "\" >= \"", "+", "firstRow", "+", "\" or cells \"", "+", "lastCol", "+", "\" >= \"", "+", "firstCol", ")", ";", "}", "}" ]
public CellRangeAddress(int firstRow, int lastRow, int firstCol, int lastCol): base(firstRow, lastRow, firstCol, lastCol){if (lastRow < firstRow || lastCol < firstCol)throw new ArgumentException("lastRow < firstRow || lastCol < firstCol");}
train
false
274
public boolean equals(ATNConfig a, ATNConfig b) {if ( a==b ) return true;if ( a==null || b==null ) return false;return a.state.stateNumber==b.state.stateNumber&& a.context.equals(b.context);}
[ "public", "boolean", "equals", "(", "ATNConfig", "a", ",", "ATNConfig", "b", ")", "{", "if", "(", "a", "==", "b", ")", "return", "true", ";", "if", "(", "a", "==", "null", "||", "b", "==", "null", ")", "return", "false", ";", "return", "a", ".", "state", ".", "stateNumber", "==", "b", ".", "state", ".", "stateNumber", "&&", "a", ".", "context", ".", "equals", "(", "b", ".", "context", ")", ";", "}" ]
public override bool Equals(ATNConfig a, ATNConfig b){if (a == b){return true;}if (a == null || b == null){return false;}return a.state.stateNumber == b.state.stateNumber && a.context.Equals(b.context);}
train
false
275
public PushCommand setPushTags() {refSpecs.add(Transport.REFSPEC_TAGS);return this;}
[ "public", "PushCommand", "setPushTags", "(", ")", "{", "refSpecs", ".", "add", "(", "Transport", ".", "REFSPEC_TAGS", ")", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.PushCommand SetPushTags(){refSpecs.AddItem(NGit.Transport.Transport.REFSPEC_TAGS);return this;}
train
false
276
public CreateEvaluationResult createEvaluation(CreateEvaluationRequest request) {request = beforeClientExecution(request);return executeCreateEvaluation(request);}
[ "public", "CreateEvaluationResult", "createEvaluation", "(", "CreateEvaluationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateEvaluation", "(", "request", ")", ";", "}" ]
public virtual CreateEvaluationResponse CreateEvaluation(CreateEvaluationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEvaluationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEvaluationResponseUnmarshaller.Instance;return Invoke<CreateEvaluationResponse>(request, options);}
train
true
277
public DescribeOrderableDBInstanceOptionsResult describeOrderableDBInstanceOptions(DescribeOrderableDBInstanceOptionsRequest request) {request = beforeClientExecution(request);return executeDescribeOrderableDBInstanceOptions(request);}
[ "public", "DescribeOrderableDBInstanceOptionsResult", "describeOrderableDBInstanceOptions", "(", "DescribeOrderableDBInstanceOptionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeOrderableDBInstanceOptions", "(", "request", ")", ";", "}" ]
public virtual DescribeOrderableDBInstanceOptionsResponse DescribeOrderableDBInstanceOptions(DescribeOrderableDBInstanceOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeOrderableDBInstanceOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeOrderableDBInstanceOptionsResponseUnmarshaller.Instance;return Invoke<DescribeOrderableDBInstanceOptionsResponse>(request, options);}
train
true
278
public long getPosition() {return (long) currentBlockIndex * blockSize + currentBlockUpto;}
[ "public", "long", "getPosition", "(", ")", "{", "return", "(", "long", ")", "currentBlockIndex", "*", "blockSize", "+", "currentBlockUpto", ";", "}" ]
public long GetPosition(){return (long)currentBlockIndex * outerInstance.blockSize + currentBlockUpto;}
train
false
279
public TokenStream create(TokenStream input) {return new FrenchLightStemFilter(input);}
[ "public", "TokenStream", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "FrenchLightStemFilter", "(", "input", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new FrenchLightStemFilter(input);}
train
false
280
public AssignPrivateIpAddressesResult assignPrivateIpAddresses(AssignPrivateIpAddressesRequest request) {request = beforeClientExecution(request);return executeAssignPrivateIpAddresses(request);}
[ "public", "AssignPrivateIpAddressesResult", "assignPrivateIpAddresses", "(", "AssignPrivateIpAddressesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAssignPrivateIpAddresses", "(", "request", ")", ";", "}" ]
public virtual AssignPrivateIpAddressesResponse AssignPrivateIpAddresses(AssignPrivateIpAddressesRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssignPrivateIpAddressesRequestMarshaller.Instance;options.ResponseUnmarshaller = AssignPrivateIpAddressesResponseUnmarshaller.Instance;return Invoke<AssignPrivateIpAddressesResponse>(request, options);}
train
true
281
public boolean setExecute(File f, boolean canExec) {return false;}
[ "public", "boolean", "setExecute", "(", "File", "f", ",", "boolean", "canExec", ")", "{", "return", "false", ";", "}" ]
public override bool SetExecute(FilePath f, bool canExec){return false;}
train
false
282
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval lookup_value, ValueEval table_array,ValueEval col_index, ValueEval range_lookup) {try {ValueEval lookupValue = OperandResolver.getSingleValue(lookup_value, srcRowIndex, srcColumnIndex);TwoDEval tableArray = LookupUtils.resolveTableArrayArg(table_array);boolean isRangeLookup;try {isRangeLookup = LookupUtils.resolveRangeLookupArg(range_lookup, srcRowIndex, srcColumnIndex);} catch(RuntimeException e) {isRangeLookup = true;}int rowIndex = LookupUtils.lookupIndexOfValue(lookupValue, LookupUtils.createColumnVector(tableArray, 0), isRangeLookup);int colIndex = LookupUtils.resolveRowOrColIndexArg(col_index, srcRowIndex, srcColumnIndex);ValueVector resultCol = createResultColumnVector(tableArray, colIndex);return resultCol.getItem(rowIndex);} catch (EvaluationException e) {return e.getErrorEval();}}
[ "public", "ValueEval", "evaluate", "(", "int", "srcRowIndex", ",", "int", "srcColumnIndex", ",", "ValueEval", "lookup_value", ",", "ValueEval", "table_array", ",", "ValueEval", "col_index", ",", "ValueEval", "range_lookup", ")", "{", "try", "{", "ValueEval", "lookupValue", "=", "OperandResolver", ".", "getSingleValue", "(", "lookup_value", ",", "srcRowIndex", ",", "srcColumnIndex", ")", ";", "TwoDEval", "tableArray", "=", "LookupUtils", ".", "resolveTableArrayArg", "(", "table_array", ")", ";", "boolean", "isRangeLookup", ";", "try", "{", "isRangeLookup", "=", "LookupUtils", ".", "resolveRangeLookupArg", "(", "range_lookup", ",", "srcRowIndex", ",", "srcColumnIndex", ")", ";", "}", "catch", "(", "RuntimeException", "e", ")", "{", "isRangeLookup", "=", "true", ";", "}", "int", "rowIndex", "=", "LookupUtils", ".", "lookupIndexOfValue", "(", "lookupValue", ",", "LookupUtils", ".", "createColumnVector", "(", "tableArray", ",", "0", ")", ",", "isRangeLookup", ")", ";", "int", "colIndex", "=", "LookupUtils", ".", "resolveRowOrColIndexArg", "(", "col_index", ",", "srcRowIndex", ",", "srcColumnIndex", ")", ";", "ValueVector", "resultCol", "=", "createResultColumnVector", "(", "tableArray", ",", "colIndex", ")", ";", "return", "resultCol", ".", "getItem", "(", "rowIndex", ")", ";", "}", "catch", "(", "EvaluationException", "e", ")", "{", "return", "e", ".", "getErrorEval", "(", ")", ";", "}", "}" ]
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval lookup_value, ValueEval table_array,ValueEval col_index, ValueEval range_lookup){try{ValueEval lookupValue = OperandResolver.GetSingleValue(lookup_value, srcRowIndex, srcColumnIndex);TwoDEval tableArray = LookupUtils.ResolveTableArrayArg(table_array);bool isRangeLookup = LookupUtils.ResolveRangeLookupArg(range_lookup, srcRowIndex, srcColumnIndex);int rowIndex = LookupUtils.LookupIndexOfValue(lookupValue, LookupUtils.CreateColumnVector(tableArray, 0), isRangeLookup);int colIndex = LookupUtils.ResolveRowOrColIndexArg(col_index, srcRowIndex, srcColumnIndex);ValueVector resultCol = CreateResultColumnVector(tableArray, colIndex);return resultCol.GetItem(rowIndex);}catch (EvaluationException e){return e.GetErrorEval();}}
train
false
283
public CreateGameSessionResult createGameSession(CreateGameSessionRequest request) {request = beforeClientExecution(request);return executeCreateGameSession(request);}
[ "public", "CreateGameSessionResult", "createGameSession", "(", "CreateGameSessionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateGameSession", "(", "request", ")", ";", "}" ]
public virtual CreateGameSessionResponse CreateGameSession(CreateGameSessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateGameSessionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateGameSessionResponseUnmarshaller.Instance;return Invoke<CreateGameSessionResponse>(request, options);}
train
true
284
public RowRecord getRow(int rowIndex) {int maxrow = SpreadsheetVersion.EXCEL97.getLastRowIndex();if (rowIndex < 0 || rowIndex > maxrow) {throw new IllegalArgumentException("The row number must be between 0 and " + maxrow + ", but had: " + rowIndex);}return _rowRecords.get(Integer.valueOf(rowIndex));}
[ "public", "RowRecord", "getRow", "(", "int", "rowIndex", ")", "{", "int", "maxrow", "=", "SpreadsheetVersion", ".", "EXCEL97", ".", "getLastRowIndex", "(", ")", ";", "if", "(", "rowIndex", "<", "0", "||", "rowIndex", ">", "maxrow", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"The row number must be between 0 and \"", "+", "maxrow", "+", "\", but had: \"", "+", "rowIndex", ")", ";", "}", "return", "_rowRecords", ".", "get", "(", "Integer", ".", "valueOf", "(", "rowIndex", ")", ")", ";", "}" ]
public RowRecord GetRow(int rowIndex){if (rowIndex < 0 || rowIndex > 65535){throw new ArgumentException("The row number must be between 0 and 65535");}return (RowRecord)_rowRecords[rowIndex];}
train
false
285
public DescribeClientPropertiesResult describeClientProperties(DescribeClientPropertiesRequest request) {request = beforeClientExecution(request);return executeDescribeClientProperties(request);}
[ "public", "DescribeClientPropertiesResult", "describeClientProperties", "(", "DescribeClientPropertiesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeClientProperties", "(", "request", ")", ";", "}" ]
public virtual DescribeClientPropertiesResponse DescribeClientProperties(DescribeClientPropertiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClientPropertiesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClientPropertiesResponseUnmarshaller.Instance;return Invoke<DescribeClientPropertiesResponse>(request, options);}
train
true
286
public Builder(CompositeReader reader) {this.reader = reader;}
[ "public", "Builder", "(", "CompositeReader", "reader", ")", "{", "this", ".", "reader", "=", "reader", ";", "}" ]
public Builder(CompositeReader reader){this.reader = reader;}
train
false
288
public void print(int inum) {print(String.valueOf(inum));}
[ "public", "void", "print", "(", "int", "inum", ")", "{", "print", "(", "String", ".", "valueOf", "(", "inum", ")", ")", ";", "}" ]
public virtual void print(int inum){print(inum.ToString());}
train
false
290
public String toString() {return slice.toString()+":"+ postingsEnum;}
[ "public", "String", "toString", "(", ")", "{", "return", "slice", ".", "toString", "(", ")", "+", "\":\"", "+", "postingsEnum", ";", "}" ]
public override string ToString(){return Slice.ToString() + ":" + DocsEnum;}
train
false
291
public void serialize(LittleEndianOutput out) {out.writeShort(getMode());}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeShort", "(", "getMode", "(", ")", ")", ";", "}" ]
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Mode);}
train
false
292
@Override public int size() {return Impl.this.size();}
[ "@", "Override", "public", "int", "size", "(", ")", "{", "return", "Impl", ".", "this", ".", "size", "(", ")", ";", "}" ]
public override int size(){return this._enclosing.size();}
train
false
293
public static int hashCode(Object... objects) {return Arrays.hashCode(objects);}
[ "public", "static", "int", "hashCode", "(", "Object", "...", "objects", ")", "{", "return", "Arrays", ".", "hashCode", "(", "objects", ")", ";", "}" ]
public static int hashCode(object o){return (o == null) ? 0 : o.GetHashCode();}
train
false
295
public ListJournalS3ExportsForLedgerResult listJournalS3ExportsForLedger(ListJournalS3ExportsForLedgerRequest request) {request = beforeClientExecution(request);return executeListJournalS3ExportsForLedger(request);}
[ "public", "ListJournalS3ExportsForLedgerResult", "listJournalS3ExportsForLedger", "(", "ListJournalS3ExportsForLedgerRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListJournalS3ExportsForLedger", "(", "request", ")", ";", "}" ]
public virtual ListJournalS3ExportsForLedgerResponse ListJournalS3ExportsForLedger(ListJournalS3ExportsForLedgerRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListJournalS3ExportsForLedgerRequestMarshaller.Instance;options.ResponseUnmarshaller = ListJournalS3ExportsForLedgerResponseUnmarshaller.Instance;return Invoke<ListJournalS3ExportsForLedgerResponse>(request, options);}
train
false
296
public DeleteMessageBatchResult deleteMessageBatch(DeleteMessageBatchRequest request) {request = beforeClientExecution(request);return executeDeleteMessageBatch(request);}
[ "public", "DeleteMessageBatchResult", "deleteMessageBatch", "(", "DeleteMessageBatchRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteMessageBatch", "(", "request", ")", ";", "}" ]
public virtual DeleteMessageBatchResponse DeleteMessageBatch(DeleteMessageBatchRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMessageBatchRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMessageBatchResponseUnmarshaller.Instance;return Invoke<DeleteMessageBatchResponse>(request, options);}
train
true
298
public FSTCompletionBuilder(int buckets, BytesRefSorter sorter, int shareMaxTailLength) {if (buckets < 1 || buckets > 255) {throw new IllegalArgumentException("Buckets must be >= 1 and <= 255: "+ buckets);}if (sorter == null) throw new IllegalArgumentException("BytesRefSorter must not be null.");this.sorter = sorter;this.buckets = buckets;this.shareMaxTailLength = shareMaxTailLength;}
[ "public", "FSTCompletionBuilder", "(", "int", "buckets", ",", "BytesRefSorter", "sorter", ",", "int", "shareMaxTailLength", ")", "{", "if", "(", "buckets", "<", "1", "||", "buckets", ">", "255", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Buckets must be >= 1 and <= 255: \"", "+", "buckets", ")", ";", "}", "if", "(", "sorter", "==", "null", ")", "throw", "new", "IllegalArgumentException", "(", "\"BytesRefSorter must not be null.\"", ")", ";", "this", ".", "sorter", "=", "sorter", ";", "this", ".", "buckets", "=", "buckets", ";", "this", ".", "shareMaxTailLength", "=", "shareMaxTailLength", ";", "}" ]
public FSTCompletionBuilder(int buckets, IBytesRefSorter sorter, int shareMaxTailLength){if (buckets < 1 || buckets > 255){throw new System.ArgumentException("Buckets must be >= 1 and <= 255: " + buckets);}if (sorter == null){throw new System.ArgumentException("BytesRefSorter must not be null.");}this.sorter = sorter;this.buckets = buckets;this.shareMaxTailLength = shareMaxTailLength;}
train
false
299
public void incRef() {refCount.incrementAndGet();}
[ "public", "void", "incRef", "(", ")", "{", "refCount", ".", "incrementAndGet", "(", ")", ";", "}" ]
public virtual void IncRef(){refCount.IncrementAndGet();}
train
false
300
public boolean supports(CredentialItem... items) {for (CredentialItem i : items) {if (i instanceof CredentialItem.Username)continue;else if (i instanceof CredentialItem.Password)continue;else return false;}return true;}
[ "public", "boolean", "supports", "(", "CredentialItem", "...", "items", ")", "{", "for", "(", "CredentialItem", "i", ":", "items", ")", "{", "if", "(", "i", "instanceof", "CredentialItem", ".", "Username", ")", "continue", ";", "else", "if", "(", "i", "instanceof", "CredentialItem", ".", "Password", ")", "continue", ";", "else", "return", "false", ";", "}", "return", "true", ";", "}" ]
public override bool Supports(params CredentialItem[] items){foreach (CredentialItem i in items){if (i is CredentialItem.Username){continue;}else{if (i is CredentialItem.Password){continue;}else{return false;}}}return true;}
train
true
301
public DeleteVpnConnectionRequest(String vpnConnectionId) {setVpnConnectionId(vpnConnectionId);}
[ "public", "DeleteVpnConnectionRequest", "(", "String", "vpnConnectionId", ")", "{", "setVpnConnectionId", "(", "vpnConnectionId", ")", ";", "}" ]
public DeleteVpnConnectionRequest(string vpnConnectionId){_vpnConnectionId = vpnConnectionId;}
train
false
303
public void print(double d) {print(String.valueOf(d));}
[ "public", "void", "print", "(", "double", "d", ")", "{", "print", "(", "String", ".", "valueOf", "(", "d", ")", ")", ";", "}" ]
public virtual void print(double d){print(d.ToString());}
train
false
304
public UpdateUserProfileResult updateUserProfile(UpdateUserProfileRequest request) {request = beforeClientExecution(request);return executeUpdateUserProfile(request);}
[ "public", "UpdateUserProfileResult", "updateUserProfile", "(", "UpdateUserProfileRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateUserProfile", "(", "request", ")", ";", "}" ]
public virtual UpdateUserProfileResponse UpdateUserProfile(UpdateUserProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateUserProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateUserProfileResponseUnmarshaller.Instance;return Invoke<UpdateUserProfileResponse>(request, options);}
train
true
306
public GetFederationTokenRequest(String name) {setName(name);}
[ "public", "GetFederationTokenRequest", "(", "String", "name", ")", "{", "setName", "(", "name", ")", ";", "}" ]
public GetFederationTokenRequest(string name){_name = name;}
train
false
308
public CreateChangeSetResult createChangeSet(CreateChangeSetRequest request) {request = beforeClientExecution(request);return executeCreateChangeSet(request);}
[ "public", "CreateChangeSetResult", "createChangeSet", "(", "CreateChangeSetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateChangeSet", "(", "request", ")", ";", "}" ]
public virtual CreateChangeSetResponse CreateChangeSet(CreateChangeSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateChangeSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateChangeSetResponseUnmarshaller.Instance;return Invoke<CreateChangeSetResponse>(request, options);}
train
true
309
public SubmoduleStatusCommand(Repository repo) {super(repo);paths = new ArrayList<>();}
[ "public", "SubmoduleStatusCommand", "(", "Repository", "repo", ")", "{", "super", "(", "repo", ")", ";", "paths", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "}" ]
protected internal SubmoduleStatusCommand(Repository repo) : base(repo){paths = new AList<string>();}
train
false
310
public int getResultStart() {return outRegion.resultStart;}
[ "public", "int", "getResultStart", "(", ")", "{", "return", "outRegion", ".", "resultStart", ";", "}" ]
public virtual int GetResultStart(){return currentSource.regionList.resultStart;}
train
false
311
public static BigInteger round(BigInteger bi, int nBits) {if (nBits < 1) {return bi;}return bi.add(HALF_BITS[nBits]);}
[ "public", "static", "BigInteger", "round", "(", "BigInteger", "bi", ",", "int", "nBits", ")", "{", "if", "(", "nBits", "<", "1", ")", "{", "return", "bi", ";", "}", "return", "bi", ".", "add", "(", "HALF_BITS", "[", "nBits", "]", ")", ";", "}" ]
public static BigInteger Round(BigInteger bi, int nBits){if (nBits < 1){return bi;}return bi+(HALF_BITS[nBits]);}
train
false
312
public static Date round(Date date, Resolution resolution) {return new Date(round(date.getTime(), resolution));}
[ "public", "static", "Date", "round", "(", "Date", "date", ",", "Resolution", "resolution", ")", "{", "return", "new", "Date", "(", "round", "(", "date", ".", "getTime", "(", ")", ",", "resolution", ")", ")", ";", "}" ]
public static DateTime Round(DateTime date, Resolution resolution){return new DateTime(Round(date.Ticks / TimeSpan.TicksPerMillisecond, resolution));}
train
false
313
public static int compareArrayByPrefix(char[] shortArray, int shortIndex,char[] longArray, int longIndex) {if (shortArray == null)return 0;else if (longArray == null)return (shortIndex < shortArray.length) ? 1 : 0;int si = shortIndex, li = longIndex;while (si < shortArray.length && li < longArray.length&& shortArray[si] == longArray[li]) {si++;li++;}if (si == shortArray.length) {return 0;} else {if (li == longArray.length)return 1;else return (shortArray[si] > longArray[li]) ? 1 : -1;}}
[ "public", "static", "int", "compareArrayByPrefix", "(", "char", "[", "]", "shortArray", ",", "int", "shortIndex", ",", "char", "[", "]", "longArray", ",", "int", "longIndex", ")", "{", "if", "(", "shortArray", "==", "null", ")", "return", "0", ";", "else", "if", "(", "longArray", "==", "null", ")", "return", "(", "shortIndex", "<", "shortArray", ".", "length", ")", "?", "1", ":", "0", ";", "int", "si", "=", "shortIndex", ",", "li", "=", "longIndex", ";", "while", "(", "si", "<", "shortArray", ".", "length", "&&", "li", "<", "longArray", ".", "length", "&&", "shortArray", "[", "si", "]", "==", "longArray", "[", "li", "]", ")", "{", "si", "++", ";", "li", "++", ";", "}", "if", "(", "si", "==", "shortArray", ".", "length", ")", "{", "return", "0", ";", "}", "else", "{", "if", "(", "li", "==", "longArray", ".", "length", ")", "return", "1", ";", "else", "return", "(", "shortArray", "[", "si", "]", ">", "longArray", "[", "li", "]", ")", "?", "1", ":", "-", "1", ";", "}", "}" ]
public static int CompareArrayByPrefix(char[] shortArray, int shortIndex,char[] longArray, int longIndex){if (shortArray == null)return 0;else if (longArray == null)return (shortIndex < shortArray.Length) ? 1 : 0;int si = shortIndex, li = longIndex;while (si < shortArray.Length && li < longArray.Length&& shortArray[si] == longArray[li]){si++;li++;}if (si == shortArray.Length){return 0;}else{if (li == longArray.Length)return 1;else return (shortArray[si] > longArray[li]) ? 1 : -1;}}
train
false
314
public AttachInternetGatewayResult attachInternetGateway(AttachInternetGatewayRequest request) {request = beforeClientExecution(request);return executeAttachInternetGateway(request);}
[ "public", "AttachInternetGatewayResult", "attachInternetGateway", "(", "AttachInternetGatewayRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAttachInternetGateway", "(", "request", ")", ";", "}" ]
public virtual AttachInternetGatewayResponse AttachInternetGateway(AttachInternetGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachInternetGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachInternetGatewayResponseUnmarshaller.Instance;return Invoke<AttachInternetGatewayResponse>(request, options);}
train
true
315
public synchronized boolean containsValue(Object value) {if (value == null) {throw new NullPointerException();}HashtableEntry[] tab = table;int len = tab.length;for (int i = 0; i < len; i++) {for (HashtableEntry e = tab[i]; e != null; e = e.next) {if (value.equals(e.value)) {return true;}}}return false;}
[ "public", "synchronized", "boolean", "containsValue", "(", "Object", "value", ")", "{", "if", "(", "value", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", ")", ";", "}", "HashtableEntry", "[", "]", "tab", "=", "table", ";", "int", "len", "=", "tab", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "++", ")", "{", "for", "(", "HashtableEntry", "e", "=", "tab", "[", "i", "]", ";", "e", "!=", "null", ";", "e", "=", "e", ".", "next", ")", "{", "if", "(", "value", ".", "equals", "(", "e", ".", "value", ")", ")", "{", "return", "true", ";", "}", "}", "}", "return", "false", ";", "}" ]
public virtual bool containsValue(object value){lock (this){if (value == null){throw new System.ArgumentNullException();}java.util.Hashtable.HashtableEntry<K, V>[] tab = table;int len = tab.Length;{for (int i = 0; i < len; i++){{for (java.util.Hashtable.HashtableEntry<K, V> e = tab[i]; e != null; e = e.next){if (value.Equals(e.value)){return true;}}}}}return false;}}
train
true
318
public Sort(SortField... fields) {setSort(fields);}
[ "public", "Sort", "(", "SortField", "...", "fields", ")", "{", "setSort", "(", "fields", ")", ";", "}" ]
public Sort(SortField field){SetSort(field);}
train
false
319
public DescribeEventCategoriesResult describeEventCategories(DescribeEventCategoriesRequest request) {request = beforeClientExecution(request);return executeDescribeEventCategories(request);}
[ "public", "DescribeEventCategoriesResult", "describeEventCategories", "(", "DescribeEventCategoriesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeEventCategories", "(", "request", ")", ";", "}" ]
public virtual DescribeEventCategoriesResponse DescribeEventCategories(DescribeEventCategoriesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEventCategoriesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEventCategoriesResponseUnmarshaller.Instance;return Invoke<DescribeEventCategoriesResponse>(request, options);}
train
true
320
public UpdateDeviceResult updateDevice(UpdateDeviceRequest request) {request = beforeClientExecution(request);return executeUpdateDevice(request);}
[ "public", "UpdateDeviceResult", "updateDevice", "(", "UpdateDeviceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateDevice", "(", "request", ")", ";", "}" ]
public virtual UpdateDeviceResponse UpdateDevice(UpdateDeviceRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDeviceRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDeviceResponseUnmarshaller.Instance;return Invoke<UpdateDeviceResponse>(request, options);}
train
true
321
public CreateWorkerBlockResult createWorkerBlock(CreateWorkerBlockRequest request) {request = beforeClientExecution(request);return executeCreateWorkerBlock(request);}
[ "public", "CreateWorkerBlockResult", "createWorkerBlock", "(", "CreateWorkerBlockRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateWorkerBlock", "(", "request", ")", ";", "}" ]
public virtual CreateWorkerBlockResponse CreateWorkerBlock(CreateWorkerBlockRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateWorkerBlockRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateWorkerBlockResponseUnmarshaller.Instance;return Invoke<CreateWorkerBlockResponse>(request, options);}
train
true
322
public synchronized void reset() throws IOException {throw new IOException();}
[ "public", "synchronized", "void", "reset", "(", ")", "throws", "IOException", "{", "throw", "new", "IOException", "(", ")", ";", "}" ]
public virtual void reset(){lock (this){throw new System.IO.IOException();}}
train
false
323
public final void setReader(Reader input) {if (input == null) {throw new NullPointerException("input must not be null");} else if (this.input != ILLEGAL_STATE_READER) {throw new IllegalStateException("TokenStream contract violation: close() call missing");}this.inputPending = input;setReaderTestPoint();}
[ "public", "final", "void", "setReader", "(", "Reader", "input", ")", "{", "if", "(", "input", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", "\"input must not be null\"", ")", ";", "}", "else", "if", "(", "this", ".", "input", "!=", "ILLEGAL_STATE_READER", ")", "{", "throw", "new", "IllegalStateException", "(", "\"TokenStream contract violation: close() call missing\"", ")", ";", "}", "this", ".", "inputPending", "=", "input", ";", "setReaderTestPoint", "(", ")", ";", "}" ]
public void SetReader(TextReader input){if (input == null){throw new System.ArgumentNullException("value", "input must not be null");}else if (this.m_input != ILLEGAL_STATE_READER){throw new InvalidOperationException("TokenStream contract violation: Close() call missing");}this.inputPending = input;Debug.Assert(SetReaderTestPoint());}
train
false
324
public GetUsagePlanKeysResult getUsagePlanKeys(GetUsagePlanKeysRequest request) {request = beforeClientExecution(request);return executeGetUsagePlanKeys(request);}
[ "public", "GetUsagePlanKeysResult", "getUsagePlanKeys", "(", "GetUsagePlanKeysRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetUsagePlanKeys", "(", "request", ")", ";", "}" ]
public virtual GetUsagePlanKeysResponse GetUsagePlanKeys(GetUsagePlanKeysRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUsagePlanKeysRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUsagePlanKeysResponseUnmarshaller.Instance;return Invoke<GetUsagePlanKeysResponse>(request, options);}
train
true
325
public String toString(){StringBuilder sb = new StringBuilder();sb.append( "subInfos=(" );for( SubInfo si : subInfos )sb.append( si.toString() );sb.append( ")/" ).append( totalBoost ).append( '(' ).append( startOffset ).append( ',' ).append( endOffset ).append( ')' );return sb.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "sb", ".", "append", "(", "\"subInfos=(\"", ")", ";", "for", "(", "SubInfo", "si", ":", "subInfos", ")", "sb", ".", "append", "(", "si", ".", "toString", "(", ")", ")", ";", "sb", ".", "append", "(", "\")/\"", ")", ".", "append", "(", "totalBoost", ")", ".", "append", "(", "'('", ")", ".", "append", "(", "startOffset", ")", ".", "append", "(", "','", ")", ".", "append", "(", "endOffset", ")", ".", "append", "(", "')'", ")", ";", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append("subInfos=(");foreach (SubInfo si in subInfos)sb.Append(si.ToString());sb.Append(")/").Append(Number.ToString(totalBoost)).Append('(').Append(startOffset).Append(',').Append(endOffset).Append(')');return sb.ToString();}
train
false
326
public TokenStream create(TokenStream input) {return new LimitTokenPositionFilter(input, maxTokenPosition, consumeAllTokens);}
[ "public", "TokenStream", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "LimitTokenPositionFilter", "(", "input", ",", "maxTokenPosition", ",", "consumeAllTokens", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new LimitTokenPositionFilter(input, maxTokenPosition, consumeAllTokens);}
train
false
327
public DescribeFleetUtilizationResult describeFleetUtilization(DescribeFleetUtilizationRequest request) {request = beforeClientExecution(request);return executeDescribeFleetUtilization(request);}
[ "public", "DescribeFleetUtilizationResult", "describeFleetUtilization", "(", "DescribeFleetUtilizationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeFleetUtilization", "(", "request", ")", ";", "}" ]
public virtual DescribeFleetUtilizationResponse DescribeFleetUtilization(DescribeFleetUtilizationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFleetUtilizationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFleetUtilizationResponseUnmarshaller.Instance;return Invoke<DescribeFleetUtilizationResponse>(request, options);}
train
true
328
public void inform(ResourceLoader loader) throws IOException {InputStream stream = null;try {if (dictFile != null) dictionary = getWordSet(loader, dictFile, false);stream = loader.openResource(hypFile);final InputSource is = new InputSource(stream);is.setEncoding(encoding); is.setSystemId(hypFile);hyphenator = HyphenationCompoundWordTokenFilter.getHyphenationTree(is);} finally {IOUtils.closeWhileHandlingException(stream);}}
[ "public", "void", "inform", "(", "ResourceLoader", "loader", ")", "throws", "IOException", "{", "InputStream", "stream", "=", "null", ";", "try", "{", "if", "(", "dictFile", "!=", "null", ")", "dictionary", "=", "getWordSet", "(", "loader", ",", "dictFile", ",", "false", ")", ";", "stream", "=", "loader", ".", "openResource", "(", "hypFile", ")", ";", "final", "InputSource", "is", "=", "new", "InputSource", "(", "stream", ")", ";", "is", ".", "setEncoding", "(", "encoding", ")", ";", "is", ".", "setSystemId", "(", "hypFile", ")", ";", "hyphenator", "=", "HyphenationCompoundWordTokenFilter", ".", "getHyphenationTree", "(", "is", ")", ";", "}", "finally", "{", "IOUtils", ".", "closeWhileHandlingException", "(", "stream", ")", ";", "}", "}" ]
public virtual void Inform(IResourceLoader loader){Stream stream = null;try{if (dictFile != null) {dictionary = GetWordSet(loader, dictFile, false);}stream = loader.OpenResource(hypFile);var xmlEncoding = string.IsNullOrEmpty(encoding) ? Encoding.UTF8 : Encoding.GetEncoding(encoding);hyphenator = HyphenationCompoundWordTokenFilter.GetHyphenationTree(stream, xmlEncoding);}finally{IOUtils.DisposeWhileHandlingException(stream);}}
train
false
329
public DeclineInvitationsResult declineInvitations(DeclineInvitationsRequest request) {request = beforeClientExecution(request);return executeDeclineInvitations(request);}
[ "public", "DeclineInvitationsResult", "declineInvitations", "(", "DeclineInvitationsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeclineInvitations", "(", "request", ")", ";", "}" ]
public virtual DeclineInvitationsResponse DeclineInvitations(DeclineInvitationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeclineInvitationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeclineInvitationsResponseUnmarshaller.Instance;return Invoke<DeclineInvitationsResponse>(request, options);}
train
true
330
public DescribeAutoScalingGroupsResult describeAutoScalingGroups() {return describeAutoScalingGroups(new DescribeAutoScalingGroupsRequest());}
[ "public", "DescribeAutoScalingGroupsResult", "describeAutoScalingGroups", "(", ")", "{", "return", "describeAutoScalingGroups", "(", "new", "DescribeAutoScalingGroupsRequest", "(", ")", ")", ";", "}" ]
public virtual DescribeAutoScalingGroupsResponse DescribeAutoScalingGroups(){return DescribeAutoScalingGroups(new DescribeAutoScalingGroupsRequest());}
train
false