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 |
|---|---|---|---|---|---|
8,918
|
public FieldType(IndexableFieldType ref) {this.stored = ref.stored();this.tokenized = ref.tokenized();this.storeTermVectors = ref.storeTermVectors();this.storeTermVectorOffsets = ref.storeTermVectorOffsets();this.storeTermVectorPositions = ref.storeTermVectorPositions();this.storeTermVectorPayloads = ref.storeTermVectorPayloads();this.omitNorms = ref.omitNorms();this.indexOptions = ref.indexOptions();this.docValuesType = ref.docValuesType();this.dimensionCount = ref.pointDimensionCount();this.indexDimensionCount = ref.pointIndexDimensionCount();this.dimensionNumBytes = ref.pointNumBytes();if (ref.getAttributes() != null) {this.attributes = new HashMap<>(ref.getAttributes());}}
|
[
"public",
"FieldType",
"(",
"IndexableFieldType",
"ref",
")",
"{",
"this",
".",
"stored",
"=",
"ref",
".",
"stored",
"(",
")",
";",
"this",
".",
"tokenized",
"=",
"ref",
".",
"tokenized",
"(",
")",
";",
"this",
".",
"storeTermVectors",
"=",
"ref",
".",
"storeTermVectors",
"(",
")",
";",
"this",
".",
"storeTermVectorOffsets",
"=",
"ref",
".",
"storeTermVectorOffsets",
"(",
")",
";",
"this",
".",
"storeTermVectorPositions",
"=",
"ref",
".",
"storeTermVectorPositions",
"(",
")",
";",
"this",
".",
"storeTermVectorPayloads",
"=",
"ref",
".",
"storeTermVectorPayloads",
"(",
")",
";",
"this",
".",
"omitNorms",
"=",
"ref",
".",
"omitNorms",
"(",
")",
";",
"this",
".",
"indexOptions",
"=",
"ref",
".",
"indexOptions",
"(",
")",
";",
"this",
".",
"docValuesType",
"=",
"ref",
".",
"docValuesType",
"(",
")",
";",
"this",
".",
"dimensionCount",
"=",
"ref",
".",
"pointDimensionCount",
"(",
")",
";",
"this",
".",
"indexDimensionCount",
"=",
"ref",
".",
"pointIndexDimensionCount",
"(",
")",
";",
"this",
".",
"dimensionNumBytes",
"=",
"ref",
".",
"pointNumBytes",
"(",
")",
";",
"if",
"(",
"ref",
".",
"getAttributes",
"(",
")",
"!=",
"null",
")",
"{",
"this",
".",
"attributes",
"=",
"new",
"HashMap",
"<",
">",
"(",
"ref",
".",
"getAttributes",
"(",
")",
")",
";",
"}",
"}"
] |
public FieldType(FieldType @ref){this.indexed = @ref.IsIndexed;this.stored = @ref.IsStored;this.tokenized = @ref.IsTokenized;this.storeTermVectors = @ref.StoreTermVectors;this.storeTermVectorOffsets = @ref.StoreTermVectorOffsets;this.storeTermVectorPositions = @ref.StoreTermVectorPositions;this.storeTermVectorPayloads = @ref.StoreTermVectorPayloads;this.omitNorms = @ref.OmitNorms;this.indexOptions = @ref.IndexOptions;this.docValueType = @ref.DocValueType;this.numericType = @ref.NumericType;}
|
train
| false
|
8,919
|
public RestoreWorkspaceResult restoreWorkspace(RestoreWorkspaceRequest request) {request = beforeClientExecution(request);return executeRestoreWorkspace(request);}
|
[
"public",
"RestoreWorkspaceResult",
"restoreWorkspace",
"(",
"RestoreWorkspaceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRestoreWorkspace",
"(",
"request",
")",
";",
"}"
] |
public virtual RestoreWorkspaceResponse RestoreWorkspace(RestoreWorkspaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = RestoreWorkspaceRequestMarshaller.Instance;options.ResponseUnmarshaller = RestoreWorkspaceResponseUnmarshaller.Instance;return Invoke<RestoreWorkspaceResponse>(request, options);}
|
train
| false
|
8,920
|
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[CODEPAGE]\n");buffer.append(" .codepage = ").append(Integer.toHexString(getCodepage())).append("\n");buffer.append("[/CODEPAGE]\n");return buffer.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[CODEPAGE]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .codepage = \"",
")",
".",
"append",
"(",
"Integer",
".",
"toHexString",
"(",
"getCodepage",
"(",
")",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\"[/CODEPAGE]\\n\"",
")",
";",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] |
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[CODEPAGE]\n");buffer.Append(" .codepage = ").Append(StringUtil.ToHexString(Codepage)).Append("\n");buffer.Append("[/CODEPAGE]\n");return buffer.ToString();}
|
train
| false
|
8,921
|
public GetRepoTagsRequest() {super("cr", "2016-06-07", "GetRepoTags", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/tags");setMethod(MethodType.GET);}
|
[
"public",
"GetRepoTagsRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"GetRepoTags\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/repos/[RepoNamespace]/[RepoName]/tags\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"GET",
")",
";",
"}"
] |
public GetRepoTagsRequest(): base("cr", "2016-06-07", "GetRepoTags", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/tags";Method = MethodType.GET;}
|
train
| false
|
8,922
|
public ProtectRecord clone() {return copy();}
|
[
"public",
"ProtectRecord",
"clone",
"(",
")",
"{",
"return",
"copy",
"(",
")",
";",
"}"
] |
public override Object Clone(){return new ProtectRecord(_options);}
|
train
| false
|
8,923
|
public ModifyDBParameterGroupResult modifyDBParameterGroup(ModifyDBParameterGroupRequest request) {request = beforeClientExecution(request);return executeModifyDBParameterGroup(request);}
|
[
"public",
"ModifyDBParameterGroupResult",
"modifyDBParameterGroup",
"(",
"ModifyDBParameterGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyDBParameterGroup",
"(",
"request",
")",
";",
"}"
] |
public virtual ModifyDBParameterGroupResponse ModifyDBParameterGroup(ModifyDBParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBParameterGroupResponseUnmarshaller.Instance;return Invoke<ModifyDBParameterGroupResponse>(request, options);}
|
train
| true
|
8,924
|
public QueryParserConfig build() {return new QueryParserConfig(this);}
|
[
"public",
"QueryParserConfig",
"build",
"(",
")",
"{",
"return",
"new",
"QueryParserConfig",
"(",
"this",
")",
";",
"}"
] |
public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}
|
train
| false
|
8,925
|
public Set<String> getSections() {return getState().getSections();}
|
[
"public",
"Set",
"<",
"String",
">",
"getSections",
"(",
")",
"{",
"return",
"getState",
"(",
")",
".",
"getSections",
"(",
")",
";",
"}"
] |
public virtual ICollection<string> GetSections(){return GetState().GetSections();}
|
train
| false
|
8,926
|
public UpdateProxySessionResult updateProxySession(UpdateProxySessionRequest request) {request = beforeClientExecution(request);return executeUpdateProxySession(request);}
|
[
"public",
"UpdateProxySessionResult",
"updateProxySession",
"(",
"UpdateProxySessionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateProxySession",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateProxySessionResponse UpdateProxySession(UpdateProxySessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateProxySessionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateProxySessionResponseUnmarshaller.Instance;return Invoke<UpdateProxySessionResponse>(request, options);}
|
train
| false
|
8,927
|
public double getAvp() {return maxGoodPoints==0 ? 0 : pReleventSum/maxGoodPoints;}
|
[
"public",
"double",
"getAvp",
"(",
")",
"{",
"return",
"maxGoodPoints",
"==",
"0",
"?",
"0",
":",
"pReleventSum",
"/",
"maxGoodPoints",
";",
"}"
] |
public virtual double GetAvp(){return maxGoodPoints == 0 ? 0 : pReleventSum / maxGoodPoints;}
|
train
| false
|
8,928
|
public ListCompatibleImagesResult listCompatibleImages(ListCompatibleImagesRequest request) {request = beforeClientExecution(request);return executeListCompatibleImages(request);}
|
[
"public",
"ListCompatibleImagesResult",
"listCompatibleImages",
"(",
"ListCompatibleImagesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListCompatibleImages",
"(",
"request",
")",
";",
"}"
] |
public virtual ListCompatibleImagesResponse ListCompatibleImages(ListCompatibleImagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListCompatibleImagesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListCompatibleImagesResponseUnmarshaller.Instance;return Invoke<ListCompatibleImagesResponse>(request, options);}
|
train
| true
|
8,929
|
public int getSourceEnd() {Region r = outRegion;return r.sourceStart + r.length;}
|
[
"public",
"int",
"getSourceEnd",
"(",
")",
"{",
"Region",
"r",
"=",
"outRegion",
";",
"return",
"r",
".",
"sourceStart",
"+",
"r",
".",
"length",
";",
"}"
] |
public virtual int GetSourceEnd(){Region r = currentSource.regionList;return r.sourceStart + r.length;}
|
train
| false
|
8,930
|
public int read() {if (pos < size) {return s.charAt(pos++);} else {s = null;return -1;}}
|
[
"public",
"int",
"read",
"(",
")",
"{",
"if",
"(",
"pos",
"<",
"size",
")",
"{",
"return",
"s",
".",
"charAt",
"(",
"pos",
"++",
")",
";",
"}",
"else",
"{",
"s",
"=",
"null",
";",
"return",
"-",
"1",
";",
"}",
"}"
] |
public override int Read(){char[] result = new char[1];if (Read(result, 0, 1, false) != -1){return result[0];}return -1;}
|
train
| false
|
8,931
|
public GetMediaForFragmentListResult getMediaForFragmentList(GetMediaForFragmentListRequest request) {request = beforeClientExecution(request);return executeGetMediaForFragmentList(request);}
|
[
"public",
"GetMediaForFragmentListResult",
"getMediaForFragmentList",
"(",
"GetMediaForFragmentListRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetMediaForFragmentList",
"(",
"request",
")",
";",
"}"
] |
public virtual GetMediaForFragmentListResponse GetMediaForFragmentList(GetMediaForFragmentListRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMediaForFragmentListRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMediaForFragmentListResponseUnmarshaller.Instance;return Invoke<GetMediaForFragmentListResponse>(request, options);}
|
train
| true
|
8,932
|
public BlendedTermQuery build() {return new BlendedTermQuery(ArrayUtil.copyOfSubArray(terms, 0, numTerms),ArrayUtil.copyOfSubArray(boosts, 0, numTerms),ArrayUtil.copyOfSubArray(contexts, 0, numTerms),rewriteMethod);}
|
[
"public",
"BlendedTermQuery",
"build",
"(",
")",
"{",
"return",
"new",
"BlendedTermQuery",
"(",
"ArrayUtil",
".",
"copyOfSubArray",
"(",
"terms",
",",
"0",
",",
"numTerms",
")",
",",
"ArrayUtil",
".",
"copyOfSubArray",
"(",
"boosts",
",",
"0",
",",
"numTerms",
")",
",",
"ArrayUtil",
".",
"copyOfSubArray",
"(",
"contexts",
",",
"0",
",",
"numTerms",
")",
",",
"rewriteMethod",
")",
";",
"}"
] |
public override WAH8DocIdSet Build(){if (this.wordNum != -1){AddWord(wordNum, (byte)word);}return base.Build();}
|
train
| false
|
8,933
|
public void write(byte[] buffer, int offset, int length) throws IOException {checkWritePrimitiveTypes();primitiveTypes.write(buffer, offset, length);}
|
[
"public",
"void",
"write",
"(",
"byte",
"[",
"]",
"buffer",
",",
"int",
"offset",
",",
"int",
"length",
")",
"throws",
"IOException",
"{",
"checkWritePrimitiveTypes",
"(",
")",
";",
"primitiveTypes",
".",
"write",
"(",
"buffer",
",",
"offset",
",",
"length",
")",
";",
"}"
] |
public override void write(byte[] buffer, int offset, int length){throw new System.NotImplementedException();}
|
train
| true
|
8,934
|
public ModifyScheduledActionResult modifyScheduledAction(ModifyScheduledActionRequest request) {request = beforeClientExecution(request);return executeModifyScheduledAction(request);}
|
[
"public",
"ModifyScheduledActionResult",
"modifyScheduledAction",
"(",
"ModifyScheduledActionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyScheduledAction",
"(",
"request",
")",
";",
"}"
] |
public virtual ModifyScheduledActionResponse ModifyScheduledAction(ModifyScheduledActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyScheduledActionRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyScheduledActionResponseUnmarshaller.Instance;return Invoke<ModifyScheduledActionResponse>(request, options);}
|
train
| false
|
8,935
|
public CreateEventRequest() {super("CloudPhoto", "2017-07-11", "CreateEvent", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
|
[
"public",
"CreateEventRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"CreateEvent\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] |
public CreateEventRequest(): base("CloudPhoto", "2017-07-11", "CreateEvent", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
|
train
| false
|
8,936
|
public DeleteDirectoryResult deleteDirectory(DeleteDirectoryRequest request) {request = beforeClientExecution(request);return executeDeleteDirectory(request);}
|
[
"public",
"DeleteDirectoryResult",
"deleteDirectory",
"(",
"DeleteDirectoryRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteDirectory",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteDirectoryResponse DeleteDirectory(DeleteDirectoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDirectoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDirectoryResponseUnmarshaller.Instance;return Invoke<DeleteDirectoryResponse>(request, options);}
|
train
| true
|
8,938
|
public PasswordRecord(int password) {field_1_password = password;}
|
[
"public",
"PasswordRecord",
"(",
"int",
"password",
")",
"{",
"field_1_password",
"=",
"password",
";",
"}"
] |
public PasswordRecord(int password){field_1_password = password;}
|
train
| false
|
8,939
|
public CzechStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
|
[
"public",
"CzechStemFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown parameters: \"",
"+",
"args",
")",
";",
"}",
"}"
] |
public CzechStemFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
train
| false
|
8,940
|
public CloseIgnoringInputStream(InputStream in) {super(in);}
|
[
"public",
"CloseIgnoringInputStream",
"(",
"InputStream",
"in",
")",
"{",
"super",
"(",
"in",
")",
";",
"}"
] |
public CloseIgnoringInputStream(Stream stream){_is = stream;}
|
train
| false
|
8,941
|
public Snapshot modifyClusterSnapshot(ModifyClusterSnapshotRequest request) {request = beforeClientExecution(request);return executeModifyClusterSnapshot(request);}
|
[
"public",
"Snapshot",
"modifyClusterSnapshot",
"(",
"ModifyClusterSnapshotRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyClusterSnapshot",
"(",
"request",
")",
";",
"}"
] |
public virtual ModifyClusterSnapshotResponse ModifyClusterSnapshot(ModifyClusterSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClusterSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClusterSnapshotResponseUnmarshaller.Instance;return Invoke<ModifyClusterSnapshotResponse>(request, options);}
|
train
| true
|
8,942
|
public boolean inErrorRecoveryMode(Parser recognizer) {return errorRecoveryMode;}
|
[
"public",
"boolean",
"inErrorRecoveryMode",
"(",
"Parser",
"recognizer",
")",
"{",
"return",
"errorRecoveryMode",
";",
"}"
] |
public virtual bool InErrorRecoveryMode(Parser recognizer){return errorRecoveryMode;}
|
train
| false
|
8,943
|
public FacetLabel(String dim, String[] path) {components = new String[1+path.length];components[0] = dim;System.arraycopy(path, 0, components, 1, path.length);length = components.length;checkComponents();}
|
[
"public",
"FacetLabel",
"(",
"String",
"dim",
",",
"String",
"[",
"]",
"path",
")",
"{",
"components",
"=",
"new",
"String",
"[",
"1",
"+",
"path",
".",
"length",
"]",
";",
"components",
"[",
"0",
"]",
"=",
"dim",
";",
"System",
".",
"arraycopy",
"(",
"path",
",",
"0",
",",
"components",
",",
"1",
",",
"path",
".",
"length",
")",
";",
"length",
"=",
"components",
".",
"length",
";",
"checkComponents",
"(",
")",
";",
"}"
] |
public FacetLabel(string dim, string[] path){Components = new string[1 + path.Length];Components[0] = dim;Array.Copy(path, 0, Components, 1, path.Length);Length = Components.Length;CheckComponents();}
|
train
| false
|
8,944
|
public UntagStreamResult untagStream(UntagStreamRequest request) {request = beforeClientExecution(request);return executeUntagStream(request);}
|
[
"public",
"UntagStreamResult",
"untagStream",
"(",
"UntagStreamRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUntagStream",
"(",
"request",
")",
";",
"}"
] |
public virtual UntagStreamResponse UntagStream(UntagStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = UntagStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = UntagStreamResponseUnmarshaller.Instance;return Invoke<UntagStreamResponse>(request, options);}
|
train
| true
|
8,945
|
public long addAndGet(long delta) {return count += delta;}
|
[
"public",
"long",
"addAndGet",
"(",
"long",
"delta",
")",
"{",
"return",
"count",
"+=",
"delta",
";",
"}"
] |
public override long AddAndGet(long delta){return count += delta;}
|
train
| false
|
8,946
|
public int read() throws IOException {synchronized (lock) {if (!isOpen()) {throw new IOException("InputStreamReader is closed");}char[] buf = new char[1];return read(buf, 0, 1) != -1 ? buf[0] : -1;}}
|
[
"public",
"int",
"read",
"(",
")",
"throws",
"IOException",
"{",
"synchronized",
"(",
"lock",
")",
"{",
"if",
"(",
"!",
"isOpen",
"(",
")",
")",
"{",
"throw",
"new",
"IOException",
"(",
"\"InputStreamReader is closed\"",
")",
";",
"}",
"char",
"[",
"]",
"buf",
"=",
"new",
"char",
"[",
"1",
"]",
";",
"return",
"read",
"(",
"buf",
",",
"0",
",",
"1",
")",
"!=",
"-",
"1",
"?",
"buf",
"[",
"0",
"]",
":",
"-",
"1",
";",
"}",
"}"
] |
public override int read(){lock (@lock){if (!isOpen()){throw new System.IO.IOException("InputStreamReader is closed");}char[] buf = new char[1];return read(buf, 0, 1) != -1 ? buf[0] : -1;}}
|
train
| true
|
8,947
|
public static int getEncodedSize(int numberOfItems) {return numberOfItems * ENCODED_SIZE;}
|
[
"public",
"static",
"int",
"getEncodedSize",
"(",
"int",
"numberOfItems",
")",
"{",
"return",
"numberOfItems",
"*",
"ENCODED_SIZE",
";",
"}"
] |
public static int GetEncodedSize(int numberOfItems){return numberOfItems * ENCODED_SIZE;}
|
train
| false
|
8,948
|
public PrintStream(File file, String csn) throws FileNotFoundException,UnsupportedEncodingException {super(new FileOutputStream(file));if (csn == null) {throw new NullPointerException();}if (!Charset.isSupported(csn)) {throw new UnsupportedEncodingException(csn);}encoding = csn;}
|
[
"public",
"PrintStream",
"(",
"File",
"file",
",",
"String",
"csn",
")",
"throws",
"FileNotFoundException",
",",
"UnsupportedEncodingException",
"{",
"super",
"(",
"new",
"FileOutputStream",
"(",
"file",
")",
")",
";",
"if",
"(",
"csn",
"==",
"null",
")",
"{",
"throw",
"new",
"NullPointerException",
"(",
")",
";",
"}",
"if",
"(",
"!",
"Charset",
".",
"isSupported",
"(",
"csn",
")",
")",
"{",
"throw",
"new",
"UnsupportedEncodingException",
"(",
"csn",
")",
";",
"}",
"encoding",
"=",
"csn",
";",
"}"
] |
public PrintStream(java.io.File file, string csn) : base(new java.io.FileOutputStream(file)){if (csn == null){throw new System.ArgumentNullException();}if (!java.nio.charset.Charset.isSupported(csn)){throw new java.io.UnsupportedEncodingException(csn);}encoding = csn;}
|
train
| false
|
8,949
|
public E poll() {return size == 0 ? null : removeFirst();}
|
[
"public",
"E",
"poll",
"(",
")",
"{",
"return",
"size",
"==",
"0",
"?",
"null",
":",
"removeFirst",
"(",
")",
";",
"}"
] |
public virtual E poll(){return _size == 0 ? default(E) : removeFirst();}
|
train
| false
|
8,950
|
public void write(char[] cbuf, int offset, int count) throws IOException {synchronized (lock) {checkNotClosed();if (cbuf == null) {throw new NullPointerException("buffer == null");}Arrays.checkOffsetAndCount(cbuf.length, offset, count);if (pos == 0 && count >= this.buf.length) {out.write(cbuf, offset, count);return;}int available = this.buf.length - pos;if (count < available) {available = count;}if (available > 0) {System.arraycopy(cbuf, offset, this.buf, pos, available);pos += available;}if (pos == this.buf.length) {out.write(this.buf, 0, this.buf.length);pos = 0;if (count > available) {offset += available;available = count - available;if (available >= this.buf.length) {out.write(cbuf, offset, available);return;}System.arraycopy(cbuf, offset, this.buf, pos, available);pos += available;}}}}
|
[
"public",
"void",
"write",
"(",
"char",
"[",
"]",
"cbuf",
",",
"int",
"offset",
",",
"int",
"count",
")",
"throws",
"IOException",
"{",
"synchronized",
"(",
"lock",
")",
"{",
"checkNotClosed",
"(",
")",
";",
"if",
"(",
"cbuf",
"==",
"null",
")",
"{",
"throw",
"new",
"NullPointerException",
"(",
"\"buffer == null\"",
")",
";",
"}",
"Arrays",
".",
"checkOffsetAndCount",
"(",
"cbuf",
".",
"length",
",",
"offset",
",",
"count",
")",
";",
"if",
"(",
"pos",
"==",
"0",
"&&",
"count",
">=",
"this",
".",
"buf",
".",
"length",
")",
"{",
"out",
".",
"write",
"(",
"cbuf",
",",
"offset",
",",
"count",
")",
";",
"return",
";",
"}",
"int",
"available",
"=",
"this",
".",
"buf",
".",
"length",
"-",
"pos",
";",
"if",
"(",
"count",
"<",
"available",
")",
"{",
"available",
"=",
"count",
";",
"}",
"if",
"(",
"available",
">",
"0",
")",
"{",
"System",
".",
"arraycopy",
"(",
"cbuf",
",",
"offset",
",",
"this",
".",
"buf",
",",
"pos",
",",
"available",
")",
";",
"pos",
"+=",
"available",
";",
"}",
"if",
"(",
"pos",
"==",
"this",
".",
"buf",
".",
"length",
")",
"{",
"out",
".",
"write",
"(",
"this",
".",
"buf",
",",
"0",
",",
"this",
".",
"buf",
".",
"length",
")",
";",
"pos",
"=",
"0",
";",
"if",
"(",
"count",
">",
"available",
")",
"{",
"offset",
"+=",
"available",
";",
"available",
"=",
"count",
"-",
"available",
";",
"if",
"(",
"available",
">=",
"this",
".",
"buf",
".",
"length",
")",
"{",
"out",
".",
"write",
"(",
"cbuf",
",",
"offset",
",",
"available",
")",
";",
"return",
";",
"}",
"System",
".",
"arraycopy",
"(",
"cbuf",
",",
"offset",
",",
"this",
".",
"buf",
",",
"pos",
",",
"available",
")",
";",
"pos",
"+=",
"available",
";",
"}",
"}",
"}",
"}"
] |
public override void write(char[] cbuf, int offset, int count){lock (@lock){checkNotClosed();if (cbuf == null){throw new System.ArgumentNullException("buffer == null");}java.util.Arrays.checkOffsetAndCount(cbuf.Length, offset, count);if (pos == 0 && count >= this.buf.Length){@out.write(cbuf, offset, count);return;}int available = this.buf.Length - pos;if (count < available){available = count;}if (available > 0){System.Array.Copy(cbuf, offset, this.buf, pos, available);pos += available;}if (pos == this.buf.Length){@out.write(this.buf, 0, this.buf.Length);pos = 0;if (count > available){offset += available;available = count - available;if (available >= this.buf.Length){@out.write(cbuf, offset, available);return;}System.Array.Copy(cbuf, offset, this.buf, pos, available);pos += available;}}}}
|
train
| false
|
8,951
|
public String toString(String enc) throws UnsupportedEncodingException {return new String(toByteArray(), enc);}
|
[
"public",
"String",
"toString",
"(",
"String",
"enc",
")",
"throws",
"UnsupportedEncodingException",
"{",
"return",
"new",
"String",
"(",
"toByteArray",
"(",
")",
",",
"enc",
")",
";",
"}"
] |
public virtual string toString(string enc){throw new System.NotImplementedException();}
|
train
| false
|
8,952
|
public CreateRoomMembershipResult createRoomMembership(CreateRoomMembershipRequest request) {request = beforeClientExecution(request);return executeCreateRoomMembership(request);}
|
[
"public",
"CreateRoomMembershipResult",
"createRoomMembership",
"(",
"CreateRoomMembershipRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateRoomMembership",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateRoomMembershipResponse CreateRoomMembership(CreateRoomMembershipRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRoomMembershipRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRoomMembershipResponseUnmarshaller.Instance;return Invoke<CreateRoomMembershipResponse>(request, options);}
|
train
| false
|
8,954
|
public int getDFASize() {int n = 0;DFA[] decisionToDFA = atnSimulator.decisionToDFA;for (int i = 0; i < decisionToDFA.length; i++) {n += getDFASize(i);}return n;}
|
[
"public",
"int",
"getDFASize",
"(",
")",
"{",
"int",
"n",
"=",
"0",
";",
"DFA",
"[",
"]",
"decisionToDFA",
"=",
"atnSimulator",
".",
"decisionToDFA",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"decisionToDFA",
".",
"length",
";",
"i",
"++",
")",
"{",
"n",
"+=",
"getDFASize",
"(",
"i",
")",
";",
"}",
"return",
"n",
";",
"}"
] |
public int getDFASize(){int n = 0;DFA[] decisionToDFA = atnSimulator.decisionToDFA;for (int i = 0; i < decisionToDFA.Length; i++){n += getDFASize(i);}return n;}
|
train
| false
|
8,955
|
public static CodePointCharStream fromString(String s) {return fromString(s, IntStream.UNKNOWN_SOURCE_NAME);}
|
[
"public",
"static",
"CodePointCharStream",
"fromString",
"(",
"String",
"s",
")",
"{",
"return",
"fromString",
"(",
"s",
",",
"IntStream",
".",
"UNKNOWN_SOURCE_NAME",
")",
";",
"}"
] |
public static ICharStream fromstring(string s){return new CodePointCharStream(s);}
|
train
| false
|
8,956
|
public DeleteUserSourceAccountRequest() {super("cr", "2016-06-07", "DeleteUserSourceAccount", "cr");setUriPattern("/users/sourceAccount/[SourceAccountId]");setMethod(MethodType.DELETE);}
|
[
"public",
"DeleteUserSourceAccountRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"DeleteUserSourceAccount\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/users/sourceAccount/[SourceAccountId]\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"DELETE",
")",
";",
"}"
] |
public DeleteUserSourceAccountRequest(): base("cr", "2016-06-07", "DeleteUserSourceAccount", "cr", "openAPI"){UriPattern = "/users/sourceAccount/[SourceAccountId]";Method = MethodType.DELETE;}
|
train
| false
|
8,957
|
public static Proxy proxyFor(ProxySelector proxySelector, URL u)throws ConnectException {try {URI uri = new URI(u.getProtocol(), null, u.getHost(), u.getPort(),null, null, null);return proxySelector.select(uri).get(0);} catch (URISyntaxException e) {final ConnectException err;err = new ConnectException(MessageFormat.format(JGitText.get().cannotDetermineProxyFor, u));err.initCause(e);throw err;}}
|
[
"public",
"static",
"Proxy",
"proxyFor",
"(",
"ProxySelector",
"proxySelector",
",",
"URL",
"u",
")",
"throws",
"ConnectException",
"{",
"try",
"{",
"URI",
"uri",
"=",
"new",
"URI",
"(",
"u",
".",
"getProtocol",
"(",
")",
",",
"null",
",",
"u",
".",
"getHost",
"(",
")",
",",
"u",
".",
"getPort",
"(",
")",
",",
"null",
",",
"null",
",",
"null",
")",
";",
"return",
"proxySelector",
".",
"select",
"(",
"uri",
")",
".",
"get",
"(",
"0",
")",
";",
"}",
"catch",
"(",
"URISyntaxException",
"e",
")",
"{",
"final",
"ConnectException",
"err",
";",
"err",
"=",
"new",
"ConnectException",
"(",
"MessageFormat",
".",
"format",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"cannotDetermineProxyFor",
",",
"u",
")",
")",
";",
"err",
".",
"initCause",
"(",
"e",
")",
";",
"throw",
"err",
";",
"}",
"}"
] |
public static Proxy ProxyFor(ProxySelector proxySelector, Uri u){try{return proxySelector.Select(u.ToURI())[0];}catch (URISyntaxException e){ConnectException err;err = new ConnectException(MessageFormat.Format(JGitText.Get().cannotDetermineProxyFor, u));Sharpen.Extensions.InitCause(err, e);throw err;}}
|
train
| false
|
8,958
|
public String toString() {String dsc = null;switch (this.type) {case TYPE_UNDERFLOW:dsc = "UNDERFLOW error";break;case TYPE_OVERFLOW:dsc = "OVERFLOW error";break;case TYPE_UNMAPPABLE_CHAR:dsc = "Unmappable-character error with erroneous input length "+ this.length;break;case TYPE_MALFORMED_INPUT:dsc = "Malformed-input error with erroneous input length "+ this.length;break;default:dsc = "";break;}return getClass().getName() + "[" + dsc + "]";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"String",
"dsc",
"=",
"null",
";",
"switch",
"(",
"this",
".",
"type",
")",
"{",
"case",
"TYPE_UNDERFLOW",
":",
"dsc",
"=",
"\"UNDERFLOW error\"",
";",
"break",
";",
"case",
"TYPE_OVERFLOW",
":",
"dsc",
"=",
"\"OVERFLOW error\"",
";",
"break",
";",
"case",
"TYPE_UNMAPPABLE_CHAR",
":",
"dsc",
"=",
"\"Unmappable-character error with erroneous input length \"",
"+",
"this",
".",
"length",
";",
"break",
";",
"case",
"TYPE_MALFORMED_INPUT",
":",
"dsc",
"=",
"\"Malformed-input error with erroneous input length \"",
"+",
"this",
".",
"length",
";",
"break",
";",
"default",
":",
"dsc",
"=",
"\"\"",
";",
"break",
";",
"}",
"return",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
"+",
"\"[\"",
"+",
"dsc",
"+",
"\"]\"",
";",
"}"
] |
public override string ToString(){string dsc = null;switch (this.type){case TYPE_UNDERFLOW:{dsc = "UNDERFLOW error";break;}case TYPE_OVERFLOW:{dsc = "OVERFLOW error";break;}case TYPE_UNMAPPABLE_CHAR:{dsc = "Unmappable-character error with erroneous input length " + this._length;break;}case TYPE_MALFORMED_INPUT:{dsc = "Malformed-input error with erroneous input length " + this._length;break;}default:{dsc = string.Empty;break;}}return GetType().FullName + "[" + dsc + "]";}
|
train
| false
|
8,959
|
public PredictResult predict(PredictRequest request) {request = beforeClientExecution(request);return executePredict(request);}
|
[
"public",
"PredictResult",
"predict",
"(",
"PredictRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePredict",
"(",
"request",
")",
";",
"}"
] |
public virtual PredictResponse Predict(PredictRequest request){var options = new InvokeOptions();options.RequestMarshaller = PredictRequestMarshaller.Instance;options.ResponseUnmarshaller = PredictResponseUnmarshaller.Instance;return Invoke<PredictResponse>(request, options);}
|
train
| true
|
8,961
|
public DescribeMatchmakingResult describeMatchmaking(DescribeMatchmakingRequest request) {request = beforeClientExecution(request);return executeDescribeMatchmaking(request);}
|
[
"public",
"DescribeMatchmakingResult",
"describeMatchmaking",
"(",
"DescribeMatchmakingRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeMatchmaking",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeMatchmakingResponse DescribeMatchmaking(DescribeMatchmakingRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeMatchmakingRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeMatchmakingResponseUnmarshaller.Instance;return Invoke<DescribeMatchmakingResponse>(request, options);}
|
train
| true
|
8,962
|
public DeleteDeviceUsageDataResult deleteDeviceUsageData(DeleteDeviceUsageDataRequest request) {request = beforeClientExecution(request);return executeDeleteDeviceUsageData(request);}
|
[
"public",
"DeleteDeviceUsageDataResult",
"deleteDeviceUsageData",
"(",
"DeleteDeviceUsageDataRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteDeviceUsageData",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteDeviceUsageDataResponse DeleteDeviceUsageData(DeleteDeviceUsageDataRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDeviceUsageDataRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDeviceUsageDataResponseUnmarshaller.Instance;return Invoke<DeleteDeviceUsageDataResponse>(request, options);}
|
train
| false
|
8,963
|
public void removeHyperlink() {for (Iterator<RecordBase> it = _sheet.getSheet().getRecords().iterator(); it.hasNext();) {RecordBase rec = it.next();if (rec instanceof HyperlinkRecord) {HyperlinkRecord link = (HyperlinkRecord) rec;if (link.getFirstColumn() == _record.getColumn() && link.getFirstRow() == _record.getRow()) {it.remove();return;}}}}
|
[
"public",
"void",
"removeHyperlink",
"(",
")",
"{",
"for",
"(",
"Iterator",
"<",
"RecordBase",
">",
"it",
"=",
"_sheet",
".",
"getSheet",
"(",
")",
".",
"getRecords",
"(",
")",
".",
"iterator",
"(",
")",
";",
"it",
".",
"hasNext",
"(",
")",
";",
")",
"{",
"RecordBase",
"rec",
"=",
"it",
".",
"next",
"(",
")",
";",
"if",
"(",
"rec",
"instanceof",
"HyperlinkRecord",
")",
"{",
"HyperlinkRecord",
"link",
"=",
"(",
"HyperlinkRecord",
")",
"rec",
";",
"if",
"(",
"link",
".",
"getFirstColumn",
"(",
")",
"==",
"_record",
".",
"getColumn",
"(",
")",
"&&",
"link",
".",
"getFirstRow",
"(",
")",
"==",
"_record",
".",
"getRow",
"(",
")",
")",
"{",
"it",
".",
"remove",
"(",
")",
";",
"return",
";",
"}",
"}",
"}",
"}"
] |
public void RemoveHyperlink(){RecordBase toRemove = null;for (IEnumerator<RecordBase> it = _sheet.Sheet.Records.GetEnumerator(); it.MoveNext(); ){RecordBase rec = it.Current;if (rec is HyperlinkRecord){HyperlinkRecord link = (HyperlinkRecord)rec;if (link.FirstColumn == _record.Column && link.FirstRow == _record.Row){toRemove = rec;break;}}}if (toRemove != null)_sheet.Sheet.Records.Remove(toRemove);}
|
train
| false
|
8,964
|
public RegisterInstancesWithLoadBalancerRequest(String loadBalancerName, java.util.List<Instance> instances) {setLoadBalancerName(loadBalancerName);setInstances(instances);}
|
[
"public",
"RegisterInstancesWithLoadBalancerRequest",
"(",
"String",
"loadBalancerName",
",",
"java",
".",
"util",
".",
"List",
"<",
"Instance",
">",
"instances",
")",
"{",
"setLoadBalancerName",
"(",
"loadBalancerName",
")",
";",
"setInstances",
"(",
"instances",
")",
";",
"}"
] |
public RegisterInstancesWithLoadBalancerRequest(string loadBalancerName, List<Instance> instances){_loadBalancerName = loadBalancerName;_instances = instances;}
|
train
| false
|
8,965
|
public AssociateResolverRuleResult associateResolverRule(AssociateResolverRuleRequest request) {request = beforeClientExecution(request);return executeAssociateResolverRule(request);}
|
[
"public",
"AssociateResolverRuleResult",
"associateResolverRule",
"(",
"AssociateResolverRuleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociateResolverRule",
"(",
"request",
")",
";",
"}"
] |
public virtual AssociateResolverRuleResponse AssociateResolverRule(AssociateResolverRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateResolverRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateResolverRuleResponseUnmarshaller.Instance;return Invoke<AssociateResolverRuleResponse>(request, options);}
|
train
| true
|
8,966
|
@Override public Set<Entry<K, V>> entrySet() {throw new UnsupportedOperationException();}
|
[
"@",
"Override",
"public",
"Set",
"<",
"Entry",
"<",
"K",
",",
"V",
">",
">",
"entrySet",
"(",
")",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
")",
";",
"}"
] |
public override java.util.Set<java.util.MapClass.Entry<K, V>> entrySet(){throw new System.NotSupportedException();}
|
train
| false
|
8,967
|
public TreeFilter negate() {return a;}
|
[
"public",
"TreeFilter",
"negate",
"(",
")",
"{",
"return",
"a",
";",
"}"
] |
public override TreeFilter Negate(){return a;}
|
train
| false
|
8,968
|
public SearchProfilesResult searchProfiles(SearchProfilesRequest request) {request = beforeClientExecution(request);return executeSearchProfiles(request);}
|
[
"public",
"SearchProfilesResult",
"searchProfiles",
"(",
"SearchProfilesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSearchProfiles",
"(",
"request",
")",
";",
"}"
] |
public virtual SearchProfilesResponse SearchProfiles(SearchProfilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchProfilesRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchProfilesResponseUnmarshaller.Instance;return Invoke<SearchProfilesResponse>(request, options);}
|
train
| true
|
8,969
|
public DBSubnetGroup modifyDBSubnetGroup(ModifyDBSubnetGroupRequest request) {request = beforeClientExecution(request);return executeModifyDBSubnetGroup(request);}
|
[
"public",
"DBSubnetGroup",
"modifyDBSubnetGroup",
"(",
"ModifyDBSubnetGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyDBSubnetGroup",
"(",
"request",
")",
";",
"}"
] |
public virtual ModifyDBSubnetGroupResponse ModifyDBSubnetGroup(ModifyDBSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBSubnetGroupResponseUnmarshaller.Instance;return Invoke<ModifyDBSubnetGroupResponse>(request, options);}
|
train
| true
|
8,970
|
public int compareTo(String version) {final String[] parts = version.split(":");final long indexGen = Long.parseLong(parts[0], RADIX);final long taxoGen = Long.parseLong(parts[1], RADIX);final long indexCommitGen = indexCommit.getGeneration();final long taxoCommitGen = taxoCommit.getGeneration();if (indexCommitGen < indexGen) {return -1;} else if (indexCommitGen > indexGen) {return 1;} else {return taxoCommitGen < taxoGen ? -1 : (taxoCommitGen > taxoGen ? 1 : 0);}}
|
[
"public",
"int",
"compareTo",
"(",
"String",
"version",
")",
"{",
"final",
"String",
"[",
"]",
"parts",
"=",
"version",
".",
"split",
"(",
"\":\"",
")",
";",
"final",
"long",
"indexGen",
"=",
"Long",
".",
"parseLong",
"(",
"parts",
"[",
"0",
"]",
",",
"RADIX",
")",
";",
"final",
"long",
"taxoGen",
"=",
"Long",
".",
"parseLong",
"(",
"parts",
"[",
"1",
"]",
",",
"RADIX",
")",
";",
"final",
"long",
"indexCommitGen",
"=",
"indexCommit",
".",
"getGeneration",
"(",
")",
";",
"final",
"long",
"taxoCommitGen",
"=",
"taxoCommit",
".",
"getGeneration",
"(",
")",
";",
"if",
"(",
"indexCommitGen",
"<",
"indexGen",
")",
"{",
"return",
"-",
"1",
";",
"}",
"else",
"if",
"(",
"indexCommitGen",
">",
"indexGen",
")",
"{",
"return",
"1",
";",
"}",
"else",
"{",
"return",
"taxoCommitGen",
"<",
"taxoGen",
"?",
"-",
"1",
":",
"(",
"taxoCommitGen",
">",
"taxoGen",
"?",
"1",
":",
"0",
")",
";",
"}",
"}"
] |
public virtual int CompareTo(string version){string[] parts = version.Split(':').TrimEnd();long indexGen = long.Parse(parts[0], NumberStyles.HexNumber);long taxonomyGen = long.Parse(parts[1], NumberStyles.HexNumber);long indexCommitGen = indexCommit.Generation;long taxonomyCommitGen = taxonomyCommit.Generation;if (indexCommitGen < indexGen)return -1;if (indexCommitGen > indexGen)return 1;return taxonomyCommitGen < taxonomyGen ? -1 : (taxonomyCommitGen > taxonomyGen ? 1 : 0);}
|
train
| false
|
8,971
|
public LiteralValueSource(String string) {this.string = string;this.bytesRef = new BytesRef(string);}
|
[
"public",
"LiteralValueSource",
"(",
"String",
"string",
")",
"{",
"this",
".",
"string",
"=",
"string",
";",
"this",
".",
"bytesRef",
"=",
"new",
"BytesRef",
"(",
"string",
")",
";",
"}"
] |
public LiteralValueSource(string str){this.m_str = str;this.m_bytesRef = new BytesRef(str);}
|
train
| false
|
8,972
|
public int getValue(final int holder){return getRawValue(holder) >>> _shift_count;}
|
[
"public",
"int",
"getValue",
"(",
"final",
"int",
"holder",
")",
"{",
"return",
"getRawValue",
"(",
"holder",
")",
">",
">",
">",
"_shift_count",
";",
"}"
] |
public int GetValue(int holder){return Operator.UnsignedRightShift(this.GetRawValue(holder) , this._shift_count);}
|
train
| false
|
8,973
|
public HSSFShapeGroup(HSSFShape parent, HSSFAnchor anchor) {super(parent, anchor);_spgrRecord = ((EscherContainerRecord)getEscherContainer().getChild(0)).getChildById(EscherSpgrRecord.RECORD_ID);}
|
[
"public",
"HSSFShapeGroup",
"(",
"HSSFShape",
"parent",
",",
"HSSFAnchor",
"anchor",
")",
"{",
"super",
"(",
"parent",
",",
"anchor",
")",
";",
"_spgrRecord",
"=",
"(",
"(",
"EscherContainerRecord",
")",
"getEscherContainer",
"(",
")",
".",
"getChild",
"(",
"0",
")",
")",
".",
"getChildById",
"(",
"EscherSpgrRecord",
".",
"RECORD_ID",
")",
";",
"}"
] |
public HSSFShapeGroup(HSSFShape parent, HSSFAnchor anchor): base(parent, anchor){_spgrRecord = (EscherSpgrRecord)((EscherContainerRecord)GetEscherContainer().GetChild(0)).GetChildById(EscherSpgrRecord.RECORD_ID);}
|
train
| false
|
8,974
|
public String toString() {return "Note[" + name() + " -> " + data.name() + "]";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"Note[\"",
"+",
"name",
"(",
")",
"+",
"\" -> \"",
"+",
"data",
".",
"name",
"(",
")",
"+",
"\"]\"",
";",
"}"
] |
public override string ToString(){return "Note[" + Name + " -> " + data.Name + "]";}
|
train
| false
|
8,975
|
public DeleteFpgaImageResult deleteFpgaImage(DeleteFpgaImageRequest request) {request = beforeClientExecution(request);return executeDeleteFpgaImage(request);}
|
[
"public",
"DeleteFpgaImageResult",
"deleteFpgaImage",
"(",
"DeleteFpgaImageRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteFpgaImage",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteFpgaImageResponse DeleteFpgaImage(DeleteFpgaImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFpgaImageRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFpgaImageResponseUnmarshaller.Instance;return Invoke<DeleteFpgaImageResponse>(request, options);}
|
train
| true
|
8,976
|
public CreateAppCookieStickinessPolicyResult createAppCookieStickinessPolicy(CreateAppCookieStickinessPolicyRequest request) {request = beforeClientExecution(request);return executeCreateAppCookieStickinessPolicy(request);}
|
[
"public",
"CreateAppCookieStickinessPolicyResult",
"createAppCookieStickinessPolicy",
"(",
"CreateAppCookieStickinessPolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateAppCookieStickinessPolicy",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateAppCookieStickinessPolicyResponse CreateAppCookieStickinessPolicy(CreateAppCookieStickinessPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAppCookieStickinessPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAppCookieStickinessPolicyResponseUnmarshaller.Instance;return Invoke<CreateAppCookieStickinessPolicyResponse>(request, options);}
|
train
| true
|
8,977
|
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[FNGROUPCOUNT]\n");buffer.append(" .count = ").append(getCount()).append("\n");buffer.append("[/FNGROUPCOUNT]\n");return buffer.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[FNGROUPCOUNT]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .count = \"",
")",
".",
"append",
"(",
"getCount",
"(",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\"[/FNGROUPCOUNT]\\n\"",
")",
";",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] |
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[FNGROUPCOUNT]\n");buffer.Append(" .count = ").Append(this.Count).Append("\n");buffer.Append("[/FNGROUPCOUNT]\n");return buffer.ToString();}
|
train
| false
|
8,978
|
public final void sort(int from, int to) {checkRange(from, to);quicksort(from, to, 2 * MathUtil.log(to - from, 2));}
|
[
"public",
"final",
"void",
"sort",
"(",
"int",
"from",
",",
"int",
"to",
")",
"{",
"checkRange",
"(",
"from",
",",
"to",
")",
";",
"quicksort",
"(",
"from",
",",
"to",
",",
"2",
"*",
"MathUtil",
".",
"log",
"(",
"to",
"-",
"from",
",",
"2",
")",
")",
";",
"}"
] |
public override sealed void Sort(int from, int to){CheckRange(from, to);Quicksort(from, to, CeilLog2(to - from));}
|
train
| false
|
8,979
|
public DescribeMonitoringScheduleResult describeMonitoringSchedule(DescribeMonitoringScheduleRequest request) {request = beforeClientExecution(request);return executeDescribeMonitoringSchedule(request);}
|
[
"public",
"DescribeMonitoringScheduleResult",
"describeMonitoringSchedule",
"(",
"DescribeMonitoringScheduleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeMonitoringSchedule",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeMonitoringScheduleResponse DescribeMonitoringSchedule(DescribeMonitoringScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeMonitoringScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeMonitoringScheduleResponseUnmarshaller.Instance;return Invoke<DescribeMonitoringScheduleResponse>(request, options);}
|
train
| false
|
8,980
|
public HeaderLineParser(String[] header) {super(header);posToF = new FieldName[header.length];for (int i=0; i<header.length; i++) {String f = header[i];if (DocMaker.NAME_FIELD.equals(f)) {posToF[i] = FieldName.NAME;} else if (DocMaker.TITLE_FIELD.equals(f)) {posToF[i] = FieldName.TITLE;} else if (DocMaker.DATE_FIELD.equals(f)) {posToF[i] = FieldName.DATE;} else if (DocMaker.BODY_FIELD.equals(f)) {posToF[i] = FieldName.BODY;} else {posToF[i] = FieldName.PROP;}}}
|
[
"public",
"HeaderLineParser",
"(",
"String",
"[",
"]",
"header",
")",
"{",
"super",
"(",
"header",
")",
";",
"posToF",
"=",
"new",
"FieldName",
"[",
"header",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"header",
".",
"length",
";",
"i",
"++",
")",
"{",
"String",
"f",
"=",
"header",
"[",
"i",
"]",
";",
"if",
"(",
"DocMaker",
".",
"NAME_FIELD",
".",
"equals",
"(",
"f",
")",
")",
"{",
"posToF",
"[",
"i",
"]",
"=",
"FieldName",
".",
"NAME",
";",
"}",
"else",
"if",
"(",
"DocMaker",
".",
"TITLE_FIELD",
".",
"equals",
"(",
"f",
")",
")",
"{",
"posToF",
"[",
"i",
"]",
"=",
"FieldName",
".",
"TITLE",
";",
"}",
"else",
"if",
"(",
"DocMaker",
".",
"DATE_FIELD",
".",
"equals",
"(",
"f",
")",
")",
"{",
"posToF",
"[",
"i",
"]",
"=",
"FieldName",
".",
"DATE",
";",
"}",
"else",
"if",
"(",
"DocMaker",
".",
"BODY_FIELD",
".",
"equals",
"(",
"f",
")",
")",
"{",
"posToF",
"[",
"i",
"]",
"=",
"FieldName",
".",
"BODY",
";",
"}",
"else",
"{",
"posToF",
"[",
"i",
"]",
"=",
"FieldName",
".",
"PROP",
";",
"}",
"}",
"}"
] |
public HeaderLineParser(string[] header): base(header){posToF = new FieldName[header.Length];for (int i = 0; i < header.Length; i++){String f = header[i];if (DocMaker.NAME_FIELD.Equals(f, StringComparison.Ordinal)){posToF[i] = FieldName.NAME;}else if (DocMaker.TITLE_FIELD.Equals(f, StringComparison.Ordinal)){posToF[i] = FieldName.TITLE;}else if (DocMaker.DATE_FIELD.Equals(f, StringComparison.Ordinal)){posToF[i] = FieldName.DATE;}else if (DocMaker.BODY_FIELD.Equals(f, StringComparison.Ordinal)){posToF[i] = FieldName.BODY;}else{posToF[i] = FieldName.PROP;}}}
|
train
| false
|
8,981
|
public void reset() {if (useHash) {map.clear();useHash = false;}count = 0;}
|
[
"public",
"void",
"reset",
"(",
")",
"{",
"if",
"(",
"useHash",
")",
"{",
"map",
".",
"clear",
"(",
")",
";",
"useHash",
"=",
"false",
";",
"}",
"count",
"=",
"0",
";",
"}"
] |
public void Reset(){if (useHash){map.Clear();useHash = false;}count = 0;}
|
train
| false
|
8,984
|
public boolean precpred(RuleContext localctx, int precedence) {return true;}
|
[
"public",
"boolean",
"precpred",
"(",
"RuleContext",
"localctx",
",",
"int",
"precedence",
")",
"{",
"return",
"true",
";",
"}"
] |
public virtual bool Precpred(RuleContext localctx, int precedence){return true;}
|
train
| false
|
8,985
|
public int getFSD() {return fSD;}
|
[
"public",
"int",
"getFSD",
"(",
")",
"{",
"return",
"fSD",
";",
"}"
] |
public int GetFSD(){return fSD;}
|
train
| false
|
8,986
|
public static FunctionMetadata getFunctionByIndex(int index) {return getInstance().getFunctionByIndexInternal(index);}
|
[
"public",
"static",
"FunctionMetadata",
"getFunctionByIndex",
"(",
"int",
"index",
")",
"{",
"return",
"getInstance",
"(",
")",
".",
"getFunctionByIndexInternal",
"(",
"index",
")",
";",
"}"
] |
public static FunctionMetadata GetFunctionByIndex(int index){return GetInstance().GetFunctionByIndexInternal(index);}
|
train
| false
|
8,987
|
public Object toObject() {assert exists || 0 == value.length();return exists ? value.get().utf8ToString() : null;}
|
[
"public",
"Object",
"toObject",
"(",
")",
"{",
"assert",
"exists",
"||",
"0",
"==",
"value",
".",
"length",
"(",
")",
";",
"return",
"exists",
"?",
"value",
".",
"get",
"(",
")",
".",
"utf8ToString",
"(",
")",
":",
"null",
";",
"}"
] |
public override object ToObject(){return Exists ? Value.Utf8ToString() : null;}
|
train
| false
|
8,988
|
public GetDisksResult getDisks(GetDisksRequest request) {request = beforeClientExecution(request);return executeGetDisks(request);}
|
[
"public",
"GetDisksResult",
"getDisks",
"(",
"GetDisksRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDisks",
"(",
"request",
")",
";",
"}"
] |
public virtual GetDisksResponse GetDisks(GetDisksRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDisksRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDisksResponseUnmarshaller.Instance;return Invoke<GetDisksResponse>(request, options);}
|
train
| true
|
8,989
|
public String toString() {return getClass().getSimpleName() + "(compressionMode=" + compressionMode+ ", chunkSize=" + chunkSize + ", maxDocsPerChunk=" + maxDocsPerChunk + ", blockShift=" + blockShift + ")";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"getClass",
"(",
")",
".",
"getSimpleName",
"(",
")",
"+",
"\"(compressionMode=\"",
"+",
"compressionMode",
"+",
"\", chunkSize=\"",
"+",
"chunkSize",
"+",
"\", maxDocsPerChunk=\"",
"+",
"maxDocsPerChunk",
"+",
"\", blockShift=\"",
"+",
"blockShift",
"+",
"\")\"",
";",
"}"
] |
public override string ToString(){return this.GetType().Name + "(compressionMode=" + compressionMode + ", chunkSize=" + chunkSize + ")";}
|
train
| false
|
8,990
|
public DescribeVolumesModificationsResult describeVolumesModifications(DescribeVolumesModificationsRequest request) {request = beforeClientExecution(request);return executeDescribeVolumesModifications(request);}
|
[
"public",
"DescribeVolumesModificationsResult",
"describeVolumesModifications",
"(",
"DescribeVolumesModificationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeVolumesModifications",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeVolumesModificationsResponse DescribeVolumesModifications(DescribeVolumesModificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVolumesModificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVolumesModificationsResponseUnmarshaller.Instance;return Invoke<DescribeVolumesModificationsResponse>(request, options);}
|
train
| true
|
8,992
|
public StartRepoBuildRequest() {super("cr", "2016-06-07", "StartRepoBuild", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/build");setMethod(MethodType.PUT);}
|
[
"public",
"StartRepoBuildRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"StartRepoBuild\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/repos/[RepoNamespace]/[RepoName]/build\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"PUT",
")",
";",
"}"
] |
public StartRepoBuildRequest(): base("cr", "2016-06-07", "StartRepoBuild", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/build";Method = MethodType.PUT;}
|
train
| false
|
8,993
|
public Instance(String instanceId) {setInstanceId(instanceId);}
|
[
"public",
"Instance",
"(",
"String",
"instanceId",
")",
"{",
"setInstanceId",
"(",
"instanceId",
")",
";",
"}"
] |
public Instance(string instanceId){_instanceId = instanceId;}
|
train
| false
|
8,994
|
public int getEntryPathHashCode() {int hash = 0;for (int i = Math.max(0, pathLen - 16); i < pathLen; i++) {byte c = path[i];if (c != ' ')hash = (hash >>> 2) + (c << 24);}return hash;}
|
[
"public",
"int",
"getEntryPathHashCode",
"(",
")",
"{",
"int",
"hash",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"Math",
".",
"max",
"(",
"0",
",",
"pathLen",
"-",
"16",
")",
";",
"i",
"<",
"pathLen",
";",
"i",
"++",
")",
"{",
"byte",
"c",
"=",
"path",
"[",
"i",
"]",
";",
"if",
"(",
"c",
"!=",
"' '",
")",
"hash",
"=",
"(",
"hash",
">",
">",
">",
"2",
")",
"+",
"(",
"c",
"<<",
"24",
")",
";",
"}",
"return",
"hash",
";",
"}"
] |
public virtual int GetEntryPathHashCode(){int hash = 0;for (int i = Math.Max(0, pathLen - 16); i < pathLen; i++){byte c = path[i];if (c != ' '){hash = ((int)(((uint)hash) >> 2)) + (c << 24);}}return hash;}
|
train
| false
|
8,995
|
public CreateBranchCommand setName(String name) {checkCallable();this.name = name;return this;}
|
[
"public",
"CreateBranchCommand",
"setName",
"(",
"String",
"name",
")",
"{",
"checkCallable",
"(",
")",
";",
"this",
".",
"name",
"=",
"name",
";",
"return",
"this",
";",
"}"
] |
public virtual NGit.Api.CreateBranchCommand SetName(string name){CheckCallable();this.name = name;return this;}
|
train
| false
|
8,996
|
public static Reporter getReporter() {return REPORTER;}
|
[
"public",
"static",
"Reporter",
"getReporter",
"(",
")",
"{",
"return",
"REPORTER",
";",
"}"
] |
public static dalvik.system.CloseGuard.Reporter getReporter(){return REPORTER;}
|
train
| false
|
8,997
|
public void getChars(int start, int end, char[] dst, int dstStart) {if (start > count || end > count || start > end) {throw startEndAndLength(start, end);}System.arraycopy(value, start, dst, dstStart, end - start);}
|
[
"public",
"void",
"getChars",
"(",
"int",
"start",
",",
"int",
"end",
",",
"char",
"[",
"]",
"dst",
",",
"int",
"dstStart",
")",
"{",
"if",
"(",
"start",
">",
"count",
"||",
"end",
">",
"count",
"||",
"start",
">",
"end",
")",
"{",
"throw",
"startEndAndLength",
"(",
"start",
",",
"end",
")",
";",
"}",
"System",
".",
"arraycopy",
"(",
"value",
",",
"start",
",",
"dst",
",",
"dstStart",
",",
"end",
"-",
"start",
")",
";",
"}"
] |
public virtual void getChars(int start, int end, char[] dst, int dstStart){if (start > count || end > count || start > end){throw startEndAndLength(start, end);}System.Array.Copy(value, start, dst, dstStart, end - start);}
|
train
| false
|
8,998
|
public LongBuffer put(long[] src, int srcOffset, int longCount) {if (longCount > remaining()) {throw new BufferOverflowException();}System.arraycopy(src, srcOffset, backingArray, offset + position, longCount);position += longCount;return this;}
|
[
"public",
"LongBuffer",
"put",
"(",
"long",
"[",
"]",
"src",
",",
"int",
"srcOffset",
",",
"int",
"longCount",
")",
"{",
"if",
"(",
"longCount",
">",
"remaining",
"(",
")",
")",
"{",
"throw",
"new",
"BufferOverflowException",
"(",
")",
";",
"}",
"System",
".",
"arraycopy",
"(",
"src",
",",
"srcOffset",
",",
"backingArray",
",",
"offset",
"+",
"position",
",",
"longCount",
")",
";",
"position",
"+=",
"longCount",
";",
"return",
"this",
";",
"}"
] |
public override java.nio.LongBuffer put(long[] src, int srcOffset, int longCount){if (longCount > remaining()){throw new java.nio.BufferOverflowException();}System.Array.Copy(src, srcOffset, backingArray, offset + _position, longCount);_position += longCount;return this;}
|
train
| false
|
8,999
|
public long getSourceSize() {return src.length;}
|
[
"public",
"long",
"getSourceSize",
"(",
")",
"{",
"return",
"src",
".",
"length",
";",
"}"
] |
public virtual long GetSourceSize(){return src.Length;}
|
train
| false
|
9,000
|
public void setID(String id) {if (id == null) {throw new NullPointerException();}ID = id;}
|
[
"public",
"void",
"setID",
"(",
"String",
"id",
")",
"{",
"if",
"(",
"id",
"==",
"null",
")",
"{",
"throw",
"new",
"NullPointerException",
"(",
")",
";",
"}",
"ID",
"=",
"id",
";",
"}"
] |
public virtual void setID(string id){throw new System.NotImplementedException();}
|
train
| false
|
9,001
|
public GetCampaignVersionsResult getCampaignVersions(GetCampaignVersionsRequest request) {request = beforeClientExecution(request);return executeGetCampaignVersions(request);}
|
[
"public",
"GetCampaignVersionsResult",
"getCampaignVersions",
"(",
"GetCampaignVersionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetCampaignVersions",
"(",
"request",
")",
";",
"}"
] |
public virtual GetCampaignVersionsResponse GetCampaignVersions(GetCampaignVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCampaignVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCampaignVersionsResponseUnmarshaller.Instance;return Invoke<GetCampaignVersionsResponse>(request, options);}
|
train
| true
|
9,002
|
public long getTotalSLLLookaheadOps() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.length; i++) {k += decisions[i].SLL_TotalLook;}return k;}
|
[
"public",
"long",
"getTotalSLLLookaheadOps",
"(",
")",
"{",
"DecisionInfo",
"[",
"]",
"decisions",
"=",
"atnSimulator",
".",
"getDecisionInfo",
"(",
")",
";",
"long",
"k",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"decisions",
".",
"length",
";",
"i",
"++",
")",
"{",
"k",
"+=",
"decisions",
"[",
"i",
"]",
".",
"SLL_TotalLook",
";",
"}",
"return",
"k",
";",
"}"
] |
public long getTotalSLLLookaheadOps(){DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.Length; i++){k += decisions[i].SLL_TotalLook;}return k;}
|
train
| false
|
9,003
|
public static Row getRow(int rowIndex, Sheet sheet) {Row row = sheet.getRow(rowIndex);if (row == null) {row = sheet.createRow(rowIndex);}return row;}
|
[
"public",
"static",
"Row",
"getRow",
"(",
"int",
"rowIndex",
",",
"Sheet",
"sheet",
")",
"{",
"Row",
"row",
"=",
"sheet",
".",
"getRow",
"(",
"rowIndex",
")",
";",
"if",
"(",
"row",
"==",
"null",
")",
"{",
"row",
"=",
"sheet",
".",
"createRow",
"(",
"rowIndex",
")",
";",
"}",
"return",
"row",
";",
"}"
] |
public static IRow GetRow(int rowIndex, ISheet sheet){IRow row = sheet.GetRow(rowIndex);if (row == null){row = sheet.CreateRow(rowIndex);}return row;}
|
train
| true
|
9,004
|
public void clear() {doc = null;analyzer = null;}
|
[
"public",
"void",
"clear",
"(",
")",
"{",
"doc",
"=",
"null",
";",
"analyzer",
"=",
"null",
";",
"}"
] |
public virtual void Clear(){doc = null;analyzer = null;}
|
train
| false
|
9,005
|
public KeyPairCredentials(String publicKeyId, String privateKeySecret) {if (publicKeyId == null || privateKeySecret == null) {throw new IllegalArgumentException("You must provide a valid pair of Public Key ID and Private Key Secret.");}this.publicKeyId = publicKeyId;this.privateKeySecret = privateKeySecret;}
|
[
"public",
"KeyPairCredentials",
"(",
"String",
"publicKeyId",
",",
"String",
"privateKeySecret",
")",
"{",
"if",
"(",
"publicKeyId",
"==",
"null",
"||",
"privateKeySecret",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"You must provide a valid pair of Public Key ID and Private Key Secret.\"",
")",
";",
"}",
"this",
".",
"publicKeyId",
"=",
"publicKeyId",
";",
"this",
".",
"privateKeySecret",
"=",
"privateKeySecret",
";",
"}"
] |
public KeyPairCredentials(string publicKeyId, string privateKeySecret){if (string.IsNullOrEmpty(publicKeyId) || string.IsNullOrEmpty(privateKeySecret)){throw new ArgumentNullException("You must provide a valid pair of Public Key ID and Private Key Secret.");}this.publicKeyId = publicKeyId;this.privateKeySecret = privateKeySecret;}
|
train
| false
|
9,006
|
public PredictionContext getParent(int index) {return parents[index];}
|
[
"public",
"PredictionContext",
"getParent",
"(",
"int",
"index",
")",
"{",
"return",
"parents",
"[",
"index",
"]",
";",
"}"
] |
public override PredictionContext GetParent(int index){return parents[index];}
|
train
| false
|
9,007
|
public synchronized StringBuffer append(String string) {append0(string);return this;}
|
[
"public",
"synchronized",
"StringBuffer",
"append",
"(",
"String",
"string",
")",
"{",
"append0",
"(",
"string",
")",
";",
"return",
"this",
";",
"}"
] |
public java.lang.StringBuffer append(string @string){lock (this){append0(@string);return this;}}
|
train
| false
|
9,008
|
public void removeBuiltinRecord(byte name, int sheetIndex) {NameRecord record = getSpecificBuiltinRecord(name, sheetIndex);if (record != null) {_definedNames.remove(record);}}
|
[
"public",
"void",
"removeBuiltinRecord",
"(",
"byte",
"name",
",",
"int",
"sheetIndex",
")",
"{",
"NameRecord",
"record",
"=",
"getSpecificBuiltinRecord",
"(",
"name",
",",
"sheetIndex",
")",
";",
"if",
"(",
"record",
"!=",
"null",
")",
"{",
"_definedNames",
".",
"remove",
"(",
"record",
")",
";",
"}",
"}"
] |
public void RemoveBuiltinRecord(byte name, int sheetIndex){NameRecord record = GetSpecificBuiltinRecord(name, sheetIndex);if (record != null){_definedNames.Remove(record);}}
|
train
| false
|
9,009
|
public SharedFormulaGroup(SharedFormulaRecord sfr, CellReference firstCell) {if (!sfr.isInRange(firstCell.getRow(), firstCell.getCol())) {throw new IllegalArgumentException("First formula cell " + firstCell.formatAsString()+ " is not shared formula range " + sfr.getRange() + ".");}_sfr = sfr;_firstCell = firstCell;int width = sfr.getLastColumn() - sfr.getFirstColumn() + 1;int height = sfr.getLastRow() - sfr.getFirstRow() + 1;_frAggs = new FormulaRecordAggregate[width * height];_numberOfFormulas = 0;}
|
[
"public",
"SharedFormulaGroup",
"(",
"SharedFormulaRecord",
"sfr",
",",
"CellReference",
"firstCell",
")",
"{",
"if",
"(",
"!",
"sfr",
".",
"isInRange",
"(",
"firstCell",
".",
"getRow",
"(",
")",
",",
"firstCell",
".",
"getCol",
"(",
")",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"First formula cell \"",
"+",
"firstCell",
".",
"formatAsString",
"(",
")",
"+",
"\" is not shared formula range \"",
"+",
"sfr",
".",
"getRange",
"(",
")",
"+",
"\".\"",
")",
";",
"}",
"_sfr",
"=",
"sfr",
";",
"_firstCell",
"=",
"firstCell",
";",
"int",
"width",
"=",
"sfr",
".",
"getLastColumn",
"(",
")",
"-",
"sfr",
".",
"getFirstColumn",
"(",
")",
"+",
"1",
";",
"int",
"height",
"=",
"sfr",
".",
"getLastRow",
"(",
")",
"-",
"sfr",
".",
"getFirstRow",
"(",
")",
"+",
"1",
";",
"_frAggs",
"=",
"new",
"FormulaRecordAggregate",
"[",
"width",
"*",
"height",
"]",
";",
"_numberOfFormulas",
"=",
"0",
";",
"}"
] |
public SharedFormulaGroup(SharedFormulaRecord sfr, CellReference firstCell){if (!sfr.IsInRange(firstCell.Row, firstCell.Col)){throw new ArgumentException("First formula cell " + firstCell.FormatAsString()+ " is not shared formula range " + sfr.Range.ToString() + ".");}_sfr = sfr;_firstCell = firstCell;int width = sfr.LastColumn - sfr.FirstColumn + 1;int height = sfr.LastRow - sfr.FirstRow + 1;_frAggs = new FormulaRecordAggregate[width * height];_numberOfFormulas = 0;}
|
train
| false
|
9,010
|
public void modifyFormatRun(short oldPos, short newLen) {int shift = 0;for(int i=0; i < _formats.length; i++) {CTFormat ctf = _formats[i];if (shift != 0) {ctf.setOffset(ctf.getOffset() + shift);} else if (oldPos == ctf.getOffset() && i < _formats.length - 1){CTFormat nextCTF = _formats[i + 1];shift = newLen - (nextCTF.getOffset() - ctf.getOffset());}}}
|
[
"public",
"void",
"modifyFormatRun",
"(",
"short",
"oldPos",
",",
"short",
"newLen",
")",
"{",
"int",
"shift",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"_formats",
".",
"length",
";",
"i",
"++",
")",
"{",
"CTFormat",
"ctf",
"=",
"_formats",
"[",
"i",
"]",
";",
"if",
"(",
"shift",
"!=",
"0",
")",
"{",
"ctf",
".",
"setOffset",
"(",
"ctf",
".",
"getOffset",
"(",
")",
"+",
"shift",
")",
";",
"}",
"else",
"if",
"(",
"oldPos",
"==",
"ctf",
".",
"getOffset",
"(",
")",
"&&",
"i",
"<",
"_formats",
".",
"length",
"-",
"1",
")",
"{",
"CTFormat",
"nextCTF",
"=",
"_formats",
"[",
"i",
"+",
"1",
"]",
";",
"shift",
"=",
"newLen",
"-",
"(",
"nextCTF",
".",
"getOffset",
"(",
")",
"-",
"ctf",
".",
"getOffset",
"(",
")",
")",
";",
"}",
"}",
"}"
] |
public void ModifyFormatRun(short oldPos, short newLen){short shift = (short)0;for (int idx = 0; idx < m_formats.Count; idx++){CTFormat ctf = (CTFormat)m_formats[idx];if (shift != 0){ctf.Offset = ((short)(ctf.Offset + shift));}else if ((oldPos == ctf.Offset) && (idx < (m_formats.Count - 1))){CTFormat nextCTF = (CTFormat)m_formats[idx + 1];shift = (short)(newLen - (nextCTF.Offset - ctf.Offset));}}}
|
train
| false
|
9,011
|
public AddInstanceGroupsResult addInstanceGroups(AddInstanceGroupsRequest request) {request = beforeClientExecution(request);return executeAddInstanceGroups(request);}
|
[
"public",
"AddInstanceGroupsResult",
"addInstanceGroups",
"(",
"AddInstanceGroupsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAddInstanceGroups",
"(",
"request",
")",
";",
"}"
] |
public virtual AddInstanceGroupsResponse AddInstanceGroups(AddInstanceGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddInstanceGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = AddInstanceGroupsResponseUnmarshaller.Instance;return Invoke<AddInstanceGroupsResponse>(request, options);}
|
train
| true
|
9,012
|
public String getText() {if (getChildCount() == 0) {return "";}StringBuilder builder = new StringBuilder();for (int i = 0; i < getChildCount(); i++) {builder.append(getChild(i).getText());}return builder.toString();}
|
[
"public",
"String",
"getText",
"(",
")",
"{",
"if",
"(",
"getChildCount",
"(",
")",
"==",
"0",
")",
"{",
"return",
"\"\"",
";",
"}",
"StringBuilder",
"builder",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"getChildCount",
"(",
")",
";",
"i",
"++",
")",
"{",
"builder",
".",
"append",
"(",
"getChild",
"(",
"i",
")",
".",
"getText",
"(",
")",
")",
";",
"}",
"return",
"builder",
".",
"toString",
"(",
")",
";",
"}"
] |
public virtual string GetText(){if (ChildCount == 0){return string.Empty;}StringBuilder builder = new StringBuilder();for (int i = 0; i < ChildCount; i++){builder.Append(GetChild(i).GetText());}return builder.ToString();}
|
train
| false
|
9,013
|
public ListCodeRepositoriesResult listCodeRepositories(ListCodeRepositoriesRequest request) {request = beforeClientExecution(request);return executeListCodeRepositories(request);}
|
[
"public",
"ListCodeRepositoriesResult",
"listCodeRepositories",
"(",
"ListCodeRepositoriesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListCodeRepositories",
"(",
"request",
")",
";",
"}"
] |
public virtual ListCodeRepositoriesResponse ListCodeRepositories(ListCodeRepositoriesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListCodeRepositoriesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListCodeRepositoriesResponseUnmarshaller.Instance;return Invoke<ListCodeRepositoriesResponse>(request, options);}
|
train
| true
|
9,014
|
public LexerATNConfig(ATNState state,int alt,PredictionContext context){super(state, alt, context, SemanticContext.NONE);this.passedThroughNonGreedyDecision = false;this.lexerActionExecutor = null;}
|
[
"public",
"LexerATNConfig",
"(",
"ATNState",
"state",
",",
"int",
"alt",
",",
"PredictionContext",
"context",
")",
"{",
"super",
"(",
"state",
",",
"alt",
",",
"context",
",",
"SemanticContext",
".",
"NONE",
")",
";",
"this",
".",
"passedThroughNonGreedyDecision",
"=",
"false",
";",
"this",
".",
"lexerActionExecutor",
"=",
"null",
";",
"}"
] |
public LexerATNConfig(ATNState state,int alt,PredictionContext context): base(state, alt, context) {this.passedThroughNonGreedyDecision = false;this.lexerActionExecutor = null;}
|
train
| false
|
9,015
|
public int serialize(int offset, byte [] data) {throw new RecordFormatException("Old Label Records are supported READ ONLY");}
|
[
"public",
"int",
"serialize",
"(",
"int",
"offset",
",",
"byte",
"[",
"]",
"data",
")",
"{",
"throw",
"new",
"RecordFormatException",
"(",
"\"Old Label Records are supported READ ONLY\"",
")",
";",
"}"
] |
public int Serialize(int offset, byte[] data){throw new RecordFormatException("Old Label Records are supported READ ONLY");}
|
train
| false
|
9,016
|
public GetSmsChannelResult getSmsChannel(GetSmsChannelRequest request) {request = beforeClientExecution(request);return executeGetSmsChannel(request);}
|
[
"public",
"GetSmsChannelResult",
"getSmsChannel",
"(",
"GetSmsChannelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetSmsChannel",
"(",
"request",
")",
";",
"}"
] |
public virtual GetSmsChannelResponse GetSmsChannel(GetSmsChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSmsChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSmsChannelResponseUnmarshaller.Instance;return Invoke<GetSmsChannelResponse>(request, options);}
|
train
| true
|
9,017
|
public Placement(String availabilityZone) {setAvailabilityZone(availabilityZone);}
|
[
"public",
"Placement",
"(",
"String",
"availabilityZone",
")",
"{",
"setAvailabilityZone",
"(",
"availabilityZone",
")",
";",
"}"
] |
public Placement(string availabilityZone){_availabilityZone = availabilityZone;}
|
train
| false
|
9,018
|
public ListStacksResult listStacks(ListStacksRequest request) {request = beforeClientExecution(request);return executeListStacks(request);}
|
[
"public",
"ListStacksResult",
"listStacks",
"(",
"ListStacksRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListStacks",
"(",
"request",
")",
";",
"}"
] |
public virtual ListStacksResponse ListStacks(ListStacksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStacksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStacksResponseUnmarshaller.Instance;return Invoke<ListStacksResponse>(request, options);}
|
train
| true
|
9,019
|
public ListFieldLevelEncryptionConfigsResult listFieldLevelEncryptionConfigs(ListFieldLevelEncryptionConfigsRequest request) {request = beforeClientExecution(request);return executeListFieldLevelEncryptionConfigs(request);}
|
[
"public",
"ListFieldLevelEncryptionConfigsResult",
"listFieldLevelEncryptionConfigs",
"(",
"ListFieldLevelEncryptionConfigsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListFieldLevelEncryptionConfigs",
"(",
"request",
")",
";",
"}"
] |
public virtual ListFieldLevelEncryptionConfigsResponse ListFieldLevelEncryptionConfigs(ListFieldLevelEncryptionConfigsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFieldLevelEncryptionConfigsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFieldLevelEncryptionConfigsResponseUnmarshaller.Instance;return Invoke<ListFieldLevelEncryptionConfigsResponse>(request, options);}
|
train
| true
|
9,020
|
public CloseInstancePublicPortsResult closeInstancePublicPorts(CloseInstancePublicPortsRequest request) {request = beforeClientExecution(request);return executeCloseInstancePublicPorts(request);}
|
[
"public",
"CloseInstancePublicPortsResult",
"closeInstancePublicPorts",
"(",
"CloseInstancePublicPortsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCloseInstancePublicPorts",
"(",
"request",
")",
";",
"}"
] |
public virtual CloseInstancePublicPortsResponse CloseInstancePublicPorts(CloseInstancePublicPortsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CloseInstancePublicPortsRequestMarshaller.Instance;options.ResponseUnmarshaller = CloseInstancePublicPortsResponseUnmarshaller.Instance;return Invoke<CloseInstancePublicPortsResponse>(request, options);}
|
train
| true
|
9,021
|
public DeleteTransitGatewayRouteTableResult deleteTransitGatewayRouteTable(DeleteTransitGatewayRouteTableRequest request) {request = beforeClientExecution(request);return executeDeleteTransitGatewayRouteTable(request);}
|
[
"public",
"DeleteTransitGatewayRouteTableResult",
"deleteTransitGatewayRouteTable",
"(",
"DeleteTransitGatewayRouteTableRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteTransitGatewayRouteTable",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteTransitGatewayRouteTableResponse DeleteTransitGatewayRouteTable(DeleteTransitGatewayRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTransitGatewayRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTransitGatewayRouteTableResponseUnmarshaller.Instance;return Invoke<DeleteTransitGatewayRouteTableResponse>(request, options);}
|
train
| true
|
9,022
|
public TokenStream create(TokenStream input) {return new StempelFilter(input, new StempelStemmer(PolishAnalyzer.getDefaultTable()));}
|
[
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"StempelFilter",
"(",
"input",
",",
"new",
"StempelStemmer",
"(",
"PolishAnalyzer",
".",
"getDefaultTable",
"(",
")",
")",
")",
";",
"}"
] |
public override TokenStream Create(TokenStream input){return new StempelFilter(input, new StempelStemmer(PolishAnalyzer.DefaultTable));}
|
train
| false
|
9,024
|
public DocFreqSorter(int maxDoc) {super(maxDoc / 64);this.tmpDocs = new int[maxDoc / 64];}
|
[
"public",
"DocFreqSorter",
"(",
"int",
"maxDoc",
")",
"{",
"super",
"(",
"maxDoc",
"/",
"64",
")",
";",
"this",
".",
"tmpDocs",
"=",
"new",
"int",
"[",
"maxDoc",
"/",
"64",
"]",
";",
"}"
] |
public DocFreqSorter(int maxDoc): base(maxDoc / 64){this.tmpDocs = new int[maxDoc / 64];}
|
train
| false
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.