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 |
|---|---|---|---|---|---|
3,515 | public CreateDBInstanceRequest(String dBInstanceIdentifier, Integer allocatedStorage, String dBInstanceClass, String engine, String masterUsername,String masterUserPassword) {setDBInstanceIdentifier(dBInstanceIdentifier);setAllocatedStorage(allocatedStorage);setDBInstanceClass(dBInstanceClass);setEngine(engine);setMast... | [
"public",
"CreateDBInstanceRequest",
"(",
"String",
"dBInstanceIdentifier",
",",
"Integer",
"allocatedStorage",
",",
"String",
"dBInstanceClass",
",",
"String",
"engine",
",",
"String",
"masterUsername",
",",
"String",
"masterUserPassword",
")",
"{",
"setDBInstanceIdentif... | public CreateDBInstanceRequest(string dbInstanceIdentifier, int allocatedStorage, string dbInstanceClass, string engine, string masterUsername, string masterUserPassword){_dbInstanceIdentifier = dbInstanceIdentifier;_allocatedStorage = allocatedStorage;_dbInstanceClass = dbInstanceClass;_engine = engine;_masterUsername... | train | false |
3,516 | public DescribeCapacityProvidersResult describeCapacityProviders(DescribeCapacityProvidersRequest request) {request = beforeClientExecution(request);return executeDescribeCapacityProviders(request);}
| [
"public",
"DescribeCapacityProvidersResult",
"describeCapacityProviders",
"(",
"DescribeCapacityProvidersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeCapacityProviders",
"(",
"request",
")",
";",
... | public virtual DescribeCapacityProvidersResponse DescribeCapacityProviders(DescribeCapacityProvidersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCapacityProvidersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCapacityProvidersResponseUnmarshaller.Instance;ret... | train | false |
3,517 | public CreateQualificationTypeResult createQualificationType(CreateQualificationTypeRequest request) {request = beforeClientExecution(request);return executeCreateQualificationType(request);}
| [
"public",
"CreateQualificationTypeResult",
"createQualificationType",
"(",
"CreateQualificationTypeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateQualificationType",
"(",
"request",
")",
";",
"}"
] | public virtual CreateQualificationTypeResponse CreateQualificationType(CreateQualificationTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateQualificationTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateQualificationTypeResponseUnmarshaller.Instance;return Invoke... | train | true |
3,518 | public void addLast(E object) {addLastImpl(object);}
| [
"public",
"void",
"addLast",
"(",
"E",
"object",
")",
"{",
"addLastImpl",
"(",
"object",
")",
";",
"}"
] | public virtual void addLast(E @object){addLastImpl(@object);}
| train | false |
3,519 | public Patch() {files = new ArrayList<>();errors = new ArrayList<>(0);}
| [
"public",
"Patch",
"(",
")",
"{",
"files",
"=",
"new",
"ArrayList",
"<",
">",
"(",
")",
";",
"errors",
"=",
"new",
"ArrayList",
"<",
">",
"(",
"0",
")",
";",
"}"
] | public Patch(){files = new AList<FileHeader>();errors = new AList<FormatError>(0);}
| train | false |
3,520 | public GetSdkTypesResult getSdkTypes(GetSdkTypesRequest request) {request = beforeClientExecution(request);return executeGetSdkTypes(request);}
| [
"public",
"GetSdkTypesResult",
"getSdkTypes",
"(",
"GetSdkTypesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetSdkTypes",
"(",
"request",
")",
";",
"}"
] | public virtual GetSdkTypesResponse GetSdkTypes(GetSdkTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSdkTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSdkTypesResponseUnmarshaller.Instance;return Invoke<GetSdkTypesResponse>(request, options);}
| train | true |
3,521 | public String toFormulaString() {throw new RuntimeException("3D references need a workbook to determine formula text");}
| [
"public",
"String",
"toFormulaString",
"(",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"3D references need a workbook to determine formula text\"",
")",
";",
"}"
] | public override String ToFormulaString(){throw new NotImplementedException("3D references need a workbook to determine formula text");}
| train | false |
3,522 | public ListPhotoFacesRequest() {super("CloudPhoto", "2017-07-11", "ListPhotoFaces", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"ListPhotoFacesRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"ListPhotoFaces\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public ListPhotoFacesRequest(): base("CloudPhoto", "2017-07-11", "ListPhotoFaces", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
3,523 | public boolean isBatchMode() {return batchMode != null && batchMode.booleanValue();}
| [
"public",
"boolean",
"isBatchMode",
"(",
")",
"{",
"return",
"batchMode",
"!=",
"null",
"&&",
"batchMode",
".",
"booleanValue",
"(",
")",
";",
"}"
] | public virtual bool IsBatchMode(){return batchMode != null && batchMode.Value;}
| train | false |
3,524 | @Override public boolean isEmpty() {return endpoint(true) == null;}
| [
"@",
"Override",
"public",
"boolean",
"isEmpty",
"(",
")",
"{",
"return",
"endpoint",
"(",
"true",
")",
"==",
"null",
";",
"}"
] | public override bool isEmpty(){return this.endpoint(true) == null;}
| train | false |
3,525 | @Override public Set<Entry<K, V>> entrySet() {BoundedEntrySet result = entrySet;return result != null ? result : (entrySet = new BoundedEntrySet());}
| [
"@",
"Override",
"public",
"Set",
"<",
"Entry",
"<",
"K",
",",
"V",
">",
">",
"entrySet",
"(",
")",
"{",
"BoundedEntrySet",
"result",
"=",
"entrySet",
";",
"return",
"result",
"!=",
"null",
"?",
"result",
":",
"(",
"entrySet",
"=",
"new",
"BoundedEntry... | public override java.util.Set<java.util.MapClass.Entry<K, V>> entrySet(){java.util.TreeMap<K, V>.BoundedMap.BoundedEntrySet result = this._entrySet;return result != null ? result : (this._entrySet = new java.util.TreeMap<K, V>.BoundedMap.BoundedEntrySet(this));}
| train | false |
3,526 | public static CFRuleRecord create(HSSFSheet sheet, String formulaText) {Ptg[] formula1 = parseFormula(formulaText, sheet);return new CFRuleRecord(CONDITION_TYPE_FORMULA, ComparisonOperator.NO_COMPARISON,formula1, null);}
| [
"public",
"static",
"CFRuleRecord",
"create",
"(",
"HSSFSheet",
"sheet",
",",
"String",
"formulaText",
")",
"{",
"Ptg",
"[",
"]",
"formula1",
"=",
"parseFormula",
"(",
"formulaText",
",",
"sheet",
")",
";",
"return",
"new",
"CFRuleRecord",
"(",
"CONDITION_TYPE... | public static CFRuleRecord Create(HSSFSheet sheet, String formulaText){Ptg[] formula1 = ParseFormula(formulaText, sheet);return new CFRuleRecord(CONDITION_TYPE_FORMULA, ComparisonOperator.NoComparison,formula1, null);}
| train | false |
3,527 | public DeleteAlbumsRequest() {super("CloudPhoto", "2017-07-11", "DeleteAlbums", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"DeleteAlbumsRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"DeleteAlbums\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public DeleteAlbumsRequest(): base("CloudPhoto", "2017-07-11", "DeleteAlbums", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
3,528 | public MissingFormatArgumentException(String s) {if (s == null) {throw new NullPointerException();}this.s = s;}
| [
"public",
"MissingFormatArgumentException",
"(",
"String",
"s",
")",
"{",
"if",
"(",
"s",
"==",
"null",
")",
"{",
"throw",
"new",
"NullPointerException",
"(",
")",
";",
"}",
"this",
".",
"s",
"=",
"s",
";",
"}"
] | public MissingFormatArgumentException(string s){if (s == null){throw new System.ArgumentNullException();}this.s = s;}
| train | false |
3,529 | public DeleteApplicationOutputResult deleteApplicationOutput(DeleteApplicationOutputRequest request) {request = beforeClientExecution(request);return executeDeleteApplicationOutput(request);}
| [
"public",
"DeleteApplicationOutputResult",
"deleteApplicationOutput",
"(",
"DeleteApplicationOutputRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteApplicationOutput",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteApplicationOutputResponse DeleteApplicationOutput(DeleteApplicationOutputRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApplicationOutputRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApplicationOutputResponseUnmarshaller.Instance;return Invoke... | train | true |
3,530 | public PredictionContextCache getSharedContextCache() {return sharedContextCache;}
| [
"public",
"PredictionContextCache",
"getSharedContextCache",
"(",
")",
"{",
"return",
"sharedContextCache",
";",
"}"
] | public PredictionContextCache getSharedContextCache(){return sharedContextCache;}
| train | false |
3,532 | public DecisionState getDecisionState(int decision) {if ( !decisionToState.isEmpty() ) {return decisionToState.get(decision);}return null;}
| [
"public",
"DecisionState",
"getDecisionState",
"(",
"int",
"decision",
")",
"{",
"if",
"(",
"!",
"decisionToState",
".",
"isEmpty",
"(",
")",
")",
"{",
"return",
"decisionToState",
".",
"get",
"(",
"decision",
")",
";",
"}",
"return",
"null",
";",
"}"
] | public virtual DecisionState GetDecisionState(int decision){if (decisionToState.Count != 0){return decisionToState[decision];}return null;}
| train | false |
3,533 | public void removeSheet(int sheetIdx) {_externSheetRecord.removeSheet(sheetIdx);}
| [
"public",
"void",
"removeSheet",
"(",
"int",
"sheetIdx",
")",
"{",
"_externSheetRecord",
".",
"removeSheet",
"(",
"sheetIdx",
")",
";",
"}"
] | public void RemoveSheet(int sheetIdx){_externSheetRecord.RemoveSheet(sheetIdx);}
| train | false |
3,534 | public HSSFRequest() {_records = new HashMap<>(50); }
| [
"public",
"HSSFRequest",
"(",
")",
"{",
"_records",
"=",
"new",
"HashMap",
"<",
">",
"(",
"50",
")",
";",
"}"
] | public HSSFRequest(){records =new Hashtable(50); }
| train | false |
3,535 | final public QueryNode TopLevelQuery(CharSequence field) throws ParseException {QueryNode q;q = Query(field);jj_consume_token(0);{if (true) return q;}throw new Error("Missing return statement in function");}
| [
"final",
"public",
"QueryNode",
"TopLevelQuery",
"(",
"CharSequence",
"field",
")",
"throws",
"ParseException",
"{",
"QueryNode",
"q",
";",
"q",
"=",
"Query",
"(",
"field",
")",
";",
"jj_consume_token",
"(",
"0",
")",
";",
"{",
"if",
"(",
"true",
")",
"r... | public IQueryNode TopLevelQuery(string field){IQueryNode q;q = Query(field);Jj_consume_token(0);{ if (true) return q; }throw new Exception("Missing return statement in function");}
| train | false |
3,536 | public DescribeUpdateResult describeUpdate(DescribeUpdateRequest request) {request = beforeClientExecution(request);return executeDescribeUpdate(request);}
| [
"public",
"DescribeUpdateResult",
"describeUpdate",
"(",
"DescribeUpdateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeUpdate",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeUpdateResponse DescribeUpdate(DescribeUpdateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUpdateRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUpdateResponseUnmarshaller.Instance;return Invoke<DescribeUpdateResponse>(request, options);}
| train | true |
3,537 | public boolean getValue() {return value;}
| [
"public",
"boolean",
"getValue",
"(",
")",
"{",
"return",
"value",
";",
"}"
] | public virtual bool GetValue(){return value;}
| train | false |
3,538 | public final int getType() {return (flags >> TYPE_SHIFT) & 0x7;}
| [
"public",
"final",
"int",
"getType",
"(",
")",
"{",
"return",
"(",
"flags",
">",
">",
"TYPE_SHIFT",
")",
"&",
"0x7",
";",
"}"
] | public virtual int GetType(){return (flags >> TYPE_SHIFT) & unchecked((int)(0x7));}
| train | false |
3,539 | public DoubleBuffer put(double c) {if (position == limit) {throw new BufferOverflowException();}byteBuffer.putDouble(position++ * SizeOf.DOUBLE, c);return this;}
| [
"public",
"DoubleBuffer",
"put",
"(",
"double",
"c",
")",
"{",
"if",
"(",
"position",
"==",
"limit",
")",
"{",
"throw",
"new",
"BufferOverflowException",
"(",
")",
";",
"}",
"byteBuffer",
".",
"putDouble",
"(",
"position",
"++",
"*",
"SizeOf",
".",
"DOUB... | public override java.nio.DoubleBuffer put(double c){if (_position == _limit){throw new java.nio.BufferOverflowException();}byteBuffer.putDouble(_position++ * libcore.io.SizeOf.DOUBLE, c);return this;}
| train | false |
3,540 | public void endEvaluate(CellCacheEntry cce) {int nFrames = _evaluationFrames.size();if (nFrames < 1) {throw new IllegalStateException("Call to endEvaluate without matching call to startEvaluate");}nFrames--;CellEvaluationFrame frame = _evaluationFrames.get(nFrames);if (cce != frame.getCCE()) {throw new IllegalStateExce... | [
"public",
"void",
"endEvaluate",
"(",
"CellCacheEntry",
"cce",
")",
"{",
"int",
"nFrames",
"=",
"_evaluationFrames",
".",
"size",
"(",
")",
";",
"if",
"(",
"nFrames",
"<",
"1",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"Call to endEvaluate with... | public void EndEvaluate(CellCacheEntry cce){int nFrames = _evaluationFrames.Count;if (nFrames < 1){throw new InvalidOperationException("Call To endEvaluate without matching call To startEvaluate");}nFrames--;CellEvaluationFrame frame = (CellEvaluationFrame)_evaluationFrames[nFrames];if (cce != frame.GetCCE()){throw new... | train | false |
3,541 | public NumberPtg(double value) {field_1_value = value;}
| [
"public",
"NumberPtg",
"(",
"double",
"value",
")",
"{",
"field_1_value",
"=",
"value",
";",
"}"
] | public NumberPtg(double value){field_1_value = value;}
| train | false |
3,542 | public GroupingSearch setGroupSort(Sort groupSort) {this.groupSort = groupSort;return this;}
| [
"public",
"GroupingSearch",
"setGroupSort",
"(",
"Sort",
"groupSort",
")",
"{",
"this",
".",
"groupSort",
"=",
"groupSort",
";",
"return",
"this",
";",
"}"
] | public virtual GroupingSearch SetGroupSort(Sort groupSort){this.groupSort = groupSort;return this;}
| train | false |
3,543 | public HSSFBorderFormatting createBorderFormatting() {return getBorderFormatting(true);}
| [
"public",
"HSSFBorderFormatting",
"createBorderFormatting",
"(",
")",
"{",
"return",
"getBorderFormatting",
"(",
"true",
")",
";",
"}"
] | public IBorderFormatting CreateBorderFormatting(){return GetBorderFormatting(true);}
| train | false |
3,544 | public HSSFSimpleShape createShape(HSSFChildAnchor anchor) {HSSFSimpleShape shape = new HSSFSimpleShape(this, anchor);shape.setParent(this);shape.setAnchor(anchor);shapes.add(shape);onCreate(shape);EscherSpRecord sp = shape.getEscherContainer().getChildById(EscherSpRecord.RECORD_ID);if (shape.getAnchor().isHorizontally... | [
"public",
"HSSFSimpleShape",
"createShape",
"(",
"HSSFChildAnchor",
"anchor",
")",
"{",
"HSSFSimpleShape",
"shape",
"=",
"new",
"HSSFSimpleShape",
"(",
"this",
",",
"anchor",
")",
";",
"shape",
".",
"setParent",
"(",
"this",
")",
";",
"shape",
".",
"setAnchor"... | public HSSFSimpleShape CreateShape(HSSFChildAnchor anchor){HSSFSimpleShape shape = new HSSFSimpleShape(this, anchor);shape.Parent = this;shape.Anchor = anchor;shapes.Add(shape);OnCreate(shape);EscherSpRecord sp = (EscherSpRecord)shape.GetEscherContainer().GetChildById(EscherSpRecord.RECORD_ID);if (shape.Anchor.IsHorizo... | train | false |
3,545 | public GetLifecyclePolicyResult getLifecyclePolicy(GetLifecyclePolicyRequest request) {request = beforeClientExecution(request);return executeGetLifecyclePolicy(request);}
| [
"public",
"GetLifecyclePolicyResult",
"getLifecyclePolicy",
"(",
"GetLifecyclePolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetLifecyclePolicy",
"(",
"request",
")",
";",
"}"
] | public virtual GetLifecyclePolicyResponse GetLifecyclePolicy(GetLifecyclePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetLifecyclePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetLifecyclePolicyResponseUnmarshaller.Instance;return Invoke<GetLifecyclePolicyRespon... | train | true |
3,546 | public Integer integerValue(String key) {String value = responseMap.get(key);if (null == value || 0 == value.length()) {return null;}return Integer.valueOf(value);}
| [
"public",
"Integer",
"integerValue",
"(",
"String",
"key",
")",
"{",
"String",
"value",
"=",
"responseMap",
".",
"get",
"(",
"key",
")",
";",
"if",
"(",
"null",
"==",
"value",
"||",
"0",
"==",
"value",
".",
"length",
"(",
")",
")",
"{",
"return",
"... | public int? IntegerValue(string key){if (null != DictionaryUtil.Get(ResponseDictionary, key)){return int.Parse(DictionaryUtil.Get(ResponseDictionary, key));}return null;}
| train | false |
3,547 | public int size() {return backingMap.size();}
| [
"public",
"int",
"size",
"(",
")",
"{",
"return",
"backingMap",
".",
"size",
"(",
")",
";",
"}"
] | public override int size(){return backingMap.size();}
| train | false |
3,548 | public Map.Entry<K, V> next() {if (!valueIterator.hasNext()) {findValueIteratorAndKey();}return Maps.immutableEntry(key, valueIterator.next());}
| [
"public",
"Map",
".",
"Entry",
"<",
"K",
",",
"V",
">",
"next",
"(",
")",
"{",
"if",
"(",
"!",
"valueIterator",
".",
"hasNext",
"(",
")",
")",
"{",
"findValueIteratorAndKey",
"(",
")",
";",
"}",
"return",
"Maps",
".",
"immutableEntry",
"(",
"key",
... | public override java.util.MapClass.Entry<K, V> next(){return this.nextEntry();}
| train | false |
3,549 | public boolean shouldBeRecursive() {return a.shouldBeRecursive();}
| [
"public",
"boolean",
"shouldBeRecursive",
"(",
")",
"{",
"return",
"a",
".",
"shouldBeRecursive",
"(",
")",
";",
"}"
] | public override bool ShouldBeRecursive(){return a.ShouldBeRecursive();}
| train | false |
3,550 | public GetRepoAuthorizationListRequest() {super("cr", "2016-06-07", "GetRepoAuthorizationList", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/authorizations");setMethod(MethodType.GET);}
| [
"public",
"GetRepoAuthorizationListRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"GetRepoAuthorizationList\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/repos/[RepoNamespace]/[RepoName]/authorizations\"",
")",
";",
"setMethod",
"(... | public GetRepoAuthorizationListRequest(): base("cr", "2016-06-07", "GetRepoAuthorizationList", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/authorizations";Method = MethodType.GET;}
| train | false |
3,551 | public int checkExternSheet(int sheetIndex) {return checkExternSheet(sheetIndex, sheetIndex);}
| [
"public",
"int",
"checkExternSheet",
"(",
"int",
"sheetIndex",
")",
"{",
"return",
"checkExternSheet",
"(",
"sheetIndex",
",",
"sheetIndex",
")",
";",
"}"
] | public int CheckExternSheet(int sheetIndex){return CheckExternSheet(sheetIndex, sheetIndex);}
| train | false |
3,553 | public QueryNodeProcessor set(int index, QueryNodeProcessor processor) {QueryNodeProcessor oldProcessor = this.processors.set(index, processor);if (oldProcessor != processor) {processor.setQueryConfigHandler(this.queryConfig);}return oldProcessor;}
| [
"public",
"QueryNodeProcessor",
"set",
"(",
"int",
"index",
",",
"QueryNodeProcessor",
"processor",
")",
"{",
"QueryNodeProcessor",
"oldProcessor",
"=",
"this",
".",
"processors",
".",
"set",
"(",
"index",
",",
"processor",
")",
";",
"if",
"(",
"oldProcessor",
... | public virtual IQueryNodeProcessor Set(int index, IQueryNodeProcessor processor){IQueryNodeProcessor oldProcessor = this.processors[index];this.processors[index] = processor;if (oldProcessor != processor){processor.SetQueryConfigHandler(this.queryConfig);}return oldProcessor;}
| train | false |
3,554 | public String getRuleName(int index) {if ( parser!=null && index>=0 ) return parser.getRuleNames()[index];return "<rule "+index+">";}
| [
"public",
"String",
"getRuleName",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"parser",
"!=",
"null",
"&&",
"index",
">=",
"0",
")",
"return",
"parser",
".",
"getRuleNames",
"(",
")",
"[",
"index",
"]",
";",
"return",
"\"<rule \"",
"+",
"index",
"+",
... | public string GetRuleName(int index){if (parser != null && index >= 0) return parser.RuleNames[index];return "<rule " + index + ">";}
| train | false |
3,556 | public DirCache call() throws GitAPIException,NoFilepatternException {if (filepatterns.isEmpty())throw new NoFilepatternException(JGitText.get().atLeastOnePatternIsRequired);checkCallable();DirCache dc = null;List<String> actuallyDeletedFiles = new ArrayList<>();try (TreeWalk tw = new TreeWalk(repo)) {dc = repo.lockDir... | [
"public",
"DirCache",
"call",
"(",
")",
"throws",
"GitAPIException",
",",
"NoFilepatternException",
"{",
"if",
"(",
"filepatterns",
".",
"isEmpty",
"(",
")",
")",
"throw",
"new",
"NoFilepatternException",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"atLeastOne... | public override DirCache Call(){if (filepatterns.IsEmpty()){throw new NoFilepatternException(JGitText.Get().atLeastOnePatternIsRequired);}CheckCallable();DirCache dc = null;try{dc = repo.LockDirCache();DirCacheBuilder builder = dc.Builder();TreeWalk tw = new TreeWalk(repo);tw.Reset();tw.Recursive = true;tw.Filter = Pat... | train | false |
3,557 | public DeleteGatewayResponseResult deleteGatewayResponse(DeleteGatewayResponseRequest request) {request = beforeClientExecution(request);return executeDeleteGatewayResponse(request);}
| [
"public",
"DeleteGatewayResponseResult",
"deleteGatewayResponse",
"(",
"DeleteGatewayResponseRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteGatewayResponse",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteGatewayResponseResponse DeleteGatewayResponse(DeleteGatewayResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGatewayResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGatewayResponseResponseUnmarshaller.Instance;return Invoke<DeleteGat... | train | true |
3,558 | public TokenStream create(TokenStream input) {return new NorwegianLightStemFilter(input, flags);}
| [
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"NorwegianLightStemFilter",
"(",
"input",
",",
"flags",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return new NorwegianLightStemFilter(input, flags);}
| train | false |
3,559 | public GetUserSourceRepoListRequest() {super("cr", "2016-06-07", "GetUserSourceRepoList", "cr");setUriPattern("/users/sourceAccount/[SourceAccountId]/repos");setMethod(MethodType.GET);}
| [
"public",
"GetUserSourceRepoListRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"GetUserSourceRepoList\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/users/sourceAccount/[SourceAccountId]/repos\"",
")",
";",
"setMethod",
"(",
"Meth... | public GetUserSourceRepoListRequest(): base("cr", "2016-06-07", "GetUserSourceRepoList", "cr", "openAPI"){UriPattern = "/users/sourceAccount/[SourceAccountId]/repos";Method = MethodType.GET;}
| train | false |
3,560 | public DescribeEventBusResult describeEventBus(DescribeEventBusRequest request) {request = beforeClientExecution(request);return executeDescribeEventBus(request);}
| [
"public",
"DescribeEventBusResult",
"describeEventBus",
"(",
"DescribeEventBusRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeEventBus",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeEventBusResponse DescribeEventBus(DescribeEventBusRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEventBusRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEventBusResponseUnmarshaller.Instance;return Invoke<DescribeEventBusResponse>(request,... | train | true |
3,561 | public DefaultAcsClient(IClientProfile profile, AlibabaCloudCredentialsProvider credentialsProvider) {this.clientProfile = profile;this.credentialsProvider = credentialsProvider;this.clientProfile.setCredentialsProvider(this.credentialsProvider);this.httpClient = HttpClientFactory.buildClient(this.clientProfile);this.e... | [
"public",
"DefaultAcsClient",
"(",
"IClientProfile",
"profile",
",",
"AlibabaCloudCredentialsProvider",
"credentialsProvider",
")",
"{",
"this",
".",
"clientProfile",
"=",
"profile",
";",
"this",
".",
"credentialsProvider",
"=",
"credentialsProvider",
";",
"this",
".",
... | public DefaultAcsClient(IClientProfile profile, AlibabaCloudCredentialsProvider credentialsProvider) : this(){clientProfile = profile;this.credentialsProvider = credentialsProvider;clientProfile.SetCredentialsProvider(this.credentialsProvider);}
| train | false |
3,562 | public String toString() {StringBuilder result = new StringBuilder(limit - position);for (int i = position; i < limit; i++) {result.append(get(i));}return result.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"result",
"=",
"new",
"StringBuilder",
"(",
"limit",
"-",
"position",
")",
";",
"for",
"(",
"int",
"i",
"=",
"position",
";",
"i",
"<",
"limit",
";",
"i",
"++",
")",
"{",
"result",
".",
... | public override string ToString(){java.lang.StringBuilder result = new java.lang.StringBuilder(_limit - _position);{for (int i = _position; i < _limit; i++){result.append(get(i));}}return result.ToString();}
| train | false |
3,563 | public final byte[] replacement() {return replacementBytes;}
| [
"public",
"final",
"byte",
"[",
"]",
"replacement",
"(",
")",
"{",
"return",
"replacementBytes",
";",
"}"
] | public byte[] replacement(){return replacementBytes;}
| train | false |
3,564 | public SeriesToChartGroupRecord clone() {return copy();}
| [
"public",
"SeriesToChartGroupRecord",
"clone",
"(",
")",
"{",
"return",
"copy",
"(",
")",
";",
"}"
] | public override Object Clone(){SeriesToChartGroupRecord rec = new SeriesToChartGroupRecord();rec.field_1_chartGroupIndex = field_1_chartGroupIndex;return rec;}
| train | false |
3,565 | public AttributeValue(java.util.List<String> sS) {setSS(sS);}
| [
"public",
"AttributeValue",
"(",
"java",
".",
"util",
".",
"List",
"<",
"String",
">",
"sS",
")",
"{",
"setSS",
"(",
"sS",
")",
";",
"}"
] | public AttributeValue(List<string> ss){_ss = ss;}
| train | false |
3,566 | public HSSFComment(EscherContainerRecord spContainer, ObjRecord objRecord, TextObjectRecord textObjectRecord, NoteRecord note) {super(spContainer, objRecord, textObjectRecord);_note = note;}
| [
"public",
"HSSFComment",
"(",
"EscherContainerRecord",
"spContainer",
",",
"ObjRecord",
"objRecord",
",",
"TextObjectRecord",
"textObjectRecord",
",",
"NoteRecord",
"note",
")",
"{",
"super",
"(",
"spContainer",
",",
"objRecord",
",",
"textObjectRecord",
")",
";",
"... | public HSSFComment(EscherContainerRecord spContainer, ObjRecord objRecord, TextObjectRecord textObjectRecord, NoteRecord _note): base(spContainer, objRecord, textObjectRecord){this._note = _note;}
| train | false |
3,567 | public FilteredDocIdSetIterator(DocIdSetIterator innerIter) {if (innerIter == null) {throw new IllegalArgumentException("null iterator");}_innerIter = innerIter;doc = -1;}
| [
"public",
"FilteredDocIdSetIterator",
"(",
"DocIdSetIterator",
"innerIter",
")",
"{",
"if",
"(",
"innerIter",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"null iterator\"",
")",
";",
"}",
"_innerIter",
"=",
"innerIter",
";",
"doc",
... | public FilteredDocIdSetIterator(DocIdSetIterator innerIter){if (innerIter == null){throw new System.ArgumentException("null iterator");}m_innerIter = innerIter;doc = -1;}
| train | false |
3,568 | public DeleteDBClusterParameterGroupResult deleteDBClusterParameterGroup(DeleteDBClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeDeleteDBClusterParameterGroup(request);}
| [
"public",
"DeleteDBClusterParameterGroupResult",
"deleteDBClusterParameterGroup",
"(",
"DeleteDBClusterParameterGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteDBClusterParameterGroup",
"(",
"request",... | public virtual DeleteDBClusterParameterGroupResponse DeleteDBClusterParameterGroup(DeleteDBClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBClusterParameterGroupResponseUnmar... | train | true |
3,569 | public LongsRef next(int count) throws IOException {assert nextValues.length >= 0;assert count > 0;assert nextValues.offset + nextValues.length <= nextValues.longs.length;nextValues.offset += nextValues.length;final int remaining = valueCount - position - 1;if (remaining <= 0) {throw new EOFException();}count = Math.mi... | [
"public",
"LongsRef",
"next",
"(",
"int",
"count",
")",
"throws",
"IOException",
"{",
"assert",
"nextValues",
".",
"length",
">=",
"0",
";",
"assert",
"count",
">",
"0",
";",
"assert",
"nextValues",
".",
"offset",
"+",
"nextValues",
".",
"length",
"<=",
... | public override Int64sRef Next(int count){Debug.Assert(nextValues.Length >= 0);Debug.Assert(count > 0);Debug.Assert(nextValues.Offset + nextValues.Length <= nextValues.Int64s.Length);nextValues.Offset += nextValues.Length;int remaining = m_valueCount - position - 1;if (remaining <= 0){throw new System.IO.EndOfStreamExc... | train | false |
3,570 | public UpdateServiceAccessPoliciesResult updateServiceAccessPolicies(UpdateServiceAccessPoliciesRequest request) {request = beforeClientExecution(request);return executeUpdateServiceAccessPolicies(request);}
| [
"public",
"UpdateServiceAccessPoliciesResult",
"updateServiceAccessPolicies",
"(",
"UpdateServiceAccessPoliciesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateServiceAccessPolicies",
"(",
"request",
")",
... | public virtual UpdateServiceAccessPoliciesResponse UpdateServiceAccessPolicies(UpdateServiceAccessPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateServiceAccessPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateServiceAccessPoliciesResponseUnmarshaller.In... | train | true |
3,571 | public void serialize(LittleEndianOutput out) {out.writeShort(sid);out.writeShort(ENCODED_SIZE);}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"sid",
")",
";",
"out",
".",
"writeShort",
"(",
"ENCODED_SIZE",
")",
";",
"}"
] | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(sid);out1.WriteShort(ENCODED_SIZE);}
| train | false |
3,572 | public GetApplicationSettingsResult getApplicationSettings(GetApplicationSettingsRequest request) {request = beforeClientExecution(request);return executeGetApplicationSettings(request);}
| [
"public",
"GetApplicationSettingsResult",
"getApplicationSettings",
"(",
"GetApplicationSettingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetApplicationSettings",
"(",
"request",
")",
";",
"}"
] | public virtual GetApplicationSettingsResponse GetApplicationSettings(GetApplicationSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApplicationSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApplicationSettingsResponseUnmarshaller.Instance;return Invoke<GetA... | train | true |
3,573 | public void serialize(LittleEndianOutput out) {out.writeShort(getCodepage());}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"getCodepage",
"(",
")",
")",
";",
"}"
] | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Codepage);}
| train | false |
3,574 | public SharedFormulaRecord(RecordInputStream in) {super(in);field_5_reserved = in.readShort();int field_6_expression_len = in.readShort();int nAvailableBytes = in.available();field_7_parsed_expr = Formula.read(field_6_expression_len, in, nAvailableBytes);}
| [
"public",
"SharedFormulaRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"super",
"(",
"in",
")",
";",
"field_5_reserved",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"int",
"field_6_expression_len",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"int",
"nA... | public SharedFormulaRecord(RecordInputStream in1): base(in1){field_5_reserved = in1.ReadShort();int field_6_expression_len = in1.ReadShort();int nAvailableBytes = in1.Available();field_7_parsed_expr = NPOI.SS.Formula.Formula.Read(field_6_expression_len, in1, nAvailableBytes);}
| train | false |
3,575 | public void remove() {if (this.lastPosition == -1) {throw new IllegalStateException();}if (expectedModCount != modCount) {throw new ConcurrentModificationException();}try {AbstractList.this.remove(lastPosition);} catch (IndexOutOfBoundsException e) {throw new ConcurrentModificationException();}expectedModCount = modCou... | [
"public",
"void",
"remove",
"(",
")",
"{",
"if",
"(",
"this",
".",
"lastPosition",
"==",
"-",
"1",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
")",
";",
"}",
"if",
"(",
"expectedModCount",
"!=",
"modCount",
")",
"{",
"throw",
"new",
"Concur... | public virtual void remove(){if (this.lastPosition == -1){throw new System.InvalidOperationException();}if (this.expectedModCount != this._enclosing.modCount){throw new java.util.ConcurrentModificationException();}try{this._enclosing.remove(this.lastPosition);}catch (System.IndexOutOfRangeException){throw new java.util... | train | false |
3,576 | public int getRef(Character way) {Cell c = at(way);return (c == null) ? -1 : c.ref;}
| [
"public",
"int",
"getRef",
"(",
"Character",
"way",
")",
"{",
"Cell",
"c",
"=",
"at",
"(",
"way",
")",
";",
"return",
"(",
"c",
"==",
"null",
")",
"?",
"-",
"1",
":",
"c",
".",
"ref",
";",
"}"
] | public int GetRef(char way){Cell c = At(way);return (c == null) ? -1 : c.@ref;}
| train | false |
3,577 | public K ceilingKey(K key) {Entry<K, V> entry = findBounded(key, CEILING);return entry != null ? entry.getKey() : null;}
| [
"public",
"K",
"ceilingKey",
"(",
"K",
"key",
")",
"{",
"Entry",
"<",
"K",
",",
"V",
">",
"entry",
"=",
"findBounded",
"(",
"key",
",",
"CEILING",
")",
";",
"return",
"entry",
"!=",
"null",
"?",
"entry",
".",
"getKey",
"(",
")",
":",
"null",
";",... | public K ceilingKey(K key){java.util.MapClass.Entry<K, V> entry = this.findBounded(key, java.util.TreeMap.Relation.CEILING);return entry != null ? entry.getKey() : default(K);}
| train | false |
3,578 | public CreateApplicationRequest(String applicationName) {setApplicationName(applicationName);}
| [
"public",
"CreateApplicationRequest",
"(",
"String",
"applicationName",
")",
"{",
"setApplicationName",
"(",
"applicationName",
")",
";",
"}"
] | public CreateApplicationRequest(string applicationName){_applicationName = applicationName;}
| train | false |
3,579 | public int pathCompare(byte[] buf, int pos, int end, int pathMode) {return pathCompare(buf, pos, end, pathMode, 0);}
| [
"public",
"int",
"pathCompare",
"(",
"byte",
"[",
"]",
"buf",
",",
"int",
"pos",
",",
"int",
"end",
",",
"int",
"pathMode",
")",
"{",
"return",
"pathCompare",
"(",
"buf",
",",
"pos",
",",
"end",
",",
"pathMode",
",",
"0",
")",
";",
"}"
] | public virtual int PathCompare(byte[] buf, int pos, int end, int mode){return PathCompare(buf, pos, end, mode, 0);}
| train | false |
3,580 | public DescribeContainerInstancesResult describeContainerInstances(DescribeContainerInstancesRequest request) {request = beforeClientExecution(request);return executeDescribeContainerInstances(request);}
| [
"public",
"DescribeContainerInstancesResult",
"describeContainerInstances",
"(",
"DescribeContainerInstancesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeContainerInstances",
"(",
"request",
")",
";... | public virtual DescribeContainerInstancesResponse DescribeContainerInstances(DescribeContainerInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeContainerInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeContainerInstancesResponseUnmarshaller.Instanc... | train | true |
3,581 | public void serialize(LittleEndianOutput out) {for (short tabid : _tabids) {out.writeShort(tabid);}}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"for",
"(",
"short",
"tabid",
":",
"_tabids",
")",
"{",
"out",
".",
"writeShort",
"(",
"tabid",
")",
";",
"}",
"}"
] | public override void Serialize(ILittleEndianOutput out1){short[] tabids = _tabids;for (int i = 0; i < tabids.Length; i++){out1.WriteShort(tabids[i]);}}
| train | false |
3,582 | public ListIAMPolicyAssignmentsForUserResult listIAMPolicyAssignmentsForUser(ListIAMPolicyAssignmentsForUserRequest request) {request = beforeClientExecution(request);return executeListIAMPolicyAssignmentsForUser(request);}
| [
"public",
"ListIAMPolicyAssignmentsForUserResult",
"listIAMPolicyAssignmentsForUser",
"(",
"ListIAMPolicyAssignmentsForUserRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListIAMPolicyAssignmentsForUser",
"(",
"r... | public virtual ListIAMPolicyAssignmentsForUserResponse ListIAMPolicyAssignmentsForUser(ListIAMPolicyAssignmentsForUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIAMPolicyAssignmentsForUserRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIAMPolicyAssignmentsForUserRes... | train | false |
3,583 | public boolean equals(Object obj) {if (obj instanceof Map.Entry) {final Object key = ((Map.Entry) obj).getKey();final Object val = ((Map.Entry) obj).getValue();if (key instanceof String && val instanceof Ref) {final Ref r = (Ref) val;if (r.getName().equals(ref.getName())) {final ObjectId a = r.getObjectId();final Objec... | [
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"obj",
"instanceof",
"Map",
".",
"Entry",
")",
"{",
"final",
"Object",
"key",
"=",
"(",
"(",
"Map",
".",
"Entry",
")",
"obj",
")",
".",
"getKey",
"(",
")",
";",
"final",
"O... | public override bool Equals(object obj){if (obj is DictionaryEntry){object key = ((DictionaryEntry)obj).Key;object val = ((DictionaryEntry)obj).Value;if (key is string && val is Ref){Ref r = (Ref)val;if (r.GetName().Equals(this.@ref.GetName())){ObjectId a = r.GetObjectId();ObjectId b = this.@ref.GetObjectId();if (a != ... | train | false |
3,584 | public RemoveFacetFromObjectResult removeFacetFromObject(RemoveFacetFromObjectRequest request) {request = beforeClientExecution(request);return executeRemoveFacetFromObject(request);}
| [
"public",
"RemoveFacetFromObjectResult",
"removeFacetFromObject",
"(",
"RemoveFacetFromObjectRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRemoveFacetFromObject",
"(",
"request",
")",
";",
"}"
] | public virtual RemoveFacetFromObjectResponse RemoveFacetFromObject(RemoveFacetFromObjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveFacetFromObjectRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveFacetFromObjectResponseUnmarshaller.Instance;return Invoke<RemoveFac... | train | true |
3,586 | public AssociateRouteTableResult associateRouteTable(AssociateRouteTableRequest request) {request = beforeClientExecution(request);return executeAssociateRouteTable(request);}
| [
"public",
"AssociateRouteTableResult",
"associateRouteTable",
"(",
"AssociateRouteTableRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociateRouteTable",
"(",
"request",
")",
";",
"}"
] | public virtual AssociateRouteTableResponse AssociateRouteTable(AssociateRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateRouteTableResponseUnmarshaller.Instance;return Invoke<AssociateRouteTable... | train | true |
3,587 | public void createInformationProperties() {if (!initialized) {readProperties();}if (sInf == null) {sInf = PropertySetFactory.newSummaryInformation();}if (dsInf == null) {dsInf = newDocumentSummaryInformation();}}
| [
"public",
"void",
"createInformationProperties",
"(",
")",
"{",
"if",
"(",
"!",
"initialized",
")",
"{",
"readProperties",
"(",
")",
";",
"}",
"if",
"(",
"sInf",
"==",
"null",
")",
"{",
"sInf",
"=",
"PropertySetFactory",
".",
"newSummaryInformation",
"(",
... | public void CreateInformationProperties(){if (!initialized) ReadProperties();if (sInf == null){sInf = PropertySetFactory.CreateSummaryInformation();}if (dsInf == null){dsInf = PropertySetFactory.CreateDocumentSummaryInformation();}}
| train | false |
3,588 | public DescribeCommentsResult describeComments(DescribeCommentsRequest request) {request = beforeClientExecution(request);return executeDescribeComments(request);}
| [
"public",
"DescribeCommentsResult",
"describeComments",
"(",
"DescribeCommentsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeComments",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeCommentsResponse DescribeComments(DescribeCommentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCommentsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCommentsResponseUnmarshaller.Instance;return Invoke<DescribeCommentsResponse>(request,... | train | true |
3,589 | public MoPenCreateDeviceRequest() {super("MoPen", "2018-02-11", "MoPenCreateDevice", "mopen");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
| [
"public",
"MoPenCreateDeviceRequest",
"(",
")",
"{",
"super",
"(",
"\"MoPen\"",
",",
"\"2018-02-11\"",
",",
"\"MoPenCreateDevice\"",
",",
"\"mopen\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POS... | public MoPenCreateDeviceRequest(): base("MoPen", "2018-02-11", "MoPenCreateDevice", "mopen", "openAPI"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
| train | false |
3,590 | public ApplySchemaResult applySchema(ApplySchemaRequest request) {request = beforeClientExecution(request);return executeApplySchema(request);}
| [
"public",
"ApplySchemaResult",
"applySchema",
"(",
"ApplySchemaRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeApplySchema",
"(",
"request",
")",
";",
"}"
] | public virtual ApplySchemaResponse ApplySchema(ApplySchemaRequest request){var options = new InvokeOptions();options.RequestMarshaller = ApplySchemaRequestMarshaller.Instance;options.ResponseUnmarshaller = ApplySchemaResponseUnmarshaller.Instance;return Invoke<ApplySchemaResponse>(request, options);}
| train | true |
3,591 | public MMSRecord(RecordInputStream in) {if (in.remaining()==0) {return;}field_1_addMenuCount = in.readByte();field_2_delMenuCount = in.readByte();}
| [
"public",
"MMSRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"if",
"(",
"in",
".",
"remaining",
"(",
")",
"==",
"0",
")",
"{",
"return",
";",
"}",
"field_1_addMenuCount",
"=",
"in",
".",
"readByte",
"(",
")",
";",
"field_2_delMenuCount",
"=",
"in",
... | public MMSRecord(RecordInputStream in1){if (in1.Remaining == 0){return;}field_1_AddMenuCount = (byte)in1.ReadByte();field_2_delMenuCount = (byte)in1.ReadByte();}
| train | false |
3,592 | public UserInputQueryBuilder(QueryParser parser) {this.unSafeParser = parser;}
| [
"public",
"UserInputQueryBuilder",
"(",
"QueryParser",
"parser",
")",
"{",
"this",
".",
"unSafeParser",
"=",
"parser",
";",
"}"
] | public UserInputQueryBuilder(QueryParser parser){this.unSafeParser = parser;}
| train | false |
3,593 | public Object get(CharSequence key) {TSTNode node = getNode(key);if (node == null) {return null;}return node.data;}
| [
"public",
"Object",
"get",
"(",
"CharSequence",
"key",
")",
"{",
"TSTNode",
"node",
"=",
"getNode",
"(",
"key",
")",
";",
"if",
"(",
"node",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"node",
".",
"data",
";",
"}"
] | public virtual object Get(string key){TSTNode node = GetNode(key);if (node == null){return null;}return node.data;}
| train | false |
3,594 | public MergedGroup(T groupValue) {this.groupValue = groupValue;}
| [
"public",
"MergedGroup",
"(",
"T",
"groupValue",
")",
"{",
"this",
".",
"groupValue",
"=",
"groupValue",
";",
"}"
] | public MergedGroup(T groupValue){this.groupValue = groupValue;}
| train | false |
3,596 | public RebaseCommand setProgressMonitor(ProgressMonitor monitor) {if (monitor == null) {monitor = NullProgressMonitor.INSTANCE;}this.monitor = monitor;return this;}
| [
"public",
"RebaseCommand",
"setProgressMonitor",
"(",
"ProgressMonitor",
"monitor",
")",
"{",
"if",
"(",
"monitor",
"==",
"null",
")",
"{",
"monitor",
"=",
"NullProgressMonitor",
".",
"INSTANCE",
";",
"}",
"this",
".",
"monitor",
"=",
"monitor",
";",
"return",... | public virtual NGit.Api.RebaseCommand SetProgressMonitor(ProgressMonitor monitor){this.monitor = monitor;return this;}
| train | false |
3,597 | public UnknownSubRecord clone() {return copy();}
| [
"public",
"UnknownSubRecord",
"clone",
"(",
")",
"{",
"return",
"copy",
"(",
")",
";",
"}"
] | public override Object Clone(){return this;}
| train | false |
3,598 | public Query getQuery(Element e) throws ParserException {String fieldName = DOMUtils.getAttributeWithInheritanceOrFail(e, "fieldName");String text = DOMUtils.getNonBlankTextOrFail(e);BooleanQuery.Builder bq = new BooleanQuery.Builder();bq.setMinimumNumberShouldMatch(DOMUtils.getAttribute(e, "minimumNumberShouldMatch", ... | [
"public",
"Query",
"getQuery",
"(",
"Element",
"e",
")",
"throws",
"ParserException",
"{",
"String",
"fieldName",
"=",
"DOMUtils",
".",
"getAttributeWithInheritanceOrFail",
"(",
"e",
",",
"\"fieldName\"",
")",
";",
"String",
"text",
"=",
"DOMUtils",
".",
"getNon... | public virtual Query GetQuery(XmlElement e){string fieldName = DOMUtils.GetAttributeWithInheritanceOrFail(e, "fieldName");string text = DOMUtils.GetNonBlankTextOrFail(e);BooleanQuery bq = new BooleanQuery(DOMUtils.GetAttribute(e, "disableCoord", false));bq.MinimumNumberShouldMatch = DOMUtils.GetAttribute(e, "minimumNum... | train | false |
3,599 | public UpdateMailboxQuotaResult updateMailboxQuota(UpdateMailboxQuotaRequest request) {request = beforeClientExecution(request);return executeUpdateMailboxQuota(request);}
| [
"public",
"UpdateMailboxQuotaResult",
"updateMailboxQuota",
"(",
"UpdateMailboxQuotaRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateMailboxQuota",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateMailboxQuotaResponse UpdateMailboxQuota(UpdateMailboxQuotaRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateMailboxQuotaRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateMailboxQuotaResponseUnmarshaller.Instance;return Invoke<UpdateMailboxQuotaRespon... | train | false |
3,600 | public String toString(){StringBuilder buffer = new StringBuilder(40 * (path.length() + 1));for (int j = 0; j < path.length(); j++){buffer.append(path.getComponent(j)).append("/");}buffer.append(name);return buffer.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
"40",
"*",
"(",
"path",
".",
"length",
"(",
")",
"+",
"1",
")",
")",
";",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"path",
".",
... | public override String ToString(){StringBuilder buffer = new StringBuilder(40 * (path.Length + 1));for (int j = 0; j < path.Length; j++){buffer.Append(path.GetComponent(j)).Append("/");}buffer.Append(name);return buffer.ToString();}
| train | false |
3,601 | public void removeApplicationName() {remove1stProperty(PropertyIDMap.PID_APPNAME);}
| [
"public",
"void",
"removeApplicationName",
"(",
")",
"{",
"remove1stProperty",
"(",
"PropertyIDMap",
".",
"PID_APPNAME",
")",
";",
"}"
] | public void RemoveApplicationName(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_APPNAME);}
| train | false |
3,602 | public String toString(){StringBuilder sb = new StringBuilder();sb.append(getClass().getName());sb.append(" [");if (externalWorkbookNumber >= 0) {sb.append(" [");sb.append("workbook=").append(getExternalWorkbookNumber());sb.append("] ");}sb.append("sheet=").append(getSheetName());sb.append(" ! ");sb.append("name=");sb.... | [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"sb",
".",
"append",
"(",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
")",
";",
"sb",
".",
"append",
"(",
"\" [\"",
")",
";",
"if"... | public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetType().Name);sb.Append(" [");if (externalWorkbookNumber >= 0){sb.Append(" [");sb.Append("workbook=").Append(ExternalWorkbookNumber);sb.Append("] ");}if (SheetName != null){sb.Append("sheet=").Append(SheetName);}sb.Append(" ! ");sb.App... | train | false |
3,603 | public GetRecommenderConfigurationResult getRecommenderConfiguration(GetRecommenderConfigurationRequest request) {request = beforeClientExecution(request);return executeGetRecommenderConfiguration(request);}
| [
"public",
"GetRecommenderConfigurationResult",
"getRecommenderConfiguration",
"(",
"GetRecommenderConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetRecommenderConfiguration",
"(",
"request",
")",
... | public virtual GetRecommenderConfigurationResponse GetRecommenderConfiguration(GetRecommenderConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRecommenderConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRecommenderConfigurationResponseUnmarshaller.In... | train | false |
3,604 | public int previous() {if (text.getIndex() == text.getBeginIndex()) {return DONE;} else {if (0 == sentenceStarts.length) {text.setIndex(text.getBeginIndex());return DONE;}if (text.getIndex() == text.getEndIndex()) {text.setIndex(sentenceStarts[currentSentence]);} else {text.setIndex(sentenceStarts[--currentSentence]);}... | [
"public",
"int",
"previous",
"(",
")",
"{",
"if",
"(",
"text",
".",
"getIndex",
"(",
")",
"==",
"text",
".",
"getBeginIndex",
"(",
")",
")",
"{",
"return",
"DONE",
";",
"}",
"else",
"{",
"if",
"(",
"0",
"==",
"sentenceStarts",
".",
"length",
")",
... | public override int Previous(){if (text.Index == text.BeginIndex){return Done;}else{if (0 == sentenceStarts.Length){text.SetIndex(text.BeginIndex);return Done;}if (text.Index == text.EndIndex){text.SetIndex(sentenceStarts[currentSentence]);}else{text.SetIndex(sentenceStarts[--currentSentence]);}return Current;}}
| train | false |
3,606 | public static double average(double[] values) {double ave = 0;double sum = 0;for (double value : values) {sum += value;}ave = sum / values.length;return ave;}
| [
"public",
"static",
"double",
"average",
"(",
"double",
"[",
"]",
"values",
")",
"{",
"double",
"ave",
"=",
"0",
";",
"double",
"sum",
"=",
"0",
";",
"for",
"(",
"double",
"value",
":",
"values",
")",
"{",
"sum",
"+=",
"value",
";",
"}",
"ave",
"... | public static double Average(double[] values){double ave = 0;double sum = 0;for (int i = 0, iSize = values.Length; i < iSize; i++){sum += values[i];}ave = sum / values.Length;return ave;}
| train | false |
3,607 | public GetCheckerIpRangesResult getCheckerIpRanges(GetCheckerIpRangesRequest request) {request = beforeClientExecution(request);return executeGetCheckerIpRanges(request);}
| [
"public",
"GetCheckerIpRangesResult",
"getCheckerIpRanges",
"(",
"GetCheckerIpRangesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetCheckerIpRanges",
"(",
"request",
")",
";",
"}"
] | public virtual GetCheckerIpRangesResponse GetCheckerIpRanges(GetCheckerIpRangesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCheckerIpRangesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCheckerIpRangesResponseUnmarshaller.Instance;return Invoke<GetCheckerIpRangesRespon... | train | true |
3,608 | public int getRegionLength() {return outRegion.length;}
| [
"public",
"int",
"getRegionLength",
"(",
")",
"{",
"return",
"outRegion",
".",
"length",
";",
"}"
] | public virtual int GetRegionLength(){return currentSource.regionList.length;}
| train | false |
3,609 | @Override public Iterator<Multiset.Entry<E>> iterator() {final Iterator<Map.Entry<E, Integer>> backingIterator= countMap.entrySet().iterator();return new Iterator<Multiset.Entry<E>>();}
| [
"@",
"Override",
"public",
"Iterator",
"<",
"Multiset",
".",
"Entry",
"<",
"E",
">",
">",
"iterator",
"(",
")",
"{",
"final",
"Iterator",
"<",
"Map",
".",
"Entry",
"<",
"E",
",",
"Integer",
">",
">",
"backingIterator",
"=",
"countMap",
".",
"entrySet",... | public override java.util.Iterator<java.util.MapClass.Entry<K, V>> iterator(){return new java.util.Hashtable<K, V>.EntryIterator(this._enclosing);}
| train | false |
3,610 | public WeightedSpanTerm(float weight, String term, boolean positionSensitive) {super(weight, term);this.positionSensitive = positionSensitive;}
| [
"public",
"WeightedSpanTerm",
"(",
"float",
"weight",
",",
"String",
"term",
",",
"boolean",
"positionSensitive",
")",
"{",
"super",
"(",
"weight",
",",
"term",
")",
";",
"this",
".",
"positionSensitive",
"=",
"positionSensitive",
";",
"}"
] | public WeightedSpanTerm(float weight, string term, bool positionSensitive): base(weight, term){_positionSensitive = positionSensitive;}
| train | false |
3,611 | public synchronized StringBuffer append(char[] chars) {append0(chars);return this;}
| [
"public",
"synchronized",
"StringBuffer",
"append",
"(",
"char",
"[",
"]",
"chars",
")",
"{",
"append0",
"(",
"chars",
")",
";",
"return",
"this",
";",
"}"
] | public java.lang.StringBuffer append(char[] chars){lock (this){append0(chars);return this;}}
| train | false |
3,612 | public UploadServerCertificateRequest(String serverCertificateName, String certificateBody, String privateKey) {setServerCertificateName(serverCertificateName);setCertificateBody(certificateBody);setPrivateKey(privateKey);}
| [
"public",
"UploadServerCertificateRequest",
"(",
"String",
"serverCertificateName",
",",
"String",
"certificateBody",
",",
"String",
"privateKey",
")",
"{",
"setServerCertificateName",
"(",
"serverCertificateName",
")",
";",
"setCertificateBody",
"(",
"certificateBody",
")"... | public UploadServerCertificateRequest(string serverCertificateName, string certificateBody, string privateKey){_serverCertificateName = serverCertificateName;_certificateBody = certificateBody;_privateKey = privateKey;}
| train | false |
3,613 | public List<String> getRuleInvocationStack(RuleContext p) {String[] ruleNames = getRuleNames();List<String> stack = new ArrayList<String>();while ( p!=null ) {int ruleIndex = p.getRuleIndex();if ( ruleIndex<0 ) stack.add("n/a");else stack.add(ruleNames[ruleIndex]);p = p.parent;}return stack;}
| [
"public",
"List",
"<",
"String",
">",
"getRuleInvocationStack",
"(",
"RuleContext",
"p",
")",
"{",
"String",
"[",
"]",
"ruleNames",
"=",
"getRuleNames",
"(",
")",
";",
"List",
"<",
"String",
">",
"stack",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",... | public virtual IList<string> GetRuleInvocationStack(RuleContext p){string[] ruleNames = RuleNames;IList<string> stack = new List<string>();while (p != null){int ruleIndex = p.RuleIndex;if (ruleIndex < 0){stack.Add("n/a");}else{stack.Add(ruleNames[ruleIndex]);}p = p.Parent;}return stack;}
| train | false |
3,614 | static public double ipmt(double r, int per, int nper, double pv, double fv) {return ipmt(r, per, nper, pv, fv, 0);}
| [
"static",
"public",
"double",
"ipmt",
"(",
"double",
"r",
",",
"int",
"per",
",",
"int",
"nper",
",",
"double",
"pv",
",",
"double",
"fv",
")",
"{",
"return",
"ipmt",
"(",
"r",
",",
"per",
",",
"nper",
",",
"pv",
",",
"fv",
",",
"0",
")",
";",
... | static public double IPMT(double r, int per, int nper, double pv, double fv){return IPMT(r, per, nper, pv, fv, 0);}
| train | false |
3,615 | public int countRanges() {return _list.size();}
| [
"public",
"int",
"countRanges",
"(",
")",
"{",
"return",
"_list",
".",
"size",
"(",
")",
";",
"}"
] | public int CountRanges(){return _list.Count;}
| train | false |
3,616 | public int compareTo(FormatRun r) {if (_character == r._character && _fontIndex == r._fontIndex) {return 0;}if (_character == r._character) {return _fontIndex - r._fontIndex;}return _character - r._character;}
| [
"public",
"int",
"compareTo",
"(",
"FormatRun",
"r",
")",
"{",
"if",
"(",
"_character",
"==",
"r",
".",
"_character",
"&&",
"_fontIndex",
"==",
"r",
".",
"_fontIndex",
")",
"{",
"return",
"0",
";",
"}",
"if",
"(",
"_character",
"==",
"r",
".",
"_char... | public int CompareTo(FormatRun r){if (_character == r._character && _fontIndex == r._fontIndex){return 0;}if (_character == r._character){return _fontIndex - r._fontIndex;}return _character - r._character;}
| train | false |
3,617 | public final void readFully(byte[] dst) throws IOException {readFully(dst, 0, dst.length);}
| [
"public",
"final",
"void",
"readFully",
"(",
"byte",
"[",
"]",
"dst",
")",
"throws",
"IOException",
"{",
"readFully",
"(",
"dst",
",",
"0",
",",
"dst",
".",
"length",
")",
";",
"}"
] | public virtual void readFully(byte[] dst){throw new System.NotImplementedException();}
| train | false |
3,618 | public synchronized int size() {return size;}
| [
"public",
"synchronized",
"int",
"size",
"(",
")",
"{",
"return",
"size",
";",
"}"
] | public override int size(){lock (this){return _size;}}
| train | false |
3,619 | public String group() {return group(0);}
| [
"public",
"String",
"group",
"(",
")",
"{",
"return",
"group",
"(",
"0",
")",
";",
"}"
] | public string group(){return group(0);}
| train | false |
3,620 | public int getExternalSheetIndex(String workbookName, String firstSheetName, String lastSheetName) {return getOrCreateLinkTable().getExternalSheetIndex(workbookName, firstSheetName, lastSheetName);}
| [
"public",
"int",
"getExternalSheetIndex",
"(",
"String",
"workbookName",
",",
"String",
"firstSheetName",
",",
"String",
"lastSheetName",
")",
"{",
"return",
"getOrCreateLinkTable",
"(",
")",
".",
"getExternalSheetIndex",
"(",
"workbookName",
",",
"firstSheetName",
",... | public int GetExternalSheetIndex(String workbookName, String firstSheetName, String lastSheetName){return OrCreateLinkTable.GetExternalSheetIndex(workbookName, firstSheetName, lastSheetName);}
| train | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.