id_within_dataset
int64
0
10.3k
snippet
stringlengths
29
1.4k
tokens
listlengths
10
314
cs
stringlengths
28
1.38k
split_within_dataset
stringclasses
1 value
is_duplicated
bool
2 classes
7,325
public HyphenationCompoundWordTokenFilterFactory(Map<String, String> args) {super(args);dictFile = get(args, "dictionary");encoding = get(args, "encoding");hypFile = require(args, "hyphenator");minWordSize = getInt(args, "minWordSize", CompoundWordTokenFilterBase.DEFAULT_MIN_WORD_SIZE);minSubwordSize = getInt(args, "mi...
[ "public", "HyphenationCompoundWordTokenFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "dictFile", "=", "get", "(", "args", ",", "\"dictionary\"", ")", ";", "encoding", "=", "get", "(", "args...
public HyphenationCompoundWordTokenFilterFactory(IDictionary<string, string> args) : base(args){AssureMatchVersion();dictFile = Get(args, "dictionary");encoding = Get(args, "encoding");hypFile = Require(args, "hyphenator");minWordSize = GetInt32(args, "minWordSize", CompoundWordTokenFilterBase.DEFAULT_MIN_WORD_SIZE);mi...
train
false
7,326
public DeleteTerminologyResult deleteTerminology(DeleteTerminologyRequest request) {request = beforeClientExecution(request);return executeDeleteTerminology(request);}
[ "public", "DeleteTerminologyResult", "deleteTerminology", "(", "DeleteTerminologyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteTerminology", "(", "request", ")", ";", "}" ]
public virtual DeleteTerminologyResponse DeleteTerminology(DeleteTerminologyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTerminologyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTerminologyResponseUnmarshaller.Instance;return Invoke<DeleteTerminologyResponse>(re...
train
true
7,327
public boolean remove(Object o) {if (!(o instanceof Entry))return false;Entry<?, ?> e = (Entry<?, ?>)o;return removeMapping(e.getKey(), e.getValue());}
[ "public", "boolean", "remove", "(", "Object", "o", ")", "{", "if", "(", "!", "(", "o", "instanceof", "Entry", ")", ")", "return", "false", ";", "Entry", "<", "?", ",", "?", ">", "e", "=", "(", "Entry", "<", "?", ",", "?", ">", ")", "o", ";", ...
public override bool remove(object o){if (!(o is java.util.MapClass.Entry<K, V>)){return false;}java.util.MapClass.Entry<object, object> e = (java.util.MapClass.Entry<object, object>)o;return this._enclosing.removeMapping(e.getKey(), e.getValue());}
train
false
7,328
public GetObjectAttributesResult getObjectAttributes(GetObjectAttributesRequest request) {request = beforeClientExecution(request);return executeGetObjectAttributes(request);}
[ "public", "GetObjectAttributesResult", "getObjectAttributes", "(", "GetObjectAttributesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetObjectAttributes", "(", "request", ")", ";", "}" ]
public virtual GetObjectAttributesResponse GetObjectAttributes(GetObjectAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetObjectAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetObjectAttributesResponseUnmarshaller.Instance;return Invoke<GetObjectAttributes...
train
true
7,329
public RevWalk getRevWalk() {throw new UnsupportedOperationException(MessageFormat.format(JGitText.get().isAStaticFlagAndHasNorevWalkInstance, toString()));}
[ "public", "RevWalk", "getRevWalk", "(", ")", "{", "throw", "new", "UnsupportedOperationException", "(", "MessageFormat", ".", "format", "(", "JGitText", ".", "get", "(", ")", ".", "isAStaticFlagAndHasNorevWalkInstance", ",", "toString", "(", ")", ")", ")", ";", ...
public override RevWalk GetRevWalk(){throw new NotSupportedException(MessageFormat.Format(JGitText.Get().isAStaticFlagAndHasNorevWalkInstance, ToString()));}
train
false
7,330
public DescribeKeyPairsResult describeKeyPairs(DescribeKeyPairsRequest request) {request = beforeClientExecution(request);return executeDescribeKeyPairs(request);}
[ "public", "DescribeKeyPairsResult", "describeKeyPairs", "(", "DescribeKeyPairsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeKeyPairs", "(", "request", ")", ";", "}" ]
public virtual DescribeKeyPairsResponse DescribeKeyPairs(DescribeKeyPairsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeKeyPairsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeKeyPairsResponseUnmarshaller.Instance;return Invoke<DescribeKeyPairsResponse>(request,...
train
true
7,331
public byte[] toByteArray() {return build();}
[ "public", "byte", "[", "]", "toByteArray", "(", ")", "{", "return", "build", "(", ")", ";", "}" ]
public virtual byte[] ToByteArray(){return Build();}
train
false
7,332
public void setIndexVersion(int version) {indexVersion = version;}
[ "public", "void", "setIndexVersion", "(", "int", "version", ")", "{", "indexVersion", "=", "version", ";", "}" ]
public virtual void SetIndexVersion(int version){indexVersion = version;}
train
false
7,333
public IgnoreNode() {rules = new ArrayList<>();}
[ "public", "IgnoreNode", "(", ")", "{", "rules", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "}" ]
public IgnoreNode(){rules = new AList<IgnoreRule>();}
train
false
7,334
public TreeFilter negate() {return NotTreeFilter.create(this);}
[ "public", "TreeFilter", "negate", "(", ")", "{", "return", "NotTreeFilter", ".", "create", "(", "this", ")", ";", "}" ]
public virtual TreeFilter Negate(){return NotTreeFilter.Create(this);}
train
false
7,336
public String toString() {return exists() ? toObject().toString() : "(null)";}
[ "public", "String", "toString", "(", ")", "{", "return", "exists", "(", ")", "?", "toObject", "(", ")", ".", "toString", "(", ")", ":", "\"(null)\"", ";", "}" ]
public override string ToString(){return Exists ? ToObject().ToString() : "(null)";}
train
false
7,337
public int available() throws IOException {checkReadPrimitiveTypes();return primitiveData.available();}
[ "public", "int", "available", "(", ")", "throws", "IOException", "{", "checkReadPrimitiveTypes", "(", ")", ";", "return", "primitiveData", ".", "available", "(", ")", ";", "}" ]
public override int available(){throw new System.NotImplementedException();}
train
false
7,338
public UnicodeMapping(String pEntityName, String pResolvedValue) {entityName = "&" + pEntityName + ";";resolvedValue = pResolvedValue;}
[ "public", "UnicodeMapping", "(", "String", "pEntityName", ",", "String", "pResolvedValue", ")", "{", "entityName", "=", "\"&\"", "+", "pEntityName", "+", "\";\"", ";", "resolvedValue", "=", "pResolvedValue", ";", "}" ]
public UnicodeMapping(String pEntityName, String pResolvedValue){entityName = "&" + pEntityName + ";";resolvedValue = pResolvedValue;}
train
false
7,339
public final void removeBreak(int main) {Integer rowKey = Integer.valueOf(main);Break region = _breakMap.get(rowKey);_breaks.remove(region);_breakMap.remove(rowKey);}
[ "public", "final", "void", "removeBreak", "(", "int", "main", ")", "{", "Integer", "rowKey", "=", "Integer", ".", "valueOf", "(", "main", ")", ";", "Break", "region", "=", "_breakMap", ".", "get", "(", "rowKey", ")", ";", "_breaks", ".", "remove", "(",...
public void RemoveBreak(int main){int rowKey = main;Break region = (Break)_breakMap[rowKey];_breaks.Remove(region);_breakMap.Remove(rowKey);}
train
false
7,340
public void sort(int from, int to) {checkRange(from, to);if (to - from <= 1) {return;}reset(from, to);do {ensureInvariants();pushRunLen(nextRun());} while (runEnd(0) < to);exhaustStack();assert runEnd(0) == to;}
[ "public", "void", "sort", "(", "int", "from", ",", "int", "to", ")", "{", "checkRange", "(", "from", ",", "to", ")", ";", "if", "(", "to", "-", "from", "<=", "1", ")", "{", "return", ";", "}", "reset", "(", "from", ",", "to", ")", ";", "do", ...
public override void Sort(int from, int to){CheckRange(from, to);if (to - from <= 1){return;}Reset(from, to);do{EnsureInvariants();PushRunLen(NextRun());} while (RunEnd(0) < to);ExhaustStack();Debug.Assert(RunEnd(0) == to);}
train
false
7,341
public File getDirectory() {return directory;}
[ "public", "File", "getDirectory", "(", ")", "{", "return", "directory", ";", "}" ]
public virtual FilePath GetDirectory(){return directory;}
train
false
7,342
public PositionTrackingVisitor(RecordVisitor rv, int initialPosition) {_rv = rv;_position = initialPosition;}
[ "public", "PositionTrackingVisitor", "(", "RecordVisitor", "rv", ",", "int", "initialPosition", ")", "{", "_rv", "=", "rv", ";", "_position", "=", "initialPosition", ";", "}" ]
public PositionTrackingVisitor(RecordVisitor rv, int initialPosition){_rv = rv;_position = initialPosition;}
train
false
7,343
public T top() {return top;}
[ "public", "T", "top", "(", ")", "{", "return", "top", ";", "}" ]
public T Top(){return top;}
train
false
7,344
public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName());sb.append(" [");if (externalWorkbookNumber >= 0) {sb.append(" [");sb.append("workbook=").append(getExternalWorkbookNumber());sb.append("] ");}sb.append("sheet=").append(getSheetName());if (lastSheetName != null) {sb.append(...
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "sb", ".", "append", "(", "getClass", "(", ")", ".", "getName", "(", ")", ")", ";", "sb", ".", "append", "(", "\" [\"", ")", ";", "if"...
public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(this.GetType().Name);sb.Append(" [");if (externalWorkbookNumber >= 0){sb.Append(" [");sb.Append("workbook=").Append(ExternalWorkbookNumber);sb.Append("] ");}sb.Append("sheet=").Append(SheetName);if (lastSheetName != null){sb.Append(" : "...
train
false
7,346
@Override public int size() {return map.size();}
[ "@", "Override", "public", "int", "size", "(", ")", "{", "return", "map", ".", "size", "(", ")", ";", "}" ]
public override int size(){return this._enclosing._size;}
train
false
7,347
public DeleteNamespaceRequest() {super("cr", "2016-06-07", "DeleteNamespace", "cr");setUriPattern("/namespace/[Namespace]");setMethod(MethodType.DELETE);}
[ "public", "DeleteNamespaceRequest", "(", ")", "{", "super", "(", "\"cr\"", ",", "\"2016-06-07\"", ",", "\"DeleteNamespace\"", ",", "\"cr\"", ")", ";", "setUriPattern", "(", "\"/namespace/[Namespace]\"", ")", ";", "setMethod", "(", "MethodType", ".", "DELETE", ")",...
public DeleteNamespaceRequest(): base("cr", "2016-06-07", "DeleteNamespace", "cr", "openAPI"){UriPattern = "/namespace/[Namespace]";Method = MethodType.DELETE;}
train
false
7,348
public GeoRestriction(GeoRestrictionType restrictionType) {setRestrictionType(restrictionType.toString());}
[ "public", "GeoRestriction", "(", "GeoRestrictionType", "restrictionType", ")", "{", "setRestrictionType", "(", "restrictionType", ".", "toString", "(", ")", ")", ";", "}" ]
public GeoRestriction(GeoRestrictionType restrictionType){_restrictionType = restrictionType;}
train
false
7,349
public RecognizeEntityRequest() {super("visionai-poc", "2020-04-08", "RecognizeEntity");setMethod(MethodType.POST);}
[ "public", "RecognizeEntityRequest", "(", ")", "{", "super", "(", "\"visionai-poc\"", ",", "\"2020-04-08\"", ",", "\"RecognizeEntity\"", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ")", ";", "}" ]
public RecognizeEntityRequest(): base("visionai-poc", "2020-04-08", "RecognizeEntity"){Method = MethodType.POST;}
train
false
7,351
public SendMessageRequest() {super("OnsMqtt", "2019-12-11", "SendMessage", "onsmqtt");setMethod(MethodType.POST);}
[ "public", "SendMessageRequest", "(", ")", "{", "super", "(", "\"OnsMqtt\"", ",", "\"2019-12-11\"", ",", "\"SendMessage\"", ",", "\"onsmqtt\"", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ")", ";", "}" ]
public SendMessageRequest(): base("OnsMqtt", "2019-12-11", "SendMessage", "onsmqtt", "openAPI"){Method = MethodType.POST;}
train
false
7,352
public SelectRequest(String selectExpression) {setSelectExpression(selectExpression);}
[ "public", "SelectRequest", "(", "String", "selectExpression", ")", "{", "setSelectExpression", "(", "selectExpression", ")", ";", "}" ]
public SelectRequest(string selectExpression){_selectExpression = selectExpression;}
train
false
7,353
public TopMarginRecord clone() {return copy();}
[ "public", "TopMarginRecord", "clone", "(", ")", "{", "return", "copy", "(", ")", ";", "}" ]
public override Object Clone(){TopMarginRecord rec = new TopMarginRecord();rec.field_1_margin = this.field_1_margin;return rec;}
train
false
7,354
public GetStaticIpsResult getStaticIps(GetStaticIpsRequest request) {request = beforeClientExecution(request);return executeGetStaticIps(request);}
[ "public", "GetStaticIpsResult", "getStaticIps", "(", "GetStaticIpsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetStaticIps", "(", "request", ")", ";", "}" ]
public virtual GetStaticIpsResponse GetStaticIps(GetStaticIpsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetStaticIpsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetStaticIpsResponseUnmarshaller.Instance;return Invoke<GetStaticIpsResponse>(request, options);}
train
true
7,355
public String toString() {final StringBuilder b = new StringBuilder();final int sectionCount = getSectionCount();b.append(getClass().getName());b.append('[');b.append("byteOrder: ");b.append(getByteOrder());b.append(", classID: ");b.append(getClassID());b.append(", format: ");b.append(getFormat());b.append(", OSVersion...
[ "public", "String", "toString", "(", ")", "{", "final", "StringBuilder", "b", "=", "new", "StringBuilder", "(", ")", ";", "final", "int", "sectionCount", "=", "getSectionCount", "(", ")", ";", "b", ".", "append", "(", "getClass", "(", ")", ".", "getName"...
public override String ToString(){StringBuilder b = new StringBuilder();int sectionCount = SectionCount;b.Append(GetType().Name);b.Append('[');b.Append("byteOrder: ");b.Append(ByteOrder);b.Append(", classID: ");b.Append(ClassID);b.Append(", format: ");b.Append(Format);b.Append(", OSVersion: ");b.Append(OSVersion);b.App...
train
false
7,356
public int stem(char s[], int len) {if (len < 4) return len;final int origLen = len;len = rule0(s, len);len = rule1(s, len);len = rule2(s, len);len = rule3(s, len);len = rule4(s, len);len = rule5(s, len);len = rule6(s, len);len = rule7(s, len);len = rule8(s, len);len = rule9(s, len);len = rule10(s, len);len = rule11(s,...
[ "public", "int", "stem", "(", "char", "s", "[", "]", ",", "int", "len", ")", "{", "if", "(", "len", "<", "4", ")", "return", "len", ";", "final", "int", "origLen", "=", "len", ";", "len", "=", "rule0", "(", "s", ",", "len", ")", ";", "len", ...
public virtual int Stem(char[] s, int len){if (len < 4) {return len;}int origLen = len;len = Rule0(s, len);len = Rule1(s, len);len = Rule2(s, len);len = Rule3(s, len);len = Rule4(s, len);len = Rule5(s, len);len = Rule6(s, len);len = Rule7(s, len);len = Rule8(s, len);len = Rule9(s, len);len = Rule10(s, len);len = Rule11...
train
false
7,357
public CreateStreamingURLResult createStreamingURL(CreateStreamingURLRequest request) {request = beforeClientExecution(request);return executeCreateStreamingURL(request);}
[ "public", "CreateStreamingURLResult", "createStreamingURL", "(", "CreateStreamingURLRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateStreamingURL", "(", "request", ")", ";", "}" ]
public virtual CreateStreamingURLResponse CreateStreamingURL(CreateStreamingURLRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStreamingURLRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStreamingURLResponseUnmarshaller.Instance;return Invoke<CreateStreamingURLRespon...
train
true
7,358
public IBSimilarity(Distribution distribution,Lambda lambda,Normalization normalization) {this.distribution = distribution;this.lambda = lambda;this.normalization = normalization;}
[ "public", "IBSimilarity", "(", "Distribution", "distribution", ",", "Lambda", "lambda", ",", "Normalization", "normalization", ")", "{", "this", ".", "distribution", "=", "distribution", ";", "this", ".", "lambda", "=", "lambda", ";", "this", ".", "normalization...
public IBSimilarity(Distribution distribution, Lambda lambda, Normalization normalization){this.m_distribution = distribution;this.m_lambda = lambda;this.m_normalization = normalization;}
train
false
7,359
public GetBatchPredictionResult getBatchPrediction(GetBatchPredictionRequest request) {request = beforeClientExecution(request);return executeGetBatchPrediction(request);}
[ "public", "GetBatchPredictionResult", "getBatchPrediction", "(", "GetBatchPredictionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetBatchPrediction", "(", "request", ")", ";", "}" ]
public virtual GetBatchPredictionResponse GetBatchPrediction(GetBatchPredictionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBatchPredictionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBatchPredictionResponseUnmarshaller.Instance;return Invoke<GetBatchPredictionRespon...
train
true
7,360
public StartInstancesResult startInstances(StartInstancesRequest request) {request = beforeClientExecution(request);return executeStartInstances(request);}
[ "public", "StartInstancesResult", "startInstances", "(", "StartInstancesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStartInstances", "(", "request", ")", ";", "}" ]
public virtual StartInstancesResponse StartInstances(StartInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = StartInstancesResponseUnmarshaller.Instance;return Invoke<StartInstancesResponse>(request, options);}
train
true
7,361
public DescribeLoadBalancerAttributesResult describeLoadBalancerAttributes(DescribeLoadBalancerAttributesRequest request) {request = beforeClientExecution(request);return executeDescribeLoadBalancerAttributes(request);}
[ "public", "DescribeLoadBalancerAttributesResult", "describeLoadBalancerAttributes", "(", "DescribeLoadBalancerAttributesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeLoadBalancerAttributes", "(", "reque...
public virtual DescribeLoadBalancerAttributesResponse DescribeLoadBalancerAttributes(DescribeLoadBalancerAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoadBalancerAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoadBalancerAttributesResponse...
train
true
7,362
public Filter(int type, long size, InputStream in) {this.type = type;this.size = size;this.in = in;}
[ "public", "Filter", "(", "int", "type", ",", "long", "size", ",", "InputStream", "in", ")", "{", "this", ".", "type", "=", "type", ";", "this", ".", "size", "=", "size", ";", "this", ".", "in", "=", "in", ";", "}" ]
public Filter(int type, long size, InputStream @in){this.type = type;this.size = size;this.@in = @in;}
train
false
7,363
public String getBaseForm() {return dictionary.getBaseForm(wordId, surfaceForm, offset, length);}
[ "public", "String", "getBaseForm", "(", ")", "{", "return", "dictionary", ".", "getBaseForm", "(", "wordId", ",", "surfaceForm", ",", "offset", ",", "length", ")", ";", "}" ]
public virtual string GetBaseForm(){return dictionary.GetBaseForm(wordId, surfaceForm, offset, length);}
train
false
7,364
public Query makeLuceneQueryNoBoost(BasicQueryFactory qf) {if (fieldNames.size() == 1) { return q.makeLuceneQueryFieldNoBoost(fieldNames.get(0), qf);} else { List<SrndQuery> queries = new ArrayList<>();Iterator<String> fni = getFieldNames().listIterator();SrndQuery qc;while (fni.hasNext()) {qc = q.clone();queries.add( ...
[ "public", "Query", "makeLuceneQueryNoBoost", "(", "BasicQueryFactory", "qf", ")", "{", "if", "(", "fieldNames", ".", "size", "(", ")", "==", "1", ")", "{", "return", "q", ".", "makeLuceneQueryFieldNoBoost", "(", "fieldNames", ".", "get", "(", "0", ")", ","...
public virtual Search.Query MakeLuceneQueryNoBoost(BasicQueryFactory qf){if (fieldNames.Count == 1){ return q.MakeLuceneQueryFieldNoBoost(fieldNames.FirstOrDefault(), qf);}else{ List<SrndQuery> queries = new List<SrndQuery>();foreach (var fieldName in fieldNames){var qc = (SrndQuery)q.Clone();queries.Add(new FieldsQuer...
train
false
7,365
public SetVisibleToAllUsersResult setVisibleToAllUsers(SetVisibleToAllUsersRequest request) {request = beforeClientExecution(request);return executeSetVisibleToAllUsers(request);}
[ "public", "SetVisibleToAllUsersResult", "setVisibleToAllUsers", "(", "SetVisibleToAllUsersRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeSetVisibleToAllUsers", "(", "request", ")", ";", "}" ]
public virtual SetVisibleToAllUsersResponse SetVisibleToAllUsers(SetVisibleToAllUsersRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetVisibleToAllUsersRequestMarshaller.Instance;options.ResponseUnmarshaller = SetVisibleToAllUsersResponseUnmarshaller.Instance;return Invoke<SetVisibleToAl...
train
true
7,366
public GetBotResult getBot(GetBotRequest request) {request = beforeClientExecution(request);return executeGetBot(request);}
[ "public", "GetBotResult", "getBot", "(", "GetBotRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetBot", "(", "request", ")", ";", "}" ]
public virtual GetBotResponse GetBot(GetBotRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBotRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBotResponseUnmarshaller.Instance;return Invoke<GetBotResponse>(request, options);}
train
true
7,367
public UpdateApnsSandboxChannelResult updateApnsSandboxChannel(UpdateApnsSandboxChannelRequest request) {request = beforeClientExecution(request);return executeUpdateApnsSandboxChannel(request);}
[ "public", "UpdateApnsSandboxChannelResult", "updateApnsSandboxChannel", "(", "UpdateApnsSandboxChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateApnsSandboxChannel", "(", "request", ")", ";", "}"...
public virtual UpdateApnsSandboxChannelResponse UpdateApnsSandboxChannel(UpdateApnsSandboxChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApnsSandboxChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApnsSandboxChannelResponseUnmarshaller.Instance;return I...
train
true
7,368
public CreateRouteResult createRoute(CreateRouteRequest request) {request = beforeClientExecution(request);return executeCreateRoute(request);}
[ "public", "CreateRouteResult", "createRoute", "(", "CreateRouteRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateRoute", "(", "request", ")", ";", "}" ]
public virtual CreateRouteResponse CreateRoute(CreateRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRouteResponseUnmarshaller.Instance;return Invoke<CreateRouteResponse>(request, options);}
train
true
7,369
public FreeRefFunction findFunction(String name) {FreeRefFunction func = super.findFunction(name);if (func != null) {int idx = getFunctionIndex(name);_funcMap.put(idx, name);}return func;}
[ "public", "FreeRefFunction", "findFunction", "(", "String", "name", ")", "{", "FreeRefFunction", "func", "=", "super", ".", "findFunction", "(", "name", ")", ";", "if", "(", "func", "!=", "null", ")", "{", "int", "idx", "=", "getFunctionIndex", "(", "name"...
public override FreeRefFunction FindFunction(String name){FreeRefFunction func = base.FindFunction(name);if (func != null){int idx = GetFunctionIndex(name);_funcMap[idx] = name;}return func;}
train
false
7,370
public boolean atMinValue() {return value == minValue;}
[ "public", "boolean", "atMinValue", "(", ")", "{", "return", "value", "==", "minValue", ";", "}" ]
public virtual bool AtMinValue(){return value == minValue;}
train
false
7,371
public TerminateInstanceInAutoScalingGroupResult terminateInstanceInAutoScalingGroup(TerminateInstanceInAutoScalingGroupRequest request) {request = beforeClientExecution(request);return executeTerminateInstanceInAutoScalingGroup(request);}
[ "public", "TerminateInstanceInAutoScalingGroupResult", "terminateInstanceInAutoScalingGroup", "(", "TerminateInstanceInAutoScalingGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeTerminateInstanceInAutoScalingGro...
public virtual TerminateInstanceInAutoScalingGroupResponse TerminateInstanceInAutoScalingGroup(TerminateInstanceInAutoScalingGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = TerminateInstanceInAutoScalingGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = TerminateInstanceI...
train
true
7,372
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[DVAL]\n");buffer.append(" .options = ").append(getOptions()).append('\n');buffer.append(" .horizPos = ").append(getHorizontalPos()).append('\n');buffer.append(" .vertPos = ").append(getVerticalPos()).append('\n')...
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "buffer", ".", "append", "(", "\"[DVAL]\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .options = \"", ")", ".", "append", "(", ...
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[DVAL]\n");buffer.Append(" .options = ").Append(this.Options).Append('\n');buffer.Append(" .horizPos = ").Append(this.HorizontalPos).Append('\n');buffer.Append(" .vertPos = ").Append(this.VerticalPos).Appe...
train
false
7,373
public static Token newToken(int ofKind, String image){switch(ofKind){default : return new Token(ofKind, image);}}
[ "public", "static", "Token", "newToken", "(", "int", "ofKind", ",", "String", "image", ")", "{", "switch", "(", "ofKind", ")", "{", "default", ":", "return", "new", "Token", "(", "ofKind", ",", "image", ")", ";", "}", "}" ]
public static Token NewToken(int ofKind, string image){switch (ofKind){default: return new Token(ofKind, image);}}
train
false
7,374
public ATNConfig(ATNState state,int alt,PredictionContext context,SemanticContext semanticContext){this.state = state;this.alt = alt;this.context = context;this.semanticContext = semanticContext;}
[ "public", "ATNConfig", "(", "ATNState", "state", ",", "int", "alt", ",", "PredictionContext", "context", ",", "SemanticContext", "semanticContext", ")", "{", "this", ".", "state", "=", "state", ";", "this", ".", "alt", "=", "alt", ";", "this", ".", "contex...
public ATNConfig(ATNState state,int alt,PredictionContext context,SemanticContext semanticContext){this.state = state;this.alt = alt;this.context = context;this.semanticContext = semanticContext;}
train
false
7,375
public DataValidationConstraint createFormulaListConstraint(String listFormula) {return DVConstraint.createFormulaListConstraint(listFormula);}
[ "public", "DataValidationConstraint", "createFormulaListConstraint", "(", "String", "listFormula", ")", "{", "return", "DVConstraint", ".", "createFormulaListConstraint", "(", "listFormula", ")", ";", "}" ]
public IDataValidationConstraint CreateFormulaListConstraint(String listFormula){return DVConstraint.CreateFormulaListConstraint(listFormula);}
train
false
7,376
public GlobalReplicationGroup failoverGlobalReplicationGroup(FailoverGlobalReplicationGroupRequest request) {request = beforeClientExecution(request);return executeFailoverGlobalReplicationGroup(request);}
[ "public", "GlobalReplicationGroup", "failoverGlobalReplicationGroup", "(", "FailoverGlobalReplicationGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeFailoverGlobalReplicationGroup", "(", "request", ")", ...
public virtual FailoverGlobalReplicationGroupResponse FailoverGlobalReplicationGroup(FailoverGlobalReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = FailoverGlobalReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = FailoverGlobalReplicationGroupResponse...
train
false
7,377
public BatchPutAttributesResult batchPutAttributes(BatchPutAttributesRequest request) {request = beforeClientExecution(request);return executeBatchPutAttributes(request);}
[ "public", "BatchPutAttributesResult", "batchPutAttributes", "(", "BatchPutAttributesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeBatchPutAttributes", "(", "request", ")", ";", "}" ]
public virtual BatchPutAttributesResponse BatchPutAttributes(BatchPutAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchPutAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchPutAttributesResponseUnmarshaller.Instance;return Invoke<BatchPutAttributesRespon...
train
true
7,379
public int execute(StringBuilder buf) {return index;}
[ "public", "int", "execute", "(", "StringBuilder", "buf", ")", "{", "return", "index", ";", "}" ]
public virtual int Execute(StringBuilder buf){return index;}
train
false
7,380
public int remove(Object key) {boolean hashedOk;int index, next, hash;int result;Object object;index = next = findIndex(key, keys);if (keys[index] != key) {return -1;}result = values[index];int length = keys.length;while (true) {next = (next + 2) % length;object = keys[next];if (object == null) {break;}hash = getModulo...
[ "public", "int", "remove", "(", "Object", "key", ")", "{", "boolean", "hashedOk", ";", "int", "index", ",", "next", ",", "hash", ";", "int", "result", ";", "Object", "object", ";", "index", "=", "next", "=", "findIndex", "(", "key", ",", "keys", ")",...
public int remove(object key){bool hashedOk;int index;int next;int hash;int result;object @object;index = next = findIndex(key, keys);if (keys[index] != key){return -1;}result = values[index];int length = keys.Length;while (true){next = (next + 2) % length;@object = keys[next];if (@object == null){break;}hash = getModu...
train
true
7,381
public synchronized void setMaxMergesAndThreads(int maxMergeCount, int maxThreadCount) {if (maxMergeCount == AUTO_DETECT_MERGES_AND_THREADS && maxThreadCount == AUTO_DETECT_MERGES_AND_THREADS) {this.maxMergeCount = AUTO_DETECT_MERGES_AND_THREADS;this.maxThreadCount = AUTO_DETECT_MERGES_AND_THREADS;} else if (maxMergeCo...
[ "public", "synchronized", "void", "setMaxMergesAndThreads", "(", "int", "maxMergeCount", ",", "int", "maxThreadCount", ")", "{", "if", "(", "maxMergeCount", "==", "AUTO_DETECT_MERGES_AND_THREADS", "&&", "maxThreadCount", "==", "AUTO_DETECT_MERGES_AND_THREADS", ")", "{", ...
public virtual void SetMaxMergesAndThreads(int maxMergeCount, int maxThreadCount){if (maxThreadCount < 1){throw new System.ArgumentException("maxThreadCount should be at least 1");}if (maxMergeCount < 1){throw new System.ArgumentException("maxMergeCount should be at least 1");}if (maxThreadCount > maxMergeCount){throw ...
train
false
7,382
public final DoubleBuffer put(double[] src) {return put(src, 0, src.length);}
[ "public", "final", "DoubleBuffer", "put", "(", "double", "[", "]", "src", ")", "{", "return", "put", "(", "src", ",", "0", ",", "src", ".", "length", ")", ";", "}" ]
public java.nio.DoubleBuffer put(double[] src){return put(src, 0, src.Length);}
train
false
7,383
public final Collection<Ref> getRefs() {return advertisedRefs.values();}
[ "public", "final", "Collection", "<", "Ref", ">", "getRefs", "(", ")", "{", "return", "advertisedRefs", ".", "values", "(", ")", ";", "}" ]
public ICollection<Ref> GetRefs(){return advertisedRefs.Values;}
train
false
7,384
public DocFreqValueSource(String field, String val, String indexedField, BytesRef indexedBytes) {this.field = field;this.val = val;this.indexedField = indexedField;this.indexedBytes = indexedBytes;}
[ "public", "DocFreqValueSource", "(", "String", "field", ",", "String", "val", ",", "String", "indexedField", ",", "BytesRef", "indexedBytes", ")", "{", "this", ".", "field", "=", "field", ";", "this", ".", "val", "=", "val", ";", "this", ".", "indexedField...
public DocFreqValueSource(string field, string val, string indexedField, BytesRef indexedBytes){this.m_field = field;this.m_val = val;this.m_indexedField = indexedField;this.m_indexedBytes = indexedBytes;}
train
false
7,385
public String getSegmentsFileName() {return IndexFileNames.fileNameFromGeneration(IndexFileNames.SEGMENTS,"",lastGeneration);}
[ "public", "String", "getSegmentsFileName", "(", ")", "{", "return", "IndexFileNames", ".", "fileNameFromGeneration", "(", "IndexFileNames", ".", "SEGMENTS", ",", "\"\"", ",", "lastGeneration", ")", ";", "}" ]
public string GetSegmentsFileName(){return IndexFileNames.FileNameFromGeneration(IndexFileNames.SEGMENTS, "", lastGeneration);}
train
false
7,386
public Listener(String protocol, Integer loadBalancerPort, Integer instancePort) {setProtocol(protocol);setLoadBalancerPort(loadBalancerPort);setInstancePort(instancePort);}
[ "public", "Listener", "(", "String", "protocol", ",", "Integer", "loadBalancerPort", ",", "Integer", "instancePort", ")", "{", "setProtocol", "(", "protocol", ")", ";", "setLoadBalancerPort", "(", "loadBalancerPort", ")", ";", "setInstancePort", "(", "instancePort",...
public Listener(string protocol, int loadBalancerPort, int instancePort){_protocol = protocol;_loadBalancerPort = loadBalancerPort;_instancePort = instancePort;}
train
false
7,387
public GetCurrentUserResult getCurrentUser(GetCurrentUserRequest request) {request = beforeClientExecution(request);return executeGetCurrentUser(request);}
[ "public", "GetCurrentUserResult", "getCurrentUser", "(", "GetCurrentUserRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetCurrentUser", "(", "request", ")", ";", "}" ]
public virtual GetCurrentUserResponse GetCurrentUser(GetCurrentUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCurrentUserRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCurrentUserResponseUnmarshaller.Instance;return Invoke<GetCurrentUserResponse>(request, options);}
train
true
7,388
public String toString() {return "ObjectDirectory[" + getDirectory() + "]"; }
[ "public", "String", "toString", "(", ")", "{", "return", "\"ObjectDirectory[\"", "+", "getDirectory", "(", ")", "+", "\"]\"", ";", "}" ]
public override string ToString(){return "ObjectDirectory[" + GetDirectory() + "]";}
train
false
7,389
public IllegalFormatWidthException(int w) {this.w = w;}
[ "public", "IllegalFormatWidthException", "(", "int", "w", ")", "{", "this", ".", "w", "=", "w", ";", "}" ]
public IllegalFormatWidthException(int w){this.w = w;}
train
false
7,390
public String toToken() {return this.token;}
[ "public", "String", "toToken", "(", ")", "{", "return", "this", ".", "token", ";", "}" ]
public virtual string ToToken(){return this.token;}
train
false
7,391
public UpdatePhoneNumberResult updatePhoneNumber(UpdatePhoneNumberRequest request) {request = beforeClientExecution(request);return executeUpdatePhoneNumber(request);}
[ "public", "UpdatePhoneNumberResult", "updatePhoneNumber", "(", "UpdatePhoneNumberRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdatePhoneNumber", "(", "request", ")", ";", "}" ]
public virtual UpdatePhoneNumberResponse UpdatePhoneNumber(UpdatePhoneNumberRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePhoneNumberRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePhoneNumberResponseUnmarshaller.Instance;return Invoke<UpdatePhoneNumberResponse>(re...
train
true
7,392
public final IndexableField getField(String name) {for (IndexableField field : fields) {if (field.name().equals(name)) {return field;}}return null;}
[ "public", "final", "IndexableField", "getField", "(", "String", "name", ")", "{", "for", "(", "IndexableField", "field", ":", "fields", ")", "{", "if", "(", "field", ".", "name", "(", ")", ".", "equals", "(", "name", ")", ")", "{", "return", "field", ...
public IIndexableField GetField(string name){foreach (IIndexableField field in fields){if (field.Name.Equals(name, StringComparison.Ordinal)){return field;}}return null;}
train
false
7,393
public DisableDomainTransferLockResult disableDomainTransferLock(DisableDomainTransferLockRequest request) {request = beforeClientExecution(request);return executeDisableDomainTransferLock(request);}
[ "public", "DisableDomainTransferLockResult", "disableDomainTransferLock", "(", "DisableDomainTransferLockRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDisableDomainTransferLock", "(", "request", ")", ";", ...
public virtual DisableDomainTransferLockResponse DisableDomainTransferLock(DisableDomainTransferLockRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableDomainTransferLockRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableDomainTransferLockResponseUnmarshaller.Instance;ret...
train
true
7,394
public PrintHeadersRecord clone() {return copy();}
[ "public", "PrintHeadersRecord", "clone", "(", ")", "{", "return", "copy", "(", ")", ";", "}" ]
public override Object Clone(){PrintHeadersRecord rec = new PrintHeadersRecord();rec.field_1_print_headers = field_1_print_headers;return rec;}
train
false
7,395
public UpdateDataSourceResult updateDataSource(UpdateDataSourceRequest request) {request = beforeClientExecution(request);return executeUpdateDataSource(request);}
[ "public", "UpdateDataSourceResult", "updateDataSource", "(", "UpdateDataSourceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateDataSource", "(", "request", ")", ";", "}" ]
public virtual UpdateDataSourceResponse UpdateDataSource(UpdateDataSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDataSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDataSourceResponseUnmarshaller.Instance;return Invoke<UpdateDataSourceResponse>(request,...
train
true
7,396
public int popMode() {if ( _modeStack.isEmpty() ) throw new EmptyStackException();if ( LexerATNSimulator.debug ) System.out.println("popMode back to "+ _modeStack.peek());mode( _modeStack.pop() );return _mode;}
[ "public", "int", "popMode", "(", ")", "{", "if", "(", "_modeStack", ".", "isEmpty", "(", ")", ")", "throw", "new", "EmptyStackException", "(", ")", ";", "if", "(", "LexerATNSimulator", ".", "debug", ")", "System", ".", "out", ".", "println", "(", "\"po...
public virtual int PopMode(){if (_modeStack.Count == 0){throw new InvalidOperationException();}int mode = _modeStack.Pop();Mode(mode);return _mode;}
train
false
7,397
public ExternalSheet getExternalSheet(int externSheetIndex) {ExternalSheet sheet = _iBook.getExternalSheet(externSheetIndex);if (sheet == null) {int localSheetIndex = convertFromExternSheetIndex(externSheetIndex);if (localSheetIndex == -1) {return null;}if (localSheetIndex == -2) {return null;}String sheetName = getShe...
[ "public", "ExternalSheet", "getExternalSheet", "(", "int", "externSheetIndex", ")", "{", "ExternalSheet", "sheet", "=", "_iBook", ".", "getExternalSheet", "(", "externSheetIndex", ")", ";", "if", "(", "sheet", "==", "null", ")", "{", "int", "localSheetIndex", "=...
public ExternalSheet GetExternalSheet(int externSheetIndex){ExternalSheet sheet = _iBook.GetExternalSheet(externSheetIndex);if (sheet == null){int localSheetIndex = ConvertFromExternSheetIndex(externSheetIndex);if (localSheetIndex == -1){return null;}if (localSheetIndex == -2){return null;}String sheetName = GetSheetNa...
train
false
7,398
public static NoteMap newEmptyMap() {NoteMap r = new NoteMap(null );r.root = new LeafBucket(0);return r;}
[ "public", "static", "NoteMap", "newEmptyMap", "(", ")", "{", "NoteMap", "r", "=", "new", "NoteMap", "(", "null", ")", ";", "r", ".", "root", "=", "new", "LeafBucket", "(", "0", ")", ";", "return", "r", ";", "}" ]
public static NGit.Notes.NoteMap NewEmptyMap(){NGit.Notes.NoteMap r = new NGit.Notes.NoteMap(null);r.root = new LeafBucket(0);return r;}
train
false
7,399
@Override public java.lang.Object[] toArray() {synchronized (mutex) {return c.toArray();}}
[ "@", "Override", "public", "java", ".", "lang", ".", "Object", "[", "]", "toArray", "(", ")", "{", "synchronized", "(", "mutex", ")", "{", "return", "c", ".", "toArray", "(", ")", ";", "}", "}" ]
public virtual object[] toArray(){lock (mutex){return c.toArray();}}
train
false
7,400
public TagCommand setObjectId(RevObject id) {this.id = id;return this;}
[ "public", "TagCommand", "setObjectId", "(", "RevObject", "id", ")", "{", "this", ".", "id", "=", "id", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.TagCommand SetObjectId(RevObject id){this.id = id;return this;}
train
false
7,401
public static void clear() {cache.clearAll();}
[ "public", "static", "void", "clear", "(", ")", "{", "cache", ".", "clearAll", "(", ")", ";", "}" ]
public static void Clear(){cache.ClearAll();}
train
false
7,402
public final int prefixCompare(int[] bs, int p) {int cmp;cmp = NB.compareUInt32(w1, mask(1, bs[p]));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w2, mask(2, bs[p + 1]));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w3, mask(3, bs[p + 2]));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w4, mask(4, bs[p + 3]));if (cmp...
[ "public", "final", "int", "prefixCompare", "(", "int", "[", "]", "bs", ",", "int", "p", ")", "{", "int", "cmp", ";", "cmp", "=", "NB", ".", "compareUInt32", "(", "w1", ",", "mask", "(", "1", ",", "bs", "[", "p", "]", ")", ")", ";", "if", "(",...
public int PrefixCompare(int[] bs, int p){int cmp;cmp = NB.CompareUInt32(w1, Mask(1, bs[p]));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w2, Mask(2, bs[p + 1]));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w3, Mask(3, bs[p + 2]));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w4, Mask(4, bs[p + 3]));if (cmp ...
train
false
7,403
public LongBuffer put(long[] src, int srcOffset, int longCount) {byteBuffer.limit(limit * SizeOf.LONG);byteBuffer.position(position * SizeOf.LONG);if (byteBuffer instanceof ReadWriteDirectByteBuffer) {((ReadWriteDirectByteBuffer) byteBuffer).put(src, srcOffset, longCount);} else {((ReadWriteHeapByteBuffer) byteBuffer)....
[ "public", "LongBuffer", "put", "(", "long", "[", "]", "src", ",", "int", "srcOffset", ",", "int", "longCount", ")", "{", "byteBuffer", ".", "limit", "(", "limit", "*", "SizeOf", ".", "LONG", ")", ";", "byteBuffer", ".", "position", "(", "position", "*"...
public override java.nio.LongBuffer put(long[] src, int srcOffset, int longCount){byteBuffer.limit(_limit * libcore.io.SizeOf.LONG);byteBuffer.position(_position * libcore.io.SizeOf.LONG);if (byteBuffer is java.nio.ReadWriteDirectByteBuffer){((java.nio.ReadWriteDirectByteBuffer)byteBuffer).put(src, srcOffset, longCount...
train
false
7,404
public MoPenDeleteGroupRequest() {super("MoPen", "2018-02-11", "MoPenDeleteGroup", "mopen");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
[ "public", "MoPenDeleteGroupRequest", "(", ")", "{", "super", "(", "\"MoPen\"", ",", "\"2018-02-11\"", ",", "\"MoPenDeleteGroup\"", ",", "\"mopen\"", ")", ";", "setProtocol", "(", "ProtocolType", ".", "HTTPS", ")", ";", "setMethod", "(", "MethodType", ".", "POST"...
public MoPenDeleteGroupRequest(): base("MoPen", "2018-02-11", "MoPenDeleteGroup", "mopen", "openAPI"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
train
false
7,405
public ApplyResult addUpdatedFile(File f) {updatedFiles.add(f);return this;}
[ "public", "ApplyResult", "addUpdatedFile", "(", "File", "f", ")", "{", "updatedFiles", ".", "add", "(", "f", ")", ";", "return", "this", ";", "}" ]
public virtual ApplyResult AddUpdatedFile(FilePath f){updatedFiles.AddItem(f);return this;}
train
false
7,406
public T insertWithOverflow(T element) {if (size < maxSize) {add(element);return null;} else if (size > 0 && !lessThan(element, heap[1])) {T ret = heap[1];heap[1] = element;updateTop();return ret;} else {return element;}}
[ "public", "T", "insertWithOverflow", "(", "T", "element", ")", "{", "if", "(", "size", "<", "maxSize", ")", "{", "add", "(", "element", ")", ";", "return", "null", ";", "}", "else", "if", "(", "size", ">", "0", "&&", "!", "lessThan", "(", "element"...
public virtual T InsertWithOverflow(T element){if (size < maxSize){Add(element);return default(T);}else if (size > 0 && !LessThan(element, heap[1])){T ret = heap[1];heap[1] = element;UpdateTop();return ret;}else{return element;}}
train
true
7,408
public UploadDocumentsResult uploadDocuments(UploadDocumentsRequest request) {request = beforeClientExecution(request);return executeUploadDocuments(request);}
[ "public", "UploadDocumentsResult", "uploadDocuments", "(", "UploadDocumentsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUploadDocuments", "(", "request", ")", ";", "}" ]
public virtual UploadDocumentsResponse UploadDocuments(UploadDocumentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UploadDocumentsRequestMarshaller.Instance;options.ResponseUnmarshaller = UploadDocumentsResponseUnmarshaller.Instance;return Invoke<UploadDocumentsResponse>(request, optio...
train
true
7,409
public String getAccessKeyId() {return legacyCredential.getAccessKeyId();}
[ "public", "String", "getAccessKeyId", "(", ")", "{", "return", "legacyCredential", ".", "getAccessKeyId", "(", ")", ";", "}" ]
public string GetAccessKeyId(){return legacyCredential.AccessKeyId;}
train
false
7,410
public static String toHex(String value) {return (value == null || value.length() == 0)? "[]": toHex(value.getBytes(LocaleUtil.CHARSET_1252));}
[ "public", "static", "String", "toHex", "(", "String", "value", ")", "{", "return", "(", "value", "==", "null", "||", "value", ".", "length", "(", ")", "==", "0", ")", "?", "\"[]\"", ":", "toHex", "(", "value", ".", "getBytes", "(", "LocaleUtil", ".",...
public static string ToHex(short value){return ToHex((long)value, 4);}
train
false
7,411
public String getText(Token start, Token stop) {if ( start!=null && stop!=null ) {return getText(Interval.of(start.getTokenIndex(), stop.getTokenIndex()));}return "";}
[ "public", "String", "getText", "(", "Token", "start", ",", "Token", "stop", ")", "{", "if", "(", "start", "!=", "null", "&&", "stop", "!=", "null", ")", "{", "return", "getText", "(", "Interval", ".", "of", "(", "start", ".", "getTokenIndex", "(", ")...
public virtual string GetText(IToken start, IToken stop){if (start != null && stop != null){return GetText(Interval.Of(start.TokenIndex, stop.TokenIndex));}return string.Empty;}
train
false
7,412
public static ValueVector createColumnVector(TwoDEval tableArray, int relativeColumnIndex) {return new ColumnVector(tableArray, relativeColumnIndex);}
[ "public", "static", "ValueVector", "createColumnVector", "(", "TwoDEval", "tableArray", ",", "int", "relativeColumnIndex", ")", "{", "return", "new", "ColumnVector", "(", "tableArray", ",", "relativeColumnIndex", ")", ";", "}" ]
public static ValueVector CreateColumnVector(TwoDEval tableArray, int relativeColumnIndex){return new ColumnVector((AreaEval)tableArray, relativeColumnIndex);}
train
false
7,413
public AcceptDomainTransferFromAnotherAwsAccountResult acceptDomainTransferFromAnotherAwsAccount(AcceptDomainTransferFromAnotherAwsAccountRequest request) {request = beforeClientExecution(request);return executeAcceptDomainTransferFromAnotherAwsAccount(request);}
[ "public", "AcceptDomainTransferFromAnotherAwsAccountResult", "acceptDomainTransferFromAnotherAwsAccount", "(", "AcceptDomainTransferFromAnotherAwsAccountRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAcceptDomainTra...
public virtual AcceptDomainTransferFromAnotherAwsAccountResponse AcceptDomainTransferFromAnotherAwsAccount(AcceptDomainTransferFromAnotherAwsAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptDomainTransferFromAnotherAwsAccountRequestMarshaller.Instance;options.ResponseUnmarshal...
train
false
7,414
public StartDeviceSyncResult startDeviceSync(StartDeviceSyncRequest request) {request = beforeClientExecution(request);return executeStartDeviceSync(request);}
[ "public", "StartDeviceSyncResult", "startDeviceSync", "(", "StartDeviceSyncRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStartDeviceSync", "(", "request", ")", ";", "}" ]
public virtual StartDeviceSyncResponse StartDeviceSync(StartDeviceSyncRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDeviceSyncRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDeviceSyncResponseUnmarshaller.Instance;return Invoke<StartDeviceSyncResponse>(request, optio...
train
true
7,415
@Override public boolean containsKey(Object key) {return isInBounds(key) && TreeMap.this.containsKey(key);}
[ "@", "Override", "public", "boolean", "containsKey", "(", "Object", "key", ")", "{", "return", "isInBounds", "(", "key", ")", "&&", "TreeMap", ".", "this", ".", "containsKey", "(", "key", ")", ";", "}" ]
public override bool containsKey(object key){return this.isInBounds(key) && this._enclosing.containsKey(key);}
train
false
7,416
public static int idealObjectArraySize(int need) {return idealByteArraySize(need * 4) / 4;}
[ "public", "static", "int", "idealObjectArraySize", "(", "int", "need", ")", "{", "return", "idealByteArraySize", "(", "need", "*", "4", ")", "/", "4", ";", "}" ]
public static int idealObjectArraySize(int need){return idealByteArraySize(need * 4) / 4;}
train
false
7,417
public DescribeWorkspacesResult describeWorkspaces() {return describeWorkspaces(new DescribeWorkspacesRequest());}
[ "public", "DescribeWorkspacesResult", "describeWorkspaces", "(", ")", "{", "return", "describeWorkspaces", "(", "new", "DescribeWorkspacesRequest", "(", ")", ")", ";", "}" ]
public virtual DescribeWorkspacesResponse DescribeWorkspaces(){var request = new DescribeWorkspacesRequest();return DescribeWorkspaces(request);}
train
false
7,418
@Override public Iterator<Entry<K, V>> iterator() {return new EntryIterator();}
[ "@", "Override", "public", "Iterator", "<", "Entry", "<", "K", ",", "V", ">", ">", "iterator", "(", ")", "{", "return", "new", "EntryIterator", "(", ")", ";", "}" ]
public override java.util.Iterator<java.util.MapClass.Entry<K, V>> iterator(){return new java.util.Hashtable<K, V>.EntryIterator(this._enclosing);}
train
false
7,419
public GlobalCluster removeFromGlobalCluster(RemoveFromGlobalClusterRequest request) {request = beforeClientExecution(request);return executeRemoveFromGlobalCluster(request);}
[ "public", "GlobalCluster", "removeFromGlobalCluster", "(", "RemoveFromGlobalClusterRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRemoveFromGlobalCluster", "(", "request", ")", ";", "}" ]
public virtual RemoveFromGlobalClusterResponse RemoveFromGlobalCluster(RemoveFromGlobalClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveFromGlobalClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveFromGlobalClusterResponseUnmarshaller.Instance;return Invoke...
train
true
7,420
public Map<String, MergeResult<? extends Sequence>> getMergeResults() {return mergeResults;}
[ "public", "Map", "<", "String", ",", "MergeResult", "<", "?", "extends", "Sequence", ">", ">", "getMergeResults", "(", ")", "{", "return", "mergeResults", ";", "}" ]
public virtual IDictionary<string, MergeResult<Sequence>> GetMergeResults(){return mergeResults;}
train
false
7,421
public static final int parseTimeZoneOffset(byte[] b, int ptr) {return parseTimeZoneOffset(b, ptr, null);}
[ "public", "static", "final", "int", "parseTimeZoneOffset", "(", "byte", "[", "]", "b", ",", "int", "ptr", ")", "{", "return", "parseTimeZoneOffset", "(", "b", ",", "ptr", ",", "null", ")", ";", "}" ]
public static int ParseTimeZoneOffset(byte[] b, int ptr){int v = ParseBase10(b, ptr, null);int tzMins = v % 100;int tzHours = v / 100;return tzHours * 60 + tzMins;}
train
false
7,422
public String toString() {synchronized (Hashtable.this) {return super.toString();}}
[ "public", "String", "toString", "(", ")", "{", "synchronized", "(", "Hashtable", ".", "this", ")", "{", "return", "super", ".", "toString", "(", ")", ";", "}", "}" ]
public override string ToString(){lock (this._enclosing){return base.ToString();}}
train
false
7,423
public void reset() throws IOException {in.reset();lineNumber = markedLineNumber;lastChar = markedLastChar;}
[ "public", "void", "reset", "(", ")", "throws", "IOException", "{", "in", ".", "reset", "(", ")", ";", "lineNumber", "=", "markedLineNumber", ";", "lastChar", "=", "markedLastChar", ";", "}" ]
public override void reset(){throw new System.NotImplementedException();}
train
false
7,424
public FS newInstance() {return new FS_Win32(this);}
[ "public", "FS", "newInstance", "(", ")", "{", "return", "new", "FS_Win32", "(", "this", ")", ";", "}" ]
public override FS NewInstance(){return new NGit.Util.FS_Win32(this);}
train
false
7,425
public byte[] toByteArray() {if (buf != null) {byte[] r = new byte[ptr];System.arraycopy(buf, 0, r, 0, ptr);return r;}try {return overflowBuffer.toByteArray();} catch (IOException err) {throw new RuntimeException(err);}}
[ "public", "byte", "[", "]", "toByteArray", "(", ")", "{", "if", "(", "buf", "!=", "null", ")", "{", "byte", "[", "]", "r", "=", "new", "byte", "[", "ptr", "]", ";", "System", ".", "arraycopy", "(", "buf", ",", "0", ",", "r", ",", "0", ",", ...
public virtual byte[] ToByteArray(){if (buf != null){byte[] r = new byte[ptr];System.Array.Copy(buf, 0, r, 0, ptr);return r;}try{return overflowBuffer.ToByteArray();}catch (IOException err){throw new RuntimeException(err);}}
train
false
7,426
public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx) {AreaI area = new OffsetArea(getFirstRow(), getFirstColumn(),relFirstRowIx, relLastRowIx, relFirstColIx, relLastColIx);return new LazyAreaEval(area, _evaluator);}
[ "public", "AreaEval", "offset", "(", "int", "relFirstRowIx", ",", "int", "relLastRowIx", ",", "int", "relFirstColIx", ",", "int", "relLastColIx", ")", "{", "AreaI", "area", "=", "new", "OffsetArea", "(", "getFirstRow", "(", ")", ",", "getFirstColumn", "(", "...
public override AreaEval Offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx){AreaI area = new OffsetArea(FirstRow, FirstColumn,relFirstRowIx, relLastRowIx, relFirstColIx, relLastColIx);return new LazyAreaEval(area, _evaluator);}
train
false
7,427
public TerminateJobFlowsResult terminateJobFlows(TerminateJobFlowsRequest request) {request = beforeClientExecution(request);return executeTerminateJobFlows(request);}
[ "public", "TerminateJobFlowsResult", "terminateJobFlows", "(", "TerminateJobFlowsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeTerminateJobFlows", "(", "request", ")", ";", "}" ]
public virtual TerminateJobFlowsResponse TerminateJobFlows(TerminateJobFlowsRequest request){var options = new InvokeOptions();options.RequestMarshaller = TerminateJobFlowsRequestMarshaller.Instance;options.ResponseUnmarshaller = TerminateJobFlowsResponseUnmarshaller.Instance;return Invoke<TerminateJobFlowsResponse>(re...
train
true
7,428
public CreateTopicRequest(String name) {setName(name);}
[ "public", "CreateTopicRequest", "(", "String", "name", ")", "{", "setName", "(", "name", ")", ";", "}" ]
public CreateTopicRequest(string name){_name = name;}
train
false
7,429
public void freeBefore(int pos) {final int toFree = count - (nextPos - pos);assert toFree >= 0;assert toFree <= count;int index = nextWrite - count;if (index < 0) {index += positions.length;}for(int i=0;i<toFree;i++) {if (index == positions.length) {index = 0;}positions[index].reset();index++;}count -= toFree;}
[ "public", "void", "freeBefore", "(", "int", "pos", ")", "{", "final", "int", "toFree", "=", "count", "-", "(", "nextPos", "-", "pos", ")", ";", "assert", "toFree", ">=", "0", ";", "assert", "toFree", "<=", "count", ";", "int", "index", "=", "nextWrit...
public void FreeBefore(int pos){int toFree = count - (nextPos - pos);Debug.Assert(toFree >= 0);Debug.Assert(toFree <= count);int index = nextWrite - count;if (index < 0){index += positions.Length;}for (int i = 0; i < toFree; i++){if (index == positions.Length){index = 0;}positions[index].Reset();index++;}count -= toFre...
train
false