id_within_dataset int64 0 10.3k | snippet stringlengths 29 1.4k | tokens listlengths 10 314 | cs stringlengths 28 1.38k | split_within_dataset stringclasses 1
value | is_duplicated bool 2
classes |
|---|---|---|---|---|---|
7,964 | public DeleteApplicationCloudWatchLoggingOptionResult deleteApplicationCloudWatchLoggingOption(DeleteApplicationCloudWatchLoggingOptionRequest request) {request = beforeClientExecution(request);return executeDeleteApplicationCloudWatchLoggingOption(request);}
| [
"public",
"DeleteApplicationCloudWatchLoggingOptionResult",
"deleteApplicationCloudWatchLoggingOption",
"(",
"DeleteApplicationCloudWatchLoggingOptionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteApplicationC... | public virtual DeleteApplicationCloudWatchLoggingOptionResponse DeleteApplicationCloudWatchLoggingOption(DeleteApplicationCloudWatchLoggingOptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApplicationCloudWatchLoggingOptionRequestMarshaller.Instance;options.ResponseUnmarshaller ... | train | true |
7,965 | public FreqProxPostingsArray(int size, boolean writeFreqs, boolean writeProx, boolean writeOffsets) {super(size);if (writeFreqs) {termFreqs = new int[size];}lastDocIDs = new int[size];lastDocCodes = new int[size];if (writeProx) {lastPositions = new int[size];if (writeOffsets) {lastOffsets = new int[size];}} else {asser... | [
"public",
"FreqProxPostingsArray",
"(",
"int",
"size",
",",
"boolean",
"writeFreqs",
",",
"boolean",
"writeProx",
",",
"boolean",
"writeOffsets",
")",
"{",
"super",
"(",
"size",
")",
";",
"if",
"(",
"writeFreqs",
")",
"{",
"termFreqs",
"=",
"new",
"int",
"... | public FreqProxPostingsArray(int size, bool writeFreqs, bool writeProx, bool writeOffsets): base(size){if (writeFreqs){termFreqs = new int[size];}lastDocIDs = new int[size];lastDocCodes = new int[size];if (writeProx){lastPositions = new int[size];if (writeOffsets){lastOffsets = new int[size];}}else{Debug.Assert(!writeO... | train | false |
7,966 | public List<String> matchPrefix(String prefix) {return matchPrefix(prefix, defaultNumReturnValues);}
| [
"public",
"List",
"<",
"String",
">",
"matchPrefix",
"(",
"String",
"prefix",
")",
"{",
"return",
"matchPrefix",
"(",
"prefix",
",",
"defaultNumReturnValues",
")",
";",
"}"
] | public virtual IList<string> MatchPrefix(string prefix){return MatchPrefix(prefix, defaultNumReturnValues);}
| train | false |
7,967 | public DescribeScalingPoliciesResult describeScalingPolicies(DescribeScalingPoliciesRequest request) {request = beforeClientExecution(request);return executeDescribeScalingPolicies(request);}
| [
"public",
"DescribeScalingPoliciesResult",
"describeScalingPolicies",
"(",
"DescribeScalingPoliciesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeScalingPolicies",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeScalingPoliciesResponse DescribeScalingPolicies(DescribeScalingPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScalingPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScalingPoliciesResponseUnmarshaller.Instance;return Invoke... | train | true |
7,968 | public void serialize(LittleEndianOutput out) {out.writeInt(field_1_row_offset);for (short field_2_cell_offset : field_2_cell_offsets) {out.writeShort(field_2_cell_offset);}}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeInt",
"(",
"field_1_row_offset",
")",
";",
"for",
"(",
"short",
"field_2_cell_offset",
":",
"field_2_cell_offsets",
")",
"{",
"out",
".",
"writeShort",
"(",
"field_2_cel... | public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(field_1_row_offset);for (int k = 0; k < field_2_cell_offsets.Length; k++){out1.WriteShort(field_2_cell_offsets[k]);}}
| train | false |
7,969 | public UserSViewBegin(RecordInputStream in) {_rawData = in.readRemainder();}
| [
"public",
"UserSViewBegin",
"(",
"RecordInputStream",
"in",
")",
"{",
"_rawData",
"=",
"in",
".",
"readRemainder",
"(",
")",
";",
"}"
] | public UserSViewBegin(RecordInputStream in1){_rawData = in1.ReadRemainder();}
| train | false |
7,970 | public static RevFilter create(String pattern) {if (pattern.length() == 0)throw new IllegalArgumentException(JGitText.get().cannotMatchOnEmptyString);if (SubStringRevFilter.safe(pattern))return new SubStringSearch(pattern);return new PatternSearch(pattern);}
| [
"public",
"static",
"RevFilter",
"create",
"(",
"String",
"pattern",
")",
"{",
"if",
"(",
"pattern",
".",
"length",
"(",
")",
"==",
"0",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"cannotMatchOnEmptyString",
... | public static RevFilter Create(string pattern){if (pattern.Length == 0){throw new ArgumentException(JGitText.Get().cannotMatchOnEmptyString);}if (SubStringRevFilter.Safe(pattern)){return new CommitterRevFilter.SubStringSearch(pattern);}return new CommitterRevFilter.PatternSearch(pattern);}
| train | false |
7,971 | public void serialize(LittleEndianOutput out) {out.writeShort(getFontHeight());out.writeShort(getAttributes());out.writeShort(getColorPaletteIndex());out.writeShort(getBoldWeight());out.writeShort(getSuperSubScript());out.writeByte(getUnderline());out.writeByte(getFamily());out.writeByte(getCharset());out.writeByte(fie... | [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"getFontHeight",
"(",
")",
")",
";",
"out",
".",
"writeShort",
"(",
"getAttributes",
"(",
")",
")",
";",
"out",
".",
"writeShort",
"(",
"getColorPalet... | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(FontHeight);out1.WriteShort(Attributes);out1.WriteShort(ColorPaletteIndex);out1.WriteShort(BoldWeight);out1.WriteShort((int) SuperSubScript);out1.WriteByte((int) Underline);out1.WriteByte(Family);out1.WriteByte(Charset);out1.WriteByte(field_9_zero... | train | false |
7,972 | public DescribeLaunchConfigurationsResult describeLaunchConfigurations(DescribeLaunchConfigurationsRequest request) {request = beforeClientExecution(request);return executeDescribeLaunchConfigurations(request);}
| [
"public",
"DescribeLaunchConfigurationsResult",
"describeLaunchConfigurations",
"(",
"DescribeLaunchConfigurationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeLaunchConfigurations",
"(",
"request",
"... | public virtual DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations(DescribeLaunchConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLaunchConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLaunchConfigurationsResponseUnmarshall... | train | true |
7,973 | public PathEdit(DirCacheEntry ent) {path = ent.path;}
| [
"public",
"PathEdit",
"(",
"DirCacheEntry",
"ent",
")",
"{",
"path",
"=",
"ent",
".",
"path",
";",
"}"
] | public PathEdit(DirCacheEntry ent){path = ent.path;}
| train | false |
7,974 | public static int toCodePoints(char[] src, int srcOff, int srcLen, int[] dest, int destOff) {if (srcLen < 0) {throw new IllegalArgumentException("srcLen must be >= 0");}int codePointCount = 0;for (int i = 0; i < srcLen; ) {final int cp = Character.codePointAt(src, srcOff + i, srcOff + srcLen);final int charCount = Char... | [
"public",
"static",
"int",
"toCodePoints",
"(",
"char",
"[",
"]",
"src",
",",
"int",
"srcOff",
",",
"int",
"srcLen",
",",
"int",
"[",
"]",
"dest",
",",
"int",
"destOff",
")",
"{",
"if",
"(",
"srcLen",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArg... | public int ToCodePoints(char[] src, int srcOff, int srcLen, int[] dest, int destOff){if (srcLen < 0){throw new ArgumentException("srcLen must be >= 0");}int codePointCount = 0;for (int i = 0; i < srcLen; ){int cp = CodePointAt(src, srcOff + i, srcOff + srcLen);int charCount = Character.CharCount(cp);dest[destOff + code... | train | true |
7,975 | public boolean hasNext() {return remaining != 0;}
| [
"public",
"boolean",
"hasNext",
"(",
")",
"{",
"return",
"remaining",
"!=",
"0",
";",
"}"
] | public virtual bool hasNext(){return this.remaining != 0;}
| train | false |
7,976 | public void consume() {if (LA(1) == IntStream.EOF) {throw new IllegalStateException("cannot consume EOF");}lastChar = data[p]; if (p == n-1 && numMarkers==0) {n = 0;p = -1; lastCharBufferStart = lastChar;}p++;currentCharIndex++;sync(1);}
| [
"public",
"void",
"consume",
"(",
")",
"{",
"if",
"(",
"LA",
"(",
"1",
")",
"==",
"IntStream",
".",
"EOF",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"cannot consume EOF\"",
")",
";",
"}",
"lastChar",
"=",
"data",
"[",
"p",
"]",
";",
"... | public virtual void Consume(){if (LA(1) == IntStreamConstants.EOF){throw new InvalidOperationException("cannot consume EOF");}lastChar = data[p];if (p == n - 1 && numMarkers == 0){n = 0;p = -1;lastCharBufferStart = lastChar;}p++;currentCharIndex++;Sync(1);}
| train | false |
7,977 | public FileOutputStream(String path) throws FileNotFoundException {this(path, false);}
| [
"public",
"FileOutputStream",
"(",
"String",
"path",
")",
"throws",
"FileNotFoundException",
"{",
"this",
"(",
"path",
",",
"false",
")",
";",
"}"
] | public FileOutputStream(string path) : this(path, false){throw new System.NotImplementedException();}
| train | false |
7,978 | public FieldConfig(String fieldName) {if (fieldName == null) {throw new IllegalArgumentException("field name must not be null!");}this.fieldName = fieldName;}
| [
"public",
"FieldConfig",
"(",
"String",
"fieldName",
")",
"{",
"if",
"(",
"fieldName",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"field name must not be null!\"",
")",
";",
"}",
"this",
".",
"fieldName",
"=",
"fieldName",
";",
... | public FieldConfig(string fieldName){if (fieldName == null){throw new ArgumentException("field name should not be null!");}this.fieldName = fieldName;}
| train | false |
7,979 | public TokenFilter create(TokenStream input) {return new NGramTokenFilter(input, minGramSize, maxGramSize, preserveOriginal);}
| [
"public",
"TokenFilter",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"NGramTokenFilter",
"(",
"input",
",",
"minGramSize",
",",
"maxGramSize",
",",
"preserveOriginal",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return new NGramTokenFilter(m_luceneMatchVersion, input, minGramSize, maxGramSize);}
| train | false |
7,980 | public DescribeCacheParameterGroupsResult describeCacheParameterGroups(DescribeCacheParameterGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeCacheParameterGroups(request);}
| [
"public",
"DescribeCacheParameterGroupsResult",
"describeCacheParameterGroups",
"(",
"DescribeCacheParameterGroupsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeCacheParameterGroups",
"(",
"request",
"... | public virtual DescribeCacheParameterGroupsResponse DescribeCacheParameterGroups(DescribeCacheParameterGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCacheParameterGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCacheParameterGroupsResponseUnmarshall... | train | true |
7,981 | public ApostropheFilter(TokenStream in) {super(in);}
| [
"public",
"ApostropheFilter",
"(",
"TokenStream",
"in",
")",
"{",
"super",
"(",
"in",
")",
";",
"}"
] | public ApostropheFilter(TokenStream @in): base(@in){termAtt = AddAttribute<ICharTermAttribute>();}
| train | false |
7,983 | public StringBuilder append(Object obj) {if (obj == null) {appendNull();} else {append0(obj.toString());}return this;}
| [
"public",
"StringBuilder",
"append",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"obj",
"==",
"null",
")",
"{",
"appendNull",
"(",
")",
";",
"}",
"else",
"{",
"append0",
"(",
"obj",
".",
"toString",
"(",
")",
")",
";",
"}",
"return",
"this",
";",
... | public java.lang.StringBuilder append(object obj){if (obj == null){appendNull();}else{append0(obj.ToString());}return this;}
| train | false |
7,984 | public ListGatewayGroupsResult listGatewayGroups(ListGatewayGroupsRequest request) {request = beforeClientExecution(request);return executeListGatewayGroups(request);}
| [
"public",
"ListGatewayGroupsResult",
"listGatewayGroups",
"(",
"ListGatewayGroupsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListGatewayGroups",
"(",
"request",
")",
";",
"}"
] | public virtual ListGatewayGroupsResponse ListGatewayGroups(ListGatewayGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGatewayGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGatewayGroupsResponseUnmarshaller.Instance;return Invoke<ListGatewayGroupsResponse>(re... | train | true |
7,985 | public AlibabaCloudCredentials getCredentials() throws ClientException {if (credentials == null || credentials.isExpired()) {ecsMetadataServiceFetchCount += 1;int maxRetryTimes = MAX_ECS_METADATA_FETCH_RETRY_TIMES;credentials = fetcher.fetch(maxRetryTimes);} else if (credentials.willSoonExpire() && credentials.shouldRe... | [
"public",
"AlibabaCloudCredentials",
"getCredentials",
"(",
")",
"throws",
"ClientException",
"{",
"if",
"(",
"credentials",
"==",
"null",
"||",
"credentials",
".",
"isExpired",
"(",
")",
")",
"{",
"ecsMetadataServiceFetchCount",
"+=",
"1",
";",
"int",
"maxRetryTi... | public virtual AlibabaCloudCredentials GetCredentials(){try{if (credentials == null){credentials = fetcher.Fetch(maxRetryTimes);}if (credentials.IsExpired()){throw new ClientException("SDK.SessionTokenExpired", "Current session token has expired.");}if (!credentials.WillSoonExpire() || !credentials.ShouldRefresh()){ret... | train | false |
7,986 | public DescribeVpnConnectionsResult describeVpnConnections(DescribeVpnConnectionsRequest request) {request = beforeClientExecution(request);return executeDescribeVpnConnections(request);}
| [
"public",
"DescribeVpnConnectionsResult",
"describeVpnConnections",
"(",
"DescribeVpnConnectionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeVpnConnections",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeVpnConnectionsResponse DescribeVpnConnections(DescribeVpnConnectionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpnConnectionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpnConnectionsResponseUnmarshaller.Instance;return Invoke<Desc... | train | true |
7,987 | public ByteBuffer put(byte[] src, int srcOffset, int byteCount) {checkPutBounds(1, src.length, srcOffset, byteCount);System.arraycopy(src, srcOffset, backingArray, offset + position, byteCount);position += byteCount;return this;}
| [
"public",
"ByteBuffer",
"put",
"(",
"byte",
"[",
"]",
"src",
",",
"int",
"srcOffset",
",",
"int",
"byteCount",
")",
"{",
"checkPutBounds",
"(",
"1",
",",
"src",
".",
"length",
",",
"srcOffset",
",",
"byteCount",
")",
";",
"System",
".",
"arraycopy",
"(... | public override java.nio.ByteBuffer put(byte[] src, int srcOffset, int byteCount){checkPutBounds(1, src.Length, srcOffset, byteCount);System.Array.Copy(src, srcOffset, backingArray, offset + _position, byteCount);_position += byteCount;return this;}
| train | false |
7,988 | public ListDistributionsResult listDistributions(ListDistributionsRequest request) {request = beforeClientExecution(request);return executeListDistributions(request);}
| [
"public",
"ListDistributionsResult",
"listDistributions",
"(",
"ListDistributionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListDistributions",
"(",
"request",
")",
";",
"}"
] | public virtual ListDistributionsResponse ListDistributions(ListDistributionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDistributionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDistributionsResponseUnmarshaller.Instance;return Invoke<ListDistributionsResponse>(re... | train | true |
7,989 | public String getName() {if (params==null) {return name;}return new StringBuilder(name).append('(').append(params).append(')').toString();}
| [
"public",
"String",
"getName",
"(",
")",
"{",
"if",
"(",
"params",
"==",
"null",
")",
"{",
"return",
"name",
";",
"}",
"return",
"new",
"StringBuilder",
"(",
"name",
")",
".",
"append",
"(",
"'('",
")",
".",
"append",
"(",
"params",
")",
".",
"appe... | public virtual string GetName(){if (m_params == null){return name;}return new StringBuilder(name).Append('(').Append(m_params).Append(')').ToString();}
| train | false |
7,990 | public DescribeTasksResult describeTasks(DescribeTasksRequest request) {request = beforeClientExecution(request);return executeDescribeTasks(request);}
| [
"public",
"DescribeTasksResult",
"describeTasks",
"(",
"DescribeTasksRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeTasks",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeTasksResponse DescribeTasks(DescribeTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTasksResponseUnmarshaller.Instance;return Invoke<DescribeTasksResponse>(request, options);}
| train | true |
7,991 | public DescribeCacheSubnetGroupsResult describeCacheSubnetGroups() {return describeCacheSubnetGroups(new DescribeCacheSubnetGroupsRequest());}
| [
"public",
"DescribeCacheSubnetGroupsResult",
"describeCacheSubnetGroups",
"(",
")",
"{",
"return",
"describeCacheSubnetGroups",
"(",
"new",
"DescribeCacheSubnetGroupsRequest",
"(",
")",
")",
";",
"}"
] | public virtual DescribeCacheSubnetGroupsResponse DescribeCacheSubnetGroups(){return DescribeCacheSubnetGroups(new DescribeCacheSubnetGroupsRequest());}
| train | false |
7,992 | public float get() {if (position == limit) {throw new BufferUnderflowException();}return byteBuffer.getFloat(position++ * SizeOf.FLOAT);}
| [
"public",
"float",
"get",
"(",
")",
"{",
"if",
"(",
"position",
"==",
"limit",
")",
"{",
"throw",
"new",
"BufferUnderflowException",
"(",
")",
";",
"}",
"return",
"byteBuffer",
".",
"getFloat",
"(",
"position",
"++",
"*",
"SizeOf",
".",
"FLOAT",
")",
"... | public override float get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return byteBuffer.getFloat(_position++ * libcore.io.SizeOf.FLOAT);}
| train | false |
7,993 | public ShowNoteCommand setNotesRef(String notesRef) {checkCallable();this.notesRef = notesRef;return this;}
| [
"public",
"ShowNoteCommand",
"setNotesRef",
"(",
"String",
"notesRef",
")",
"{",
"checkCallable",
"(",
")",
";",
"this",
".",
"notesRef",
"=",
"notesRef",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Api.ShowNoteCommand SetNotesRef(string notesRef){CheckCallable();this.notesRef = notesRef;return this;}
| train | false |
7,994 | public UpdateAuthorizerResult updateAuthorizer(UpdateAuthorizerRequest request) {request = beforeClientExecution(request);return executeUpdateAuthorizer(request);}
| [
"public",
"UpdateAuthorizerResult",
"updateAuthorizer",
"(",
"UpdateAuthorizerRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateAuthorizer",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateAuthorizerResponse UpdateAuthorizer(UpdateAuthorizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAuthorizerRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAuthorizerResponseUnmarshaller.Instance;return Invoke<UpdateAuthorizerResponse>(request,... | train | true |
7,995 | public int ordVal(int doc) throws IOException {throw new UnsupportedOperationException();}
| [
"public",
"int",
"ordVal",
"(",
"int",
"doc",
")",
"throws",
"IOException",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
")",
";",
"}"
] | public virtual int OrdVal(int doc){throw new System.NotSupportedException();}
| train | false |
7,996 | public UnknownRecord(RecordInputStream in) {_sid = in.getSid();_rawData = in.readRemainder();}
| [
"public",
"UnknownRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"_sid",
"=",
"in",
".",
"getSid",
"(",
")",
";",
"_rawData",
"=",
"in",
".",
"readRemainder",
"(",
")",
";",
"}"
] | public UnknownRecord(RecordInputStream in1){_sid = in1.Sid;_rawData = in1.ReadRemainder();}
| train | false |
7,997 | public Matcher reset() {return reset(input, 0, input.length());}
| [
"public",
"Matcher",
"reset",
"(",
")",
"{",
"return",
"reset",
"(",
"input",
",",
"0",
",",
"input",
".",
"length",
"(",
")",
")",
";",
"}"
] | public java.util.regex.Matcher reset(){return reset(java.lang.CharSequenceProxy.Wrap(input), 0, input.Length);}
| train | false |
7,998 | public UpdateApnsVoipSandboxChannelResult updateApnsVoipSandboxChannel(UpdateApnsVoipSandboxChannelRequest request) {request = beforeClientExecution(request);return executeUpdateApnsVoipSandboxChannel(request);}
| [
"public",
"UpdateApnsVoipSandboxChannelResult",
"updateApnsVoipSandboxChannel",
"(",
"UpdateApnsVoipSandboxChannelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateApnsVoipSandboxChannel",
"(",
"request",
"... | public virtual UpdateApnsVoipSandboxChannelResponse UpdateApnsVoipSandboxChannel(UpdateApnsVoipSandboxChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApnsVoipSandboxChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApnsVoipSandboxChannelResponseUnmarshall... | train | true |
7,999 | public IntervalSet nextTokens(ATNState s, RuleContext ctx) {LL1Analyzer anal = new LL1Analyzer(this);IntervalSet next = anal.LOOK(s, ctx);return next;}
| [
"public",
"IntervalSet",
"nextTokens",
"(",
"ATNState",
"s",
",",
"RuleContext",
"ctx",
")",
"{",
"LL1Analyzer",
"anal",
"=",
"new",
"LL1Analyzer",
"(",
"this",
")",
";",
"IntervalSet",
"next",
"=",
"anal",
".",
"LOOK",
"(",
"s",
",",
"ctx",
")",
";",
... | public virtual IntervalSet NextTokens(ATNState s, RuleContext ctx){LL1Analyzer anal = new LL1Analyzer(this);IntervalSet next = anal.Look(s, ctx);return next;}
| train | false |
8,000 | public ListTablesResult listTables(String exclusiveStartTableName, Integer limit) {return listTables(new ListTablesRequest().withExclusiveStartTableName(exclusiveStartTableName).withLimit(limit));}
| [
"public",
"ListTablesResult",
"listTables",
"(",
"String",
"exclusiveStartTableName",
",",
"Integer",
"limit",
")",
"{",
"return",
"listTables",
"(",
"new",
"ListTablesRequest",
"(",
")",
".",
"withExclusiveStartTableName",
"(",
"exclusiveStartTableName",
")",
".",
"w... | public virtual ListTablesResponse ListTables(string exclusiveStartTableName, int limit){var request = new ListTablesRequest();request.ExclusiveStartTableName = exclusiveStartTableName;request.Limit = limit;return ListTables(request);}
| train | true |
8,001 | public DescribeIdentityResult describeIdentity(DescribeIdentityRequest request) {request = beforeClientExecution(request);return executeDescribeIdentity(request);}
| [
"public",
"DescribeIdentityResult",
"describeIdentity",
"(",
"DescribeIdentityRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeIdentity",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeIdentityResponse DescribeIdentity(DescribeIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIdentityResponseUnmarshaller.Instance;return Invoke<DescribeIdentityResponse>(request,... | train | true |
8,002 | final public ArrayList<String> OptionalFields() throws ParseException {Token fieldName;ArrayList<String> fieldNames = null;label_1:while (true) {if (jj_2_1(2)) {;} else {break label_1;}fieldName = jj_consume_token(TERM);jj_consume_token(COLON);if (fieldNames == null) {fieldNames = new ArrayList<String>();}fieldNames.ad... | [
"final",
"public",
"ArrayList",
"<",
"String",
">",
"OptionalFields",
"(",
")",
"throws",
"ParseException",
"{",
"Token",
"fieldName",
";",
"ArrayList",
"<",
"String",
">",
"fieldNames",
"=",
"null",
";",
"label_1",
":",
"while",
"(",
"true",
")",
"{",
"if... | public IList<string> OptionalFields(){Token fieldName;IList<string> fieldNames = null;while (true){if (Jj_2_1(2)){;}else{goto label_1;}fieldName = Jj_consume_token(RegexpToken.TERM);Jj_consume_token(RegexpToken.COLON);if (fieldNames == null){fieldNames = new List<string>();}fieldNames.Add(fieldName.Image);}label_1:{ if... | train | false |
8,003 | public SubmoduleAddCommand submoduleAdd() {return new SubmoduleAddCommand(repo);}
| [
"public",
"SubmoduleAddCommand",
"submoduleAdd",
"(",
")",
"{",
"return",
"new",
"SubmoduleAddCommand",
"(",
"repo",
")",
";",
"}"
] | public virtual SubmoduleAddCommand SubmoduleAdd(){return new SubmoduleAddCommand(repo);}
| train | false |
8,004 | public DescribeTypeResult describeType(DescribeTypeRequest request) {request = beforeClientExecution(request);return executeDescribeType(request);}
| [
"public",
"DescribeTypeResult",
"describeType",
"(",
"DescribeTypeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeType",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeTypeResponse DescribeType(DescribeTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTypeResponseUnmarshaller.Instance;return Invoke<DescribeTypeResponse>(request, options);}
| train | false |
8,005 | public UpdateCompanyNetworkConfigurationResult updateCompanyNetworkConfiguration(UpdateCompanyNetworkConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateCompanyNetworkConfiguration(request);}
| [
"public",
"UpdateCompanyNetworkConfigurationResult",
"updateCompanyNetworkConfiguration",
"(",
"UpdateCompanyNetworkConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateCompanyNetworkConfiguration",
"... | public virtual UpdateCompanyNetworkConfigurationResponse UpdateCompanyNetworkConfiguration(UpdateCompanyNetworkConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateCompanyNetworkConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateCompanyNetworkConfig... | train | true |
8,006 | public final String get(String name) {for (IndexableField field : fields) {if (field.name().equals(name) && field.stringValue() != null) {return field.stringValue();}}return null;}
| [
"public",
"final",
"String",
"get",
"(",
"String",
"name",
")",
"{",
"for",
"(",
"IndexableField",
"field",
":",
"fields",
")",
"{",
"if",
"(",
"field",
".",
"name",
"(",
")",
".",
"equals",
"(",
"name",
")",
"&&",
"field",
".",
"stringValue",
"(",
... | public string Get(string name){foreach (IIndexableField field in fields){if (field.Name.Equals(name, StringComparison.Ordinal) && field.GetStringValue() != null){return field.GetStringValue();}}return null;}
| train | false |
8,007 | public boolean equalsSameType(Object other) {assert exists || 0 == value.length();MutableValueStr b = (MutableValueStr)other;return value.get().equals(b.value.get()) && exists == b.exists;}
| [
"public",
"boolean",
"equalsSameType",
"(",
"Object",
"other",
")",
"{",
"assert",
"exists",
"||",
"0",
"==",
"value",
".",
"length",
"(",
")",
";",
"MutableValueStr",
"b",
"=",
"(",
"MutableValueStr",
")",
"other",
";",
"return",
"value",
".",
"get",
"(... | public override bool EqualsSameType(object other){MutableValueStr b = (MutableValueStr)other;return Value.Equals(b.Value) && Exists == b.Exists;}
| train | false |
8,008 | public void read(RecordStream rs) {while (rs.peekNextClass() == MergeCellsRecord.class) {MergeCellsRecord mcr = (MergeCellsRecord) rs.getNext();int nRegions = mcr.getNumAreas();for (int i = 0; i < nRegions; i++) {CellRangeAddress cra = mcr.getAreaAt(i);_mergedRegions.add(cra);}}}
| [
"public",
"void",
"read",
"(",
"RecordStream",
"rs",
")",
"{",
"while",
"(",
"rs",
".",
"peekNextClass",
"(",
")",
"==",
"MergeCellsRecord",
".",
"class",
")",
"{",
"MergeCellsRecord",
"mcr",
"=",
"(",
"MergeCellsRecord",
")",
"rs",
".",
"getNext",
"(",
... | public void Read(RecordStream rs){while (rs.PeekNextClass() == typeof(MergeCellsRecord)){MergeCellsRecord mcr = (MergeCellsRecord)rs.GetNext();int nRegions = mcr.NumAreas;for (int i = 0; i < nRegions; i++){_mergedRegions.Add(mcr.GetAreaAt(i));}}}
| train | false |
8,009 | public int available() throws IOException {return in.available() / 2 + (lastChar == -1 ? 0 : 1);}
| [
"public",
"int",
"available",
"(",
")",
"throws",
"IOException",
"{",
"return",
"in",
".",
"available",
"(",
")",
"/",
"2",
"+",
"(",
"lastChar",
"==",
"-",
"1",
"?",
"0",
":",
"1",
")",
";",
"}"
] | public override int available(){throw new System.NotImplementedException();}
| train | false |
8,010 | public Status getStatus() {return status;}
| [
"public",
"Status",
"getStatus",
"(",
")",
"{",
"return",
"status",
";",
"}"
] | public virtual RemoteRefUpdate.Status GetStatus(){return status;}
| train | false |
8,011 | public CharSequence[] decompose(CharSequence cmd) {int parts = 0;for (int i = 0; 0 <= i && i < cmd.length();) {int next = dashEven(cmd, i);if (i == next) {parts++;i = next + 2;} else {parts++;i = next;}}CharSequence part[] = new CharSequence[parts];int x = 0;for (int i = 0; 0 <= i && i < cmd.length();) {int next = dash... | [
"public",
"CharSequence",
"[",
"]",
"decompose",
"(",
"CharSequence",
"cmd",
")",
"{",
"int",
"parts",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"0",
"<=",
"i",
"&&",
"i",
"<",
"cmd",
".",
"length",
"(",
")",
";",
")",
"{",
"int",
... | public virtual string[] Decompose(string cmd){int parts = 0;for (int i = 0; 0 <= i && i < cmd.Length;){int next = DashEven(cmd, i);if (i == next){parts++;i = next + 2;}else{parts++;i = next;}}string[] part = new string[parts];int x = 0;for (int i = 0; 0 <= i && i < cmd.Length;){int next = DashEven(cmd, i);if (i == next... | train | false |
8,012 | public RevokeSecurityGroupIngressRequest(String groupName, java.util.List<IpPermission> ipPermissions) {setGroupName(groupName);setIpPermissions(ipPermissions);}
| [
"public",
"RevokeSecurityGroupIngressRequest",
"(",
"String",
"groupName",
",",
"java",
".",
"util",
".",
"List",
"<",
"IpPermission",
">",
"ipPermissions",
")",
"{",
"setGroupName",
"(",
"groupName",
")",
";",
"setIpPermissions",
"(",
"ipPermissions",
")",
";",
... | public RevokeSecurityGroupIngressRequest(string groupName, List<IpPermission> ipPermissions){_groupName = groupName;_ipPermissions = ipPermissions;}
| train | false |
8,013 | public Ref remove(Object key) {String name = toRefName((String) key);Ref res = null;int idx;if (0 <= (idx = packed.find(name))) {res = packed.get(name);packed = packed.remove(idx);sizeIsValid = false;}if (0 <= (idx = loose.find(name))) {res = loose.get(name);loose = loose.remove(idx);sizeIsValid = false;}if (0 <= (idx ... | [
"public",
"Ref",
"remove",
"(",
"Object",
"key",
")",
"{",
"String",
"name",
"=",
"toRefName",
"(",
"(",
"String",
")",
"key",
")",
";",
"Ref",
"res",
"=",
"null",
";",
"int",
"idx",
";",
"if",
"(",
"0",
"<=",
"(",
"idx",
"=",
"packed",
".",
"f... | public override Ref Remove(object key){string name = ToRefName((string)key);Ref res = null;int idx;if (0 <= (idx = packed.Find(name))){res = packed.Get(name);packed = packed.Remove(idx);sizeIsValid = false;}if (0 <= (idx = loose.Find(name))){res = loose.Get(name);loose = loose.Remove(idx);sizeIsValid = false;}if (0 <= ... | train | false |
8,014 | public DescribeMLModelsResult describeMLModels(DescribeMLModelsRequest request) {request = beforeClientExecution(request);return executeDescribeMLModels(request);}
| [
"public",
"DescribeMLModelsResult",
"describeMLModels",
"(",
"DescribeMLModelsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeMLModels",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeMLModelsResponse DescribeMLModels(DescribeMLModelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeMLModelsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeMLModelsResponseUnmarshaller.Instance;return Invoke<DescribeMLModelsResponse>(request,... | train | true |
8,015 | public String getInflectionType(int wordId) {return null; }
| [
"public",
"String",
"getInflectionType",
"(",
"int",
"wordId",
")",
"{",
"return",
"null",
";",
"}"
] | public string GetInflectionType(int wordId){return null; }
| train | false |
8,016 | public CreateVolumeRequest(String snapshotId, String availabilityZone) {setSnapshotId(snapshotId);setAvailabilityZone(availabilityZone);}
| [
"public",
"CreateVolumeRequest",
"(",
"String",
"snapshotId",
",",
"String",
"availabilityZone",
")",
"{",
"setSnapshotId",
"(",
"snapshotId",
")",
";",
"setAvailabilityZone",
"(",
"availabilityZone",
")",
";",
"}"
] | public CreateVolumeRequest(string availabilityZone, string snapshotId){_availabilityZone = availabilityZone;_snapshotId = snapshotId;}
| train | false |
8,017 | public DataValidationConstraint createDateConstraint(int operatorType, String formula1, String formula2, String dateFormat) {return DVConstraint.createDateConstraint(operatorType, formula1, formula2, dateFormat);}
| [
"public",
"DataValidationConstraint",
"createDateConstraint",
"(",
"int",
"operatorType",
",",
"String",
"formula1",
",",
"String",
"formula2",
",",
"String",
"dateFormat",
")",
"{",
"return",
"DVConstraint",
".",
"createDateConstraint",
"(",
"operatorType",
",",
"for... | public IDataValidationConstraint CreateDateConstraint(int operatorType, String formula1, String formula2, String dateFormat){return DVConstraint.CreateDateConstraint(operatorType, formula1, formula2, dateFormat);}
| train | false |
8,018 | public CloneReceiptRuleSetResult cloneReceiptRuleSet(CloneReceiptRuleSetRequest request) {request = beforeClientExecution(request);return executeCloneReceiptRuleSet(request);}
| [
"public",
"CloneReceiptRuleSetResult",
"cloneReceiptRuleSet",
"(",
"CloneReceiptRuleSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCloneReceiptRuleSet",
"(",
"request",
")",
";",
"}"
] | public virtual CloneReceiptRuleSetResponse CloneReceiptRuleSet(CloneReceiptRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CloneReceiptRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CloneReceiptRuleSetResponseUnmarshaller.Instance;return Invoke<CloneReceiptRuleSet... | train | true |
8,019 | public int getOffsetGap(String fieldName) {return 1;}
| [
"public",
"int",
"getOffsetGap",
"(",
"String",
"fieldName",
")",
"{",
"return",
"1",
";",
"}"
] | public virtual int GetOffsetGap(string fieldName){return 1;}
| train | false |
8,020 | public long hash1(char c) {final long p = 1099511628211L;long hash = 0xcbf29ce484222325L;hash = (hash ^ (c & 0x00FF)) * p;hash = (hash ^ (c >> 8)) * p;hash += hash << 13;hash ^= hash >> 7;hash += hash << 3;hash ^= hash >> 17;hash += hash << 5;return hash;}
| [
"public",
"long",
"hash1",
"(",
"char",
"c",
")",
"{",
"final",
"long",
"p",
"=",
"1099511628211L",
";",
"long",
"hash",
"=",
"0xcbf29ce484222325L",
";",
"hash",
"=",
"(",
"hash",
"^",
"(",
"c",
"&",
"0x00FF",
")",
")",
"*",
"p",
";",
"hash",
"=",
... | public virtual long Hash1(char c){long p = 1099511628211L;long hash = unchecked((long)0xcbf29ce484222325L);hash = (hash ^ (c & 0x00FF)) * p;hash = (hash ^ (c >> 8)) * p;hash += hash << 13;hash ^= hash >> 7;hash += hash << 3;hash ^= hash >> 17;hash += hash << 5;return hash;}
| train | false |
8,021 | public final ByteBuffer order(ByteOrder byteOrder) {orderImpl(byteOrder);return this;}
| [
"public",
"final",
"ByteBuffer",
"order",
"(",
"ByteOrder",
"byteOrder",
")",
"{",
"orderImpl",
"(",
"byteOrder",
")",
";",
"return",
"this",
";",
"}"
] | public java.nio.ByteBuffer order(java.nio.ByteOrder byteOrder){orderImpl(byteOrder);return this;}
| train | false |
8,022 | public DescribeAlarmsForMetricResult describeAlarmsForMetric(DescribeAlarmsForMetricRequest request) {request = beforeClientExecution(request);return executeDescribeAlarmsForMetric(request);}
| [
"public",
"DescribeAlarmsForMetricResult",
"describeAlarmsForMetric",
"(",
"DescribeAlarmsForMetricRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeAlarmsForMetric",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeAlarmsForMetricResponse DescribeAlarmsForMetric(DescribeAlarmsForMetricRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAlarmsForMetricRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAlarmsForMetricResponseUnmarshaller.Instance;return Invoke... | train | true |
8,023 | public void terminateWorkflowExecution(TerminateWorkflowExecutionRequest request) {request = beforeClientExecution(request);executeTerminateWorkflowExecution(request);}
| [
"public",
"void",
"terminateWorkflowExecution",
"(",
"TerminateWorkflowExecutionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"executeTerminateWorkflowExecution",
"(",
"request",
")",
";",
"}"
] | public virtual TerminateWorkflowExecutionResponse TerminateWorkflowExecution(TerminateWorkflowExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = TerminateWorkflowExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = TerminateWorkflowExecutionResponseUnmarshaller.Instanc... | train | false |
8,024 | public DistanceValueSource(PointVectorStrategy strategy, Point from, double multiplier) {this.strategy = strategy;this.from = from;this.multiplier = multiplier;this.nullValue = 180 * multiplier;}
| [
"public",
"DistanceValueSource",
"(",
"PointVectorStrategy",
"strategy",
",",
"Point",
"from",
",",
"double",
"multiplier",
")",
"{",
"this",
".",
"strategy",
"=",
"strategy",
";",
"this",
".",
"from",
"=",
"from",
";",
"this",
".",
"multiplier",
"=",
"multi... | public DistanceValueSource(PointVectorStrategy strategy, IPoint from, double multiplier){this.strategy = strategy;this.from = from;this.multiplier = multiplier;}
| train | false |
8,025 | public RenameBranchCommand branchRename() {return new RenameBranchCommand(repo);}
| [
"public",
"RenameBranchCommand",
"branchRename",
"(",
")",
"{",
"return",
"new",
"RenameBranchCommand",
"(",
"repo",
")",
";",
"}"
] | public virtual RenameBranchCommand BranchRename(){return new RenameBranchCommand(repo);}
| train | false |
8,026 | public IntBuffer get(int[] dst, int dstOffset, int intCount) {byteBuffer.limit(limit * SizeOf.INT);byteBuffer.position(position * SizeOf.INT);if (byteBuffer instanceof DirectByteBuffer) {((DirectByteBuffer) byteBuffer).get(dst, dstOffset, intCount);} else {((HeapByteBuffer) byteBuffer).get(dst, dstOffset, intCount);}th... | [
"public",
"IntBuffer",
"get",
"(",
"int",
"[",
"]",
"dst",
",",
"int",
"dstOffset",
",",
"int",
"intCount",
")",
"{",
"byteBuffer",
".",
"limit",
"(",
"limit",
"*",
"SizeOf",
".",
"INT",
")",
";",
"byteBuffer",
".",
"position",
"(",
"position",
"*",
... | public override java.nio.IntBuffer get(int[] dst, int dstOffset, int intCount){byteBuffer.limit(_limit * libcore.io.SizeOf.INT);byteBuffer.position(_position * libcore.io.SizeOf.INT);if (byteBuffer is java.nio.DirectByteBuffer){((java.nio.DirectByteBuffer)byteBuffer).get(dst, dstOffset, intCount);}else{((java.nio.HeapB... | train | false |
8,027 | public DescribeInstanceEventNotificationAttributesResult describeInstanceEventNotificationAttributes(DescribeInstanceEventNotificationAttributesRequest request) {request = beforeClientExecution(request);return executeDescribeInstanceEventNotificationAttributes(request);}
| [
"public",
"DescribeInstanceEventNotificationAttributesResult",
"describeInstanceEventNotificationAttributes",
"(",
"DescribeInstanceEventNotificationAttributesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeI... | public virtual DescribeInstanceEventNotificationAttributesResponse DescribeInstanceEventNotificationAttributes(DescribeInstanceEventNotificationAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInstanceEventNotificationAttributesRequestMarshaller.Instance;options.ResponseU... | train | false |
8,028 | public void appendUserAgent(String key, String value) {this.userAgentConfig.append(key, value);}
| [
"public",
"void",
"appendUserAgent",
"(",
"String",
"key",
",",
"String",
"value",
")",
"{",
"this",
".",
"userAgentConfig",
".",
"append",
"(",
"key",
",",
"value",
")",
";",
"}"
] | public void AppendUserAgent(string key, string value){userAgentConfig.AppendUserAgent(key, value);}
| train | false |
8,030 | public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[CHARTFORMAT]\n");buffer.append(" .xPosition = ").append(getXPosition()).append("\n");buffer.append(" .yPosition = ").append(getYPosition()).append("\n");buffer.append(" .width = ").append(getWidth()).appe... | [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[CHARTFORMAT]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .xPosition = \"",
")",
".",
"append... | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[CHARTFORMAT]\n");buffer.Append(" .xPosition = ").Append(XPosition).Append("\n");buffer.Append(" .yPosition = ").Append(YPosition).Append("\n");buffer.Append(" .width = ").Append(Width).Append("\n"... | train | false |
8,031 | public GetQuotaRequest() {super("CloudPhoto", "2017-07-11", "GetQuota", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"GetQuotaRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"GetQuota\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public GetQuotaRequest(): base("CloudPhoto", "2017-07-11", "GetQuota", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
8,032 | public DeleteEventStreamResult deleteEventStream(DeleteEventStreamRequest request) {request = beforeClientExecution(request);return executeDeleteEventStream(request);}
| [
"public",
"DeleteEventStreamResult",
"deleteEventStream",
"(",
"DeleteEventStreamRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteEventStream",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteEventStreamResponse DeleteEventStream(DeleteEventStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEventStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEventStreamResponseUnmarshaller.Instance;return Invoke<DeleteEventStreamResponse>(re... | train | true |
8,033 | public GetPhotosRequest() {super("CloudPhoto", "2017-07-11", "GetPhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"GetPhotosRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"GetPhotos\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public GetPhotosRequest(): base("CloudPhoto", "2017-07-11", "GetPhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
8,034 | public int getBegin() {return begin;}
| [
"public",
"int",
"getBegin",
"(",
")",
"{",
"return",
"begin",
";",
"}"
] | public virtual int GetBegin(){return begin;}
| train | false |
8,035 | public void decRef() throws IOException {if (refCount.get() <= 0) {throw new IllegalStateException("this revision is already released");}final int rc = refCount.decrementAndGet();if (rc == 0) {boolean success = false;try {revision.release();success = true;} finally {if (!success) {refCount.incrementAndGet();}}} else if... | [
"public",
"void",
"decRef",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"refCount",
".",
"get",
"(",
")",
"<=",
"0",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"this revision is already released\"",
")",
";",
"}",
"final",
"int",
"rc",
... | public virtual void DecRef(){if (refCount <= 0){throw new InvalidOperationException("this revision is already released");}var rc = refCount.DecrementAndGet();if (rc == 0){bool success = false;try{Revision.Release();success = true;}finally{if (!success){refCount.IncrementAndGet();}}}else if (rc < 0){throw new InvalidOpe... | train | false |
8,036 | public DescribeDataSetPermissionsResult describeDataSetPermissions(DescribeDataSetPermissionsRequest request) {request = beforeClientExecution(request);return executeDescribeDataSetPermissions(request);}
| [
"public",
"DescribeDataSetPermissionsResult",
"describeDataSetPermissions",
"(",
"DescribeDataSetPermissionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeDataSetPermissions",
"(",
"request",
")",
";... | public virtual DescribeDataSetPermissionsResponse DescribeDataSetPermissions(DescribeDataSetPermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDataSetPermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDataSetPermissionsResponseUnmarshaller.Instanc... | train | false |
8,037 | public SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest() {super("Domain", "2018-01-29", "SaveTaskForUpdatingRegistrantInfoByIdentityCredential");setMethod(MethodType.POST);}
| [
"public",
"SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest",
"(",
")",
"{",
"super",
"(",
"\"Domain\"",
",",
"\"2018-01-29\"",
",",
"\"SaveTaskForUpdatingRegistrantInfoByIdentityCredential\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"... | public SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest(): base("Domain-intl", "2017-12-18", "SaveTaskForUpdatingRegistrantInfoByIdentityCredential", "domain", "openAPI"){Method = MethodType.POST;}
| train | false |
8,038 | public TokenStreamToAutomaton() {this.preservePositionIncrements = true;}
| [
"public",
"TokenStreamToAutomaton",
"(",
")",
"{",
"this",
".",
"preservePositionIncrements",
"=",
"true",
";",
"}"
] | public TokenStreamToAutomaton(){this.preservePositionIncrements = true;}
| train | false |
8,039 | public NameXPtg addNameXPtg(String name) {int extBlockIndex = -1;ExternalBookBlock extBlock = null;for (int i = 0; i < _externalBookBlocks.length; i++) {SupBookRecord ebr = _externalBookBlocks[i].getExternalBookRecord();if (ebr.isAddInFunctions()) {extBlock = _externalBookBlocks[i];extBlockIndex = i;break;}}if (extBloc... | [
"public",
"NameXPtg",
"addNameXPtg",
"(",
"String",
"name",
")",
"{",
"int",
"extBlockIndex",
"=",
"-",
"1",
";",
"ExternalBookBlock",
"extBlock",
"=",
"null",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"_externalBookBlocks",
".",
"length",
";... | public NameXPtg AddNameXPtg(String name){int extBlockIndex = -1;ExternalBookBlock extBlock = null;for (int i = 0; i < _externalBookBlocks.Length; i++){SupBookRecord ebr = _externalBookBlocks[i].GetExternalBookRecord();if (ebr.IsAddInFunctions){extBlock = _externalBookBlocks[i];extBlockIndex = i;break;}}if (extBlock == ... | train | false |
8,040 | public static IndexReaderContext getTopLevelContext(IndexReaderContext context) {while (context.parent != null) {context = context.parent;}return context;}
| [
"public",
"static",
"IndexReaderContext",
"getTopLevelContext",
"(",
"IndexReaderContext",
"context",
")",
"{",
"while",
"(",
"context",
".",
"parent",
"!=",
"null",
")",
"{",
"context",
"=",
"context",
".",
"parent",
";",
"}",
"return",
"context",
";",
"}"
] | public static IndexReaderContext GetTopLevelContext(IndexReaderContext context){while (context.Parent != null){context = context.Parent;}return context;}
| train | false |
8,041 | public final CharBuffer put(CharBuffer src) {throw new ReadOnlyBufferException();}
| [
"public",
"final",
"CharBuffer",
"put",
"(",
"CharBuffer",
"src",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] | public override java.nio.CharBuffer put(char c){throw new java.nio.ReadOnlyBufferException();}
| train | false |
8,042 | public DeleteLabelsResult deleteLabels(DeleteLabelsRequest request) {request = beforeClientExecution(request);return executeDeleteLabels(request);}
| [
"public",
"DeleteLabelsResult",
"deleteLabels",
"(",
"DeleteLabelsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteLabels",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteLabelsResponse DeleteLabels(DeleteLabelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLabelsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLabelsResponseUnmarshaller.Instance;return Invoke<DeleteLabelsResponse>(request, options);}
| train | true |
8,043 | public ListAlgorithmsResult listAlgorithms(ListAlgorithmsRequest request) {request = beforeClientExecution(request);return executeListAlgorithms(request);}
| [
"public",
"ListAlgorithmsResult",
"listAlgorithms",
"(",
"ListAlgorithmsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListAlgorithms",
"(",
"request",
")",
";",
"}"
] | public virtual ListAlgorithmsResponse ListAlgorithms(ListAlgorithmsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAlgorithmsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAlgorithmsResponseUnmarshaller.Instance;return Invoke<ListAlgorithmsResponse>(request, options);}
| train | true |
8,044 | public DiffCommand setShowNameAndStatusOnly(boolean showNameAndStatusOnly) {this.showNameAndStatusOnly = showNameAndStatusOnly;return this;}
| [
"public",
"DiffCommand",
"setShowNameAndStatusOnly",
"(",
"boolean",
"showNameAndStatusOnly",
")",
"{",
"this",
".",
"showNameAndStatusOnly",
"=",
"showNameAndStatusOnly",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Api.DiffCommand SetShowNameAndStatusOnly(bool showNameAndStatusOnly){this.showNameAndStatusOnly = showNameAndStatusOnly;return this;}
| train | false |
8,045 | public boolean isForceUpdate() {return force;}
| [
"public",
"boolean",
"isForceUpdate",
"(",
")",
"{",
"return",
"force",
";",
"}"
] | public virtual bool IsForceUpdate(){return force;}
| train | false |
8,046 | public DeleteVpcEndpointServiceConfigurationsResult deleteVpcEndpointServiceConfigurations(DeleteVpcEndpointServiceConfigurationsRequest request) {request = beforeClientExecution(request);return executeDeleteVpcEndpointServiceConfigurations(request);}
| [
"public",
"DeleteVpcEndpointServiceConfigurationsResult",
"deleteVpcEndpointServiceConfigurations",
"(",
"DeleteVpcEndpointServiceConfigurationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteVpcEndpointService... | public virtual DeleteVpcEndpointServiceConfigurationsResponse DeleteVpcEndpointServiceConfigurations(DeleteVpcEndpointServiceConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpcEndpointServiceConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = Delete... | train | true |
8,047 | public Field(String name, TokenStream tokenStream, IndexableFieldType type) {if (name == null) {throw new IllegalArgumentException("name must not be null");}if (tokenStream == null) {throw new NullPointerException("tokenStream must not be null");}if (type.indexOptions() == IndexOptions.NONE || !type.tokenized()) {throw... | [
"public",
"Field",
"(",
"String",
"name",
",",
"TokenStream",
"tokenStream",
",",
"IndexableFieldType",
"type",
")",
"{",
"if",
"(",
"name",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"name must not be null\"",
")",
";",
"}",
"i... | public Field(string name, TokenStream tokenStream, FieldType type){if (name == null){throw new System.ArgumentNullException("name", "name cannot be null");}if (tokenStream == null){throw new System.ArgumentNullException("tokenStream", "tokenStream cannot be null");}if (type == null){throw new System.ArgumentNullExcepti... | train | false |
8,048 | public ListDeadLetterSourceQueuesResult listDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest request) {request = beforeClientExecution(request);return executeListDeadLetterSourceQueues(request);}
| [
"public",
"ListDeadLetterSourceQueuesResult",
"listDeadLetterSourceQueues",
"(",
"ListDeadLetterSourceQueuesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListDeadLetterSourceQueues",
"(",
"request",
")",
";... | public virtual ListDeadLetterSourceQueuesResponse ListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeadLetterSourceQueuesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.Instanc... | train | true |
8,049 | public BinaryDocValuesField(String name, BytesRef value) {super(name, TYPE);fieldsData = value;}
| [
"public",
"BinaryDocValuesField",
"(",
"String",
"name",
",",
"BytesRef",
"value",
")",
"{",
"super",
"(",
"name",
",",
"TYPE",
")",
";",
"fieldsData",
"=",
"value",
";",
"}"
] | public BinaryDocValuesField(string name, BytesRef value): base(name, fType){FieldsData = value;}
| train | false |
8,050 | public CreateVpnConnectionRequest(String type, String customerGatewayId, String vpnGatewayId) {setType(type);setCustomerGatewayId(customerGatewayId);setVpnGatewayId(vpnGatewayId);}
| [
"public",
"CreateVpnConnectionRequest",
"(",
"String",
"type",
",",
"String",
"customerGatewayId",
",",
"String",
"vpnGatewayId",
")",
"{",
"setType",
"(",
"type",
")",
";",
"setCustomerGatewayId",
"(",
"customerGatewayId",
")",
";",
"setVpnGatewayId",
"(",
"vpnGate... | public CreateVpnConnectionRequest(string type, string customerGatewayId, string vpnGatewayId){_type = type;_customerGatewayId = customerGatewayId;_vpnGatewayId = vpnGatewayId;}
| train | false |
8,051 | public OpenInstancePublicPortsResult openInstancePublicPorts(OpenInstancePublicPortsRequest request) {request = beforeClientExecution(request);return executeOpenInstancePublicPorts(request);}
| [
"public",
"OpenInstancePublicPortsResult",
"openInstancePublicPorts",
"(",
"OpenInstancePublicPortsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeOpenInstancePublicPorts",
"(",
"request",
")",
";",
"}"
] | public virtual OpenInstancePublicPortsResponse OpenInstancePublicPorts(OpenInstancePublicPortsRequest request){var options = new InvokeOptions();options.RequestMarshaller = OpenInstancePublicPortsRequestMarshaller.Instance;options.ResponseUnmarshaller = OpenInstancePublicPortsResponseUnmarshaller.Instance;return Invoke... | train | true |
8,052 | public Builder() {this.similarity = new BM25Similarity();}
| [
"public",
"Builder",
"(",
")",
"{",
"this",
".",
"similarity",
"=",
"new",
"BM25Similarity",
"(",
")",
";",
"}"
] | public Builder(): base(){lastDocID = -1;wordNum = -1;word = 0;}
| train | false |
8,053 | public InputIteratorWrapper(BytesRefIterator wrapped) {this.wrapped = wrapped;}
| [
"public",
"InputIteratorWrapper",
"(",
"BytesRefIterator",
"wrapped",
")",
"{",
"this",
".",
"wrapped",
"=",
"wrapped",
";",
"}"
] | public InputIteratorWrapper(IBytesRefIterator wrapped){this.wrapped = wrapped;}
| train | false |
8,054 | public CreateUserProfileResult createUserProfile(CreateUserProfileRequest request) {request = beforeClientExecution(request);return executeCreateUserProfile(request);}
| [
"public",
"CreateUserProfileResult",
"createUserProfile",
"(",
"CreateUserProfileRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateUserProfile",
"(",
"request",
")",
";",
"}"
] | public virtual CreateUserProfileResponse CreateUserProfile(CreateUserProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateUserProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateUserProfileResponseUnmarshaller.Instance;return Invoke<CreateUserProfileResponse>(re... | train | true |
8,055 | public ImportWorkspaceImageResult importWorkspaceImage(ImportWorkspaceImageRequest request) {request = beforeClientExecution(request);return executeImportWorkspaceImage(request);}
| [
"public",
"ImportWorkspaceImageResult",
"importWorkspaceImage",
"(",
"ImportWorkspaceImageRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeImportWorkspaceImage",
"(",
"request",
")",
";",
"}"
] | public virtual ImportWorkspaceImageResponse ImportWorkspaceImage(ImportWorkspaceImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportWorkspaceImageRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportWorkspaceImageResponseUnmarshaller.Instance;return Invoke<ImportWorkspac... | train | true |
8,056 | public void finish() {mState = STATE_IDLE;}
| [
"public",
"void",
"finish",
"(",
")",
"{",
"mState",
"=",
"STATE_IDLE",
";",
"}"
] | public virtual void finish(){mState = STATE_IDLE;}
| train | false |
8,057 | public DescribeFleetHistoryResult describeFleetHistory(DescribeFleetHistoryRequest request) {request = beforeClientExecution(request);return executeDescribeFleetHistory(request);}
| [
"public",
"DescribeFleetHistoryResult",
"describeFleetHistory",
"(",
"DescribeFleetHistoryRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeFleetHistory",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeFleetHistoryResponse DescribeFleetHistory(DescribeFleetHistoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFleetHistoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFleetHistoryResponseUnmarshaller.Instance;return Invoke<DescribeFleetH... | train | true |
8,058 | public ListGatewaysResult listGateways(ListGatewaysRequest request) {request = beforeClientExecution(request);return executeListGateways(request);}
| [
"public",
"ListGatewaysResult",
"listGateways",
"(",
"ListGatewaysRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListGateways",
"(",
"request",
")",
";",
"}"
] | public virtual ListGatewaysResponse ListGateways(ListGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGatewaysResponseUnmarshaller.Instance;return Invoke<ListGatewaysResponse>(request, options);}
| train | true |
8,059 | public CreateTrafficMirrorFilterResult createTrafficMirrorFilter(CreateTrafficMirrorFilterRequest request) {request = beforeClientExecution(request);return executeCreateTrafficMirrorFilter(request);}
| [
"public",
"CreateTrafficMirrorFilterResult",
"createTrafficMirrorFilter",
"(",
"CreateTrafficMirrorFilterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateTrafficMirrorFilter",
"(",
"request",
")",
";",
... | public virtual CreateTrafficMirrorFilterResponse CreateTrafficMirrorFilter(CreateTrafficMirrorFilterRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTrafficMirrorFilterRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTrafficMirrorFilterResponseUnmarshaller.Instance;ret... | train | false |
8,060 | public BytesRef(byte[] bytes, int offset, int length) {this.bytes = bytes;this.offset = offset;this.length = length;assert isValid();}
| [
"public",
"BytesRef",
"(",
"byte",
"[",
"]",
"bytes",
",",
"int",
"offset",
",",
"int",
"length",
")",
"{",
"this",
".",
"bytes",
"=",
"bytes",
";",
"this",
".",
"offset",
"=",
"offset",
";",
"this",
".",
"length",
"=",
"length",
";",
"assert",
"is... | public BytesRef(byte[] bytes, int offset, int length){this.bytes = bytes;this.Offset = offset;this.Length = length;Debug.Assert(IsValid());}
| train | false |
8,061 | public void write(LittleEndianOutput out) {out.writeByte(getSid());}
| [
"public",
"void",
"write",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeByte",
"(",
"getSid",
"(",
")",
")",
";",
"}"
] | public override void Write(ILittleEndianOutput out1){out1.WriteByte(Sid + PtgClass);}
| train | false |
8,062 | public BufferedChecksum(Checksum in, int bufferSize) {this.in = in;this.buffer = new byte[bufferSize];}
| [
"public",
"BufferedChecksum",
"(",
"Checksum",
"in",
",",
"int",
"bufferSize",
")",
"{",
"this",
".",
"in",
"=",
"in",
";",
"this",
".",
"buffer",
"=",
"new",
"byte",
"[",
"bufferSize",
"]",
";",
"}"
] | public BufferedChecksum(IChecksum @in, int bufferSize){this.@in = @in;this.buffer = new byte[bufferSize];}
| train | false |
8,064 | public TagCommand tag() {return new TagCommand(repo);}
| [
"public",
"TagCommand",
"tag",
"(",
")",
"{",
"return",
"new",
"TagCommand",
"(",
"repo",
")",
";",
"}"
] | public virtual TagCommand Tag(){return new TagCommand(repo);}
| train | false |
8,065 | public DescribeClusterDbRevisionsResult describeClusterDbRevisions(DescribeClusterDbRevisionsRequest request) {request = beforeClientExecution(request);return executeDescribeClusterDbRevisions(request);}
| [
"public",
"DescribeClusterDbRevisionsResult",
"describeClusterDbRevisions",
"(",
"DescribeClusterDbRevisionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeClusterDbRevisions",
"(",
"request",
")",
";... | public virtual DescribeClusterDbRevisionsResponse DescribeClusterDbRevisions(DescribeClusterDbRevisionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterDbRevisionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterDbRevisionsResponseUnmarshaller.Instanc... | train | true |
8,066 | public StartImageScanResult startImageScan(StartImageScanRequest request) {request = beforeClientExecution(request);return executeStartImageScan(request);}
| [
"public",
"StartImageScanResult",
"startImageScan",
"(",
"StartImageScanRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStartImageScan",
"(",
"request",
")",
";",
"}"
] | public virtual StartImageScanResponse StartImageScan(StartImageScanRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartImageScanRequestMarshaller.Instance;options.ResponseUnmarshaller = StartImageScanResponseUnmarshaller.Instance;return Invoke<StartImageScanResponse>(request, options);}
| train | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.