id_within_dataset int64 0 10.3k | snippet stringlengths 29 1.4k | tokens listlengths 10 314 | cs stringlengths 28 1.38k | split_within_dataset stringclasses 1
value | is_duplicated bool 2
classes |
|---|---|---|---|---|---|
5,841 | public static boolean isGitRepository(File dir, FS fs) {return fs.resolve(dir, Constants.OBJECTS).exists()&& fs.resolve(dir, "refs").exists() && (fs.resolve(dir, Constants.REFTABLE).exists()|| isValidHead(new File(dir, Constants.HEAD)));}
| [
"public",
"static",
"boolean",
"isGitRepository",
"(",
"File",
"dir",
",",
"FS",
"fs",
")",
"{",
"return",
"fs",
".",
"resolve",
"(",
"dir",
",",
"Constants",
".",
"OBJECTS",
")",
".",
"exists",
"(",
")",
"&&",
"fs",
".",
"resolve",
"(",
"dir",
",",
... | public static bool IsGitRepository(FilePath dir, FS fs){return fs.Resolve(dir, "objects").Exists() && fs.Resolve(dir, "refs").Exists() &&IsValidHead(new FilePath(dir, Constants.HEAD));}
| train | false |
5,842 | public void setBackgroundImage(int pictureIndex){setPropertyValue(new EscherSimpleProperty( EscherPropertyTypes.FILL__PATTERNTEXTURE, false, true, pictureIndex));setPropertyValue(new EscherSimpleProperty( EscherPropertyTypes.FILL__FILLTYPE, false, false, FILL_TYPE_PICTURE));EscherBSERecord bse = getPatriarch().getSheet... | [
"public",
"void",
"setBackgroundImage",
"(",
"int",
"pictureIndex",
")",
"{",
"setPropertyValue",
"(",
"new",
"EscherSimpleProperty",
"(",
"EscherPropertyTypes",
".",
"FILL__PATTERNTEXTURE",
",",
"false",
",",
"true",
",",
"pictureIndex",
")",
")",
";",
"setProperty... | public void SetBackgroundImage(int pictureIndex){SetPropertyValue(new EscherSimpleProperty(EscherProperties.FILL__PATTERNTEXTURE, false, true, pictureIndex));SetPropertyValue(new EscherSimpleProperty(EscherProperties.FILL__FILLTYPE, false, false, FILL_TYPE_PICTURE));EscherBSERecord bse = ((HSSFWorkbook)((HSSFPatriarch)... | train | false |
5,843 | public DirectPostingsFormat(int minSkipCount, int lowFreqCutoff) {super("Direct");this.minSkipCount = minSkipCount;this.lowFreqCutoff = lowFreqCutoff;}
| [
"public",
"DirectPostingsFormat",
"(",
"int",
"minSkipCount",
",",
"int",
"lowFreqCutoff",
")",
"{",
"super",
"(",
"\"Direct\"",
")",
";",
"this",
".",
"minSkipCount",
"=",
"minSkipCount",
";",
"this",
".",
"lowFreqCutoff",
"=",
"lowFreqCutoff",
";",
"}"
] | public DirectPostingsFormat(int minSkipCount, int lowFreqCutoff): base(){_minSkipCount = minSkipCount;_lowFreqCutoff = lowFreqCutoff;}
| train | false |
5,844 | public RecyclingByteBlockAllocator(int blockSize, int maxBufferedBlocks,Counter bytesUsed) {super(blockSize);freeByteBlocks = new byte[maxBufferedBlocks][];this.maxBufferedBlocks = maxBufferedBlocks;this.bytesUsed = bytesUsed;}
| [
"public",
"RecyclingByteBlockAllocator",
"(",
"int",
"blockSize",
",",
"int",
"maxBufferedBlocks",
",",
"Counter",
"bytesUsed",
")",
"{",
"super",
"(",
"blockSize",
")",
";",
"freeByteBlocks",
"=",
"new",
"byte",
"[",
"maxBufferedBlocks",
"]",
"[",
"]",
";",
"... | public RecyclingByteBlockAllocator(int blockSize, int maxBufferedBlocks, Counter bytesUsed): base(blockSize){freeByteBlocks = new byte[maxBufferedBlocks][];this.maxBufferedBlocks = maxBufferedBlocks;this.bytesUsed = bytesUsed;}
| train | false |
5,845 | public int stemPrefix(char s[], int len) {for (int i = 0; i < prefixes.length; i++)if (startsWithCheckLength(s, len, prefixes[i]))return deleteN(s, 0, len, prefixes[i].length);return len;}
| [
"public",
"int",
"stemPrefix",
"(",
"char",
"s",
"[",
"]",
",",
"int",
"len",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"prefixes",
".",
"length",
";",
"i",
"++",
")",
"if",
"(",
"startsWithCheckLength",
"(",
"s",
",",
"len",
"... | public virtual int StemPrefix(char[] s, int len){for (int i = 0; i < prefixes.Length; i++){if (StartsWithCheckLength(s, len, prefixes[i])){return StemmerUtil.DeleteN(s, 0, len, prefixes[i].Length);}}return len;}
| train | false |
5,846 | public String toString() {final StringBuilder s = new StringBuilder();for (Entry q = head; q != null; q = q.next)describe(s, q.commit);return s.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"final",
"StringBuilder",
"s",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"for",
"(",
"Entry",
"q",
"=",
"head",
";",
"q",
"!=",
"null",
";",
"q",
"=",
"q",
".",
"next",
")",
"describe",
"(",
"s",
"... | public override string ToString(){StringBuilder s = new StringBuilder();for (DateRevQueue.Entry q = head; q != null; q = q.next){Describe(s, q.commit);}return s.ToString();}
| train | false |
5,847 | public CodingErrorAction malformedInputAction() {return malformedInputAction;}
| [
"public",
"CodingErrorAction",
"malformedInputAction",
"(",
")",
"{",
"return",
"malformedInputAction",
";",
"}"
] | public virtual java.nio.charset.CodingErrorAction malformedInputAction(){return _malformedInputAction;}
| train | false |
5,848 | public Result(IntsRef input, T output) {this.input = input;this.output = output;}
| [
"public",
"Result",
"(",
"IntsRef",
"input",
",",
"T",
"output",
")",
"{",
"this",
".",
"input",
"=",
"input",
";",
"this",
".",
"output",
"=",
"output",
";",
"}"
] | public Result(Int32sRef input, T output){this.Input = input;this.Output = output;}
| train | false |
5,849 | public String getInflectionForm(int wordId) {return null; }
| [
"public",
"String",
"getInflectionForm",
"(",
"int",
"wordId",
")",
"{",
"return",
"null",
";",
"}"
] | public string GetInflectionForm(int wordId){return null; }
| train | false |
5,850 | public void removeComments() {remove1stProperty(PropertyIDMap.PID_COMMENTS);}
| [
"public",
"void",
"removeComments",
"(",
")",
"{",
"remove1stProperty",
"(",
"PropertyIDMap",
".",
"PID_COMMENTS",
")",
";",
"}"
] | public void RemoveComments(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_COMMENTS);}
| train | false |
5,851 | public GetBlacklistReportsResult getBlacklistReports(GetBlacklistReportsRequest request) {request = beforeClientExecution(request);return executeGetBlacklistReports(request);}
| [
"public",
"GetBlacklistReportsResult",
"getBlacklistReports",
"(",
"GetBlacklistReportsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetBlacklistReports",
"(",
"request",
")",
";",
"}"
] | public virtual GetBlacklistReportsResponse GetBlacklistReports(GetBlacklistReportsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBlacklistReportsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBlacklistReportsResponseUnmarshaller.Instance;return Invoke<GetBlacklistReports... | train | true |
5,852 | public String getMessages() {return messageWriter != null ? messageWriter.toString() : ""; }
| [
"public",
"String",
"getMessages",
"(",
")",
"{",
"return",
"messageWriter",
"!=",
"null",
"?",
"messageWriter",
".",
"toString",
"(",
")",
":",
"\"\"",
";",
"}"
] | public virtual string GetMessages(){return messageWriter != null ? messageWriter.ToString() : string.Empty;}
| train | false |
5,853 | public boolean equals(Object object) {if (!(object instanceof StringCharacterIterator)) {return false;}StringCharacterIterator it = (StringCharacterIterator) object;return string.equals(it.string) && start == it.start && end == it.end&& offset == it.offset;}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"object",
")",
"{",
"if",
"(",
"!",
"(",
"object",
"instanceof",
"StringCharacterIterator",
")",
")",
"{",
"return",
"false",
";",
"}",
"StringCharacterIterator",
"it",
"=",
"(",
"StringCharacterIterator",
")",
"ob... | public override bool Equals(object @object){if (!(@object is java.text.StringCharacterIterator)){return false;}java.text.StringCharacterIterator it = (java.text.StringCharacterIterator)@object;return @string.Equals(it.@string) && start == it.start && end == it.end && offset== it.offset;}
| train | false |
5,854 | public AddFacetToObjectResult addFacetToObject(AddFacetToObjectRequest request) {request = beforeClientExecution(request);return executeAddFacetToObject(request);}
| [
"public",
"AddFacetToObjectResult",
"addFacetToObject",
"(",
"AddFacetToObjectRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAddFacetToObject",
"(",
"request",
")",
";",
"}"
] | public virtual AddFacetToObjectResponse AddFacetToObject(AddFacetToObjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddFacetToObjectRequestMarshaller.Instance;options.ResponseUnmarshaller = AddFacetToObjectResponseUnmarshaller.Instance;return Invoke<AddFacetToObjectResponse>(request,... | train | true |
5,856 | public final int correctOffset(int currentOff) {final int corrected = correct(currentOff);return (input instanceof CharFilter) ? ((CharFilter) input).correctOffset(corrected) : corrected;}
| [
"public",
"final",
"int",
"correctOffset",
"(",
"int",
"currentOff",
")",
"{",
"final",
"int",
"corrected",
"=",
"correct",
"(",
"currentOff",
")",
";",
"return",
"(",
"input",
"instanceof",
"CharFilter",
")",
"?",
"(",
"(",
"CharFilter",
")",
"input",
")"... | public int CorrectOffset(int currentOff){int corrected = Correct(currentOff);return (m_input is CharFilter) ? ((CharFilter)m_input).CorrectOffset(corrected) : corrected;}
| train | false |
5,857 | public static ContinuableRecordOutput createForCountingOnly() {return new ContinuableRecordOutput(NOPOutput, -777); }
| [
"public",
"static",
"ContinuableRecordOutput",
"createForCountingOnly",
"(",
")",
"{",
"return",
"new",
"ContinuableRecordOutput",
"(",
"NOPOutput",
",",
"-",
"777",
")",
";",
"}"
] | public static ContinuableRecordOutput CreateForCountingOnly(){return new ContinuableRecordOutput(NOPOutput, -777); }
| train | false |
5,858 | public DisassociateAddressRequest(String publicIp) {setPublicIp(publicIp);}
| [
"public",
"DisassociateAddressRequest",
"(",
"String",
"publicIp",
")",
"{",
"setPublicIp",
"(",
"publicIp",
")",
";",
"}"
] | public DisassociateAddressRequest(string publicIp){_publicIp = publicIp;}
| train | false |
5,859 | public DescribeVirtualGatewaysResult describeVirtualGateways(DescribeVirtualGatewaysRequest request) {request = beforeClientExecution(request);return executeDescribeVirtualGateways(request);}
| [
"public",
"DescribeVirtualGatewaysResult",
"describeVirtualGateways",
"(",
"DescribeVirtualGatewaysRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeVirtualGateways",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeVirtualGatewaysResponse DescribeVirtualGateways(DescribeVirtualGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVirtualGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVirtualGatewaysResponseUnmarshaller.Instance;return Invoke... | train | true |
5,860 | public void setSheetHidden(int sheetnum, boolean hidden) {setSheetHidden(sheetnum, hidden ? SheetVisibility.HIDDEN : SheetVisibility.VISIBLE);}
| [
"public",
"void",
"setSheetHidden",
"(",
"int",
"sheetnum",
",",
"boolean",
"hidden",
")",
"{",
"setSheetHidden",
"(",
"sheetnum",
",",
"hidden",
"?",
"SheetVisibility",
".",
"HIDDEN",
":",
"SheetVisibility",
".",
"VISIBLE",
")",
";",
"}"
] | public void SetSheetHidden(int sheetnum, bool hidden){BoundSheetRecord bsr = boundsheets[sheetnum];bsr.IsHidden=hidden;}
| train | false |
5,862 | public CreateCacheParameterGroupRequest(String cacheParameterGroupName, String cacheParameterGroupFamily, String description) {setCacheParameterGroupName(cacheParameterGroupName);setCacheParameterGroupFamily(cacheParameterGroupFamily);setDescription(description);}
| [
"public",
"CreateCacheParameterGroupRequest",
"(",
"String",
"cacheParameterGroupName",
",",
"String",
"cacheParameterGroupFamily",
",",
"String",
"description",
")",
"{",
"setCacheParameterGroupName",
"(",
"cacheParameterGroupName",
")",
";",
"setCacheParameterGroupFamily",
"(... | public CreateCacheParameterGroupRequest(string cacheParameterGroupName, string cacheParameterGroupFamily, string description){_cacheParameterGroupName = cacheParameterGroupName;_cacheParameterGroupFamily = cacheParameterGroupFamily;_description = description;}
| train | false |
5,863 | public DirCacheEntry(byte[] path, int stage) {checkPath(path);if (stage < 0 || 3 < stage)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().invalidStageForPath,stage, toString(path)));info = new byte[INFO_LEN];infoOffset = 0;this.path = path;int flags = ((stage & 0x3) << 12);if (path.length < NAME_M... | [
"public",
"DirCacheEntry",
"(",
"byte",
"[",
"]",
"path",
",",
"int",
"stage",
")",
"{",
"checkPath",
"(",
"path",
")",
";",
"if",
"(",
"stage",
"<",
"0",
"||",
"3",
"<",
"stage",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"MessageFormat",
"... | public DirCacheEntry(byte[] newPath, int stage){if (!IsValidPath(newPath)){throw new InvalidPathException(ToString(newPath));}if (stage < 0 || 3 < stage){throw new ArgumentException(MessageFormat.Format(JGitText.Get().invalidStageForPath, stage, ToString(newPath)));}info = new byte[INFO_LEN];infoOffset = 0;path = newPa... | train | false |
5,864 | public FileOutputStream(String path, boolean append) throws FileNotFoundException {this(new File(path), append);}
| [
"public",
"FileOutputStream",
"(",
"String",
"path",
",",
"boolean",
"append",
")",
"throws",
"FileNotFoundException",
"{",
"this",
"(",
"new",
"File",
"(",
"path",
")",
",",
"append",
")",
";",
"}"
] | public FileOutputStream(string path, bool append) : this(new java.io.File(path),append){throw new System.NotImplementedException();}
| train | false |
5,865 | public DescribeVolumesResult describeVolumes() {return describeVolumes(new DescribeVolumesRequest());}
| [
"public",
"DescribeVolumesResult",
"describeVolumes",
"(",
")",
"{",
"return",
"describeVolumes",
"(",
"new",
"DescribeVolumesRequest",
"(",
")",
")",
";",
"}"
] | public virtual DescribeVolumesResponse DescribeVolumes(){return DescribeVolumes(new DescribeVolumesRequest());}
| train | false |
5,866 | public String toString() {return String.valueOf(label);}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"String",
".",
"valueOf",
"(",
"label",
")",
";",
"}"
] | public override string ToString(){return token.ToString();}
| train | false |
5,867 | public MutableValue duplicate() {MutableValueDouble v = new MutableValueDouble();v.value = this.value;v.exists = this.exists;return v;}
| [
"public",
"MutableValue",
"duplicate",
"(",
")",
"{",
"MutableValueDouble",
"v",
"=",
"new",
"MutableValueDouble",
"(",
")",
";",
"v",
".",
"value",
"=",
"this",
".",
"value",
";",
"v",
".",
"exists",
"=",
"this",
".",
"exists",
";",
"return",
"v",
";"... | public override MutableValue Duplicate(){MutableValueDouble v = new MutableValueDouble();v.Value = this.Value;v.Exists = this.Exists;return v;}
| train | false |
5,868 | public boolean shouldBeRecursive() {for (byte b : pathRaw)if (b == '/')return true;return false;}
| [
"public",
"boolean",
"shouldBeRecursive",
"(",
")",
"{",
"for",
"(",
"byte",
"b",
":",
"pathRaw",
")",
"if",
"(",
"b",
"==",
"'/'",
")",
"return",
"true",
";",
"return",
"false",
";",
"}"
] | public override bool ShouldBeRecursive(){foreach (byte b in pathRaw){if (b == '/'){return true;}}return false;}
| train | false |
5,869 | public boolean equals( Object o ) {return o instanceof BasqueStemmer;}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"o",
")",
"{",
"return",
"o",
"instanceof",
"BasqueStemmer",
";",
"}"
] | public override bool Equals(object o){return o is BasqueStemmer;}
| train | false |
5,870 | public SheetBuilder setSheetName(String sheetName) {this.sheetName = sheetName;return this;}
| [
"public",
"SheetBuilder",
"setSheetName",
"(",
"String",
"sheetName",
")",
"{",
"this",
".",
"sheetName",
"=",
"sheetName",
";",
"return",
"this",
";",
"}"
] | public SheetBuilder SetSheetName(String sheetName){this.sheetName = sheetName;return this;}
| train | false |
5,871 | public ListTimeLinesRequest() {super("CloudPhoto", "2017-07-11", "ListTimeLines", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"ListTimeLinesRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"ListTimeLines\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public ListTimeLinesRequest(): base("CloudPhoto", "2017-07-11", "ListTimeLines", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
5,872 | public DescribeStackResourcesResult describeStackResources(DescribeStackResourcesRequest request) {request = beforeClientExecution(request);return executeDescribeStackResources(request);}
| [
"public",
"DescribeStackResourcesResult",
"describeStackResources",
"(",
"DescribeStackResourcesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeStackResources",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeStackResourcesResponse DescribeStackResources(DescribeStackResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStackResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStackResourcesResponseUnmarshaller.Instance;return Invoke<Desc... | train | true |
5,873 | public UpdateBotResult updateBot(UpdateBotRequest request) {request = beforeClientExecution(request);return executeUpdateBot(request);}
| [
"public",
"UpdateBotResult",
"updateBot",
"(",
"UpdateBotRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateBot",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateBotResponse UpdateBot(UpdateBotRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBotRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBotResponseUnmarshaller.Instance;return Invoke<UpdateBotResponse>(request, options);}
| train | false |
5,874 | public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol) {return symbol >= minVocabSymbol&& symbol <= maxVocabSymbol&& !super.matches(symbol, minVocabSymbol, maxVocabSymbol);}
| [
"public",
"boolean",
"matches",
"(",
"int",
"symbol",
",",
"int",
"minVocabSymbol",
",",
"int",
"maxVocabSymbol",
")",
"{",
"return",
"symbol",
">=",
"minVocabSymbol",
"&&",
"symbol",
"<=",
"maxVocabSymbol",
"&&",
"!",
"super",
".",
"matches",
"(",
"symbol",
... | public override bool Matches(int symbol, int minVocabSymbol, int maxVocabSymbol){return symbol >= minVocabSymbol && symbol <= maxVocabSymbol && !base.Matches(symbol, minVocabSymbol, maxVocabSymbol);}
| train | false |
5,877 | public ExportSnapshotResult exportSnapshot(ExportSnapshotRequest request) {request = beforeClientExecution(request);return executeExportSnapshot(request);}
| [
"public",
"ExportSnapshotResult",
"exportSnapshot",
"(",
"ExportSnapshotRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeExportSnapshot",
"(",
"request",
")",
";",
"}"
] | public virtual ExportSnapshotResponse ExportSnapshot(ExportSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExportSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = ExportSnapshotResponseUnmarshaller.Instance;return Invoke<ExportSnapshotResponse>(request, options);}
| train | true |
5,878 | public boolean hasChildOfType(short recordId) {return _childRecords.stream().anyMatch(r -> r.getRecordId() == recordId);}
| [
"public",
"boolean",
"hasChildOfType",
"(",
"short",
"recordId",
")",
"{",
"return",
"_childRecords",
".",
"stream",
"(",
")",
".",
"anyMatch",
"(",
"r",
"->",
"r",
".",
"getRecordId",
"(",
")",
"==",
"recordId",
")",
";",
"}"
] | public bool HasChildOfType(short recordId){for (IEnumerator iterator = ChildRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord r = (EscherRecord)iterator.Current;if (r.RecordId == recordId){return true;}}return false;}
| train | false |
5,879 | public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {int bytesRemaining = readHeader( data, offset );thedata = IOUtils.safelyAllocate(bytesRemaining, MAX_RECORD_LENGTH);System.arraycopy( data, offset + 8, thedata, 0, bytesRemaining );return bytesRemaining + 8;}
| [
"public",
"int",
"fillFields",
"(",
"byte",
"[",
"]",
"data",
",",
"int",
"offset",
",",
"EscherRecordFactory",
"recordFactory",
")",
"{",
"int",
"bytesRemaining",
"=",
"readHeader",
"(",
"data",
",",
"offset",
")",
";",
"thedata",
"=",
"IOUtils",
".",
"sa... | public override int FillFields(byte[] data, int offset, IEscherRecordFactory recordFactory){int bytesRemaining = ReadHeader(data, offset);_thedata = new byte[bytesRemaining];Array.Copy(data, offset + 8, _thedata, 0, bytesRemaining);return bytesRemaining + 8;}
| train | false |
5,880 | public RmCommand addFilepattern(String filepattern) {checkCallable();filepatterns.add(filepattern);return this;}
| [
"public",
"RmCommand",
"addFilepattern",
"(",
"String",
"filepattern",
")",
"{",
"checkCallable",
"(",
")",
";",
"filepatterns",
".",
"add",
"(",
"filepattern",
")",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Api.RmCommand AddFilepattern(string filepattern){CheckCallable();filepatterns.AddItem(filepattern);return this;}
| train | false |
5,881 | public GetEmailIdentityResult getEmailIdentity(GetEmailIdentityRequest request) {request = beforeClientExecution(request);return executeGetEmailIdentity(request);}
| [
"public",
"GetEmailIdentityResult",
"getEmailIdentity",
"(",
"GetEmailIdentityRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetEmailIdentity",
"(",
"request",
")",
";",
"}"
] | public virtual GetEmailIdentityResponse GetEmailIdentity(GetEmailIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEmailIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEmailIdentityResponseUnmarshaller.Instance;return Invoke<GetEmailIdentityResponse>(request,... | train | true |
5,882 | public E remove(int location) {try {ListIterator<E> it = listIterator(location);E result = it.next();it.remove();return result;} catch (NoSuchElementException e) {throw new IndexOutOfBoundsException();}}
| [
"public",
"E",
"remove",
"(",
"int",
"location",
")",
"{",
"try",
"{",
"ListIterator",
"<",
"E",
">",
"it",
"=",
"listIterator",
"(",
"location",
")",
";",
"E",
"result",
"=",
"it",
".",
"next",
"(",
")",
";",
"it",
".",
"remove",
"(",
")",
";",
... | public override E remove(int location){try{java.util.ListIterator<E> it = listIterator(location);E result = it.next();it.remove();return result;}catch (java.util.NoSuchElementException){throw new System.IndexOutOfRangeException();}}
| train | false |
5,883 | public CanonicalTreeParser next() {CanonicalTreeParser p = this;for (;;) {if (p.nextPtr == p.raw.length) {if (p.parent == null) {p.currPtr = p.nextPtr;return p;}p = (CanonicalTreeParser) p.parent;continue;}p.prevPtr = p.currPtr;p.currPtr = p.nextPtr;p.parseEntry();return p;}}
| [
"public",
"CanonicalTreeParser",
"next",
"(",
")",
"{",
"CanonicalTreeParser",
"p",
"=",
"this",
";",
"for",
"(",
";",
";",
")",
"{",
"if",
"(",
"p",
".",
"nextPtr",
"==",
"p",
".",
"raw",
".",
"length",
")",
"{",
"if",
"(",
"p",
".",
"parent",
"... | public virtual NGit.Treewalk.CanonicalTreeParser Next(){NGit.Treewalk.CanonicalTreeParser p = this;for (; ; ){if (p.nextPtr == p.raw.Length){if (p.parent == null){p.currPtr = p.nextPtr;return p;}p = (NGit.Treewalk.CanonicalTreeParser)p.parent;continue;}p.prevPtr = p.currPtr;p.currPtr = p.nextPtr;p.ParseEntry();return p... | train | false |
5,884 | public UpdateClusterConfigResult updateClusterConfig(UpdateClusterConfigRequest request) {request = beforeClientExecution(request);return executeUpdateClusterConfig(request);}
| [
"public",
"UpdateClusterConfigResult",
"updateClusterConfig",
"(",
"UpdateClusterConfigRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateClusterConfig",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateClusterConfigResponse UpdateClusterConfig(UpdateClusterConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateClusterConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateClusterConfigResponseUnmarshaller.Instance;return Invoke<UpdateClusterConfig... | train | true |
5,885 | public Point(int x, int y) {this.x = x;this.y = y;}
| [
"public",
"Point",
"(",
"int",
"x",
",",
"int",
"y",
")",
"{",
"this",
".",
"x",
"=",
"x",
";",
"this",
".",
"y",
"=",
"y",
";",
"}"
] | public Point(int x, int y){this.x = x;this.y = y;}
| train | false |
5,886 | public void cloneStyleFrom(ExtendedFormatRecord source) {field_1_font_index = source.field_1_font_index;field_2_format_index = source.field_2_format_index;field_3_cell_options = source.field_3_cell_options;field_4_alignment_options = source.field_4_alignment_options;field_5_indention_option... | [
"public",
"void",
"cloneStyleFrom",
"(",
"ExtendedFormatRecord",
"source",
")",
"{",
"field_1_font_index",
"=",
"source",
".",
"field_1_font_index",
";",
"field_2_format_index",
"=",
"source",
".",
"field_2_format_index",
";",
"field_3_cell_options",
"=",
"source",
".",... | public void CloneStyleFrom(ExtendedFormatRecord source){field_1_font_index = source.field_1_font_index;field_2_format_index = source.field_2_format_index;field_3_cell_options = source.field_3_cell_options;field_4_alignment_options = source.field_4_alignment_options;field_5_indention_options = source.field_5_indention_o... | train | false |
5,887 | public GetInvitationConfigurationResult getInvitationConfiguration(GetInvitationConfigurationRequest request) {request = beforeClientExecution(request);return executeGetInvitationConfiguration(request);}
| [
"public",
"GetInvitationConfigurationResult",
"getInvitationConfiguration",
"(",
"GetInvitationConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetInvitationConfiguration",
"(",
"request",
")",
";... | public virtual GetInvitationConfigurationResponse GetInvitationConfiguration(GetInvitationConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInvitationConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInvitationConfigurationResponseUnmarshaller.Instanc... | train | true |
5,888 | public RevTag parseTag(AnyObjectId id) throws MissingObjectException,IncorrectObjectTypeException, IOException {RevObject c = parseAny(id);if (!(c instanceof RevTag))throw new IncorrectObjectTypeException(id.toObjectId(),Constants.TYPE_TAG);return (RevTag) c;}
| [
"public",
"RevTag",
"parseTag",
"(",
"AnyObjectId",
"id",
")",
"throws",
"MissingObjectException",
",",
"IncorrectObjectTypeException",
",",
"IOException",
"{",
"RevObject",
"c",
"=",
"parseAny",
"(",
"id",
")",
";",
"if",
"(",
"!",
"(",
"c",
"instanceof",
"Re... | public virtual RevTag ParseTag(AnyObjectId id){RevObject c = ParseAny(id);if (!(c is RevTag)){throw new IncorrectObjectTypeException(id.ToObjectId(), Constants.TYPE_TAG);}return (RevTag)c;}
| train | false |
5,889 | public List<String> matchAlmost(String key) {return matchAlmost(key, defaultNumReturnValues);}
| [
"public",
"List",
"<",
"String",
">",
"matchAlmost",
"(",
"String",
"key",
")",
"{",
"return",
"matchAlmost",
"(",
"key",
",",
"defaultNumReturnValues",
")",
";",
"}"
] | public virtual IList<string> MatchAlmost(string key){return MatchAlmost(key, defaultNumReturnValues);}
| train | false |
5,890 | public boolean remove(Object o) {synchronized (Hashtable.this) {int oldSize = size;Hashtable.this.remove(o);return size != oldSize;}}
| [
"public",
"boolean",
"remove",
"(",
"Object",
"o",
")",
"{",
"synchronized",
"(",
"Hashtable",
".",
"this",
")",
"{",
"int",
"oldSize",
"=",
"size",
";",
"Hashtable",
".",
"this",
".",
"remove",
"(",
"o",
")",
";",
"return",
"size",
"!=",
"oldSize",
... | public override bool remove(object o){lock (this._enclosing){int oldSize = this._enclosing._size;this._enclosing.remove(o);return this._enclosing._size != oldSize;}}
| train | false |
5,891 | public StringEval(String value) {if (value == null) {throw new IllegalArgumentException("value must not be null");}_value = value;}
| [
"public",
"StringEval",
"(",
"String",
"value",
")",
"{",
"if",
"(",
"value",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"value must not be null\"",
")",
";",
"}",
"_value",
"=",
"value",
";",
"}"
] | public StringEval(String value){if (value == null){throw new ArgumentException("value must not be null");}this.value = value;}
| train | false |
5,892 | public BatchGetOnPremisesInstancesResult batchGetOnPremisesInstances(BatchGetOnPremisesInstancesRequest request) {request = beforeClientExecution(request);return executeBatchGetOnPremisesInstances(request);}
| [
"public",
"BatchGetOnPremisesInstancesResult",
"batchGetOnPremisesInstances",
"(",
"BatchGetOnPremisesInstancesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeBatchGetOnPremisesInstances",
"(",
"request",
")",
... | public virtual BatchGetOnPremisesInstancesResponse BatchGetOnPremisesInstances(BatchGetOnPremisesInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetOnPremisesInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetOnPremisesInstancesResponseUnmarshaller.In... | train | true |
5,893 | public void update(Config rc) {final List<String> vlst = new ArrayList<>();vlst.clear();for (URIish u : getURIs())vlst.add(u.toPrivateString());rc.setStringList(SECTION, getName(), KEY_URL, vlst);vlst.clear();for (URIish u : getPushURIs())vlst.add(u.toPrivateString());rc.setStringList(SECTION, getName(), KEY_PUSHURL, v... | [
"public",
"void",
"update",
"(",
"Config",
"rc",
")",
"{",
"final",
"List",
"<",
"String",
">",
"vlst",
"=",
"new",
"ArrayList",
"<",
">",
"(",
")",
";",
"vlst",
".",
"clear",
"(",
")",
";",
"for",
"(",
"URIish",
"u",
":",
"getURIs",
"(",
")",
... | public virtual void Update(Config rc){IList<string> vlst = new AList<string>();vlst.Clear();foreach (URIish u in URIs){vlst.AddItem(u.ToPrivateString());}rc.SetStringList(SECTION, Name, KEY_URL, vlst);vlst.Clear();foreach (URIish u_1 in PushURIs){vlst.AddItem(u_1.ToPrivateString());}rc.SetStringList(SECTION, Name, KEY_... | train | false |
5,894 | public String toString() {StringBuilder sb = new StringBuilder();sb.append("[OBJ]\n");for (final SubRecord record : subrecords) {sb.append("SUBRECORD: ").append(record);}sb.append("[/OBJ]\n");return sb.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"sb",
".",
"append",
"(",
"\"[OBJ]\\n\"",
")",
";",
"for",
"(",
"final",
"SubRecord",
"record",
":",
"subrecords",
")",
"{",
"sb",
".",
"a... | public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append("[OBJ]\n");for (int i = 0; i < subrecords.Count; i++){SubRecord record = subrecords[i];sb.Append("SUBRECORD: ").Append(record.ToString());}sb.Append("[/OBJ]\n");return sb.ToString();}
| train | false |
5,895 | public StashCreateCommand setPerson(PersonIdent person) {this.person = person;return this;}
| [
"public",
"StashCreateCommand",
"setPerson",
"(",
"PersonIdent",
"person",
")",
"{",
"this",
".",
"person",
"=",
"person",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Api.StashCreateCommand SetPerson(PersonIdent person){this.person = person;return this;}
| train | false |
5,896 | public GetDefaultCreditSpecificationResult getDefaultCreditSpecification(GetDefaultCreditSpecificationRequest request) {request = beforeClientExecution(request);return executeGetDefaultCreditSpecification(request);}
| [
"public",
"GetDefaultCreditSpecificationResult",
"getDefaultCreditSpecification",
"(",
"GetDefaultCreditSpecificationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDefaultCreditSpecification",
"(",
"request",... | public virtual GetDefaultCreditSpecificationResponse GetDefaultCreditSpecification(GetDefaultCreditSpecificationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDefaultCreditSpecificationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDefaultCreditSpecificationResponseUnmar... | train | false |
5,898 | public static int idealFloatArraySize(int need) {return idealByteArraySize(need * 4) / 4;}
| [
"public",
"static",
"int",
"idealFloatArraySize",
"(",
"int",
"need",
")",
"{",
"return",
"idealByteArraySize",
"(",
"need",
"*",
"4",
")",
"/",
"4",
";",
"}"
] | public static int idealFloatArraySize(int need){return idealByteArraySize(need * 4) / 4;}
| train | false |
5,899 | public GetJobManifestResult getJobManifest(GetJobManifestRequest request) {request = beforeClientExecution(request);return executeGetJobManifest(request);}
| [
"public",
"GetJobManifestResult",
"getJobManifest",
"(",
"GetJobManifestRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetJobManifest",
"(",
"request",
")",
";",
"}"
] | public virtual GetJobManifestResponse GetJobManifest(GetJobManifestRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetJobManifestRequestMarshaller.Instance;options.ResponseUnmarshaller = GetJobManifestResponseUnmarshaller.Instance;return Invoke<GetJobManifestResponse>(request, options);}
| train | true |
5,900 | public ListGroupMembersResult listGroupMembers(ListGroupMembersRequest request) {request = beforeClientExecution(request);return executeListGroupMembers(request);}
| [
"public",
"ListGroupMembersResult",
"listGroupMembers",
"(",
"ListGroupMembersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListGroupMembers",
"(",
"request",
")",
";",
"}"
] | public virtual ListGroupMembersResponse ListGroupMembers(ListGroupMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGroupMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGroupMembersResponseUnmarshaller.Instance;return Invoke<ListGroupMembersResponse>(request,... | train | true |
5,901 | public CreateMatchmakingConfigurationResult createMatchmakingConfiguration(CreateMatchmakingConfigurationRequest request) {request = beforeClientExecution(request);return executeCreateMatchmakingConfiguration(request);}
| [
"public",
"CreateMatchmakingConfigurationResult",
"createMatchmakingConfiguration",
"(",
"CreateMatchmakingConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateMatchmakingConfiguration",
"(",
"reque... | public virtual CreateMatchmakingConfigurationResponse CreateMatchmakingConfiguration(CreateMatchmakingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateMatchmakingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateMatchmakingConfigurationResponse... | train | true |
5,902 | public GetQueryResultsResult getQueryResults(GetQueryResultsRequest request) {request = beforeClientExecution(request);return executeGetQueryResults(request);}
| [
"public",
"GetQueryResultsResult",
"getQueryResults",
"(",
"GetQueryResultsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetQueryResults",
"(",
"request",
")",
";",
"}"
] | public virtual GetQueryResultsResponse GetQueryResults(GetQueryResultsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetQueryResultsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetQueryResultsResponseUnmarshaller.Instance;return Invoke<GetQueryResultsResponse>(request, optio... | train | true |
5,903 | public int[] lookupSegmentation(int phraseID) {return segmentations[phraseID];}
| [
"public",
"int",
"[",
"]",
"lookupSegmentation",
"(",
"int",
"phraseID",
")",
"{",
"return",
"segmentations",
"[",
"phraseID",
"]",
";",
"}"
] | public int[] LookupSegmentation(int phraseID){return segmentations[phraseID];}
| train | false |
5,904 | public StartTextTranslationJobResult startTextTranslationJob(StartTextTranslationJobRequest request) {request = beforeClientExecution(request);return executeStartTextTranslationJob(request);}
| [
"public",
"StartTextTranslationJobResult",
"startTextTranslationJob",
"(",
"StartTextTranslationJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStartTextTranslationJob",
"(",
"request",
")",
";",
"}"
] | public virtual StartTextTranslationJobResponse StartTextTranslationJob(StartTextTranslationJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartTextTranslationJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StartTextTranslationJobResponseUnmarshaller.Instance;return Invoke... | train | false |
5,905 | public final ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {double val;try {ValueEval ve = OperandResolver.getSingleValue(arg0, srcRowIndex, srcColumnIndex);val = OperandResolver.coerceValueToDouble(ve);} catch (EvaluationException e) {return e.getErrorEval();}if (val < 0) {return ErrorEval.NU... | [
"public",
"final",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"arg0",
")",
"{",
"double",
"val",
";",
"try",
"{",
"ValueEval",
"ve",
"=",
"OperandResolver",
".",
"getSingleValue",
"(",
"arg0",
",",
"sr... | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){double val;try{ValueEval ve = OperandResolver.GetSingleValue(arg0, srcRowIndex, srcColumnIndex);val = OperandResolver.CoerceValueToDouble(ve);}catch (EvaluationException e){return e.GetErrorEval();}if (val < 0){return ErrorEval.NUM_... | train | false |
5,906 | public GetAutoSnapshotsResult getAutoSnapshots(GetAutoSnapshotsRequest request) {request = beforeClientExecution(request);return executeGetAutoSnapshots(request);}
| [
"public",
"GetAutoSnapshotsResult",
"getAutoSnapshots",
"(",
"GetAutoSnapshotsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetAutoSnapshots",
"(",
"request",
")",
";",
"}"
] | public virtual GetAutoSnapshotsResponse GetAutoSnapshots(GetAutoSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAutoSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAutoSnapshotsResponseUnmarshaller.Instance;return Invoke<GetAutoSnapshotsResponse>(request,... | train | false |
5,907 | public RestoreDBInstanceToPointInTimeRequest(String sourceDBInstanceIdentifier, String targetDBInstanceIdentifier) {setSourceDBInstanceIdentifier(sourceDBInstanceIdentifier);setTargetDBInstanceIdentifier(targetDBInstanceIdentifier);}
| [
"public",
"RestoreDBInstanceToPointInTimeRequest",
"(",
"String",
"sourceDBInstanceIdentifier",
",",
"String",
"targetDBInstanceIdentifier",
")",
"{",
"setSourceDBInstanceIdentifier",
"(",
"sourceDBInstanceIdentifier",
")",
";",
"setTargetDBInstanceIdentifier",
"(",
"targetDBInstan... | public RestoreDBInstanceToPointInTimeRequest(string sourceDBInstanceIdentifier, string targetDBInstanceIdentifier){_sourceDBInstanceIdentifier = sourceDBInstanceIdentifier;_targetDBInstanceIdentifier = targetDBInstanceIdentifier;}
| train | false |
5,908 | public boolean isDryRun() {return dryRun;}
| [
"public",
"boolean",
"isDryRun",
"(",
")",
"{",
"return",
"dryRun",
";",
"}"
] | public virtual bool IsDryRun(){return dryRun;}
| train | false |
5,909 | public static boolean equals(Object[] array1, Object[] array2) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length != array2.length) {return false;}for (int i = 0; i < array1.length; i++) {Object e1 = array1[i], e2 = array2[i];if (!(e1 == null ? e2 == null : e1.equals(e2))) {retur... | [
"public",
"static",
"boolean",
"equals",
"(",
"Object",
"[",
"]",
"array1",
",",
"Object",
"[",
"]",
"array2",
")",
"{",
"if",
"(",
"array1",
"==",
"array2",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"array1",
"==",
"null",
"||",
"array2",
"... | public static bool equals(object[] array1, object[] array2){if (array1 == array2){return true;}if (array1 == null || array2 == null || array1.Length != array2.Length){return false;}{for (int i = 0; i < array1.Length; i++){object e1 = array1[i];object e2 = array2[i];if (!(e1 == null ? e2 == null : e1.Equals(e2))){return... | train | false |
5,910 | public boolean isSame(Formula other) {return Arrays.equals(_byteEncoding, other._byteEncoding);}
| [
"public",
"boolean",
"isSame",
"(",
"Formula",
"other",
")",
"{",
"return",
"Arrays",
".",
"equals",
"(",
"_byteEncoding",
",",
"other",
".",
"_byteEncoding",
")",
";",
"}"
] | public bool IsSame(Formula other){return Arrays.Equals(_byteEncoding, other._byteEncoding);}
| train | false |
5,913 | public DescribeReservedDBInstancesResult describeReservedDBInstances(DescribeReservedDBInstancesRequest request) {request = beforeClientExecution(request);return executeDescribeReservedDBInstances(request);}
| [
"public",
"DescribeReservedDBInstancesResult",
"describeReservedDBInstances",
"(",
"DescribeReservedDBInstancesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeReservedDBInstances",
"(",
"request",
")",
... | public virtual DescribeReservedDBInstancesResponse DescribeReservedDBInstances(DescribeReservedDBInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedDBInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedDBInstancesResponseUnmarshaller.In... | train | true |
5,914 | public String toString() {StringBuilder b = new StringBuilder();b.append(subs.length).append(" subs: ");for(int i=0;i<subs.length;i++) {if (i != 0) {b.append("; ");}if (subs[i] == null) {b.append("s=").append(starts[i]).append(" l=null");} else {b.append("s=").append(starts[i]).append(" l=").append(subs[i].length()).ap... | [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"b",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"b",
".",
"append",
"(",
"subs",
".",
"length",
")",
".",
"append",
"(",
"\" subs: \"",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";"... | public override string ToString(){StringBuilder b = new StringBuilder();b.Append(subs.Length + " subs: ");for (int i = 0; i < subs.Length; i++){if (i != 0){b.Append("; ");}if (subs[i] == null){b.Append("s=" + starts[i] + " l=null");}else{b.Append("s=" + starts[i] + " l=" + subs[i].Length + " b=" + subs[i]);}}b.Append("... | train | false |
5,915 | public DescribeLogStreamsRequest(String logGroupName) {setLogGroupName(logGroupName);}
| [
"public",
"DescribeLogStreamsRequest",
"(",
"String",
"logGroupName",
")",
"{",
"setLogGroupName",
"(",
"logGroupName",
")",
";",
"}"
] | public DescribeLogStreamsRequest(string logGroupName){_logGroupName = logGroupName;}
| train | false |
5,916 | public static String[] getAll() {return _formats.clone();}
| [
"public",
"static",
"String",
"[",
"]",
"getAll",
"(",
")",
"{",
"return",
"_formats",
".",
"clone",
"(",
")",
";",
"}"
] | public static String[] GetAll(){return (String[])_formats.Clone();}
| train | false |
5,917 | public CreateVoiceTemplateResult createVoiceTemplate(CreateVoiceTemplateRequest request) {request = beforeClientExecution(request);return executeCreateVoiceTemplate(request);}
| [
"public",
"CreateVoiceTemplateResult",
"createVoiceTemplate",
"(",
"CreateVoiceTemplateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateVoiceTemplate",
"(",
"request",
")",
";",
"}"
] | public virtual CreateVoiceTemplateResponse CreateVoiceTemplate(CreateVoiceTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVoiceTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVoiceTemplateResponseUnmarshaller.Instance;return Invoke<CreateVoiceTemplate... | train | false |
5,918 | public static long getLastCommitGeneration(Directory directory) throws IOException {return getLastCommitGeneration(directory.listAll());}
| [
"public",
"static",
"long",
"getLastCommitGeneration",
"(",
"Directory",
"directory",
")",
"throws",
"IOException",
"{",
"return",
"getLastCommitGeneration",
"(",
"directory",
".",
"listAll",
"(",
")",
")",
";",
"}"
] | public static long GetLastCommitGeneration(Directory directory){try{return GetLastCommitGeneration(directory.ListAll());}catch (DirectoryNotFoundException){return -1;}}
| train | false |
5,919 | public SearchTransitGatewayRoutesResult searchTransitGatewayRoutes(SearchTransitGatewayRoutesRequest request) {request = beforeClientExecution(request);return executeSearchTransitGatewayRoutes(request);}
| [
"public",
"SearchTransitGatewayRoutesResult",
"searchTransitGatewayRoutes",
"(",
"SearchTransitGatewayRoutesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSearchTransitGatewayRoutes",
"(",
"request",
")",
";... | public virtual SearchTransitGatewayRoutesResponse SearchTransitGatewayRoutes(SearchTransitGatewayRoutesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchTransitGatewayRoutesRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchTransitGatewayRoutesResponseUnmarshaller.Instanc... | train | true |
5,920 | public ListCompilationJobsResult listCompilationJobs(ListCompilationJobsRequest request) {request = beforeClientExecution(request);return executeListCompilationJobs(request);}
| [
"public",
"ListCompilationJobsResult",
"listCompilationJobs",
"(",
"ListCompilationJobsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListCompilationJobs",
"(",
"request",
")",
";",
"}"
] | public virtual ListCompilationJobsResponse ListCompilationJobs(ListCompilationJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListCompilationJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListCompilationJobsResponseUnmarshaller.Instance;return Invoke<ListCompilationJobs... | train | true |
5,921 | public static Query createJoinQuery(String fromField,boolean multipleValuesPerDocument,String toField,Query fromQuery,IndexSearcher fromSearcher,ScoreMode scoreMode) throws IOException {final GenericTermsCollector termsWithScoreCollector;if (multipleValuesPerDocument) {Function<SortedSetDocValues> mvFunction = DocValue... | [
"public",
"static",
"Query",
"createJoinQuery",
"(",
"String",
"fromField",
",",
"boolean",
"multipleValuesPerDocument",
",",
"String",
"toField",
",",
"Query",
"fromQuery",
",",
"IndexSearcher",
"fromSearcher",
",",
"ScoreMode",
"scoreMode",
")",
"throws",
"IOExcepti... | public static Query CreateJoinQuery(string fromField, bool multipleValuesPerDocument, string toField, Query fromQuery, IndexSearcher fromSearcher, ScoreMode scoreMode){switch (scoreMode){case ScoreMode.None:TermsCollector termsCollector = TermsCollector.Create(fromField, multipleValuesPerDocument);fromSearcher.Search(f... | train | false |
5,922 | public int serialize(int offset, byte[] data, EscherSerializationListener listener) {listener.beforeRecordSerialize(offset, getRecordId(), this);LittleEndian.putShort( data, offset, getOptions() );LittleEndian.putShort( data, offset + 2, getRecordId() );System.arraycopy( field_pictureData, 0, data, offset + 4, field_pi... | [
"public",
"int",
"serialize",
"(",
"int",
"offset",
",",
"byte",
"[",
"]",
"data",
",",
"EscherSerializationListener",
"listener",
")",
"{",
"listener",
".",
"beforeRecordSerialize",
"(",
"offset",
",",
"getRecordId",
"(",
")",
",",
"this",
")",
";",
"Little... | public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);LittleEndian.PutShort(data, offset, Options);LittleEndian.PutShort(data, offset + 2, RecordId);Array.Copy(field_pictureData, 0, data, offset + 4, field_pictureData.Length);... | train | false |
5,923 | public SeekStatus seekCeil(BytesRef term) {final int ord = findTerm(term);if (ord >= 0) {termOrd = ord;setTerm();return SeekStatus.FOUND;} else if (ord == -terms.length-1) {return SeekStatus.END;} else {termOrd = -ord - 1;setTerm();return SeekStatus.NOT_FOUND;}}
| [
"public",
"SeekStatus",
"seekCeil",
"(",
"BytesRef",
"term",
")",
"{",
"final",
"int",
"ord",
"=",
"findTerm",
"(",
"term",
")",
";",
"if",
"(",
"ord",
">=",
"0",
")",
"{",
"termOrd",
"=",
"ord",
";",
"setTerm",
"(",
")",
";",
"return",
"SeekStatus",... | public override SeekStatus SeekCeil(BytesRef term){int ord = FindTerm(term);if (ord >= 0){termOrd = ord;SetTerm();return SeekStatus.FOUND;}else if (ord == -outerInstance.terms.Length - 1){return SeekStatus.END;}else{termOrd = -ord - 1;SetTerm();return SeekStatus.NOT_FOUND;}}
| train | false |
5,924 | public DeleteLoadBalancerResult deleteLoadBalancer(DeleteLoadBalancerRequest request) {request = beforeClientExecution(request);return executeDeleteLoadBalancer(request);}
| [
"public",
"DeleteLoadBalancerResult",
"deleteLoadBalancer",
"(",
"DeleteLoadBalancerRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteLoadBalancer",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteLoadBalancerResponse DeleteLoadBalancer(DeleteLoadBalancerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLoadBalancerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLoadBalancerResponseUnmarshaller.Instance;return Invoke<DeleteLoadBalancerRespon... | train | true |
5,925 | public DeleteVpcPeeringAuthorizationResult deleteVpcPeeringAuthorization(DeleteVpcPeeringAuthorizationRequest request) {request = beforeClientExecution(request);return executeDeleteVpcPeeringAuthorization(request);}
| [
"public",
"DeleteVpcPeeringAuthorizationResult",
"deleteVpcPeeringAuthorization",
"(",
"DeleteVpcPeeringAuthorizationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteVpcPeeringAuthorization",
"(",
"request",... | public virtual DeleteVpcPeeringAuthorizationResponse DeleteVpcPeeringAuthorization(DeleteVpcPeeringAuthorizationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpcPeeringAuthorizationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpcPeeringAuthorizationResponseUnmar... | train | true |
5,926 | public SendAnnouncementResult sendAnnouncement(SendAnnouncementRequest request) {request = beforeClientExecution(request);return executeSendAnnouncement(request);}
| [
"public",
"SendAnnouncementResult",
"sendAnnouncement",
"(",
"SendAnnouncementRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSendAnnouncement",
"(",
"request",
")",
";",
"}"
] | public virtual SendAnnouncementResponse SendAnnouncement(SendAnnouncementRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendAnnouncementRequestMarshaller.Instance;options.ResponseUnmarshaller = SendAnnouncementResponseUnmarshaller.Instance;return Invoke<SendAnnouncementResponse>(request,... | train | false |
5,927 | @Override public int lastIndexOf(Object object) {final int size;final Object[] array;synchronized (mutex) {size = list.size();array = new Object[size];list.toArray(array);}if (object != null) {for (int i = size - 1; i >= 0; i--) {if (object.equals(array[i])) {return i;}}} else {for (int i = size - 1; i >= 0; i--) {if (... | [
"@",
"Override",
"public",
"int",
"lastIndexOf",
"(",
"Object",
"object",
")",
"{",
"final",
"int",
"size",
";",
"final",
"Object",
"[",
"]",
"array",
";",
"synchronized",
"(",
"mutex",
")",
"{",
"size",
"=",
"list",
".",
"size",
"(",
")",
";",
"arra... | public virtual int lastIndexOf(object @object){int size_1;object[] array;lock (mutex){size_1 = list.size();array = new object[size_1];list.toArray(array);}if (@object != null){{for (int i = size_1 - 1; i >= 0; i--){if (@object.Equals(array[i])){return i;}}}}else{{for (int i = size_1 - 1; i >= 0; i--){if (array[i] == nu... | train | false |
5,928 | public SortedDocValues getSortedDocValues(String field) {return getSortedDocValues(field, DocValuesType.SORTED);}
| [
"public",
"SortedDocValues",
"getSortedDocValues",
"(",
"String",
"field",
")",
"{",
"return",
"getSortedDocValues",
"(",
"field",
",",
"DocValuesType",
".",
"SORTED",
")",
";",
"}"
] | public override SortedDocValues GetSortedDocValues(string field){return null;}
| train | false |
5,929 | public void setBaseline() {setBaseline(clock.get());}
| [
"public",
"void",
"setBaseline",
"(",
")",
"{",
"setBaseline",
"(",
"clock",
".",
"get",
"(",
")",
")",
";",
"}"
] | public virtual void SetBaseline(){SetBaseline(clock.Get());}
| train | false |
5,930 | public final IntBuffer put(int[] src, int srcOffset, int intCount) {throw new ReadOnlyBufferException();}
| [
"public",
"final",
"IntBuffer",
"put",
"(",
"int",
"[",
"]",
"src",
",",
"int",
"srcOffset",
",",
"int",
"intCount",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] | public sealed override java.nio.IntBuffer put(int[] src, int srcOffset, int intCount){throw new java.nio.ReadOnlyBufferException();}
| train | false |
5,931 | public SortingBits(final Bits in, Sorter.DocMap docMap) {this.in = in;this.docMap = docMap;}
| [
"public",
"SortingBits",
"(",
"final",
"Bits",
"in",
",",
"Sorter",
".",
"DocMap",
"docMap",
")",
"{",
"this",
".",
"in",
"=",
"in",
";",
"this",
".",
"docMap",
"=",
"docMap",
";",
"}"
] | public SortingBits(IBits input, Sorter.DocMap docMap){this.@in = input;this.docMap = docMap;}
| train | false |
5,932 | public static String quoteEscape(String original) {String result = original;if (result.indexOf('\"') >= 0) {result = result.replace("\"", ESCAPED_QUOTE);}if(result.indexOf(COMMA) >= 0) {result = "\"" + result + "\"";}return result;}
| [
"public",
"static",
"String",
"quoteEscape",
"(",
"String",
"original",
")",
"{",
"String",
"result",
"=",
"original",
";",
"if",
"(",
"result",
".",
"indexOf",
"(",
"'\\\"'",
")",
">=",
"0",
")",
"{",
"result",
"=",
"result",
".",
"replace",
"(",
"\"\... | public static string QuoteEscape(string original){string result = original;if (result.IndexOf('\"') >= 0){result.Replace("\"", ESCAPED_QUOTE);}if (result.IndexOf(COMMA) >= 0){result = "\"" + result + "\"";}return result;}
| train | true |
5,933 | public static double fv(double r, double n, double y, double p, boolean t) {double retval = 0;if (r == 0) {retval = -1*(p+(n*y));}else {double r1 = r + 1;retval =((1-Math.pow(r1, n)) * (t ? r1 : 1) * y ) / r-p*Math.pow(r1, n);}return retval;}
| [
"public",
"static",
"double",
"fv",
"(",
"double",
"r",
",",
"double",
"n",
",",
"double",
"y",
",",
"double",
"p",
",",
"boolean",
"t",
")",
"{",
"double",
"retval",
"=",
"0",
";",
"if",
"(",
"r",
"==",
"0",
")",
"{",
"retval",
"=",
"-",
"1",
... | public static double fv(double r, double n, double y, double p, bool t){double retval = 0;if (r == 0){retval = -1 * (p + (n * y));}else{double r1 = r + 1;retval = ((1 - Math.Pow(r1, n)) * (t ? r1 : 1) * y) / r-p * Math.Pow(r1, n);}return retval;}
| train | false |
5,934 | public CharBuffer put(int index, char c) {throw new ReadOnlyBufferException();}
| [
"public",
"CharBuffer",
"put",
"(",
"int",
"index",
",",
"char",
"c",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] | public override java.nio.CharBuffer put(int index, char c){throw new java.nio.ReadOnlyBufferException();}
| train | false |
5,935 | public UpdateLifecyclePolicyResult updateLifecyclePolicy(UpdateLifecyclePolicyRequest request) {request = beforeClientExecution(request);return executeUpdateLifecyclePolicy(request);}
| [
"public",
"UpdateLifecyclePolicyResult",
"updateLifecyclePolicy",
"(",
"UpdateLifecyclePolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateLifecyclePolicy",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateLifecyclePolicyResponse UpdateLifecyclePolicy(UpdateLifecyclePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateLifecyclePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateLifecyclePolicyResponseUnmarshaller.Instance;return Invoke<UpdateLif... | train | true |
5,936 | public CreateNotebookInstanceLifecycleConfigResult createNotebookInstanceLifecycleConfig(CreateNotebookInstanceLifecycleConfigRequest request) {request = beforeClientExecution(request);return executeCreateNotebookInstanceLifecycleConfig(request);}
| [
"public",
"CreateNotebookInstanceLifecycleConfigResult",
"createNotebookInstanceLifecycleConfig",
"(",
"CreateNotebookInstanceLifecycleConfigRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateNotebookInstanceLifec... | public virtual CreateNotebookInstanceLifecycleConfigResponse CreateNotebookInstanceLifecycleConfig(CreateNotebookInstanceLifecycleConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNotebookInstanceLifecycleConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNote... | train | true |
5,938 | public void serialize(LittleEndianOutput out) {out.writeShort(field_1_axisType);out.writeInt(field_2_x);out.writeInt(field_3_y);out.writeInt(field_4_width);out.writeInt(field_5_height);}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"field_1_axisType",
")",
";",
"out",
".",
"writeInt",
"(",
"field_2_x",
")",
";",
"out",
".",
"writeInt",
"(",
"field_3_y",
")",
";",
"out",
".",
"w... | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_axisType);out1.WriteInt(field_2_x);out1.WriteInt(field_3_y);out1.WriteInt(field_4_width);out1.WriteInt(field_5_height);}
| train | false |
5,939 | public GetJourneyResult getJourney(GetJourneyRequest request) {request = beforeClientExecution(request);return executeGetJourney(request);}
| [
"public",
"GetJourneyResult",
"getJourney",
"(",
"GetJourneyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetJourney",
"(",
"request",
")",
";",
"}"
] | public virtual GetJourneyResponse GetJourney(GetJourneyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetJourneyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetJourneyResponseUnmarshaller.Instance;return Invoke<GetJourneyResponse>(request, options);}
| train | false |
5,940 | public PrecedenceQueryNodeProcessorPipeline(QueryConfigHandler queryConfig) {super(queryConfig);for (int i = 0 ; i < size() ; i++) {if (get(i).getClass().equals(BooleanQuery2ModifierNodeProcessor.class)) {remove(i--);}}add(new BooleanModifiersQueryNodeProcessor());}
| [
"public",
"PrecedenceQueryNodeProcessorPipeline",
"(",
"QueryConfigHandler",
"queryConfig",
")",
"{",
"super",
"(",
"queryConfig",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"if",
"(",
"get",
... | public PrecedenceQueryNodeProcessorPipeline(QueryConfigHandler queryConfig): base(queryConfig){for (int i = 0; i < Count; i++){if (this[i].GetType().Equals(typeof(BooleanQuery2ModifierNodeProcessor))){RemoveAt(i--);}}Add(new BooleanModifiersQueryNodeProcessor());}
| train | false |
5,941 | public static boolean startsWith(byte[] ref, BytesRef prefix) {if (ref.length < prefix.length) {return false;}return Arrays.equals(ref, 0, prefix.length,prefix.bytes, prefix.offset, prefix.offset + prefix.length);}
| [
"public",
"static",
"boolean",
"startsWith",
"(",
"byte",
"[",
"]",
"ref",
",",
"BytesRef",
"prefix",
")",
"{",
"if",
"(",
"ref",
".",
"length",
"<",
"prefix",
".",
"length",
")",
"{",
"return",
"false",
";",
"}",
"return",
"Arrays",
".",
"equals",
"... | public static bool StartsWith(BytesRef @ref, BytesRef prefix) {return SliceEquals(@ref, prefix, 0);}
| train | false |
5,942 | public DeleteUsageReportSubscriptionResult deleteUsageReportSubscription(DeleteUsageReportSubscriptionRequest request) {request = beforeClientExecution(request);return executeDeleteUsageReportSubscription(request);}
| [
"public",
"DeleteUsageReportSubscriptionResult",
"deleteUsageReportSubscription",
"(",
"DeleteUsageReportSubscriptionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteUsageReportSubscription",
"(",
"request",... | public virtual DeleteUsageReportSubscriptionResponse DeleteUsageReportSubscription(DeleteUsageReportSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUsageReportSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUsageReportSubscriptionResponseUnmar... | train | false |
5,943 | public File[] listFiles(FilenameFilter filter) {return filenamesToFiles(list(filter));}
| [
"public",
"File",
"[",
"]",
"listFiles",
"(",
"FilenameFilter",
"filter",
")",
"{",
"return",
"filenamesToFiles",
"(",
"list",
"(",
"filter",
")",
")",
";",
"}"
] | public java.io.File[] listFiles(java.io.FilenameFilter filter){return filenamesToFiles(list(filter));}
| train | false |
5,944 | public void respondActivityTaskFailed(RespondActivityTaskFailedRequest request) {request = beforeClientExecution(request);executeRespondActivityTaskFailed(request);}
| [
"public",
"void",
"respondActivityTaskFailed",
"(",
"RespondActivityTaskFailedRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"executeRespondActivityTaskFailed",
"(",
"request",
")",
";",
"}"
] | public virtual RespondActivityTaskFailedResponse RespondActivityTaskFailed(RespondActivityTaskFailedRequest request){var options = new InvokeOptions();options.RequestMarshaller = RespondActivityTaskFailedRequestMarshaller.Instance;options.ResponseUnmarshaller = RespondActivityTaskFailedResponseUnmarshaller.Instance;ret... | train | false |
5,945 | public ListIdentitiesResult listIdentities() {return listIdentities(new ListIdentitiesRequest());}
| [
"public",
"ListIdentitiesResult",
"listIdentities",
"(",
")",
"{",
"return",
"listIdentities",
"(",
"new",
"ListIdentitiesRequest",
"(",
")",
")",
";",
"}"
] | public virtual ListIdentitiesResponse ListIdentities(){return ListIdentities(new ListIdentitiesRequest());}
| train | false |
5,946 | @Override public int compare(T o1, T o2) {Comparable<T> c2 = (Comparable<T>) o2;return c2.compareTo(o1);}
| [
"@",
"Override",
"public",
"int",
"compare",
"(",
"T",
"o1",
",",
"T",
"o2",
")",
"{",
"Comparable",
"<",
"T",
">",
"c2",
"=",
"(",
"Comparable",
"<",
"T",
">",
")",
"o2",
";",
"return",
"c2",
".",
"compareTo",
"(",
"o1",
")",
";",
"}"
] | public int compare(T o1, T o2){java.lang.Comparable<T> c2 = (java.lang.Comparable<T>)o2;return c2.compareTo(o1);}
| train | false |
5,947 | public ListFindingsResult listFindings(ListFindingsRequest request) {request = beforeClientExecution(request);return executeListFindings(request);}
| [
"public",
"ListFindingsResult",
"listFindings",
"(",
"ListFindingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListFindings",
"(",
"request",
")",
";",
"}"
] | public virtual ListFindingsResponse ListFindings(ListFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFindingsResponseUnmarshaller.Instance;return Invoke<ListFindingsResponse>(request, options);}
| train | true |
5,948 | public boolean contains(final int o){boolean rval = false;for (int j = 0; !rval && (j < _limit); j++){if (_array[ j ] == o){rval = true;}}return rval;}
| [
"public",
"boolean",
"contains",
"(",
"final",
"int",
"o",
")",
"{",
"boolean",
"rval",
"=",
"false",
";",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"!",
"rval",
"&&",
"(",
"j",
"<",
"_limit",
")",
";",
"j",
"++",
")",
"{",
"if",
"(",
"_array",
... | public bool Contains(int o){bool rval = false;for (int j = 0; !rval && (j < _limit); j++){if (_array[j] == o){rval = true;}}return rval;}
| train | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.