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 |
|---|---|---|---|---|---|
4,141
|
public long ramBytesUsed() {long sizeInBytes = ((termBytesReader!=null)? termBytesReader.ramBytesUsed() : 0);for(FieldIndexData entry : fields.values()) {sizeInBytes += entry.ramBytesUsed();}return sizeInBytes;}
|
[
"public",
"long",
"ramBytesUsed",
"(",
")",
"{",
"long",
"sizeInBytes",
"=",
"(",
"(",
"termBytesReader",
"!=",
"null",
")",
"?",
"termBytesReader",
".",
"ramBytesUsed",
"(",
")",
":",
"0",
")",
";",
"for",
"(",
"FieldIndexData",
"entry",
":",
"fields",
".",
"values",
"(",
")",
")",
"{",
"sizeInBytes",
"+=",
"entry",
".",
"ramBytesUsed",
"(",
")",
";",
"}",
"return",
"sizeInBytes",
";",
"}"
] |
public override long RamBytesUsed(){long sizeInBytes = 0;foreach (FieldIndexData entry in fields.Values){sizeInBytes += entry.RamBytesUsed();}return sizeInBytes;}
|
train
| false
|
4,142
|
public StringBuilder append(char c) {append0(c);return this;}
|
[
"public",
"StringBuilder",
"append",
"(",
"char",
"c",
")",
"{",
"append0",
"(",
"c",
")",
";",
"return",
"this",
";",
"}"
] |
public java.lang.StringBuilder append(char c){append0(c);return this;}
|
train
| false
|
4,143
|
public void unread(int oneChar) throws IOException {synchronized (lock) {checkNotClosed();if (pos == 0) {throw new IOException("Pushback buffer full");}buf[--pos] = (char) oneChar;}}
|
[
"public",
"void",
"unread",
"(",
"int",
"oneChar",
")",
"throws",
"IOException",
"{",
"synchronized",
"(",
"lock",
")",
"{",
"checkNotClosed",
"(",
")",
";",
"if",
"(",
"pos",
"==",
"0",
")",
"{",
"throw",
"new",
"IOException",
"(",
"\"Pushback buffer full\"",
")",
";",
"}",
"buf",
"[",
"--",
"pos",
"]",
"=",
"(",
"char",
")",
"oneChar",
";",
"}",
"}"
] |
public virtual void unread(int oneChar){lock (@lock){checkNotClosed();if (pos == 0){throw new System.IO.IOException("Pushback buffer full");}buf[--pos] = (char)oneChar;}}
|
train
| false
|
4,144
|
public QueryFaceRequest() {super("LinkFace", "2018-07-20", "QueryFace");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
|
[
"public",
"QueryFaceRequest",
"(",
")",
"{",
"super",
"(",
"\"LinkFace\"",
",",
"\"2018-07-20\"",
",",
"\"QueryFace\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] |
public QueryFaceRequest(): base("LinkFace", "2018-07-20", "QueryFace"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
|
train
| false
|
4,145
|
public ProductDomain(String product, String domain) {this.productName = product;this.domainName = domain;}
|
[
"public",
"ProductDomain",
"(",
"String",
"product",
",",
"String",
"domain",
")",
"{",
"this",
".",
"productName",
"=",
"product",
";",
"this",
".",
"domainName",
"=",
"domain",
";",
"}"
] |
public ProductDomain(string product, string domain){ProductName = product;DomainName = domain;}
|
train
| false
|
4,146
|
public void disableRefLog() {refLogMessage = null;refLogIncludeResult = false;}
|
[
"public",
"void",
"disableRefLog",
"(",
")",
"{",
"refLogMessage",
"=",
"null",
";",
"refLogIncludeResult",
"=",
"false",
";",
"}"
] |
public virtual void DisableRefLog(){refLogMessage = null;refLogIncludeResult = false;}
|
train
| false
|
4,147
|
public static TaxonomyWriterCache defaultTaxonomyWriterCache() {return new UTF8TaxonomyWriterCache();}
|
[
"public",
"static",
"TaxonomyWriterCache",
"defaultTaxonomyWriterCache",
"(",
")",
"{",
"return",
"new",
"UTF8TaxonomyWriterCache",
"(",
")",
";",
"}"
] |
public static ITaxonomyWriterCache DefaultTaxonomyWriterCache(){return new Cl2oTaxonomyWriterCache(1024, 0.15f, 3);}
|
train
| false
|
4,148
|
public PushCommand setDryRun(boolean dryRun) {checkCallable();this.dryRun = dryRun;return this;}
|
[
"public",
"PushCommand",
"setDryRun",
"(",
"boolean",
"dryRun",
")",
"{",
"checkCallable",
"(",
")",
";",
"this",
".",
"dryRun",
"=",
"dryRun",
";",
"return",
"this",
";",
"}"
] |
public virtual NGit.Api.PushCommand SetDryRun(bool dryRun){CheckCallable();this.dryRun = dryRun;return this;}
|
train
| false
|
4,149
|
public ProcessBuilder runInShell(String cmd, String[] args) {List<String> argv = new ArrayList<>(3 + args.length);argv.add("cmd.exe"); argv.add("/c"); argv.add(cmd);argv.addAll(Arrays.asList(args));ProcessBuilder proc = new ProcessBuilder();proc.command(argv);return proc;}
|
[
"public",
"ProcessBuilder",
"runInShell",
"(",
"String",
"cmd",
",",
"String",
"[",
"]",
"args",
")",
"{",
"List",
"<",
"String",
">",
"argv",
"=",
"new",
"ArrayList",
"<",
">",
"(",
"3",
"+",
"args",
".",
"length",
")",
";",
"argv",
".",
"add",
"(",
"\"cmd.exe\"",
")",
";",
"argv",
".",
"add",
"(",
"\"/c\"",
")",
";",
"argv",
".",
"add",
"(",
"cmd",
")",
";",
"argv",
".",
"addAll",
"(",
"Arrays",
".",
"asList",
"(",
"args",
")",
")",
";",
"ProcessBuilder",
"proc",
"=",
"new",
"ProcessBuilder",
"(",
")",
";",
"proc",
".",
"command",
"(",
"argv",
")",
";",
"return",
"proc",
";",
"}"
] |
public override ProcessStartInfo RunInShell(string cmd, string[] args){IList<string> argv = new AList<string>(3 + args.Length);argv.AddItem("cmd.exe");argv.AddItem("/c");argv.AddItem(cmd);Sharpen.Collections.AddAll(argv, Arrays.AsList(args));ProcessStartInfo proc = new ProcessStartInfo();proc.SetCommand(argv);return proc;}
|
train
| false
|
4,150
|
public NameCommentRecord(final RecordInputStream ris) {field_1_record_type = ris.readShort();field_2_frt_cell_ref_flag = ris.readShort();field_3_reserved = ris.readLong();final int field_4_name_length = ris.readShort();final int field_5_comment_length = ris.readShort();if (ris.readByte() == 0) {field_6_name_text = StringUtil.readCompressedUnicode(ris, field_4_name_length);} else {field_6_name_text = StringUtil.readUnicodeLE(ris, field_4_name_length);}if (ris.readByte() == 0) {field_7_comment_text = StringUtil.readCompressedUnicode(ris, field_5_comment_length);} else {field_7_comment_text = StringUtil.readUnicodeLE(ris, field_5_comment_length);}}
|
[
"public",
"NameCommentRecord",
"(",
"final",
"RecordInputStream",
"ris",
")",
"{",
"field_1_record_type",
"=",
"ris",
".",
"readShort",
"(",
")",
";",
"field_2_frt_cell_ref_flag",
"=",
"ris",
".",
"readShort",
"(",
")",
";",
"field_3_reserved",
"=",
"ris",
".",
"readLong",
"(",
")",
";",
"final",
"int",
"field_4_name_length",
"=",
"ris",
".",
"readShort",
"(",
")",
";",
"final",
"int",
"field_5_comment_length",
"=",
"ris",
".",
"readShort",
"(",
")",
";",
"if",
"(",
"ris",
".",
"readByte",
"(",
")",
"==",
"0",
")",
"{",
"field_6_name_text",
"=",
"StringUtil",
".",
"readCompressedUnicode",
"(",
"ris",
",",
"field_4_name_length",
")",
";",
"}",
"else",
"{",
"field_6_name_text",
"=",
"StringUtil",
".",
"readUnicodeLE",
"(",
"ris",
",",
"field_4_name_length",
")",
";",
"}",
"if",
"(",
"ris",
".",
"readByte",
"(",
")",
"==",
"0",
")",
"{",
"field_7_comment_text",
"=",
"StringUtil",
".",
"readCompressedUnicode",
"(",
"ris",
",",
"field_5_comment_length",
")",
";",
"}",
"else",
"{",
"field_7_comment_text",
"=",
"StringUtil",
".",
"readUnicodeLE",
"(",
"ris",
",",
"field_5_comment_length",
")",
";",
"}",
"}"
] |
public NameCommentRecord(RecordInputStream ris){ILittleEndianInput in1 = ris;field_1_record_type = in1.ReadShort();field_2_frt_cell_ref_flag = in1.ReadShort();field_3_reserved = in1.ReadLong();int field_4_name_length = in1.ReadShort();int field_5_comment_length = in1.ReadShort();in1.ReadByte(); field_6_name_text = StringUtil.ReadCompressedUnicode(in1, field_4_name_length);in1.ReadByte(); field_7_comment_text = StringUtil.ReadCompressedUnicode(in1, field_5_comment_length);}
|
train
| false
|
4,151
|
public void onPull(float deltaDistance) {final long now = AnimationUtils.currentAnimationTimeMillis();if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration) {return;}if (mState != STATE_PULL) {mGlowScaleY = PULL_GLOW_BEGIN;}mState = STATE_PULL;mStartTime = now;mDuration = PULL_TIME;mPullDistance += deltaDistance;float distance = Math.abs(mPullDistance);mEdgeAlpha = mEdgeAlphaStart = Math.max(PULL_EDGE_BEGIN, Math.min(distance, MAX_ALPHA));mEdgeScaleY = mEdgeScaleYStart = Math.max(HELD_EDGE_SCALE_Y, Math.min(distance * PULL_DISTANCE_EDGE_FACTOR, 1.f));mGlowAlpha = mGlowAlphaStart = Math.min(MAX_ALPHA,mGlowAlpha +(Math.abs(deltaDistance) * PULL_DISTANCE_ALPHA_GLOW_FACTOR));float glowChange = Math.abs(deltaDistance);if (deltaDistance > 0 && mPullDistance < 0) {glowChange = -glowChange;}if (mPullDistance == 0) {mGlowScaleY = 0;}mGlowScaleY = mGlowScaleYStart = Math.min(MAX_GLOW_HEIGHT, Math.max(0, mGlowScaleY + glowChange * PULL_DISTANCE_GLOW_FACTOR));mEdgeAlphaFinish = mEdgeAlpha;mEdgeScaleYFinish = mEdgeScaleY;mGlowAlphaFinish = mGlowAlpha;mGlowScaleYFinish = mGlowScaleY;}
|
[
"public",
"void",
"onPull",
"(",
"float",
"deltaDistance",
")",
"{",
"final",
"long",
"now",
"=",
"AnimationUtils",
".",
"currentAnimationTimeMillis",
"(",
")",
";",
"if",
"(",
"mState",
"==",
"STATE_PULL_DECAY",
"&&",
"now",
"-",
"mStartTime",
"<",
"mDuration",
")",
"{",
"return",
";",
"}",
"if",
"(",
"mState",
"!=",
"STATE_PULL",
")",
"{",
"mGlowScaleY",
"=",
"PULL_GLOW_BEGIN",
";",
"}",
"mState",
"=",
"STATE_PULL",
";",
"mStartTime",
"=",
"now",
";",
"mDuration",
"=",
"PULL_TIME",
";",
"mPullDistance",
"+=",
"deltaDistance",
";",
"float",
"distance",
"=",
"Math",
".",
"abs",
"(",
"mPullDistance",
")",
";",
"mEdgeAlpha",
"=",
"mEdgeAlphaStart",
"=",
"Math",
".",
"max",
"(",
"PULL_EDGE_BEGIN",
",",
"Math",
".",
"min",
"(",
"distance",
",",
"MAX_ALPHA",
")",
")",
";",
"mEdgeScaleY",
"=",
"mEdgeScaleYStart",
"=",
"Math",
".",
"max",
"(",
"HELD_EDGE_SCALE_Y",
",",
"Math",
".",
"min",
"(",
"distance",
"*",
"PULL_DISTANCE_EDGE_FACTOR",
",",
"1.f",
")",
")",
";",
"mGlowAlpha",
"=",
"mGlowAlphaStart",
"=",
"Math",
".",
"min",
"(",
"MAX_ALPHA",
",",
"mGlowAlpha",
"+",
"(",
"Math",
".",
"abs",
"(",
"deltaDistance",
")",
"*",
"PULL_DISTANCE_ALPHA_GLOW_FACTOR",
")",
")",
";",
"float",
"glowChange",
"=",
"Math",
".",
"abs",
"(",
"deltaDistance",
")",
";",
"if",
"(",
"deltaDistance",
">",
"0",
"&&",
"mPullDistance",
"<",
"0",
")",
"{",
"glowChange",
"=",
"-",
"glowChange",
";",
"}",
"if",
"(",
"mPullDistance",
"==",
"0",
")",
"{",
"mGlowScaleY",
"=",
"0",
";",
"}",
"mGlowScaleY",
"=",
"mGlowScaleYStart",
"=",
"Math",
".",
"min",
"(",
"MAX_GLOW_HEIGHT",
",",
"Math",
".",
"max",
"(",
"0",
",",
"mGlowScaleY",
"+",
"glowChange",
"*",
"PULL_DISTANCE_GLOW_FACTOR",
")",
")",
";",
"mEdgeAlphaFinish",
"=",
"mEdgeAlpha",
";",
"mEdgeScaleYFinish",
"=",
"mEdgeScaleY",
";",
"mGlowAlphaFinish",
"=",
"mGlowAlpha",
";",
"mGlowScaleYFinish",
"=",
"mGlowScaleY",
";",
"}"
] |
public virtual void onPull(float deltaDistance){long now = android.view.animation.AnimationUtils.currentAnimationTimeMillis();if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration){return;}if (mState != STATE_PULL){mGlowScaleY = PULL_GLOW_BEGIN;}mState = STATE_PULL;mStartTime = now;mDuration = PULL_TIME;mPullDistance += deltaDistance;float distance = System.Math.Abs(mPullDistance);mEdgeAlpha = mEdgeAlphaStart = System.Math.Max(PULL_EDGE_BEGIN, System.Math.Min(distance, MAX_ALPHA));mEdgeScaleY = mEdgeScaleYStart = System.Math.Max(HELD_EDGE_SCALE_Y, System.Math.Min(distance * PULL_DISTANCE_EDGE_FACTOR, 1.0f));mGlowAlpha = mGlowAlphaStart = System.Math.Min(MAX_ALPHA, mGlowAlpha + (System.Math.Abs(deltaDistance) * PULL_DISTANCE_ALPHA_GLOW_FACTOR));float glowChange = System.Math.Abs(deltaDistance);if (deltaDistance > 0 && mPullDistance < 0){glowChange = -glowChange;}if (mPullDistance == 0){mGlowScaleY = 0;}mGlowScaleY = mGlowScaleYStart = System.Math.Min(MAX_GLOW_HEIGHT, System.Math.Max(0, mGlowScaleY + glowChange * PULL_DISTANCE_GLOW_FACTOR));mEdgeAlphaFinish = mEdgeAlpha;mEdgeScaleYFinish = mEdgeScaleY;mGlowAlphaFinish = mGlowAlpha;mGlowScaleYFinish = mGlowScaleY;}
|
train
| false
|
4,152
|
public URIish setPath(String n) {final URIish r = new URIish(this);r.path = n;r.rawPath = n;return r;}
|
[
"public",
"URIish",
"setPath",
"(",
"String",
"n",
")",
"{",
"final",
"URIish",
"r",
"=",
"new",
"URIish",
"(",
"this",
")",
";",
"r",
".",
"path",
"=",
"n",
";",
"r",
".",
"rawPath",
"=",
"n",
";",
"return",
"r",
";",
"}"
] |
public virtual NGit.Transport.URIish SetPath(string n){NGit.Transport.URIish r = new NGit.Transport.URIish(this);r.path = n;r.rawPath = n;return r;}
|
train
| false
|
4,153
|
public UpdateTemplateResult updateTemplate(UpdateTemplateRequest request) {request = beforeClientExecution(request);return executeUpdateTemplate(request);}
|
[
"public",
"UpdateTemplateResult",
"updateTemplate",
"(",
"UpdateTemplateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateTemplate",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateTemplateResponse UpdateTemplate(UpdateTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTemplateResponseUnmarshaller.Instance;return Invoke<UpdateTemplateResponse>(request, options);}
|
train
| true
|
4,155
|
public ListDomainDeliverabilityCampaignsResult listDomainDeliverabilityCampaigns(ListDomainDeliverabilityCampaignsRequest request) {request = beforeClientExecution(request);return executeListDomainDeliverabilityCampaigns(request);}
|
[
"public",
"ListDomainDeliverabilityCampaignsResult",
"listDomainDeliverabilityCampaigns",
"(",
"ListDomainDeliverabilityCampaignsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListDomainDeliverabilityCampaigns",
"(",
"request",
")",
";",
"}"
] |
public virtual ListDomainDeliverabilityCampaignsResponse ListDomainDeliverabilityCampaigns(ListDomainDeliverabilityCampaignsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDomainDeliverabilityCampaignsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDomainDeliverabilityCampaignsResponseUnmarshaller.Instance;return Invoke<ListDomainDeliverabilityCampaignsResponse>(request, options);}
|
train
| false
|
4,156
|
public void setReuseObjects(boolean reuseObjects) {this.reuseObjects = reuseObjects;}
|
[
"public",
"void",
"setReuseObjects",
"(",
"boolean",
"reuseObjects",
")",
"{",
"this",
".",
"reuseObjects",
"=",
"reuseObjects",
";",
"}"
] |
public virtual void SetReuseObjects(bool reuseObjects){this.reuseObjects = reuseObjects;}
|
train
| false
|
4,157
|
public DiffFormatter(OutputStream out) {this.out = out;}
|
[
"public",
"DiffFormatter",
"(",
"OutputStream",
"out",
")",
"{",
"this",
".",
"out",
"=",
"out",
";",
"}"
] |
public DiffFormatter(OutputStream @out){this.@out = @out;}
|
train
| false
|
4,158
|
public ExpectedAttributeValue(Boolean exists) {setExists(exists);}
|
[
"public",
"ExpectedAttributeValue",
"(",
"Boolean",
"exists",
")",
"{",
"setExists",
"(",
"exists",
")",
";",
"}"
] |
public ExpectedAttributeValue(bool exists){_exists = exists;}
|
train
| false
|
4,159
|
public FieldsProducer fieldsProducer(SegmentReadState state) throws IOException {PostingsReaderBase postingsReader = new Lucene84PostingsReader(state);boolean success = false;try {FieldsProducer ret = new FSTTermsReader(state, postingsReader);success = true;return ret;} finally {if (!success) {IOUtils.closeWhileHandlingException(postingsReader);}}}
|
[
"public",
"FieldsProducer",
"fieldsProducer",
"(",
"SegmentReadState",
"state",
")",
"throws",
"IOException",
"{",
"PostingsReaderBase",
"postingsReader",
"=",
"new",
"Lucene84PostingsReader",
"(",
"state",
")",
";",
"boolean",
"success",
"=",
"false",
";",
"try",
"{",
"FieldsProducer",
"ret",
"=",
"new",
"FSTTermsReader",
"(",
"state",
",",
"postingsReader",
")",
";",
"success",
"=",
"true",
";",
"return",
"ret",
";",
"}",
"finally",
"{",
"if",
"(",
"!",
"success",
")",
"{",
"IOUtils",
".",
"closeWhileHandlingException",
"(",
"postingsReader",
")",
";",
"}",
"}",
"}"
] |
public override FieldsProducer FieldsProducer(SegmentReadState state){PostingsReaderBase postingsReader = new Lucene41PostingsReader(state.Directory, state.FieldInfos,state.SegmentInfo, state.Context, state.SegmentSuffix);bool success = false;try{FieldsProducer ret = new FSTTermsReader(state, postingsReader);success = true;return ret;}finally{if (!success){IOUtils.DisposeWhileHandlingException(postingsReader);}}}
|
train
| false
|
4,160
|
public ListSubscribedWorkteamsResult listSubscribedWorkteams(ListSubscribedWorkteamsRequest request) {request = beforeClientExecution(request);return executeListSubscribedWorkteams(request);}
|
[
"public",
"ListSubscribedWorkteamsResult",
"listSubscribedWorkteams",
"(",
"ListSubscribedWorkteamsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListSubscribedWorkteams",
"(",
"request",
")",
";",
"}"
] |
public virtual ListSubscribedWorkteamsResponse ListSubscribedWorkteams(ListSubscribedWorkteamsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSubscribedWorkteamsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSubscribedWorkteamsResponseUnmarshaller.Instance;return Invoke<ListSubscribedWorkteamsResponse>(request, options);}
|
train
| true
|
4,161
|
public BatchDeleteAttributesRequest(String domainName, java.util.List<DeletableItem> items) {setDomainName(domainName);setItems(items);}
|
[
"public",
"BatchDeleteAttributesRequest",
"(",
"String",
"domainName",
",",
"java",
".",
"util",
".",
"List",
"<",
"DeletableItem",
">",
"items",
")",
"{",
"setDomainName",
"(",
"domainName",
")",
";",
"setItems",
"(",
"items",
")",
";",
"}"
] |
public BatchDeleteAttributesRequest(string domainName, List<DeletableItem> items){_domainName = domainName;_items = items;}
|
train
| false
|
4,163
|
public NavigableMap<K, V> descendingMap() {return new BoundedMap(!ascending, from, fromBound, to, toBound);}
|
[
"public",
"NavigableMap",
"<",
"K",
",",
"V",
">",
"descendingMap",
"(",
")",
"{",
"return",
"new",
"BoundedMap",
"(",
"!",
"ascending",
",",
"from",
",",
"fromBound",
",",
"to",
",",
"toBound",
")",
";",
"}"
] |
public java.util.NavigableMap<K, V> descendingMap(){return new java.util.TreeMap<K, V>.BoundedMap(this._enclosing, !this.ascending, this.from, this.fromBound, this.to, this.toBound);}
|
train
| false
|
4,164
|
public ByteBuffer putLong(long value) {int newPosition = position + SizeOf.LONG;if (newPosition > limit) {throw new BufferOverflowException();}Memory.pokeLong(backingArray, offset + position, value, order);position = newPosition;return this;}
|
[
"public",
"ByteBuffer",
"putLong",
"(",
"long",
"value",
")",
"{",
"int",
"newPosition",
"=",
"position",
"+",
"SizeOf",
".",
"LONG",
";",
"if",
"(",
"newPosition",
">",
"limit",
")",
"{",
"throw",
"new",
"BufferOverflowException",
"(",
")",
";",
"}",
"Memory",
".",
"pokeLong",
"(",
"backingArray",
",",
"offset",
"+",
"position",
",",
"value",
",",
"order",
")",
";",
"position",
"=",
"newPosition",
";",
"return",
"this",
";",
"}"
] |
public override java.nio.ByteBuffer putLong(long value){int newPosition = _position + libcore.io.SizeOf.LONG;if (newPosition > _limit){throw new java.nio.BufferOverflowException();}libcore.io.Memory.pokeLong(backingArray, offset + _position, value, _order);_position = newPosition;return this;}
|
train
| false
|
4,165
|
public CFRecordsAggregate get(int index) {checkIndex(index);return _cfHeaders.get(index);}
|
[
"public",
"CFRecordsAggregate",
"get",
"(",
"int",
"index",
")",
"{",
"checkIndex",
"(",
"index",
")",
";",
"return",
"_cfHeaders",
".",
"get",
"(",
"index",
")",
";",
"}"
] |
public CFRecordsAggregate Get(int index){CheckIndex(index);return (CFRecordsAggregate)_cfHeaders[index];}
|
train
| false
|
4,167
|
public GetSegmentsResult getSegments(GetSegmentsRequest request) {request = beforeClientExecution(request);return executeGetSegments(request);}
|
[
"public",
"GetSegmentsResult",
"getSegments",
"(",
"GetSegmentsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetSegments",
"(",
"request",
")",
";",
"}"
] |
public virtual GetSegmentsResponse GetSegments(GetSegmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSegmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSegmentsResponseUnmarshaller.Instance;return Invoke<GetSegmentsResponse>(request, options);}
|
train
| true
|
4,168
|
public DeleteVpcEndpointsResult deleteVpcEndpoints(DeleteVpcEndpointsRequest request) {request = beforeClientExecution(request);return executeDeleteVpcEndpoints(request);}
|
[
"public",
"DeleteVpcEndpointsResult",
"deleteVpcEndpoints",
"(",
"DeleteVpcEndpointsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteVpcEndpoints",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteVpcEndpointsResponse DeleteVpcEndpoints(DeleteVpcEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpcEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpcEndpointsResponseUnmarshaller.Instance;return Invoke<DeleteVpcEndpointsResponse>(request, options);}
|
train
| true
|
4,169
|
public String toString() {switch (getCellTypeEnum()) {case BLANK:return "";case BOOLEAN:return getBooleanCellValue()?"TRUE":"FALSE";case ERROR:return ErrorEval.getText((( BoolErrRecord ) _record).getErrorValue());case FORMULA:return getCellFormula();case NUMERIC:if (DateUtil.isCellDateFormatted(this)) {SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yyyy", LocaleUtil.getUserLocale());sdf.setTimeZone(LocaleUtil.getUserTimeZone());return sdf.format(getDateCellValue());}return String.valueOf(getNumericCellValue());case STRING:return getStringCellValue();default:return "Unknown Cell Type: " + getCellType();}}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"switch",
"(",
"getCellTypeEnum",
"(",
")",
")",
"{",
"case",
"BLANK",
":",
"return",
"\"\"",
";",
"case",
"BOOLEAN",
":",
"return",
"getBooleanCellValue",
"(",
")",
"?",
"\"TRUE\"",
":",
"\"FALSE\"",
";",
"case",
"ERROR",
":",
"return",
"ErrorEval",
".",
"getText",
"(",
"(",
"(",
"BoolErrRecord",
")",
"_record",
")",
".",
"getErrorValue",
"(",
")",
")",
";",
"case",
"FORMULA",
":",
"return",
"getCellFormula",
"(",
")",
";",
"case",
"NUMERIC",
":",
"if",
"(",
"DateUtil",
".",
"isCellDateFormatted",
"(",
"this",
")",
")",
"{",
"SimpleDateFormat",
"sdf",
"=",
"new",
"SimpleDateFormat",
"(",
"\"dd-MMM-yyyy\"",
",",
"LocaleUtil",
".",
"getUserLocale",
"(",
")",
")",
";",
"sdf",
".",
"setTimeZone",
"(",
"LocaleUtil",
".",
"getUserTimeZone",
"(",
")",
")",
";",
"return",
"sdf",
".",
"format",
"(",
"getDateCellValue",
"(",
")",
")",
";",
"}",
"return",
"String",
".",
"valueOf",
"(",
"getNumericCellValue",
"(",
")",
")",
";",
"case",
"STRING",
":",
"return",
"getStringCellValue",
"(",
")",
";",
"default",
":",
"return",
"\"Unknown Cell Type: \"",
"+",
"getCellType",
"(",
")",
";",
"}",
"}"
] |
public override String ToString(){switch (CellType){case CellType.Blank:return "";case CellType.Boolean:return BooleanCellValue ? "TRUE" : "FALSE";case CellType.Error:return NPOI.SS.Formula.Eval.ErrorEval.GetText(((BoolErrRecord)_record).ErrorValue);case CellType.Formula:return CellFormula;case CellType.Numeric:string format = this.CellStyle.GetDataFormatString();DataFormatter formatter = new DataFormatter();return formatter.FormatCellValue(this);case CellType.String:return StringCellValue;default:return "Unknown Cell Type: " + CellType;}}
|
train
| false
|
4,170
|
public List<? extends HunkHeader> getHunks() {if (hunks == null)return Collections.emptyList();return hunks;}
|
[
"public",
"List",
"<",
"?",
"extends",
"HunkHeader",
">",
"getHunks",
"(",
")",
"{",
"if",
"(",
"hunks",
"==",
"null",
")",
"return",
"Collections",
".",
"emptyList",
"(",
")",
";",
"return",
"hunks",
";",
"}"
] |
public virtual IList<HunkHeader> GetHunks(){if (hunks == null){return Sharpen.Collections.EmptyList<HunkHeader>();}return hunks;}
|
train
| false
|
4,171
|
public ObjectId toObjectId() {ensureId();return idBuffer.toObjectId();}
|
[
"public",
"ObjectId",
"toObjectId",
"(",
")",
"{",
"ensureId",
"(",
")",
";",
"return",
"idBuffer",
".",
"toObjectId",
"(",
")",
";",
"}"
] |
public virtual ObjectId ToObjectId(){EnsureId();return idBuffer.ToObjectId();}
|
train
| false
|
4,172
|
public ListQueuesRequest(String queueNamePrefix) {setQueueNamePrefix(queueNamePrefix);}
|
[
"public",
"ListQueuesRequest",
"(",
"String",
"queueNamePrefix",
")",
"{",
"setQueueNamePrefix",
"(",
"queueNamePrefix",
")",
";",
"}"
] |
public ListQueuesRequest(string queueNamePrefix){_queueNamePrefix = queueNamePrefix;}
|
train
| false
|
4,173
|
public AcceptTransitGatewayPeeringAttachmentResult acceptTransitGatewayPeeringAttachment(AcceptTransitGatewayPeeringAttachmentRequest request) {request = beforeClientExecution(request);return executeAcceptTransitGatewayPeeringAttachment(request);}
|
[
"public",
"AcceptTransitGatewayPeeringAttachmentResult",
"acceptTransitGatewayPeeringAttachment",
"(",
"AcceptTransitGatewayPeeringAttachmentRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAcceptTransitGatewayPeeringAttachment",
"(",
"request",
")",
";",
"}"
] |
public virtual AcceptTransitGatewayPeeringAttachmentResponse AcceptTransitGatewayPeeringAttachment(AcceptTransitGatewayPeeringAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptTransitGatewayPeeringAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptTransitGatewayPeeringAttachmentResponseUnmarshaller.Instance;return Invoke<AcceptTransitGatewayPeeringAttachmentResponse>(request, options);}
|
train
| false
|
4,174
|
public String toString() {final int n = length();final StringBuilder b = new StringBuilder(n);for (int i = 0; i < n; i++)b.append(charAt(i));return b.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"final",
"int",
"n",
"=",
"length",
"(",
")",
";",
"final",
"StringBuilder",
"b",
"=",
"new",
"StringBuilder",
"(",
"n",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"n",
";",
"i",
"++",
")",
"b",
".",
"append",
"(",
"charAt",
"(",
"i",
")",
")",
";",
"return",
"b",
".",
"toString",
"(",
")",
";",
"}"
] |
public override string ToString(){int n = Length;StringBuilder b = new StringBuilder(n);for (int i = 0; i < n; i++){b.Append(CharAt (i));}return b.ToString();}
|
train
| false
|
4,175
|
public String toString(String field) {StringBuilder buffer = new StringBuilder();buffer.append("(");for (int i = 0 ; i < disjuncts.length; i++) {Query subquery = disjuncts[i];if (subquery instanceof BooleanQuery) { buffer.append("(");buffer.append(subquery.toString(field));buffer.append(")");}else buffer.append(subquery.toString(field));if (i != disjuncts.length-1) buffer.append(" | ");}buffer.append(")");if (tieBreakerMultiplier != 0.0f) {buffer.append("~");buffer.append(tieBreakerMultiplier);}return buffer.toString();}
|
[
"public",
"String",
"toString",
"(",
"String",
"field",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"(\"",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"disjuncts",
".",
"length",
";",
"i",
"++",
")",
"{",
"Query",
"subquery",
"=",
"disjuncts",
"[",
"i",
"]",
";",
"if",
"(",
"subquery",
"instanceof",
"BooleanQuery",
")",
"{",
"buffer",
".",
"append",
"(",
"\"(\"",
")",
";",
"buffer",
".",
"append",
"(",
"subquery",
".",
"toString",
"(",
"field",
")",
")",
";",
"buffer",
".",
"append",
"(",
"\")\"",
")",
";",
"}",
"else",
"buffer",
".",
"append",
"(",
"subquery",
".",
"toString",
"(",
"field",
")",
")",
";",
"if",
"(",
"i",
"!=",
"disjuncts",
".",
"length",
"-",
"1",
")",
"buffer",
".",
"append",
"(",
"\" | \"",
")",
";",
"}",
"buffer",
".",
"append",
"(",
"\")\"",
")",
";",
"if",
"(",
"tieBreakerMultiplier",
"!=",
"0.0f",
")",
"{",
"buffer",
".",
"append",
"(",
"\"~\"",
")",
";",
"buffer",
".",
"append",
"(",
"tieBreakerMultiplier",
")",
";",
"}",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] |
public override string ToString(string field){StringBuilder buffer = new StringBuilder();buffer.Append("(");int numDisjunctions = disjuncts.Count;for (int i = 0; i < numDisjunctions; i++){Query subquery = disjuncts[i];if (subquery is BooleanQuery) {buffer.Append("(");buffer.Append(subquery.ToString(field));buffer.Append(")");}else{buffer.Append(subquery.ToString(field));}if (i != numDisjunctions - 1){buffer.Append(" | ");}}buffer.Append(")");if (tieBreakerMultiplier != 0.0f){buffer.Append("~");buffer.Append(tieBreakerMultiplier);}if (Boost != 1.0){buffer.Append("^");buffer.Append(Boost);}return buffer.ToString();}
|
train
| false
|
4,176
|
@Override public boolean isEmpty() {return c.isEmpty();}
|
[
"@",
"Override",
"public",
"boolean",
"isEmpty",
"(",
")",
"{",
"return",
"c",
".",
"isEmpty",
"(",
")",
";",
"}"
] |
public virtual bool isEmpty(){return c.isEmpty();}
|
train
| false
|
4,177
|
public String getContentDisposition() {return contentDisposition;}
|
[
"public",
"String",
"getContentDisposition",
"(",
")",
"{",
"return",
"contentDisposition",
";",
"}"
] |
public string ServiceEndpoint { get; internal set; }
|
train
| false
|
4,178
|
public DescribeHsmClientCertificatesResult describeHsmClientCertificates() {return describeHsmClientCertificates(new DescribeHsmClientCertificatesRequest());}
|
[
"public",
"DescribeHsmClientCertificatesResult",
"describeHsmClientCertificates",
"(",
")",
"{",
"return",
"describeHsmClientCertificates",
"(",
"new",
"DescribeHsmClientCertificatesRequest",
"(",
")",
")",
";",
"}"
] |
public virtual DescribeHsmClientCertificatesResponse DescribeHsmClientCertificates(){return DescribeHsmClientCertificates(new DescribeHsmClientCertificatesRequest());}
|
train
| false
|
4,179
|
public static int[] grow(int[] array, int minSize) {assert minSize >= 0: "size must be positive (got " + minSize + "): likely integer overflow?";if (array.length < minSize) {return growExact(array, oversize(minSize, Integer.BYTES));} else return array;}
|
[
"public",
"static",
"int",
"[",
"]",
"grow",
"(",
"int",
"[",
"]",
"array",
",",
"int",
"minSize",
")",
"{",
"assert",
"minSize",
">=",
"0",
":",
"\"size must be positive (got \"",
"+",
"minSize",
"+",
"\"): likely integer overflow?\"",
";",
"if",
"(",
"array",
".",
"length",
"<",
"minSize",
")",
"{",
"return",
"growExact",
"(",
"array",
",",
"oversize",
"(",
"minSize",
",",
"Integer",
".",
"BYTES",
")",
")",
";",
"}",
"else",
"return",
"array",
";",
"}"
] |
public static short[] Grow(short[] array, int minSize){Debug.Assert(minSize >= 0, "size must be positive (got " + minSize + "): likely integer overflow?");if (array.Length < minSize){short[] newArray = new short[Oversize(minSize, RamUsageEstimator.NUM_BYTES_INT16)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}
|
train
| false
|
4,180
|
public String highlightTerm(String originalText, TokenGroup tokenGroup) {if (tokenGroup.getTotalScore() <= 0) {return originalText;}StringBuilder returnBuffer = new StringBuilder(preTag.length() + originalText.length() + postTag.length());returnBuffer.append(preTag);returnBuffer.append(originalText);returnBuffer.append(postTag);return returnBuffer.toString();}
|
[
"public",
"String",
"highlightTerm",
"(",
"String",
"originalText",
",",
"TokenGroup",
"tokenGroup",
")",
"{",
"if",
"(",
"tokenGroup",
".",
"getTotalScore",
"(",
")",
"<=",
"0",
")",
"{",
"return",
"originalText",
";",
"}",
"StringBuilder",
"returnBuffer",
"=",
"new",
"StringBuilder",
"(",
"preTag",
".",
"length",
"(",
")",
"+",
"originalText",
".",
"length",
"(",
")",
"+",
"postTag",
".",
"length",
"(",
")",
")",
";",
"returnBuffer",
".",
"append",
"(",
"preTag",
")",
";",
"returnBuffer",
".",
"append",
"(",
"originalText",
")",
";",
"returnBuffer",
".",
"append",
"(",
"postTag",
")",
";",
"return",
"returnBuffer",
".",
"toString",
"(",
")",
";",
"}"
] |
public virtual string HighlightTerm(string originalText, TokenGroup tokenGroup){if (tokenGroup.TotalScore <= 0){return originalText;}StringBuilder returnBuffer = new StringBuilder(preTag.Length + originalText.Length + postTag.Length);returnBuffer.Append(preTag);returnBuffer.Append(originalText);returnBuffer.Append(postTag);return returnBuffer.ToString();}
|
train
| false
|
4,181
|
public LimitTokenCountFilter(TokenStream in, int maxTokenCount, boolean consumeAllTokens) {super(in);if (maxTokenCount < 1) {throw new IllegalArgumentException("maxTokenCount must be greater than zero");}this.maxTokenCount = maxTokenCount;this.consumeAllTokens = consumeAllTokens;}
|
[
"public",
"LimitTokenCountFilter",
"(",
"TokenStream",
"in",
",",
"int",
"maxTokenCount",
",",
"boolean",
"consumeAllTokens",
")",
"{",
"super",
"(",
"in",
")",
";",
"if",
"(",
"maxTokenCount",
"<",
"1",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"maxTokenCount must be greater than zero\"",
")",
";",
"}",
"this",
".",
"maxTokenCount",
"=",
"maxTokenCount",
";",
"this",
".",
"consumeAllTokens",
"=",
"consumeAllTokens",
";",
"}"
] |
public LimitTokenCountFilter(TokenStream @in, int maxTokenCount, bool consumeAllTokens): base(@in){if (maxTokenCount < 1){throw new System.ArgumentOutOfRangeException("maxTokenCount must be greater than zero");}this.maxTokenCount = maxTokenCount;this.consumeAllTokens = consumeAllTokens;}
|
train
| false
|
4,183
|
public TokenFilter create(TokenStream input) {return new ClassicFilter(input);}
|
[
"public",
"TokenFilter",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"ClassicFilter",
"(",
"input",
")",
";",
"}"
] |
public override TokenStream Create(TokenStream input){return new ClassicFilter(input);}
|
train
| false
|
4,184
|
public boolean isAllowThin() {return allowThin;}
|
[
"public",
"boolean",
"isAllowThin",
"(",
")",
"{",
"return",
"allowThin",
";",
"}"
] |
public virtual bool IsAllowThin(){return allowThin;}
|
train
| false
|
4,185
|
public boolean contains(Object o) {if (!(o instanceof Entry))return false;Entry<?, ?> e = (Entry<?, ?>) o;return containsMapping(e.getKey(), e.getValue());}
|
[
"public",
"boolean",
"contains",
"(",
"Object",
"o",
")",
"{",
"if",
"(",
"!",
"(",
"o",
"instanceof",
"Entry",
")",
")",
"return",
"false",
";",
"Entry",
"<",
"?",
",",
"?",
">",
"e",
"=",
"(",
"Entry",
"<",
"?",
",",
"?",
">",
")",
"o",
";",
"return",
"containsMapping",
"(",
"e",
".",
"getKey",
"(",
")",
",",
"e",
".",
"getValue",
"(",
")",
")",
";",
"}"
] |
public override bool contains(object o){if (!(o is java.util.MapClass.Entry<K, V>)){return false;}java.util.MapClass.Entry<object, object> e = (java.util.MapClass.Entry<object, object>)o;return this._enclosing.containsMapping(e.getKey(), e.getValue());}
|
train
| false
|
4,186
|
public void add(long v) throws IOException {assert PackedInts.unsignedBitsRequired(v) <= bitsPerValue;assert !finished;if (valueCount != -1 && written >= valueCount) {throw new EOFException("Writing past end of stream");}nextValues[off++] = v;if (off == nextValues.length) {flush();}++written;}
|
[
"public",
"void",
"add",
"(",
"long",
"v",
")",
"throws",
"IOException",
"{",
"assert",
"PackedInts",
".",
"unsignedBitsRequired",
"(",
"v",
")",
"<=",
"bitsPerValue",
";",
"assert",
"!",
"finished",
";",
"if",
"(",
"valueCount",
"!=",
"-",
"1",
"&&",
"written",
">=",
"valueCount",
")",
"{",
"throw",
"new",
"EOFException",
"(",
"\"Writing past end of stream\"",
")",
";",
"}",
"nextValues",
"[",
"off",
"++",
"]",
"=",
"v",
";",
"if",
"(",
"off",
"==",
"nextValues",
".",
"length",
")",
"{",
"flush",
"(",
")",
";",
"}",
"++",
"written",
";",
"}"
] |
public override void Add(long v){Debug.Assert(m_bitsPerValue == 64 || (v >= 0 && v <= PackedInt32s.MaxValue(m_bitsPerValue)), m_bitsPerValue.ToString());Debug.Assert(!finished);if (m_valueCount != -1 && written >= m_valueCount){throw new System.IO.EndOfStreamException("Writing past end of stream");}nextValues[off++] = v;if (off == nextValues.Length){Flush();}++written;}
|
train
| false
|
4,187
|
public GetOnlineServiceResultRequest() {super("industry-brain", "2018-07-12", "GetOnlineServiceResult");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
|
[
"public",
"GetOnlineServiceResultRequest",
"(",
")",
"{",
"super",
"(",
"\"industry-brain\"",
",",
"\"2018-07-12\"",
",",
"\"GetOnlineServiceResult\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] |
public GetOnlineServiceResultRequest(): base("industry-brain", "2018-07-12", "GetOnlineServiceResult"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
|
train
| false
|
4,188
|
public void setBigFileThreshold(int bigFileThreshold) {this.bigFileThreshold = bigFileThreshold;}
|
[
"public",
"void",
"setBigFileThreshold",
"(",
"int",
"bigFileThreshold",
")",
"{",
"this",
".",
"bigFileThreshold",
"=",
"bigFileThreshold",
";",
"}"
] |
public virtual void SetBigFileThreshold(int bigFileThreshold){this.bigFileThreshold = bigFileThreshold;}
|
train
| false
|
4,189
|
public boolean isEmpty() {return size == 0;}
|
[
"public",
"boolean",
"isEmpty",
"(",
")",
"{",
"return",
"size",
"==",
"0",
";",
"}"
] |
public override bool isEmpty(){return this._enclosing._size == 0;}
|
train
| false
|
4,190
|
public int compareTo(ScoreTerm other) {if (term.bytesEquals(other.term))return 0; if (this.boost == other.boost)return other.term.compareTo(this.term);else return Float.compare(this.boost, other.boost);}
|
[
"public",
"int",
"compareTo",
"(",
"ScoreTerm",
"other",
")",
"{",
"if",
"(",
"term",
".",
"bytesEquals",
"(",
"other",
".",
"term",
")",
")",
"return",
"0",
";",
"if",
"(",
"this",
".",
"boost",
"==",
"other",
".",
"boost",
")",
"return",
"other",
".",
"term",
".",
"compareTo",
"(",
"this",
".",
"term",
")",
";",
"else",
"return",
"Float",
".",
"compare",
"(",
"this",
".",
"boost",
",",
"other",
".",
"boost",
")",
";",
"}"
] |
public virtual int CompareTo(ScoreTerm other){if (Term.BytesEquals(other.Term)){return 0; }if (this.Boost == other.Boost){return other.Term.CompareTo(this.Term);}else{return this.Boost.CompareTo(other.Boost);}}
|
train
| false
|
4,191
|
public int codePointCount(int start, int end) {if (start < 0 || end > count || start > end) {throw startEndAndLength(start, end);}return Character.codePointCount(value, start, end - start);}
|
[
"public",
"int",
"codePointCount",
"(",
"int",
"start",
",",
"int",
"end",
")",
"{",
"if",
"(",
"start",
"<",
"0",
"||",
"end",
">",
"count",
"||",
"start",
">",
"end",
")",
"{",
"throw",
"startEndAndLength",
"(",
"start",
",",
"end",
")",
";",
"}",
"return",
"Character",
".",
"codePointCount",
"(",
"value",
",",
"start",
",",
"end",
"-",
"start",
")",
";",
"}"
] |
public virtual int codePointCount(int start, int end){if (start < 0 || end > count || start > end){throw startEndAndLength(start, end);}return Sharpen.CharHelper.CodePointCount(value, start, end - start);}
|
train
| false
|
4,192
|
public String[] getCommitNames() {return commitNames;}
|
[
"public",
"String",
"[",
"]",
"getCommitNames",
"(",
")",
"{",
"return",
"commitNames",
";",
"}"
] |
public virtual string[] GetCommitNames(){return commitNames;}
|
train
| false
|
4,193
|
public boolean isEmpty() {if (sizeIsValid)return 0 == size;return !iterator().hasNext();}
|
[
"public",
"boolean",
"isEmpty",
"(",
")",
"{",
"if",
"(",
"sizeIsValid",
")",
"return",
"0",
"==",
"size",
";",
"return",
"!",
"iterator",
"(",
")",
".",
"hasNext",
"(",
")",
";",
"}"
] |
public override bool IsEmpty(){return EntrySet().IsEmpty();}
|
train
| false
|
4,194
|
public boolean isBorder(){return border.isSet(field_1_options);}
|
[
"public",
"boolean",
"isBorder",
"(",
")",
"{",
"return",
"border",
".",
"isSet",
"(",
"field_1_options",
")",
";",
"}"
] |
public bool IsBorder(){return border.IsSet(field_1_options);}
|
train
| false
|
4,195
|
public DeleteLaunchTemplateVersionsResult deleteLaunchTemplateVersions(DeleteLaunchTemplateVersionsRequest request) {request = beforeClientExecution(request);return executeDeleteLaunchTemplateVersions(request);}
|
[
"public",
"DeleteLaunchTemplateVersionsResult",
"deleteLaunchTemplateVersions",
"(",
"DeleteLaunchTemplateVersionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteLaunchTemplateVersions",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteLaunchTemplateVersionsResponse DeleteLaunchTemplateVersions(DeleteLaunchTemplateVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLaunchTemplateVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLaunchTemplateVersionsResponseUnmarshaller.Instance;return Invoke<DeleteLaunchTemplateVersionsResponse>(request, options);}
|
train
| true
|
4,196
|
public DescribeDeviceResult describeDevice(DescribeDeviceRequest request) {request = beforeClientExecution(request);return executeDescribeDevice(request);}
|
[
"public",
"DescribeDeviceResult",
"describeDevice",
"(",
"DescribeDeviceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeDevice",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeDeviceResponse DescribeDevice(DescribeDeviceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDeviceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDeviceResponseUnmarshaller.Instance;return Invoke<DescribeDeviceResponse>(request, options);}
|
train
| true
|
4,197
|
public static Class<? extends TokenizerFactory> lookupClass(String name) {return loader.lookupClass(name);}
|
[
"public",
"static",
"Class",
"<",
"?",
"extends",
"TokenizerFactory",
">",
"lookupClass",
"(",
"String",
"name",
")",
"{",
"return",
"loader",
".",
"lookupClass",
"(",
"name",
")",
";",
"}"
] |
public static Type LookupClass(string name){return loader.LookupClass(name);}
|
train
| false
|
4,198
|
public CreateParameterGroupResult createParameterGroup(CreateParameterGroupRequest request) {request = beforeClientExecution(request);return executeCreateParameterGroup(request);}
|
[
"public",
"CreateParameterGroupResult",
"createParameterGroup",
"(",
"CreateParameterGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateParameterGroup",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateParameterGroupResponse CreateParameterGroup(CreateParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateParameterGroupResponseUnmarshaller.Instance;return Invoke<CreateParameterGroupResponse>(request, options);}
|
train
| true
|
4,199
|
public FieldsQuery(SrndQuery q, String fieldName, char fieldOp) {this.q = q;fieldNames = new ArrayList<>();fieldNames.add(fieldName);this.fieldOp = fieldOp;}
|
[
"public",
"FieldsQuery",
"(",
"SrndQuery",
"q",
",",
"String",
"fieldName",
",",
"char",
"fieldOp",
")",
"{",
"this",
".",
"q",
"=",
"q",
";",
"fieldNames",
"=",
"new",
"ArrayList",
"<",
">",
"(",
")",
";",
"fieldNames",
".",
"add",
"(",
"fieldName",
")",
";",
"this",
".",
"fieldOp",
"=",
"fieldOp",
";",
"}"
] |
public FieldsQuery(SrndQuery q, string fieldName, char fieldOp){this.q = q;var fieldNameList = new List<string>();fieldNameList.Add(fieldName);this.fieldNames = fieldNameList;this.fieldOp = fieldOp;}
|
train
| false
|
4,200
|
public DescribeReservedCacheNodesOfferingsResult describeReservedCacheNodesOfferings(DescribeReservedCacheNodesOfferingsRequest request) {request = beforeClientExecution(request);return executeDescribeReservedCacheNodesOfferings(request);}
|
[
"public",
"DescribeReservedCacheNodesOfferingsResult",
"describeReservedCacheNodesOfferings",
"(",
"DescribeReservedCacheNodesOfferingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeReservedCacheNodesOfferings",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeReservedCacheNodesOfferingsResponse DescribeReservedCacheNodesOfferings(DescribeReservedCacheNodesOfferingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedCacheNodesOfferingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedCacheNodesOfferingsResponseUnmarshaller.Instance;return Invoke<DescribeReservedCacheNodesOfferingsResponse>(request, options);}
|
train
| true
|
4,202
|
public UpdateTableReplicaAutoScalingResult updateTableReplicaAutoScaling(UpdateTableReplicaAutoScalingRequest request) {request = beforeClientExecution(request);return executeUpdateTableReplicaAutoScaling(request);}
|
[
"public",
"UpdateTableReplicaAutoScalingResult",
"updateTableReplicaAutoScaling",
"(",
"UpdateTableReplicaAutoScalingRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateTableReplicaAutoScaling",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateTableReplicaAutoScalingResponse UpdateTableReplicaAutoScaling(UpdateTableReplicaAutoScalingRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTableReplicaAutoScalingRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTableReplicaAutoScalingResponseUnmarshaller.Instance;return Invoke<UpdateTableReplicaAutoScalingResponse>(request, options);}
|
train
| false
|
4,203
|
public ValidateConfigurationResult validateConfiguration(ValidateConfigurationRequest request) {request = beforeClientExecution(request);return executeValidateConfiguration(request);}
|
[
"public",
"ValidateConfigurationResult",
"validateConfiguration",
"(",
"ValidateConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeValidateConfiguration",
"(",
"request",
")",
";",
"}"
] |
public virtual ValidateConfigurationResponse ValidateConfiguration(ValidateConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ValidateConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = ValidateConfigurationResponseUnmarshaller.Instance;return Invoke<ValidateConfigurationResponse>(request, options);}
|
train
| false
|
4,204
|
public ModifyReservedInstancesResult modifyReservedInstances(ModifyReservedInstancesRequest request) {request = beforeClientExecution(request);return executeModifyReservedInstances(request);}
|
[
"public",
"ModifyReservedInstancesResult",
"modifyReservedInstances",
"(",
"ModifyReservedInstancesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyReservedInstances",
"(",
"request",
")",
";",
"}"
] |
public virtual ModifyReservedInstancesResponse ModifyReservedInstances(ModifyReservedInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyReservedInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyReservedInstancesResponseUnmarshaller.Instance;return Invoke<ModifyReservedInstancesResponse>(request, options);}
|
train
| true
|
4,206
|
public DeleteIdentityResult deleteIdentity(DeleteIdentityRequest request) {request = beforeClientExecution(request);return executeDeleteIdentity(request);}
|
[
"public",
"DeleteIdentityResult",
"deleteIdentity",
"(",
"DeleteIdentityRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteIdentity",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteIdentityResponse DeleteIdentity(DeleteIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIdentityResponseUnmarshaller.Instance;return Invoke<DeleteIdentityResponse>(request, options);}
|
train
| true
|
4,207
|
public PackConfig(Config cfg) {fromConfig(cfg);}
|
[
"public",
"PackConfig",
"(",
"Config",
"cfg",
")",
"{",
"fromConfig",
"(",
"cfg",
")",
";",
"}"
] |
public PackConfig(Config cfg){FromConfig(cfg);}
|
train
| false
|
4,208
|
public StringBuilder append(float f) {RealToString.getInstance().appendFloat(this, f);return this;}
|
[
"public",
"StringBuilder",
"append",
"(",
"float",
"f",
")",
"{",
"RealToString",
".",
"getInstance",
"(",
")",
".",
"appendFloat",
"(",
"this",
",",
"f",
")",
";",
"return",
"this",
";",
"}"
] |
public java.lang.StringBuilder append(char c){append0(c);return this;}
|
train
| false
|
4,209
|
public DeleteBrokerResult deleteBroker(DeleteBrokerRequest request) {request = beforeClientExecution(request);return executeDeleteBroker(request);}
|
[
"public",
"DeleteBrokerResult",
"deleteBroker",
"(",
"DeleteBrokerRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteBroker",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteBrokerResponse DeleteBroker(DeleteBrokerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteBrokerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteBrokerResponseUnmarshaller.Instance;return Invoke<DeleteBrokerResponse>(request, options);}
|
train
| true
|
4,210
|
public static String stripTags(StringBuilder buf, int start) {return stripTags(buf.substring(start),0);}
|
[
"public",
"static",
"String",
"stripTags",
"(",
"StringBuilder",
"buf",
",",
"int",
"start",
")",
"{",
"return",
"stripTags",
"(",
"buf",
".",
"substring",
"(",
"start",
")",
",",
"0",
")",
";",
"}"
] |
public static string StripTags(StringBuilder buf, int start){return StripTags(buf.ToString(start, buf.Length - start), 0);}
|
train
| false
|
4,211
|
public Explanation idfExplain(CollectionStatistics collectionStats, TermStatistics termStats[]) {double idf = 0d; List<Explanation> subs = new ArrayList<>();for (final TermStatistics stat : termStats ) {Explanation idfExplain = idfExplain(collectionStats, stat);subs.add(idfExplain);idf += idfExplain.getValue().floatValue();}return Explanation.match((float) idf, "idf(), sum of:", subs);}
|
[
"public",
"Explanation",
"idfExplain",
"(",
"CollectionStatistics",
"collectionStats",
",",
"TermStatistics",
"termStats",
"[",
"]",
")",
"{",
"double",
"idf",
"=",
"0d",
";",
"List",
"<",
"Explanation",
">",
"subs",
"=",
"new",
"ArrayList",
"<",
">",
"(",
")",
";",
"for",
"(",
"final",
"TermStatistics",
"stat",
":",
"termStats",
")",
"{",
"Explanation",
"idfExplain",
"=",
"idfExplain",
"(",
"collectionStats",
",",
"stat",
")",
";",
"subs",
".",
"add",
"(",
"idfExplain",
")",
";",
"idf",
"+=",
"idfExplain",
".",
"getValue",
"(",
")",
".",
"floatValue",
"(",
")",
";",
"}",
"return",
"Explanation",
".",
"match",
"(",
"(",
"float",
")",
"idf",
",",
"\"idf(), sum of:\"",
",",
"subs",
")",
";",
"}"
] |
public virtual Explanation IdfExplain(CollectionStatistics collectionStats, TermStatistics termStats){long df = termStats.DocFreq;long max = collectionStats.MaxDoc;float idf = Idf(df, max);return new Explanation(idf, "idf(docFreq=" + df + ", maxDocs=" + max + ")");}
|
train
| false
|
4,212
|
public CalcCountRecord clone() {return copy();}
|
[
"public",
"CalcCountRecord",
"clone",
"(",
")",
"{",
"return",
"copy",
"(",
")",
";",
"}"
] |
public override Object Clone(){CalcCountRecord rec = new CalcCountRecord();rec.field_1_iterations = field_1_iterations;return rec;}
|
train
| false
|
4,213
|
public boolean matches(ParseTree tree, String pattern, int patternRuleIndex) {ParseTreePattern p = compile(pattern, patternRuleIndex);return matches(tree, p);}
|
[
"public",
"boolean",
"matches",
"(",
"ParseTree",
"tree",
",",
"String",
"pattern",
",",
"int",
"patternRuleIndex",
")",
"{",
"ParseTreePattern",
"p",
"=",
"compile",
"(",
"pattern",
",",
"patternRuleIndex",
")",
";",
"return",
"matches",
"(",
"tree",
",",
"p",
")",
";",
"}"
] |
public virtual bool Matches(IParseTree tree, string pattern, int patternRuleIndex){ParseTreePattern p = Compile(pattern, patternRuleIndex);return Matches(tree, p);}
|
train
| false
|
4,214
|
public int addConditionalFormatting(CellRangeAddress[] regions,HSSFConditionalFormattingRule rule1) {return addConditionalFormatting(regions, rule1 == null ?null : new HSSFConditionalFormattingRule[] { rule1 });}
|
[
"public",
"int",
"addConditionalFormatting",
"(",
"CellRangeAddress",
"[",
"]",
"regions",
",",
"HSSFConditionalFormattingRule",
"rule1",
")",
"{",
"return",
"addConditionalFormatting",
"(",
"regions",
",",
"rule1",
"==",
"null",
"?",
"null",
":",
"new",
"HSSFConditionalFormattingRule",
"[",
"]",
"{",
"rule1",
"}",
")",
";",
"}"
] |
public int AddConditionalFormatting(CellRangeAddress[] regions,HSSFConditionalFormattingRule rule1){return AddConditionalFormatting(regions,rule1 == null ? null : new HSSFConditionalFormattingRule[]{rule1});}
|
train
| false
|
4,216
|
public PutAnomalyDetectorResult putAnomalyDetector(PutAnomalyDetectorRequest request) {request = beforeClientExecution(request);return executePutAnomalyDetector(request);}
|
[
"public",
"PutAnomalyDetectorResult",
"putAnomalyDetector",
"(",
"PutAnomalyDetectorRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutAnomalyDetector",
"(",
"request",
")",
";",
"}"
] |
public virtual PutAnomalyDetectorResponse PutAnomalyDetector(PutAnomalyDetectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAnomalyDetectorRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAnomalyDetectorResponseUnmarshaller.Instance;return Invoke<PutAnomalyDetectorResponse>(request, options);}
|
train
| false
|
4,217
|
public AssociateTransitGatewayRouteTableResult associateTransitGatewayRouteTable(AssociateTransitGatewayRouteTableRequest request) {request = beforeClientExecution(request);return executeAssociateTransitGatewayRouteTable(request);}
|
[
"public",
"AssociateTransitGatewayRouteTableResult",
"associateTransitGatewayRouteTable",
"(",
"AssociateTransitGatewayRouteTableRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociateTransitGatewayRouteTable",
"(",
"request",
")",
";",
"}"
] |
public virtual AssociateTransitGatewayRouteTableResponse AssociateTransitGatewayRouteTable(AssociateTransitGatewayRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateTransitGatewayRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateTransitGatewayRouteTableResponseUnmarshaller.Instance;return Invoke<AssociateTransitGatewayRouteTableResponse>(request, options);}
|
train
| true
|
4,218
|
public List<String> getIPv4Association(String publicIp) {return EC2MetadataUtils.getItems(EC2_METADATA_ROOT + path+ "ipv4-associations/" + publicIp);}
|
[
"public",
"List",
"<",
"String",
">",
"getIPv4Association",
"(",
"String",
"publicIp",
")",
"{",
"return",
"EC2MetadataUtils",
".",
"getItems",
"(",
"EC2_METADATA_ROOT",
"+",
"path",
"+",
"\"ipv4-associations/\"",
"+",
"publicIp",
")",
";",
"}"
] |
public IEnumerable<string> GetIpV4Association(string publicIp){return EC2Metadata.GetItems(string.Format(CultureInfo.InvariantCulture, "{0}ipv4-associations/{1}", _path, publicIp));}
|
train
| false
|
4,219
|
public void reset() {count = 0;assert forwardCount == 0: "pos=" + pos + " forwardCount=" + forwardCount;}
|
[
"public",
"void",
"reset",
"(",
")",
"{",
"count",
"=",
"0",
";",
"assert",
"forwardCount",
"==",
"0",
":",
"\"pos=\"",
"+",
"pos",
"+",
"\" forwardCount=\"",
"+",
"forwardCount",
";",
"}"
] |
public void Reset(){arriving = null;leaving = null;}
|
train
| false
|
4,220
|
public void serialize(LittleEndianOutput out) {out.writeShort(field_1_recalc);}
|
[
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"field_1_recalc",
")",
";",
"}"
] |
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_recalc);}
|
train
| false
|
4,221
|
public final void addConsumingCell(FormulaCellCacheEntry cellLoc) {_consumingCells.add(cellLoc);}
|
[
"public",
"final",
"void",
"addConsumingCell",
"(",
"FormulaCellCacheEntry",
"cellLoc",
")",
"{",
"_consumingCells",
".",
"add",
"(",
"cellLoc",
")",
";",
"}"
] |
public void AddConsumingCell(FormulaCellCacheEntry cellLoc){_consumingCells.Add(cellLoc);}
|
train
| false
|
4,222
|
public DeleteUserRequest(String userName) {setUserName(userName);}
|
[
"public",
"DeleteUserRequest",
"(",
"String",
"userName",
")",
"{",
"setUserName",
"(",
"userName",
")",
";",
"}"
] |
public DeleteUserRequest(string userName){_userName = userName;}
|
train
| false
|
4,223
|
public SingleValueVector(ValueEval value) {_value = value;}
|
[
"public",
"SingleValueVector",
"(",
"ValueEval",
"value",
")",
"{",
"_value",
"=",
"value",
";",
"}"
] |
public SingleValueVector(ValueEval value){_value = value;}
|
train
| false
|
4,224
|
public DeleteMethodResult deleteMethod(DeleteMethodRequest request) {request = beforeClientExecution(request);return executeDeleteMethod(request);}
|
[
"public",
"DeleteMethodResult",
"deleteMethod",
"(",
"DeleteMethodRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteMethod",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteMethodResponse DeleteMethod(DeleteMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMethodResponseUnmarshaller.Instance;return Invoke<DeleteMethodResponse>(request, options);}
|
train
| true
|
4,225
|
public static CompareResult valueOf(int simpleCompareResult) {if(simpleCompareResult < 0) {return LESS_THAN;}if(simpleCompareResult > 0) {return GREATER_THAN;}return EQUAL;}
|
[
"public",
"static",
"CompareResult",
"valueOf",
"(",
"int",
"simpleCompareResult",
")",
"{",
"if",
"(",
"simpleCompareResult",
"<",
"0",
")",
"{",
"return",
"LESS_THAN",
";",
"}",
"if",
"(",
"simpleCompareResult",
">",
"0",
")",
"{",
"return",
"GREATER_THAN",
";",
"}",
"return",
"EQUAL",
";",
"}"
] |
public static CompareResult ValueOf(int simpleCompareResult){if (simpleCompareResult < 0){return LessThan;}if (simpleCompareResult > 0){return GreaterThan;}return Equal;}
|
train
| false
|
4,226
|
public CreatePresetResult createPreset(CreatePresetRequest request) {request = beforeClientExecution(request);return executeCreatePreset(request);}
|
[
"public",
"CreatePresetResult",
"createPreset",
"(",
"CreatePresetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreatePreset",
"(",
"request",
")",
";",
"}"
] |
public virtual CreatePresetResponse CreatePreset(CreatePresetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePresetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePresetResponseUnmarshaller.Instance;return Invoke<CreatePresetResponse>(request, options);}
|
train
| true
|
4,227
|
public S3Origin(String domainName) {setDomainName(domainName);}
|
[
"public",
"S3Origin",
"(",
"String",
"domainName",
")",
"{",
"setDomainName",
"(",
"domainName",
")",
";",
"}"
] |
public S3Origin(string domainName){_domainName = domainName;}
|
train
| false
|
4,228
|
public HTMLStripCharFilter create(Reader input) {HTMLStripCharFilter charFilter;if (null == escapedTags) {charFilter = new HTMLStripCharFilter(input);} else {charFilter = new HTMLStripCharFilter(input, escapedTags);}return charFilter;}
|
[
"public",
"HTMLStripCharFilter",
"create",
"(",
"Reader",
"input",
")",
"{",
"HTMLStripCharFilter",
"charFilter",
";",
"if",
"(",
"null",
"==",
"escapedTags",
")",
"{",
"charFilter",
"=",
"new",
"HTMLStripCharFilter",
"(",
"input",
")",
";",
"}",
"else",
"{",
"charFilter",
"=",
"new",
"HTMLStripCharFilter",
"(",
"input",
",",
"escapedTags",
")",
";",
"}",
"return",
"charFilter",
";",
"}"
] |
public override TextReader Create(TextReader input){HTMLStripCharFilter charFilter;if (null == escapedTags){charFilter = new HTMLStripCharFilter(input);}else{charFilter = new HTMLStripCharFilter(input, escapedTags);}return charFilter;}
|
train
| false
|
4,229
|
public void setCurrent(char text[], int length) {current = text;cursor = 0;limit = length;limit_backward = 0;bra = cursor;ket = limit;}
|
[
"public",
"void",
"setCurrent",
"(",
"char",
"text",
"[",
"]",
",",
"int",
"length",
")",
"{",
"current",
"=",
"text",
";",
"cursor",
"=",
"0",
";",
"limit",
"=",
"length",
";",
"limit_backward",
"=",
"0",
";",
"bra",
"=",
"cursor",
";",
"ket",
"=",
"limit",
";",
"}"
] |
public virtual void SetCurrent(char[] text, int length){m_current = text;m_cursor = 0;m_limit = length;m_limit_backward = 0;m_bra = m_cursor;m_ket = m_limit;}
|
train
| false
|
4,230
|
public DisableTransitGatewayRouteTablePropagationResult disableTransitGatewayRouteTablePropagation(DisableTransitGatewayRouteTablePropagationRequest request) {request = beforeClientExecution(request);return executeDisableTransitGatewayRouteTablePropagation(request);}
|
[
"public",
"DisableTransitGatewayRouteTablePropagationResult",
"disableTransitGatewayRouteTablePropagation",
"(",
"DisableTransitGatewayRouteTablePropagationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDisableTransitGatewayRouteTablePropagation",
"(",
"request",
")",
";",
"}"
] |
public virtual DisableTransitGatewayRouteTablePropagationResponse DisableTransitGatewayRouteTablePropagation(DisableTransitGatewayRouteTablePropagationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableTransitGatewayRouteTablePropagationRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableTransitGatewayRouteTablePropagationResponseUnmarshaller.Instance;return Invoke<DisableTransitGatewayRouteTablePropagationResponse>(request, options);}
|
train
| true
|
4,231
|
public UpdateTagsForDomainResult updateTagsForDomain(UpdateTagsForDomainRequest request) {request = beforeClientExecution(request);return executeUpdateTagsForDomain(request);}
|
[
"public",
"UpdateTagsForDomainResult",
"updateTagsForDomain",
"(",
"UpdateTagsForDomainRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateTagsForDomain",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateTagsForDomainResponse UpdateTagsForDomain(UpdateTagsForDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTagsForDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTagsForDomainResponseUnmarshaller.Instance;return Invoke<UpdateTagsForDomainResponse>(request, options);}
|
train
| true
|
4,232
|
public ObjectId getPeeledObjectId() {return peeledObjectId;}
|
[
"public",
"ObjectId",
"getPeeledObjectId",
"(",
")",
"{",
"return",
"peeledObjectId",
";",
"}"
] |
public override ObjectId GetPeeledObjectId(){return peeledObjectId;}
|
train
| false
|
4,233
|
public LexerActionExecutor(LexerAction[] lexerActions) {this.lexerActions = lexerActions;int hash = MurmurHash.initialize();for (LexerAction lexerAction : lexerActions) {hash = MurmurHash.update(hash, lexerAction);}this.hashCode = MurmurHash.finish(hash, lexerActions.length);}
|
[
"public",
"LexerActionExecutor",
"(",
"LexerAction",
"[",
"]",
"lexerActions",
")",
"{",
"this",
".",
"lexerActions",
"=",
"lexerActions",
";",
"int",
"hash",
"=",
"MurmurHash",
".",
"initialize",
"(",
")",
";",
"for",
"(",
"LexerAction",
"lexerAction",
":",
"lexerActions",
")",
"{",
"hash",
"=",
"MurmurHash",
".",
"update",
"(",
"hash",
",",
"lexerAction",
")",
";",
"}",
"this",
".",
"hashCode",
"=",
"MurmurHash",
".",
"finish",
"(",
"hash",
",",
"lexerActions",
".",
"length",
")",
";",
"}"
] |
public LexerActionExecutor(ILexerAction[] lexerActions){this.lexerActions = lexerActions;int hash = MurmurHash.Initialize();foreach (ILexerAction lexerAction in lexerActions){hash = MurmurHash.Update(hash, lexerAction);}this.hashCode = MurmurHash.Finish(hash, lexerActions.Length);}
|
train
| false
|
4,234
|
public SetAlarmStateResult setAlarmState(SetAlarmStateRequest request) {request = beforeClientExecution(request);return executeSetAlarmState(request);}
|
[
"public",
"SetAlarmStateResult",
"setAlarmState",
"(",
"SetAlarmStateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSetAlarmState",
"(",
"request",
")",
";",
"}"
] |
public virtual SetAlarmStateResponse SetAlarmState(SetAlarmStateRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetAlarmStateRequestMarshaller.Instance;options.ResponseUnmarshaller = SetAlarmStateResponseUnmarshaller.Instance;return Invoke<SetAlarmStateResponse>(request, options);}
|
train
| true
|
4,235
|
public final File getFile() {return configFile;}
|
[
"public",
"final",
"File",
"getFile",
"(",
")",
"{",
"return",
"configFile",
";",
"}"
] |
public FilePath GetFile(){return configFile;}
|
train
| false
|
4,236
|
public DescribeUsersResult describeUsers(DescribeUsersRequest request) {request = beforeClientExecution(request);return executeDescribeUsers(request);}
|
[
"public",
"DescribeUsersResult",
"describeUsers",
"(",
"DescribeUsersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeUsers",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeUsersResponse DescribeUsers(DescribeUsersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUsersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUsersResponseUnmarshaller.Instance;return Invoke<DescribeUsersResponse>(request, options);}
|
train
| true
|
4,237
|
public PagedMutable(long size, int pageSize, int bitsPerValue, float acceptableOverheadRatio) {this(size, pageSize, PackedInts.fastestFormatAndBits(pageSize, bitsPerValue, acceptableOverheadRatio));fillPages();}
|
[
"public",
"PagedMutable",
"(",
"long",
"size",
",",
"int",
"pageSize",
",",
"int",
"bitsPerValue",
",",
"float",
"acceptableOverheadRatio",
")",
"{",
"this",
"(",
"size",
",",
"pageSize",
",",
"PackedInts",
".",
"fastestFormatAndBits",
"(",
"pageSize",
",",
"bitsPerValue",
",",
"acceptableOverheadRatio",
")",
")",
";",
"fillPages",
"(",
")",
";",
"}"
] |
public PagedMutable(long size, int pageSize, int bitsPerValue, float acceptableOverheadRatio): this(size, pageSize, PackedInt32s.FastestFormatAndBits(pageSize, bitsPerValue, acceptableOverheadRatio)){FillPages();}
|
train
| false
|
4,238
|
public CFHeaderRecord() {createEmpty();}
|
[
"public",
"CFHeaderRecord",
"(",
")",
"{",
"createEmpty",
"(",
")",
";",
"}"
] |
public CFHeaderRecord(){field_4_cell_ranges = new CellRangeAddressList();}
|
train
| false
|
4,239
|
public GetDataSourceResult getDataSource(GetDataSourceRequest request) {request = beforeClientExecution(request);return executeGetDataSource(request);}
|
[
"public",
"GetDataSourceResult",
"getDataSource",
"(",
"GetDataSourceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDataSource",
"(",
"request",
")",
";",
"}"
] |
public virtual GetDataSourceResponse GetDataSource(GetDataSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDataSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDataSourceResponseUnmarshaller.Instance;return Invoke<GetDataSourceResponse>(request, options);}
|
train
| true
|
4,240
|
public void serialize(LittleEndianOutput out) {out.writeDouble(field_1_margin);}
|
[
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeDouble",
"(",
"field_1_margin",
")",
";",
"}"
] |
public override void Serialize(ILittleEndianOutput out1){out1.WriteDouble(field_1_margin);}
|
train
| false
|
4,241
|
public DeleteProfilingGroupResult deleteProfilingGroup(DeleteProfilingGroupRequest request) {request = beforeClientExecution(request);return executeDeleteProfilingGroup(request);}
|
[
"public",
"DeleteProfilingGroupResult",
"deleteProfilingGroup",
"(",
"DeleteProfilingGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteProfilingGroup",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteProfilingGroupResponse DeleteProfilingGroup(DeleteProfilingGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteProfilingGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteProfilingGroupResponseUnmarshaller.Instance;return Invoke<DeleteProfilingGroupResponse>(request, options);}
|
train
| false
|
4,243
|
public void setup(int id, int progress, boolean fromUser) {mId = id;mProgress = progress;mFromUser = fromUser;}
|
[
"public",
"void",
"setup",
"(",
"int",
"id",
",",
"int",
"progress",
",",
"boolean",
"fromUser",
")",
"{",
"mId",
"=",
"id",
";",
"mProgress",
"=",
"progress",
";",
"mFromUser",
"=",
"fromUser",
";",
"}"
] |
public virtual void setup(int id, int progress, bool fromUser){this.mId = id;this.mProgress = progress;this.mFromUser = fromUser;}
|
train
| false
|
4,244
|
public static FuncVarPtg create(LittleEndianInput in) {return create(in.readByte(), in.readUShort());}
|
[
"public",
"static",
"FuncVarPtg",
"create",
"(",
"LittleEndianInput",
"in",
")",
"{",
"return",
"create",
"(",
"in",
".",
"readByte",
"(",
")",
",",
"in",
".",
"readUShort",
"(",
")",
")",
";",
"}"
] |
public static FuncVarPtg Create(ILittleEndianInput in1){return Create(in1.ReadByte(), in1.ReadShort());}
|
train
| false
|
4,245
|
public CreateAttendeeResult createAttendee(CreateAttendeeRequest request) {request = beforeClientExecution(request);return executeCreateAttendee(request);}
|
[
"public",
"CreateAttendeeResult",
"createAttendee",
"(",
"CreateAttendeeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateAttendee",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateAttendeeResponse CreateAttendee(CreateAttendeeRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAttendeeRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAttendeeResponseUnmarshaller.Instance;return Invoke<CreateAttendeeResponse>(request, options);}
|
train
| false
|
4,246
|
public String toString() {StringBuilder sb = new StringBuilder();sb.append("[EXTERNALNAME]\n");sb.append(" .options = ").append(field_1_option_flag).append("\n");sb.append(" .ix = ").append(field_2_ixals).append("\n");sb.append(" .name = ").append(field_4_name).append("\n");if(field_5_name_definition != null) {Ptg[] ptgs = field_5_name_definition.getTokens();for (Ptg ptg : ptgs) {sb.append(" .namedef = ").append(ptg).append(ptg.getRVAType()).append("\n");}}sb.append("[/EXTERNALNAME]\n");return sb.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"sb",
".",
"append",
"(",
"\"[EXTERNALNAME]\\n\"",
")",
";",
"sb",
".",
"append",
"(",
"\" .options = \"",
")",
".",
"append",
"(",
"field_1_option_flag",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"sb",
".",
"append",
"(",
"\" .ix = \"",
")",
".",
"append",
"(",
"field_2_ixals",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"sb",
".",
"append",
"(",
"\" .name = \"",
")",
".",
"append",
"(",
"field_4_name",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"if",
"(",
"field_5_name_definition",
"!=",
"null",
")",
"{",
"Ptg",
"[",
"]",
"ptgs",
"=",
"field_5_name_definition",
".",
"getTokens",
"(",
")",
";",
"for",
"(",
"Ptg",
"ptg",
":",
"ptgs",
")",
"{",
"sb",
".",
"append",
"(",
"\" .namedef = \"",
")",
".",
"append",
"(",
"ptg",
")",
".",
"append",
"(",
"ptg",
".",
"getRVAType",
"(",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"}",
"}",
"sb",
".",
"append",
"(",
"\"[/EXTERNALNAME]\\n\"",
")",
";",
"return",
"sb",
".",
"toString",
"(",
")",
";",
"}"
] |
public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append("[EXTERNALNAME]\n");sb.Append(" .options = ").Append(field_1_option_flag).Append("\n");sb.Append(" .ix = ").Append(field_2_ixals).Append("\n");sb.Append(" .name = ").Append(field_4_name).Append("\n");if (field_5_name_definition != null){Ptg[] ptgs = field_5_name_definition.Tokens;for (int i = 0; i < ptgs.Length; i++){Ptg ptg = ptgs[i];sb.Append(ptg.ToString()).Append(ptg.RVAType).Append("\n");}}sb.Append("[/EXTERNALNAME]\n");return sb.ToString();}
|
train
| false
|
4,247
|
public DescribeDBClusterParameterGroupsResult describeDBClusterParameterGroups(DescribeDBClusterParameterGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeDBClusterParameterGroups(request);}
|
[
"public",
"DescribeDBClusterParameterGroupsResult",
"describeDBClusterParameterGroups",
"(",
"DescribeDBClusterParameterGroupsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeDBClusterParameterGroups",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeDBClusterParameterGroupsResponse DescribeDBClusterParameterGroups(DescribeDBClusterParameterGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBClusterParameterGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBClusterParameterGroupsResponseUnmarshaller.Instance;return Invoke<DescribeDBClusterParameterGroupsResponse>(request, options);}
|
train
| true
|
4,248
|
public PropertyTable(HeaderBlock headerBlock){_header_block = headerBlock;_bigBigBlockSize = headerBlock.getBigBlockSize();addProperty(new RootProperty());}
|
[
"public",
"PropertyTable",
"(",
"HeaderBlock",
"headerBlock",
")",
"{",
"_header_block",
"=",
"headerBlock",
";",
"_bigBigBlockSize",
"=",
"headerBlock",
".",
"getBigBlockSize",
"(",
")",
";",
"addProperty",
"(",
"new",
"RootProperty",
"(",
")",
")",
";",
"}"
] |
public PropertyTable(HeaderBlock headerBlock) : base(headerBlock){_bigBigBlockSize = headerBlock.BigBlockSize;_blocks = null;}
|
train
| false
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.