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 |
|---|---|---|---|---|---|
9,131
|
public PutScalingPolicyResult putScalingPolicy(PutScalingPolicyRequest request) {request = beforeClientExecution(request);return executePutScalingPolicy(request);}
|
[
"public",
"PutScalingPolicyResult",
"putScalingPolicy",
"(",
"PutScalingPolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutScalingPolicy",
"(",
"request",
")",
";",
"}"
] |
public virtual PutScalingPolicyResponse PutScalingPolicy(PutScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = PutScalingPolicyResponseUnmarshaller.Instance;return Invoke<PutScalingPolicyResponse>(request, options);}
|
train
| true
|
9,132
|
public KeywordRepeatFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
|
[
"public",
"KeywordRepeatFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown parameters: \"",
"+",
"args",
")",
";",
"}",
"}"
] |
public KeywordRepeatFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
train
| false
|
9,133
|
public void recycleByteBlocks(List<byte[]> blocks) {final byte[][] b = blocks.toArray(new byte[blocks.size()][]);recycleByteBlocks(b, 0, b.length);}
|
[
"public",
"void",
"recycleByteBlocks",
"(",
"List",
"<",
"byte",
"[",
"]",
">",
"blocks",
")",
"{",
"final",
"byte",
"[",
"]",
"[",
"]",
"b",
"=",
"blocks",
".",
"toArray",
"(",
"new",
"byte",
"[",
"blocks",
".",
"size",
"(",
")",
"]",
"[",
"]",
")",
";",
"recycleByteBlocks",
"(",
"b",
",",
"0",
",",
"b",
".",
"length",
")",
";",
"}"
] |
public virtual void RecycleByteBlocks(IList<byte[]> blocks){var b = blocks.ToArray();RecycleByteBlocks(b, 0, b.Length);}
|
train
| false
|
9,134
|
public List<Token> get(int start, int stop) {if ( start<0 || stop<0 ) return null;lazyInit();List<Token> subset = new ArrayList<Token>();if ( stop>=tokens.size() ) stop = tokens.size()-1;for (int i = start; i <= stop; i++) {Token t = tokens.get(i);if ( t.getType()==Token.EOF ) break;subset.add(t);}return subset;}
|
[
"public",
"List",
"<",
"Token",
">",
"get",
"(",
"int",
"start",
",",
"int",
"stop",
")",
"{",
"if",
"(",
"start",
"<",
"0",
"||",
"stop",
"<",
"0",
")",
"return",
"null",
";",
"lazyInit",
"(",
")",
";",
"List",
"<",
"Token",
">",
"subset",
"=",
"new",
"ArrayList",
"<",
"Token",
">",
"(",
")",
";",
"if",
"(",
"stop",
">=",
"tokens",
".",
"size",
"(",
")",
")",
"stop",
"=",
"tokens",
".",
"size",
"(",
")",
"-",
"1",
";",
"for",
"(",
"int",
"i",
"=",
"start",
";",
"i",
"<=",
"stop",
";",
"i",
"++",
")",
"{",
"Token",
"t",
"=",
"tokens",
".",
"get",
"(",
"i",
")",
";",
"if",
"(",
"t",
".",
"getType",
"(",
")",
"==",
"Token",
".",
"EOF",
")",
"break",
";",
"subset",
".",
"add",
"(",
"t",
")",
";",
"}",
"return",
"subset",
";",
"}"
] |
public virtual IList<IToken> Get(int start, int stop){if (start < 0 || stop < 0){return null;}LazyInit();IList<IToken> subset = new List<IToken>();if (stop >= tokens.Count){stop = tokens.Count - 1;}for (int i = start; i <= stop; i++){IToken t = tokens[i];if (t.Type == TokenConstants.EOF){break;}subset.Add(t);}return subset;}
|
train
| false
|
9,135
|
public String toString() {return tokenName + ":" + type;}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"tokenName",
"+",
"\":\"",
"+",
"type",
";",
"}"
] |
public override string ToString(){return tokenName + ":" + Type;}
|
train
| false
|
9,136
|
public static Automaton build(Collection<BytesRef> input) {final DaciukMihovAutomatonBuilder builder = new DaciukMihovAutomatonBuilder();char[] chars = new char[0];CharsRef ref = new CharsRef();for (BytesRef b : input) {chars = ArrayUtil.grow(chars, b.length);final int len = UnicodeUtil.UTF8toUTF16(b, chars);ref.chars = chars;ref.length = len;builder.add(ref);}Automaton.Builder a = new Automaton.Builder();convert(a,builder.complete(),new IdentityHashMap<State,Integer>());return a.finish();}
|
[
"public",
"static",
"Automaton",
"build",
"(",
"Collection",
"<",
"BytesRef",
">",
"input",
")",
"{",
"final",
"DaciukMihovAutomatonBuilder",
"builder",
"=",
"new",
"DaciukMihovAutomatonBuilder",
"(",
")",
";",
"char",
"[",
"]",
"chars",
"=",
"new",
"char",
"[",
"0",
"]",
";",
"CharsRef",
"ref",
"=",
"new",
"CharsRef",
"(",
")",
";",
"for",
"(",
"BytesRef",
"b",
":",
"input",
")",
"{",
"chars",
"=",
"ArrayUtil",
".",
"grow",
"(",
"chars",
",",
"b",
".",
"length",
")",
";",
"final",
"int",
"len",
"=",
"UnicodeUtil",
".",
"UTF8toUTF16",
"(",
"b",
",",
"chars",
")",
";",
"ref",
".",
"chars",
"=",
"chars",
";",
"ref",
".",
"length",
"=",
"len",
";",
"builder",
".",
"add",
"(",
"ref",
")",
";",
"}",
"Automaton",
".",
"Builder",
"a",
"=",
"new",
"Automaton",
".",
"Builder",
"(",
")",
";",
"convert",
"(",
"a",
",",
"builder",
".",
"complete",
"(",
")",
",",
"new",
"IdentityHashMap",
"<",
"State",
",",
"Integer",
">",
"(",
")",
")",
";",
"return",
"a",
".",
"finish",
"(",
")",
";",
"}"
] |
public static Automaton Build(ICollection<BytesRef> input){DaciukMihovAutomatonBuilder builder = new DaciukMihovAutomatonBuilder();CharsRef scratch = new CharsRef();foreach (BytesRef b in input){UnicodeUtil.UTF8toUTF16(b, scratch);builder.Add(scratch);}return new Automaton{initial = Convert(builder.Complete(), new JCG.Dictionary<State, Lucene.Net.Util.Automaton.State>(IdentityEqualityComparer<State>.Default)),deterministic = true};}
|
train
| false
|
9,137
|
public Row merge(Row master, Row existing) {Iterator<Character> i = master.cells.keySet().iterator();Row n = new Row();for (; i.hasNext();) {Character ch = i.next();Cell a = master.cells.get(ch);Cell b = existing.cells.get(ch);Cell s = (b == null) ? new Cell(a) : merge(a, b);if (s == null) {return null;}n.cells.put(ch, s);}i = existing.cells.keySet().iterator();for (; i.hasNext();) {Character ch = i.next();if (master.at(ch) != null) {continue;}n.cells.put(ch, existing.at(ch));}return n;}
|
[
"public",
"Row",
"merge",
"(",
"Row",
"master",
",",
"Row",
"existing",
")",
"{",
"Iterator",
"<",
"Character",
">",
"i",
"=",
"master",
".",
"cells",
".",
"keySet",
"(",
")",
".",
"iterator",
"(",
")",
";",
"Row",
"n",
"=",
"new",
"Row",
"(",
")",
";",
"for",
"(",
";",
"i",
".",
"hasNext",
"(",
")",
";",
")",
"{",
"Character",
"ch",
"=",
"i",
".",
"next",
"(",
")",
";",
"Cell",
"a",
"=",
"master",
".",
"cells",
".",
"get",
"(",
"ch",
")",
";",
"Cell",
"b",
"=",
"existing",
".",
"cells",
".",
"get",
"(",
"ch",
")",
";",
"Cell",
"s",
"=",
"(",
"b",
"==",
"null",
")",
"?",
"new",
"Cell",
"(",
"a",
")",
":",
"merge",
"(",
"a",
",",
"b",
")",
";",
"if",
"(",
"s",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"n",
".",
"cells",
".",
"put",
"(",
"ch",
",",
"s",
")",
";",
"}",
"i",
"=",
"existing",
".",
"cells",
".",
"keySet",
"(",
")",
".",
"iterator",
"(",
")",
";",
"for",
"(",
";",
"i",
".",
"hasNext",
"(",
")",
";",
")",
"{",
"Character",
"ch",
"=",
"i",
".",
"next",
"(",
")",
";",
"if",
"(",
"master",
".",
"at",
"(",
"ch",
")",
"!=",
"null",
")",
"{",
"continue",
";",
"}",
"n",
".",
"cells",
".",
"put",
"(",
"ch",
",",
"existing",
".",
"at",
"(",
"ch",
")",
")",
";",
"}",
"return",
"n",
";",
"}"
] |
public Row Merge(Row master, Row existing){Row n = new Row();foreach (char ch in master.cells.Keys){master.cells.TryGetValue(ch, out Cell a);Cell s = !existing.cells.TryGetValue(ch, out Cell b) || (b == null) ? new Cell(a) : Merge(a, b);if (s == null){return null;}n.cells[ch] = s;}foreach (char ch in existing.cells.Keys){if (master.At(ch) != null){continue;}n.cells[ch] = existing.At(ch);}return n;}
|
train
| false
|
9,138
|
public E peekFirst() {return peekFirstImpl();}
|
[
"public",
"E",
"peekFirst",
"(",
")",
"{",
"return",
"peekFirstImpl",
"(",
")",
";",
"}"
] |
public virtual E peekFirst(){return peekFirstImpl();}
|
train
| false
|
9,139
|
public static int response(HttpConnection c) throws IOException {try {return c.getResponseCode();} catch (ConnectException ce) {final URL url = c.getURL();final String host = (url == null) ? "<null>" : url.getHost(); if ("Connection timed out: connect".equals(ce.getMessage())) throw new ConnectException(MessageFormat.format(JGitText.get().connectionTimeOut, host));throw new ConnectException(ce.getMessage() + " " + host); }}
|
[
"public",
"static",
"int",
"response",
"(",
"HttpConnection",
"c",
")",
"throws",
"IOException",
"{",
"try",
"{",
"return",
"c",
".",
"getResponseCode",
"(",
")",
";",
"}",
"catch",
"(",
"ConnectException",
"ce",
")",
"{",
"final",
"URL",
"url",
"=",
"c",
".",
"getURL",
"(",
")",
";",
"final",
"String",
"host",
"=",
"(",
"url",
"==",
"null",
")",
"?",
"\"<null>\"",
":",
"url",
".",
"getHost",
"(",
")",
";",
"if",
"(",
"\"Connection timed out: connect\"",
".",
"equals",
"(",
"ce",
".",
"getMessage",
"(",
")",
")",
")",
"throw",
"new",
"ConnectException",
"(",
"MessageFormat",
".",
"format",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"connectionTimeOut",
",",
"host",
")",
")",
";",
"throw",
"new",
"ConnectException",
"(",
"ce",
".",
"getMessage",
"(",
")",
"+",
"\" \"",
"+",
"host",
")",
";",
"}",
"}"
] |
public static int Response(HttpURLConnection c){try{return c.GetResponseCode();}catch (ConnectException ce){string host = c.GetURL().GetHost();if ("Connection timed out: connect".Equals(ce.Message)){throw new ConnectException(MessageFormat.Format(JGitText.Get().connectionTimeOut,host));}throw new ConnectException(ce.Message + " " + host);}}
|
train
| false
|
9,140
|
public GetConfigurationResult getConfiguration(GetConfigurationRequest request) {request = beforeClientExecution(request);return executeGetConfiguration(request);}
|
[
"public",
"GetConfigurationResult",
"getConfiguration",
"(",
"GetConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetConfiguration",
"(",
"request",
")",
";",
"}"
] |
public virtual GetConfigurationResponse GetConfiguration(GetConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetConfigurationResponseUnmarshaller.Instance;return Invoke<GetConfigurationResponse>(request, options);}
|
train
| false
|
9,141
|
public static Collection<String> getSupportedFunctionNames(){Collection<String> lst = new TreeSet<>();lst.addAll(FunctionEval.getSupportedFunctionNames());lst.addAll(AnalysisToolPak.getSupportedFunctionNames());return Collections.unmodifiableCollection(lst);}
|
[
"public",
"static",
"Collection",
"<",
"String",
">",
"getSupportedFunctionNames",
"(",
")",
"{",
"Collection",
"<",
"String",
">",
"lst",
"=",
"new",
"TreeSet",
"<",
">",
"(",
")",
";",
"lst",
".",
"addAll",
"(",
"FunctionEval",
".",
"getSupportedFunctionNames",
"(",
")",
")",
";",
"lst",
".",
"addAll",
"(",
"AnalysisToolPak",
".",
"getSupportedFunctionNames",
"(",
")",
")",
";",
"return",
"Collections",
".",
"unmodifiableCollection",
"(",
"lst",
")",
";",
"}"
] |
public static List<String> GetSupportedFunctionNames(){List<String> lst = new List<String>();lst.AddRange(FunctionEval.GetSupportedFunctionNames());lst.AddRange(AnalysisToolPak.GetSupportedFunctionNames());return lst;}
|
train
| false
|
9,142
|
public PerFieldAnalyzerWrapper(Analyzer defaultAnalyzer,Map<String, Analyzer> fieldAnalyzers) {super(PER_FIELD_REUSE_STRATEGY);this.defaultAnalyzer = defaultAnalyzer;this.fieldAnalyzers = (fieldAnalyzers != null) ? fieldAnalyzers : Collections.<String, Analyzer>emptyMap();}
|
[
"public",
"PerFieldAnalyzerWrapper",
"(",
"Analyzer",
"defaultAnalyzer",
",",
"Map",
"<",
"String",
",",
"Analyzer",
">",
"fieldAnalyzers",
")",
"{",
"super",
"(",
"PER_FIELD_REUSE_STRATEGY",
")",
";",
"this",
".",
"defaultAnalyzer",
"=",
"defaultAnalyzer",
";",
"this",
".",
"fieldAnalyzers",
"=",
"(",
"fieldAnalyzers",
"!=",
"null",
")",
"?",
"fieldAnalyzers",
":",
"Collections",
".",
"<",
"String",
",",
"Analyzer",
">",
"emptyMap",
"(",
")",
";",
"}"
] |
public PerFieldAnalyzerWrapper(Analyzer defaultAnalyzer, IDictionary<string, Analyzer> fieldAnalyzers): base(PER_FIELD_REUSE_STRATEGY){this.defaultAnalyzer = defaultAnalyzer;this.fieldAnalyzers = fieldAnalyzers ?? new JCG.Dictionary<string, Analyzer>(); }
|
train
| false
|
9,143
|
public DeletePublishingDestinationResult deletePublishingDestination(DeletePublishingDestinationRequest request) {request = beforeClientExecution(request);return executeDeletePublishingDestination(request);}
|
[
"public",
"DeletePublishingDestinationResult",
"deletePublishingDestination",
"(",
"DeletePublishingDestinationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeletePublishingDestination",
"(",
"request",
")",
";",
"}"
] |
public virtual DeletePublishingDestinationResponse DeletePublishingDestination(DeletePublishingDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeletePublishingDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeletePublishingDestinationResponseUnmarshaller.Instance;return Invoke<DeletePublishingDestinationResponse>(request, options);}
|
train
| false
|
9,144
|
public GetSendStatisticsResult getSendStatistics(GetSendStatisticsRequest request) {request = beforeClientExecution(request);return executeGetSendStatistics(request);}
|
[
"public",
"GetSendStatisticsResult",
"getSendStatistics",
"(",
"GetSendStatisticsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetSendStatistics",
"(",
"request",
")",
";",
"}"
] |
public virtual GetSendStatisticsResponse GetSendStatistics(GetSendStatisticsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSendStatisticsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSendStatisticsResponseUnmarshaller.Instance;return Invoke<GetSendStatisticsResponse>(request, options);}
|
train
| true
|
9,145
|
public void copyArea(int x, int y, int width, int height, int dx, int dy){if (logger.check( POILogger.WARN ))logger.log(POILogger.WARN,"copyArea not supported");}
|
[
"public",
"void",
"copyArea",
"(",
"int",
"x",
",",
"int",
"y",
",",
"int",
"width",
",",
"int",
"height",
",",
"int",
"dx",
",",
"int",
"dy",
")",
"{",
"if",
"(",
"logger",
".",
"check",
"(",
"POILogger",
".",
"WARN",
")",
")",
"logger",
".",
"log",
"(",
"POILogger",
".",
"WARN",
",",
"\"copyArea not supported\"",
")",
";",
"}"
] |
public void CopyArea(int x, int y, int width, int height, int dx, int dy){if (Logger.Check(POILogger.WARN))Logger.Log(POILogger.WARN, "copyArea not supported");}
|
train
| false
|
9,146
|
public AreaErrPtg() {unused1 = 0;unused2 = 0;}
|
[
"public",
"AreaErrPtg",
"(",
")",
"{",
"unused1",
"=",
"0",
";",
"unused2",
"=",
"0",
";",
"}"
] |
public AreaErrPtg(){unused1 = 0;unused2 = 0;}
|
train
| false
|
9,147
|
public GetUserSettingsResult getUserSettings(GetUserSettingsRequest request) {request = beforeClientExecution(request);return executeGetUserSettings(request);}
|
[
"public",
"GetUserSettingsResult",
"getUserSettings",
"(",
"GetUserSettingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetUserSettings",
"(",
"request",
")",
";",
"}"
] |
public virtual GetUserSettingsResponse GetUserSettings(GetUserSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUserSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUserSettingsResponseUnmarshaller.Instance;return Invoke<GetUserSettingsResponse>(request, options);}
|
train
| true
|
9,148
|
public static String toString(Object obj) {if (obj != null) {return obj.toString();} else {return null;}}
|
[
"public",
"static",
"String",
"toString",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"obj",
"!=",
"null",
")",
"{",
"return",
"obj",
".",
"toString",
"(",
")",
";",
"}",
"else",
"{",
"return",
"null",
";",
"}",
"}"
] |
public static string ToString(object obj){if (obj != null){return obj.ToString();}else{return null;}}
|
train
| false
|
9,149
|
public String getAccessKeySecret() {return accessKeySecret;}
|
[
"public",
"String",
"getAccessKeySecret",
"(",
")",
"{",
"return",
"accessKeySecret",
";",
"}"
] |
public string GetAccessKeySecret(){return accessKeySecret;}
|
train
| false
|
9,150
|
public Collection<ParseTree> evaluate(ParseTree t) {List<ParseTree> nodes = new ArrayList<ParseTree>();for (Tree c : Trees.getChildren(t)) {if ( c instanceof TerminalNode ) {TerminalNode tnode = (TerminalNode)c;if ( (tnode.getSymbol().getType() == tokenType && !invert) ||(tnode.getSymbol().getType() != tokenType && invert) ){nodes.add(tnode);}}}return nodes;}
|
[
"public",
"Collection",
"<",
"ParseTree",
">",
"evaluate",
"(",
"ParseTree",
"t",
")",
"{",
"List",
"<",
"ParseTree",
">",
"nodes",
"=",
"new",
"ArrayList",
"<",
"ParseTree",
">",
"(",
")",
";",
"for",
"(",
"Tree",
"c",
":",
"Trees",
".",
"getChildren",
"(",
"t",
")",
")",
"{",
"if",
"(",
"c",
"instanceof",
"TerminalNode",
")",
"{",
"TerminalNode",
"tnode",
"=",
"(",
"TerminalNode",
")",
"c",
";",
"if",
"(",
"(",
"tnode",
".",
"getSymbol",
"(",
")",
".",
"getType",
"(",
")",
"==",
"tokenType",
"&&",
"!",
"invert",
")",
"||",
"(",
"tnode",
".",
"getSymbol",
"(",
")",
".",
"getType",
"(",
")",
"!=",
"tokenType",
"&&",
"invert",
")",
")",
"{",
"nodes",
".",
"add",
"(",
"tnode",
")",
";",
"}",
"}",
"}",
"return",
"nodes",
";",
"}"
] |
public override ICollection<IParseTree> Evaluate(IParseTree t){IList<IParseTree> nodes = new List<IParseTree>();foreach (ITree c in Trees.GetChildren(t)){if (c is ITerminalNode){ITerminalNode tnode = (ITerminalNode)c;if ((tnode.Symbol.Type == tokenType && !invert) || (tnode.Symbol.Type != tokenType && invert)){nodes.Add(tnode);}}}return nodes;}
|
train
| false
|
9,151
|
public IsVpcPeeredResult isVpcPeered(IsVpcPeeredRequest request) {request = beforeClientExecution(request);return executeIsVpcPeered(request);}
|
[
"public",
"IsVpcPeeredResult",
"isVpcPeered",
"(",
"IsVpcPeeredRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeIsVpcPeered",
"(",
"request",
")",
";",
"}"
] |
public virtual IsVpcPeeredResponse IsVpcPeered(IsVpcPeeredRequest request){var options = new InvokeOptions();options.RequestMarshaller = IsVpcPeeredRequestMarshaller.Instance;options.ResponseUnmarshaller = IsVpcPeeredResponseUnmarshaller.Instance;return Invoke<IsVpcPeeredResponse>(request, options);}
|
train
| true
|
9,152
|
public String toString() {return "ShardRef(shardIndex=" + shardIndex + " hitIndex=" + hitIndex + ")";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"ShardRef(shardIndex=\"",
"+",
"shardIndex",
"+",
"\" hitIndex=\"",
"+",
"hitIndex",
"+",
"\")\"",
";",
"}"
] |
public override string ToString(){return "ShardRef(shardIndex=" + ShardIndex + " hitIndex=" + HitIndex + ")";}
|
train
| false
|
9,153
|
public TerminateJobFlowsRequest(java.util.List<String> jobFlowIds) {setJobFlowIds(jobFlowIds);}
|
[
"public",
"TerminateJobFlowsRequest",
"(",
"java",
".",
"util",
".",
"List",
"<",
"String",
">",
"jobFlowIds",
")",
"{",
"setJobFlowIds",
"(",
"jobFlowIds",
")",
";",
"}"
] |
public TerminateJobFlowsRequest(List<string> jobFlowIds){_jobFlowIds = jobFlowIds;}
|
train
| false
|
9,154
|
public DatRecord(RecordInputStream in) {field_1_options = in.readShort();}
|
[
"public",
"DatRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_options",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"}"
] |
public DatRecord(RecordInputStream in1){field_1_options = in1.ReadShort();}
|
train
| false
|
9,155
|
public void removeExFormatRecord(int index) {int xfptr = records.getXfpos() - (numxfs - 1) + index;records.remove(xfptr); numxfs--;}
|
[
"public",
"void",
"removeExFormatRecord",
"(",
"int",
"index",
")",
"{",
"int",
"xfptr",
"=",
"records",
".",
"getXfpos",
"(",
")",
"-",
"(",
"numxfs",
"-",
"1",
")",
"+",
"index",
";",
"records",
".",
"remove",
"(",
"xfptr",
")",
";",
"numxfs",
"--",
";",
"}"
] |
public void RemoveExFormatRecord(int index){int xfptr = records.Xfpos - (numxfs - 1) + index;records.Remove(xfptr); numxfs--;}
|
train
| false
|
9,157
|
public BlockPackedReaderIterator(DataInput in, int packedIntsVersion, int blockSize, long valueCount) {checkBlockSize(blockSize, MIN_BLOCK_SIZE, MAX_BLOCK_SIZE);this.packedIntsVersion = packedIntsVersion;this.blockSize = blockSize;this.values = new long[blockSize];this.valuesRef = new LongsRef(this.values, 0, 0);reset(in, valueCount);}
|
[
"public",
"BlockPackedReaderIterator",
"(",
"DataInput",
"in",
",",
"int",
"packedIntsVersion",
",",
"int",
"blockSize",
",",
"long",
"valueCount",
")",
"{",
"checkBlockSize",
"(",
"blockSize",
",",
"MIN_BLOCK_SIZE",
",",
"MAX_BLOCK_SIZE",
")",
";",
"this",
".",
"packedIntsVersion",
"=",
"packedIntsVersion",
";",
"this",
".",
"blockSize",
"=",
"blockSize",
";",
"this",
".",
"values",
"=",
"new",
"long",
"[",
"blockSize",
"]",
";",
"this",
".",
"valuesRef",
"=",
"new",
"LongsRef",
"(",
"this",
".",
"values",
",",
"0",
",",
"0",
")",
";",
"reset",
"(",
"in",
",",
"valueCount",
")",
";",
"}"
] |
public BlockPackedReaderIterator(DataInput @in, int packedIntsVersion, int blockSize, long valueCount){PackedInt32s.CheckBlockSize(blockSize, AbstractBlockPackedWriter.MIN_BLOCK_SIZE, AbstractBlockPackedWriter.MAX_BLOCK_SIZE);this.packedIntsVersion = packedIntsVersion;this.blockSize = blockSize;this.values = new long[blockSize];this.valuesRef = new Int64sRef(this.values, 0, 0);Reset(@in, valueCount);}
|
train
| false
|
9,158
|
public void reset() {if (!first()) {ptr = treeStart;nextSubtreePos = 0;currentEntry = null;currentSubtree = null;if (!eof())parseEntry();}}
|
[
"public",
"void",
"reset",
"(",
")",
"{",
"if",
"(",
"!",
"first",
"(",
")",
")",
"{",
"ptr",
"=",
"treeStart",
";",
"nextSubtreePos",
"=",
"0",
";",
"currentEntry",
"=",
"null",
";",
"currentSubtree",
"=",
"null",
";",
"if",
"(",
"!",
"eof",
"(",
")",
")",
"parseEntry",
"(",
")",
";",
"}",
"}"
] |
public override void Reset(){if (!First){ptr = treeStart;if (!Eof){ParseEntry();}}}
|
train
| false
|
9,159
|
public BytesRef getPayload() {if (payloadLength == 0) {return null;} else {return payload;}}
|
[
"public",
"BytesRef",
"getPayload",
"(",
")",
"{",
"if",
"(",
"payloadLength",
"==",
"0",
")",
"{",
"return",
"null",
";",
"}",
"else",
"{",
"return",
"payload",
";",
"}",
"}"
] |
public override BytesRef GetPayload(){if (payloadLength == 0){return null;}else{return payload;}}
|
train
| false
|
9,160
|
public synchronized void setIndeterminate(boolean indeterminate) {if ((!mOnlyIndeterminate || !mIndeterminate) && indeterminate != mIndeterminate) {mIndeterminate = indeterminate;if (indeterminate) {mCurrentDrawable = mIndeterminateDrawable;startAnimation();} else {mCurrentDrawable = mProgressDrawable;stopAnimation();}}}
|
[
"public",
"synchronized",
"void",
"setIndeterminate",
"(",
"boolean",
"indeterminate",
")",
"{",
"if",
"(",
"(",
"!",
"mOnlyIndeterminate",
"||",
"!",
"mIndeterminate",
")",
"&&",
"indeterminate",
"!=",
"mIndeterminate",
")",
"{",
"mIndeterminate",
"=",
"indeterminate",
";",
"if",
"(",
"indeterminate",
")",
"{",
"mCurrentDrawable",
"=",
"mIndeterminateDrawable",
";",
"startAnimation",
"(",
")",
";",
"}",
"else",
"{",
"mCurrentDrawable",
"=",
"mProgressDrawable",
";",
"stopAnimation",
"(",
")",
";",
"}",
"}",
"}"
] |
public virtual void setIndeterminate(bool indeterminate){lock (this){if ((!mOnlyIndeterminate || !mIndeterminate) && indeterminate != mIndeterminate){mIndeterminate = indeterminate;if (indeterminate){mCurrentDrawable = mIndeterminateDrawable;startAnimation();}else{mCurrentDrawable = mProgressDrawable;stopAnimation();}}}}
|
train
| true
|
9,162
|
public boolean equals(Object o) {if (!(o instanceof FieldCacheSource)) return false;FieldCacheSource other = (FieldCacheSource)o;return this.field.equals(other.field);}
|
[
"public",
"boolean",
"equals",
"(",
"Object",
"o",
")",
"{",
"if",
"(",
"!",
"(",
"o",
"instanceof",
"FieldCacheSource",
")",
")",
"return",
"false",
";",
"FieldCacheSource",
"other",
"=",
"(",
"FieldCacheSource",
")",
"o",
";",
"return",
"this",
".",
"field",
".",
"equals",
"(",
"other",
".",
"field",
")",
";",
"}"
] |
public override bool Equals(object o){var other = o as FieldCacheSource;if (other == null){return false;}return m_field.Equals(other.m_field, StringComparison.Ordinal) && m_cache == other.m_cache;}
|
train
| false
|
9,163
|
public DescribeLoaResult describeLoa(DescribeLoaRequest request) {request = beforeClientExecution(request);return executeDescribeLoa(request);}
|
[
"public",
"DescribeLoaResult",
"describeLoa",
"(",
"DescribeLoaRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeLoa",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeLoaResponse DescribeLoa(DescribeLoaRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoaRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoaResponseUnmarshaller.Instance;return Invoke<DescribeLoaResponse>(request, options);}
|
train
| true
|
9,164
|
public final K next() { return nextEntry().key; }
|
[
"public",
"final",
"K",
"next",
"(",
")",
"{",
"return",
"nextEntry",
"(",
")",
".",
"key",
";",
"}"
] |
public override K next(){return this.nextEntry().key;}
|
train
| false
|
9,165
|
public ListFleetsResult listFleets(ListFleetsRequest request) {request = beforeClientExecution(request);return executeListFleets(request);}
|
[
"public",
"ListFleetsResult",
"listFleets",
"(",
"ListFleetsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListFleets",
"(",
"request",
")",
";",
"}"
] |
public virtual ListFleetsResponse ListFleets(ListFleetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFleetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFleetsResponseUnmarshaller.Instance;return Invoke<ListFleetsResponse>(request, options);}
|
train
| true
|
9,166
|
public DelegationSet(java.util.List<String> nameServers) {setNameServers(nameServers);}
|
[
"public",
"DelegationSet",
"(",
"java",
".",
"util",
".",
"List",
"<",
"String",
">",
"nameServers",
")",
"{",
"setNameServers",
"(",
"nameServers",
")",
";",
"}"
] |
public DelegationSet(List<string> nameServers){_nameServers = nameServers;}
|
train
| false
|
9,167
|
public GetKeyPairsResult getKeyPairs(GetKeyPairsRequest request) {request = beforeClientExecution(request);return executeGetKeyPairs(request);}
|
[
"public",
"GetKeyPairsResult",
"getKeyPairs",
"(",
"GetKeyPairsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetKeyPairs",
"(",
"request",
")",
";",
"}"
] |
public virtual GetKeyPairsResponse GetKeyPairs(GetKeyPairsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetKeyPairsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetKeyPairsResponseUnmarshaller.Instance;return Invoke<GetKeyPairsResponse>(request, options);}
|
train
| true
|
9,168
|
public ReservedNode purchaseReservedNodeOffering(PurchaseReservedNodeOfferingRequest request) {request = beforeClientExecution(request);return executePurchaseReservedNodeOffering(request);}
|
[
"public",
"ReservedNode",
"purchaseReservedNodeOffering",
"(",
"PurchaseReservedNodeOfferingRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePurchaseReservedNodeOffering",
"(",
"request",
")",
";",
"}"
] |
public virtual PurchaseReservedNodeOfferingResponse PurchaseReservedNodeOffering(PurchaseReservedNodeOfferingRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurchaseReservedNodeOfferingRequestMarshaller.Instance;options.ResponseUnmarshaller = PurchaseReservedNodeOfferingResponseUnmarshaller.Instance;return Invoke<PurchaseReservedNodeOfferingResponse>(request, options);}
|
train
| true
|
9,169
|
public String getPassword() {return password;}
|
[
"public",
"String",
"getPassword",
"(",
")",
"{",
"return",
"password",
";",
"}"
] |
public virtual string GetPassword(){return password;}
|
train
| false
|
9,170
|
public String getValue(String name) {return nameValPairs.get(name);}
|
[
"public",
"String",
"getValue",
"(",
"String",
"name",
")",
"{",
"return",
"nameValPairs",
".",
"get",
"(",
"name",
")",
";",
"}"
] |
public virtual string GetValue(string name){string result;nameValPairs.TryGetValue(name, out result);return result;}
|
train
| false
|
9,171
|
public static String format(byte[] delta) {return format(delta, true);}
|
[
"public",
"static",
"String",
"format",
"(",
"byte",
"[",
"]",
"delta",
")",
"{",
"return",
"format",
"(",
"delta",
",",
"true",
")",
";",
"}"
] |
public static string Format(byte[] delta){return Format(delta, true);}
|
train
| false
|
9,173
|
public ArrayRecord(RecordInputStream in) {super(in);_options = in.readUShort();_field3notUsed = in.readInt();int formulaTokenLen = in.readUShort();int totalFormulaLen = in.available();_formula = Formula.read(formulaTokenLen, in, totalFormulaLen);}
|
[
"public",
"ArrayRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"super",
"(",
"in",
")",
";",
"_options",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"_field3notUsed",
"=",
"in",
".",
"readInt",
"(",
")",
";",
"int",
"formulaTokenLen",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"int",
"totalFormulaLen",
"=",
"in",
".",
"available",
"(",
")",
";",
"_formula",
"=",
"Formula",
".",
"read",
"(",
"formulaTokenLen",
",",
"in",
",",
"totalFormulaLen",
")",
";",
"}"
] |
public ArrayRecord(RecordInputStream in1): base(in1){_options = in1.ReadUShort();_field3notUsed = in1.ReadInt();int formulaTokenLen = in1.ReadUShort();int totalFormulaLen = in1.Available();_formula = NPOI.SS.Formula.Formula.Read(formulaTokenLen, in1, totalFormulaLen);}
|
train
| false
|
9,174
|
public BootstrapActionConfig(String name, ScriptBootstrapActionConfig scriptBootstrapAction) {setName(name);setScriptBootstrapAction(scriptBootstrapAction);}
|
[
"public",
"BootstrapActionConfig",
"(",
"String",
"name",
",",
"ScriptBootstrapActionConfig",
"scriptBootstrapAction",
")",
"{",
"setName",
"(",
"name",
")",
";",
"setScriptBootstrapAction",
"(",
"scriptBootstrapAction",
")",
";",
"}"
] |
public BootstrapActionConfig(string name, ScriptBootstrapActionConfig scriptBootstrapAction){_name = name;_scriptBootstrapAction = scriptBootstrapAction;}
|
train
| false
|
9,175
|
public CreateLoadBalancerPolicyResult createLoadBalancerPolicy(CreateLoadBalancerPolicyRequest request) {request = beforeClientExecution(request);return executeCreateLoadBalancerPolicy(request);}
|
[
"public",
"CreateLoadBalancerPolicyResult",
"createLoadBalancerPolicy",
"(",
"CreateLoadBalancerPolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateLoadBalancerPolicy",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateLoadBalancerPolicyResponse CreateLoadBalancerPolicy(CreateLoadBalancerPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLoadBalancerPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLoadBalancerPolicyResponseUnmarshaller.Instance;return Invoke<CreateLoadBalancerPolicyResponse>(request, options);}
|
train
| true
|
9,177
|
public String toString() {return "MultiTermsEnum(" + Arrays.toString(subs) + ")";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"MultiTermsEnum(\"",
"+",
"Arrays",
".",
"toString",
"(",
"subs",
")",
"+",
"\")\"",
";",
"}"
] |
public override string ToString(){return "MultiTermsEnum(" + Arrays.ToString(subs) + ")";}
|
train
| false
|
9,178
|
public PayloadSpanUtil(IndexReaderContext context) {this.context = context;}
|
[
"public",
"PayloadSpanUtil",
"(",
"IndexReaderContext",
"context",
")",
"{",
"this",
".",
"context",
"=",
"context",
";",
"}"
] |
public PayloadSpanUtil(IndexReaderContext context){this.context = context;}
|
train
| false
|
9,179
|
public List<FormatError> getErrors() {return errors;}
|
[
"public",
"List",
"<",
"FormatError",
">",
"getErrors",
"(",
")",
"{",
"return",
"errors",
";",
"}"
] |
public virtual IList<FormatError> GetErrors(){return errors;}
|
train
| false
|
9,180
|
public NormalisedDecimal createNormalisedDecimal(int pow10) {int missingUnderBits = _binaryExponent-39;int fracPart = (_significand.intValue() << missingUnderBits) & 0xFFFF80;long wholePart = _significand.shiftRight(C_64-_binaryExponent-1).longValue();return new NormalisedDecimal(wholePart, fracPart, pow10);}
|
[
"public",
"NormalisedDecimal",
"createNormalisedDecimal",
"(",
"int",
"pow10",
")",
"{",
"int",
"missingUnderBits",
"=",
"_binaryExponent",
"-",
"39",
";",
"int",
"fracPart",
"=",
"(",
"_significand",
".",
"intValue",
"(",
")",
"<<",
"missingUnderBits",
")",
"&",
"0xFFFF80",
";",
"long",
"wholePart",
"=",
"_significand",
".",
"shiftRight",
"(",
"C_64",
"-",
"_binaryExponent",
"-",
"1",
")",
".",
"longValue",
"(",
")",
";",
"return",
"new",
"NormalisedDecimal",
"(",
"wholePart",
",",
"fracPart",
",",
"pow10",
")",
";",
"}"
] |
public NormalisedDecimal CreateNormalisedDecimal(int pow10){int missingUnderBits = _binaryExponent - 39;int fracPart = (_significand.IntValue() << missingUnderBits) & 0xFFFF80;long wholePart = (_significand>>(C_64 - _binaryExponent - 1)).LongValue();return new NormalisedDecimal(wholePart, fracPart, pow10);}
|
train
| false
|
9,182
|
public ListStackSetOperationResultsResult listStackSetOperationResults(ListStackSetOperationResultsRequest request) {request = beforeClientExecution(request);return executeListStackSetOperationResults(request);}
|
[
"public",
"ListStackSetOperationResultsResult",
"listStackSetOperationResults",
"(",
"ListStackSetOperationResultsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListStackSetOperationResults",
"(",
"request",
")",
";",
"}"
] |
public virtual ListStackSetOperationResultsResponse ListStackSetOperationResults(ListStackSetOperationResultsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStackSetOperationResultsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStackSetOperationResultsResponseUnmarshaller.Instance;return Invoke<ListStackSetOperationResultsResponse>(request, options);}
|
train
| true
|
9,183
|
public static String getLocalizedMessage(String key, Object... args) {return getLocalizedMessage(key, Locale.getDefault(), args);}
|
[
"public",
"static",
"String",
"getLocalizedMessage",
"(",
"String",
"key",
",",
"Object",
"...",
"args",
")",
"{",
"return",
"getLocalizedMessage",
"(",
"key",
",",
"Locale",
".",
"getDefault",
"(",
")",
",",
"args",
")",
";",
"}"
] |
public static string GetLocalizedMessage(string key, params object[] args){return GetLocalizedMessage(key, CultureInfo.CurrentUICulture, args);}
|
train
| false
|
9,184
|
public final String reflectAsString(final boolean prependAttClass) {final StringBuilder buffer = new StringBuilder();reflectWith(new AttributeReflector());}
|
[
"public",
"final",
"String",
"reflectAsString",
"(",
"final",
"boolean",
"prependAttClass",
")",
"{",
"final",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"reflectWith",
"(",
"new",
"AttributeReflector",
"(",
")",
")",
";",
"}"
] |
public string ReflectAsString(bool prependAttClass){StringBuilder buffer = new StringBuilder();ReflectWith(new AttributeReflectorAnonymousInnerClassHelper(this, prependAttClass, buffer));return buffer.ToString();}
|
train
| false
|
9,185
|
public CellRangeAddressBase getValuesCellRange() {return getCellRange(dataValues);}
|
[
"public",
"CellRangeAddressBase",
"getValuesCellRange",
"(",
")",
"{",
"return",
"getCellRange",
"(",
"dataValues",
")",
";",
"}"
] |
public CellRangeAddressBase GetValuesCellRange(){return GetCellRange(dataValues);}
|
train
| false
|
9,186
|
public DescribeMatchmakingConfigurationsResult describeMatchmakingConfigurations(DescribeMatchmakingConfigurationsRequest request) {request = beforeClientExecution(request);return executeDescribeMatchmakingConfigurations(request);}
|
[
"public",
"DescribeMatchmakingConfigurationsResult",
"describeMatchmakingConfigurations",
"(",
"DescribeMatchmakingConfigurationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeMatchmakingConfigurations",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeMatchmakingConfigurationsResponse DescribeMatchmakingConfigurations(DescribeMatchmakingConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeMatchmakingConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeMatchmakingConfigurationsResponseUnmarshaller.Instance;return Invoke<DescribeMatchmakingConfigurationsResponse>(request, options);}
|
train
| true
|
9,187
|
public char get() {if (position == limit) {throw new BufferUnderflowException();}return byteBuffer.getChar(position++ * SizeOf.CHAR);}
|
[
"public",
"char",
"get",
"(",
")",
"{",
"if",
"(",
"position",
"==",
"limit",
")",
"{",
"throw",
"new",
"BufferUnderflowException",
"(",
")",
";",
"}",
"return",
"byteBuffer",
".",
"getChar",
"(",
"position",
"++",
"*",
"SizeOf",
".",
"CHAR",
")",
";",
"}"
] |
public override char get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return byteBuffer.getChar(_position++ * libcore.io.SizeOf.CHAR);}
|
train
| false
|
9,188
|
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[FtCf ]\n");buffer.append(" size = ").append(length).append("\n");buffer.append(" flags = ").append(HexDump.toHex(flags)).append("\n");buffer.append("[/FtCf ]\n");return buffer.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[FtCf ]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" size = \"",
")",
".",
"append",
"(",
"length",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" flags = \"",
")",
".",
"append",
"(",
"HexDump",
".",
"toHex",
"(",
"flags",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\"[/FtCf ]\\n\"",
")",
";",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] |
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[FtCf ]\n");buffer.Append(" size = ").Append(length).Append("\n");buffer.Append(" flags = ").Append(HexDump.ToHex(flags)).Append("\n");buffer.Append("[/FtCf ]\n");return buffer.ToString();}
|
train
| false
|
9,189
|
public PutConfigurationSetSuppressionOptionsResult putConfigurationSetSuppressionOptions(PutConfigurationSetSuppressionOptionsRequest request) {request = beforeClientExecution(request);return executePutConfigurationSetSuppressionOptions(request);}
|
[
"public",
"PutConfigurationSetSuppressionOptionsResult",
"putConfigurationSetSuppressionOptions",
"(",
"PutConfigurationSetSuppressionOptionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutConfigurationSetSuppressionOptions",
"(",
"request",
")",
";",
"}"
] |
public virtual PutConfigurationSetSuppressionOptionsResponse PutConfigurationSetSuppressionOptions(PutConfigurationSetSuppressionOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutConfigurationSetSuppressionOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutConfigurationSetSuppressionOptionsResponseUnmarshaller.Instance;return Invoke<PutConfigurationSetSuppressionOptionsResponse>(request, options);}
|
train
| false
|
9,190
|
public ListProposalVotesResult listProposalVotes(ListProposalVotesRequest request) {request = beforeClientExecution(request);return executeListProposalVotes(request);}
|
[
"public",
"ListProposalVotesResult",
"listProposalVotes",
"(",
"ListProposalVotesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListProposalVotes",
"(",
"request",
")",
";",
"}"
] |
public virtual ListProposalVotesResponse ListProposalVotes(ListProposalVotesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListProposalVotesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListProposalVotesResponseUnmarshaller.Instance;return Invoke<ListProposalVotesResponse>(request, options);}
|
train
| false
|
9,191
|
public SheetRangeEvaluator getRefEvaluatorForCurrentSheet() {SheetRefEvaluator sre = new SheetRefEvaluator(_bookEvaluator, _tracker, _sheetIndex);return new SheetRangeEvaluator(_sheetIndex, sre);}
|
[
"public",
"SheetRangeEvaluator",
"getRefEvaluatorForCurrentSheet",
"(",
")",
"{",
"SheetRefEvaluator",
"sre",
"=",
"new",
"SheetRefEvaluator",
"(",
"_bookEvaluator",
",",
"_tracker",
",",
"_sheetIndex",
")",
";",
"return",
"new",
"SheetRangeEvaluator",
"(",
"_sheetIndex",
",",
"sre",
")",
";",
"}"
] |
public SheetRangeEvaluator GetRefEvaluatorForCurrentSheet(){SheetRefEvaluator sre = new SheetRefEvaluator(_bookEvaluator, _tracker, _sheetIndex);return new SheetRangeEvaluator(_sheetIndex, sre);}
|
train
| false
|
9,193
|
public DataLabelExtensionRecord(RecordInputStream in) {rt = in.readShort();grbitFrt = in.readShort();in.readFully(unused);}
|
[
"public",
"DataLabelExtensionRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"rt",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"grbitFrt",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"in",
".",
"readFully",
"(",
"unused",
")",
";",
"}"
] |
public DataLabelExtensionRecord(RecordInputStream in1){rt = in1.ReadShort();grbitFrt = in1.ReadShort();in1.ReadFully(unused);}
|
train
| false
|
9,194
|
public ArchiveFindingsResult archiveFindings(ArchiveFindingsRequest request) {request = beforeClientExecution(request);return executeArchiveFindings(request);}
|
[
"public",
"ArchiveFindingsResult",
"archiveFindings",
"(",
"ArchiveFindingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeArchiveFindings",
"(",
"request",
")",
";",
"}"
] |
public virtual ArchiveFindingsResponse ArchiveFindings(ArchiveFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ArchiveFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = ArchiveFindingsResponseUnmarshaller.Instance;return Invoke<ArchiveFindingsResponse>(request, options);}
|
train
| true
|
9,195
|
public ChartSubstreamRecordAggregate(RecordStream rs) {_bofRec = (BOFRecord) rs.getNext();List<RecordBase> temp = new ArrayList<>();while (rs.peekNextClass() != EOFRecord.class) {if (PageSettingsBlock.isComponentRecord(rs.peekNextSid())) {if (_psBlock != null) {if (rs.peekNextSid() == HeaderFooterRecord.sid) {_psBlock.addLateHeaderFooter((HeaderFooterRecord)rs.getNext());continue;}throw new IllegalStateException("Found more than one PageSettingsBlock in chart sub-stream, had sid: " + rs.peekNextSid());}_psBlock = new PageSettingsBlock(rs);temp.add(_psBlock);continue;}temp.add(rs.getNext());}_recs = temp;org.apache.poi.hssf.record.Record eof = rs.getNext(); if (!(eof instanceof EOFRecord)) {throw new IllegalStateException("Bad chart EOF");}}
|
[
"public",
"ChartSubstreamRecordAggregate",
"(",
"RecordStream",
"rs",
")",
"{",
"_bofRec",
"=",
"(",
"BOFRecord",
")",
"rs",
".",
"getNext",
"(",
")",
";",
"List",
"<",
"RecordBase",
">",
"temp",
"=",
"new",
"ArrayList",
"<",
">",
"(",
")",
";",
"while",
"(",
"rs",
".",
"peekNextClass",
"(",
")",
"!=",
"EOFRecord",
".",
"class",
")",
"{",
"if",
"(",
"PageSettingsBlock",
".",
"isComponentRecord",
"(",
"rs",
".",
"peekNextSid",
"(",
")",
")",
")",
"{",
"if",
"(",
"_psBlock",
"!=",
"null",
")",
"{",
"if",
"(",
"rs",
".",
"peekNextSid",
"(",
")",
"==",
"HeaderFooterRecord",
".",
"sid",
")",
"{",
"_psBlock",
".",
"addLateHeaderFooter",
"(",
"(",
"HeaderFooterRecord",
")",
"rs",
".",
"getNext",
"(",
")",
")",
";",
"continue",
";",
"}",
"throw",
"new",
"IllegalStateException",
"(",
"\"Found more than one PageSettingsBlock in chart sub-stream, had sid: \"",
"+",
"rs",
".",
"peekNextSid",
"(",
")",
")",
";",
"}",
"_psBlock",
"=",
"new",
"PageSettingsBlock",
"(",
"rs",
")",
";",
"temp",
".",
"add",
"(",
"_psBlock",
")",
";",
"continue",
";",
"}",
"temp",
".",
"add",
"(",
"rs",
".",
"getNext",
"(",
")",
")",
";",
"}",
"_recs",
"=",
"temp",
";",
"org",
".",
"apache",
".",
"poi",
".",
"hssf",
".",
"record",
".",
"Record",
"eof",
"=",
"rs",
".",
"getNext",
"(",
")",
";",
"if",
"(",
"!",
"(",
"eof",
"instanceof",
"EOFRecord",
")",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"Bad chart EOF\"",
")",
";",
"}",
"}"
] |
public ChartSubstreamRecordAggregate(RecordStream rs){_bofRec = (BOFRecord)rs.GetNext();List<RecordBase> temp = new List<RecordBase>();while (rs.PeekNextClass() != typeof(EOFRecord)){Type a = rs.PeekNextClass();if (PageSettingsBlock.IsComponentRecord(rs.PeekNextSid())){if (_psBlock != null){if (rs.PeekNextSid() == HeaderFooterRecord.sid){_psBlock.AddLateHeaderFooter((HeaderFooterRecord)rs.GetNext());continue;}throw new InvalidDataException("Found more than one PageSettingsBlock in chart sub-stream");}_psBlock = new PageSettingsBlock(rs);temp.Add(_psBlock);continue;}temp.Add(rs.GetNext());}_recs = temp;Record eof = rs.GetNext(); if (!(eof is EOFRecord)){throw new InvalidOperationException("Bad chart EOF");}}
|
train
| false
|
9,196
|
public CreateSnapshotsResult createSnapshots(CreateSnapshotsRequest request) {request = beforeClientExecution(request);return executeCreateSnapshots(request);}
|
[
"public",
"CreateSnapshotsResult",
"createSnapshots",
"(",
"CreateSnapshotsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateSnapshots",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateSnapshotsResponse CreateSnapshots(CreateSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSnapshotsResponseUnmarshaller.Instance;return Invoke<CreateSnapshotsResponse>(request, options);}
|
train
| false
|
9,197
|
public String toFormulaString() {return "()";}
|
[
"public",
"String",
"toFormulaString",
"(",
")",
"{",
"return",
"\"()\"",
";",
"}"
] |
public override String ToFormulaString(){return "()";}
|
train
| false
|
9,199
|
public UnmonitorInstancesRequest(java.util.List<String> instanceIds) {setInstanceIds(instanceIds);}
|
[
"public",
"UnmonitorInstancesRequest",
"(",
"java",
".",
"util",
".",
"List",
"<",
"String",
">",
"instanceIds",
")",
"{",
"setInstanceIds",
"(",
"instanceIds",
")",
";",
"}"
] |
public UnmonitorInstancesRequest(List<string> instanceIds){_instanceIds = instanceIds;}
|
train
| false
|
9,200
|
public static Inflater get() {final Inflater r = getImpl();return r != null ? r : new Inflater(false);}
|
[
"public",
"static",
"Inflater",
"get",
"(",
")",
"{",
"final",
"Inflater",
"r",
"=",
"getImpl",
"(",
")",
";",
"return",
"r",
"!=",
"null",
"?",
"r",
":",
"new",
"Inflater",
"(",
"false",
")",
";",
"}"
] |
public static Inflater Get(){Inflater r = GetImpl();return r != null ? r : new Inflater(false);}
|
train
| false
|
9,201
|
public long get(int index) {checkIndex(index);return byteBuffer.getLong(index * SizeOf.LONG);}
|
[
"public",
"long",
"get",
"(",
"int",
"index",
")",
"{",
"checkIndex",
"(",
"index",
")",
";",
"return",
"byteBuffer",
".",
"getLong",
"(",
"index",
"*",
"SizeOf",
".",
"LONG",
")",
";",
"}"
] |
public override long get(int index){checkIndex(index);return byteBuffer.getLong(index * libcore.io.SizeOf.LONG);}
|
train
| false
|
9,202
|
public IntervalSet complement(int minElement, int maxElement) {return this.complement(IntervalSet.of(minElement,maxElement));}
|
[
"public",
"IntervalSet",
"complement",
"(",
"int",
"minElement",
",",
"int",
"maxElement",
")",
"{",
"return",
"this",
".",
"complement",
"(",
"IntervalSet",
".",
"of",
"(",
"minElement",
",",
"maxElement",
")",
")",
";",
"}"
] |
public virtual Antlr4.Runtime.Misc.IntervalSet Complement(int minElement, int maxElement){return this.Complement(Antlr4.Runtime.Misc.IntervalSet.Of(minElement, maxElement));}
|
train
| false
|
9,203
|
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("<sortedset" + ": \"").append(getField()).append("\">");if (getReverse()) buffer.append('!');if (missingValue != null) {buffer.append(" missingValue=");buffer.append(missingValue);}buffer.append(" selector=");buffer.append(selector);return buffer.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"<sortedset\"",
"+",
"\": \\\"\"",
")",
".",
"append",
"(",
"getField",
"(",
")",
")",
".",
"append",
"(",
"\"\\\">\"",
")",
";",
"if",
"(",
"getReverse",
"(",
")",
")",
"buffer",
".",
"append",
"(",
"'!'",
")",
";",
"if",
"(",
"missingValue",
"!=",
"null",
")",
"{",
"buffer",
".",
"append",
"(",
"\" missingValue=\"",
")",
";",
"buffer",
".",
"append",
"(",
"missingValue",
")",
";",
"}",
"buffer",
".",
"append",
"(",
"\" selector=\"",
")",
";",
"buffer",
".",
"append",
"(",
"selector",
")",
";",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] |
public override string ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("<sortedset" + ": \"").Append(Field).Append("\">");if (IsReverse) buffer.Append('!');if (MissingValue != null){buffer.Append(" missingValue=");buffer.Append(MissingValue);}buffer.Append(" selector=");buffer.Append(selector);return buffer.ToString();}
|
train
| false
|
9,204
|
public DescribeTrafficMirrorSessionsResult describeTrafficMirrorSessions(DescribeTrafficMirrorSessionsRequest request) {request = beforeClientExecution(request);return executeDescribeTrafficMirrorSessions(request);}
|
[
"public",
"DescribeTrafficMirrorSessionsResult",
"describeTrafficMirrorSessions",
"(",
"DescribeTrafficMirrorSessionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeTrafficMirrorSessions",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeTrafficMirrorSessionsResponse DescribeTrafficMirrorSessions(DescribeTrafficMirrorSessionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTrafficMirrorSessionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTrafficMirrorSessionsResponseUnmarshaller.Instance;return Invoke<DescribeTrafficMirrorSessionsResponse>(request, options);}
|
train
| false
|
9,205
|
public boolean isDirect() {return byteBuffer.isDirect();}
|
[
"public",
"boolean",
"isDirect",
"(",
")",
"{",
"return",
"byteBuffer",
".",
"isDirect",
"(",
")",
";",
"}"
] |
public override bool isDirect(){return byteBuffer.isDirect();}
|
train
| false
|
9,206
|
public Set<String> getConflicting() {return Collections.unmodifiableSet(diff.getConflicting());}
|
[
"public",
"Set",
"<",
"String",
">",
"getConflicting",
"(",
")",
"{",
"return",
"Collections",
".",
"unmodifiableSet",
"(",
"diff",
".",
"getConflicting",
"(",
")",
")",
";",
"}"
] |
public virtual ICollection<string> GetConflicting(){return Sharpen.Collections.UnmodifiableSet(diff.GetConflicting());}
|
train
| false
|
9,207
|
public ListDeviceEventsResult listDeviceEvents(ListDeviceEventsRequest request) {request = beforeClientExecution(request);return executeListDeviceEvents(request);}
|
[
"public",
"ListDeviceEventsResult",
"listDeviceEvents",
"(",
"ListDeviceEventsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListDeviceEvents",
"(",
"request",
")",
";",
"}"
] |
public virtual ListDeviceEventsResponse ListDeviceEvents(ListDeviceEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeviceEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeviceEventsResponseUnmarshaller.Instance;return Invoke<ListDeviceEventsResponse>(request, options);}
|
train
| true
|
9,208
|
@Override public boolean isEmpty() {return BoundedMap.this.isEmpty();}
|
[
"@",
"Override",
"public",
"boolean",
"isEmpty",
"(",
")",
"{",
"return",
"BoundedMap",
".",
"this",
".",
"isEmpty",
"(",
")",
";",
"}"
] |
public override bool isEmpty(){return this._enclosing.isEmpty();}
|
train
| false
|
9,209
|
public EscherSimpleProperty( short id, int propertyValue ) {super( id );this.propertyValue = propertyValue;}
|
[
"public",
"EscherSimpleProperty",
"(",
"short",
"id",
",",
"int",
"propertyValue",
")",
"{",
"super",
"(",
"id",
")",
";",
"this",
".",
"propertyValue",
"=",
"propertyValue",
";",
"}"
] |
public EscherSimpleProperty(short id, int propertyValue):base(id){this.propertyValue = propertyValue;}
|
train
| false
|
9,210
|
public PointPrefixTreeFieldCacheProvider(SpatialPrefixTree grid, String shapeField, int defaultSize) {super( shapeField, defaultSize );this.grid = grid;}
|
[
"public",
"PointPrefixTreeFieldCacheProvider",
"(",
"SpatialPrefixTree",
"grid",
",",
"String",
"shapeField",
",",
"int",
"defaultSize",
")",
"{",
"super",
"(",
"shapeField",
",",
"defaultSize",
")",
";",
"this",
".",
"grid",
"=",
"grid",
";",
"}"
] |
public PointPrefixTreeFieldCacheProvider(SpatialPrefixTree grid, string shapeField, int defaultSize): base(shapeField, defaultSize){this.grid = grid;}
|
train
| false
|
9,211
|
public void writeByte(byte b) {assert pos < limit;bytes[pos++] = b;}
|
[
"public",
"void",
"writeByte",
"(",
"byte",
"b",
")",
"{",
"assert",
"pos",
"<",
"limit",
";",
"bytes",
"[",
"pos",
"++",
"]",
"=",
"b",
";",
"}"
] |
public override void WriteByte(byte b){Debug.Assert(pos < limit);bytes[pos++] = b;}
|
train
| false
|
9,212
|
public DescribeTransitGatewayPeeringAttachmentsResult describeTransitGatewayPeeringAttachments(DescribeTransitGatewayPeeringAttachmentsRequest request) {request = beforeClientExecution(request);return executeDescribeTransitGatewayPeeringAttachments(request);}
|
[
"public",
"DescribeTransitGatewayPeeringAttachmentsResult",
"describeTransitGatewayPeeringAttachments",
"(",
"DescribeTransitGatewayPeeringAttachmentsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeTransitGatewayPeeringAttachments",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeTransitGatewayPeeringAttachmentsResponse DescribeTransitGatewayPeeringAttachments(DescribeTransitGatewayPeeringAttachmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTransitGatewayPeeringAttachmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTransitGatewayPeeringAttachmentsResponseUnmarshaller.Instance;return Invoke<DescribeTransitGatewayPeeringAttachmentsResponse>(request, options);}
|
train
| false
|
9,213
|
public Set<Entry<String, Ref>> entrySet() {if (entrySet == null) {entrySet = new AbstractSet<Entry<String, Ref>>();}}
|
[
"public",
"Set",
"<",
"Entry",
"<",
"String",
",",
"Ref",
">",
">",
"entrySet",
"(",
")",
"{",
"if",
"(",
"entrySet",
"==",
"null",
")",
"{",
"entrySet",
"=",
"new",
"AbstractSet",
"<",
"Entry",
"<",
"String",
",",
"Ref",
">",
">",
"(",
")",
";",
"}",
"}"
] |
public override ICollection<KeyValuePair<string, Ref>> EntrySet(){if (entrySet == null){entrySet = new _AbstractSet_223(this);}return entrySet;}
|
train
| false
|
9,214
|
public final ValueEval evaluate(ValueEval[] args, int srcCellRow, int srcCellCol) {try {return evaluateFunc(args, srcCellRow, srcCellCol);} catch (EvaluationException e) {return e.getErrorEval();}}
|
[
"public",
"final",
"ValueEval",
"evaluate",
"(",
"ValueEval",
"[",
"]",
"args",
",",
"int",
"srcCellRow",
",",
"int",
"srcCellCol",
")",
"{",
"try",
"{",
"return",
"evaluateFunc",
"(",
"args",
",",
"srcCellRow",
",",
"srcCellCol",
")",
";",
"}",
"catch",
"(",
"EvaluationException",
"e",
")",
"{",
"return",
"e",
".",
"getErrorEval",
"(",
")",
";",
"}",
"}"
] |
public ValueEval Evaluate(ValueEval[] args, int srcCellRow, int srcCellCol){try{return EvaluateFunc(args, srcCellRow, srcCellCol);}catch (EvaluationException e){return e.GetErrorEval();}}
|
train
| false
|
9,215
|
public CreateConfigurationTemplateRequest(String applicationName, String templateName) {setApplicationName(applicationName);setTemplateName(templateName);}
|
[
"public",
"CreateConfigurationTemplateRequest",
"(",
"String",
"applicationName",
",",
"String",
"templateName",
")",
"{",
"setApplicationName",
"(",
"applicationName",
")",
";",
"setTemplateName",
"(",
"templateName",
")",
";",
"}"
] |
public CreateConfigurationTemplateRequest(string applicationName, string templateName){_applicationName = applicationName;_templateName = templateName;}
|
train
| false
|
9,216
|
public GetUsagePlansResult getUsagePlans(GetUsagePlansRequest request) {request = beforeClientExecution(request);return executeGetUsagePlans(request);}
|
[
"public",
"GetUsagePlansResult",
"getUsagePlans",
"(",
"GetUsagePlansRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetUsagePlans",
"(",
"request",
")",
";",
"}"
] |
public virtual GetUsagePlansResponse GetUsagePlans(GetUsagePlansRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUsagePlansRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUsagePlansResponseUnmarshaller.Instance;return Invoke<GetUsagePlansResponse>(request, options);}
|
train
| true
|
9,217
|
public static int serializePtgs(Ptg[] ptgs, byte[] array, int offset) {LittleEndianByteArrayOutputStream out = new LittleEndianByteArrayOutputStream(array, offset); List<Ptg> arrayPtgs = null;for (Ptg ptg : ptgs) {ptg.write(out);if (ptg instanceof ArrayPtg) {if (arrayPtgs == null) {arrayPtgs = new ArrayList<>(5);}arrayPtgs.add(ptg);}}if (arrayPtgs != null) {for (Ptg arrayPtg : arrayPtgs) {ArrayPtg p = (ArrayPtg) arrayPtg;p.writeTokenValueBytes(out);}}return out.getWriteIndex() - offset;}
|
[
"public",
"static",
"int",
"serializePtgs",
"(",
"Ptg",
"[",
"]",
"ptgs",
",",
"byte",
"[",
"]",
"array",
",",
"int",
"offset",
")",
"{",
"LittleEndianByteArrayOutputStream",
"out",
"=",
"new",
"LittleEndianByteArrayOutputStream",
"(",
"array",
",",
"offset",
")",
";",
"List",
"<",
"Ptg",
">",
"arrayPtgs",
"=",
"null",
";",
"for",
"(",
"Ptg",
"ptg",
":",
"ptgs",
")",
"{",
"ptg",
".",
"write",
"(",
"out",
")",
";",
"if",
"(",
"ptg",
"instanceof",
"ArrayPtg",
")",
"{",
"if",
"(",
"arrayPtgs",
"==",
"null",
")",
"{",
"arrayPtgs",
"=",
"new",
"ArrayList",
"<",
">",
"(",
"5",
")",
";",
"}",
"arrayPtgs",
".",
"add",
"(",
"ptg",
")",
";",
"}",
"}",
"if",
"(",
"arrayPtgs",
"!=",
"null",
")",
"{",
"for",
"(",
"Ptg",
"arrayPtg",
":",
"arrayPtgs",
")",
"{",
"ArrayPtg",
"p",
"=",
"(",
"ArrayPtg",
")",
"arrayPtg",
";",
"p",
".",
"writeTokenValueBytes",
"(",
"out",
")",
";",
"}",
"}",
"return",
"out",
".",
"getWriteIndex",
"(",
")",
"-",
"offset",
";",
"}"
] |
public static int SerializePtgs(Ptg[] ptgs, byte[] array, int offset){int size = ptgs.Length;LittleEndianByteArrayOutputStream out1 = new LittleEndianByteArrayOutputStream(array, offset);ArrayList arrayPtgs = null;for (int k = 0; k < size; k++){Ptg ptg = ptgs[k];ptg.Write(out1);if (ptg is ArrayPtg){if (arrayPtgs == null){arrayPtgs = new ArrayList(5);}arrayPtgs.Add(ptg);}}if (arrayPtgs != null){for (int i = 0; i < arrayPtgs.Count; i++){ArrayPtg p = (ArrayPtg)arrayPtgs[i];p.WriteTokenValueBytes(out1);}}return out1.WriteIndex - offset; ;}
|
train
| false
|
9,218
|
public int size() {return lines.size() - 2;}
|
[
"public",
"int",
"size",
"(",
")",
"{",
"return",
"lines",
".",
"size",
"(",
")",
"-",
"2",
";",
"}"
] |
public override int Size(){return lines.Size() - 2;}
|
train
| false
|
9,219
|
public NumberRecord(RecordInputStream in) {super(in);field_4_value = in.readDouble();}
|
[
"public",
"NumberRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"super",
"(",
"in",
")",
";",
"field_4_value",
"=",
"in",
".",
"readDouble",
"(",
")",
";",
"}"
] |
public NumberRecord(RecordInputStream in1):base(in1){field_4_value = in1.ReadDouble();}
|
train
| false
|
9,220
|
public UnpeerVpcResult unpeerVpc(UnpeerVpcRequest request) {request = beforeClientExecution(request);return executeUnpeerVpc(request);}
|
[
"public",
"UnpeerVpcResult",
"unpeerVpc",
"(",
"UnpeerVpcRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUnpeerVpc",
"(",
"request",
")",
";",
"}"
] |
public virtual UnpeerVpcResponse UnpeerVpc(UnpeerVpcRequest request){var options = new InvokeOptions();options.RequestMarshaller = UnpeerVpcRequestMarshaller.Instance;options.ResponseUnmarshaller = UnpeerVpcResponseUnmarshaller.Instance;return Invoke<UnpeerVpcResponse>(request, options);}
|
train
| true
|
9,221
|
public DescribeTransitGatewayMulticastDomainsResult describeTransitGatewayMulticastDomains(DescribeTransitGatewayMulticastDomainsRequest request) {request = beforeClientExecution(request);return executeDescribeTransitGatewayMulticastDomains(request);}
|
[
"public",
"DescribeTransitGatewayMulticastDomainsResult",
"describeTransitGatewayMulticastDomains",
"(",
"DescribeTransitGatewayMulticastDomainsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeTransitGatewayMulticastDomains",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeTransitGatewayMulticastDomainsResponse DescribeTransitGatewayMulticastDomains(DescribeTransitGatewayMulticastDomainsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTransitGatewayMulticastDomainsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTransitGatewayMulticastDomainsResponseUnmarshaller.Instance;return Invoke<DescribeTransitGatewayMulticastDomainsResponse>(request, options);}
|
train
| false
|
9,222
|
public final Break getBreak(int main) {Integer rowKey = Integer.valueOf(main);return _breakMap.get(rowKey);}
|
[
"public",
"final",
"Break",
"getBreak",
"(",
"int",
"main",
")",
"{",
"Integer",
"rowKey",
"=",
"Integer",
".",
"valueOf",
"(",
"main",
")",
";",
"return",
"_breakMap",
".",
"get",
"(",
"rowKey",
")",
";",
"}"
] |
public Break GetBreak(int main){return (Break)_breakMap[main];}
|
train
| false
|
9,223
|
public HSSFPatternFormatting getPatternFormatting(){return getPatternFormatting(false);}
|
[
"public",
"HSSFPatternFormatting",
"getPatternFormatting",
"(",
")",
"{",
"return",
"getPatternFormatting",
"(",
"false",
")",
";",
"}"
] |
public IPatternFormatting GetPatternFormatting(){return GetPatternFormatting(false);}
|
train
| false
|
9,224
|
public FileMode getMode(Side side) {return side == Side.OLD ? getOldMode() : getNewMode();}
|
[
"public",
"FileMode",
"getMode",
"(",
"Side",
"side",
")",
"{",
"return",
"side",
"==",
"Side",
".",
"OLD",
"?",
"getOldMode",
"(",
")",
":",
"getNewMode",
"(",
")",
";",
"}"
] |
public virtual FileMode GetMode(DiffEntry.Side side){return side == DiffEntry.Side.OLD ? GetOldMode() : GetNewMode();}
|
train
| false
|
9,225
|
public StringBuffer append(int i) {IntegralToString.appendInt(this, i);return this;}
|
[
"public",
"StringBuffer",
"append",
"(",
"int",
"i",
")",
"{",
"IntegralToString",
".",
"appendInt",
"(",
"this",
",",
"i",
")",
";",
"return",
"this",
";",
"}"
] |
public java.lang.StringBuffer append(bool b){return append(b ? "true" : "false");}
|
train
| false
|
9,226
|
public boolean requiresCommitBody() {return true;}
|
[
"public",
"boolean",
"requiresCommitBody",
"(",
")",
"{",
"return",
"true",
";",
"}"
] |
public override bool RequiresCommitBody(){return false;}
|
train
| false
|
9,227
|
public boolean remove(Object object) {Iterator<?> it = iterator();if (object != null) {while (it.hasNext()) {if (object.equals(it.next())) {it.remove();return true;}}} else {while (it.hasNext()) {if (it.next() == null) {it.remove();return true;}}}return false;}
|
[
"public",
"boolean",
"remove",
"(",
"Object",
"object",
")",
"{",
"Iterator",
"<",
"?",
">",
"it",
"=",
"iterator",
"(",
")",
";",
"if",
"(",
"object",
"!=",
"null",
")",
"{",
"while",
"(",
"it",
".",
"hasNext",
"(",
")",
")",
"{",
"if",
"(",
"object",
".",
"equals",
"(",
"it",
".",
"next",
"(",
")",
")",
")",
"{",
"it",
".",
"remove",
"(",
")",
";",
"return",
"true",
";",
"}",
"}",
"}",
"else",
"{",
"while",
"(",
"it",
".",
"hasNext",
"(",
")",
")",
"{",
"if",
"(",
"it",
".",
"next",
"(",
")",
"==",
"null",
")",
"{",
"it",
".",
"remove",
"(",
")",
";",
"return",
"true",
";",
"}",
"}",
"}",
"return",
"false",
";",
"}"
] |
public virtual bool remove(object @object){java.util.Iterator<E> it = iterator();if (@object != null){while (it.hasNext()){if (@object.Equals(it.next())){it.remove();return true;}}}else{while (it.hasNext()){if (it.next() == null){it.remove();return true;}}}return false;}
|
train
| false
|
9,228
|
public Object get(CharSequence key) {return trie.get(key);}
|
[
"public",
"Object",
"get",
"(",
"CharSequence",
"key",
")",
"{",
"return",
"trie",
".",
"get",
"(",
"key",
")",
";",
"}"
] |
public virtual object Get(string key){return trie.Get(key);}
|
train
| false
|
9,229
|
public SubmoduleInitCommand submoduleInit() {return new SubmoduleInitCommand(repo);}
|
[
"public",
"SubmoduleInitCommand",
"submoduleInit",
"(",
")",
"{",
"return",
"new",
"SubmoduleInitCommand",
"(",
"repo",
")",
";",
"}"
] |
public virtual SubmoduleInitCommand SubmoduleInit(){return new SubmoduleInitCommand(repo);}
|
train
| false
|
9,230
|
public GetRepositoryPolicyResult getRepositoryPolicy(GetRepositoryPolicyRequest request) {request = beforeClientExecution(request);return executeGetRepositoryPolicy(request);}
|
[
"public",
"GetRepositoryPolicyResult",
"getRepositoryPolicy",
"(",
"GetRepositoryPolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetRepositoryPolicy",
"(",
"request",
")",
";",
"}"
] |
public virtual GetRepositoryPolicyResponse GetRepositoryPolicy(GetRepositoryPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRepositoryPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRepositoryPolicyResponseUnmarshaller.Instance;return Invoke<GetRepositoryPolicyResponse>(request, options);}
|
train
| true
|
9,232
|
public int fillFields(byte[] data, int pOffset, EscherRecordFactory recordFactory) {int bytesRemaining = readHeader(data, pOffset);int bytesWritten = 8;int offset = pOffset + 8;while (bytesRemaining > 0 && offset < data.length) {EscherRecord child = recordFactory.createRecord(data, offset);int childBytesWritten = child.fillFields(data, offset, recordFactory);bytesWritten += childBytesWritten;offset += childBytesWritten;bytesRemaining -= childBytesWritten;addChildRecord(child);if (offset >= data.length && bytesRemaining > 0) {_remainingLength = bytesRemaining;if (log.check(POILogger.WARN)) {log.log(POILogger.WARN, "Not enough Escher data: " + bytesRemaining + " bytes remaining but no space left");}}}return bytesWritten;}
|
[
"public",
"int",
"fillFields",
"(",
"byte",
"[",
"]",
"data",
",",
"int",
"pOffset",
",",
"EscherRecordFactory",
"recordFactory",
")",
"{",
"int",
"bytesRemaining",
"=",
"readHeader",
"(",
"data",
",",
"pOffset",
")",
";",
"int",
"bytesWritten",
"=",
"8",
";",
"int",
"offset",
"=",
"pOffset",
"+",
"8",
";",
"while",
"(",
"bytesRemaining",
">",
"0",
"&&",
"offset",
"<",
"data",
".",
"length",
")",
"{",
"EscherRecord",
"child",
"=",
"recordFactory",
".",
"createRecord",
"(",
"data",
",",
"offset",
")",
";",
"int",
"childBytesWritten",
"=",
"child",
".",
"fillFields",
"(",
"data",
",",
"offset",
",",
"recordFactory",
")",
";",
"bytesWritten",
"+=",
"childBytesWritten",
";",
"offset",
"+=",
"childBytesWritten",
";",
"bytesRemaining",
"-=",
"childBytesWritten",
";",
"addChildRecord",
"(",
"child",
")",
";",
"if",
"(",
"offset",
">=",
"data",
".",
"length",
"&&",
"bytesRemaining",
">",
"0",
")",
"{",
"_remainingLength",
"=",
"bytesRemaining",
";",
"if",
"(",
"log",
".",
"check",
"(",
"POILogger",
".",
"WARN",
")",
")",
"{",
"log",
".",
"log",
"(",
"POILogger",
".",
"WARN",
",",
"\"Not enough Escher data: \"",
"+",
"bytesRemaining",
"+",
"\" bytes remaining but no space left\"",
")",
";",
"}",
"}",
"}",
"return",
"bytesWritten",
";",
"}"
] |
public override int FillFields(byte[] data, int offset, IEscherRecordFactory recordFactory){int bytesRemaining = ReadHeader(data, offset);int bytesWritten = 8;offset += 8;while (bytesRemaining > 0 && offset < data.Length){EscherRecord child = recordFactory.CreateRecord(data, offset);int childBytesWritten = child.FillFields(data, offset, recordFactory);bytesWritten += childBytesWritten;offset += childBytesWritten;bytesRemaining -= childBytesWritten;AddChildRecord(child);if (offset >= data.Length && bytesRemaining > 0){_remainingLength = bytesRemaining;log.Log(POILogger.WARN, "Not enough Escher data: " + bytesRemaining + " bytes remaining but no space left");}}return bytesWritten;}
|
train
| false
|
9,233
|
public void startElement(String namespace, String simple, String qualified,Attributes attributes) {int elemType = getElementType(qualified);switch (elemType) {case PAGE:title = null;body = null;time = null;id = null;break;case BODY:case DATE:case TITLE:case ID:contents.setLength(0);break;default:}}
|
[
"public",
"void",
"startElement",
"(",
"String",
"namespace",
",",
"String",
"simple",
",",
"String",
"qualified",
",",
"Attributes",
"attributes",
")",
"{",
"int",
"elemType",
"=",
"getElementType",
"(",
"qualified",
")",
";",
"switch",
"(",
"elemType",
")",
"{",
"case",
"PAGE",
":",
"title",
"=",
"null",
";",
"body",
"=",
"null",
";",
"time",
"=",
"null",
";",
"id",
"=",
"null",
";",
"break",
";",
"case",
"BODY",
":",
"case",
"DATE",
":",
"case",
"TITLE",
":",
"case",
"ID",
":",
"contents",
".",
"setLength",
"(",
"0",
")",
";",
"break",
";",
"default",
":",
"}",
"}"
] |
public override void StartElement(string @namespace, string simple, string qualified,IAttributes attributes){int elemType = GetElementType(qualified);switch (elemType){case PAGE:title = null;body = null;time = null;id = null;break;case BODY:case DATE:case TITLE:case ID:contents.Length = 0;break;default:break;}}
|
train
| false
|
9,234
|
public AbbreviatedObjectId abbreviate(int len) {final int a = AbbreviatedObjectId.mask(len, 1, w1);final int b = AbbreviatedObjectId.mask(len, 2, w2);final int c = AbbreviatedObjectId.mask(len, 3, w3);final int d = AbbreviatedObjectId.mask(len, 4, w4);final int e = AbbreviatedObjectId.mask(len, 5, w5);return new AbbreviatedObjectId(len, a, b, c, d, e);}
|
[
"public",
"AbbreviatedObjectId",
"abbreviate",
"(",
"int",
"len",
")",
"{",
"final",
"int",
"a",
"=",
"AbbreviatedObjectId",
".",
"mask",
"(",
"len",
",",
"1",
",",
"w1",
")",
";",
"final",
"int",
"b",
"=",
"AbbreviatedObjectId",
".",
"mask",
"(",
"len",
",",
"2",
",",
"w2",
")",
";",
"final",
"int",
"c",
"=",
"AbbreviatedObjectId",
".",
"mask",
"(",
"len",
",",
"3",
",",
"w3",
")",
";",
"final",
"int",
"d",
"=",
"AbbreviatedObjectId",
".",
"mask",
"(",
"len",
",",
"4",
",",
"w4",
")",
";",
"final",
"int",
"e",
"=",
"AbbreviatedObjectId",
".",
"mask",
"(",
"len",
",",
"5",
",",
"w5",
")",
";",
"return",
"new",
"AbbreviatedObjectId",
"(",
"len",
",",
"a",
",",
"b",
",",
"c",
",",
"d",
",",
"e",
")",
";",
"}"
] |
public virtual AbbreviatedObjectId Abbreviate(int len){int a = AbbreviatedObjectId.Mask(len, 1, w1);int b = AbbreviatedObjectId.Mask(len, 2, w2);int c = AbbreviatedObjectId.Mask(len, 3, w3);int d = AbbreviatedObjectId.Mask(len, 4, w4);int e = AbbreviatedObjectId.Mask(len, 5, w5);return new AbbreviatedObjectId(len, a, b, c, d, e);}
|
train
| false
|
9,235
|
public String toString() {return "{"+precedence+">=prec}?";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"{\"",
"+",
"precedence",
"+",
"\">=prec}?\"",
";",
"}"
] |
public override string ToString(){return "{" + precedence + ">=prec}?";}
|
train
| false
|
9,236
|
public IntBuffer put(IntBuffer buf) {throw new ReadOnlyBufferException();}
|
[
"public",
"IntBuffer",
"put",
"(",
"IntBuffer",
"buf",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] |
public override java.nio.IntBuffer put(java.nio.IntBuffer buf){throw new java.nio.ReadOnlyBufferException();}
|
train
| false
|
9,237
|
public static PathSuffixFilter create(String path) {if (path.length() == 0)throw new IllegalArgumentException(JGitText.get().emptyPathNotPermitted);return new PathSuffixFilter(path);}
|
[
"public",
"static",
"PathSuffixFilter",
"create",
"(",
"String",
"path",
")",
"{",
"if",
"(",
"path",
".",
"length",
"(",
")",
"==",
"0",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"emptyPathNotPermitted",
")",
";",
"return",
"new",
"PathSuffixFilter",
"(",
"path",
")",
";",
"}"
] |
public static NGit.Treewalk.Filter.PathSuffixFilter Create(string path){if (path.Length == 0){throw new ArgumentException(JGitText.Get().emptyPathNotPermitted);}return new NGit.Treewalk.Filter.PathSuffixFilter(path);}
|
train
| false
|
9,239
|
public void write(ByteBuffer src, long position) {long endPosition = position + src.capacity();if(endPosition > buffer.length) {extend(endPosition);}src.get(buffer, (int)position, src.capacity());if(endPosition > size) {size = endPosition;}}
|
[
"public",
"void",
"write",
"(",
"ByteBuffer",
"src",
",",
"long",
"position",
")",
"{",
"long",
"endPosition",
"=",
"position",
"+",
"src",
".",
"capacity",
"(",
")",
";",
"if",
"(",
"endPosition",
">",
"buffer",
".",
"length",
")",
"{",
"extend",
"(",
"endPosition",
")",
";",
"}",
"src",
".",
"get",
"(",
"buffer",
",",
"(",
"int",
")",
"position",
",",
"src",
".",
"capacity",
"(",
")",
")",
";",
"if",
"(",
"endPosition",
">",
"size",
")",
"{",
"size",
"=",
"endPosition",
";",
"}",
"}"
] |
public override void Write(ByteBuffer src, long position){long endPosition = position + src.Length;if (endPosition > buffer.Length){Extend(endPosition);}src.Read(buffer, (int)position, src.Length);if (endPosition > size){size = endPosition;}}
|
train
| false
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.