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
4,777
public synchronized boolean addIfAbsent(E object) {if (contains(object)) {return false;}add(object);return true;}
[ "public", "synchronized", "boolean", "addIfAbsent", "(", "E", "object", ")", "{", "if", "(", "contains", "(", "object", ")", ")", "{", "return", "false", ";", "}", "add", "(", "object", ")", ";", "return", "true", ";", "}" ]
public virtual bool addIfAbsent(E @object){lock (this){if (contains(@object)){return false;}add(@object);return true;}}
train
false
4,778
public EnableTransitGatewayRouteTablePropagationResult enableTransitGatewayRouteTablePropagation(EnableTransitGatewayRouteTablePropagationRequest request) {request = beforeClientExecution(request);return executeEnableTransitGatewayRouteTablePropagation(request);}
[ "public", "EnableTransitGatewayRouteTablePropagationResult", "enableTransitGatewayRouteTablePropagation", "(", "EnableTransitGatewayRouteTablePropagationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeEnableTransitGatewayRouteTablePropagation", "(", "request", ")", ";", "}" ]
public virtual EnableTransitGatewayRouteTablePropagationResponse EnableTransitGatewayRouteTablePropagation(EnableTransitGatewayRouteTablePropagationRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableTransitGatewayRouteTablePropagationRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableTransitGatewayRouteTablePropagationResponseUnmarshaller.Instance;return Invoke<EnableTransitGatewayRouteTablePropagationResponse>(request, options);}
train
true
4,779
public PatternKeywordMarkerFilter(TokenStream in, Pattern pattern) {super(in);this.matcher = pattern.matcher("");}
[ "public", "PatternKeywordMarkerFilter", "(", "TokenStream", "in", ",", "Pattern", "pattern", ")", "{", "super", "(", "in", ")", ";", "this", ".", "matcher", "=", "pattern", ".", "matcher", "(", "\"\"", ")", ";", "}" ]
public PatternKeywordMarkerFilter(TokenStream @in, Regex pattern): base(@in){termAtt = AddAttribute<ICharTermAttribute>();this.matcher = pattern.Match("");this.pattern = pattern;}
train
false
4,780
public AddInstanceGroupsRequest(java.util.List<InstanceGroupConfig> instanceGroups, String jobFlowId) {setInstanceGroups(instanceGroups);setJobFlowId(jobFlowId);}
[ "public", "AddInstanceGroupsRequest", "(", "java", ".", "util", ".", "List", "<", "InstanceGroupConfig", ">", "instanceGroups", ",", "String", "jobFlowId", ")", "{", "setInstanceGroups", "(", "instanceGroups", ")", ";", "setJobFlowId", "(", "jobFlowId", ")", ";", "}" ]
public AddInstanceGroupsRequest(string jobFlowId, List<InstanceGroupConfig> instanceGroups){_jobFlowId = jobFlowId;_instanceGroups = instanceGroups;}
train
false
4,781
public FSTTermsReader(SegmentReadState state, PostingsReaderBase postingsReader) throws IOException {final String termsFileName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, FSTTermsWriter.TERMS_EXTENSION);this.postingsReader = postingsReader;final IndexInput in = state.directory.openInput(termsFileName, state.context);boolean success = false;try {CodecUtil.checkIndexHeader(in, FSTTermsWriter.TERMS_CODEC_NAME,FSTTermsWriter.TERMS_VERSION_START,FSTTermsWriter.TERMS_VERSION_CURRENT,state.segmentInfo.getId(), state.segmentSuffix);CodecUtil.checksumEntireFile(in);this.postingsReader.init(in, state);seekDir(in);final FieldInfos fieldInfos = state.fieldInfos;final int numFields = in.readVInt();for (int i = 0; i < numFields; i++) {int fieldNumber = in.readVInt();FieldInfo fieldInfo = fieldInfos.fieldInfo(fieldNumber);long numTerms = in.readVLong();long sumTotalTermFreq = in.readVLong();long sumDocFreq = fieldInfo.getIndexOptions() == IndexOptions.DOCS ? sumTotalTermFreq : in.readVLong();int docCount = in.readVInt();TermsReader current = new TermsReader(fieldInfo, in, numTerms, sumTotalTermFreq, sumDocFreq, docCount);TermsReader previous = fields.put(fieldInfo.name, current);checkFieldSummary(state.segmentInfo, in, current, previous);}success = true;} finally {if (success) {IOUtils.close(in);} else {IOUtils.closeWhileHandlingException(in);}}}
[ "public", "FSTTermsReader", "(", "SegmentReadState", "state", ",", "PostingsReaderBase", "postingsReader", ")", "throws", "IOException", "{", "final", "String", "termsFileName", "=", "IndexFileNames", ".", "segmentFileName", "(", "state", ".", "segmentInfo", ".", "name", ",", "state", ".", "segmentSuffix", ",", "FSTTermsWriter", ".", "TERMS_EXTENSION", ")", ";", "this", ".", "postingsReader", "=", "postingsReader", ";", "final", "IndexInput", "in", "=", "state", ".", "directory", ".", "openInput", "(", "termsFileName", ",", "state", ".", "context", ")", ";", "boolean", "success", "=", "false", ";", "try", "{", "CodecUtil", ".", "checkIndexHeader", "(", "in", ",", "FSTTermsWriter", ".", "TERMS_CODEC_NAME", ",", "FSTTermsWriter", ".", "TERMS_VERSION_START", ",", "FSTTermsWriter", ".", "TERMS_VERSION_CURRENT", ",", "state", ".", "segmentInfo", ".", "getId", "(", ")", ",", "state", ".", "segmentSuffix", ")", ";", "CodecUtil", ".", "checksumEntireFile", "(", "in", ")", ";", "this", ".", "postingsReader", ".", "init", "(", "in", ",", "state", ")", ";", "seekDir", "(", "in", ")", ";", "final", "FieldInfos", "fieldInfos", "=", "state", ".", "fieldInfos", ";", "final", "int", "numFields", "=", "in", ".", "readVInt", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "numFields", ";", "i", "++", ")", "{", "int", "fieldNumber", "=", "in", ".", "readVInt", "(", ")", ";", "FieldInfo", "fieldInfo", "=", "fieldInfos", ".", "fieldInfo", "(", "fieldNumber", ")", ";", "long", "numTerms", "=", "in", ".", "readVLong", "(", ")", ";", "long", "sumTotalTermFreq", "=", "in", ".", "readVLong", "(", ")", ";", "long", "sumDocFreq", "=", "fieldInfo", ".", "getIndexOptions", "(", ")", "==", "IndexOptions", ".", "DOCS", "?", "sumTotalTermFreq", ":", "in", ".", "readVLong", "(", ")", ";", "int", "docCount", "=", "in", ".", "readVInt", "(", ")", ";", "TermsReader", "current", "=", "new", "TermsReader", "(", "fieldInfo", ",", "in", ",", "numTerms", ",", "sumTotalTermFreq", ",", "sumDocFreq", ",", "docCount", ")", ";", "TermsReader", "previous", "=", "fields", ".", "put", "(", "fieldInfo", ".", "name", ",", "current", ")", ";", "checkFieldSummary", "(", "state", ".", "segmentInfo", ",", "in", ",", "current", ",", "previous", ")", ";", "}", "success", "=", "true", ";", "}", "finally", "{", "if", "(", "success", ")", "{", "IOUtils", ".", "close", "(", "in", ")", ";", "}", "else", "{", "IOUtils", ".", "closeWhileHandlingException", "(", "in", ")", ";", "}", "}", "}" ]
public FSTTermsReader(SegmentReadState state, PostingsReaderBase postingsReader){string termsFileName = IndexFileNames.SegmentFileName(state.SegmentInfo.Name, state.SegmentSuffix, FSTTermsWriter.TERMS_EXTENSION);this.postingsReader = postingsReader;IndexInput @in = state.Directory.OpenInput(termsFileName, state.Context);bool success = false;try{version = ReadHeader(@in);if (version >= FSTTermsWriter.TERMS_VERSION_CHECKSUM){CodecUtil.ChecksumEntireFile(@in);}this.postingsReader.Init(@in);SeekDir(@in);FieldInfos fieldInfos = state.FieldInfos;int numFields = @in.ReadVInt32();for (int i = 0; i < numFields; i++){int fieldNumber = @in.ReadVInt32();FieldInfo fieldInfo = fieldInfos.FieldInfo(fieldNumber);long numTerms = @in.ReadVInt64();long sumTotalTermFreq = fieldInfo.IndexOptions == IndexOptions.DOCS_ONLY ? -1 : @in.ReadVInt64();long sumDocFreq = @in.ReadVInt64();int docCount = @in.ReadVInt32();int longsSize = @in.ReadVInt32();TermsReader current = new TermsReader(this, fieldInfo, @in, numTerms, sumTotalTermFreq, sumDocFreq, docCount, longsSize);TermsReader previous;fields.TryGetValue(fieldInfo.Name, out previous);fields[fieldInfo.Name] = current;CheckFieldSummary(state.SegmentInfo, @in, current, previous);}success = true;}finally{if (success){IOUtils.Dispose(@in);}else{IOUtils.DisposeWhileHandlingException(@in);}}}
train
false
4,782
public DescribeVpcEndpointsResult describeVpcEndpoints(DescribeVpcEndpointsRequest request) {request = beforeClientExecution(request);return executeDescribeVpcEndpoints(request);}
[ "public", "DescribeVpcEndpointsResult", "describeVpcEndpoints", "(", "DescribeVpcEndpointsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeVpcEndpoints", "(", "request", ")", ";", "}" ]
public virtual DescribeVpcEndpointsResponse DescribeVpcEndpoints(DescribeVpcEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcEndpointsResponseUnmarshaller.Instance;return Invoke<DescribeVpcEndpointsResponse>(request, options);}
train
true
4,783
public void setNewPrefix(String prefix) {newPrefix = prefix;}
[ "public", "void", "setNewPrefix", "(", "String", "prefix", ")", "{", "newPrefix", "=", "prefix", ";", "}" ]
public virtual void SetNewPrefix(string prefix){newPrefix = prefix;}
train
false
4,784
public GetHostedZoneRequest(String id) {setId(id);}
[ "public", "GetHostedZoneRequest", "(", "String", "id", ")", "{", "setId", "(", "id", ")", ";", "}" ]
public GetHostedZoneRequest(string id){_id = id;}
train
false
4,785
public List<File> getUpdatedFiles() {return updatedFiles;}
[ "public", "List", "<", "File", ">", "getUpdatedFiles", "(", ")", "{", "return", "updatedFiles", ";", "}" ]
public virtual IList<FilePath> GetUpdatedFiles(){return updatedFiles;}
train
false
4,786
public DeleteDhcpOptionsRequest(String dhcpOptionsId) {setDhcpOptionsId(dhcpOptionsId);}
[ "public", "DeleteDhcpOptionsRequest", "(", "String", "dhcpOptionsId", ")", "{", "setDhcpOptionsId", "(", "dhcpOptionsId", ")", ";", "}" ]
public DeleteDhcpOptionsRequest(string dhcpOptionsId){_dhcpOptionsId = dhcpOptionsId;}
train
false
4,787
public QueryPhraseMap getTermMap( String term ){return subMap.get( term );}
[ "public", "QueryPhraseMap", "getTermMap", "(", "String", "term", ")", "{", "return", "subMap", ".", "get", "(", "term", ")", ";", "}" ]
public virtual QueryPhraseMap GetTermMap(string term){QueryPhraseMap result;subMap.TryGetValue(term, out result);return result;}
train
false
4,788
public PutConfigurationSetDeliveryOptionsResult putConfigurationSetDeliveryOptions(PutConfigurationSetDeliveryOptionsRequest request) {request = beforeClientExecution(request);return executePutConfigurationSetDeliveryOptions(request);}
[ "public", "PutConfigurationSetDeliveryOptionsResult", "putConfigurationSetDeliveryOptions", "(", "PutConfigurationSetDeliveryOptionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePutConfigurationSetDeliveryOptions", "(", "request", ")", ";", "}" ]
public virtual PutConfigurationSetDeliveryOptionsResponse PutConfigurationSetDeliveryOptions(PutConfigurationSetDeliveryOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutConfigurationSetDeliveryOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutConfigurationSetDeliveryOptionsResponseUnmarshaller.Instance;return Invoke<PutConfigurationSetDeliveryOptionsResponse>(request, options);}
train
true
4,789
public ChartRecord(RecordInputStream in) {field_1_x = in.readInt();field_2_y = in.readInt();field_3_width = in.readInt();field_4_height = in.readInt();}
[ "public", "ChartRecord", "(", "RecordInputStream", "in", ")", "{", "field_1_x", "=", "in", ".", "readInt", "(", ")", ";", "field_2_y", "=", "in", ".", "readInt", "(", ")", ";", "field_3_width", "=", "in", ".", "readInt", "(", ")", ";", "field_4_height", "=", "in", ".", "readInt", "(", ")", ";", "}" ]
public ChartRecord(RecordInputStream in1){field_1_x = in1.ReadInt();field_2_y = in1.ReadInt();field_3_width = in1.ReadInt();field_4_height = in1.ReadInt();}
train
false
4,790
public ListTaskDefinitionsResult listTaskDefinitions(ListTaskDefinitionsRequest request) {request = beforeClientExecution(request);return executeListTaskDefinitions(request);}
[ "public", "ListTaskDefinitionsResult", "listTaskDefinitions", "(", "ListTaskDefinitionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListTaskDefinitions", "(", "request", ")", ";", "}" ]
public virtual ListTaskDefinitionsResponse ListTaskDefinitions(ListTaskDefinitionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTaskDefinitionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTaskDefinitionsResponseUnmarshaller.Instance;return Invoke<ListTaskDefinitionsResponse>(request, options);}
train
true
4,791
public String getRawPath() {return rawPath;}
[ "public", "String", "getRawPath", "(", ")", "{", "return", "rawPath", ";", "}" ]
public virtual string GetRawPath(){return rawPath;}
train
false
4,792
public IndexRecord(RecordInputStream in) {int field_1_zero = in.readInt();if (field_1_zero != 0) {throw new RecordFormatException("Expected zero for field 1 but got " + field_1_zero);}field_2_first_row = in.readInt();field_3_last_row_add1 = in.readInt();field_4_zero = in.readInt();int nCells = in.remaining() / 4;field_5_dbcells = new IntList(nCells);for(int i=0; i<nCells; i++) {field_5_dbcells.add(in.readInt());}}
[ "public", "IndexRecord", "(", "RecordInputStream", "in", ")", "{", "int", "field_1_zero", "=", "in", ".", "readInt", "(", ")", ";", "if", "(", "field_1_zero", "!=", "0", ")", "{", "throw", "new", "RecordFormatException", "(", "\"Expected zero for field 1 but got \"", "+", "field_1_zero", ")", ";", "}", "field_2_first_row", "=", "in", ".", "readInt", "(", ")", ";", "field_3_last_row_add1", "=", "in", ".", "readInt", "(", ")", ";", "field_4_zero", "=", "in", ".", "readInt", "(", ")", ";", "int", "nCells", "=", "in", ".", "remaining", "(", ")", "/", "4", ";", "field_5_dbcells", "=", "new", "IntList", "(", "nCells", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "nCells", ";", "i", "++", ")", "{", "field_5_dbcells", ".", "add", "(", "in", ".", "readInt", "(", ")", ")", ";", "}", "}" ]
public IndexRecord(RecordInputStream in1){field_1_zero = in1.ReadInt();if (field_1_zero != 0){throw new RecordFormatException("Expected zero for field 1 but got " + field_1_zero);}field_2_first_row = in1.ReadInt();field_3_last_row_add1 = in1.ReadInt();field_4_zero = in1.ReadInt();int nCells = in1.Remaining / 4;field_5_dbcells =new IntList(nCells); for (int i = 0; i < nCells; i++){field_5_dbcells.Add(in1.ReadInt());}}
train
false
4,793
public Class<? extends Enum> enumType() {return enumType;}
[ "public", "Class", "<", "?", "extends", "Enum", ">", "enumType", "(", ")", "{", "return", "enumType", ";", "}" ]
public virtual System.Type enumType(){return _enumType;}
train
false
4,794
public boolean isSupportedType(final int variantType) {for (int st : SUPPORTED_TYPES) {if (variantType == st) {return true;}}return false;}
[ "public", "boolean", "isSupportedType", "(", "final", "int", "variantType", ")", "{", "for", "(", "int", "st", ":", "SUPPORTED_TYPES", ")", "{", "if", "(", "variantType", "==", "st", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}" ]
public bool IsSupportedType(int variantType){for (int i = 0; i < SUPPORTED_TYPES.Length; i++)if (variantType == SUPPORTED_TYPES[i])return true;return false;}
train
false
4,795
public PersonIdent getSourceCommitter(int idx) {return sourceCommitters[idx];}
[ "public", "PersonIdent", "getSourceCommitter", "(", "int", "idx", ")", "{", "return", "sourceCommitters", "[", "idx", "]", ";", "}" ]
public virtual PersonIdent GetSourceCommitter(int idx){return sourceCommitters[idx];}
train
false
4,796
public RemoveTagsRequest(String resourceId, java.util.List<String> tagKeys) {setResourceId(resourceId);setTagKeys(tagKeys);}
[ "public", "RemoveTagsRequest", "(", "String", "resourceId", ",", "java", ".", "util", ".", "List", "<", "String", ">", "tagKeys", ")", "{", "setResourceId", "(", "resourceId", ")", ";", "setTagKeys", "(", "tagKeys", ")", ";", "}" ]
public RemoveTagsRequest(string resourceId, List<string> tagKeys){_resourceId = resourceId;_tagKeys = tagKeys;}
train
false
4,797
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[ENDBLOCK]\n");buffer.append(" .rt =").append(HexDump.shortToHex(rt)).append('\n');buffer.append(" .grbitFrt =").append(HexDump.shortToHex(grbitFrt)).append('\n');buffer.append(" .iObjectKind=").append(HexDump.shortToHex(iObjectKind)).append('\n');buffer.append(" .unused =").append(HexDump.toHex(unused)).append('\n');buffer.append("[/ENDBLOCK]\n");return buffer.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "buffer", ".", "append", "(", "\"[ENDBLOCK]\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .rt =\"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "rt", ")", ")", ".", "append", "(", "'\\n'", ")", ";", "buffer", ".", "append", "(", "\" .grbitFrt =\"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "grbitFrt", ")", ")", ".", "append", "(", "'\\n'", ")", ";", "buffer", ".", "append", "(", "\" .iObjectKind=\"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "iObjectKind", ")", ")", ".", "append", "(", "'\\n'", ")", ";", "buffer", ".", "append", "(", "\" .unused =\"", ")", ".", "append", "(", "HexDump", ".", "toHex", "(", "unused", ")", ")", ".", "append", "(", "'\\n'", ")", ";", "buffer", ".", "append", "(", "\"[/ENDBLOCK]\\n\"", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}" ]
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[ENDBLOCK]\n");buffer.Append(" .rt =").Append(HexDump.ShortToHex(rt)).Append('\n');buffer.Append(" .grbitFrt =").Append(HexDump.ShortToHex(grbitFrt)).Append('\n');buffer.Append(" .iObjectKind=").Append(HexDump.ShortToHex(iObjectKind)).Append('\n');buffer.Append(" .unused =").Append(HexDump.ToHex(unused)).Append('\n');buffer.Append("[/ENDBLOCK]\n");return buffer.ToString();}
train
false
4,798
public int stem(char text[], int length, boolean stemDerivational) {flags = 0;numSyllables = 0;for (int i = 0; i < length; i++)if (isVowel(text[i]))numSyllables++;if (numSyllables > 2) length = removeParticle(text, length);if (numSyllables > 2) length = removePossessivePronoun(text, length);if (stemDerivational)length = stemDerivational(text, length);return length;}
[ "public", "int", "stem", "(", "char", "text", "[", "]", ",", "int", "length", ",", "boolean", "stemDerivational", ")", "{", "flags", "=", "0", ";", "numSyllables", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "isVowel", "(", "text", "[", "i", "]", ")", ")", "numSyllables", "++", ";", "if", "(", "numSyllables", ">", "2", ")", "length", "=", "removeParticle", "(", "text", ",", "length", ")", ";", "if", "(", "numSyllables", ">", "2", ")", "length", "=", "removePossessivePronoun", "(", "text", ",", "length", ")", ";", "if", "(", "stemDerivational", ")", "length", "=", "stemDerivational", "(", "text", ",", "length", ")", ";", "return", "length", ";", "}" ]
public virtual int Stem(char[] text, int length, bool stemDerivational){flags = 0;numSyllables = 0;for (int i = 0; i < length; i++){if (IsVowel(text[i])){numSyllables++;}}if (numSyllables > 2){length = RemoveParticle(text, length);}if (numSyllables > 2){length = RemovePossessivePronoun(text, length);}if (stemDerivational){length = StemDerivational(text, length);}return length;}
train
false
4,799
public final long computeNorm(FieldInvertState state) {final int numTerms;if (state.getIndexOptions() == IndexOptions.DOCS && state.getIndexCreatedVersionMajor() >= 8) {numTerms = state.getUniqueTermCount();} else if (discountOverlaps) {numTerms = state.getLength() - state.getNumOverlap();} else {numTerms = state.getLength();}return SmallFloat.intToByte4(numTerms);}
[ "public", "final", "long", "computeNorm", "(", "FieldInvertState", "state", ")", "{", "final", "int", "numTerms", ";", "if", "(", "state", ".", "getIndexOptions", "(", ")", "==", "IndexOptions", ".", "DOCS", "&&", "state", ".", "getIndexCreatedVersionMajor", "(", ")", ">=", "8", ")", "{", "numTerms", "=", "state", ".", "getUniqueTermCount", "(", ")", ";", "}", "else", "if", "(", "discountOverlaps", ")", "{", "numTerms", "=", "state", ".", "getLength", "(", ")", "-", "state", ".", "getNumOverlap", "(", ")", ";", "}", "else", "{", "numTerms", "=", "state", ".", "getLength", "(", ")", ";", "}", "return", "SmallFloat", ".", "intToByte4", "(", "numTerms", ")", ";", "}" ]
public override long ComputeNorm(FieldInvertState state){float numTerms;if (discountOverlaps){numTerms = state.Length - state.NumOverlap;}else{numTerms = state.Length;}return EncodeNormValue(state.Boost, numTerms);}
train
false
4,800
public OpenNLPChunkerFilter create(TokenStream in) {try {NLPChunkerOp chunkerOp = null;if (chunkerModelFile != null) {chunkerOp = OpenNLPOpsFactory.getChunker(chunkerModelFile);}return new OpenNLPChunkerFilter(in, chunkerOp);} catch (IOException e) {throw new IllegalArgumentException(e);}}
[ "public", "OpenNLPChunkerFilter", "create", "(", "TokenStream", "in", ")", "{", "try", "{", "NLPChunkerOp", "chunkerOp", "=", "null", ";", "if", "(", "chunkerModelFile", "!=", "null", ")", "{", "chunkerOp", "=", "OpenNLPOpsFactory", ".", "getChunker", "(", "chunkerModelFile", ")", ";", "}", "return", "new", "OpenNLPChunkerFilter", "(", "in", ",", "chunkerOp", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "throw", "new", "IllegalArgumentException", "(", "e", ")", ";", "}", "}" ]
public override TokenStream Create(TokenStream input){try{NLPChunkerOp chunkerOp = null;if (chunkerModelFile != null){chunkerOp = OpenNLPOpsFactory.GetChunker(chunkerModelFile);}return new OpenNLPChunkerFilter(input, chunkerOp);}catch (IOException e){throw new ArgumentException(e.ToString(), e);}}
train
false
4,801
public List<PackedObjectInfo> getSortedObjectList(Comparator<PackedObjectInfo> cmp) {Arrays.sort(entries, 0, entryCount, cmp);List<PackedObjectInfo> list = Arrays.asList(entries);if (entryCount < entries.length)list = list.subList(0, entryCount);return list;}
[ "public", "List", "<", "PackedObjectInfo", ">", "getSortedObjectList", "(", "Comparator", "<", "PackedObjectInfo", ">", "cmp", ")", "{", "Arrays", ".", "sort", "(", "entries", ",", "0", ",", "entryCount", ",", "cmp", ")", ";", "List", "<", "PackedObjectInfo", ">", "list", "=", "Arrays", ".", "asList", "(", "entries", ")", ";", "if", "(", "entryCount", "<", "entries", ".", "length", ")", "list", "=", "list", ".", "subList", "(", "0", ",", "entryCount", ")", ";", "return", "list", ";", "}" ]
public virtual IList<PackedObjectInfo> GetSortedObjectList(IComparer<PackedObjectInfo> cmp){Arrays.Sort(entries, 0, entryCount, cmp);IList<PackedObjectInfo> list = Arrays.AsList(entries);if (entryCount < entries.Length){list = list.SubList(0, entryCount);}return list;}
train
false
4,802
public String getSecurityToken() {AlibabaCloudCredentials credentials = getCredentials();if (credentials instanceof BasicSessionCredentials) {return ((BasicSessionCredentials) credentials).getSessionToken();} else {return null;}}
[ "public", "String", "getSecurityToken", "(", ")", "{", "AlibabaCloudCredentials", "credentials", "=", "getCredentials", "(", ")", ";", "if", "(", "credentials", "instanceof", "BasicSessionCredentials", ")", "{", "return", "(", "(", "BasicSessionCredentials", ")", "credentials", ")", ".", "getSessionToken", "(", ")", ";", "}", "else", "{", "return", "null", ";", "}", "}" ]
public string GetSecurityToken(){var credentials = GetCredentials();var sessionCredentials = credentials as BasicSessionCredentials;return sessionCredentials != null ? sessionCredentials.GetSessionToken() : null;}
train
false
4,803
public StopAutoMLJobResult stopAutoMLJob(StopAutoMLJobRequest request) {request = beforeClientExecution(request);return executeStopAutoMLJob(request);}
[ "public", "StopAutoMLJobResult", "stopAutoMLJob", "(", "StopAutoMLJobRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStopAutoMLJob", "(", "request", ")", ";", "}" ]
public virtual StopAutoMLJobResponse StopAutoMLJob(StopAutoMLJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopAutoMLJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopAutoMLJobResponseUnmarshaller.Instance;return Invoke<StopAutoMLJobResponse>(request, options);}
train
false
4,804
public int findStartOffset(StringBuilder buffer, int start) {if( start > buffer.length() || start < 1 ) return start;bi.setText(buffer.substring(0, start));bi.last();return bi.previous();}
[ "public", "int", "findStartOffset", "(", "StringBuilder", "buffer", ",", "int", "start", ")", "{", "if", "(", "start", ">", "buffer", ".", "length", "(", ")", "||", "start", "<", "1", ")", "return", "start", ";", "bi", ".", "setText", "(", "buffer", ".", "substring", "(", "0", ",", "start", ")", ")", ";", "bi", ".", "last", "(", ")", ";", "return", "bi", ".", "previous", "(", ")", ";", "}" ]
public virtual int FindStartOffset(StringBuilder buffer, int start){if (start > buffer.Length || start < 1) return start;bi.SetText(buffer.ToString(0, start - 0));bi.Last();return bi.Previous();}
train
false
4,805
public StartImageBuilderResult startImageBuilder(StartImageBuilderRequest request) {request = beforeClientExecution(request);return executeStartImageBuilder(request);}
[ "public", "StartImageBuilderResult", "startImageBuilder", "(", "StartImageBuilderRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStartImageBuilder", "(", "request", ")", ";", "}" ]
public virtual StartImageBuilderResponse StartImageBuilder(StartImageBuilderRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartImageBuilderRequestMarshaller.Instance;options.ResponseUnmarshaller = StartImageBuilderResponseUnmarshaller.Instance;return Invoke<StartImageBuilderResponse>(request, options);}
train
true
4,806
public double readDouble() {long valueLongBits = readLong();double result = Double.longBitsToDouble(valueLongBits);if (Double.isNaN(result)) {throw new RuntimeException("Did not expect to read NaN");}return result;}
[ "public", "double", "readDouble", "(", ")", "{", "long", "valueLongBits", "=", "readLong", "(", ")", ";", "double", "result", "=", "Double", ".", "longBitsToDouble", "(", "valueLongBits", ")", ";", "if", "(", "Double", ".", "isNaN", "(", "result", ")", ")", "{", "throw", "new", "RuntimeException", "(", "\"Did not expect to read NaN\"", ")", ";", "}", "return", "result", ";", "}" ]
public double ReadDouble(){long valueLongBits = ReadLong();double result = BitConverter.Int64BitsToDouble(valueLongBits);if (Double.IsNaN(result)){throw new Exception("Did not expect to read NaN"); }return result;}
train
false
4,807
public double readDouble(){return _in.readDouble();}
[ "public", "double", "readDouble", "(", ")", "{", "return", "_in", ".", "readDouble", "(", ")", ";", "}" ]
public double ReadDouble(){return _in.ReadDouble();}
train
false
4,808
public int compareTo(Cell other) {return Double.compare(distanceSquared, other.distanceSquared);}
[ "public", "int", "compareTo", "(", "Cell", "other", ")", "{", "return", "Double", ".", "compare", "(", "distanceSquared", ",", "other", ".", "distanceSquared", ")", ";", "}" ]
public virtual int CompareTo(Cell o){return string.CompareOrdinal(TokenString, o.TokenString);}
train
false
4,809
public GetCampaignDateRangeKpiResult getCampaignDateRangeKpi(GetCampaignDateRangeKpiRequest request) {request = beforeClientExecution(request);return executeGetCampaignDateRangeKpi(request);}
[ "public", "GetCampaignDateRangeKpiResult", "getCampaignDateRangeKpi", "(", "GetCampaignDateRangeKpiRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetCampaignDateRangeKpi", "(", "request", ")", ";", "}" ]
public virtual GetCampaignDateRangeKpiResponse GetCampaignDateRangeKpi(GetCampaignDateRangeKpiRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCampaignDateRangeKpiRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCampaignDateRangeKpiResponseUnmarshaller.Instance;return Invoke<GetCampaignDateRangeKpiResponse>(request, options);}
train
false
4,810
public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName()).append(" [CRN");sb.append(" rowIx=").append(field_3_row_index);sb.append(" firstColIx=").append(field_2_first_column_index);sb.append(" lastColIx=").append(field_1_last_column_index);sb.append("]");return sb.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "sb", ".", "append", "(", "getClass", "(", ")", ".", "getName", "(", ")", ")", ".", "append", "(", "\" [CRN\"", ")", ";", "sb", ".", "append", "(", "\" rowIx=\"", ")", ".", "append", "(", "field_3_row_index", ")", ";", "sb", ".", "append", "(", "\" firstColIx=\"", ")", ".", "append", "(", "field_2_first_column_index", ")", ";", "sb", ".", "append", "(", "\" lastColIx=\"", ")", ".", "append", "(", "field_1_last_column_index", ")", ";", "sb", ".", "append", "(", "\"]\"", ")", ";", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetType().Name).Append(" [CRN");sb.Append(" rowIx=").Append(field_3_row_index);sb.Append(" firstColIx=").Append(field_2_first_column_index);sb.Append(" lastColIx=").Append(field_1_last_column_index);sb.Append("]");return sb.ToString();}
train
false
4,811
public void add(double value) {ensureCapacity(_count + 1);_array[_count] = value;_count++;}
[ "public", "void", "add", "(", "double", "value", ")", "{", "ensureCapacity", "(", "_count", "+", "1", ")", ";", "_array", "[", "_count", "]", "=", "value", ";", "_count", "++", ";", "}" ]
public void Add(double value){EnsureCapacity(_Count + 1);_array[_Count] = value;_Count++;}
train
false
4,812
public String getSheetName(int sheetIndex) {return getSheetEvaluator(sheetIndex).getSheetName();}
[ "public", "String", "getSheetName", "(", "int", "sheetIndex", ")", "{", "return", "getSheetEvaluator", "(", "sheetIndex", ")", ".", "getSheetName", "(", ")", ";", "}" ]
public String GetSheetName(int sheetIndex){return GetSheetEvaluator(sheetIndex).SheetName;}
train
false
4,813
public TransferDomainToAnotherAwsAccountResult transferDomainToAnotherAwsAccount(TransferDomainToAnotherAwsAccountRequest request) {request = beforeClientExecution(request);return executeTransferDomainToAnotherAwsAccount(request);}
[ "public", "TransferDomainToAnotherAwsAccountResult", "transferDomainToAnotherAwsAccount", "(", "TransferDomainToAnotherAwsAccountRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeTransferDomainToAnotherAwsAccount", "(", "request", ")", ";", "}" ]
public virtual TransferDomainToAnotherAwsAccountResponse TransferDomainToAnotherAwsAccount(TransferDomainToAnotherAwsAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = TransferDomainToAnotherAwsAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = TransferDomainToAnotherAwsAccountResponseUnmarshaller.Instance;return Invoke<TransferDomainToAnotherAwsAccountResponse>(request, options);}
train
false
4,814
public final boolean weakCompareAndSet(V expect, V update) {return unsafe.compareAndSwapObject(this, valueOffset, expect, update);}
[ "public", "final", "boolean", "weakCompareAndSet", "(", "V", "expect", ",", "V", "update", ")", "{", "return", "unsafe", ".", "compareAndSwapObject", "(", "this", ",", "valueOffset", ",", "expect", ",", "update", ")", ";", "}" ]
public bool weakCompareAndSet(V expect, V update){return compareAndSet(expect, update);}
train
false
4,815
public void setResult(ReceiveCommand.Result status, String msg) {result = decode(status);super.setResult(status, msg);}
[ "public", "void", "setResult", "(", "ReceiveCommand", ".", "Result", "status", ",", "String", "msg", ")", "{", "result", "=", "decode", "(", "status", ")", ";", "super", ".", "setResult", "(", "status", ",", "msg", ")", ";", "}" ]
public override void SetResult(ReceiveCommand.Result status, string msg){this._enclosing.result = this.Decode(status);base.SetResult(status, msg);}
train
false
4,816
public String toString() {return "skip";}
[ "public", "String", "toString", "(", ")", "{", "return", "\"skip\"", ";", "}" ]
public override string ToString(){return "skip";}
train
false
4,817
public List<String> getModifiedFiles() {return modifiedFiles;}
[ "public", "List", "<", "String", ">", "getModifiedFiles", "(", ")", "{", "return", "modifiedFiles", ";", "}" ]
public virtual IList<string> GetModifiedFiles(){return modifiedFiles;}
train
false
4,818
public final void serialize(LittleEndianOutput out) {out.writeShort(getRow());out.writeShort(getColumn());out.writeShort(getXFIndex());serializeValue(out);}
[ "public", "final", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeShort", "(", "getRow", "(", ")", ")", ";", "out", ".", "writeShort", "(", "getColumn", "(", ")", ")", ";", "out", ".", "writeShort", "(", "getXFIndex", "(", ")", ")", ";", "serializeValue", "(", "out", ")", ";", "}" ]
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Row);out1.WriteShort(Column);out1.WriteShort(XFIndex);SerializeValue(out1);}
train
false
4,819
public String toString() {return "NotIgnored(" + index + ")";}
[ "public", "String", "toString", "(", ")", "{", "return", "\"NotIgnored(\"", "+", "index", "+", "\")\"", ";", "}" ]
public override string ToString(){return "NotIgnored(" + index + ")";}
train
false
4,820
public DescribeDBClusterParametersResult describeDBClusterParameters(DescribeDBClusterParametersRequest request) {request = beforeClientExecution(request);return executeDescribeDBClusterParameters(request);}
[ "public", "DescribeDBClusterParametersResult", "describeDBClusterParameters", "(", "DescribeDBClusterParametersRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeDBClusterParameters", "(", "request", ")", ";", "}" ]
public virtual DescribeDBClusterParametersResponse DescribeDBClusterParameters(DescribeDBClusterParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBClusterParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBClusterParametersResponseUnmarshaller.Instance;return Invoke<DescribeDBClusterParametersResponse>(request, options);}
train
true
4,821
public CellRangeAddress copy() {return new CellRangeAddress(getFirstRow(), getLastRow(), getFirstColumn(), getLastColumn());}
[ "public", "CellRangeAddress", "copy", "(", ")", "{", "return", "new", "CellRangeAddress", "(", "getFirstRow", "(", ")", ",", "getLastRow", "(", ")", ",", "getFirstColumn", "(", ")", ",", "getLastColumn", "(", ")", ")", ";", "}" ]
public CellRangeAddress Copy(){return new CellRangeAddress(FirstRow, LastRow, FirstColumn, LastColumn);}
train
false
4,822
public final boolean hasAny(RevFlagSet set) {return (flags & set.mask) != 0;}
[ "public", "final", "boolean", "hasAny", "(", "RevFlagSet", "set", ")", "{", "return", "(", "flags", "&", "set", ".", "mask", ")", "!=", "0", ";", "}" ]
public bool HasAny(RevFlagSet set){return (flags & set.mask) != 0;}
train
false
4,823
public GetPolicyResult getPolicy(GetPolicyRequest request) {request = beforeClientExecution(request);return executeGetPolicy(request);}
[ "public", "GetPolicyResult", "getPolicy", "(", "GetPolicyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetPolicy", "(", "request", ")", ";", "}" ]
public virtual GetPolicyResponse GetPolicy(GetPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPolicyResponseUnmarshaller.Instance;return Invoke<GetPolicyResponse>(request, options);}
train
true
4,824
public BookSheetKey(int bookIndex, int sheetIndex) {_bookIndex = bookIndex;_sheetIndex = sheetIndex;}
[ "public", "BookSheetKey", "(", "int", "bookIndex", ",", "int", "sheetIndex", ")", "{", "_bookIndex", "=", "bookIndex", ";", "_sheetIndex", "=", "sheetIndex", ";", "}" ]
public BookSheetKey(int bookIndex, int sheetIndex){_bookIndex = bookIndex;_sheetIndex = sheetIndex;}
train
false
4,825
public void setRate(int rate, boolean perMin) {this.rate = rate;this.perMin = perMin;setSequenceName();}
[ "public", "void", "setRate", "(", "int", "rate", ",", "boolean", "perMin", ")", "{", "this", ".", "rate", "=", "rate", ";", "this", ".", "perMin", "=", "perMin", ";", "setSequenceName", "(", ")", ";", "}" ]
public virtual void SetRate(int rate, bool perMin){this.rate = rate;this.perMin = perMin;SetSequenceName();}
train
false
4,826
public DescribeVpcEndpointConnectionsResult describeVpcEndpointConnections(DescribeVpcEndpointConnectionsRequest request) {request = beforeClientExecution(request);return executeDescribeVpcEndpointConnections(request);}
[ "public", "DescribeVpcEndpointConnectionsResult", "describeVpcEndpointConnections", "(", "DescribeVpcEndpointConnectionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeVpcEndpointConnections", "(", "request", ")", ";", "}" ]
public virtual DescribeVpcEndpointConnectionsResponse DescribeVpcEndpointConnections(DescribeVpcEndpointConnectionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcEndpointConnectionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcEndpointConnectionsResponseUnmarshaller.Instance;return Invoke<DescribeVpcEndpointConnectionsResponse>(request, options);}
train
true
4,827
public GetHostedZoneResult getHostedZone(GetHostedZoneRequest request) {request = beforeClientExecution(request);return executeGetHostedZone(request);}
[ "public", "GetHostedZoneResult", "getHostedZone", "(", "GetHostedZoneRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetHostedZone", "(", "request", ")", ";", "}" ]
public virtual GetHostedZoneResponse GetHostedZone(GetHostedZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHostedZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHostedZoneResponseUnmarshaller.Instance;return Invoke<GetHostedZoneResponse>(request, options);}
train
true
4,828
public ChangeBatch(java.util.List<Change> changes) {setChanges(changes);}
[ "public", "ChangeBatch", "(", "java", ".", "util", ".", "List", "<", "Change", ">", "changes", ")", "{", "setChanges", "(", "changes", ")", ";", "}" ]
public ChangeBatch(List<Change> changes){_changes = changes;}
train
false
4,829
public String[] getExternalBookAndSheetName(int extRefIndex) {int ebIx = _externSheetRecord.getExtbookIndexFromRefIndex(extRefIndex);SupBookRecord ebr = _externalBookBlocks[ebIx].getExternalBookRecord();if (!ebr.isExternalReferences()) {return null;}int shIx1 = _externSheetRecord.getFirstSheetIndexFromRefIndex(extRefIndex);int shIx2 = _externSheetRecord.getLastSheetIndexFromRefIndex(extRefIndex);String firstSheetName = null;String lastSheetName = null;if (shIx1 >= 0) {firstSheetName = ebr.getSheetNames()[shIx1];}if (shIx2 >= 0) {lastSheetName = ebr.getSheetNames()[shIx2];}if (shIx1 == shIx2) {return new String[]{ebr.getURL(),firstSheetName};} else {return new String[]{ebr.getURL(),firstSheetName,lastSheetName};}}
[ "public", "String", "[", "]", "getExternalBookAndSheetName", "(", "int", "extRefIndex", ")", "{", "int", "ebIx", "=", "_externSheetRecord", ".", "getExtbookIndexFromRefIndex", "(", "extRefIndex", ")", ";", "SupBookRecord", "ebr", "=", "_externalBookBlocks", "[", "ebIx", "]", ".", "getExternalBookRecord", "(", ")", ";", "if", "(", "!", "ebr", ".", "isExternalReferences", "(", ")", ")", "{", "return", "null", ";", "}", "int", "shIx1", "=", "_externSheetRecord", ".", "getFirstSheetIndexFromRefIndex", "(", "extRefIndex", ")", ";", "int", "shIx2", "=", "_externSheetRecord", ".", "getLastSheetIndexFromRefIndex", "(", "extRefIndex", ")", ";", "String", "firstSheetName", "=", "null", ";", "String", "lastSheetName", "=", "null", ";", "if", "(", "shIx1", ">=", "0", ")", "{", "firstSheetName", "=", "ebr", ".", "getSheetNames", "(", ")", "[", "shIx1", "]", ";", "}", "if", "(", "shIx2", ">=", "0", ")", "{", "lastSheetName", "=", "ebr", ".", "getSheetNames", "(", ")", "[", "shIx2", "]", ";", "}", "if", "(", "shIx1", "==", "shIx2", ")", "{", "return", "new", "String", "[", "]", "{", "ebr", ".", "getURL", "(", ")", ",", "firstSheetName", "}", ";", "}", "else", "{", "return", "new", "String", "[", "]", "{", "ebr", ".", "getURL", "(", ")", ",", "firstSheetName", ",", "lastSheetName", "}", ";", "}", "}" ]
public String[] GetExternalBookAndSheetName(int extRefIndex){int ebIx = _externSheetRecord.GetExtbookIndexFromRefIndex(extRefIndex);SupBookRecord ebr = _externalBookBlocks[ebIx].GetExternalBookRecord();if (!ebr.IsExternalReferences){return null;}int shIx1 = _externSheetRecord.GetFirstSheetIndexFromRefIndex(extRefIndex);int shIx2 = _externSheetRecord.GetLastSheetIndexFromRefIndex(extRefIndex);String firstSheetName = null;String lastSheetName = null;if (shIx1 >= 0){firstSheetName = ebr.SheetNames[shIx1];}if (shIx2 >= 0){lastSheetName = ebr.SheetNames[shIx2];}if (shIx1 == shIx2){return new String[] {ebr.URL,firstSheetName};}else{return new String[] {ebr.URL,firstSheetName,lastSheetName};}}
train
false
4,830
public ChartEndBlockRecord(RecordInputStream in) {rt = in.readShort();grbitFrt = in.readShort();iObjectKind = in.readShort();if(in.available() == 0) {unused = new byte[0];} else {unused = new byte[6];in.readFully(unused);}}
[ "public", "ChartEndBlockRecord", "(", "RecordInputStream", "in", ")", "{", "rt", "=", "in", ".", "readShort", "(", ")", ";", "grbitFrt", "=", "in", ".", "readShort", "(", ")", ";", "iObjectKind", "=", "in", ".", "readShort", "(", ")", ";", "if", "(", "in", ".", "available", "(", ")", "==", "0", ")", "{", "unused", "=", "new", "byte", "[", "0", "]", ";", "}", "else", "{", "unused", "=", "new", "byte", "[", "6", "]", ";", "in", ".", "readFully", "(", "unused", ")", ";", "}", "}" ]
public ChartEndBlockRecord(RecordInputStream in1){rt = in1.ReadShort();grbitFrt = in1.ReadShort();iObjectKind = in1.ReadShort();if(in1.Available() == 0) {unused = new byte[0];} else {unused = new byte[6];in1.ReadFully(unused);}}
train
false
4,831
public CreateQueueResult createQueue(CreateQueueRequest request) {request = beforeClientExecution(request);return executeCreateQueue(request);}
[ "public", "CreateQueueResult", "createQueue", "(", "CreateQueueRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateQueue", "(", "request", ")", ";", "}" ]
public virtual CreateQueueResponse CreateQueue(CreateQueueRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateQueueRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateQueueResponseUnmarshaller.Instance;return Invoke<CreateQueueResponse>(request, options);}
train
true
4,832
public void setMaxDocCharsToAnalyze(int maxDocCharsToAnalyze) {this.maxCharsToAnalyze = maxDocCharsToAnalyze;}
[ "public", "void", "setMaxDocCharsToAnalyze", "(", "int", "maxDocCharsToAnalyze", ")", "{", "this", ".", "maxCharsToAnalyze", "=", "maxDocCharsToAnalyze", ";", "}" ]
public virtual void SetMaxDocCharsToAnalyze(int maxDocCharsToAnalyze){this.maxCharsToAnalyze = maxDocCharsToAnalyze;}
train
false
4,833
public CreateCodeRepositoryResult createCodeRepository(CreateCodeRepositoryRequest request) {request = beforeClientExecution(request);return executeCreateCodeRepository(request);}
[ "public", "CreateCodeRepositoryResult", "createCodeRepository", "(", "CreateCodeRepositoryRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateCodeRepository", "(", "request", ")", ";", "}" ]
public virtual CreateCodeRepositoryResponse CreateCodeRepository(CreateCodeRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCodeRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCodeRepositoryResponseUnmarshaller.Instance;return Invoke<CreateCodeRepositoryResponse>(request, options);}
train
true
4,834
public static String getLastCommitSegmentsFileName(String[] files) {return IndexFileNames.fileNameFromGeneration(IndexFileNames.SEGMENTS,"",getLastCommitGeneration(files));}
[ "public", "static", "String", "getLastCommitSegmentsFileName", "(", "String", "[", "]", "files", ")", "{", "return", "IndexFileNames", ".", "fileNameFromGeneration", "(", "IndexFileNames", ".", "SEGMENTS", ",", "\"\"", ",", "getLastCommitGeneration", "(", "files", ")", ")", ";", "}" ]
public static string GetLastCommitSegmentsFileName(string[] files){return IndexFileNames.FileNameFromGeneration(IndexFileNames.SEGMENTS, "", GetLastCommitGeneration(files));}
train
false
4,835
public final CharBuffer put(char[] src) {return put(src, 0, src.length);}
[ "public", "final", "CharBuffer", "put", "(", "char", "[", "]", "src", ")", "{", "return", "put", "(", "src", ",", "0", ",", "src", ".", "length", ")", ";", "}" ]
public java.nio.CharBuffer put(char[] src){return put(src, 0, src.Length);}
train
false
4,836
public Certificate modifyCertificates(ModifyCertificatesRequest request) {request = beforeClientExecution(request);return executeModifyCertificates(request);}
[ "public", "Certificate", "modifyCertificates", "(", "ModifyCertificatesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyCertificates", "(", "request", ")", ";", "}" ]
public virtual ModifyCertificatesResponse ModifyCertificates(ModifyCertificatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyCertificatesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyCertificatesResponseUnmarshaller.Instance;return Invoke<ModifyCertificatesResponse>(request, options);}
train
false
4,837
public void updateCell(String sheetName, int rowIndex, int columnIndex, ValueEval value) {ForkedEvaluationCell cell = _sewb.getOrCreateUpdatableCell(sheetName, rowIndex, columnIndex);cell.setValue(value);_evaluator.notifyUpdateCell(cell);}
[ "public", "void", "updateCell", "(", "String", "sheetName", ",", "int", "rowIndex", ",", "int", "columnIndex", ",", "ValueEval", "value", ")", "{", "ForkedEvaluationCell", "cell", "=", "_sewb", ".", "getOrCreateUpdatableCell", "(", "sheetName", ",", "rowIndex", ",", "columnIndex", ")", ";", "cell", ".", "setValue", "(", "value", ")", ";", "_evaluator", ".", "notifyUpdateCell", "(", "cell", ")", ";", "}" ]
public void UpdateCell(String sheetName, int rowIndex, int columnIndex, ValueEval value){ForkedEvaluationCell cell = _sewb.GetOrCreateUpdatableCell(sheetName, rowIndex, columnIndex);cell.SetValue(value);_evaluator.NotifyUpdateCell(cell);}
train
false
4,838
public DisassociateMemberAccountResult disassociateMemberAccount(DisassociateMemberAccountRequest request) {request = beforeClientExecution(request);return executeDisassociateMemberAccount(request);}
[ "public", "DisassociateMemberAccountResult", "disassociateMemberAccount", "(", "DisassociateMemberAccountRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDisassociateMemberAccount", "(", "request", ")", ";", "}" ]
public virtual DisassociateMemberAccountResponse DisassociateMemberAccount(DisassociateMemberAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateMemberAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateMemberAccountResponseUnmarshaller.Instance;return Invoke<DisassociateMemberAccountResponse>(request, options);}
train
true
4,839
public boolean run(byte[] s, int offset, int length) {int p = 0;int l = offset + length;for (int i = offset; i < l; i++) {p = step(p, s[i] & 0xFF);if (p == -1) return false;}return accept.get(p);}
[ "public", "boolean", "run", "(", "byte", "[", "]", "s", ",", "int", "offset", ",", "int", "length", ")", "{", "int", "p", "=", "0", ";", "int", "l", "=", "offset", "+", "length", ";", "for", "(", "int", "i", "=", "offset", ";", "i", "<", "l", ";", "i", "++", ")", "{", "p", "=", "step", "(", "p", ",", "s", "[", "i", "]", "&", "0xFF", ")", ";", "if", "(", "p", "==", "-", "1", ")", "return", "false", ";", "}", "return", "accept", ".", "get", "(", "p", ")", ";", "}" ]
public virtual bool Run(byte[] s, int offset, int length){var p = m_initial;var l = offset + length;for (int i = offset; i < l; i++){p = Step(p, ((sbyte)s[i]) & 0xFF);if (p == -1){return false;}}return m_accept[p];}
train
false
4,840
public DeleteTrafficPolicyResult deleteTrafficPolicy(DeleteTrafficPolicyRequest request) {request = beforeClientExecution(request);return executeDeleteTrafficPolicy(request);}
[ "public", "DeleteTrafficPolicyResult", "deleteTrafficPolicy", "(", "DeleteTrafficPolicyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteTrafficPolicy", "(", "request", ")", ";", "}" ]
public virtual DeleteTrafficPolicyResponse DeleteTrafficPolicy(DeleteTrafficPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTrafficPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTrafficPolicyResponseUnmarshaller.Instance;return Invoke<DeleteTrafficPolicyResponse>(request, options);}
train
true
4,841
public static PackIndex read(InputStream fd) throws IOException,CorruptObjectException {final byte[] hdr = new byte[8];IO.readFully(fd, hdr, 0, hdr.length);if (isTOC(hdr)) {final int v = NB.decodeInt32(hdr, 4);switch (v) {case 2:return new PackIndexV2(fd);default:throw new UnsupportedPackIndexVersionException(v);}}return new PackIndexV1(fd, hdr);}
[ "public", "static", "PackIndex", "read", "(", "InputStream", "fd", ")", "throws", "IOException", ",", "CorruptObjectException", "{", "final", "byte", "[", "]", "hdr", "=", "new", "byte", "[", "8", "]", ";", "IO", ".", "readFully", "(", "fd", ",", "hdr", ",", "0", ",", "hdr", ".", "length", ")", ";", "if", "(", "isTOC", "(", "hdr", ")", ")", "{", "final", "int", "v", "=", "NB", ".", "decodeInt32", "(", "hdr", ",", "4", ")", ";", "switch", "(", "v", ")", "{", "case", "2", ":", "return", "new", "PackIndexV2", "(", "fd", ")", ";", "default", ":", "throw", "new", "UnsupportedPackIndexVersionException", "(", "v", ")", ";", "}", "}", "return", "new", "PackIndexV1", "(", "fd", ",", "hdr", ")", ";", "}" ]
public static PackIndex Read(InputStream fd){byte[] hdr = new byte[8];IOUtil.ReadFully(fd, hdr, 0, hdr.Length);if (IsTOC(hdr)){int v = NB.DecodeInt32(hdr, 4);switch (v){case 2:{return new PackIndexV2(fd);}default:{throw new IOException(MessageFormat.Format(JGitText.Get().unsupportedPackIndexVersion, Sharpen.Extensions.ValueOf(v)));}}}return new PackIndexV1(fd, hdr);}
train
false
4,842
public double[] toArray() {if (_count < 1) {return EMPTY_DOUBLE_ARRAY;}double[] result = new double[_count];System.arraycopy(_array, 0, result, 0, _count);return result;}
[ "public", "double", "[", "]", "toArray", "(", ")", "{", "if", "(", "_count", "<", "1", ")", "{", "return", "EMPTY_DOUBLE_ARRAY", ";", "}", "double", "[", "]", "result", "=", "new", "double", "[", "_count", "]", ";", "System", ".", "arraycopy", "(", "_array", ",", "0", ",", "result", ",", "0", ",", "_count", ")", ";", "return", "result", ";", "}" ]
public double[] ToArray(){if (_Count < 1){return EMPTY_DOUBLE_ARRAY;}double[] result = new double[_Count];Array.Copy(_array, 0, result, 0, _Count);return result;}
train
false
4,843
public GetHostReservationPurchasePreviewResult getHostReservationPurchasePreview(GetHostReservationPurchasePreviewRequest request) {request = beforeClientExecution(request);return executeGetHostReservationPurchasePreview(request);}
[ "public", "GetHostReservationPurchasePreviewResult", "getHostReservationPurchasePreview", "(", "GetHostReservationPurchasePreviewRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetHostReservationPurchasePreview", "(", "request", ")", ";", "}" ]
public virtual GetHostReservationPurchasePreviewResponse GetHostReservationPurchasePreview(GetHostReservationPurchasePreviewRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHostReservationPurchasePreviewRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHostReservationPurchasePreviewResponseUnmarshaller.Instance;return Invoke<GetHostReservationPurchasePreviewResponse>(request, options);}
train
true
4,844
public CustomAvailabilityZone createCustomAvailabilityZone(CreateCustomAvailabilityZoneRequest request) {request = beforeClientExecution(request);return executeCreateCustomAvailabilityZone(request);}
[ "public", "CustomAvailabilityZone", "createCustomAvailabilityZone", "(", "CreateCustomAvailabilityZoneRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateCustomAvailabilityZone", "(", "request", ")", ";", "}" ]
public virtual CreateCustomAvailabilityZoneResponse CreateCustomAvailabilityZone(CreateCustomAvailabilityZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCustomAvailabilityZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCustomAvailabilityZoneResponseUnmarshaller.Instance;return Invoke<CreateCustomAvailabilityZoneResponse>(request, options);}
train
false
4,845
public EvaluationTracker(EvaluationCache cache) {_cache = cache;_evaluationFrames = new ArrayList<>();_currentlyEvaluatingCells = new HashSet<>();}
[ "public", "EvaluationTracker", "(", "EvaluationCache", "cache", ")", "{", "_cache", "=", "cache", ";", "_evaluationFrames", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "_currentlyEvaluatingCells", "=", "new", "HashSet", "<", ">", "(", ")", ";", "}" ]
public EvaluationTracker(EvaluationCache cache){_cache = cache;_evaluationFrames = new ArrayList();_currentlyEvaluatingCells = new ArrayList();}
train
false
4,846
public String toString() {return format(false, false);}
[ "public", "String", "toString", "(", ")", "{", "return", "format", "(", "false", ",", "false", ")", ";", "}" ]
public override string ToString(){return Format(false, false);}
train
false
4,847
public AcceptQualificationRequestResult acceptQualificationRequest(AcceptQualificationRequestRequest request) {request = beforeClientExecution(request);return executeAcceptQualificationRequest(request);}
[ "public", "AcceptQualificationRequestResult", "acceptQualificationRequest", "(", "AcceptQualificationRequestRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAcceptQualificationRequest", "(", "request", ")", ";", "}" ]
public virtual AcceptQualificationRequestResponse AcceptQualificationRequest(AcceptQualificationRequestRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptQualificationRequestRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptQualificationRequestResponseUnmarshaller.Instance;return Invoke<AcceptQualificationRequestResponse>(request, options);}
train
true
4,848
public boolean markSupported() {return false;}
[ "public", "boolean", "markSupported", "(", ")", "{", "return", "false", ";", "}" ]
public override bool markSupported(){return false;}
train
false
4,849
public StringBuffer appendTail(StringBuffer buffer) {if (appendPos < regionEnd) {buffer.append(input.substring(appendPos, regionEnd));}return buffer;}
[ "public", "StringBuffer", "appendTail", "(", "StringBuffer", "buffer", ")", "{", "if", "(", "appendPos", "<", "regionEnd", ")", "{", "buffer", ".", "append", "(", "input", ".", "substring", "(", "appendPos", ",", "regionEnd", ")", ")", ";", "}", "return", "buffer", ";", "}" ]
public java.lang.StringBuffer appendTail(java.lang.StringBuffer buffer){if (appendPos < _regionEnd){buffer.append(Sharpen.StringHelper.Substring(input, appendPos, _regionEnd));}return buffer;}
train
false
4,850
public String getSignificantDecimalDigits() {return Long.toString(_wholePart);}
[ "public", "String", "getSignificantDecimalDigits", "(", ")", "{", "return", "Long", ".", "toString", "(", "_wholePart", ")", ";", "}" ]
public String GetSignificantDecimalDigits(){return _wholePart.ToString(CultureInfo.InvariantCulture);}
train
false
4,851
public void setVerticalBorder(boolean value){field_1_options = verticalBorder.setShortBoolean(field_1_options, value);}
[ "public", "void", "setVerticalBorder", "(", "boolean", "value", ")", "{", "field_1_options", "=", "verticalBorder", ".", "setShortBoolean", "(", "field_1_options", ",", "value", ")", ";", "}" ]
public void SetVerticalBorder(bool value){field_1_options = verticalBorder.SetShortBoolean(field_1_options, value);}
train
false
4,852
public CRNRecord(RecordInputStream in) {field_1_last_column_index = in.readUByte();field_2_first_column_index = in.readUByte();field_3_row_index = in.readShort();int nValues = field_1_last_column_index - field_2_first_column_index + 1;field_4_constant_values = ConstantValueParser.parse(in, nValues);}
[ "public", "CRNRecord", "(", "RecordInputStream", "in", ")", "{", "field_1_last_column_index", "=", "in", ".", "readUByte", "(", ")", ";", "field_2_first_column_index", "=", "in", ".", "readUByte", "(", ")", ";", "field_3_row_index", "=", "in", ".", "readShort", "(", ")", ";", "int", "nValues", "=", "field_1_last_column_index", "-", "field_2_first_column_index", "+", "1", ";", "field_4_constant_values", "=", "ConstantValueParser", ".", "parse", "(", "in", ",", "nValues", ")", ";", "}" ]
public CRNRecord(RecordInputStream in1){field_1_last_column_index = in1.ReadByte() & 0x00FF;field_2_first_column_index = in1.ReadByte() & 0x00FF;field_3_row_index = in1.ReadShort();int nValues = field_1_last_column_index - field_2_first_column_index + 1;field_4_constant_values = ConstantValueParser.Parse(in1, nValues);}
train
false
4,853
public DBSecurityGroup revokeDBSecurityGroupIngress(RevokeDBSecurityGroupIngressRequest request) {request = beforeClientExecution(request);return executeRevokeDBSecurityGroupIngress(request);}
[ "public", "DBSecurityGroup", "revokeDBSecurityGroupIngress", "(", "RevokeDBSecurityGroupIngressRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRevokeDBSecurityGroupIngress", "(", "request", ")", ";", "}" ]
public virtual RevokeDBSecurityGroupIngressResponse RevokeDBSecurityGroupIngress(RevokeDBSecurityGroupIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeDBSecurityGroupIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeDBSecurityGroupIngressResponseUnmarshaller.Instance;return Invoke<RevokeDBSecurityGroupIngressResponse>(request, options);}
train
true
4,854
public CharBlockArray append(char[] chars, int start, int length) {int offset = start;int remain = length;while (remain > 0) {if (this.current.length == this.blockSize) {addBlock();}int toCopy = remain;int remainingInBlock = this.blockSize - this.current.length;if (remainingInBlock < toCopy) {toCopy = remainingInBlock;}System.arraycopy(chars, offset, this.current.chars, this.current.length, toCopy);offset += toCopy;remain -= toCopy;this.current.length += toCopy;}this.length += length;return this;}
[ "public", "CharBlockArray", "append", "(", "char", "[", "]", "chars", ",", "int", "start", ",", "int", "length", ")", "{", "int", "offset", "=", "start", ";", "int", "remain", "=", "length", ";", "while", "(", "remain", ">", "0", ")", "{", "if", "(", "this", ".", "current", ".", "length", "==", "this", ".", "blockSize", ")", "{", "addBlock", "(", ")", ";", "}", "int", "toCopy", "=", "remain", ";", "int", "remainingInBlock", "=", "this", ".", "blockSize", "-", "this", ".", "current", ".", "length", ";", "if", "(", "remainingInBlock", "<", "toCopy", ")", "{", "toCopy", "=", "remainingInBlock", ";", "}", "System", ".", "arraycopy", "(", "chars", ",", "offset", ",", "this", ".", "current", ".", "chars", ",", "this", ".", "current", ".", "length", ",", "toCopy", ")", ";", "offset", "+=", "toCopy", ";", "remain", "-=", "toCopy", ";", "this", ".", "current", ".", "length", "+=", "toCopy", ";", "}", "this", ".", "length", "+=", "length", ";", "return", "this", ";", "}" ]
public virtual CharBlockArray Append(char[] chars, int start, int length){int offset = start;int remain = length;while (remain > 0){if (this.current.length == this.blockSize){AddBlock();}int toCopy = remain;int remainingInBlock = this.blockSize - this.current.length;if (remainingInBlock < toCopy){toCopy = remainingInBlock;}Array.Copy(chars, offset, this.current.chars, this.current.length, toCopy);offset += toCopy;remain -= toCopy;this.current.length += toCopy;}this.length += length;return this;}
train
false
4,855
public String toString() {return toString(null, true);}
[ "public", "String", "toString", "(", ")", "{", "return", "toString", "(", "null", ",", "true", ")", ";", "}" ]
public override String ToString(){return ToString(null, true);}
train
false
4,856
public int doLogic() throws Exception {try {Locale locale = getRunData().getLocale();if (locale == null) throw new RuntimeException("Locale must be set with the NewLocale task!");Analyzer analyzer = createAnalyzer(locale, impl);getRunData().setAnalyzer(analyzer);System.out.println("Changed Analyzer to: "+ analyzer.getClass().getName() + "(" + locale + ")");} catch (Exception e) {throw new RuntimeException("Error creating Analyzer: impl=" + impl, e);}return 1;}
[ "public", "int", "doLogic", "(", ")", "throws", "Exception", "{", "try", "{", "Locale", "locale", "=", "getRunData", "(", ")", ".", "getLocale", "(", ")", ";", "if", "(", "locale", "==", "null", ")", "throw", "new", "RuntimeException", "(", "\"Locale must be set with the NewLocale task!\"", ")", ";", "Analyzer", "analyzer", "=", "createAnalyzer", "(", "locale", ",", "impl", ")", ";", "getRunData", "(", ")", ".", "setAnalyzer", "(", "analyzer", ")", ";", "System", ".", "out", ".", "println", "(", "\"Changed Analyzer to: \"", "+", "analyzer", ".", "getClass", "(", ")", ".", "getName", "(", ")", "+", "\"(\"", "+", "locale", "+", "\")\"", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "throw", "new", "RuntimeException", "(", "\"Error creating Analyzer: impl=\"", "+", "impl", ",", "e", ")", ";", "}", "return", "1", ";", "}" ]
public override int DoLogic(){try{CultureInfo locale = RunData.Locale;if (locale == null) throw new Exception("Locale must be set with the NewLocale task!");Analyzer analyzer = CreateAnalyzer(locale, impl);RunData.Analyzer = analyzer;Console.WriteLine("Changed Analyzer to: "+ analyzer.GetType().Name + "(" + locale + ")");}catch (Exception e){throw new Exception("Error creating Analyzer: impl=" + impl, e);}return 1;}
train
false
4,858
public static String toHex(final short[] value){StringBuilder retVal = new StringBuilder();retVal.append('[');for(int x = 0; x < value.length; x++){if (x>0) {retVal.append(", ");}retVal.append(toHex(value[x]));}retVal.append(']');return retVal.toString();}
[ "public", "static", "String", "toHex", "(", "final", "short", "[", "]", "value", ")", "{", "StringBuilder", "retVal", "=", "new", "StringBuilder", "(", ")", ";", "retVal", ".", "append", "(", "'['", ")", ";", "for", "(", "int", "x", "=", "0", ";", "x", "<", "value", ".", "length", ";", "x", "++", ")", "{", "if", "(", "x", ">", "0", ")", "{", "retVal", ".", "append", "(", "\", \"", ")", ";", "}", "retVal", ".", "append", "(", "toHex", "(", "value", "[", "x", "]", ")", ")", ";", "}", "retVal", ".", "append", "(", "']'", ")", ";", "return", "retVal", ".", "toString", "(", ")", ";", "}" ]
public static string ToHex(short[] value){StringBuilder buffer = new StringBuilder();buffer.Append('[');for (int i = 0; i < value.Length; i++){if (i > 0){buffer.Append(", ");}buffer.Append(ToHex(value[i]));}buffer.Append(']');return buffer.ToString();}
train
false
4,859
public ListIPSetsResult listIPSets(ListIPSetsRequest request) {request = beforeClientExecution(request);return executeListIPSets(request);}
[ "public", "ListIPSetsResult", "listIPSets", "(", "ListIPSetsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListIPSets", "(", "request", ")", ";", "}" ]
public virtual ListIPSetsResponse ListIPSets(ListIPSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIPSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIPSetsResponseUnmarshaller.Instance;return Invoke<ListIPSetsResponse>(request, options);}
train
true
4,861
public IndexableField[] getFields(String name) {List<IndexableField> result = new ArrayList<>();for (IndexableField field : fields) {if (field.name().equals(name)) {result.add(field);}}return result.toArray(new IndexableField[result.size()]);}
[ "public", "IndexableField", "[", "]", "getFields", "(", "String", "name", ")", "{", "List", "<", "IndexableField", ">", "result", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "for", "(", "IndexableField", "field", ":", "fields", ")", "{", "if", "(", "field", ".", "name", "(", ")", ".", "equals", "(", "name", ")", ")", "{", "result", ".", "add", "(", "field", ")", ";", "}", "}", "return", "result", ".", "toArray", "(", "new", "IndexableField", "[", "result", ".", "size", "(", ")", "]", ")", ";", "}" ]
public IIndexableField[] GetFields(string name){var result = new List<IIndexableField>();foreach (IIndexableField field in fields){if (field.Name.Equals(name, StringComparison.Ordinal)){result.Add(field);}}return result.ToArray();}
train
false
4,862
public GetTrafficPolicyResult getTrafficPolicy(GetTrafficPolicyRequest request) {request = beforeClientExecution(request);return executeGetTrafficPolicy(request);}
[ "public", "GetTrafficPolicyResult", "getTrafficPolicy", "(", "GetTrafficPolicyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetTrafficPolicy", "(", "request", ")", ";", "}" ]
public virtual GetTrafficPolicyResponse GetTrafficPolicy(GetTrafficPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTrafficPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTrafficPolicyResponseUnmarshaller.Instance;return Invoke<GetTrafficPolicyResponse>(request, options);}
train
true
4,863
public String name() {ensureId();return idBuffer.name();}
[ "public", "String", "name", "(", ")", "{", "ensureId", "(", ")", ";", "return", "idBuffer", ".", "name", "(", ")", ";", "}" ]
public virtual string Name(){EnsureId();return idBuffer.Name;}
train
false
4,864
public DeleteExperimentResult deleteExperiment(DeleteExperimentRequest request) {request = beforeClientExecution(request);return executeDeleteExperiment(request);}
[ "public", "DeleteExperimentResult", "deleteExperiment", "(", "DeleteExperimentRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteExperiment", "(", "request", ")", ";", "}" ]
public virtual DeleteExperimentResponse DeleteExperiment(DeleteExperimentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteExperimentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteExperimentResponseUnmarshaller.Instance;return Invoke<DeleteExperimentResponse>(request, options);}
train
false
4,866
public void serialize(LittleEndianOutput out) {out.writeShort(getReadOnly());out.writeShort(getPassword());out.writeShort(field_3_username_value.length());if(field_3_username_value.length() > 0) {out.writeByte(field_3_username_unicode_options);StringUtil.putCompressedUnicode(getUsername(), out);}}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeShort", "(", "getReadOnly", "(", ")", ")", ";", "out", ".", "writeShort", "(", "getPassword", "(", ")", ")", ";", "out", ".", "writeShort", "(", "field_3_username_value", ".", "length", "(", ")", ")", ";", "if", "(", "field_3_username_value", ".", "length", "(", ")", ">", "0", ")", "{", "out", ".", "writeByte", "(", "field_3_username_unicode_options", ")", ";", "StringUtil", ".", "putCompressedUnicode", "(", "getUsername", "(", ")", ",", "out", ")", ";", "}", "}" ]
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(ReadOnly);out1.WriteShort(Password);out1.WriteShort(field_3_username_value.Length);if (field_3_username_value.Length > 0){out1.WriteByte(field_3_username_unicode_options);StringUtil.PutCompressedUnicode(Username, out1);}}
train
false
4,867
public BulgarianStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "BulgarianStemFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public BulgarianStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
4,868
public GetMirrorListRequest() {super("cr", "2016-06-07", "GetMirrorList", "cr");setUriPattern("/mirrors");setMethod(MethodType.GET);}
[ "public", "GetMirrorListRequest", "(", ")", "{", "super", "(", "\"cr\"", ",", "\"2016-06-07\"", ",", "\"GetMirrorList\"", ",", "\"cr\"", ")", ";", "setUriPattern", "(", "\"/mirrors\"", ")", ";", "setMethod", "(", "MethodType", ".", "GET", ")", ";", "}" ]
public GetMirrorListRequest(): base("cr", "2016-06-07", "GetMirrorList", "cr", "openAPI"){UriPattern = "/mirrors";Method = MethodType.GET;}
train
false
4,869
public DescribeDomainEndpointOptionsResult describeDomainEndpointOptions(DescribeDomainEndpointOptionsRequest request) {request = beforeClientExecution(request);return executeDescribeDomainEndpointOptions(request);}
[ "public", "DescribeDomainEndpointOptionsResult", "describeDomainEndpointOptions", "(", "DescribeDomainEndpointOptionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeDomainEndpointOptions", "(", "request", ")", ";", "}" ]
public virtual DescribeDomainEndpointOptionsResponse DescribeDomainEndpointOptions(DescribeDomainEndpointOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDomainEndpointOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDomainEndpointOptionsResponseUnmarshaller.Instance;return Invoke<DescribeDomainEndpointOptionsResponse>(request, options);}
train
false
4,870
public CommonToken(Pair<TokenSource, CharStream> source, int type, int channel, int start, int stop) {this.source = source;this.type = type;this.channel = channel;this.start = start;this.stop = stop;if (source.a != null) {this.line = source.a.getLine();this.charPositionInLine = source.a.getCharPositionInLine();}}
[ "public", "CommonToken", "(", "Pair", "<", "TokenSource", ",", "CharStream", ">", "source", ",", "int", "type", ",", "int", "channel", ",", "int", "start", ",", "int", "stop", ")", "{", "this", ".", "source", "=", "source", ";", "this", ".", "type", "=", "type", ";", "this", ".", "channel", "=", "channel", ";", "this", ".", "start", "=", "start", ";", "this", ".", "stop", "=", "stop", ";", "if", "(", "source", ".", "a", "!=", "null", ")", "{", "this", ".", "line", "=", "source", ".", "a", ".", "getLine", "(", ")", ";", "this", ".", "charPositionInLine", "=", "source", ".", "a", ".", "getCharPositionInLine", "(", ")", ";", "}", "}" ]
public CommonToken(Tuple<ITokenSource, ICharStream> source, int type, int channel, int start, int stop){this.source = source;this._type = type;this._channel = channel;this.start = start;this.stop = stop;if (source.Item1 != null){this._line = source.Item1.Line;this.charPositionInLine = source.Item1.Column;}}
train
false
4,871
public boolean get(URIish uri, CredentialItem... items)throws UnsupportedCredentialItem {for (CredentialItem i : items) {if (i instanceof CredentialItem.Username) {((CredentialItem.Username) i).setValue(username);continue;}if (i instanceof CredentialItem.Password) {((CredentialItem.Password) i).setValue(password);continue;}if (i instanceof CredentialItem.StringType) {if (i.getPromptText().equals("Password: ")) { ((CredentialItem.StringType) i).setValue(new String(password));continue;}}throw new UnsupportedCredentialItem(uri, i.getClass().getName()+ ":" + i.getPromptText()); }return true;}
[ "public", "boolean", "get", "(", "URIish", "uri", ",", "CredentialItem", "...", "items", ")", "throws", "UnsupportedCredentialItem", "{", "for", "(", "CredentialItem", "i", ":", "items", ")", "{", "if", "(", "i", "instanceof", "CredentialItem", ".", "Username", ")", "{", "(", "(", "CredentialItem", ".", "Username", ")", "i", ")", ".", "setValue", "(", "username", ")", ";", "continue", ";", "}", "if", "(", "i", "instanceof", "CredentialItem", ".", "Password", ")", "{", "(", "(", "CredentialItem", ".", "Password", ")", "i", ")", ".", "setValue", "(", "password", ")", ";", "continue", ";", "}", "if", "(", "i", "instanceof", "CredentialItem", ".", "StringType", ")", "{", "if", "(", "i", ".", "getPromptText", "(", ")", ".", "equals", "(", "\"Password: \"", ")", ")", "{", "(", "(", "CredentialItem", ".", "StringType", ")", "i", ")", ".", "setValue", "(", "new", "String", "(", "password", ")", ")", ";", "continue", ";", "}", "}", "throw", "new", "UnsupportedCredentialItem", "(", "uri", ",", "i", ".", "getClass", "(", ")", ".", "getName", "(", ")", "+", "\":\"", "+", "i", ".", "getPromptText", "(", ")", ")", ";", "}", "return", "true", ";", "}" ]
public override bool Get(URIish uri, params CredentialItem[] items){foreach (CredentialItem i in items){if (i is CredentialItem.Username){((CredentialItem.Username)i).SetValue(username);continue;}if (i is CredentialItem.Password){((CredentialItem.Password)i).SetValue(password);continue;}if (i is CredentialItem.StringType){if (i.GetPromptText().Equals("Password: ")){((CredentialItem.StringType)i).SetValue(new string(password));continue;}}throw new UnsupportedCredentialItem(uri, i.GetType().FullName + ":" + i.GetPromptText());}return true;}
train
false
4,872
public boolean get(String name, boolean dflt) {boolean vals[] = (boolean[]) valByRound.get(name);if (vals != null) {return vals[roundNumber % vals.length];}String sval = props.getProperty(name, "" + dflt);if (sval.indexOf(":") < 0) {return Boolean.valueOf(sval).booleanValue();}int k = sval.indexOf(":");String colName = sval.substring(0, k);sval = sval.substring(k + 1);colForValByRound.put(name, colName);vals = propToBooleanArray(sval);valByRound.put(name, vals);return vals[roundNumber % vals.length];}
[ "public", "boolean", "get", "(", "String", "name", ",", "boolean", "dflt", ")", "{", "boolean", "vals", "[", "]", "=", "(", "boolean", "[", "]", ")", "valByRound", ".", "get", "(", "name", ")", ";", "if", "(", "vals", "!=", "null", ")", "{", "return", "vals", "[", "roundNumber", "%", "vals", ".", "length", "]", ";", "}", "String", "sval", "=", "props", ".", "getProperty", "(", "name", ",", "\"\"", "+", "dflt", ")", ";", "if", "(", "sval", ".", "indexOf", "(", "\":\"", ")", "<", "0", ")", "{", "return", "Boolean", ".", "valueOf", "(", "sval", ")", ".", "booleanValue", "(", ")", ";", "}", "int", "k", "=", "sval", ".", "indexOf", "(", "\":\"", ")", ";", "String", "colName", "=", "sval", ".", "substring", "(", "0", ",", "k", ")", ";", "sval", "=", "sval", ".", "substring", "(", "k", "+", "1", ")", ";", "colForValByRound", ".", "put", "(", "name", ",", "colName", ")", ";", "vals", "=", "propToBooleanArray", "(", "sval", ")", ";", "valByRound", ".", "put", "(", "name", ",", "vals", ")", ";", "return", "vals", "[", "roundNumber", "%", "vals", ".", "length", "]", ";", "}" ]
public virtual double Get(string name, double dflt){double[] vals;object temp;if (valByRound.TryGetValue(name, out temp) && temp != null){vals = (double[])temp;return vals[roundNumber % vals.Length];}string sval;if (!props.TryGetValue(name, out sval)){sval = dflt.ToString(CultureInfo.InvariantCulture);}if (sval.IndexOf(':') < 0){return double.Parse(sval, CultureInfo.InvariantCulture);}int k = sval.IndexOf(':');string colName = sval.Substring(0, k - 0);sval = sval.Substring(k + 1);colForValByRound[name] = colName;vals = PropToDoubleArray(sval);valByRound[name] = vals;return vals[roundNumber % vals.Length];}
train
false
4,873
public UpdateDocumentationVersionResult updateDocumentationVersion(UpdateDocumentationVersionRequest request) {request = beforeClientExecution(request);return executeUpdateDocumentationVersion(request);}
[ "public", "UpdateDocumentationVersionResult", "updateDocumentationVersion", "(", "UpdateDocumentationVersionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateDocumentationVersion", "(", "request", ")", ";", "}" ]
public virtual UpdateDocumentationVersionResponse UpdateDocumentationVersion(UpdateDocumentationVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDocumentationVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDocumentationVersionResponseUnmarshaller.Instance;return Invoke<UpdateDocumentationVersionResponse>(request, options);}
train
true
4,874
public DeleteApplicationInputProcessingConfigurationResult deleteApplicationInputProcessingConfiguration(DeleteApplicationInputProcessingConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteApplicationInputProcessingConfiguration(request);}
[ "public", "DeleteApplicationInputProcessingConfigurationResult", "deleteApplicationInputProcessingConfiguration", "(", "DeleteApplicationInputProcessingConfigurationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteApplicationInputProcessingConfiguration", "(", "request", ")", ";", "}" ]
public virtual DeleteApplicationInputProcessingConfigurationResponse DeleteApplicationInputProcessingConfiguration(DeleteApplicationInputProcessingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApplicationInputProcessingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApplicationInputProcessingConfigurationResponseUnmarshaller.Instance;return Invoke<DeleteApplicationInputProcessingConfigurationResponse>(request, options);}
train
true
4,875
public PurchaseScheduledInstancesResult purchaseScheduledInstances(PurchaseScheduledInstancesRequest request) {request = beforeClientExecution(request);return executePurchaseScheduledInstances(request);}
[ "public", "PurchaseScheduledInstancesResult", "purchaseScheduledInstances", "(", "PurchaseScheduledInstancesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePurchaseScheduledInstances", "(", "request", ")", ";", "}" ]
public virtual PurchaseScheduledInstancesResponse PurchaseScheduledInstances(PurchaseScheduledInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurchaseScheduledInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = PurchaseScheduledInstancesResponseUnmarshaller.Instance;return Invoke<PurchaseScheduledInstancesResponse>(request, options);}
train
true
4,876
public String getHost() {return host;}
[ "public", "String", "getHost", "(", ")", "{", "return", "host", ";", "}" ]
public virtual string GetHost(){return host;}
train
false
4,877
public DeleteNetworkProfileResult deleteNetworkProfile(DeleteNetworkProfileRequest request) {request = beforeClientExecution(request);return executeDeleteNetworkProfile(request);}
[ "public", "DeleteNetworkProfileResult", "deleteNetworkProfile", "(", "DeleteNetworkProfileRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteNetworkProfile", "(", "request", ")", ";", "}" ]
public virtual DeleteNetworkProfileResponse DeleteNetworkProfile(DeleteNetworkProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNetworkProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNetworkProfileResponseUnmarshaller.Instance;return Invoke<DeleteNetworkProfileResponse>(request, options);}
train
true
4,878
public ListSchemasResult listSchemas(ListSchemasRequest request) {request = beforeClientExecution(request);return executeListSchemas(request);}
[ "public", "ListSchemasResult", "listSchemas", "(", "ListSchemasRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListSchemas", "(", "request", ")", ";", "}" ]
public virtual ListSchemasResponse ListSchemas(ListSchemasRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSchemasRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSchemasResponseUnmarshaller.Instance;return Invoke<ListSchemasResponse>(request, options);}
train
false
4,879
public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(field_1_first_row);out.writeShort(field_2_first_col);}
[ "public", "void", "write", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeByte", "(", "sid", "+", "getPtgClass", "(", ")", ")", ";", "out", ".", "writeShort", "(", "field_1_first_row", ")", ";", "out", ".", "writeShort", "(", "field_2_first_col", ")", ";", "}" ]
public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(field_1_first_row);out1.WriteShort(field_2_first_col);}
train
false