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
6,901
public static boolean allSubsetsEqual(Collection<BitSet> altsets) {Iterator<BitSet> it = altsets.iterator();BitSet first = it.next();while ( it.hasNext() ) {BitSet next = it.next();if ( !next.equals(first) ) return false;}return true;}
[ "public", "static", "boolean", "allSubsetsEqual", "(", "Collection", "<", "BitSet", ">", "altsets", ")", "{", "Iterator", "<", "BitSet", ">", "it", "=", "altsets", ".", "iterator", "(", ")", ";", "BitSet", "first", "=", "it", ".", "next", "(", ")", ";", "while", "(", "it", ".", "hasNext", "(", ")", ")", "{", "BitSet", "next", "=", "it", ".", "next", "(", ")", ";", "if", "(", "!", "next", ".", "equals", "(", "first", ")", ")", "return", "false", ";", "}", "return", "true", ";", "}" ]
public static bool AllSubsetsEqual(IEnumerable<BitSet> altsets){IEnumerator<BitSet> it = altsets.GetEnumerator();it.MoveNext();BitSet first = it.Current;while (it.MoveNext()){BitSet next = it.Current;if (!next.Equals(first)){return false;}}return true;}
train
false
6,902
public CellRangeAddressList(RecordInputStream in) {this();int nItems = in.readUShort();for (int k = 0; k < nItems; k++) {_list.add(new CellRangeAddress(in));}}
[ "public", "CellRangeAddressList", "(", "RecordInputStream", "in", ")", "{", "this", "(", ")", ";", "int", "nItems", "=", "in", ".", "readUShort", "(", ")", ";", "for", "(", "int", "k", "=", "0", ";", "k", "<", "nItems", ";", "k", "++", ")", "{", "_list", ".", "add", "(", "new", "CellRangeAddress", "(", "in", ")", ")", ";", "}", "}" ]
public CellRangeAddressList(RecordInputStream in1){int nItems = in1.ReadUShort();_list = new ArrayList(nItems);for (int k = 0; k < nItems; k++){_list.Add(new CellRangeAddress(in1));}}
train
false
6,903
public boolean markSupported() {return in.markSupported();}
[ "public", "boolean", "markSupported", "(", ")", "{", "return", "in", ".", "markSupported", "(", ")", ";", "}" ]
public override bool MarkSupported(){return @in.MarkSupported();}
train
false
6,904
public DBInstance restoreDBInstanceFromS3(RestoreDBInstanceFromS3Request request) {request = beforeClientExecution(request);return executeRestoreDBInstanceFromS3(request);}
[ "public", "DBInstance", "restoreDBInstanceFromS3", "(", "RestoreDBInstanceFromS3Request", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRestoreDBInstanceFromS3", "(", "request", ")", ";", "}" ]
public virtual RestoreDBInstanceFromS3Response RestoreDBInstanceFromS3(RestoreDBInstanceFromS3Request request){var options = new InvokeOptions();options.RequestMarshaller = RestoreDBInstanceFromS3RequestMarshaller.Instance;options.ResponseUnmarshaller = RestoreDBInstanceFromS3ResponseUnmarshaller.Instance;return Invoke<RestoreDBInstanceFromS3Response>(request, options);}
train
true
6,907
public DescribeReceiptRuleResult describeReceiptRule(DescribeReceiptRuleRequest request) {request = beforeClientExecution(request);return executeDescribeReceiptRule(request);}
[ "public", "DescribeReceiptRuleResult", "describeReceiptRule", "(", "DescribeReceiptRuleRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeReceiptRule", "(", "request", ")", ";", "}" ]
public virtual DescribeReceiptRuleResponse DescribeReceiptRule(DescribeReceiptRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReceiptRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReceiptRuleResponseUnmarshaller.Instance;return Invoke<DescribeReceiptRuleResponse>(request, options);}
train
true
6,908
public String toString() {return super.toString()+" "+prefix;}
[ "public", "String", "toString", "(", ")", "{", "return", "super", ".", "toString", "(", ")", "+", "\" \"", "+", "prefix", ";", "}" ]
public override string ToString(){return base.ToString() + " " + m_prefix;}
train
false
6,909
public float tf(int freq, int passageLen) {float norm = k1 * ((1 - b) + b * (passageLen / pivot));return freq / (freq + norm);}
[ "public", "float", "tf", "(", "int", "freq", ",", "int", "passageLen", ")", "{", "float", "norm", "=", "k1", "*", "(", "(", "1", "-", "b", ")", "+", "b", "*", "(", "passageLen", "/", "pivot", ")", ")", ";", "return", "freq", "/", "(", "freq", "+", "norm", ")", ";", "}" ]
public virtual float Tf(int freq, int passageLen){float norm = k1 * ((1 - b) + b * (passageLen / pivot));return freq / (freq + norm);}
train
false
6,910
public DescribeModelResult describeModel(DescribeModelRequest request) {request = beforeClientExecution(request);return executeDescribeModel(request);}
[ "public", "DescribeModelResult", "describeModel", "(", "DescribeModelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeModel", "(", "request", ")", ";", "}" ]
public virtual DescribeModelResponse DescribeModel(DescribeModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeModelRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeModelResponseUnmarshaller.Instance;return Invoke<DescribeModelResponse>(request, options);}
train
true
6,911
public boolean markSupported() {return true;}
[ "public", "boolean", "markSupported", "(", ")", "{", "return", "true", ";", "}" ]
public override bool markSupported(){return true;}
train
false
6,912
public ListEndpointConfigsResult listEndpointConfigs(ListEndpointConfigsRequest request) {request = beforeClientExecution(request);return executeListEndpointConfigs(request);}
[ "public", "ListEndpointConfigsResult", "listEndpointConfigs", "(", "ListEndpointConfigsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListEndpointConfigs", "(", "request", ")", ";", "}" ]
public virtual ListEndpointConfigsResponse ListEndpointConfigs(ListEndpointConfigsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEndpointConfigsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEndpointConfigsResponseUnmarshaller.Instance;return Invoke<ListEndpointConfigsResponse>(request, options);}
train
true
6,913
public DescribeDBProxyTargetGroupsResult describeDBProxyTargetGroups(DescribeDBProxyTargetGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeDBProxyTargetGroups(request);}
[ "public", "DescribeDBProxyTargetGroupsResult", "describeDBProxyTargetGroups", "(", "DescribeDBProxyTargetGroupsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeDBProxyTargetGroups", "(", "request", ")", ";", "}" ]
public virtual DescribeDBProxyTargetGroupsResponse DescribeDBProxyTargetGroups(DescribeDBProxyTargetGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBProxyTargetGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBProxyTargetGroupsResponseUnmarshaller.Instance;return Invoke<DescribeDBProxyTargetGroupsResponse>(request, options);}
train
false
6,914
public long size(DiffEntry.Side side, DiffEntry ent) throws IOException {switch (side) {case OLD:return oldSource.size(ent.oldPath, ent.oldId.toObjectId());case NEW:return newSource.size(ent.newPath, ent.newId.toObjectId());default:throw new IllegalArgumentException();}}
[ "public", "long", "size", "(", "DiffEntry", ".", "Side", "side", ",", "DiffEntry", "ent", ")", "throws", "IOException", "{", "switch", "(", "side", ")", "{", "case", "OLD", ":", "return", "oldSource", ".", "size", "(", "ent", ".", "oldPath", ",", "ent", ".", "oldId", ".", "toObjectId", "(", ")", ")", ";", "case", "NEW", ":", "return", "newSource", ".", "size", "(", "ent", ".", "newPath", ",", "ent", ".", "newId", ".", "toObjectId", "(", ")", ")", ";", "default", ":", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "}" ]
public long Size(DiffEntry.Side side, DiffEntry ent){switch (side){case DiffEntry.Side.OLD:{return oldSource.Size(ent.oldPath, ent.oldId.ToObjectId());}case DiffEntry.Side.NEW:{return newSource.Size(ent.newPath, ent.newId.ToObjectId());}default:{throw new ArgumentException();}}}
train
false
6,915
public GlobalReplicationGroup disassociateGlobalReplicationGroup(DisassociateGlobalReplicationGroupRequest request) {request = beforeClientExecution(request);return executeDisassociateGlobalReplicationGroup(request);}
[ "public", "GlobalReplicationGroup", "disassociateGlobalReplicationGroup", "(", "DisassociateGlobalReplicationGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDisassociateGlobalReplicationGroup", "(", "request", ")", ";", "}" ]
public virtual DisassociateGlobalReplicationGroupResponse DisassociateGlobalReplicationGroup(DisassociateGlobalReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateGlobalReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateGlobalReplicationGroupResponseUnmarshaller.Instance;return Invoke<DisassociateGlobalReplicationGroupResponse>(request, options);}
train
false
6,916
public static void writeHeader(DataOutput out, String codec, int version) throws IOException {BytesRef bytes = new BytesRef(codec);if (bytes.length != codec.length() || bytes.length >= 128) {throw new IllegalArgumentException("codec must be simple ASCII, less than 128 characters in length [got " + codec + "]");}out.writeInt(CODEC_MAGIC);out.writeString(codec);out.writeInt(version);}
[ "public", "static", "void", "writeHeader", "(", "DataOutput", "out", ",", "String", "codec", ",", "int", "version", ")", "throws", "IOException", "{", "BytesRef", "bytes", "=", "new", "BytesRef", "(", "codec", ")", ";", "if", "(", "bytes", ".", "length", "!=", "codec", ".", "length", "(", ")", "||", "bytes", ".", "length", ">=", "128", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"codec must be simple ASCII, less than 128 characters in length [got \"", "+", "codec", "+", "\"]\"", ")", ";", "}", "out", ".", "writeInt", "(", "CODEC_MAGIC", ")", ";", "out", ".", "writeString", "(", "codec", ")", ";", "out", ".", "writeInt", "(", "version", ")", ";", "}" ]
public static void WriteHeader(DataOutput @out, string codec, int version){BytesRef bytes = new BytesRef(codec);if (bytes.Length != codec.Length || bytes.Length >= 128){throw new System.ArgumentException("codec must be simple ASCII, less than 128 characters in length [got " + codec + "]");}@out.WriteInt32(CODEC_MAGIC);@out.WriteString(codec);@out.WriteInt32(version);}
train
false
6,917
public PagedList<DedicatedCapacityInner> listByResourceGroup(String resourceGroupName) {PageImpl<DedicatedCapacityInner> page = new PageImpl<>();page.setItems(listByResourceGroupWithServiceResponseAsync(resourceGroupName).toBlocking().single().body());page.setNextPageLink(null);return new PagedList<DedicatedCapacityInner>(page) {@Overridepublic Page<DedicatedCapacityInner> nextPage(String nextPageLink) {return null;}};}
[ "public", "PagedList", "<", "DedicatedCapacityInner", ">", "listByResourceGroup", "(", "String", "resourceGroupName", ")", "{", "PageImpl", "<", "DedicatedCapacityInner", ">", "page", "=", "new", "PageImpl", "<", ">", "(", ")", ";", "page", ".", "setItems", "(", "listByResourceGroupWithServiceResponseAsync", "(", "resourceGroupName", ")", ".", "toBlocking", "(", ")", ".", "single", "(", ")", ".", "body", "(", ")", ")", ";", "page", ".", "setNextPageLink", "(", "null", ")", ";", "return", "new", "PagedList", "<", "DedicatedCapacityInner", ">", "(", "page", ")", "{", "@", "Overridepublic", "Page", "<", "DedicatedCapacityInner", ">", "nextPage", "(", "String", "nextPageLink", ")", "{", "return", "null", ";", "}", "}", ";", "}" ]
public async Task<AzureOperationResponse<IEnumerable<DedicatedCapacity>>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)){return await innerCapacityOperations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false);}
train
true
6,918
public DescribeIpGroupsResult describeIpGroups(DescribeIpGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeIpGroups(request);}
[ "public", "DescribeIpGroupsResult", "describeIpGroups", "(", "DescribeIpGroupsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeIpGroups", "(", "request", ")", ";", "}" ]
public virtual DescribeIpGroupsResponse DescribeIpGroups(DescribeIpGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIpGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIpGroupsResponseUnmarshaller.Instance;return Invoke<DescribeIpGroupsResponse>(request, options);}
train
true
6,919
public final CoderResult flush(ByteBuffer out) {if (status != END && status != READY) {throw new IllegalStateException();}CoderResult result = implFlush(out);if (result == CoderResult.UNDERFLOW) {status = FLUSH;}return result;}
[ "public", "final", "CoderResult", "flush", "(", "ByteBuffer", "out", ")", "{", "if", "(", "status", "!=", "END", "&&", "status", "!=", "READY", ")", "{", "throw", "new", "IllegalStateException", "(", ")", ";", "}", "CoderResult", "result", "=", "implFlush", "(", "out", ")", ";", "if", "(", "result", "==", "CoderResult", ".", "UNDERFLOW", ")", "{", "status", "=", "FLUSH", ";", "}", "return", "result", ";", "}" ]
public java.nio.charset.CoderResult flush(java.nio.ByteBuffer @out){if (status != END && status != READY){throw new System.InvalidOperationException();}java.nio.charset.CoderResult result = implFlush(@out);if (result == java.nio.charset.CoderResult.UNDERFLOW){status = FLUSH;}return result;}
train
false
6,920
public final Type getType() {if (beginA < endA) {if (beginB < endB) {return Type.REPLACE;}return Type.DELETE;}if (beginB < endB) {return Type.INSERT;}return Type.EMPTY;}
[ "public", "final", "Type", "getType", "(", ")", "{", "if", "(", "beginA", "<", "endA", ")", "{", "if", "(", "beginB", "<", "endB", ")", "{", "return", "Type", ".", "REPLACE", ";", "}", "return", "Type", ".", "DELETE", ";", "}", "if", "(", "beginB", "<", "endB", ")", "{", "return", "Type", ".", "INSERT", ";", "}", "return", "Type", ".", "EMPTY", ";", "}" ]
public Edit.Type GetType(){if (beginA < endA){if (beginB < endB){return Edit.Type.REPLACE;}else{return Edit.Type.DELETE;}}else{if (beginB < endB){return Edit.Type.INSERT;}else{return Edit.Type.EMPTY;}}}
train
false
6,921
public Builder() {this(false);}
[ "public", "Builder", "(", ")", "{", "this", "(", "false", ")", ";", "}" ]
public Builder(): base(){lastDocID = -1;wordNum = -1;word = 0;}
train
false
6,922
public DescribeHsmConfigurationsResult describeHsmConfigurations(DescribeHsmConfigurationsRequest request) {request = beforeClientExecution(request);return executeDescribeHsmConfigurations(request);}
[ "public", "DescribeHsmConfigurationsResult", "describeHsmConfigurations", "(", "DescribeHsmConfigurationsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeHsmConfigurations", "(", "request", ")", ";", "}" ]
public virtual DescribeHsmConfigurationsResponse DescribeHsmConfigurations(DescribeHsmConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeHsmConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeHsmConfigurationsResponseUnmarshaller.Instance;return Invoke<DescribeHsmConfigurationsResponse>(request, options);}
train
true
6,924
public int getSize() {return length;}
[ "public", "int", "getSize", "(", ")", "{", "return", "length", ";", "}" ]
public virtual int GetSize(){return length;}
train
false
6,925
public FeatProtection() {securityDescriptor = new byte[0];}
[ "public", "FeatProtection", "(", ")", "{", "securityDescriptor", "=", "new", "byte", "[", "0", "]", ";", "}" ]
public FeatProtection(){securityDescriptor = new byte[0];}
train
false
6,926
public DeleteNotificationConfigurationResult deleteNotificationConfiguration(DeleteNotificationConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteNotificationConfiguration(request);}
[ "public", "DeleteNotificationConfigurationResult", "deleteNotificationConfiguration", "(", "DeleteNotificationConfigurationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteNotificationConfiguration", "(", "request", ")", ";", "}" ]
public virtual DeleteNotificationConfigurationResponse DeleteNotificationConfiguration(DeleteNotificationConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNotificationConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNotificationConfigurationResponseUnmarshaller.Instance;return Invoke<DeleteNotificationConfigurationResponse>(request, options);}
train
true
6,927
public int get(int key) {return get(key, 0);}
[ "public", "int", "get", "(", "int", "key", ")", "{", "return", "get", "(", "key", ",", "0", ")", ";", "}" ]
public virtual int get(int key){return get(key, 0);}
train
false
6,928
public HSSFAnchor(int dx1, int dy1, int dx2, int dy2) {createEscherAnchor();setDx1(dx1);setDy1(dy1);setDx2(dx2);setDy2(dy2);}
[ "public", "HSSFAnchor", "(", "int", "dx1", ",", "int", "dy1", ",", "int", "dx2", ",", "int", "dy2", ")", "{", "createEscherAnchor", "(", ")", ";", "setDx1", "(", "dx1", ")", ";", "setDy1", "(", "dy1", ")", ";", "setDx2", "(", "dx2", ")", ";", "setDy2", "(", "dy2", ")", ";", "}" ]
public HSSFAnchor(int dx1, int dy1, int dx2, int dy2){CreateEscherAnchor();this.Dx1 = dx1;this.Dy1 = dy1;this.Dx2 = dx2;this.Dy2 = dy2;}
train
false
6,929
public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {switch (args.length) {case 3:return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], DEFAULT_ARG3, DEFAULT_ARG4);case 4: {ValueEval arg3 = args[3];if(arg3 == MissingArgEval.instance) {arg3 = DEFAULT_ARG3;}return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], arg3, DEFAULT_ARG4);}case 5: {ValueEval arg3 = args[3];if(arg3 == MissingArgEval.instance) {arg3 = DEFAULT_ARG3;}ValueEval arg4 = args[4];if(arg4 == MissingArgEval.instance) {arg4 = DEFAULT_ARG4;}return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], arg3, arg4);}default:return ErrorEval.VALUE_INVALID;}}
[ "public", "ValueEval", "evaluate", "(", "ValueEval", "[", "]", "args", ",", "int", "srcRowIndex", ",", "int", "srcColumnIndex", ")", "{", "switch", "(", "args", ".", "length", ")", "{", "case", "3", ":", "return", "evaluate", "(", "srcRowIndex", ",", "srcColumnIndex", ",", "args", "[", "0", "]", ",", "args", "[", "1", "]", ",", "args", "[", "2", "]", ",", "DEFAULT_ARG3", ",", "DEFAULT_ARG4", ")", ";", "case", "4", ":", "{", "ValueEval", "arg3", "=", "args", "[", "3", "]", ";", "if", "(", "arg3", "==", "MissingArgEval", ".", "instance", ")", "{", "arg3", "=", "DEFAULT_ARG3", ";", "}", "return", "evaluate", "(", "srcRowIndex", ",", "srcColumnIndex", ",", "args", "[", "0", "]", ",", "args", "[", "1", "]", ",", "args", "[", "2", "]", ",", "arg3", ",", "DEFAULT_ARG4", ")", ";", "}", "case", "5", ":", "{", "ValueEval", "arg3", "=", "args", "[", "3", "]", ";", "if", "(", "arg3", "==", "MissingArgEval", ".", "instance", ")", "{", "arg3", "=", "DEFAULT_ARG3", ";", "}", "ValueEval", "arg4", "=", "args", "[", "4", "]", ";", "if", "(", "arg4", "==", "MissingArgEval", ".", "instance", ")", "{", "arg4", "=", "DEFAULT_ARG4", ";", "}", "return", "evaluate", "(", "srcRowIndex", ",", "srcColumnIndex", ",", "args", "[", "0", "]", ",", "args", "[", "1", "]", ",", "args", "[", "2", "]", ",", "arg3", ",", "arg4", ")", ";", "}", "default", ":", "return", "ErrorEval", ".", "VALUE_INVALID", ";", "}", "}" ]
public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){switch (args.Length){case 3:return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], DEFAULT_ARG3, DEFAULT_ARG4);case 4:return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], args[3], DEFAULT_ARG4);case 5:return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], args[3], args[4]);}return ErrorEval.VALUE_INVALID;}
train
false
6,930
public Toffs( int startOffset, int endOffset ){this.startOffset = startOffset;this.endOffset = endOffset;}
[ "public", "Toffs", "(", "int", "startOffset", ",", "int", "endOffset", ")", "{", "this", ".", "startOffset", "=", "startOffset", ";", "this", ".", "endOffset", "=", "endOffset", ";", "}" ]
public Toffs(int startOffset, int endOffset){this.startOffset = startOffset;this.endOffset = endOffset;}
train
false
6,931
public GetDocumentationVersionResult getDocumentationVersion(GetDocumentationVersionRequest request) {request = beforeClientExecution(request);return executeGetDocumentationVersion(request);}
[ "public", "GetDocumentationVersionResult", "getDocumentationVersion", "(", "GetDocumentationVersionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetDocumentationVersion", "(", "request", ")", ";", "}" ]
public virtual GetDocumentationVersionResponse GetDocumentationVersion(GetDocumentationVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDocumentationVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDocumentationVersionResponseUnmarshaller.Instance;return Invoke<GetDocumentationVersionResponse>(request, options);}
train
true
6,932
public static <T> T[] grow(T[] array, int minSize) {assert minSize >= 0 : "size must be positive (got " + minSize + "): likely integer overflow?";if (array.length < minSize) {final int newLength = oversize(minSize, RamUsageEstimator.NUM_BYTES_OBJECT_REF);return growExact(array, newLength);} else return array;}
[ "public", "static", "<", "T", ">", "T", "[", "]", "grow", "(", "T", "[", "]", "array", ",", "int", "minSize", ")", "{", "assert", "minSize", ">=", "0", ":", "\"size must be positive (got \"", "+", "minSize", "+", "\"): likely integer overflow?\"", ";", "if", "(", "array", ".", "length", "<", "minSize", ")", "{", "final", "int", "newLength", "=", "oversize", "(", "minSize", ",", "RamUsageEstimator", ".", "NUM_BYTES_OBJECT_REF", ")", ";", "return", "growExact", "(", "array", ",", "newLength", ")", ";", "}", "else", "return", "array", ";", "}" ]
public static short[] Grow(short[] array, int minSize){Debug.Assert(minSize >= 0, "size must be positive (got " + minSize + "): likely integer overflow?");if (array.Length < minSize){short[] newArray = new short[Oversize(minSize, RamUsageEstimator.NUM_BYTES_INT16)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}
train
false
6,933
public PurchaseProvisionedCapacityResult purchaseProvisionedCapacity(PurchaseProvisionedCapacityRequest request) {request = beforeClientExecution(request);return executePurchaseProvisionedCapacity(request);}
[ "public", "PurchaseProvisionedCapacityResult", "purchaseProvisionedCapacity", "(", "PurchaseProvisionedCapacityRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePurchaseProvisionedCapacity", "(", "request", ")", ";", "}" ]
public virtual PurchaseProvisionedCapacityResponse PurchaseProvisionedCapacity(PurchaseProvisionedCapacityRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurchaseProvisionedCapacityRequestMarshaller.Instance;options.ResponseUnmarshaller = PurchaseProvisionedCapacityResponseUnmarshaller.Instance;return Invoke<PurchaseProvisionedCapacityResponse>(request, options);}
train
true
6,934
public ListenerHandle addRefsChangedListener(RefsChangedListener listener) {return addListener(RefsChangedListener.class, listener);}
[ "public", "ListenerHandle", "addRefsChangedListener", "(", "RefsChangedListener", "listener", ")", "{", "return", "addListener", "(", "RefsChangedListener", ".", "class", ",", "listener", ")", ";", "}" ]
public virtual ListenerHandle AddRefsChangedListener(RefsChangedListener listener){return AddListener<RefsChangedListener>(listener);}
train
false
6,936
public DeleteGcmChannelResult deleteGcmChannel(DeleteGcmChannelRequest request) {request = beforeClientExecution(request);return executeDeleteGcmChannel(request);}
[ "public", "DeleteGcmChannelResult", "deleteGcmChannel", "(", "DeleteGcmChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteGcmChannel", "(", "request", ")", ";", "}" ]
public virtual DeleteGcmChannelResponse DeleteGcmChannel(DeleteGcmChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGcmChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGcmChannelResponseUnmarshaller.Instance;return Invoke<DeleteGcmChannelResponse>(request, options);}
train
true
6,937
public String toString() {return "del=" + item;}
[ "public", "String", "toString", "(", ")", "{", "return", "\"del=\"", "+", "item", ";", "}" ]
public override string ToString(){return "del=" + item;}
train
false
6,938
public int read(byte[] b, int off, int len) {if (ptr == data.length)return -1;int n = Math.min(available(), len);System.arraycopy(data, ptr, b, off, n);ptr += n;return n;}
[ "public", "int", "read", "(", "byte", "[", "]", "b", ",", "int", "off", ",", "int", "len", ")", "{", "if", "(", "ptr", "==", "data", ".", "length", ")", "return", "-", "1", ";", "int", "n", "=", "Math", ".", "min", "(", "available", "(", ")", ",", "len", ")", ";", "System", ".", "arraycopy", "(", "data", ",", "ptr", ",", "b", ",", "off", ",", "n", ")", ";", "ptr", "+=", "n", ";", "return", "n", ";", "}" ]
public override int Read(byte[] b, int off, int len){if (ptr == data.Length){return -1;}int n = Math.Min(Available(), len);System.Array.Copy(data, ptr, b, off, n);ptr += n;return n;}
train
false
6,940
public DeleteFieldLevelEncryptionConfigResult deleteFieldLevelEncryptionConfig(DeleteFieldLevelEncryptionConfigRequest request) {request = beforeClientExecution(request);return executeDeleteFieldLevelEncryptionConfig(request);}
[ "public", "DeleteFieldLevelEncryptionConfigResult", "deleteFieldLevelEncryptionConfig", "(", "DeleteFieldLevelEncryptionConfigRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteFieldLevelEncryptionConfig", "(", "request", ")", ";", "}" ]
public virtual DeleteFieldLevelEncryptionConfigResponse DeleteFieldLevelEncryptionConfig(DeleteFieldLevelEncryptionConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFieldLevelEncryptionConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFieldLevelEncryptionConfigResponseUnmarshaller.Instance;return Invoke<DeleteFieldLevelEncryptionConfigResponse>(request, options);}
train
true
6,941
public AmazonS3EncryptionClient(AWSCredentials credentials,EncryptionMaterials encryptionMaterials) {this(credentials, new StaticEncryptionMaterialsProvider(encryptionMaterials));}
[ "public", "AmazonS3EncryptionClient", "(", "AWSCredentials", "credentials", ",", "EncryptionMaterials", "encryptionMaterials", ")", "{", "this", "(", "credentials", ",", "new", "StaticEncryptionMaterialsProvider", "(", "encryptionMaterials", ")", ")", ";", "}" ]
public AmazonS3EncryptionClient(AWSCredentials credentials, EncryptionMaterials materials): base(credentials){this.EncryptionMaterials = materials;S3CryptoConfig = new AmazonS3CryptoConfiguration();}
train
false
6,942
public FontDetails( String fontName, int height ){_fontName = fontName;_height = height;}
[ "public", "FontDetails", "(", "String", "fontName", ",", "int", "height", ")", "{", "_fontName", "=", "fontName", ";", "_height", "=", "height", ";", "}" ]
public FontDetails(String fontName, int height){this.fontName = fontName;this.height = height;}
train
false
6,944
public String toString() {return new String(this.buffer, 0, this.len);}
[ "public", "String", "toString", "(", ")", "{", "return", "new", "String", "(", "this", ".", "buffer", ",", "0", ",", "this", ".", "len", ")", ";", "}" ]
public sealed override string ToString(){return Sharpen.StringHelper.CopyValueOf(backingArray, offset + _position, remaining());}
train
false
6,945
public WriteRequest(PutRequest putRequest) {setPutRequest(putRequest);}
[ "public", "WriteRequest", "(", "PutRequest", "putRequest", ")", "{", "setPutRequest", "(", "putRequest", ")", ";", "}" ]
public WriteRequest(PutRequest putRequest){_putRequest = putRequest;}
train
false
6,946
public static String toHex(byte value) {StringBuilder sb = new StringBuilder(2);writeHex(sb, value & 0xFF, 2, "");return sb.toString();}
[ "public", "static", "String", "toHex", "(", "byte", "value", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", "2", ")", ";", "writeHex", "(", "sb", ",", "value", "&", "0xFF", ",", "2", ",", "\"\"", ")", ";", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public static string ToHex(byte value){return ToHex((long)value, 2);}
train
false
6,947
public int stem(char s[], int len) {return pluralStep.apply(s, len);}
[ "public", "int", "stem", "(", "char", "s", "[", "]", ",", "int", "len", ")", "{", "return", "pluralStep", ".", "apply", "(", "s", ",", "len", ")", ";", "}" ]
public virtual int Stem(char[] s, int len){return pluralStep.Apply(s, len);}
train
false
6,948
public void write(byte[] b, int off, int len) {try {super.write(b, off, len);} catch (IOException e) {throw new RuntimeException(e);}}
[ "public", "void", "write", "(", "byte", "[", "]", "b", ",", "int", "off", ",", "int", "len", ")", "{", "try", "{", "super", ".", "write", "(", "b", ",", "off", ",", "len", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "throw", "new", "RuntimeException", "(", "e", ")", ";", "}", "}" ]
public void Write(byte[] b, int off, int len){try{out1.Write(b, off, len);}catch (IOException e){throw new RuntimeException(e);}}
train
false
6,949
public Set<Long> idSet() {return Collections.unmodifiableSet(dictionary.keySet());}
[ "public", "Set", "<", "Long", ">", "idSet", "(", ")", "{", "return", "Collections", ".", "unmodifiableSet", "(", "dictionary", ".", "keySet", "(", ")", ")", ";", "}" ]
public ICollection IdSet(){return dictionaryNameToID.Keys;}
train
false
6,950
public BatchGetDeploymentsResult batchGetDeployments(BatchGetDeploymentsRequest request) {request = beforeClientExecution(request);return executeBatchGetDeployments(request);}
[ "public", "BatchGetDeploymentsResult", "batchGetDeployments", "(", "BatchGetDeploymentsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeBatchGetDeployments", "(", "request", ")", ";", "}" ]
public virtual BatchGetDeploymentsResponse BatchGetDeployments(BatchGetDeploymentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetDeploymentsRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetDeploymentsResponseUnmarshaller.Instance;return Invoke<BatchGetDeploymentsResponse>(request, options);}
train
true
6,952
public long next() throws IOException {current = fstEnum.next();if (current == null) {return -1;} else {return current.output;}}
[ "public", "long", "next", "(", ")", "throws", "IOException", "{", "current", "=", "fstEnum", ".", "next", "(", ")", ";", "if", "(", "current", "==", "null", ")", "{", "return", "-", "1", ";", "}", "else", "{", "return", "current", ".", "output", ";", "}", "}" ]
public override long Next(){current = fstEnum.Next();if (current == null){return -1;}else{if (current.Output.HasValue){return current.Output.Value;}else{throw new NullReferenceException("_current.Output is null"); }}}
train
false
6,953
public GetApplicationDateRangeKpiResult getApplicationDateRangeKpi(GetApplicationDateRangeKpiRequest request) {request = beforeClientExecution(request);return executeGetApplicationDateRangeKpi(request);}
[ "public", "GetApplicationDateRangeKpiResult", "getApplicationDateRangeKpi", "(", "GetApplicationDateRangeKpiRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetApplicationDateRangeKpi", "(", "request", ")", ";", "}" ]
public virtual GetApplicationDateRangeKpiResponse GetApplicationDateRangeKpi(GetApplicationDateRangeKpiRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApplicationDateRangeKpiRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApplicationDateRangeKpiResponseUnmarshaller.Instance;return Invoke<GetApplicationDateRangeKpiResponse>(request, options);}
train
false
6,954
public TokenStream create(TokenStream input) {return new GalicianStemFilter(input);}
[ "public", "TokenStream", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "GalicianStemFilter", "(", "input", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new GalicianStemFilter(input);}
train
false
6,955
public ListHostedZonesResult listHostedZones(ListHostedZonesRequest request) {request = beforeClientExecution(request);return executeListHostedZones(request);}
[ "public", "ListHostedZonesResult", "listHostedZones", "(", "ListHostedZonesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListHostedZones", "(", "request", ")", ";", "}" ]
public virtual ListHostedZonesResponse ListHostedZones(ListHostedZonesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListHostedZonesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListHostedZonesResponseUnmarshaller.Instance;return Invoke<ListHostedZonesResponse>(request, options);}
train
true
6,956
public int getDepth() {return depth;}
[ "public", "int", "getDepth", "(", ")", "{", "return", "depth", ";", "}" ]
public int GetDepth(){return depth;}
train
false
6,957
public WindowTwoRecord(RecordInputStream in) {int size = in.remaining();field_1_options = in.readShort();field_2_top_row = in.readShort();field_3_left_col = in.readShort();field_4_header_color = in.readInt();if (size > 10){field_5_page_break_zoom = in.readShort();field_6_normal_zoom = in.readShort();}if (size > 14){ field_7_reserved = in.readInt();}}
[ "public", "WindowTwoRecord", "(", "RecordInputStream", "in", ")", "{", "int", "size", "=", "in", ".", "remaining", "(", ")", ";", "field_1_options", "=", "in", ".", "readShort", "(", ")", ";", "field_2_top_row", "=", "in", ".", "readShort", "(", ")", ";", "field_3_left_col", "=", "in", ".", "readShort", "(", ")", ";", "field_4_header_color", "=", "in", ".", "readInt", "(", ")", ";", "if", "(", "size", ">", "10", ")", "{", "field_5_page_break_zoom", "=", "in", ".", "readShort", "(", ")", ";", "field_6_normal_zoom", "=", "in", ".", "readShort", "(", ")", ";", "}", "if", "(", "size", ">", "14", ")", "{", "field_7_reserved", "=", "in", ".", "readInt", "(", ")", ";", "}", "}" ]
public WindowTwoRecord(RecordInputStream in1){int size = in1.Remaining;field_1_options = in1.ReadShort();field_2_top_row = in1.ReadShort();field_3_left_col = in1.ReadShort();field_4_header_color = in1.ReadInt();if (size > 10){field_5_page_break_zoom = in1.ReadShort();field_6_normal_zoom = in1.ReadShort();}if (size > 14){ field_7_reserved = in1.ReadInt();}}
train
false
6,958
public GetUsageResult getUsage(GetUsageRequest request) {request = beforeClientExecution(request);return executeGetUsage(request);}
[ "public", "GetUsageResult", "getUsage", "(", "GetUsageRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetUsage", "(", "request", ")", ";", "}" ]
public virtual GetUsageResponse GetUsage(GetUsageRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUsageRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUsageResponseUnmarshaller.Instance;return Invoke<GetUsageResponse>(request, options);}
train
true
6,959
public void setConfig(Config config) {super.setConfig(config);keepImages = config.get("keep.image.only.docs", true);String fileName = config.get("docs.file", null);if (fileName != null) {file = Paths.get(fileName).toAbsolutePath();}}
[ "public", "void", "setConfig", "(", "Config", "config", ")", "{", "super", ".", "setConfig", "(", "config", ")", ";", "keepImages", "=", "config", ".", "get", "(", "\"keep.image.only.docs\"", ",", "true", ")", ";", "String", "fileName", "=", "config", ".", "get", "(", "\"docs.file\"", ",", "null", ")", ";", "if", "(", "fileName", "!=", "null", ")", "{", "file", "=", "Paths", ".", "get", "(", "fileName", ")", ".", "toAbsolutePath", "(", ")", ";", "}", "}" ]
public override void SetConfig(Config config){base.SetConfig(config);keepImages = config.Get("keep.image.only.docs", true);string fileName = config.Get("docs.file", null);if (fileName != null){file = new FileInfo(fileName);}}
train
false
6,960
public ListSubscriptionsByTopicRequest(String topicArn) {setTopicArn(topicArn);}
[ "public", "ListSubscriptionsByTopicRequest", "(", "String", "topicArn", ")", "{", "setTopicArn", "(", "topicArn", ")", ";", "}" ]
public ListSubscriptionsByTopicRequest(string topicArn){_topicArn = topicArn;}
train
false
6,961
public ListTablesRequest(String exclusiveStartTableName, Integer limit) {setExclusiveStartTableName(exclusiveStartTableName);setLimit(limit);}
[ "public", "ListTablesRequest", "(", "String", "exclusiveStartTableName", ",", "Integer", "limit", ")", "{", "setExclusiveStartTableName", "(", "exclusiveStartTableName", ")", ";", "setLimit", "(", "limit", ")", ";", "}" ]
public ListTablesRequest(string exclusiveStartTableName, int limit){_exclusiveStartTableName = exclusiveStartTableName;_limit = limit;}
train
false
6,962
public String toString() {return start + " to " + end;}
[ "public", "String", "toString", "(", ")", "{", "return", "start", "+", "\" to \"", "+", "end", ";", "}" ]
public override string ToString(){return Start + " to " + End;}
train
false
6,964
public LongBuffer duplicate() {return copy(this, mark);}
[ "public", "LongBuffer", "duplicate", "(", ")", "{", "return", "copy", "(", "this", ",", "mark", ")", ";", "}" ]
public override java.nio.LongBuffer duplicate(){return copy(this, _mark);}
train
false
6,965
public ListManagedSchemaArnsResult listManagedSchemaArns(ListManagedSchemaArnsRequest request) {request = beforeClientExecution(request);return executeListManagedSchemaArns(request);}
[ "public", "ListManagedSchemaArnsResult", "listManagedSchemaArns", "(", "ListManagedSchemaArnsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListManagedSchemaArns", "(", "request", ")", ";", "}" ]
public virtual ListManagedSchemaArnsResponse ListManagedSchemaArns(ListManagedSchemaArnsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListManagedSchemaArnsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListManagedSchemaArnsResponseUnmarshaller.Instance;return Invoke<ListManagedSchemaArnsResponse>(request, options);}
train
true
6,966
public DescribeSpotPriceHistoryResult describeSpotPriceHistory(DescribeSpotPriceHistoryRequest request) {request = beforeClientExecution(request);return executeDescribeSpotPriceHistory(request);}
[ "public", "DescribeSpotPriceHistoryResult", "describeSpotPriceHistory", "(", "DescribeSpotPriceHistoryRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeSpotPriceHistory", "(", "request", ")", ";", "}" ]
public virtual DescribeSpotPriceHistoryResponse DescribeSpotPriceHistory(DescribeSpotPriceHistoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSpotPriceHistoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSpotPriceHistoryResponseUnmarshaller.Instance;return Invoke<DescribeSpotPriceHistoryResponse>(request, options);}
train
true
6,967
public ListDevelopmentSchemaArnsResult listDevelopmentSchemaArns(ListDevelopmentSchemaArnsRequest request) {request = beforeClientExecution(request);return executeListDevelopmentSchemaArns(request);}
[ "public", "ListDevelopmentSchemaArnsResult", "listDevelopmentSchemaArns", "(", "ListDevelopmentSchemaArnsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListDevelopmentSchemaArns", "(", "request", ")", ";", "}" ]
public virtual ListDevelopmentSchemaArnsResponse ListDevelopmentSchemaArns(ListDevelopmentSchemaArnsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDevelopmentSchemaArnsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDevelopmentSchemaArnsResponseUnmarshaller.Instance;return Invoke<ListDevelopmentSchemaArnsResponse>(request, options);}
train
true
6,968
public boolean equals(Object o) {if (!(o instanceof ATNConfig)) {return false;}return this.equals((ATNConfig)o);}
[ "public", "boolean", "equals", "(", "Object", "o", ")", "{", "if", "(", "!", "(", "o", "instanceof", "ATNConfig", ")", ")", "{", "return", "false", ";", "}", "return", "this", ".", "equals", "(", "(", "ATNConfig", ")", "o", ")", ";", "}" ]
public override bool Equals(Object o){if (!(o is ATNConfig)) {return false;}return this.Equals((ATNConfig)o);}
train
false
6,969
public DeleteEventsConfigurationResult deleteEventsConfiguration(DeleteEventsConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteEventsConfiguration(request);}
[ "public", "DeleteEventsConfigurationResult", "deleteEventsConfiguration", "(", "DeleteEventsConfigurationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteEventsConfiguration", "(", "request", ")", ";", "}" ]
public virtual DeleteEventsConfigurationResponse DeleteEventsConfiguration(DeleteEventsConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEventsConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEventsConfigurationResponseUnmarshaller.Instance;return Invoke<DeleteEventsConfigurationResponse>(request, options);}
train
false
6,970
public static short sign(double d) {return (short) ((d == 0)? 0: (d < 0)? -1: 1);}
[ "public", "static", "short", "sign", "(", "double", "d", ")", "{", "return", "(", "short", ")", "(", "(", "d", "==", "0", ")", "?", "0", ":", "(", "d", "<", "0", ")", "?", "-", "1", ":", "1", ")", ";", "}" ]
public static short Sign(double d){return (short)((d == 0)? 0: (d < 0)? -1: 1);}
train
false
6,971
public void setFillerToken(String fillerToken) {this.fillerToken = null == fillerToken ? new char[0] : fillerToken.toCharArray();}
[ "public", "void", "setFillerToken", "(", "String", "fillerToken", ")", "{", "this", ".", "fillerToken", "=", "null", "==", "fillerToken", "?", "new", "char", "[", "0", "]", ":", "fillerToken", ".", "toCharArray", "(", ")", ";", "}" ]
public void SetFillerToken(string fillerToken){this.fillerToken = null == fillerToken ? new char[0] : fillerToken.ToCharArray();}
train
false
6,972
public UpdateDestinationResult updateDestination(UpdateDestinationRequest request) {request = beforeClientExecution(request);return executeUpdateDestination(request);}
[ "public", "UpdateDestinationResult", "updateDestination", "(", "UpdateDestinationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateDestination", "(", "request", ")", ";", "}" ]
public virtual UpdateDestinationResponse UpdateDestination(UpdateDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDestinationResponseUnmarshaller.Instance;return Invoke<UpdateDestinationResponse>(request, options);}
train
true
6,973
public CreateEmailIdentityResult createEmailIdentity(CreateEmailIdentityRequest request) {request = beforeClientExecution(request);return executeCreateEmailIdentity(request);}
[ "public", "CreateEmailIdentityResult", "createEmailIdentity", "(", "CreateEmailIdentityRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateEmailIdentity", "(", "request", ")", ";", "}" ]
public virtual CreateEmailIdentityResponse CreateEmailIdentity(CreateEmailIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEmailIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEmailIdentityResponseUnmarshaller.Instance;return Invoke<CreateEmailIdentityResponse>(request, options);}
train
true
6,974
public PersonIdent getSourceAuthor() {return outCandidate.getAuthor();}
[ "public", "PersonIdent", "getSourceAuthor", "(", ")", "{", "return", "outCandidate", ".", "getAuthor", "(", ")", ";", "}" ]
public virtual PersonIdent GetSourceAuthor(){return currentSource.GetAuthor();}
train
false
6,975
public StartMonitoringMembersResult startMonitoringMembers(StartMonitoringMembersRequest request) {request = beforeClientExecution(request);return executeStartMonitoringMembers(request);}
[ "public", "StartMonitoringMembersResult", "startMonitoringMembers", "(", "StartMonitoringMembersRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStartMonitoringMembers", "(", "request", ")", ";", "}" ]
public virtual StartMonitoringMembersResponse StartMonitoringMembers(StartMonitoringMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartMonitoringMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = StartMonitoringMembersResponseUnmarshaller.Instance;return Invoke<StartMonitoringMembersResponse>(request, options);}
train
true
6,976
public void setLocalPatternChars(String data) {if (data == null) {throw new NullPointerException();}localPatternChars = data;}
[ "public", "void", "setLocalPatternChars", "(", "String", "data", ")", "{", "if", "(", "data", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", ")", ";", "}", "localPatternChars", "=", "data", ";", "}" ]
public virtual void setLocalPatternChars(string data){throw new System.NotImplementedException();}
train
false
6,977
public PersianNormalizationFilter(TokenStream input) {super(input);}
[ "public", "PersianNormalizationFilter", "(", "TokenStream", "input", ")", "{", "super", "(", "input", ")", ";", "}" ]
public PersianNormalizationFilter(TokenStream input): base(input){termAtt = AddAttribute<ICharTermAttribute>();}
train
false
6,978
public void liftUp(Row in, List<Row> nodes) {Iterator<Cell> i = in.cells.values().iterator();for (; i.hasNext();) {Cell c = i.next();if (c.ref >= 0) {Row to = nodes.get(c.ref);int sum = to.uniformCmd(changeSkip);if (sum >= 0) {if (sum == c.cmd) {if (changeSkip) {if (c.skip != to.uniformSkip + 1) {continue;}c.skip = to.uniformSkip + 1;} else {c.skip = 0;}c.cnt += to.uniformCnt;c.ref = -1;} else if (c.cmd < 0) {c.cnt = to.uniformCnt;c.cmd = sum;c.ref = -1;if (changeSkip) {c.skip = to.uniformSkip + 1;} else {c.skip = 0;}}}}}}
[ "public", "void", "liftUp", "(", "Row", "in", ",", "List", "<", "Row", ">", "nodes", ")", "{", "Iterator", "<", "Cell", ">", "i", "=", "in", ".", "cells", ".", "values", "(", ")", ".", "iterator", "(", ")", ";", "for", "(", ";", "i", ".", "hasNext", "(", ")", ";", ")", "{", "Cell", "c", "=", "i", ".", "next", "(", ")", ";", "if", "(", "c", ".", "ref", ">=", "0", ")", "{", "Row", "to", "=", "nodes", ".", "get", "(", "c", ".", "ref", ")", ";", "int", "sum", "=", "to", ".", "uniformCmd", "(", "changeSkip", ")", ";", "if", "(", "sum", ">=", "0", ")", "{", "if", "(", "sum", "==", "c", ".", "cmd", ")", "{", "if", "(", "changeSkip", ")", "{", "if", "(", "c", ".", "skip", "!=", "to", ".", "uniformSkip", "+", "1", ")", "{", "continue", ";", "}", "c", ".", "skip", "=", "to", ".", "uniformSkip", "+", "1", ";", "}", "else", "{", "c", ".", "skip", "=", "0", ";", "}", "c", ".", "cnt", "+=", "to", ".", "uniformCnt", ";", "c", ".", "ref", "=", "-", "1", ";", "}", "else", "if", "(", "c", ".", "cmd", "<", "0", ")", "{", "c", ".", "cnt", "=", "to", ".", "uniformCnt", ";", "c", ".", "cmd", "=", "sum", ";", "c", ".", "ref", "=", "-", "1", ";", "if", "(", "changeSkip", ")", "{", "c", ".", "skip", "=", "to", ".", "uniformSkip", "+", "1", ";", "}", "else", "{", "c", ".", "skip", "=", "0", ";", "}", "}", "}", "}", "}", "}" ]
public void LiftUp(Row @in, IList<Row> nodes){foreach (Cell c in @in.cells.Values){if (c.@ref >= 0){Row to = nodes[c.@ref];int sum = to.UniformCmd(changeSkip);if (sum >= 0){if (sum == c.cmd){if (changeSkip){if (c.skip != to.uniformSkip + 1){continue;}c.skip = to.uniformSkip + 1;}else{c.skip = 0;}c.cnt += to.uniformCnt;c.@ref = -1;}else if (c.cmd < 0){c.cnt = to.uniformCnt;c.cmd = sum;c.@ref = -1;if (changeSkip){c.skip = to.uniformSkip + 1;}else{c.skip = 0;}}}}}}
train
false
6,979
public String toString() {StringBuilder r = new StringBuilder();r.append("SymbolicRef[");Ref cur = this;while (cur.isSymbolic()) {r.append(cur.getName());r.append(" -> ");cur = cur.getTarget();}r.append(cur.getName());r.append('=');r.append(ObjectId.toString(cur.getObjectId()));r.append("(");r.append(updateIndex); r.append(")]");return r.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "r", "=", "new", "StringBuilder", "(", ")", ";", "r", ".", "append", "(", "\"SymbolicRef[\"", ")", ";", "Ref", "cur", "=", "this", ";", "while", "(", "cur", ".", "isSymbolic", "(", ")", ")", "{", "r", ".", "append", "(", "cur", ".", "getName", "(", ")", ")", ";", "r", ".", "append", "(", "\" -> \"", ")", ";", "cur", "=", "cur", ".", "getTarget", "(", ")", ";", "}", "r", ".", "append", "(", "cur", ".", "getName", "(", ")", ")", ";", "r", ".", "append", "(", "'='", ")", ";", "r", ".", "append", "(", "ObjectId", ".", "toString", "(", "cur", ".", "getObjectId", "(", ")", ")", ")", ";", "r", ".", "append", "(", "\"(\"", ")", ";", "r", ".", "append", "(", "updateIndex", ")", ";", "r", ".", "append", "(", "\")]\"", ")", ";", "return", "r", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){StringBuilder r = new StringBuilder();r.Append("SymbolicRef[");Ref cur = this;while (cur.IsSymbolic()){r.Append(cur.GetName());r.Append(" -> ");cur = cur.GetTarget();}r.Append(cur.GetName());r.Append('=');r.Append(ObjectId.ToString(cur.GetObjectId()));r.Append("]");return r.ToString();}
train
false
6,980
public RemoveAllResourcePermissionsResult removeAllResourcePermissions(RemoveAllResourcePermissionsRequest request) {request = beforeClientExecution(request);return executeRemoveAllResourcePermissions(request);}
[ "public", "RemoveAllResourcePermissionsResult", "removeAllResourcePermissions", "(", "RemoveAllResourcePermissionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRemoveAllResourcePermissions", "(", "request", ")", ";", "}" ]
public virtual RemoveAllResourcePermissionsResponse RemoveAllResourcePermissions(RemoveAllResourcePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveAllResourcePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveAllResourcePermissionsResponseUnmarshaller.Instance;return Invoke<RemoveAllResourcePermissionsResponse>(request, options);}
train
true
6,981
public DescribeResourceGroupsResult describeResourceGroups(DescribeResourceGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeResourceGroups(request);}
[ "public", "DescribeResourceGroupsResult", "describeResourceGroups", "(", "DescribeResourceGroupsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeResourceGroups", "(", "request", ")", ";", "}" ]
public virtual DescribeResourceGroupsResponse DescribeResourceGroups(DescribeResourceGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeResourceGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeResourceGroupsResponseUnmarshaller.Instance;return Invoke<DescribeResourceGroupsResponse>(request, options);}
train
true
6,982
public SpatialArgs parse(String v, SpatialContext ctx) throws ParseException, InvalidShapeException {int idx = v.indexOf('(');int edx = v.lastIndexOf(')');if (idx < 0 || idx > edx) {throw new ParseException("missing parens: " + v, -1);}SpatialOperation op = SpatialOperation.get(v.substring(0, idx).trim());String body = v.substring(idx + 1, edx).trim();if (body.length() < 1) {throw new ParseException("missing body : " + v, idx + 1);}Shape shape = parseShape(body, ctx);SpatialArgs args = newSpatialArgs(op, shape);if (v.length() > (edx + 1)) {body = v.substring(edx + 1).trim();if (body.length() > 0) {Map<String, String> aa = parseMap(body);readNameValuePairs(args, aa);if (!aa.isEmpty()) {throw new IllegalArgumentException("unused parameters: " + aa);}}}args.validate();return args;}
[ "public", "SpatialArgs", "parse", "(", "String", "v", ",", "SpatialContext", "ctx", ")", "throws", "ParseException", ",", "InvalidShapeException", "{", "int", "idx", "=", "v", ".", "indexOf", "(", "'('", ")", ";", "int", "edx", "=", "v", ".", "lastIndexOf", "(", "')'", ")", ";", "if", "(", "idx", "<", "0", "||", "idx", ">", "edx", ")", "{", "throw", "new", "ParseException", "(", "\"missing parens: \"", "+", "v", ",", "-", "1", ")", ";", "}", "SpatialOperation", "op", "=", "SpatialOperation", ".", "get", "(", "v", ".", "substring", "(", "0", ",", "idx", ")", ".", "trim", "(", ")", ")", ";", "String", "body", "=", "v", ".", "substring", "(", "idx", "+", "1", ",", "edx", ")", ".", "trim", "(", ")", ";", "if", "(", "body", ".", "length", "(", ")", "<", "1", ")", "{", "throw", "new", "ParseException", "(", "\"missing body : \"", "+", "v", ",", "idx", "+", "1", ")", ";", "}", "Shape", "shape", "=", "parseShape", "(", "body", ",", "ctx", ")", ";", "SpatialArgs", "args", "=", "newSpatialArgs", "(", "op", ",", "shape", ")", ";", "if", "(", "v", ".", "length", "(", ")", ">", "(", "edx", "+", "1", ")", ")", "{", "body", "=", "v", ".", "substring", "(", "edx", "+", "1", ")", ".", "trim", "(", ")", ";", "if", "(", "body", ".", "length", "(", ")", ">", "0", ")", "{", "Map", "<", "String", ",", "String", ">", "aa", "=", "parseMap", "(", "body", ")", ";", "readNameValuePairs", "(", "args", ",", "aa", ")", ";", "if", "(", "!", "aa", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"unused parameters: \"", "+", "aa", ")", ";", "}", "}", "}", "args", ".", "validate", "(", ")", ";", "return", "args", ";", "}" ]
public virtual SpatialArgs Parse(string v, SpatialContext ctx){int idx = v.IndexOf('(');int edx = v.LastIndexOf(')');if (idx < 0 || idx > edx){throw new ParseException("missing parens: " + v, -1);}SpatialOperation op = SpatialOperation.Get(v.Substring(0, idx - 0).Trim());string body = v.Substring(idx + 1, edx - (idx + 1)).Trim();if (body.Length < 1){throw new ParseException("missing body : " + v, idx + 1);}var shape = ParseShape(body, ctx);var args = NewSpatialArgs(op, shape);if (v.Length > (edx + 1)){body = v.Substring(edx + 1).Trim();if (body.Length > 0){IDictionary<string, string> aa = ParseMap(body);ReadNameValuePairs(args, aa);if (!aa.Any()){throw new ArgumentException("unused parameters: " + aa);}}}args.Validate();return args;}
train
false
6,983
public boolean wasDeltaAttempted() {int fmt = getFormat();return fmt == PACK_DELTA || fmt == PACK_WHOLE;}
[ "public", "boolean", "wasDeltaAttempted", "(", ")", "{", "int", "fmt", "=", "getFormat", "(", ")", ";", "return", "fmt", "==", "PACK_DELTA", "||", "fmt", "==", "PACK_WHOLE", ";", "}" ]
public virtual bool WasDeltaAttempted(){int fmt = GetFormat();return fmt == PACK_DELTA || fmt == PACK_WHOLE;}
train
false
6,984
public PutModelResult putModel(PutModelRequest request) {request = beforeClientExecution(request);return executePutModel(request);}
[ "public", "PutModelResult", "putModel", "(", "PutModelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePutModel", "(", "request", ")", ";", "}" ]
public virtual PutModelResponse PutModel(PutModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutModelRequestMarshaller.Instance;options.ResponseUnmarshaller = PutModelResponseUnmarshaller.Instance;return Invoke<PutModelResponse>(request, options);}
train
false
6,985
public String toString() {return String.valueOf(stateNumber);}
[ "public", "String", "toString", "(", ")", "{", "return", "String", ".", "valueOf", "(", "stateNumber", ")", ";", "}" ]
public override string ToString(){return stateNumber.ToString();}
train
false
6,986
public CreatePlayerSessionResult createPlayerSession(CreatePlayerSessionRequest request) {request = beforeClientExecution(request);return executeCreatePlayerSession(request);}
[ "public", "CreatePlayerSessionResult", "createPlayerSession", "(", "CreatePlayerSessionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreatePlayerSession", "(", "request", ")", ";", "}" ]
public virtual CreatePlayerSessionResponse CreatePlayerSession(CreatePlayerSessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePlayerSessionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePlayerSessionResponseUnmarshaller.Instance;return Invoke<CreatePlayerSessionResponse>(request, options);}
train
true
6,987
public void serialize(LittleEndianOutput out) {out.writeByte(field_1_majorTickType);out.writeByte(field_2_minorTickType);out.writeByte(field_3_labelPosition);out.writeByte(field_4_background);out.writeInt(field_5_labelColorRgb);out.writeInt(field_6_zero1);out.writeInt(field_7_zero2);out.writeInt(field_8_zero3);out.writeInt(field_9_zero4);out.writeShort(field_10_options);out.writeShort(field_11_tickColor);out.writeShort(field_12_zero5);}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeByte", "(", "field_1_majorTickType", ")", ";", "out", ".", "writeByte", "(", "field_2_minorTickType", ")", ";", "out", ".", "writeByte", "(", "field_3_labelPosition", ")", ";", "out", ".", "writeByte", "(", "field_4_background", ")", ";", "out", ".", "writeInt", "(", "field_5_labelColorRgb", ")", ";", "out", ".", "writeInt", "(", "field_6_zero1", ")", ";", "out", ".", "writeInt", "(", "field_7_zero2", ")", ";", "out", ".", "writeInt", "(", "field_8_zero3", ")", ";", "out", ".", "writeInt", "(", "field_9_zero4", ")", ";", "out", ".", "writeShort", "(", "field_10_options", ")", ";", "out", ".", "writeShort", "(", "field_11_tickColor", ")", ";", "out", ".", "writeShort", "(", "field_12_zero5", ")", ";", "}" ]
public override void Serialize(ILittleEndianOutput out1){out1.WriteByte(field_1_majorTickType);out1.WriteByte(field_2_minorTickType);out1.WriteByte(field_3_labelPosition);out1.WriteByte(field_4_background);out1.WriteInt(field_5_labelColorRgb);out1.WriteInt(field_6_zero1);out1.WriteInt(field_7_zero2);out1.WriteInt(field_8_zero3);out1.WriteInt(field_9_zero4);out1.WriteShort(field_10_options);out1.WriteShort(field_11_tickColor);out1.WriteShort(field_12_zero5);}
train
false
6,988
public ModifyVpcTenancyResult modifyVpcTenancy(ModifyVpcTenancyRequest request) {request = beforeClientExecution(request);return executeModifyVpcTenancy(request);}
[ "public", "ModifyVpcTenancyResult", "modifyVpcTenancy", "(", "ModifyVpcTenancyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyVpcTenancy", "(", "request", ")", ";", "}" ]
public virtual ModifyVpcTenancyResponse ModifyVpcTenancy(ModifyVpcTenancyRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpcTenancyRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpcTenancyResponseUnmarshaller.Instance;return Invoke<ModifyVpcTenancyResponse>(request, options);}
train
true
6,989
public GetBasePathMappingsResult getBasePathMappings(GetBasePathMappingsRequest request) {request = beforeClientExecution(request);return executeGetBasePathMappings(request);}
[ "public", "GetBasePathMappingsResult", "getBasePathMappings", "(", "GetBasePathMappingsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetBasePathMappings", "(", "request", ")", ";", "}" ]
public virtual GetBasePathMappingsResponse GetBasePathMappings(GetBasePathMappingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBasePathMappingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBasePathMappingsResponseUnmarshaller.Instance;return Invoke<GetBasePathMappingsResponse>(request, options);}
train
true
6,990
public void add(BytesRef utf8) {if (closed) throw new IllegalStateException();buffer.append(utf8);}
[ "public", "void", "add", "(", "BytesRef", "utf8", ")", "{", "if", "(", "closed", ")", "throw", "new", "IllegalStateException", "(", ")", ";", "buffer", ".", "append", "(", "utf8", ")", ";", "}" ]
public void Add(BytesRef utf8){if (closed){throw new InvalidOperationException();}buffer.Append(utf8);}
train
false
6,992
public AddApplicationReferenceDataSourceResult addApplicationReferenceDataSource(AddApplicationReferenceDataSourceRequest request) {request = beforeClientExecution(request);return executeAddApplicationReferenceDataSource(request);}
[ "public", "AddApplicationReferenceDataSourceResult", "addApplicationReferenceDataSource", "(", "AddApplicationReferenceDataSourceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAddApplicationReferenceDataSource", "(", "request", ")", ";", "}" ]
public virtual AddApplicationReferenceDataSourceResponse AddApplicationReferenceDataSource(AddApplicationReferenceDataSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddApplicationReferenceDataSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = AddApplicationReferenceDataSourceResponseUnmarshaller.Instance;return Invoke<AddApplicationReferenceDataSourceResponse>(request, options);}
train
true
6,993
public NIOFSIndexInput(String resourceDesc, FileChannel fc, long off, long length, int bufferSize) {super(resourceDesc, bufferSize);this.channel = fc;this.off = off;this.end = off + length;this.isClone = true;}
[ "public", "NIOFSIndexInput", "(", "String", "resourceDesc", ",", "FileChannel", "fc", ",", "long", "off", ",", "long", "length", ",", "int", "bufferSize", ")", "{", "super", "(", "resourceDesc", ",", "bufferSize", ")", ";", "this", ".", "channel", "=", "fc", ";", "this", ".", "off", "=", "off", ";", "this", ".", "end", "=", "off", "+", "length", ";", "this", ".", "isClone", "=", "true", ";", "}" ]
public NIOFSIndexInput(string resourceDesc, FileStream fc, long off, long length, int bufferSize): base(resourceDesc, bufferSize){this.m_channel = fc;this.m_off = off;this.m_end = off + length;this.isClone = true;}
train
false
6,994
@Override public Iterator<K> iterator() {final Iterator<Entry<K, V>> iterator = filteredEntrySet.iterator();return new UnmodifiableIterator<K>();}
[ "@", "Override", "public", "Iterator", "<", "K", ">", "iterator", "(", ")", "{", "final", "Iterator", "<", "Entry", "<", "K", ",", "V", ">", ">", "iterator", "=", "filteredEntrySet", ".", "iterator", "(", ")", ";", "return", "new", "UnmodifiableIterator", "<", "K", ">", "(", ")", ";", "}" ]
public override java.util.Iterator<K> iterator(){return new java.util.Hashtable<K, V>.KeyIterator(this._enclosing);}
train
false
6,995
public TokenStream create(TokenStream input) {return new IndonesianStemFilter(input, stemDerivational);}
[ "public", "TokenStream", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "IndonesianStemFilter", "(", "input", ",", "stemDerivational", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new IndonesianStemFilter(input, stemDerivational);}
train
false
6,996
public SubmoduleStatusCommand addPath(String path) {paths.add(path);return this;}
[ "public", "SubmoduleStatusCommand", "addPath", "(", "String", "path", ")", "{", "paths", ".", "add", "(", "path", ")", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.SubmoduleStatusCommand AddPath(string path){paths.AddItem(path);return this;}
train
false
6,997
public PutInsightRuleResult putInsightRule(PutInsightRuleRequest request) {request = beforeClientExecution(request);return executePutInsightRule(request);}
[ "public", "PutInsightRuleResult", "putInsightRule", "(", "PutInsightRuleRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePutInsightRule", "(", "request", ")", ";", "}" ]
public virtual PutInsightRuleResponse PutInsightRule(PutInsightRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutInsightRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = PutInsightRuleResponseUnmarshaller.Instance;return Invoke<PutInsightRuleResponse>(request, options);}
train
false
6,998
public JapaneseReadingFormFilterFactory(Map<String,String> args) {super(args);useRomaji = getBoolean(args, ROMAJI_PARAM, false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "JapaneseReadingFormFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "useRomaji", "=", "getBoolean", "(", "args", ",", "ROMAJI_PARAM", ",", "false", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public JapaneseReadingFormFilterFactory(IDictionary<string, string> args): base(args){useRomaji = GetBoolean(args, ROMAJI_PARAM, false);if (args.Count > 0){throw new ArgumentException("Unknown parameters: " + args);}}
train
false
6,999
public GetVpcLinkResult getVpcLink(GetVpcLinkRequest request) {request = beforeClientExecution(request);return executeGetVpcLink(request);}
[ "public", "GetVpcLinkResult", "getVpcLink", "(", "GetVpcLinkRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetVpcLink", "(", "request", ")", ";", "}" ]
public virtual GetVpcLinkResponse GetVpcLink(GetVpcLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVpcLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVpcLinkResponseUnmarshaller.Instance;return Invoke<GetVpcLinkResponse>(request, options);}
train
true
7,000
public boolean evaluate(boolean cmpResult) {switch (_code) {case NONE:case EQ:return cmpResult;case NE:return !cmpResult;}throw new RuntimeException("Cannot call boolean evaluate on non-equality operator '"+ _representation + "'");}
[ "public", "boolean", "evaluate", "(", "boolean", "cmpResult", ")", "{", "switch", "(", "_code", ")", "{", "case", "NONE", ":", "case", "EQ", ":", "return", "cmpResult", ";", "case", "NE", ":", "return", "!", "cmpResult", ";", "}", "throw", "new", "RuntimeException", "(", "\"Cannot call boolean evaluate on non-equality operator '\"", "+", "_representation", "+", "\"'\"", ")", ";", "}" ]
public bool Evaluate(bool cmpResult){switch (_code){case NONE:case EQ:return cmpResult;case NE:return !cmpResult;}throw new Exception("Cannot call bool Evaluate on non-equality operator '"+ _representation + "'");}
train
false
7,001
public int getEnd() {return end;}
[ "public", "int", "getEnd", "(", ")", "{", "return", "end", ";", "}" ]
public virtual int GetEnd(){return end;}
train
false
7,002
@Override public String toString() {if (string != null) {return string;}StringBuilder result = new StringBuilder();if (scheme != null) {result.append(scheme);result.append(':');}if (opaque) {result.append(schemeSpecificPart);} else {if (authority != null) {result.append("");result.append(authority);}if (path != null) {result.append(path);}if (query != null) {result.append('?');result.append(query);}}if (fragment != null) {result.append('#');result.append(fragment);}string = result.toString();return string;}
[ "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "string", "!=", "null", ")", "{", "return", "string", ";", "}", "StringBuilder", "result", "=", "new", "StringBuilder", "(", ")", ";", "if", "(", "scheme", "!=", "null", ")", "{", "result", ".", "append", "(", "scheme", ")", ";", "result", ".", "append", "(", "':'", ")", ";", "}", "if", "(", "opaque", ")", "{", "result", ".", "append", "(", "schemeSpecificPart", ")", ";", "}", "else", "{", "if", "(", "authority", "!=", "null", ")", "{", "result", ".", "append", "(", "\"\"", ")", ";", "result", ".", "append", "(", "authority", ")", ";", "}", "if", "(", "path", "!=", "null", ")", "{", "result", ".", "append", "(", "path", ")", ";", "}", "if", "(", "query", "!=", "null", ")", "{", "result", ".", "append", "(", "'?'", ")", ";", "result", ".", "append", "(", "query", ")", ";", "}", "}", "if", "(", "fragment", "!=", "null", ")", "{", "result", ".", "append", "(", "'#'", ")", ";", "result", ".", "append", "(", "fragment", ")", ";", "}", "string", "=", "result", ".", "toString", "(", ")", ";", "return", "string", ";", "}" ]
public override string ToString(){if (@string != null){return @string;}java.lang.StringBuilder result = new java.lang.StringBuilder();if (scheme != null){result.append(scheme);result.append(':');}if (opaque){result.append(schemeSpecificPart);}else{if (authority != null){result.append("");result.append(authority);}if (path != null){result.append(path);}if (query != null){result.append('?');result.append(query);}}if (fragment != null){result.append('#');result.append(fragment);}@string = result.ToString();return @string;}
train
false
7,003
public static final ObjectId fromRaw(byte[] bs, int p) {final int a = NB.decodeInt32(bs, p);final int b = NB.decodeInt32(bs, p + 4);final int c = NB.decodeInt32(bs, p + 8);final int d = NB.decodeInt32(bs, p + 12);final int e = NB.decodeInt32(bs, p + 16);return new ObjectId(a, b, c, d, e);}
[ "public", "static", "final", "ObjectId", "fromRaw", "(", "byte", "[", "]", "bs", ",", "int", "p", ")", "{", "final", "int", "a", "=", "NB", ".", "decodeInt32", "(", "bs", ",", "p", ")", ";", "final", "int", "b", "=", "NB", ".", "decodeInt32", "(", "bs", ",", "p", "+", "4", ")", ";", "final", "int", "c", "=", "NB", ".", "decodeInt32", "(", "bs", ",", "p", "+", "8", ")", ";", "final", "int", "d", "=", "NB", ".", "decodeInt32", "(", "bs", ",", "p", "+", "12", ")", ";", "final", "int", "e", "=", "NB", ".", "decodeInt32", "(", "bs", ",", "p", "+", "16", ")", ";", "return", "new", "ObjectId", "(", "a", ",", "b", ",", "c", ",", "d", ",", "e", ")", ";", "}" ]
public static NGit.ObjectId FromRaw(byte[] bs, int p){int a = NB.DecodeInt32(bs, p);int b = NB.DecodeInt32(bs, p + 4);int c = NB.DecodeInt32(bs, p + 8);int d = NB.DecodeInt32(bs, p + 12);int e = NB.DecodeInt32(bs, p + 16);return new NGit.ObjectId(a, b, c, d, e);}
train
false
7,004
public int maxRecall(QualityQuery query) {QRelJudgement qrj = judgements.get(query.getQueryID());if (qrj!=null) {return qrj.maxRecall();}return 0;}
[ "public", "int", "maxRecall", "(", "QualityQuery", "query", ")", "{", "QRelJudgement", "qrj", "=", "judgements", ".", "get", "(", "query", ".", "getQueryID", "(", ")", ")", ";", "if", "(", "qrj", "!=", "null", ")", "{", "return", "qrj", ".", "maxRecall", "(", ")", ";", "}", "return", "0", ";", "}" ]
public virtual int MaxRecall(QualityQuery query){QRelJudgement qrj;if (judgements.TryGetValue(query.QueryID, out qrj) && qrj != null){return qrj.MaxRecall;}return 0;}
train
false
7,005
public static HashFunction hashFunctionForVersion(int version) {if (version < VERSION_START) {throw new IllegalArgumentException("Version " + version + " is too old, expected at least " + VERSION_START);} else if (version > VERSION_CURRENT) {throw new IllegalArgumentException("Version " + version + " is too new, expected at most " + VERSION_CURRENT);}return MurmurHash2.INSTANCE;}
[ "public", "static", "HashFunction", "hashFunctionForVersion", "(", "int", "version", ")", "{", "if", "(", "version", "<", "VERSION_START", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Version \"", "+", "version", "+", "\" is too old, expected at least \"", "+", "VERSION_START", ")", ";", "}", "else", "if", "(", "version", ">", "VERSION_CURRENT", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Version \"", "+", "version", "+", "\" is too new, expected at most \"", "+", "VERSION_CURRENT", ")", ";", "}", "return", "MurmurHash2", ".", "INSTANCE", ";", "}" ]
public static HashFunction HashFunctionForVersion(int version){if (version < VERSION_START)throw new ArgumentException("Version " + version + " is too old, expected at least " +VERSION_START);if (version > VERSION_CURRENT)throw new ArgumentException("Version " + version + " is too new, expected at most " +VERSION_CURRENT);return MurmurHash2.INSTANCE;}
train
false
7,006
public void removeCell(Cell cell) {if(cell == null) {throw new IllegalArgumentException("cell must not be null");}removeCell((HSSFCell)cell, true);}
[ "public", "void", "removeCell", "(", "Cell", "cell", ")", "{", "if", "(", "cell", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"cell must not be null\"", ")", ";", "}", "removeCell", "(", "(", "HSSFCell", ")", "cell", ",", "true", ")", ";", "}" ]
public void RemoveCell(ICell cell){if (cell == null){throw new ArgumentException("cell must not be null");}RemoveCell((HSSFCell)cell, true);}
train
false
7,007
public CreatePlacementGroupRequest(String groupName, PlacementStrategy strategy) {setGroupName(groupName);setStrategy(strategy.toString());}
[ "public", "CreatePlacementGroupRequest", "(", "String", "groupName", ",", "PlacementStrategy", "strategy", ")", "{", "setGroupName", "(", "groupName", ")", ";", "setStrategy", "(", "strategy", ".", "toString", "(", ")", ")", ";", "}" ]
public CreatePlacementGroupRequest(string groupName, PlacementStrategy strategy){_groupName = groupName;_strategy = strategy;}
train
false
7,008
public PutManagedScalingPolicyResult putManagedScalingPolicy(PutManagedScalingPolicyRequest request) {request = beforeClientExecution(request);return executePutManagedScalingPolicy(request);}
[ "public", "PutManagedScalingPolicyResult", "putManagedScalingPolicy", "(", "PutManagedScalingPolicyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePutManagedScalingPolicy", "(", "request", ")", ";", "}" ]
public virtual PutManagedScalingPolicyResponse PutManagedScalingPolicy(PutManagedScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutManagedScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = PutManagedScalingPolicyResponseUnmarshaller.Instance;return Invoke<PutManagedScalingPolicyResponse>(request, options);}
train
false
7,009
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[SXVS]\n");buffer.append(" .vs =").append(HexDump.shortToHex(vs)).append('\n');buffer.append("[/SXVS]\n");return buffer.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "buffer", ".", "append", "(", "\"[SXVS]\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .vs =\"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "vs", ")", ")", ".", "append", "(", "'\\n'", ")", ";", "buffer", ".", "append", "(", "\"[/SXVS]\\n\"", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[SXVS]\n");buffer.Append(" .vs =").Append(HexDump.ShortToHex(vs)).Append('\n');buffer.Append("[/SXVS]\n");return buffer.ToString();}
train
false