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,563
public boolean hitEnd() {return hitEndImpl(address);}
[ "public", "boolean", "hitEnd", "(", ")", "{", "return", "hitEndImpl", "(", "address", ")", ";", "}" ]
public bool hitEnd(){return hitEndImpl(address);}
train
false
4,564
public ListSkillsResult listSkills(ListSkillsRequest request) {request = beforeClientExecution(request);return executeListSkills(request);}
[ "public", "ListSkillsResult", "listSkills", "(", "ListSkillsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListSkills", "(", "request", ")", ";", "}" ]
public virtual ListSkillsResponse ListSkills(ListSkillsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSkillsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSkillsResponseUnmarshaller.Instance;return Invoke<ListSkillsResponse>(request, options);}
train
true
4,565
public String toString() {return "popMode";}
[ "public", "String", "toString", "(", ")", "{", "return", "\"popMode\"", ";", "}" ]
public override string ToString(){return "popMode";}
train
false
4,567
public GetCloudFrontOriginAccessIdentityResult getCloudFrontOriginAccessIdentity(GetCloudFrontOriginAccessIdentityRequest request) {request = beforeClientExecution(request);return executeGetCloudFrontOriginAccessIdentity(request);}
[ "public", "GetCloudFrontOriginAccessIdentityResult", "getCloudFrontOriginAccessIdentity", "(", "GetCloudFrontOriginAccessIdentityRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetCloudFrontOriginAccessIdentity", "(", "request", ")", ";", "}" ]
public virtual GetCloudFrontOriginAccessIdentityResponse GetCloudFrontOriginAccessIdentity(GetCloudFrontOriginAccessIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCloudFrontOriginAccessIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCloudFrontOriginAccessIdentityResponseUnmarshaller.Instance;return Invoke<GetCloudFrontOriginAccessIdentityResponse>(request, options);}
train
true
4,568
public boolean include(RevWalk walker, RevCommit c) {return false;}
[ "public", "boolean", "include", "(", "RevWalk", "walker", ",", "RevCommit", "c", ")", "{", "return", "false", ";", "}" ]
public override bool Include(RevWalk walker, RevCommit c){return false;}
train
false
4,569
public DocumentStoredFieldVisitor() {this.fieldsToAdd = null;}
[ "public", "DocumentStoredFieldVisitor", "(", ")", "{", "this", ".", "fieldsToAdd", "=", "null", ";", "}" ]
public DocumentStoredFieldVisitor(){this.fieldsToAdd = null;}
train
false
4,570
public int addConditionalFormatting(CellRangeAddress[] regions, HSSFConditionalFormattingRule[] cfRules) {if (regions == null) {throw new IllegalArgumentException("regions must not be null");}for(CellRangeAddress range : regions) range.validate(SpreadsheetVersion.EXCEL97);if (cfRules == null) {throw new IllegalArgumentException("cfRules must not be null");}if (cfRules.length == 0) {throw new IllegalArgumentException("cfRules must not be empty");}if (cfRules.length > 3) {throw new IllegalArgumentException("Number of rules must not exceed 3");}CFRuleBase[] rules = new CFRuleBase[cfRules.length];for (int i = 0; i != cfRules.length; i++) {rules[i] = cfRules[i].getCfRuleRecord();}CFRecordsAggregate cfra = new CFRecordsAggregate(regions, rules);return _conditionalFormattingTable.add(cfra);}
[ "public", "int", "addConditionalFormatting", "(", "CellRangeAddress", "[", "]", "regions", ",", "HSSFConditionalFormattingRule", "[", "]", "cfRules", ")", "{", "if", "(", "regions", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"regions must not be null\"", ")", ";", "}", "for", "(", "CellRangeAddress", "range", ":", "regions", ")", "range", ".", "validate", "(", "SpreadsheetVersion", ".", "EXCEL97", ")", ";", "if", "(", "cfRules", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"cfRules must not be null\"", ")", ";", "}", "if", "(", "cfRules", ".", "length", "==", "0", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"cfRules must not be empty\"", ")", ";", "}", "if", "(", "cfRules", ".", "length", ">", "3", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Number of rules must not exceed 3\"", ")", ";", "}", "CFRuleBase", "[", "]", "rules", "=", "new", "CFRuleBase", "[", "cfRules", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "!=", "cfRules", ".", "length", ";", "i", "++", ")", "{", "rules", "[", "i", "]", "=", "cfRules", "[", "i", "]", ".", "getCfRuleRecord", "(", ")", ";", "}", "CFRecordsAggregate", "cfra", "=", "new", "CFRecordsAggregate", "(", "regions", ",", "rules", ")", ";", "return", "_conditionalFormattingTable", ".", "add", "(", "cfra", ")", ";", "}" ]
public int AddConditionalFormatting(CellRangeAddress[] regions, IConditionalFormattingRule[] cfRules){if (regions == null){throw new ArgumentException("regions must not be null");}if (cfRules == null){throw new ArgumentException("cfRules must not be null");}if (cfRules.Length == 0){throw new ArgumentException("cfRules must not be empty");}if (cfRules.Length > 3){throw new ArgumentException("Number of rules must not exceed 3");}CFRuleRecord[] rules = new CFRuleRecord[cfRules.Length];for (int i = 0; i != cfRules.Length; i++){rules[i] = ((HSSFConditionalFormattingRule)cfRules[i]).CfRuleRecord;}CFRecordsAggregate cfra = new CFRecordsAggregate(regions, rules);return _conditionalFormattingTable.Add(cfra);}
train
false
4,571
public FloatBuffer get(float[] dst, int dstOffset, int floatCount) {Arrays.checkOffsetAndCount(dst.length, dstOffset, floatCount);if (floatCount > remaining()) {throw new BufferUnderflowException();}for (int i = dstOffset; i < dstOffset + floatCount; ++i) {dst[i] = get();}return this;}
[ "public", "FloatBuffer", "get", "(", "float", "[", "]", "dst", ",", "int", "dstOffset", ",", "int", "floatCount", ")", "{", "Arrays", ".", "checkOffsetAndCount", "(", "dst", ".", "length", ",", "dstOffset", ",", "floatCount", ")", ";", "if", "(", "floatCount", ">", "remaining", "(", ")", ")", "{", "throw", "new", "BufferUnderflowException", "(", ")", ";", "}", "for", "(", "int", "i", "=", "dstOffset", ";", "i", "<", "dstOffset", "+", "floatCount", ";", "++", "i", ")", "{", "dst", "[", "i", "]", "=", "get", "(", ")", ";", "}", "return", "this", ";", "}" ]
public virtual java.nio.FloatBuffer get(float[] dst, int dstOffset, int floatCount){java.util.Arrays.checkOffsetAndCount(dst.Length, dstOffset, floatCount);if (floatCount > remaining()){throw new java.nio.BufferUnderflowException();}{for (int i = dstOffset; i < dstOffset + floatCount; ++i){dst[i] = get();}}return this;}
train
false
4,572
public void rewind() {pos = 0;}
[ "public", "void", "rewind", "(", ")", "{", "pos", "=", "0", ";", "}" ]
public void Rewind(){pos = 0;}
train
false
4,573
public boolean include(TreeWalk walker) {final int cmp = walker.isPathPrefix(raw, raw.length);if (cmp > 0)throw StopWalkException.INSTANCE;return cmp == 0;}
[ "public", "boolean", "include", "(", "TreeWalk", "walker", ")", "{", "final", "int", "cmp", "=", "walker", ".", "isPathPrefix", "(", "raw", ",", "raw", ".", "length", ")", ";", "if", "(", "cmp", ">", "0", ")", "throw", "StopWalkException", ".", "INSTANCE", ";", "return", "cmp", "==", "0", ";", "}" ]
public override bool Include(TreeWalk walker){int cmp = walker.IsPathPrefix(raw, raw.Length);if (cmp > 0){throw StopWalkException.INSTANCE;}return cmp == 0;}
train
false
4,574
public TagDeliveryStreamResult tagDeliveryStream(TagDeliveryStreamRequest request) {request = beforeClientExecution(request);return executeTagDeliveryStream(request);}
[ "public", "TagDeliveryStreamResult", "tagDeliveryStream", "(", "TagDeliveryStreamRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeTagDeliveryStream", "(", "request", ")", ";", "}" ]
public virtual TagDeliveryStreamResponse TagDeliveryStream(TagDeliveryStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = TagDeliveryStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = TagDeliveryStreamResponseUnmarshaller.Instance;return Invoke<TagDeliveryStreamResponse>(request, options);}
train
true
4,575
public NormalisedDecimal normaliseBaseTen() {return NormalisedDecimal.create(_significand, _binaryExponent);}
[ "public", "NormalisedDecimal", "normaliseBaseTen", "(", ")", "{", "return", "NormalisedDecimal", ".", "create", "(", "_significand", ",", "_binaryExponent", ")", ";", "}" ]
public NormalisedDecimal NormaliseBaseTen(){return NormalisedDecimal.Create(_significand, _binaryExponent);}
train
false
4,576
public NavigableSet<K> descendingKeySet() {return new BoundedMap(!ascending, from, fromBound, to, toBound).navigableKeySet();}
[ "public", "NavigableSet", "<", "K", ">", "descendingKeySet", "(", ")", "{", "return", "new", "BoundedMap", "(", "!", "ascending", ",", "from", ",", "fromBound", ",", "to", ",", "toBound", ")", ".", "navigableKeySet", "(", ")", ";", "}" ]
public java.util.NavigableSet<K> descendingKeySet(){return new java.util.TreeMap<K, V>.BoundedMap(this._enclosing, !this.ascending, this.from, this.fromBound, this.to, this.toBound).navigableKeySet();}
train
false
4,577
public void serialize(LittleEndianOutput out) {out.writeShort(_row);out.writeShort(_firstCol);int nItems = _xfs.length;for (short xf : _xfs) {out.writeShort(xf);}out.writeShort(_lastCol);}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeShort", "(", "_row", ")", ";", "out", ".", "writeShort", "(", "_firstCol", ")", ";", "int", "nItems", "=", "_xfs", ".", "length", ";", "for", "(", "short", "xf", ":", "_xfs", ")", "{", "out", ".", "writeShort", "(", "xf", ")", ";", "}", "out", ".", "writeShort", "(", "_lastCol", ")", ";", "}" ]
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(_row);out1.WriteShort(_first_col);int nItems = _xfs.Length;for (int i = 0; i < nItems; i++){out1.WriteShort(_xfs[i]);}out1.WriteShort(_last_col);}
train
false
4,578
public byte[] toByteArray() {byte[] result = new byte[LONG_SIZE];LittleEndian.putLong( result, 0, fileTime);return result;}
[ "public", "byte", "[", "]", "toByteArray", "(", ")", "{", "byte", "[", "]", "result", "=", "new", "byte", "[", "LONG_SIZE", "]", ";", "LittleEndian", ".", "putLong", "(", "result", ",", "0", ",", "fileTime", ")", ";", "return", "result", ";", "}" ]
public byte[] ToByteArray(){byte[] result = new byte[SIZE];LittleEndian.PutInt(result, 0 * LittleEndian.INT_SIZE, _dwLowDateTime);LittleEndian.PutInt(result, 1 * LittleEndian.INT_SIZE, _dwHighDateTime);return result;}
train
false
4,579
public DiffCommand diff() {return new DiffCommand(repo);}
[ "public", "DiffCommand", "diff", "(", ")", "{", "return", "new", "DiffCommand", "(", "repo", ")", ";", "}" ]
public virtual DiffCommand Diff(){return new DiffCommand(repo);}
train
false
4,580
public ModifySnapshotAttributeResult modifySnapshotAttribute(ModifySnapshotAttributeRequest request) {request = beforeClientExecution(request);return executeModifySnapshotAttribute(request);}
[ "public", "ModifySnapshotAttributeResult", "modifySnapshotAttribute", "(", "ModifySnapshotAttributeRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifySnapshotAttribute", "(", "request", ")", ";", "}" ]
public virtual ModifySnapshotAttributeResponse ModifySnapshotAttribute(ModifySnapshotAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifySnapshotAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifySnapshotAttributeResponseUnmarshaller.Instance;return Invoke<ModifySnapshotAttributeResponse>(request, options);}
train
true
4,581
public CreateSubnetResult createSubnet(CreateSubnetRequest request) {request = beforeClientExecution(request);return executeCreateSubnet(request);}
[ "public", "CreateSubnetResult", "createSubnet", "(", "CreateSubnetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateSubnet", "(", "request", ")", ";", "}" ]
public virtual CreateSubnetResponse CreateSubnet(CreateSubnetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSubnetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSubnetResponseUnmarshaller.Instance;return Invoke<CreateSubnetResponse>(request, options);}
train
true
4,582
@Override public List<E> subList(int start, int end) {return new UnmodifiableRandomAccessList<E>(list.subList(start, end));}
[ "@", "Override", "public", "List", "<", "E", ">", "subList", "(", "int", "start", ",", "int", "end", ")", "{", "return", "new", "UnmodifiableRandomAccessList", "<", "E", ">", "(", "list", ".", "subList", "(", "start", ",", "end", ")", ")", ";", "}" ]
public override java.util.List<E> subList(int start, int end){return new java.util.Collections.UnmodifiableRandomAccessList<E>(list.subList(start, end));}
train
false
4,583
public long getClipboardFormat() throws HPSFException{if (!(getClipboardFormatTag() == CFTAG_WINDOWS))throw new HPSFException("Clipboard Format Tag of Thumbnail must " +"be CFTAG_WINDOWS.");return LittleEndian.getInt(getThumbnail(), OFFSET_CF);}
[ "public", "long", "getClipboardFormat", "(", ")", "throws", "HPSFException", "{", "if", "(", "!", "(", "getClipboardFormatTag", "(", ")", "==", "CFTAG_WINDOWS", ")", ")", "throw", "new", "HPSFException", "(", "\"Clipboard Format Tag of Thumbnail must \"", "+", "\"be CFTAG_WINDOWS.\"", ")", ";", "return", "LittleEndian", ".", "getInt", "(", "getThumbnail", "(", ")", ",", "OFFSET_CF", ")", ";", "}" ]
public long GetClipboardFormat(){if (!(ClipboardFormatTag == CFTAG_WINDOWS))throw new HPSFException("Clipboard Format Tag of Thumbnail must " +"be CFTAG_WINDOWS.");return LittleEndian.GetInt(this.ThumbnailData, OFFSet_CF);}
train
false
4,584
public HSSFDataValidation(CellRangeAddressList regions, DataValidationConstraint constraint) {_regions = regions;_constraint = (DVConstraint)constraint;}
[ "public", "HSSFDataValidation", "(", "CellRangeAddressList", "regions", ",", "DataValidationConstraint", "constraint", ")", "{", "_regions", "=", "regions", ";", "_constraint", "=", "(", "DVConstraint", ")", "constraint", ";", "}" ]
public HSSFDataValidation(CellRangeAddressList regions, IDataValidationConstraint constraint){_regions = regions;_constraint = (DVConstraint)constraint;}
train
false
4,585
public DiffCommand setProgressMonitor(ProgressMonitor monitor) {if (monitor == null) {monitor = NullProgressMonitor.INSTANCE;}this.monitor = monitor;return this;}
[ "public", "DiffCommand", "setProgressMonitor", "(", "ProgressMonitor", "monitor", ")", "{", "if", "(", "monitor", "==", "null", ")", "{", "monitor", "=", "NullProgressMonitor", ".", "INSTANCE", ";", "}", "this", ".", "monitor", "=", "monitor", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.DiffCommand SetProgressMonitor(ProgressMonitor monitor){this.monitor = monitor;return this;}
train
false
4,586
public DeleteSegmentResult deleteSegment(DeleteSegmentRequest request) {request = beforeClientExecution(request);return executeDeleteSegment(request);}
[ "public", "DeleteSegmentResult", "deleteSegment", "(", "DeleteSegmentRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteSegment", "(", "request", ")", ";", "}" ]
public virtual DeleteSegmentResponse DeleteSegment(DeleteSegmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSegmentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSegmentResponseUnmarshaller.Instance;return Invoke<DeleteSegmentResponse>(request, options);}
train
true
4,587
public AcceptVpcPeeringConnectionResult acceptVpcPeeringConnection(AcceptVpcPeeringConnectionRequest request) {request = beforeClientExecution(request);return executeAcceptVpcPeeringConnection(request);}
[ "public", "AcceptVpcPeeringConnectionResult", "acceptVpcPeeringConnection", "(", "AcceptVpcPeeringConnectionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAcceptVpcPeeringConnection", "(", "request", ")", ";", "}" ]
public virtual AcceptVpcPeeringConnectionResponse AcceptVpcPeeringConnection(AcceptVpcPeeringConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptVpcPeeringConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptVpcPeeringConnectionResponseUnmarshaller.Instance;return Invoke<AcceptVpcPeeringConnectionResponse>(request, options);}
train
true
4,588
public final FloatBuffer put(float[] src) {return put(src, 0, src.length);}
[ "public", "final", "FloatBuffer", "put", "(", "float", "[", "]", "src", ")", "{", "return", "put", "(", "src", ",", "0", ",", "src", ".", "length", ")", ";", "}" ]
public java.nio.FloatBuffer put(float[] src){return put(src, 0, src.Length);}
train
false
4,589
public PortugueseLightStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "PortugueseLightStemFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public PortugueseLightStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
4,590
public RefPtg(int row, int column, boolean isRowRelative, boolean isColumnRelative) {super(row, column, isRowRelative, isColumnRelative);}
[ "public", "RefPtg", "(", "int", "row", ",", "int", "column", ",", "boolean", "isRowRelative", ",", "boolean", "isColumnRelative", ")", "{", "super", "(", "row", ",", "column", ",", "isRowRelative", ",", "isColumnRelative", ")", ";", "}" ]
public RefPtg(int row, int column, bool isRowRelative, bool isColumnRelative):base(row, column, isRowRelative, isColumnRelative){Row = row;Column = column;IsRowRelative = isRowRelative;IsColRelative = isColumnRelative;}
train
false
4,591
public ExportJournalToS3Result exportJournalToS3(ExportJournalToS3Request request) {request = beforeClientExecution(request);return executeExportJournalToS3(request);}
[ "public", "ExportJournalToS3Result", "exportJournalToS3", "(", "ExportJournalToS3Request", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeExportJournalToS3", "(", "request", ")", ";", "}" ]
public virtual ExportJournalToS3Response ExportJournalToS3(ExportJournalToS3Request request){var options = new InvokeOptions();options.RequestMarshaller = ExportJournalToS3RequestMarshaller.Instance;options.ResponseUnmarshaller = ExportJournalToS3ResponseUnmarshaller.Instance;return Invoke<ExportJournalToS3Response>(request, options);}
train
false
4,592
public AssociatePhoneNumbersWithVoiceConnectorGroupResult associatePhoneNumbersWithVoiceConnectorGroup(AssociatePhoneNumbersWithVoiceConnectorGroupRequest request) {request = beforeClientExecution(request);return executeAssociatePhoneNumbersWithVoiceConnectorGroup(request);}
[ "public", "AssociatePhoneNumbersWithVoiceConnectorGroupResult", "associatePhoneNumbersWithVoiceConnectorGroup", "(", "AssociatePhoneNumbersWithVoiceConnectorGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAssociatePhoneNumbersWithVoiceConnectorGroup", "(", "request", ")", ";", "}" ]
public virtual AssociatePhoneNumbersWithVoiceConnectorGroupResponse AssociatePhoneNumbersWithVoiceConnectorGroup(AssociatePhoneNumbersWithVoiceConnectorGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociatePhoneNumbersWithVoiceConnectorGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociatePhoneNumbersWithVoiceConnectorGroupResponseUnmarshaller.Instance;return Invoke<AssociatePhoneNumbersWithVoiceConnectorGroupResponse>(request, options);}
train
false
4,593
public RecursivePrefixTreeStrategy(SpatialPrefixTree grid, String fieldName) {super(grid, fieldName);prefixGridScanLevel = grid.getMaxLevels() - 4;}
[ "public", "RecursivePrefixTreeStrategy", "(", "SpatialPrefixTree", "grid", ",", "String", "fieldName", ")", "{", "super", "(", "grid", ",", "fieldName", ")", ";", "prefixGridScanLevel", "=", "grid", ".", "getMaxLevels", "(", ")", "-", "4", ";", "}" ]
public RecursivePrefixTreeStrategy(SpatialPrefixTree grid, string fieldName): base(grid, fieldName, true) {prefixGridScanLevel = grid.MaxLevels - 4;}
train
false
4,595
public GetAlbumsByNamesRequest() {super("CloudPhoto", "2017-07-11", "GetAlbumsByNames", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
[ "public", "GetAlbumsByNamesRequest", "(", ")", "{", "super", "(", "\"CloudPhoto\"", ",", "\"2017-07-11\"", ",", "\"GetAlbumsByNames\"", ",", "\"cloudphoto\"", ")", ";", "setProtocol", "(", "ProtocolType", ".", "HTTPS", ")", ";", "}" ]
public GetAlbumsByNamesRequest(): base("CloudPhoto", "2017-07-11", "GetAlbumsByNames", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
train
false
4,596
public SendRawEmailRequest(RawMessage rawMessage) {setRawMessage(rawMessage);}
[ "public", "SendRawEmailRequest", "(", "RawMessage", "rawMessage", ")", "{", "setRawMessage", "(", "rawMessage", ")", ";", "}" ]
public SendRawEmailRequest(RawMessage rawMessage){_rawMessage = rawMessage;}
train
false
4,598
public Rule(String suffix, int min, String replacement) {this.suffix = suffix.toCharArray();this.replacement = replacement.toCharArray();this.min = min;}
[ "public", "Rule", "(", "String", "suffix", ",", "int", "min", ",", "String", "replacement", ")", "{", "this", ".", "suffix", "=", "suffix", ".", "toCharArray", "(", ")", ";", "this", ".", "replacement", "=", "replacement", ".", "toCharArray", "(", ")", ";", "this", ".", "min", "=", "min", ";", "}" ]
public Rule(string suffix, int min, string replacement){this.m_suffix = suffix.ToCharArray();this.m_replacement = replacement.ToCharArray();this.m_min = min;}
train
false
4,599
public ListDataSetsResult listDataSets(ListDataSetsRequest request) {request = beforeClientExecution(request);return executeListDataSets(request);}
[ "public", "ListDataSetsResult", "listDataSets", "(", "ListDataSetsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListDataSets", "(", "request", ")", ";", "}" ]
public virtual ListDataSetsResponse ListDataSets(ListDataSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDataSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDataSetsResponseUnmarshaller.Instance;return Invoke<ListDataSetsResponse>(request, options);}
train
false
4,600
public int lastIndexOf(E object, int to) {Object[] snapshot = elements;return lastIndexOf(object, snapshot, 0, to);}
[ "public", "int", "lastIndexOf", "(", "E", "object", ",", "int", "to", ")", "{", "Object", "[", "]", "snapshot", "=", "elements", ";", "return", "lastIndexOf", "(", "object", ",", "snapshot", ",", "0", ",", "to", ")", ";", "}" ]
public virtual int lastIndexOf(E @object, int to){object[] snapshot = elements;return lastIndexOf(@object, snapshot, 0, to);}
train
true
4,601
public DBCluster stopDBCluster(StopDBClusterRequest request) {request = beforeClientExecution(request);return executeStopDBCluster(request);}
[ "public", "DBCluster", "stopDBCluster", "(", "StopDBClusterRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStopDBCluster", "(", "request", ")", ";", "}" ]
public virtual StopDBClusterResponse StopDBCluster(StopDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = StopDBClusterResponseUnmarshaller.Instance;return Invoke<StopDBClusterResponse>(request, options);}
train
true
4,602
public ListRuleNamesByTargetResult listRuleNamesByTarget(ListRuleNamesByTargetRequest request) {request = beforeClientExecution(request);return executeListRuleNamesByTarget(request);}
[ "public", "ListRuleNamesByTargetResult", "listRuleNamesByTarget", "(", "ListRuleNamesByTargetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListRuleNamesByTarget", "(", "request", ")", ";", "}" ]
public virtual ListRuleNamesByTargetResponse ListRuleNamesByTarget(ListRuleNamesByTargetRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRuleNamesByTargetRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRuleNamesByTargetResponseUnmarshaller.Instance;return Invoke<ListRuleNamesByTargetResponse>(request, options);}
train
true
4,603
public void readFully(byte[] buf, int off, int len){_in.readFully(buf, off, len);}
[ "public", "void", "readFully", "(", "byte", "[", "]", "buf", ",", "int", "off", ",", "int", "len", ")", "{", "_in", ".", "readFully", "(", "buf", ",", "off", ",", "len", ")", ";", "}" ]
public void ReadFully(byte[] buf, int off, int len){_in.ReadFully(buf, off, len);}
train
false
4,604
public SSTRecord(RecordInputStream in) {field_1_num_strings = in.readInt();field_2_num_unique_strings = in.readInt();field_3_strings = new IntMapper<>();deserializer = new SSTDeserializer(field_3_strings);if(field_1_num_strings == 0) {field_2_num_unique_strings = 0;return;}deserializer.manufactureStrings( field_2_num_unique_strings, in );}
[ "public", "SSTRecord", "(", "RecordInputStream", "in", ")", "{", "field_1_num_strings", "=", "in", ".", "readInt", "(", ")", ";", "field_2_num_unique_strings", "=", "in", ".", "readInt", "(", ")", ";", "field_3_strings", "=", "new", "IntMapper", "<", ">", "(", ")", ";", "deserializer", "=", "new", "SSTDeserializer", "(", "field_3_strings", ")", ";", "if", "(", "field_1_num_strings", "==", "0", ")", "{", "field_2_num_unique_strings", "=", "0", ";", "return", ";", "}", "deserializer", ".", "manufactureStrings", "(", "field_2_num_unique_strings", ",", "in", ")", ";", "}" ]
public SSTRecord(RecordInputStream in1){field_1_num_strings = in1.ReadInt();field_2_num_unique_strings = in1.ReadInt();field_3_strings = new IntMapper<UnicodeString>();deserializer = new SSTDeserializer(field_3_strings);deserializer.ManufactureStrings(field_2_num_unique_strings, in1);}
train
false
4,605
public DeleteBatchPredictionResult deleteBatchPrediction(DeleteBatchPredictionRequest request) {request = beforeClientExecution(request);return executeDeleteBatchPrediction(request);}
[ "public", "DeleteBatchPredictionResult", "deleteBatchPrediction", "(", "DeleteBatchPredictionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteBatchPrediction", "(", "request", ")", ";", "}" ]
public virtual DeleteBatchPredictionResponse DeleteBatchPrediction(DeleteBatchPredictionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteBatchPredictionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteBatchPredictionResponseUnmarshaller.Instance;return Invoke<DeleteBatchPredictionResponse>(request, options);}
train
true
4,606
public SetReceiptRulePositionResult setReceiptRulePosition(SetReceiptRulePositionRequest request) {request = beforeClientExecution(request);return executeSetReceiptRulePosition(request);}
[ "public", "SetReceiptRulePositionResult", "setReceiptRulePosition", "(", "SetReceiptRulePositionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeSetReceiptRulePosition", "(", "request", ")", ";", "}" ]
public virtual SetReceiptRulePositionResponse SetReceiptRulePosition(SetReceiptRulePositionRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetReceiptRulePositionRequestMarshaller.Instance;options.ResponseUnmarshaller = SetReceiptRulePositionResponseUnmarshaller.Instance;return Invoke<SetReceiptRulePositionResponse>(request, options);}
train
true
4,607
public Ref3DPtg(String cellref, int externIdx ) {this(new CellReference(cellref), externIdx);}
[ "public", "Ref3DPtg", "(", "String", "cellref", ",", "int", "externIdx", ")", "{", "this", "(", "new", "CellReference", "(", "cellref", ")", ",", "externIdx", ")", ";", "}" ]
public Ref3DPtg(String cellref, int externIdx){CellReference c = new CellReference(cellref);Row=c.Row;Column=c.Col;IsColRelative=!c.IsColAbsolute;IsRowRelative=!c.IsRowAbsolute;ExternSheetIndex=externIdx;}
train
false
4,610
public char[] get(int posStart, int length) {assert length > 0;assert inBounds(posStart): "posStart=" + posStart + " length=" + length;final int startIndex = getIndex(posStart);final int endIndex = getIndex(posStart + length);final char[] result = new char[length];if (endIndex >= startIndex && length < buffer.length) {System.arraycopy(buffer, startIndex, result, 0, endIndex-startIndex);} else {final int part1 = buffer.length-startIndex;System.arraycopy(buffer, startIndex, result, 0, part1);System.arraycopy(buffer, 0, result, buffer.length-startIndex, length-part1);}return result;}
[ "public", "char", "[", "]", "get", "(", "int", "posStart", ",", "int", "length", ")", "{", "assert", "length", ">", "0", ";", "assert", "inBounds", "(", "posStart", ")", ":", "\"posStart=\"", "+", "posStart", "+", "\" length=\"", "+", "length", ";", "final", "int", "startIndex", "=", "getIndex", "(", "posStart", ")", ";", "final", "int", "endIndex", "=", "getIndex", "(", "posStart", "+", "length", ")", ";", "final", "char", "[", "]", "result", "=", "new", "char", "[", "length", "]", ";", "if", "(", "endIndex", ">=", "startIndex", "&&", "length", "<", "buffer", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "buffer", ",", "startIndex", ",", "result", ",", "0", ",", "endIndex", "-", "startIndex", ")", ";", "}", "else", "{", "final", "int", "part1", "=", "buffer", ".", "length", "-", "startIndex", ";", "System", ".", "arraycopy", "(", "buffer", ",", "startIndex", ",", "result", ",", "0", ",", "part1", ")", ";", "System", ".", "arraycopy", "(", "buffer", ",", "0", ",", "result", ",", "buffer", ".", "length", "-", "startIndex", ",", "length", "-", "part1", ")", ";", "}", "return", "result", ";", "}" ]
public char[] Get(int posStart, int length){Debug.Assert(length > 0);Debug.Assert(InBounds(posStart), "posStart=" + posStart + " length=" + length);int startIndex = GetIndex(posStart);int endIndex = GetIndex(posStart + length);var result = new char[length];if (endIndex >= startIndex && length < buffer.Length){Array.Copy(buffer, startIndex, result, 0, endIndex - startIndex);}else{int part1 = buffer.Length - startIndex;Array.Copy(buffer, startIndex, result, 0, part1);Array.Copy(buffer, 0, result, buffer.Length - startIndex, length - part1);}return result;}
train
false
4,611
public IndexInput openInput(String name, IOContext context) throws IOException {ensureOpen();if (context.context != Context.MERGE || context.mergeInfo.estimatedMergeBytes < minBytesDirect || fileLength(name) < minBytesDirect) {return delegate.openInput(name, context);} else {return new NativeUnixIndexInput(getDirectory().resolve(name), mergeBufferSize);}}
[ "public", "IndexInput", "openInput", "(", "String", "name", ",", "IOContext", "context", ")", "throws", "IOException", "{", "ensureOpen", "(", ")", ";", "if", "(", "context", ".", "context", "!=", "Context", ".", "MERGE", "||", "context", ".", "mergeInfo", ".", "estimatedMergeBytes", "<", "minBytesDirect", "||", "fileLength", "(", "name", ")", "<", "minBytesDirect", ")", "{", "return", "delegate", ".", "openInput", "(", "name", ",", "context", ")", ";", "}", "else", "{", "return", "new", "NativeUnixIndexInput", "(", "getDirectory", "(", ")", ".", "resolve", "(", "name", ")", ",", "mergeBufferSize", ")", ";", "}", "}" ]
public IndexInput openInput(string name, IOContext context) throws IOException{ensureOpen();if (context.context != Context.MERGE || context.mergeInfo.estimatedMergeBytes < minBytesDirect || fileLength(name) < minBytesDirect){return @delegate.openInput(name, context);}else{return new NativeUnixIndexInput(new File(Directory, name), mergeBufferSize);}}
train
false
4,612
public EscherArrayProperty(short id, byte[] complexData) {this(id, safeSize(complexData == null ? 0 : complexData.length));setComplexData(complexData);}
[ "public", "EscherArrayProperty", "(", "short", "id", ",", "byte", "[", "]", "complexData", ")", "{", "this", "(", "id", ",", "safeSize", "(", "complexData", "==", "null", "?", "0", ":", "complexData", ".", "length", ")", ")", ";", "setComplexData", "(", "complexData", ")", ";", "}" ]
public EscherArrayProperty(short id, byte[] complexData): base(id, CheckComplexData(complexData)){emptyComplexPart = complexData.Length == 0;}
train
false
4,613
public NamePtg(int nameIndex) {field_1_label_index = 1 + nameIndex; }
[ "public", "NamePtg", "(", "int", "nameIndex", ")", "{", "field_1_label_index", "=", "1", "+", "nameIndex", ";", "}" ]
public NamePtg(int nameIndex){field_1_label_index = 1 + nameIndex; }
train
false
4,614
public DescribeHumanLoopResult describeHumanLoop(DescribeHumanLoopRequest request) {request = beforeClientExecution(request);return executeDescribeHumanLoop(request);}
[ "public", "DescribeHumanLoopResult", "describeHumanLoop", "(", "DescribeHumanLoopRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeHumanLoop", "(", "request", ")", ";", "}" ]
public virtual DescribeHumanLoopResponse DescribeHumanLoop(DescribeHumanLoopRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeHumanLoopRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeHumanLoopResponseUnmarshaller.Instance;return Invoke<DescribeHumanLoopResponse>(request, options);}
train
false
4,615
public PutDedicatedIpInPoolResult putDedicatedIpInPool(PutDedicatedIpInPoolRequest request) {request = beforeClientExecution(request);return executePutDedicatedIpInPool(request);}
[ "public", "PutDedicatedIpInPoolResult", "putDedicatedIpInPool", "(", "PutDedicatedIpInPoolRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePutDedicatedIpInPool", "(", "request", ")", ";", "}" ]
public virtual PutDedicatedIpInPoolResponse PutDedicatedIpInPool(PutDedicatedIpInPoolRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutDedicatedIpInPoolRequestMarshaller.Instance;options.ResponseUnmarshaller = PutDedicatedIpInPoolResponseUnmarshaller.Instance;return Invoke<PutDedicatedIpInPoolResponse>(request, options);}
train
true
4,616
public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName()).append(" [XCT");sb.append(" nCRNs=").append(field_1_number_crn_records);sb.append(" sheetIx=").append(field_2_sheet_table_index);sb.append("]");return sb.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "sb", ".", "append", "(", "getClass", "(", ")", ".", "getName", "(", ")", ")", ".", "append", "(", "\" [XCT\"", ")", ";", "sb", ".", "append", "(", "\" nCRNs=\"", ")", ".", "append", "(", "field_1_number_crn_records", ")", ";", "sb", ".", "append", "(", "\" sheetIx=\"", ")", ".", "append", "(", "field_2_sheet_table_index", ")", ";", "sb", ".", "append", "(", "\"]\"", ")", ";", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetType().Name).Append(" [XCT");sb.Append(" nCRNs=").Append(field_1_number_crn_records);sb.Append(" sheetIx=").Append(field_2_sheet_table_index);sb.Append("]");return sb.ToString();}
train
false
4,617
public ObjectId idFor(int objectType, long length, InputStream in)throws IOException {SHA1 md = SHA1.newInstance();md.update(Constants.encodedTypeString(objectType));md.update((byte) ' ');md.update(Constants.encodeASCII(length));md.update((byte) 0);byte[] buf = buffer();while (length > 0) {int n = in.read(buf, 0, (int) Math.min(length, buf.length));if (n < 0)throw new EOFException(JGitText.get().unexpectedEndOfInput);md.update(buf, 0, n);length -= n;}return md.toObjectId();}
[ "public", "ObjectId", "idFor", "(", "int", "objectType", ",", "long", "length", ",", "InputStream", "in", ")", "throws", "IOException", "{", "SHA1", "md", "=", "SHA1", ".", "newInstance", "(", ")", ";", "md", ".", "update", "(", "Constants", ".", "encodedTypeString", "(", "objectType", ")", ")", ";", "md", ".", "update", "(", "(", "byte", ")", "' '", ")", ";", "md", ".", "update", "(", "Constants", ".", "encodeASCII", "(", "length", ")", ")", ";", "md", ".", "update", "(", "(", "byte", ")", "0", ")", ";", "byte", "[", "]", "buf", "=", "buffer", "(", ")", ";", "while", "(", "length", ">", "0", ")", "{", "int", "n", "=", "in", ".", "read", "(", "buf", ",", "0", ",", "(", "int", ")", "Math", ".", "min", "(", "length", ",", "buf", ".", "length", ")", ")", ";", "if", "(", "n", "<", "0", ")", "throw", "new", "EOFException", "(", "JGitText", ".", "get", "(", ")", ".", "unexpectedEndOfInput", ")", ";", "md", ".", "update", "(", "buf", ",", "0", ",", "n", ")", ";", "length", "-=", "n", ";", "}", "return", "md", ".", "toObjectId", "(", ")", ";", "}" ]
public virtual ObjectId IdFor(int objectType, long length, InputStream @in){MessageDigest md = Digest();md.Update(Constants.EncodedTypeString(objectType));md.Update(unchecked((byte)' '));md.Update(Constants.EncodeASCII(length));md.Update(unchecked((byte)0));byte[] buf = Buffer();while (length > 0){int n = @in.Read(buf, 0, (int)Math.Min(length, buf.Length));if (n < 0){throw new EOFException("Unexpected end of input");}md.Update(buf, 0, n);length -= n;}return ObjectId.FromRaw(md.Digest());}
train
false
4,618
public List<Query> makeLuceneSubQueriesField(String fn, BasicQueryFactory qf) {List<Query> luceneSubQueries = new ArrayList<>();Iterator<SrndQuery> sqi = getSubQueriesIterator();while (sqi.hasNext()) {luceneSubQueries.add( (sqi.next()).makeLuceneQueryField(fn, qf));}return luceneSubQueries;}
[ "public", "List", "<", "Query", ">", "makeLuceneSubQueriesField", "(", "String", "fn", ",", "BasicQueryFactory", "qf", ")", "{", "List", "<", "Query", ">", "luceneSubQueries", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "Iterator", "<", "SrndQuery", ">", "sqi", "=", "getSubQueriesIterator", "(", ")", ";", "while", "(", "sqi", ".", "hasNext", "(", ")", ")", "{", "luceneSubQueries", ".", "add", "(", "(", "sqi", ".", "next", "(", ")", ")", ".", "makeLuceneQueryField", "(", "fn", ",", "qf", ")", ")", ";", "}", "return", "luceneSubQueries", ";", "}" ]
public virtual IList<Search.Query> MakeLuceneSubQueriesField(string fn, BasicQueryFactory qf){List<Search.Query> luceneSubQueries = new List<Search.Query>();IEnumerator<SrndQuery> sqi = GetSubQueriesEnumerator();while (sqi.MoveNext()){luceneSubQueries.Add((sqi.Current).MakeLuceneQueryField(fn, qf));}return luceneSubQueries;}
train
false
4,620
public QueryNode process(QueryNode queryTree) throws QueryNodeException {Operator op = getQueryConfigHandler().get(ConfigurationKeys.DEFAULT_OPERATOR);if (op == null) {throw new IllegalArgumentException("StandardQueryConfigHandler.ConfigurationKeys.DEFAULT_OPERATOR should be set on the QueryConfigHandler");}this.usingAnd = StandardQueryConfigHandler.Operator.AND == op;return processIteration(queryTree);}
[ "public", "QueryNode", "process", "(", "QueryNode", "queryTree", ")", "throws", "QueryNodeException", "{", "Operator", "op", "=", "getQueryConfigHandler", "(", ")", ".", "get", "(", "ConfigurationKeys", ".", "DEFAULT_OPERATOR", ")", ";", "if", "(", "op", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"StandardQueryConfigHandler.ConfigurationKeys.DEFAULT_OPERATOR should be set on the QueryConfigHandler\"", ")", ";", "}", "this", ".", "usingAnd", "=", "StandardQueryConfigHandler", ".", "Operator", ".", "AND", "==", "op", ";", "return", "processIteration", "(", "queryTree", ")", ";", "}" ]
public virtual IQueryNode Process(IQueryNode queryTree){Operator? op = GetQueryConfigHandler().Get(ConfigurationKeys.DEFAULT_OPERATOR);if (op == null){throw new ArgumentException("StandardQueryConfigHandler.ConfigurationKeys.DEFAULT_OPERATOR should be set on the QueryConfigHandler");}this.usingAnd = Operator.AND == op;return ProcessIteration(queryTree);}
train
false
4,621
public DBCluster startDBCluster(StartDBClusterRequest request) {request = beforeClientExecution(request);return executeStartDBCluster(request);}
[ "public", "DBCluster", "startDBCluster", "(", "StartDBClusterRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStartDBCluster", "(", "request", ")", ";", "}" ]
public virtual StartDBClusterResponse StartDBCluster(StartDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDBClusterResponseUnmarshaller.Instance;return Invoke<StartDBClusterResponse>(request, options);}
train
true
4,622
public Ptg[] getParsedExpression() {return Formula.getTokens(field_5_name_definition);}
[ "public", "Ptg", "[", "]", "getParsedExpression", "(", ")", "{", "return", "Formula", ".", "getTokens", "(", "field_5_name_definition", ")", ";", "}" ]
public Ptg[] GetParsedExpression(){return Formula.GetTokens(field_5_name_definition);}
train
false
4,623
public final long getFilePointer() { return bufferStart + bufferPosition; }
[ "public", "final", "long", "getFilePointer", "(", ")", "{", "return", "bufferStart", "+", "bufferPosition", ";", "}" ]
public override sealed long GetFilePointer(){return bufferStart + bufferPosition;}
train
false
4,624
public ListDevicesResult listDevices(ListDevicesRequest request) {request = beforeClientExecution(request);return executeListDevices(request);}
[ "public", "ListDevicesResult", "listDevices", "(", "ListDevicesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListDevices", "(", "request", ")", ";", "}" ]
public virtual ListDevicesResponse ListDevices(ListDevicesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDevicesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDevicesResponseUnmarshaller.Instance;return Invoke<ListDevicesResponse>(request, options);}
train
true
4,625
public ApplyTokenRequest() {super("OnsMqtt", "2019-12-11", "ApplyToken", "onsmqtt");setMethod(MethodType.POST);}
[ "public", "ApplyTokenRequest", "(", ")", "{", "super", "(", "\"OnsMqtt\"", ",", "\"2019-12-11\"", ",", "\"ApplyToken\"", ",", "\"onsmqtt\"", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ")", ";", "}" ]
public ApplyTokenRequest(): base("OnsMqtt", "2019-12-11", "ApplyToken", "onsmqtt", "openAPI"){Method = MethodType.POST;}
train
false
4,626
public EnableVpcClassicLinkDnsSupportResult enableVpcClassicLinkDnsSupport(EnableVpcClassicLinkDnsSupportRequest request) {request = beforeClientExecution(request);return executeEnableVpcClassicLinkDnsSupport(request);}
[ "public", "EnableVpcClassicLinkDnsSupportResult", "enableVpcClassicLinkDnsSupport", "(", "EnableVpcClassicLinkDnsSupportRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeEnableVpcClassicLinkDnsSupport", "(", "request", ")", ";", "}" ]
public virtual EnableVpcClassicLinkDnsSupportResponse EnableVpcClassicLinkDnsSupport(EnableVpcClassicLinkDnsSupportRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableVpcClassicLinkDnsSupportRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableVpcClassicLinkDnsSupportResponseUnmarshaller.Instance;return Invoke<EnableVpcClassicLinkDnsSupportResponse>(request, options);}
train
true
4,627
public Cluster modifyClusterDbRevision(ModifyClusterDbRevisionRequest request) {request = beforeClientExecution(request);return executeModifyClusterDbRevision(request);}
[ "public", "Cluster", "modifyClusterDbRevision", "(", "ModifyClusterDbRevisionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyClusterDbRevision", "(", "request", ")", ";", "}" ]
public virtual ModifyClusterDbRevisionResponse ModifyClusterDbRevision(ModifyClusterDbRevisionRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClusterDbRevisionRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClusterDbRevisionResponseUnmarshaller.Instance;return Invoke<ModifyClusterDbRevisionResponse>(request, options);}
train
true
4,628
public final LongBuffer put(long[] src) {return put(src, 0, src.length);}
[ "public", "final", "LongBuffer", "put", "(", "long", "[", "]", "src", ")", "{", "return", "put", "(", "src", ",", "0", ",", "src", ".", "length", ")", ";", "}" ]
public java.nio.LongBuffer put(long[] src){return put(src, 0, src.Length);}
train
false
4,629
public Object clone() {try {return super.clone();} catch (CloneNotSupportedException e) {throw new AssertionError();}}
[ "public", "Object", "clone", "(", ")", "{", "try", "{", "return", "super", ".", "clone", "(", ")", ";", "}", "catch", "(", "CloneNotSupportedException", "e", ")", "{", "throw", "new", "AssertionError", "(", ")", ";", "}", "}" ]
public virtual object clone(){throw new System.NotImplementedException();}
train
false
4,630
public LinkFaceRequest() {super("LinkFace", "2018-07-20", "LinkFace");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
[ "public", "LinkFaceRequest", "(", ")", "{", "super", "(", "\"LinkFace\"", ",", "\"2018-07-20\"", ",", "\"LinkFace\"", ")", ";", "setProtocol", "(", "ProtocolType", ".", "HTTPS", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ")", ";", "}" ]
public LinkFaceRequest(): base("LinkFace", "2018-07-20", "LinkFace"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
train
false
4,631
public RemoveAttributesResult removeAttributes(RemoveAttributesRequest request) {request = beforeClientExecution(request);return executeRemoveAttributes(request);}
[ "public", "RemoveAttributesResult", "removeAttributes", "(", "RemoveAttributesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRemoveAttributes", "(", "request", ")", ";", "}" ]
public virtual RemoveAttributesResponse RemoveAttributes(RemoveAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveAttributesResponseUnmarshaller.Instance;return Invoke<RemoveAttributesResponse>(request, options);}
train
true
4,632
public boolean remove(Object o) {return ConcurrentHashMap.this.remove(o) != null;}
[ "public", "boolean", "remove", "(", "Object", "o", ")", "{", "return", "ConcurrentHashMap", ".", "this", ".", "remove", "(", "o", ")", "!=", "null", ";", "}" ]
public override bool remove(object o){lock (this._enclosing){int oldSize = this._enclosing._size;this._enclosing.remove(o);return this._enclosing._size != oldSize;}}
train
false
4,633
public String toFormulaString(String[] operands) {return "(" + operands[0] + ")";}
[ "public", "String", "toFormulaString", "(", "String", "[", "]", "operands", ")", "{", "return", "\"(\"", "+", "operands", "[", "0", "]", "+", "\")\"", ";", "}" ]
public String ToFormulaString(String[] operands){return "(" + operands[0] + ")";}
train
false
4,634
public boolean equals(Object obj) {if (this == obj) return true;if (obj == null) return false;if (getClass() != obj.getClass()) return false;PostingsAndFreq other = (PostingsAndFreq) obj;if (position != other.position) return false;if (terms == null) return other.terms == null;return Arrays.equals(terms, other.terms);}
[ "public", "boolean", "equals", "(", "Object", "obj", ")", "{", "if", "(", "this", "==", "obj", ")", "return", "true", ";", "if", "(", "obj", "==", "null", ")", "return", "false", ";", "if", "(", "getClass", "(", ")", "!=", "obj", ".", "getClass", "(", ")", ")", "return", "false", ";", "PostingsAndFreq", "other", "=", "(", "PostingsAndFreq", ")", "obj", ";", "if", "(", "position", "!=", "other", ".", "position", ")", "return", "false", ";", "if", "(", "terms", "==", "null", ")", "return", "other", ".", "terms", "==", "null", ";", "return", "Arrays", ".", "equals", "(", "terms", ",", "other", ".", "terms", ")", ";", "}" ]
public override bool Equals(object obj){if (this == obj){return true;}if (obj == null){return false;}if (this.GetType() != obj.GetType()){return false;}PostingsAndFreq other = (PostingsAndFreq)obj;if (docFreq != other.docFreq){return false;}if (position != other.position){return false;}if (terms == null){return other.terms == null;}return Arrays.Equals(terms, other.terms);}
train
false
4,635
public ModifyMountTargetSecurityGroupsResult modifyMountTargetSecurityGroups(ModifyMountTargetSecurityGroupsRequest request) {request = beforeClientExecution(request);return executeModifyMountTargetSecurityGroups(request);}
[ "public", "ModifyMountTargetSecurityGroupsResult", "modifyMountTargetSecurityGroups", "(", "ModifyMountTargetSecurityGroupsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyMountTargetSecurityGroups", "(", "request", ")", ";", "}" ]
public virtual ModifyMountTargetSecurityGroupsResponse ModifyMountTargetSecurityGroups(ModifyMountTargetSecurityGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyMountTargetSecurityGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyMountTargetSecurityGroupsResponseUnmarshaller.Instance;return Invoke<ModifyMountTargetSecurityGroupsResponse>(request, options);}
train
true
4,636
public ListBatchInferenceJobsResult listBatchInferenceJobs(ListBatchInferenceJobsRequest request) {request = beforeClientExecution(request);return executeListBatchInferenceJobs(request);}
[ "public", "ListBatchInferenceJobsResult", "listBatchInferenceJobs", "(", "ListBatchInferenceJobsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListBatchInferenceJobs", "(", "request", ")", ";", "}" ]
public virtual ListBatchInferenceJobsResponse ListBatchInferenceJobs(ListBatchInferenceJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListBatchInferenceJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListBatchInferenceJobsResponseUnmarshaller.Instance;return Invoke<ListBatchInferenceJobsResponse>(request, options);}
train
false
4,637
public long get(int i) {if (count <= i)throw new ArrayIndexOutOfBoundsException(i);return entries[i];}
[ "public", "long", "get", "(", "int", "i", ")", "{", "if", "(", "count", "<=", "i", ")", "throw", "new", "ArrayIndexOutOfBoundsException", "(", "i", ")", ";", "return", "entries", "[", "i", "]", ";", "}" ]
public virtual long Get(int i){if (count <= i){throw Sharpen.Extensions.CreateIndexOutOfRangeException(i);}return entries[i];}
train
false
4,638
public LimitTokenPositionFilterFactory(Map<String,String> args) {super(args);maxTokenPosition = requireInt(args, MAX_TOKEN_POSITION_KEY);consumeAllTokens = getBoolean(args, CONSUME_ALL_TOKENS_KEY, false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "LimitTokenPositionFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "maxTokenPosition", "=", "requireInt", "(", "args", ",", "MAX_TOKEN_POSITION_KEY", ")", ";", "consumeAllTokens", "=", "getBoolean", "(", "args", ",", "CONSUME_ALL_TOKENS_KEY", ",", "false", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public LimitTokenPositionFilterFactory(IDictionary<string, string> args): base(args){maxTokenPosition = RequireInt32(args, MAX_TOKEN_POSITION_KEY);consumeAllTokens = GetBoolean(args, CONSUME_ALL_TOKENS_KEY, false);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
4,639
public SaveRecalcRecord(RecordInputStream in) {field_1_recalc = in.readShort();}
[ "public", "SaveRecalcRecord", "(", "RecordInputStream", "in", ")", "{", "field_1_recalc", "=", "in", ".", "readShort", "(", ")", ";", "}" ]
public SaveRecalcRecord(RecordInputStream in1){field_1_recalc = in1.ReadShort();}
train
false
4,640
public DeleteSecurityGroupResult deleteSecurityGroup(DeleteSecurityGroupRequest request) {request = beforeClientExecution(request);return executeDeleteSecurityGroup(request);}
[ "public", "DeleteSecurityGroupResult", "deleteSecurityGroup", "(", "DeleteSecurityGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteSecurityGroup", "(", "request", ")", ";", "}" ]
public virtual DeleteSecurityGroupResponse DeleteSecurityGroup(DeleteSecurityGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSecurityGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSecurityGroupResponseUnmarshaller.Instance;return Invoke<DeleteSecurityGroupResponse>(request, options);}
train
true
4,641
public IntervalSet getExpectedTokens() {return getATN().getExpectedTokens(getState(), getContext());}
[ "public", "IntervalSet", "getExpectedTokens", "(", ")", "{", "return", "getATN", "(", ")", ".", "getExpectedTokens", "(", "getState", "(", ")", ",", "getContext", "(", ")", ")", ";", "}" ]
public virtual IntervalSet GetExpectedTokens(){return Atn.GetExpectedTokens(State, Context);}
train
false
4,642
public void print(long l) {print(String.valueOf(l));}
[ "public", "void", "print", "(", "long", "l", ")", "{", "print", "(", "String", ".", "valueOf", "(", "l", ")", ")", ";", "}" ]
public virtual void print(long l){print(l.ToString());}
train
false
4,643
public ResetPersonalPINResult resetPersonalPIN(ResetPersonalPINRequest request) {request = beforeClientExecution(request);return executeResetPersonalPIN(request);}
[ "public", "ResetPersonalPINResult", "resetPersonalPIN", "(", "ResetPersonalPINRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeResetPersonalPIN", "(", "request", ")", ";", "}" ]
public virtual ResetPersonalPINResponse ResetPersonalPIN(ResetPersonalPINRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetPersonalPINRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetPersonalPINResponseUnmarshaller.Instance;return Invoke<ResetPersonalPINResponse>(request, options);}
train
true
4,644
public StartSmartHomeApplianceDiscoveryResult startSmartHomeApplianceDiscovery(StartSmartHomeApplianceDiscoveryRequest request) {request = beforeClientExecution(request);return executeStartSmartHomeApplianceDiscovery(request);}
[ "public", "StartSmartHomeApplianceDiscoveryResult", "startSmartHomeApplianceDiscovery", "(", "StartSmartHomeApplianceDiscoveryRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStartSmartHomeApplianceDiscovery", "(", "request", ")", ";", "}" ]
public virtual StartSmartHomeApplianceDiscoveryResponse StartSmartHomeApplianceDiscovery(StartSmartHomeApplianceDiscoveryRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartSmartHomeApplianceDiscoveryRequestMarshaller.Instance;options.ResponseUnmarshaller = StartSmartHomeApplianceDiscoveryResponseUnmarshaller.Instance;return Invoke<StartSmartHomeApplianceDiscoveryResponse>(request, options);}
train
true
4,645
public Query parse(String queryText) {if ("*".equals(queryText.trim())) {return new MatchAllDocsQuery();}char data[] = queryText.toCharArray();char buffer[] = new char[data.length];State state = new State(data, buffer, 0, data.length);parseSubQuery(state);if (state.top == null) {return new MatchNoDocsQuery("empty string passed to query parser");} else {return state.top;}}
[ "public", "Query", "parse", "(", "String", "queryText", ")", "{", "if", "(", "\"*\"", ".", "equals", "(", "queryText", ".", "trim", "(", ")", ")", ")", "{", "return", "new", "MatchAllDocsQuery", "(", ")", ";", "}", "char", "data", "[", "]", "=", "queryText", ".", "toCharArray", "(", ")", ";", "char", "buffer", "[", "]", "=", "new", "char", "[", "data", ".", "length", "]", ";", "State", "state", "=", "new", "State", "(", "data", ",", "buffer", ",", "0", ",", "data", ".", "length", ")", ";", "parseSubQuery", "(", "state", ")", ";", "if", "(", "state", ".", "top", "==", "null", ")", "{", "return", "new", "MatchNoDocsQuery", "(", "\"empty string passed to query parser\"", ")", ";", "}", "else", "{", "return", "state", ".", "top", ";", "}", "}" ]
public Query Parse(string queryText){char[] data = queryText.ToCharArray();char[] buffer = new char[data.Length];State state = new State(data, buffer, 0, data.Length);ParseSubQuery(state);return state.Top;}
train
false
4,646
public void set(int val) {this.val = val;returned = false;}
[ "public", "void", "set", "(", "int", "val", ")", "{", "this", ".", "val", "=", "val", ";", "returned", "=", "false", ";", "}" ]
public virtual void Set(int val){this.val = val;returned = false;}
train
false
4,647
public Set<URIishField> getRequiredFields() {return Collections.unmodifiableSet(EnumSet.of(URIishField.PATH));}
[ "public", "Set", "<", "URIishField", ">", "getRequiredFields", "(", ")", "{", "return", "Collections", ".", "unmodifiableSet", "(", "EnumSet", ".", "of", "(", "URIishField", ".", "PATH", ")", ")", ";", "}" ]
public virtual ICollection<TransportProtocol.URIishField> GetRequiredFields(){return Sharpen.Collections.UnmodifiableSet(EnumSet.Of(TransportProtocol.URIishField.PATH));}
train
false
4,648
public Config(Config defaultConfig) {baseConfig = defaultConfig;state = new AtomicReference<>(newState());}
[ "public", "Config", "(", "Config", "defaultConfig", ")", "{", "baseConfig", "=", "defaultConfig", ";", "state", "=", "new", "AtomicReference", "<", ">", "(", "newState", "(", ")", ")", ";", "}" ]
public Config(NGit.Config defaultConfig){baseConfig = defaultConfig;state = new AtomicReference<ConfigSnapshot>(NewState());}
train
false
4,649
public PutAccountSuppressionAttributesResult putAccountSuppressionAttributes(PutAccountSuppressionAttributesRequest request) {request = beforeClientExecution(request);return executePutAccountSuppressionAttributes(request);}
[ "public", "PutAccountSuppressionAttributesResult", "putAccountSuppressionAttributes", "(", "PutAccountSuppressionAttributesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePutAccountSuppressionAttributes", "(", "request", ")", ";", "}" ]
public virtual PutAccountSuppressionAttributesResponse PutAccountSuppressionAttributes(PutAccountSuppressionAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAccountSuppressionAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAccountSuppressionAttributesResponseUnmarshaller.Instance;return Invoke<PutAccountSuppressionAttributesResponse>(request, options);}
train
false
4,650
public BufferedIndexInput(String resourceDesc, int bufferSize) {super(resourceDesc);checkBufferSize(bufferSize);this.bufferSize = bufferSize;}
[ "public", "BufferedIndexInput", "(", "String", "resourceDesc", ",", "int", "bufferSize", ")", "{", "super", "(", "resourceDesc", ")", ";", "checkBufferSize", "(", "bufferSize", ")", ";", "this", ".", "bufferSize", "=", "bufferSize", ";", "}" ]
public BufferedIndexInput(string resourceDesc, int bufferSize): base(resourceDesc){CheckBufferSize(bufferSize);this.bufferSize = bufferSize;}
train
false
4,651
public DescribeDocumentClassifierResult describeDocumentClassifier(DescribeDocumentClassifierRequest request) {request = beforeClientExecution(request);return executeDescribeDocumentClassifier(request);}
[ "public", "DescribeDocumentClassifierResult", "describeDocumentClassifier", "(", "DescribeDocumentClassifierRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeDocumentClassifier", "(", "request", ")", ";", "}" ]
public virtual DescribeDocumentClassifierResponse DescribeDocumentClassifier(DescribeDocumentClassifierRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDocumentClassifierRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDocumentClassifierResponseUnmarshaller.Instance;return Invoke<DescribeDocumentClassifierResponse>(request, options);}
train
true
4,652
public static Function getBasicFunction(int functionIndex) {switch (functionIndex) {case FunctionID.INDIRECT:case FunctionID.EXTERNAL_FUNC:return null;}Function result = functions[functionIndex];if (result == null) {throw new NotImplementedException("FuncIx=" + functionIndex);}return result;}
[ "public", "static", "Function", "getBasicFunction", "(", "int", "functionIndex", ")", "{", "switch", "(", "functionIndex", ")", "{", "case", "FunctionID", ".", "INDIRECT", ":", "case", "FunctionID", ".", "EXTERNAL_FUNC", ":", "return", "null", ";", "}", "Function", "result", "=", "functions", "[", "functionIndex", "]", ";", "if", "(", "result", "==", "null", ")", "{", "throw", "new", "NotImplementedException", "(", "\"FuncIx=\"", "+", "functionIndex", ")", ";", "}", "return", "result", ";", "}" ]
public static Function GetBasicFunction(int functionIndex){switch (functionIndex){case FunctionID.INDIRECT:case FunctionID.EXTERNAL_FUNC:return null;}Function result = functions[functionIndex];if (result == null){throw new NotImplementedException("FuncIx=" + functionIndex);}return result;}
train
false
4,653
public DeleteFacetResult deleteFacet(DeleteFacetRequest request) {request = beforeClientExecution(request);return executeDeleteFacet(request);}
[ "public", "DeleteFacetResult", "deleteFacet", "(", "DeleteFacetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteFacet", "(", "request", ")", ";", "}" ]
public virtual DeleteFacetResponse DeleteFacet(DeleteFacetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFacetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFacetResponseUnmarshaller.Instance;return Invoke<DeleteFacetResponse>(request, options);}
train
true
4,654
public NameXPtg getNameXPtg(String name, int sheetRefIndex, UDFFinder udf) {LinkTable lnk = getOrCreateLinkTable();NameXPtg xptg = lnk.getNameXPtg(name, sheetRefIndex);if(xptg == null && udf.findFunction(name) != null) {xptg = lnk.addNameXPtg(name);}return xptg;}
[ "public", "NameXPtg", "getNameXPtg", "(", "String", "name", ",", "int", "sheetRefIndex", ",", "UDFFinder", "udf", ")", "{", "LinkTable", "lnk", "=", "getOrCreateLinkTable", "(", ")", ";", "NameXPtg", "xptg", "=", "lnk", ".", "getNameXPtg", "(", "name", ",", "sheetRefIndex", ")", ";", "if", "(", "xptg", "==", "null", "&&", "udf", ".", "findFunction", "(", "name", ")", "!=", "null", ")", "{", "xptg", "=", "lnk", ".", "addNameXPtg", "(", "name", ")", ";", "}", "return", "xptg", ";", "}" ]
public NameXPtg GetNameXPtg(String name, int sheetRefIndex, UDFFinder udf){LinkTable lnk = OrCreateLinkTable;NameXPtg xptg = lnk.GetNameXPtg(name, sheetRefIndex);if (xptg == null && udf.FindFunction(name) != null){xptg = lnk.AddNameXPtg(name);}return xptg;}
train
false
4,655
public int getIndex() {return index;}
[ "public", "int", "getIndex", "(", ")", "{", "return", "index", ";", "}" ]
public virtual int getIndex(){return index;}
train
false
4,656
public final String toFormulaString() {return formatReferenceAsString();}
[ "public", "final", "String", "toFormulaString", "(", ")", "{", "return", "formatReferenceAsString", "(", ")", ";", "}" ]
public override String ToFormulaString(){return FormatReferenceAsString();}
train
false
4,657
public AllocateTransitVirtualInterfaceResult allocateTransitVirtualInterface(AllocateTransitVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeAllocateTransitVirtualInterface(request);}
[ "public", "AllocateTransitVirtualInterfaceResult", "allocateTransitVirtualInterface", "(", "AllocateTransitVirtualInterfaceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAllocateTransitVirtualInterface", "(", "request", ")", ";", "}" ]
public virtual AllocateTransitVirtualInterfaceResponse AllocateTransitVirtualInterface(AllocateTransitVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AllocateTransitVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = AllocateTransitVirtualInterfaceResponseUnmarshaller.Instance;return Invoke<AllocateTransitVirtualInterfaceResponse>(request, options);}
train
false
4,658
public PushbackInputStream(InputStream in) {super(in);buf = (in == null) ? null : new byte[1];pos = 1;}
[ "public", "PushbackInputStream", "(", "InputStream", "in", ")", "{", "super", "(", "in", ")", ";", "buf", "=", "(", "in", "==", "null", ")", "?", "null", ":", "new", "byte", "[", "1", "]", ";", "pos", "=", "1", ";", "}" ]
public PushbackInputStream(java.io.InputStream @in) : base(@in){buf = (@in == null) ? null : new byte[1];pos = 1;}
train
false
4,659
public int compareTo(PostingsAndFreq other) {if (position != other.position) {return position - other.position;}if (nTerms != other.nTerms) {return nTerms - other.nTerms;}if (nTerms == 0) {return 0;}for (int i=0; i<terms.length; i++) {int res = terms[i].compareTo(other.terms[i]);if (res!=0) return res;}return 0;}
[ "public", "int", "compareTo", "(", "PostingsAndFreq", "other", ")", "{", "if", "(", "position", "!=", "other", ".", "position", ")", "{", "return", "position", "-", "other", ".", "position", ";", "}", "if", "(", "nTerms", "!=", "other", ".", "nTerms", ")", "{", "return", "nTerms", "-", "other", ".", "nTerms", ";", "}", "if", "(", "nTerms", "==", "0", ")", "{", "return", "0", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "terms", ".", "length", ";", "i", "++", ")", "{", "int", "res", "=", "terms", "[", "i", "]", ".", "compareTo", "(", "other", ".", "terms", "[", "i", "]", ")", ";", "if", "(", "res", "!=", "0", ")", "return", "res", ";", "}", "return", "0", ";", "}" ]
public virtual int CompareTo(PostingsAndFreq other){if (docFreq != other.docFreq){return docFreq - other.docFreq;}if (position != other.position){return position - other.position;}if (nTerms != other.nTerms){return nTerms - other.nTerms;}if (nTerms == 0){return 0;}for (int i = 0; i < terms.Length; i++){int res = terms[i].CompareTo(other.terms[i]);if (res != 0){return res;}}return 0;}
train
false
4,660
public void notifyUpdateCell(EvaluationCell cell) {int sheetIndex = getSheetIndex(cell.getSheet());_cache.notifyUpdateCell(_workbookIx, sheetIndex, cell);}
[ "public", "void", "notifyUpdateCell", "(", "EvaluationCell", "cell", ")", "{", "int", "sheetIndex", "=", "getSheetIndex", "(", "cell", ".", "getSheet", "(", ")", ")", ";", "_cache", ".", "notifyUpdateCell", "(", "_workbookIx", ",", "sheetIndex", ",", "cell", ")", ";", "}" ]
public void NotifyUpdateCell(IEvaluationCell cell){int sheetIndex = GetSheetIndex(cell.Sheet);_cache.NotifyUpdateCell(_workbookIx, sheetIndex, cell);}
train
false
4,661
public BatchRefUpdate setAllowNonFastForwards(boolean allow) {allowNonFastForwards = allow;return this;}
[ "public", "BatchRefUpdate", "setAllowNonFastForwards", "(", "boolean", "allow", ")", "{", "allowNonFastForwards", "=", "allow", ";", "return", "this", ";", "}" ]
public virtual NGit.BatchRefUpdate SetAllowNonFastForwards(bool allow){allowNonFastForwards = allow;return this;}
train
false
4,662
public UpdateRouteResult updateRoute(UpdateRouteRequest request) {request = beforeClientExecution(request);return executeUpdateRoute(request);}
[ "public", "UpdateRouteResult", "updateRoute", "(", "UpdateRouteRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateRoute", "(", "request", ")", ";", "}" ]
public virtual UpdateRouteResponse UpdateRoute(UpdateRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRouteResponseUnmarshaller.Instance;return Invoke<UpdateRouteResponse>(request, options);}
train
true
4,663
public DoubleConstValueSource(double constant) {this.constant = constant;this.fv = (float)constant;this.lv = (long)constant;}
[ "public", "DoubleConstValueSource", "(", "double", "constant", ")", "{", "this", ".", "constant", "=", "constant", ";", "this", ".", "fv", "=", "(", "float", ")", "constant", ";", "this", ".", "lv", "=", "(", "long", ")", "constant", ";", "}" ]
public DoubleConstValueSource(double constant){this.constant = constant;this.fv = (float)constant;this.lv = (long)constant;}
train
false
4,665
public int getReturnState(int index) {return returnStates[index];}
[ "public", "int", "getReturnState", "(", "int", "index", ")", "{", "return", "returnStates", "[", "index", "]", ";", "}" ]
public override int GetReturnState(int index){return returnStates[index];}
train
false
4,666
final public SrndQuery WQuery() throws ParseException {SrndQuery q;ArrayList<SrndQuery> queries;Token wt;q = PrimaryQuery();label_6:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case W:;break;default:jj_la1[4] = jj_gen;break label_6;}wt = jj_consume_token(W);queries = new ArrayList<SrndQuery>();queries.add(q); q = PrimaryQuery();queries.add(q);q = getDistanceQuery(queries, true , wt, true );}{if (true) return q;}throw new Error("Missing return statement in function");}
[ "final", "public", "SrndQuery", "WQuery", "(", ")", "throws", "ParseException", "{", "SrndQuery", "q", ";", "ArrayList", "<", "SrndQuery", ">", "queries", ";", "Token", "wt", ";", "q", "=", "PrimaryQuery", "(", ")", ";", "label_6", ":", "while", "(", "true", ")", "{", "switch", "(", "(", "jj_ntk", "==", "-", "1", ")", "?", "jj_ntk", "(", ")", ":", "jj_ntk", ")", "{", "case", "W", ":", ";", "break", ";", "default", ":", "jj_la1", "[", "4", "]", "=", "jj_gen", ";", "break", "label_6", ";", "}", "wt", "=", "jj_consume_token", "(", "W", ")", ";", "queries", "=", "new", "ArrayList", "<", "SrndQuery", ">", "(", ")", ";", "queries", ".", "add", "(", "q", ")", ";", "q", "=", "PrimaryQuery", "(", ")", ";", "queries", ".", "add", "(", "q", ")", ";", "q", "=", "getDistanceQuery", "(", "queries", ",", "true", ",", "wt", ",", "true", ")", ";", "}", "{", "if", "(", "true", ")", "return", "q", ";", "}", "throw", "new", "Error", "(", "\"Missing return statement in function\"", ")", ";", "}" ]
public SrndQuery WQuery(){SrndQuery q;IList<SrndQuery> queries;Token wt;q = PrimaryQuery();while (true){switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.W:;break;default:jj_la1[4] = jj_gen;goto label_6;}wt = Jj_consume_token(RegexpToken.W);queries = new List<SrndQuery>();queries.Add(q); q = PrimaryQuery();queries.Add(q);q = GetDistanceQuery(queries, true , wt, true );}label_6:{ if (true) return q; }throw new Exception("Missing return statement in function");}
train
false
4,667
public ListHITsResult listHITs(ListHITsRequest request) {request = beforeClientExecution(request);return executeListHITs(request);}
[ "public", "ListHITsResult", "listHITs", "(", "ListHITsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListHITs", "(", "request", ")", ";", "}" ]
public virtual ListHITsResponse ListHITs(ListHITsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListHITsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListHITsResponseUnmarshaller.Instance;return Invoke<ListHITsResponse>(request, options);}
train
true
4,668
public Set<String> getSubsections(String section) {return getState().getSubsections(section);}
[ "public", "Set", "<", "String", ">", "getSubsections", "(", "String", "section", ")", "{", "return", "getState", "(", ")", ".", "getSubsections", "(", "section", ")", ";", "}" ]
public virtual ICollection<string> GetSubsections(string section){return GetState().GetSubsections(section);}
train
false
4,669
public AttachDiskResult attachDisk(AttachDiskRequest request) {request = beforeClientExecution(request);return executeAttachDisk(request);}
[ "public", "AttachDiskResult", "attachDisk", "(", "AttachDiskRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAttachDisk", "(", "request", ")", ";", "}" ]
public virtual AttachDiskResponse AttachDisk(AttachDiskRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachDiskRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachDiskResponseUnmarshaller.Instance;return Invoke<AttachDiskResponse>(request, options);}
train
true