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 |
|---|---|---|---|---|---|
5,096
|
public TestInvokeAuthorizerResult testInvokeAuthorizer(TestInvokeAuthorizerRequest request) {request = beforeClientExecution(request);return executeTestInvokeAuthorizer(request);}
|
[
"public",
"TestInvokeAuthorizerResult",
"testInvokeAuthorizer",
"(",
"TestInvokeAuthorizerRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeTestInvokeAuthorizer",
"(",
"request",
")",
";",
"}"
] |
public virtual TestInvokeAuthorizerResponse TestInvokeAuthorizer(TestInvokeAuthorizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = TestInvokeAuthorizerRequestMarshaller.Instance;options.ResponseUnmarshaller = TestInvokeAuthorizerResponseUnmarshaller.Instance;return Invoke<TestInvokeAuthorizerResponse>(request, options);}
|
train
| true
|
5,097
|
public int stem(char s[], int len) {len = removeCase(s, len);return normalize(s, len);}
|
[
"public",
"int",
"stem",
"(",
"char",
"s",
"[",
"]",
",",
"int",
"len",
")",
"{",
"len",
"=",
"removeCase",
"(",
"s",
",",
"len",
")",
";",
"return",
"normalize",
"(",
"s",
",",
"len",
")",
";",
"}"
] |
public virtual int Stem(char[] s, int len){len = RemoveCase(s, len);return Normalize(s, len);}
|
train
| false
|
5,098
|
public DescribeTableReplicaAutoScalingResult describeTableReplicaAutoScaling(DescribeTableReplicaAutoScalingRequest request) {request = beforeClientExecution(request);return executeDescribeTableReplicaAutoScaling(request);}
|
[
"public",
"DescribeTableReplicaAutoScalingResult",
"describeTableReplicaAutoScaling",
"(",
"DescribeTableReplicaAutoScalingRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeTableReplicaAutoScaling",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeTableReplicaAutoScalingResponse DescribeTableReplicaAutoScaling(DescribeTableReplicaAutoScalingRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTableReplicaAutoScalingRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTableReplicaAutoScalingResponseUnmarshaller.Instance;return Invoke<DescribeTableReplicaAutoScalingResponse>(request, options);}
|
train
| false
|
5,099
|
public int readUShort() {return readShort() & 0xFFFF;}
|
[
"public",
"int",
"readUShort",
"(",
")",
"{",
"return",
"readShort",
"(",
")",
"&",
"0xFFFF",
";",
"}"
] |
public int ReadUShort(){return _rc4.Xorshort(_le.ReadUShort());}
|
train
| false
|
5,100
|
public int groupCount() {return groupCountImpl(address);}
|
[
"public",
"int",
"groupCount",
"(",
")",
"{",
"return",
"groupCountImpl",
"(",
"address",
")",
";",
"}"
] |
public int groupCount(){return groupCountImpl(address);}
|
train
| false
|
5,101
|
public GetConsoleOutputRequest(String instanceId) {setInstanceId(instanceId);}
|
[
"public",
"GetConsoleOutputRequest",
"(",
"String",
"instanceId",
")",
"{",
"setInstanceId",
"(",
"instanceId",
")",
";",
"}"
] |
public GetConsoleOutputRequest(string instanceId){_instanceId = instanceId;}
|
train
| false
|
5,102
|
public DeleteHITResult deleteHIT(DeleteHITRequest request) {request = beforeClientExecution(request);return executeDeleteHIT(request);}
|
[
"public",
"DeleteHITResult",
"deleteHIT",
"(",
"DeleteHITRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteHIT",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteHITResponse DeleteHIT(DeleteHITRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteHITRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteHITResponseUnmarshaller.Instance;return Invoke<DeleteHITResponse>(request, options);}
|
train
| true
|
5,103
|
public static DVConstraint createFormulaListConstraint(String listFormula) {return new DVConstraint(listFormula, null);}
|
[
"public",
"static",
"DVConstraint",
"createFormulaListConstraint",
"(",
"String",
"listFormula",
")",
"{",
"return",
"new",
"DVConstraint",
"(",
"listFormula",
",",
"null",
")",
";",
"}"
] |
public static DVConstraint CreateFormulaListConstraint(String listFormula){return new DVConstraint(listFormula, null);}
|
train
| false
|
5,104
|
public UnbufferedCharStream(Reader input, int bufferSize) {this(bufferSize);this.input = input;fill(1); }
|
[
"public",
"UnbufferedCharStream",
"(",
"Reader",
"input",
",",
"int",
"bufferSize",
")",
"{",
"this",
"(",
"bufferSize",
")",
";",
"this",
".",
"input",
"=",
"input",
";",
"fill",
"(",
"1",
")",
";",
"}"
] |
public UnbufferedCharStream(Stream input, int bufferSize): this(bufferSize){this.input = new StreamReader(input);Fill(1);}
|
train
| false
|
5,105
|
public String toString() {return "LimitTokenCountAnalyzer(" + delegate.toString() + ", maxTokenCount=" + maxTokenCount + ", consumeAllTokens=" + consumeAllTokens + ")";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"LimitTokenCountAnalyzer(\"",
"+",
"delegate",
".",
"toString",
"(",
")",
"+",
"\", maxTokenCount=\"",
"+",
"maxTokenCount",
"+",
"\", consumeAllTokens=\"",
"+",
"consumeAllTokens",
"+",
"\")\"",
";",
"}"
] |
public override string ToString(){return "LimitTokenCountAnalyzer(" + @delegate.ToString() + ", maxTokenCount=" + maxTokenCount + ", consumeAllTokens=" + consumeAllTokens + ")";}
|
train
| false
|
5,106
|
@Override public boolean contains(Object object) {return c.contains(object);}
|
[
"@",
"Override",
"public",
"boolean",
"contains",
"(",
"Object",
"object",
")",
"{",
"return",
"c",
".",
"contains",
"(",
"object",
")",
";",
"}"
] |
public virtual bool contains(object @object){return c.contains(@object);}
|
train
| false
|
5,107
|
public NotImplementedFunction(String name) {_functionName = name;}
|
[
"public",
"NotImplementedFunction",
"(",
"String",
"name",
")",
"{",
"_functionName",
"=",
"name",
";",
"}"
] |
public NotImplementedFunction(String name){_functionName = name;}
|
train
| false
|
5,108
|
public CreateRecommenderConfigurationResult createRecommenderConfiguration(CreateRecommenderConfigurationRequest request) {request = beforeClientExecution(request);return executeCreateRecommenderConfiguration(request);}
|
[
"public",
"CreateRecommenderConfigurationResult",
"createRecommenderConfiguration",
"(",
"CreateRecommenderConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateRecommenderConfiguration",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateRecommenderConfigurationResponse CreateRecommenderConfiguration(CreateRecommenderConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRecommenderConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRecommenderConfigurationResponseUnmarshaller.Instance;return Invoke<CreateRecommenderConfigurationResponse>(request, options);}
|
train
| false
|
5,109
|
public GetNamespaceListRequest() {super("cr", "2016-06-07", "GetNamespaceList", "cr");setUriPattern("/namespace");setMethod(MethodType.GET);}
|
[
"public",
"GetNamespaceListRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"GetNamespaceList\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/namespace\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"GET",
")",
";",
"}"
] |
public GetNamespaceListRequest(): base("cr", "2016-06-07", "GetNamespaceList", "cr", "openAPI"){UriPattern = "/namespace";Method = MethodType.GET;}
|
train
| false
|
5,110
|
public CreateDefaultVpcResult createDefaultVpc(CreateDefaultVpcRequest request) {request = beforeClientExecution(request);return executeCreateDefaultVpc(request);}
|
[
"public",
"CreateDefaultVpcResult",
"createDefaultVpc",
"(",
"CreateDefaultVpcRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateDefaultVpc",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateDefaultVpcResponse CreateDefaultVpc(CreateDefaultVpcRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDefaultVpcRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDefaultVpcResponseUnmarshaller.Instance;return Invoke<CreateDefaultVpcResponse>(request, options);}
|
train
| true
|
5,111
|
public CreateTemplateResult createTemplate(CreateTemplateRequest request) {request = beforeClientExecution(request);return executeCreateTemplate(request);}
|
[
"public",
"CreateTemplateResult",
"createTemplate",
"(",
"CreateTemplateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateTemplate",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateTemplateResponse CreateTemplate(CreateTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTemplateResponseUnmarshaller.Instance;return Invoke<CreateTemplateResponse>(request, options);}
|
train
| true
|
5,112
|
public Collection<ReflogEntry> call() throws GitAPIException,InvalidRefNameException {checkCallable();try {ReflogReader reader = repo.getReflogReader(ref);if (reader == null)throw new RefNotFoundException(MessageFormat.format(JGitText.get().refNotResolved, ref));return reader.getReverseEntries();} catch (IOException e) {throw new InvalidRefNameException(MessageFormat.format(JGitText.get().cannotRead, ref), e);}}
|
[
"public",
"Collection",
"<",
"ReflogEntry",
">",
"call",
"(",
")",
"throws",
"GitAPIException",
",",
"InvalidRefNameException",
"{",
"checkCallable",
"(",
")",
";",
"try",
"{",
"ReflogReader",
"reader",
"=",
"repo",
".",
"getReflogReader",
"(",
"ref",
")",
";",
"if",
"(",
"reader",
"==",
"null",
")",
"throw",
"new",
"RefNotFoundException",
"(",
"MessageFormat",
".",
"format",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"refNotResolved",
",",
"ref",
")",
")",
";",
"return",
"reader",
".",
"getReverseEntries",
"(",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"throw",
"new",
"InvalidRefNameException",
"(",
"MessageFormat",
".",
"format",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"cannotRead",
",",
"ref",
")",
",",
"e",
")",
";",
"}",
"}"
] |
public override ICollection<ReflogEntry> Call(){CheckCallable();try{ReflogReader reader = new ReflogReader(repo, @ref);return reader.GetReverseEntries();}catch (IOException e){throw new InvalidRefNameException(MessageFormat.Format(JGitText.Get().cannotRead,@ref), e);}}
|
train
| false
|
5,113
|
public CreateVpcRequest(String cidrBlock) {setCidrBlock(cidrBlock);}
|
[
"public",
"CreateVpcRequest",
"(",
"String",
"cidrBlock",
")",
"{",
"setCidrBlock",
"(",
"cidrBlock",
")",
";",
"}"
] |
public CreateVpcRequest(string cidrBlock){_cidrBlock = cidrBlock;}
|
train
| false
|
5,114
|
public FormulaUsedBlankCellSet() {_sheetGroupsByBookSheet = new HashMap<>();}
|
[
"public",
"FormulaUsedBlankCellSet",
"(",
")",
"{",
"_sheetGroupsByBookSheet",
"=",
"new",
"HashMap",
"<",
">",
"(",
")",
";",
"}"
] |
public FormulaUsedBlankCellSet(){_sheetGroupsByBookSheet = new Hashtable();}
|
train
| false
|
5,115
|
public SpatialPrefixTree(SpatialContext ctx, int maxLevels) {assert maxLevels > 0;this.ctx = ctx;this.maxLevels = maxLevels;}
|
[
"public",
"SpatialPrefixTree",
"(",
"SpatialContext",
"ctx",
",",
"int",
"maxLevels",
")",
"{",
"assert",
"maxLevels",
">",
"0",
";",
"this",
".",
"ctx",
"=",
"ctx",
";",
"this",
".",
"maxLevels",
"=",
"maxLevels",
";",
"}"
] |
public SpatialPrefixTree(SpatialContext ctx, int maxLevels){Debug.Assert(maxLevels > 0);this.m_ctx = ctx;this.m_maxLevels = maxLevels;}
|
train
| false
|
5,116
|
public ListObjectParentsResult listObjectParents(ListObjectParentsRequest request) {request = beforeClientExecution(request);return executeListObjectParents(request);}
|
[
"public",
"ListObjectParentsResult",
"listObjectParents",
"(",
"ListObjectParentsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListObjectParents",
"(",
"request",
")",
";",
"}"
] |
public virtual ListObjectParentsResponse ListObjectParents(ListObjectParentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListObjectParentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListObjectParentsResponseUnmarshaller.Instance;return Invoke<ListObjectParentsResponse>(request, options);}
|
train
| true
|
5,118
|
public Header(InputStream is) throws IOException {final MimeStreamParser parser = new MimeStreamParser();parser.setContentHandler(new AbstractContentHandler());}
|
[
"public",
"Header",
"(",
"InputStream",
"is",
")",
"throws",
"IOException",
"{",
"final",
"MimeStreamParser",
"parser",
"=",
"new",
"MimeStreamParser",
"(",
")",
";",
"parser",
".",
"setContentHandler",
"(",
"new",
"AbstractContentHandler",
"(",
")",
")",
";",
"}"
] |
public Header(int level){throw new System.NotImplementedException();}
|
train
| false
|
5,119
|
public DescribeSpotInstanceRequestsResult describeSpotInstanceRequests() {return describeSpotInstanceRequests(new DescribeSpotInstanceRequestsRequest());}
|
[
"public",
"DescribeSpotInstanceRequestsResult",
"describeSpotInstanceRequests",
"(",
")",
"{",
"return",
"describeSpotInstanceRequests",
"(",
"new",
"DescribeSpotInstanceRequestsRequest",
"(",
")",
")",
";",
"}"
] |
public virtual DescribeSpotInstanceRequestsResponse DescribeSpotInstanceRequests(){return DescribeSpotInstanceRequests(new DescribeSpotInstanceRequestsRequest());}
|
train
| false
|
5,120
|
public SetTransition(ATNState target, IntervalSet set) {super(target);if ( set == null ) set = IntervalSet.of(Token.INVALID_TYPE);this.set = set;}
|
[
"public",
"SetTransition",
"(",
"ATNState",
"target",
",",
"IntervalSet",
"set",
")",
"{",
"super",
"(",
"target",
")",
";",
"if",
"(",
"set",
"==",
"null",
")",
"set",
"=",
"IntervalSet",
".",
"of",
"(",
"Token",
".",
"INVALID_TYPE",
")",
";",
"this",
".",
"set",
"=",
"set",
";",
"}"
] |
public SetTransition(ATNState target, IntervalSet set): base(target){if (set == null){set = IntervalSet.Of(TokenConstants.InvalidType);}this.set = set;}
|
train
| false
|
5,121
|
public LbsDataSubRecord clone() {return copy();}
|
[
"public",
"LbsDataSubRecord",
"clone",
"(",
")",
"{",
"return",
"copy",
"(",
")",
";",
"}"
] |
public override Object Clone(){return this;}
|
train
| false
|
5,122
|
public int read(char[] cbuf, int off, int len) throws IOException {if (off < 0) throw new IllegalArgumentException("off < 0");if (off >= cbuf.length) throw new IllegalArgumentException("off >= cbuf.length");if (len <= 0) throw new IllegalArgumentException("len <= 0");while (!inputFinished || inputBuffer.length() > 0 || resultBuffer.length() > 0) {int retLen;if (resultBuffer.length() > 0) {retLen = outputFromResultBuffer(cbuf, off, len);if (retLen > 0) {return retLen;}}int resLen = readAndNormalizeFromInput();if (resLen > 0) {retLen = outputFromResultBuffer(cbuf, off, len);if (retLen > 0) {return retLen;}}readInputToBuffer();}return -1;}
|
[
"public",
"int",
"read",
"(",
"char",
"[",
"]",
"cbuf",
",",
"int",
"off",
",",
"int",
"len",
")",
"throws",
"IOException",
"{",
"if",
"(",
"off",
"<",
"0",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"off < 0\"",
")",
";",
"if",
"(",
"off",
">=",
"cbuf",
".",
"length",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"off >= cbuf.length\"",
")",
";",
"if",
"(",
"len",
"<=",
"0",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"len <= 0\"",
")",
";",
"while",
"(",
"!",
"inputFinished",
"||",
"inputBuffer",
".",
"length",
"(",
")",
">",
"0",
"||",
"resultBuffer",
".",
"length",
"(",
")",
">",
"0",
")",
"{",
"int",
"retLen",
";",
"if",
"(",
"resultBuffer",
".",
"length",
"(",
")",
">",
"0",
")",
"{",
"retLen",
"=",
"outputFromResultBuffer",
"(",
"cbuf",
",",
"off",
",",
"len",
")",
";",
"if",
"(",
"retLen",
">",
"0",
")",
"{",
"return",
"retLen",
";",
"}",
"}",
"int",
"resLen",
"=",
"readAndNormalizeFromInput",
"(",
")",
";",
"if",
"(",
"resLen",
">",
"0",
")",
"{",
"retLen",
"=",
"outputFromResultBuffer",
"(",
"cbuf",
",",
"off",
",",
"len",
")",
";",
"if",
"(",
"retLen",
">",
"0",
")",
"{",
"return",
"retLen",
";",
"}",
"}",
"readInputToBuffer",
"(",
")",
";",
"}",
"return",
"-",
"1",
";",
"}"
] |
public override int Read(char[] cbuf, int off, int len){if (off < 0) throw new ArgumentException("off < 0");if (off >= cbuf.Length) throw new ArgumentException("off >= cbuf.length");if (len <= 0) throw new ArgumentException("len <= 0");while (!inputFinished || inputBuffer.Length > 0 || resultBuffer.Length > 0){int retLen;if (resultBuffer.Length > 0){retLen = OutputFromResultBuffer(cbuf, off, len);if (retLen > 0){return retLen;}}int resLen = ReadAndNormalizeFromInput();if (resLen > 0){retLen = OutputFromResultBuffer(cbuf, off, len);if (retLen > 0){return retLen;}}ReadInputToBuffer();}return 0; }
|
train
| false
|
5,123
|
public void readFully(byte[] buffer) {checkPosition(buffer.length);read(buffer, 0, buffer.length);}
|
[
"public",
"void",
"readFully",
"(",
"byte",
"[",
"]",
"buffer",
")",
"{",
"checkPosition",
"(",
"buffer",
".",
"length",
")",
";",
"read",
"(",
"buffer",
",",
"0",
",",
"buffer",
".",
"length",
")",
";",
"}"
] |
public void ReadFully(byte[] buf){ReadFully(buf, 0, buf.Length);}
|
train
| false
|
5,124
|
public void setBaselineTfFactors(float base, float min) {tf_min = min;tf_base = base;}
|
[
"public",
"void",
"setBaselineTfFactors",
"(",
"float",
"base",
",",
"float",
"min",
")",
"{",
"tf_min",
"=",
"min",
";",
"tf_base",
"=",
"base",
";",
"}"
] |
public virtual void SetBaselineTfFactors(float @base, float min){tf_min = min;tf_base = @base;}
|
train
| false
|
5,125
|
public DatasetSplitter(double testRatio, double crossValidationRatio) {this.crossValidationRatio = crossValidationRatio;this.testRatio = testRatio;}
|
[
"public",
"DatasetSplitter",
"(",
"double",
"testRatio",
",",
"double",
"crossValidationRatio",
")",
"{",
"this",
".",
"crossValidationRatio",
"=",
"crossValidationRatio",
";",
"this",
".",
"testRatio",
"=",
"testRatio",
";",
"}"
] |
public DatasetSplitter(double testRatio, double crossValidationRatio){this._crossValidationRatio = crossValidationRatio;this._testRatio = testRatio;}
|
train
| false
|
5,126
|
public ListBuildsResult listBuilds(ListBuildsRequest request) {request = beforeClientExecution(request);return executeListBuilds(request);}
|
[
"public",
"ListBuildsResult",
"listBuilds",
"(",
"ListBuildsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListBuilds",
"(",
"request",
")",
";",
"}"
] |
public virtual ListBuildsResponse ListBuilds(ListBuildsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListBuildsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListBuildsResponseUnmarshaller.Instance;return Invoke<ListBuildsResponse>(request, options);}
|
train
| true
|
5,127
|
public int getStartLine() {return startLine;}
|
[
"public",
"int",
"getStartLine",
"(",
")",
"{",
"return",
"startLine",
";",
"}"
] |
public virtual int GetStartLine(){return startLine;}
|
train
| false
|
5,129
|
public void serialize(LittleEndianOutput out) {out.writeShort(rtFirst);out.writeShort(rtLast);}
|
[
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"rtFirst",
")",
";",
"out",
".",
"writeShort",
"(",
"rtLast",
")",
";",
"}"
] |
public void Serialize(ILittleEndianOutput out1){out1.WriteShort(rtFirst);out1.WriteShort(rtLast);}
|
train
| false
|
5,130
|
public DBCluster restoreDBClusterFromS3(RestoreDBClusterFromS3Request request) {request = beforeClientExecution(request);return executeRestoreDBClusterFromS3(request);}
|
[
"public",
"DBCluster",
"restoreDBClusterFromS3",
"(",
"RestoreDBClusterFromS3Request",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRestoreDBClusterFromS3",
"(",
"request",
")",
";",
"}"
] |
public virtual RestoreDBClusterFromS3Response RestoreDBClusterFromS3(RestoreDBClusterFromS3Request request){var options = new InvokeOptions();options.RequestMarshaller = RestoreDBClusterFromS3RequestMarshaller.Instance;options.ResponseUnmarshaller = RestoreDBClusterFromS3ResponseUnmarshaller.Instance;return Invoke<RestoreDBClusterFromS3Response>(request, options);}
|
train
| true
|
5,131
|
public void println(boolean b) {println(String.valueOf(b));}
|
[
"public",
"void",
"println",
"(",
"boolean",
"b",
")",
"{",
"println",
"(",
"String",
".",
"valueOf",
"(",
"b",
")",
")",
";",
"}"
] |
public virtual void println(bool b){println(b.ToString());}
|
train
| false
|
5,132
|
public ThrowingPrintWriter(Writer out) {this.out = out;LF = AccessController.doPrivileged((PrivilegedAction<String>) () -> SystemReader.getInstance().getProperty("line.separator") );}
|
[
"public",
"ThrowingPrintWriter",
"(",
"Writer",
"out",
")",
"{",
"this",
".",
"out",
"=",
"out",
";",
"LF",
"=",
"AccessController",
".",
"doPrivileged",
"(",
"(",
"PrivilegedAction",
"<",
"String",
">",
")",
"(",
")",
"->",
"SystemReader",
".",
"getInstance",
"(",
")",
".",
"getProperty",
"(",
"\"line.separator\"",
")",
")",
";",
"}"
] |
public ThrowingPrintWriter(TextWriter @out){this.@out = @out;LF = AccessController.DoPrivileged(new _PrivilegedAction_69());}
|
train
| false
|
5,133
|
public DescribeResourceResult describeResource(DescribeResourceRequest request) {request = beforeClientExecution(request);return executeDescribeResource(request);}
|
[
"public",
"DescribeResourceResult",
"describeResource",
"(",
"DescribeResourceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeResource",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeResourceResponse DescribeResource(DescribeResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeResourceResponseUnmarshaller.Instance;return Invoke<DescribeResourceResponse>(request, options);}
|
train
| true
|
5,134
|
public String getFlags() {return flags;}
|
[
"public",
"String",
"getFlags",
"(",
")",
"{",
"return",
"flags",
";",
"}"
] |
public virtual string getFlags(){return flags;}
|
train
| false
|
5,135
|
public GetAccountSettingsResult getAccountSettings(GetAccountSettingsRequest request) {request = beforeClientExecution(request);return executeGetAccountSettings(request);}
|
[
"public",
"GetAccountSettingsResult",
"getAccountSettings",
"(",
"GetAccountSettingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetAccountSettings",
"(",
"request",
")",
";",
"}"
] |
public virtual GetAccountSettingsResponse GetAccountSettings(GetAccountSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAccountSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAccountSettingsResponseUnmarshaller.Instance;return Invoke<GetAccountSettingsResponse>(request, options);}
|
train
| true
|
5,136
|
public UpdateClusterSettingsResult updateClusterSettings(UpdateClusterSettingsRequest request) {request = beforeClientExecution(request);return executeUpdateClusterSettings(request);}
|
[
"public",
"UpdateClusterSettingsResult",
"updateClusterSettings",
"(",
"UpdateClusterSettingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateClusterSettings",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateClusterSettingsResponse UpdateClusterSettings(UpdateClusterSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateClusterSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateClusterSettingsResponseUnmarshaller.Instance;return Invoke<UpdateClusterSettingsResponse>(request, options);}
|
train
| false
|
5,137
|
public GetRelationalDatabaseSnapshotsResult getRelationalDatabaseSnapshots(GetRelationalDatabaseSnapshotsRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseSnapshots(request);}
|
[
"public",
"GetRelationalDatabaseSnapshotsResult",
"getRelationalDatabaseSnapshots",
"(",
"GetRelationalDatabaseSnapshotsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetRelationalDatabaseSnapshots",
"(",
"request",
")",
";",
"}"
] |
public virtual GetRelationalDatabaseSnapshotsResponse GetRelationalDatabaseSnapshots(GetRelationalDatabaseSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseSnapshotsResponseUnmarshaller.Instance;return Invoke<GetRelationalDatabaseSnapshotsResponse>(request, options);}
|
train
| true
|
5,138
|
public ByteBuffer putShort(short value) {int newPosition = position + SizeOf.SHORT;if (newPosition > limit) {throw new BufferOverflowException();}Memory.pokeShort(backingArray, offset + position, value, order);position = newPosition;return this;}
|
[
"public",
"ByteBuffer",
"putShort",
"(",
"short",
"value",
")",
"{",
"int",
"newPosition",
"=",
"position",
"+",
"SizeOf",
".",
"SHORT",
";",
"if",
"(",
"newPosition",
">",
"limit",
")",
"{",
"throw",
"new",
"BufferOverflowException",
"(",
")",
";",
"}",
"Memory",
".",
"pokeShort",
"(",
"backingArray",
",",
"offset",
"+",
"position",
",",
"value",
",",
"order",
")",
";",
"position",
"=",
"newPosition",
";",
"return",
"this",
";",
"}"
] |
public override java.nio.ByteBuffer putShort(short value){int newPosition = _position + libcore.io.SizeOf.SHORT;if (newPosition > _limit){throw new java.nio.BufferOverflowException();}libcore.io.Memory.pokeShort(backingArray, offset + _position, value, _order);_position = newPosition;return this;}
|
train
| false
|
5,139
|
public DescribeProcessingJobResult describeProcessingJob(DescribeProcessingJobRequest request) {request = beforeClientExecution(request);return executeDescribeProcessingJob(request);}
|
[
"public",
"DescribeProcessingJobResult",
"describeProcessingJob",
"(",
"DescribeProcessingJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeProcessingJob",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeProcessingJobResponse DescribeProcessingJob(DescribeProcessingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeProcessingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeProcessingJobResponseUnmarshaller.Instance;return Invoke<DescribeProcessingJobResponse>(request, options);}
|
train
| false
|
5,140
|
public UnbindInstance2VpcRequest() {super("Ots", "2016-06-20", "UnbindInstance2Vpc", "ots");setMethod(MethodType.POST);}
|
[
"public",
"UnbindInstance2VpcRequest",
"(",
")",
"{",
"super",
"(",
"\"Ots\"",
",",
"\"2016-06-20\"",
",",
"\"UnbindInstance2Vpc\"",
",",
"\"ots\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] |
public UnbindInstance2VpcRequest(): base("Ots", "2016-06-20", "UnbindInstance2Vpc", "ots", "openAPI"){Method = MethodType.POST;}
|
train
| false
|
5,141
|
public ByteArrayBackedDataSource(byte[] data, int size) { this.buffer = data;this.size = size;}
|
[
"public",
"ByteArrayBackedDataSource",
"(",
"byte",
"[",
"]",
"data",
",",
"int",
"size",
")",
"{",
"this",
".",
"buffer",
"=",
"data",
";",
"this",
".",
"size",
"=",
"size",
";",
"}"
] |
public ByteArrayBackedDataSource(byte[] data, int size){this.buffer = data;this.size = size;}
|
train
| false
|
5,142
|
public Set<String> getSchemes() {return Collections.emptySet();}
|
[
"public",
"Set",
"<",
"String",
">",
"getSchemes",
"(",
")",
"{",
"return",
"Collections",
".",
"emptySet",
"(",
")",
";",
"}"
] |
public virtual ICollection<string> GetSchemes(){return Sharpen.Collections.EmptySet<string>();}
|
train
| false
|
5,143
|
public void seekExact(long ord) {termOrd = (int) ord;setTerm();}
|
[
"public",
"void",
"seekExact",
"(",
"long",
"ord",
")",
"{",
"termOrd",
"=",
"(",
"int",
")",
"ord",
";",
"setTerm",
"(",
")",
";",
"}"
] |
public override void SeekExact(long ord){termOrd = (int) ord;SetTerm();}
|
train
| false
|
5,144
|
public QueryConfigHandler getQueryConfigHandler() {return queryConfigHandler;}
|
[
"public",
"QueryConfigHandler",
"getQueryConfigHandler",
"(",
")",
"{",
"return",
"queryConfigHandler",
";",
"}"
] |
public virtual QueryConfigHandler GetQueryConfigHandler(){return queryConfigHandler;}
|
train
| false
|
5,146
|
public UpdateDocumentationPartResult updateDocumentationPart(UpdateDocumentationPartRequest request) {request = beforeClientExecution(request);return executeUpdateDocumentationPart(request);}
|
[
"public",
"UpdateDocumentationPartResult",
"updateDocumentationPart",
"(",
"UpdateDocumentationPartRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateDocumentationPart",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateDocumentationPartResponse UpdateDocumentationPart(UpdateDocumentationPartRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDocumentationPartRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDocumentationPartResponseUnmarshaller.Instance;return Invoke<UpdateDocumentationPartResponse>(request, options);}
|
train
| true
|
5,147
|
public DBCluster deleteDBCluster(DeleteDBClusterRequest request) {request = beforeClientExecution(request);return executeDeleteDBCluster(request);}
|
[
"public",
"DBCluster",
"deleteDBCluster",
"(",
"DeleteDBClusterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteDBCluster",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteDBClusterResponse DeleteDBCluster(DeleteDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBClusterResponseUnmarshaller.Instance;return Invoke<DeleteDBClusterResponse>(request, options);}
|
train
| true
|
5,148
|
public Drawable getProgressDrawable() {return mProgressDrawable;}
|
[
"public",
"Drawable",
"getProgressDrawable",
"(",
")",
"{",
"return",
"mProgressDrawable",
";",
"}"
] |
public virtual android.graphics.drawable.Drawable getProgressDrawable(){return mProgressDrawable;}
|
train
| false
|
5,149
|
public ConfigureHealthCheckRequest(String loadBalancerName, HealthCheck healthCheck) {setLoadBalancerName(loadBalancerName);setHealthCheck(healthCheck);}
|
[
"public",
"ConfigureHealthCheckRequest",
"(",
"String",
"loadBalancerName",
",",
"HealthCheck",
"healthCheck",
")",
"{",
"setLoadBalancerName",
"(",
"loadBalancerName",
")",
";",
"setHealthCheck",
"(",
"healthCheck",
")",
";",
"}"
] |
public ConfigureHealthCheckRequest(string loadBalancerName, HealthCheck healthCheck){_loadBalancerName = loadBalancerName;_healthCheck = healthCheck;}
|
train
| false
|
5,150
|
public Row(Row old) {cells = old.cells;}
|
[
"public",
"Row",
"(",
"Row",
"old",
")",
"{",
"cells",
"=",
"old",
".",
"cells",
";",
"}"
] |
public Row(Row old){cells = old.cells;}
|
train
| false
|
5,151
|
public void incrementShapeCount(){this.field_1_numShapes++;}
|
[
"public",
"void",
"incrementShapeCount",
"(",
")",
"{",
"this",
".",
"field_1_numShapes",
"++",
";",
"}"
] |
public void IncrementShapeCount(){this.field_1_numShapes++;}
|
train
| false
|
5,152
|
public EnableEbsEncryptionByDefaultResult enableEbsEncryptionByDefault(EnableEbsEncryptionByDefaultRequest request) {request = beforeClientExecution(request);return executeEnableEbsEncryptionByDefault(request);}
|
[
"public",
"EnableEbsEncryptionByDefaultResult",
"enableEbsEncryptionByDefault",
"(",
"EnableEbsEncryptionByDefaultRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeEnableEbsEncryptionByDefault",
"(",
"request",
")",
";",
"}"
] |
public virtual EnableEbsEncryptionByDefaultResponse EnableEbsEncryptionByDefault(EnableEbsEncryptionByDefaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableEbsEncryptionByDefaultRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableEbsEncryptionByDefaultResponseUnmarshaller.Instance;return Invoke<EnableEbsEncryptionByDefaultResponse>(request, options);}
|
train
| false
|
5,153
|
public void setValueNoCopy(char[] newValue) {clear();value = newValue;}
|
[
"public",
"void",
"setValueNoCopy",
"(",
"char",
"[",
"]",
"newValue",
")",
"{",
"clear",
"(",
")",
";",
"value",
"=",
"newValue",
";",
"}"
] |
public virtual void SetValueNoCopy(char[] newValue){Clear();value = newValue;}
|
train
| false
|
5,154
|
public String toString() {return "(" + a.toString() + " AND " + b.toString() + ")";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"(\"",
"+",
"a",
".",
"toString",
"(",
")",
"+",
"\" AND \"",
"+",
"b",
".",
"toString",
"(",
")",
"+",
"\")\"",
";",
"}"
] |
public override string ToString(){return "(" + a.ToString() + " AND " + b.ToString() + ")";}
|
train
| false
|
5,155
|
public DeleteIntegrationResponseResult deleteIntegrationResponse(DeleteIntegrationResponseRequest request) {request = beforeClientExecution(request);return executeDeleteIntegrationResponse(request);}
|
[
"public",
"DeleteIntegrationResponseResult",
"deleteIntegrationResponse",
"(",
"DeleteIntegrationResponseRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteIntegrationResponse",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteIntegrationResponseResponse DeleteIntegrationResponse(DeleteIntegrationResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIntegrationResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIntegrationResponseResponseUnmarshaller.Instance;return Invoke<DeleteIntegrationResponseResponse>(request, options);}
|
train
| true
|
5,157
|
public String getLocalizedMessage(Locale locale) {return this.message.getLocalizedMessage(locale);}
|
[
"public",
"String",
"getLocalizedMessage",
"(",
"Locale",
"locale",
")",
"{",
"return",
"this",
".",
"message",
".",
"getLocalizedMessage",
"(",
"locale",
")",
";",
"}"
] |
public virtual string GetLocalizedMessage(CultureInfo locale){return this.m_message.GetLocalizedMessage(locale);}
|
train
| false
|
5,159
|
public CreateTransitGatewayMulticastDomainResult createTransitGatewayMulticastDomain(CreateTransitGatewayMulticastDomainRequest request) {request = beforeClientExecution(request);return executeCreateTransitGatewayMulticastDomain(request);}
|
[
"public",
"CreateTransitGatewayMulticastDomainResult",
"createTransitGatewayMulticastDomain",
"(",
"CreateTransitGatewayMulticastDomainRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateTransitGatewayMulticastDomain",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateTransitGatewayMulticastDomainResponse CreateTransitGatewayMulticastDomain(CreateTransitGatewayMulticastDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitGatewayMulticastDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitGatewayMulticastDomainResponseUnmarshaller.Instance;return Invoke<CreateTransitGatewayMulticastDomainResponse>(request, options);}
|
train
| false
|
5,160
|
public DisassociateDomainResult disassociateDomain(DisassociateDomainRequest request) {request = beforeClientExecution(request);return executeDisassociateDomain(request);}
|
[
"public",
"DisassociateDomainResult",
"disassociateDomain",
"(",
"DisassociateDomainRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDisassociateDomain",
"(",
"request",
")",
";",
"}"
] |
public virtual DisassociateDomainResponse DisassociateDomain(DisassociateDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateDomainResponseUnmarshaller.Instance;return Invoke<DisassociateDomainResponse>(request, options);}
|
train
| true
|
5,161
|
public String toString() {StringBuilder sb = new StringBuilder();sb.append("arn:");sb.append(this.partition);sb.append(":");sb.append(this.service);sb.append(":");sb.append(region);sb.append(":");sb.append(this.accountId);sb.append(":");sb.append(this.resource);return sb.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"sb",
".",
"append",
"(",
"\"arn:\"",
")",
";",
"sb",
".",
"append",
"(",
"this",
".",
"partition",
")",
";",
"sb",
".",
"append",
"(",
"\":\"",
")",
";",
"sb",
".",
"append",
"(",
"this",
".",
"service",
")",
";",
"sb",
".",
"append",
"(",
"\":\"",
")",
";",
"sb",
".",
"append",
"(",
"region",
")",
";",
"sb",
".",
"append",
"(",
"\":\"",
")",
";",
"sb",
".",
"append",
"(",
"this",
".",
"accountId",
")",
";",
"sb",
".",
"append",
"(",
"\":\"",
")",
";",
"sb",
".",
"append",
"(",
"this",
".",
"resource",
")",
";",
"return",
"sb",
".",
"toString",
"(",
")",
";",
"}"
] |
public override string ToString(){var sb = new StringBuilder();sb.Append("arn:");sb.Append(this.Partition);sb.Append(":");sb.Append(this.Service);sb.Append(":");sb.Append(this.Region);sb.Append(":");sb.Append(this.AccountId);sb.Append(":");sb.Append(this.Resource);return sb.ToString();}
|
train
| false
|
5,162
|
public CellWalk(Sheet sheet, CellRangeAddress range) {this.sheet = sheet;this.range = range;this.traverseEmptyCells = false;}
|
[
"public",
"CellWalk",
"(",
"Sheet",
"sheet",
",",
"CellRangeAddress",
"range",
")",
"{",
"this",
".",
"sheet",
"=",
"sheet",
";",
"this",
".",
"range",
"=",
"range",
";",
"this",
".",
"traverseEmptyCells",
"=",
"false",
";",
"}"
] |
public CellWalk(ISheet sheet, CellRangeAddress range){this.sheet = sheet;this.range = range;this.traverseEmptyCells = false;}
|
train
| false
|
5,163
|
public SendMessageBatchResult sendMessageBatch(String queueUrl, java.util.List<SendMessageBatchRequestEntry> entries) {return sendMessageBatch(new SendMessageBatchRequest().withQueueUrl(queueUrl).withEntries(entries));}
|
[
"public",
"SendMessageBatchResult",
"sendMessageBatch",
"(",
"String",
"queueUrl",
",",
"java",
".",
"util",
".",
"List",
"<",
"SendMessageBatchRequestEntry",
">",
"entries",
")",
"{",
"return",
"sendMessageBatch",
"(",
"new",
"SendMessageBatchRequest",
"(",
")",
".",
"withQueueUrl",
"(",
"queueUrl",
")",
".",
"withEntries",
"(",
"entries",
")",
")",
";",
"}"
] |
public virtual SendMessageBatchResponse SendMessageBatch(string queueUrl, List<SendMessageBatchRequestEntry> entries){var request = new SendMessageBatchRequest();request.QueueUrl = queueUrl;request.Entries = entries;return SendMessageBatch(request);}
|
train
| true
|
5,164
|
public GetImportJobsResult getImportJobs(GetImportJobsRequest request) {request = beforeClientExecution(request);return executeGetImportJobs(request);}
|
[
"public",
"GetImportJobsResult",
"getImportJobs",
"(",
"GetImportJobsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetImportJobs",
"(",
"request",
")",
";",
"}"
] |
public virtual GetImportJobsResponse GetImportJobs(GetImportJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetImportJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetImportJobsResponseUnmarshaller.Instance;return Invoke<GetImportJobsResponse>(request, options);}
|
train
| true
|
5,165
|
public float docScore(int docId, String field, int numPayloadsSeen, float payloadScore) {return numPayloadsSeen > 0 ? payloadScore : 1;}
|
[
"public",
"float",
"docScore",
"(",
"int",
"docId",
",",
"String",
"field",
",",
"int",
"numPayloadsSeen",
",",
"float",
"payloadScore",
")",
"{",
"return",
"numPayloadsSeen",
">",
"0",
"?",
"payloadScore",
":",
"1",
";",
"}"
] |
public override float DocScore(int docId, string field, int numPayloadsSeen, float payloadScore){return numPayloadsSeen > 0 ? payloadScore : 1;}
|
train
| false
|
5,166
|
public CreateRelationalDatabaseResult createRelationalDatabase(CreateRelationalDatabaseRequest request) {request = beforeClientExecution(request);return executeCreateRelationalDatabase(request);}
|
[
"public",
"CreateRelationalDatabaseResult",
"createRelationalDatabase",
"(",
"CreateRelationalDatabaseRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateRelationalDatabase",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateRelationalDatabaseResponse CreateRelationalDatabase(CreateRelationalDatabaseRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRelationalDatabaseRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRelationalDatabaseResponseUnmarshaller.Instance;return Invoke<CreateRelationalDatabaseResponse>(request, options);}
|
train
| true
|
5,167
|
public Arc<T> copyFrom(Arc<T> other) {label = other.label();target = other.target();flags = other.flags();output = other.output();nextFinalOutput = other.nextFinalOutput();nextArc = other.nextArc();nodeFlags = other.nodeFlags();bytesPerArc = other.bytesPerArc();if (bytesPerArc() != 0) {posArcsStart = other.posArcsStart();arcIdx = other.arcIdx();numArcs = other.numArcs();if (nodeFlags() == ARCS_FOR_DIRECT_ADDRESSING) {bitTable = other.bitTable() == null ? null : other.bitTable().copy();firstLabel = other.firstLabel();}}return this;}
|
[
"public",
"Arc",
"<",
"T",
">",
"copyFrom",
"(",
"Arc",
"<",
"T",
">",
"other",
")",
"{",
"label",
"=",
"other",
".",
"label",
"(",
")",
";",
"target",
"=",
"other",
".",
"target",
"(",
")",
";",
"flags",
"=",
"other",
".",
"flags",
"(",
")",
";",
"output",
"=",
"other",
".",
"output",
"(",
")",
";",
"nextFinalOutput",
"=",
"other",
".",
"nextFinalOutput",
"(",
")",
";",
"nextArc",
"=",
"other",
".",
"nextArc",
"(",
")",
";",
"nodeFlags",
"=",
"other",
".",
"nodeFlags",
"(",
")",
";",
"bytesPerArc",
"=",
"other",
".",
"bytesPerArc",
"(",
")",
";",
"if",
"(",
"bytesPerArc",
"(",
")",
"!=",
"0",
")",
"{",
"posArcsStart",
"=",
"other",
".",
"posArcsStart",
"(",
")",
";",
"arcIdx",
"=",
"other",
".",
"arcIdx",
"(",
")",
";",
"numArcs",
"=",
"other",
".",
"numArcs",
"(",
")",
";",
"if",
"(",
"nodeFlags",
"(",
")",
"==",
"ARCS_FOR_DIRECT_ADDRESSING",
")",
"{",
"bitTable",
"=",
"other",
".",
"bitTable",
"(",
")",
"==",
"null",
"?",
"null",
":",
"other",
".",
"bitTable",
"(",
")",
".",
"copy",
"(",
")",
";",
"firstLabel",
"=",
"other",
".",
"firstLabel",
"(",
")",
";",
"}",
"}",
"return",
"this",
";",
"}"
] |
public Arc<T> CopyFrom(Arc<T> other){Node = other.Node;Label = other.Label;Target = other.Target;Flags = other.Flags;Output = other.Output;NextFinalOutput = other.Output;NextFinalOutput = other.NextFinalOutput;NextArc = other.NextArc;BytesPerArc = other.BytesPerArc;if (BytesPerArc != 0){PosArcsStart = other.PosArcsStart;ArcIdx = other.ArcIdx;NumArcs = other.NumArcs;}return this;}
|
train
| false
|
5,168
|
public AbbreviatedObjectId getOldId() {return oldId;}
|
[
"public",
"AbbreviatedObjectId",
"getOldId",
"(",
")",
"{",
"return",
"oldId",
";",
"}"
] |
public virtual AbbreviatedObjectId GetOldId(){return oldId;}
|
train
| false
|
5,169
|
public ContinueUpdateRollbackResult continueUpdateRollback(ContinueUpdateRollbackRequest request) {request = beforeClientExecution(request);return executeContinueUpdateRollback(request);}
|
[
"public",
"ContinueUpdateRollbackResult",
"continueUpdateRollback",
"(",
"ContinueUpdateRollbackRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeContinueUpdateRollback",
"(",
"request",
")",
";",
"}"
] |
public virtual ContinueUpdateRollbackResponse ContinueUpdateRollback(ContinueUpdateRollbackRequest request){var options = new InvokeOptions();options.RequestMarshaller = ContinueUpdateRollbackRequestMarshaller.Instance;options.ResponseUnmarshaller = ContinueUpdateRollbackResponseUnmarshaller.Instance;return Invoke<ContinueUpdateRollbackResponse>(request, options);}
|
train
| true
|
5,170
|
public ListDataSourcesResult listDataSources(ListDataSourcesRequest request) {request = beforeClientExecution(request);return executeListDataSources(request);}
|
[
"public",
"ListDataSourcesResult",
"listDataSources",
"(",
"ListDataSourcesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListDataSources",
"(",
"request",
")",
";",
"}"
] |
public virtual ListDataSourcesResponse ListDataSources(ListDataSourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDataSourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDataSourcesResponseUnmarshaller.Instance;return Invoke<ListDataSourcesResponse>(request, options);}
|
train
| true
|
5,171
|
public void execute(Lexer lexer) {lexer.setChannel(channel);}
|
[
"public",
"void",
"execute",
"(",
"Lexer",
"lexer",
")",
"{",
"lexer",
".",
"setChannel",
"(",
"channel",
")",
";",
"}"
] |
public void Execute(Lexer lexer){lexer.Channel = channel;}
|
train
| false
|
5,172
|
public int LA(int i) {if ( i==-1 ) return lastChar; sync(i);int index = p + i - 1;if ( index < 0 ) throw new IndexOutOfBoundsException();if ( index >= n ) return IntStream.EOF;return data[index];}
|
[
"public",
"int",
"LA",
"(",
"int",
"i",
")",
"{",
"if",
"(",
"i",
"==",
"-",
"1",
")",
"return",
"lastChar",
";",
"sync",
"(",
"i",
")",
";",
"int",
"index",
"=",
"p",
"+",
"i",
"-",
"1",
";",
"if",
"(",
"index",
"<",
"0",
")",
"throw",
"new",
"IndexOutOfBoundsException",
"(",
")",
";",
"if",
"(",
"index",
">=",
"n",
")",
"return",
"IntStream",
".",
"EOF",
";",
"return",
"data",
"[",
"index",
"]",
";",
"}"
] |
public virtual int LA(int i){if (i == -1){return lastChar;}Sync(i);int index = p + i - 1;if (index < 0){throw new ArgumentOutOfRangeException();}if (index >= n){return IntStreamConstants.EOF;}return data[index];}
|
train
| false
|
5,173
|
public final int[] array() {return protectedArray();}
|
[
"public",
"final",
"int",
"[",
"]",
"array",
"(",
")",
"{",
"return",
"protectedArray",
"(",
")",
";",
"}"
] |
public sealed override object array(){return protectedArray();}
|
train
| false
|
5,175
|
public RefWriter(RefList<Ref> refs) {this.refs = refs.asList();}
|
[
"public",
"RefWriter",
"(",
"RefList",
"<",
"Ref",
">",
"refs",
")",
"{",
"this",
".",
"refs",
"=",
"refs",
".",
"asList",
"(",
")",
";",
"}"
] |
public RefWriter(RefList<Ref> refs){this.refs = refs.AsList();}
|
train
| false
|
5,177
|
public SubmoduleUpdateCommand setProgressMonitor(final ProgressMonitor monitor) {this.monitor = monitor;return this;}
|
[
"public",
"SubmoduleUpdateCommand",
"setProgressMonitor",
"(",
"final",
"ProgressMonitor",
"monitor",
")",
"{",
"this",
".",
"monitor",
"=",
"monitor",
";",
"return",
"this",
";",
"}"
] |
public virtual NGit.Api.SubmoduleUpdateCommand SetProgressMonitor(ProgressMonitormonitor){this.monitor = monitor;return this;}
|
train
| false
|
5,178
|
public DescribeDatasetGroupResult describeDatasetGroup(DescribeDatasetGroupRequest request) {request = beforeClientExecution(request);return executeDescribeDatasetGroup(request);}
|
[
"public",
"DescribeDatasetGroupResult",
"describeDatasetGroup",
"(",
"DescribeDatasetGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeDatasetGroup",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeDatasetGroupResponse DescribeDatasetGroup(DescribeDatasetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDatasetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDatasetGroupResponseUnmarshaller.Instance;return Invoke<DescribeDatasetGroupResponse>(request, options);}
|
train
| false
|
5,179
|
public ListGameServerGroupsResult listGameServerGroups(ListGameServerGroupsRequest request) {request = beforeClientExecution(request);return executeListGameServerGroups(request);}
|
[
"public",
"ListGameServerGroupsResult",
"listGameServerGroups",
"(",
"ListGameServerGroupsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListGameServerGroups",
"(",
"request",
")",
";",
"}"
] |
public virtual ListGameServerGroupsResponse ListGameServerGroups(ListGameServerGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGameServerGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGameServerGroupsResponseUnmarshaller.Instance;return Invoke<ListGameServerGroupsResponse>(request, options);}
|
train
| false
|
5,180
|
public NameRecord getSpecificBuiltinRecord(byte name, int sheetNumber){return getOrCreateLinkTable().getSpecificBuiltinRecord(name, sheetNumber);}
|
[
"public",
"NameRecord",
"getSpecificBuiltinRecord",
"(",
"byte",
"name",
",",
"int",
"sheetNumber",
")",
"{",
"return",
"getOrCreateLinkTable",
"(",
")",
".",
"getSpecificBuiltinRecord",
"(",
"name",
",",
"sheetNumber",
")",
";",
"}"
] |
public NameRecord GetSpecificBuiltinRecord(byte name, int sheetIndex){return OrCreateLinkTable.GetSpecificBuiltinRecord(name, sheetIndex);}
|
train
| false
|
5,181
|
public long readLong(){int b0 = _in.readUByte();int b1 = _in.readUByte();int b2 = _in.readUByte();int b3 = _in.readUByte();int b4 = _in.readUByte();int b5 = _in.readUByte();int b6 = _in.readUByte();int b7 = _in.readUByte();return (((long)b7 << 56) +((long)b6 << 48) +((long)b5 << 40) +((long)b4 << 32) +((long)b3 << 24) +(b2 << 16) +(b1 << 8) +(b0 << 0));}
|
[
"public",
"long",
"readLong",
"(",
")",
"{",
"int",
"b0",
"=",
"_in",
".",
"readUByte",
"(",
")",
";",
"int",
"b1",
"=",
"_in",
".",
"readUByte",
"(",
")",
";",
"int",
"b2",
"=",
"_in",
".",
"readUByte",
"(",
")",
";",
"int",
"b3",
"=",
"_in",
".",
"readUByte",
"(",
")",
";",
"int",
"b4",
"=",
"_in",
".",
"readUByte",
"(",
")",
";",
"int",
"b5",
"=",
"_in",
".",
"readUByte",
"(",
")",
";",
"int",
"b6",
"=",
"_in",
".",
"readUByte",
"(",
")",
";",
"int",
"b7",
"=",
"_in",
".",
"readUByte",
"(",
")",
";",
"return",
"(",
"(",
"(",
"long",
")",
"b7",
"<<",
"56",
")",
"+",
"(",
"(",
"long",
")",
"b6",
"<<",
"48",
")",
"+",
"(",
"(",
"long",
")",
"b5",
"<<",
"40",
")",
"+",
"(",
"(",
"long",
")",
"b4",
"<<",
"32",
")",
"+",
"(",
"(",
"long",
")",
"b3",
"<<",
"24",
")",
"+",
"(",
"b2",
"<<",
"16",
")",
"+",
"(",
"b1",
"<<",
"8",
")",
"+",
"(",
"b0",
"<<",
"0",
")",
")",
";",
"}"
] |
public long ReadLong(){int b0 = _in.ReadUByte();int b1 = _in.ReadUByte();int b2 = _in.ReadUByte();int b3 = _in.ReadUByte();int b4 = _in.ReadUByte();int b5 = _in.ReadUByte();int b6 = _in.ReadUByte();int b7 = _in.ReadUByte();return (((long)b7 << 56) +((long)b6 << 48) +((long)b5 << 40) +((long)b4 << 32) +((long)b3 << 24) +(b2 << 16) +(b1 << 8) +(b0 << 0));}
|
train
| false
|
5,182
|
public static ValueVector createVector(TwoDEval ae) {if (ae.isColumn()) {return createColumnVector(ae, 0);}if (ae.isRow()) {return createRowVector(ae, 0);}return null;}
|
[
"public",
"static",
"ValueVector",
"createVector",
"(",
"TwoDEval",
"ae",
")",
"{",
"if",
"(",
"ae",
".",
"isColumn",
"(",
")",
")",
"{",
"return",
"createColumnVector",
"(",
"ae",
",",
"0",
")",
";",
"}",
"if",
"(",
"ae",
".",
"isRow",
"(",
")",
")",
"{",
"return",
"createRowVector",
"(",
"ae",
",",
"0",
")",
";",
"}",
"return",
"null",
";",
"}"
] |
public static ValueVector CreateVector(TwoDEval ae){if (ae.IsColumn){return CreateColumnVector(ae, 0);}if (ae.IsRow){return CreateRowVector(ae, 0);}return null;}
|
train
| false
|
5,183
|
public boolean isSupported(int bitsPerValue) {return bitsPerValue >= 1 && bitsPerValue <= 64;}
|
[
"public",
"boolean",
"isSupported",
"(",
"int",
"bitsPerValue",
")",
"{",
"return",
"bitsPerValue",
">=",
"1",
"&&",
"bitsPerValue",
"<=",
"64",
";",
"}"
] |
public virtual bool IsSupported(int bitsPerValue){return bitsPerValue >= 1 && bitsPerValue <= 64;}
|
train
| false
|
5,184
|
public String toString() {return "{" +"decision=" + decision +", contextSensitivities=" + contextSensitivities.size() +", errors=" + errors.size() +", ambiguities=" + ambiguities.size() +", SLL_lookahead=" + SLL_TotalLook +", SLL_ATNTransitions=" + SLL_ATNTransitions +", SLL_DFATransitions=" + SLL_DFATransitions +", LL_Fallback=" + LL_Fallback +", LL_lookahead=" + LL_TotalLook +", LL_ATNTransitions=" + LL_ATNTransitions +'}';}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"{\"",
"+",
"\"decision=\"",
"+",
"decision",
"+",
"\", contextSensitivities=\"",
"+",
"contextSensitivities",
".",
"size",
"(",
")",
"+",
"\", errors=\"",
"+",
"errors",
".",
"size",
"(",
")",
"+",
"\", ambiguities=\"",
"+",
"ambiguities",
".",
"size",
"(",
")",
"+",
"\", SLL_lookahead=\"",
"+",
"SLL_TotalLook",
"+",
"\", SLL_ATNTransitions=\"",
"+",
"SLL_ATNTransitions",
"+",
"\", SLL_DFATransitions=\"",
"+",
"SLL_DFATransitions",
"+",
"\", LL_Fallback=\"",
"+",
"LL_Fallback",
"+",
"\", LL_lookahead=\"",
"+",
"LL_TotalLook",
"+",
"\", LL_ATNTransitions=\"",
"+",
"LL_ATNTransitions",
"+",
"'}'",
";",
"}"
] |
public override string ToString(){return "{" +"decision=" + decision +", contextSensitivities=" + contextSensitivities.Count +", errors=" + errors.Count +", ambiguities=" + ambiguities.Count +", SLL_lookahead=" + SLL_TotalLook +", SLL_ATNTransitions=" + SLL_ATNTransitions +", SLL_DFATransitions=" + SLL_DFATransitions +", LL_Fallback=" + LL_Fallback +", LL_lookahead=" + LL_TotalLook +", LL_ATNTransitions=" + LL_ATNTransitions +'}';}
|
train
| false
|
5,185
|
public RemoveNoteCommand notesRemove() {return new RemoveNoteCommand(repo);}
|
[
"public",
"RemoveNoteCommand",
"notesRemove",
"(",
")",
"{",
"return",
"new",
"RemoveNoteCommand",
"(",
"repo",
")",
";",
"}"
] |
public virtual RemoveNoteCommand NotesRemove(){return new RemoveNoteCommand(repo);}
|
train
| false
|
5,186
|
public int serialize(int offset, byte[] data, EscherSerializationListener listener) {listener.beforeRecordSerialize( offset, getRecordId(), this );LittleEndian.putShort(data, offset, getOptions());LittleEndian.putShort(data, offset+2, getRecordId());int remainingBytes = thedata.length;for (EscherRecord r : _childRecords) {remainingBytes += r.getRecordSize();}LittleEndian.putInt(data, offset+4, remainingBytes);System.arraycopy(thedata, 0, data, offset+8, thedata.length);int pos = offset+8+thedata.length;for (EscherRecord r : _childRecords) {pos += r.serialize(pos, data, listener );}listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );return pos - offset;}
|
[
"public",
"int",
"serialize",
"(",
"int",
"offset",
",",
"byte",
"[",
"]",
"data",
",",
"EscherSerializationListener",
"listener",
")",
"{",
"listener",
".",
"beforeRecordSerialize",
"(",
"offset",
",",
"getRecordId",
"(",
")",
",",
"this",
")",
";",
"LittleEndian",
".",
"putShort",
"(",
"data",
",",
"offset",
",",
"getOptions",
"(",
")",
")",
";",
"LittleEndian",
".",
"putShort",
"(",
"data",
",",
"offset",
"+",
"2",
",",
"getRecordId",
"(",
")",
")",
";",
"int",
"remainingBytes",
"=",
"thedata",
".",
"length",
";",
"for",
"(",
"EscherRecord",
"r",
":",
"_childRecords",
")",
"{",
"remainingBytes",
"+=",
"r",
".",
"getRecordSize",
"(",
")",
";",
"}",
"LittleEndian",
".",
"putInt",
"(",
"data",
",",
"offset",
"+",
"4",
",",
"remainingBytes",
")",
";",
"System",
".",
"arraycopy",
"(",
"thedata",
",",
"0",
",",
"data",
",",
"offset",
"+",
"8",
",",
"thedata",
".",
"length",
")",
";",
"int",
"pos",
"=",
"offset",
"+",
"8",
"+",
"thedata",
".",
"length",
";",
"for",
"(",
"EscherRecord",
"r",
":",
"_childRecords",
")",
"{",
"pos",
"+=",
"r",
".",
"serialize",
"(",
"pos",
",",
"data",
",",
"listener",
")",
";",
"}",
"listener",
".",
"afterRecordSerialize",
"(",
"pos",
",",
"getRecordId",
"(",
")",
",",
"pos",
"-",
"offset",
",",
"this",
")",
";",
"return",
"pos",
"-",
"offset",
";",
"}"
] |
public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);LittleEndian.PutShort(data, offset, Options);LittleEndian.PutShort(data, offset + 2, RecordId);int remainingBytes = _thedata.Length;for (IEnumerator iterator = ChildRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord r = (EscherRecord)iterator.Current;remainingBytes += r.RecordSize;}LittleEndian.PutInt(data, offset + 4, remainingBytes);Array.Copy(_thedata, 0, data, offset + 8, _thedata.Length);int pos = offset + 8 + _thedata.Length;for (IEnumerator iterator = ChildRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord r = (EscherRecord)iterator.Current;pos += r.Serialize(pos, data);}listener.AfterRecordSerialize(pos, RecordId, pos - offset, this);return pos - offset;}
|
train
| false
|
5,187
|
public void inform(ResourceLoader loader) throws IOException {if (stopWordFiles != null) {if (FORMAT_WORDSET.equalsIgnoreCase(format)) {stopWords = getWordSet(loader, stopWordFiles, ignoreCase);} else if (FORMAT_SNOWBALL.equalsIgnoreCase(format)) {stopWords = getSnowballWordSet(loader, stopWordFiles, ignoreCase);} else {throw new IllegalArgumentException("Unknown 'format' specified for 'words' file: " + format);}} else {if (null != format) {throw new IllegalArgumentException("'format' can not be specified w/o an explicit 'words' file: " + format);}stopWords = new CharArraySet(EnglishAnalyzer.ENGLISH_STOP_WORDS_SET, ignoreCase);}}
|
[
"public",
"void",
"inform",
"(",
"ResourceLoader",
"loader",
")",
"throws",
"IOException",
"{",
"if",
"(",
"stopWordFiles",
"!=",
"null",
")",
"{",
"if",
"(",
"FORMAT_WORDSET",
".",
"equalsIgnoreCase",
"(",
"format",
")",
")",
"{",
"stopWords",
"=",
"getWordSet",
"(",
"loader",
",",
"stopWordFiles",
",",
"ignoreCase",
")",
";",
"}",
"else",
"if",
"(",
"FORMAT_SNOWBALL",
".",
"equalsIgnoreCase",
"(",
"format",
")",
")",
"{",
"stopWords",
"=",
"getSnowballWordSet",
"(",
"loader",
",",
"stopWordFiles",
",",
"ignoreCase",
")",
";",
"}",
"else",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown 'format' specified for 'words' file: \"",
"+",
"format",
")",
";",
"}",
"}",
"else",
"{",
"if",
"(",
"null",
"!=",
"format",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"'format' can not be specified w/o an explicit 'words' file: \"",
"+",
"format",
")",
";",
"}",
"stopWords",
"=",
"new",
"CharArraySet",
"(",
"EnglishAnalyzer",
".",
"ENGLISH_STOP_WORDS_SET",
",",
"ignoreCase",
")",
";",
"}",
"}"
] |
public virtual void Inform(IResourceLoader loader){if (stopWordFiles != null){if (FORMAT_WORDSET.Equals(format, StringComparison.OrdinalIgnoreCase)){stopWords = GetWordSet(loader, stopWordFiles, ignoreCase);}else if (FORMAT_SNOWBALL.Equals(format, StringComparison.OrdinalIgnoreCase)){stopWords = GetSnowballWordSet(loader, stopWordFiles, ignoreCase);}else{throw new System.ArgumentException("Unknown 'format' specified for 'words' file: " + format);}}else{if (null != format){throw new System.ArgumentException("'format' can not be specified w/o an explicit 'words' file: " + format);}stopWords = new CharArraySet(m_luceneMatchVersion, StopAnalyzer.ENGLISH_STOP_WORDS_SET, ignoreCase);}}
|
train
| false
|
5,188
|
public PredicateTransition(ATNState target, int ruleIndex, int predIndex, boolean isCtxDependent) {super(target);this.ruleIndex = ruleIndex;this.predIndex = predIndex;this.isCtxDependent = isCtxDependent;}
|
[
"public",
"PredicateTransition",
"(",
"ATNState",
"target",
",",
"int",
"ruleIndex",
",",
"int",
"predIndex",
",",
"boolean",
"isCtxDependent",
")",
"{",
"super",
"(",
"target",
")",
";",
"this",
".",
"ruleIndex",
"=",
"ruleIndex",
";",
"this",
".",
"predIndex",
"=",
"predIndex",
";",
"this",
".",
"isCtxDependent",
"=",
"isCtxDependent",
";",
"}"
] |
public PredicateTransition(ATNState target, int ruleIndex, int predIndex, bool isCtxDependent): base(target){this.ruleIndex = ruleIndex;this.predIndex = predIndex;this.isCtxDependent = isCtxDependent;}
|
train
| false
|
5,189
|
public CharFilter(Reader input) {super(input);this.input = input;}
|
[
"public",
"CharFilter",
"(",
"Reader",
"input",
")",
"{",
"super",
"(",
"input",
")",
";",
"this",
".",
"input",
"=",
"input",
";",
"}"
] |
public CharFilter(TextReader input){this.m_input = input;}
|
train
| false
|
5,190
|
public final DoubleBuffer put(DoubleBuffer buf) {throw new ReadOnlyBufferException();}
|
[
"public",
"final",
"DoubleBuffer",
"put",
"(",
"DoubleBuffer",
"buf",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] |
public sealed override java.nio.DoubleBuffer put(java.nio.DoubleBuffer buf){throw new java.nio.ReadOnlyBufferException();}
|
train
| false
|
5,191
|
public AssociateVpcCidrBlockResult associateVpcCidrBlock(AssociateVpcCidrBlockRequest request) {request = beforeClientExecution(request);return executeAssociateVpcCidrBlock(request);}
|
[
"public",
"AssociateVpcCidrBlockResult",
"associateVpcCidrBlock",
"(",
"AssociateVpcCidrBlockRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociateVpcCidrBlock",
"(",
"request",
")",
";",
"}"
] |
public virtual AssociateVpcCidrBlockResponse AssociateVpcCidrBlock(AssociateVpcCidrBlockRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateVpcCidrBlockRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateVpcCidrBlockResponseUnmarshaller.Instance;return Invoke<AssociateVpcCidrBlockResponse>(request, options);}
|
train
| true
|
5,192
|
public static Date getJavaDate(double date, boolean use1904windowing, TimeZone tz, boolean roundSeconds) {Calendar calendar = getJavaCalendar(date, use1904windowing, tz, roundSeconds);return calendar == null ? null : calendar.getTime();}
|
[
"public",
"static",
"Date",
"getJavaDate",
"(",
"double",
"date",
",",
"boolean",
"use1904windowing",
",",
"TimeZone",
"tz",
",",
"boolean",
"roundSeconds",
")",
"{",
"Calendar",
"calendar",
"=",
"getJavaCalendar",
"(",
"date",
",",
"use1904windowing",
",",
"tz",
",",
"roundSeconds",
")",
";",
"return",
"calendar",
"==",
"null",
"?",
"null",
":",
"calendar",
".",
"getTime",
"(",
")",
";",
"}"
] |
public static DateTime GetJavaDate(double date, bool use1904windowing, TimeZone tz, bool roundSeconds){return GetJavaCalendar(date, use1904windowing, roundSeconds);}
|
train
| false
|
5,193
|
public AttachTypedLinkResult attachTypedLink(AttachTypedLinkRequest request) {request = beforeClientExecution(request);return executeAttachTypedLink(request);}
|
[
"public",
"AttachTypedLinkResult",
"attachTypedLink",
"(",
"AttachTypedLinkRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAttachTypedLink",
"(",
"request",
")",
";",
"}"
] |
public virtual AttachTypedLinkResponse AttachTypedLink(AttachTypedLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachTypedLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachTypedLinkResponseUnmarshaller.Instance;return Invoke<AttachTypedLinkResponse>(request, options);}
|
train
| true
|
5,194
|
public static CellValue getError(int errorCode) {return new CellValue(CellType.ERROR, 0.0, false, null, errorCode);}
|
[
"public",
"static",
"CellValue",
"getError",
"(",
"int",
"errorCode",
")",
"{",
"return",
"new",
"CellValue",
"(",
"CellType",
".",
"ERROR",
",",
"0.0",
",",
"false",
",",
"null",
",",
"errorCode",
")",
";",
"}"
] |
public static CellValue GetError(int errorCode){return new CellValue(CellType.Error, 0.0, false, null, errorCode);}
|
train
| false
|
5,195
|
public short getHeaderValue() {return headerValue;}
|
[
"public",
"short",
"getHeaderValue",
"(",
")",
"{",
"return",
"headerValue",
";",
"}"
] |
public short GetHeaderValue(){return headerValue;}
|
train
| false
|
5,196
|
public DescribeFindingsResult describeFindings(DescribeFindingsRequest request) {request = beforeClientExecution(request);return executeDescribeFindings(request);}
|
[
"public",
"DescribeFindingsResult",
"describeFindings",
"(",
"DescribeFindingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeFindings",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeFindingsResponse DescribeFindings(DescribeFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFindingsResponseUnmarshaller.Instance;return Invoke<DescribeFindingsResponse>(request, options);}
|
train
| true
|
5,197
|
public GetSdkTypeResult getSdkType(GetSdkTypeRequest request) {request = beforeClientExecution(request);return executeGetSdkType(request);}
|
[
"public",
"GetSdkTypeResult",
"getSdkType",
"(",
"GetSdkTypeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetSdkType",
"(",
"request",
")",
";",
"}"
] |
public virtual GetSdkTypeResponse GetSdkType(GetSdkTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSdkTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSdkTypeResponseUnmarshaller.Instance;return Invoke<GetSdkTypeResponse>(request, options);}
|
train
| true
|
5,198
|
public PutLifecycleConfigurationResult putLifecycleConfiguration(PutLifecycleConfigurationRequest request) {request = beforeClientExecution(request);return executePutLifecycleConfiguration(request);}
|
[
"public",
"PutLifecycleConfigurationResult",
"putLifecycleConfiguration",
"(",
"PutLifecycleConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutLifecycleConfiguration",
"(",
"request",
")",
";",
"}"
] |
public virtual PutLifecycleConfigurationResponse PutLifecycleConfiguration(PutLifecycleConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutLifecycleConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutLifecycleConfigurationResponseUnmarshaller.Instance;return Invoke<PutLifecycleConfigurationResponse>(request, options);}
|
train
| true
|
5,199
|
public CommonToken create(int type, String text) {return new CommonToken(type, text);}
|
[
"public",
"CommonToken",
"create",
"(",
"int",
"type",
",",
"String",
"text",
")",
"{",
"return",
"new",
"CommonToken",
"(",
"type",
",",
"text",
")",
";",
"}"
] |
public virtual CommonToken Create(int type, string text){return new CommonToken(type, text);}
|
train
| false
|
5,200
|
public CommitBuilder() {parentIds = EMPTY_OBJECTID_LIST;encoding = UTF_8;}
|
[
"public",
"CommitBuilder",
"(",
")",
"{",
"parentIds",
"=",
"EMPTY_OBJECTID_LIST",
";",
"encoding",
"=",
"UTF_8",
";",
"}"
] |
public CommitBuilder(){parentIds = EMPTY_OBJECTID_LIST;encoding = Constants.CHARSET;}
|
train
| false
|
5,201
|
public boolean isWholeColumnReference() {return isWholeColumnReference(_version, _firstCell, _lastCell);}
|
[
"public",
"boolean",
"isWholeColumnReference",
"(",
")",
"{",
"return",
"isWholeColumnReference",
"(",
"_version",
",",
"_firstCell",
",",
"_lastCell",
")",
";",
"}"
] |
public bool IsWholeColumnReference(){return IsWholeColumnReference(_firstCell, _lastCell);}
|
train
| false
|
5,202
|
public final T add(T element) {size++;heap[size] = element;upHeap(size);return heap[1];}
|
[
"public",
"final",
"T",
"add",
"(",
"T",
"element",
")",
"{",
"size",
"++",
";",
"heap",
"[",
"size",
"]",
"=",
"element",
";",
"upHeap",
"(",
"size",
")",
";",
"return",
"heap",
"[",
"1",
"]",
";",
"}"
] |
public T Add(T element){size++;heap[size] = element;UpHeap();return heap[1];}
|
train
| true
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.