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);setMasterUsername(masterUsername);setMasterUserPassword(masterUserPassword);}
|
[
"public",
"CreateDBInstanceRequest",
"(",
"String",
"dBInstanceIdentifier",
",",
"Integer",
"allocatedStorage",
",",
"String",
"dBInstanceClass",
",",
"String",
"engine",
",",
"String",
"masterUsername",
",",
"String",
"masterUserPassword",
")",
"{",
"setDBInstanceIdentifier",
"(",
"dBInstanceIdentifier",
")",
";",
"setAllocatedStorage",
"(",
"allocatedStorage",
")",
";",
"setDBInstanceClass",
"(",
"dBInstanceClass",
")",
";",
"setEngine",
"(",
"engine",
")",
";",
"setMasterUsername",
"(",
"masterUsername",
")",
";",
"setMasterUserPassword",
"(",
"masterUserPassword",
")",
";",
"}"
] |
public CreateDBInstanceRequest(string dbInstanceIdentifier, int allocatedStorage, string dbInstanceClass, string engine, string masterUsername, string masterUserPassword){_dbInstanceIdentifier = dbInstanceIdentifier;_allocatedStorage = allocatedStorage;_dbInstanceClass = dbInstanceClass;_engine = engine;_masterUsername = masterUsername;_masterUserPassword = masterUserPassword;}
|
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;return Invoke<DescribeCapacityProvidersResponse>(request, options);}
|
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<CreateQualificationTypeResponse>(request, options);}
|
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",
"BoundedEntrySet",
"(",
")",
")",
";",
"}"
] |
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_FORMULA",
",",
"ComparisonOperator",
".",
"NO_COMPARISON",
",",
"formula1",
",",
"null",
")",
";",
"}"
] |
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<DeleteApplicationOutputResponse>(request, options);}
|
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",
")",
"return",
"q",
";",
"}",
"throw",
"new",
"Error",
"(",
"\"Missing return statement in function\"",
")",
";",
"}"
] |
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",
".",
"DOUBLE",
",",
"c",
")",
";",
"return",
"this",
";",
"}"
] |
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 IllegalStateException("Wrong cell specified. ");}_evaluationFrames.remove(nFrames);_currentlyEvaluatingCells.remove(cce);}
|
[
"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",
"IllegalStateException",
"(",
"\"Wrong cell specified. \"",
")",
";",
"}",
"_evaluationFrames",
".",
"remove",
"(",
"nFrames",
")",
";",
"_currentlyEvaluatingCells",
".",
"remove",
"(",
"cce",
")",
";",
"}"
] |
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 InvalidOperationException("Wrong cell specified. ");}_evaluationFrames.RemoveAt(nFrames);_currentlyEvaluatingCells.Remove(cce);}
|
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().isHorizontallyFlipped()){sp.setFlags(sp.getFlags() | EscherSpRecord.FLAG_FLIPHORIZ);}if (shape.getAnchor().isVerticallyFlipped()){sp.setFlags(sp.getFlags() | EscherSpRecord.FLAG_FLIPVERT);}return shape;}
|
[
"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",
"(",
")",
".",
"isHorizontallyFlipped",
"(",
")",
")",
"{",
"sp",
".",
"setFlags",
"(",
"sp",
".",
"getFlags",
"(",
")",
"|",
"EscherSpRecord",
".",
"FLAG_FLIPHORIZ",
")",
";",
"}",
"if",
"(",
"shape",
".",
"getAnchor",
"(",
")",
".",
"isVerticallyFlipped",
"(",
")",
")",
"{",
"sp",
".",
"setFlags",
"(",
"sp",
".",
"getFlags",
"(",
")",
"|",
"EscherSpRecord",
".",
"FLAG_FLIPVERT",
")",
";",
"}",
"return",
"shape",
";",
"}"
] |
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.IsHorizontallyFlipped){sp.Flags = (sp.Flags | EscherSpRecord.FLAG_FLIPHORIZ);}if (shape.Anchor.IsVerticallyFlipped){sp.Flags = (sp.Flags | EscherSpRecord.FLAG_FLIPVERT);}return shape;}
|
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<GetLifecyclePolicyResponse>(request, options);}
|
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",
"null",
";",
"}",
"return",
"Integer",
".",
"valueOf",
"(",
"value",
")",
";",
"}"
] |
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",
",",
"valueIterator",
".",
"next",
"(",
")",
")",
";",
"}"
] |
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",
"(",
"MethodType",
".",
"GET",
")",
";",
"}"
] |
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",
"!=",
"processor",
")",
"{",
"processor",
".",
"setQueryConfigHandler",
"(",
"this",
".",
"queryConfig",
")",
";",
"}",
"return",
"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.lockDirCache();DirCacheBuilder builder = dc.builder();tw.reset(); tw.setRecursive(true);tw.setFilter(PathFilterGroup.createFromStrings(filepatterns));tw.addTree(new DirCacheBuildIterator(builder));while (tw.next()) {if (!cached) {final FileMode mode = tw.getFileMode(0);if (mode.getObjectType() == Constants.OBJ_BLOB) {String relativePath = tw.getPathString();final File path = new File(repo.getWorkTree(),relativePath);if (delete(path)) {actuallyDeletedFiles.add(relativePath);}}}}builder.commit();setCallable(false);} catch (IOException e) {throw new JGitInternalException(JGitText.get().exceptionCaughtDuringExecutionOfRmCommand, e);} finally {try {if (dc != null) {dc.unlock();}} finally {if (!actuallyDeletedFiles.isEmpty()) {repo.fireEvent(new WorkingTreeModifiedEvent(null,actuallyDeletedFiles));}}}return dc;}
|
[
"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",
".",
"lockDirCache",
"(",
")",
";",
"DirCacheBuilder",
"builder",
"=",
"dc",
".",
"builder",
"(",
")",
";",
"tw",
".",
"reset",
"(",
")",
";",
"tw",
".",
"setRecursive",
"(",
"true",
")",
";",
"tw",
".",
"setFilter",
"(",
"PathFilterGroup",
".",
"createFromStrings",
"(",
"filepatterns",
")",
")",
";",
"tw",
".",
"addTree",
"(",
"new",
"DirCacheBuildIterator",
"(",
"builder",
")",
")",
";",
"while",
"(",
"tw",
".",
"next",
"(",
")",
")",
"{",
"if",
"(",
"!",
"cached",
")",
"{",
"final",
"FileMode",
"mode",
"=",
"tw",
".",
"getFileMode",
"(",
"0",
")",
";",
"if",
"(",
"mode",
".",
"getObjectType",
"(",
")",
"==",
"Constants",
".",
"OBJ_BLOB",
")",
"{",
"String",
"relativePath",
"=",
"tw",
".",
"getPathString",
"(",
")",
";",
"final",
"File",
"path",
"=",
"new",
"File",
"(",
"repo",
".",
"getWorkTree",
"(",
")",
",",
"relativePath",
")",
";",
"if",
"(",
"delete",
"(",
"path",
")",
")",
"{",
"actuallyDeletedFiles",
".",
"add",
"(",
"relativePath",
")",
";",
"}",
"}",
"}",
"}",
"builder",
".",
"commit",
"(",
")",
";",
"setCallable",
"(",
"false",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"throw",
"new",
"JGitInternalException",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"exceptionCaughtDuringExecutionOfRmCommand",
",",
"e",
")",
";",
"}",
"finally",
"{",
"try",
"{",
"if",
"(",
"dc",
"!=",
"null",
")",
"{",
"dc",
".",
"unlock",
"(",
")",
";",
"}",
"}",
"finally",
"{",
"if",
"(",
"!",
"actuallyDeletedFiles",
".",
"isEmpty",
"(",
")",
")",
"{",
"repo",
".",
"fireEvent",
"(",
"new",
"WorkingTreeModifiedEvent",
"(",
"null",
",",
"actuallyDeletedFiles",
")",
")",
";",
"}",
"}",
"}",
"return",
"dc",
";",
"}"
] |
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 = PathFilterGroup.CreateFromStrings(filepatterns);tw.AddTree(new DirCacheBuildIterator(builder));while (tw.Next()){FilePath path = new FilePath(repo.WorkTree, tw.PathString);FileMode mode = tw.GetFileMode(0);if (mode.GetObjectType() == Constants.OBJ_BLOB){Delete(path);}}builder.Commit();SetCallable(false);}catch (IOException e){throw new JGitInternalException(JGitText.Get().exceptionCaughtDuringExecutionOfRmCommand, e);}finally{if (dc != null){dc.Unlock();}}return dc;}
|
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<DeleteGatewayResponseResponse>(request, options);}
|
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",
"(",
"MethodType",
".",
"GET",
")",
";",
"}"
] |
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, options);}
|
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.endpointResolver = new DefaultEndpointResolver(this, profile);this.appendUserAgent("HTTPClient", this.httpClient.getClass().getSimpleName());}
|
[
"public",
"DefaultAcsClient",
"(",
"IClientProfile",
"profile",
",",
"AlibabaCloudCredentialsProvider",
"credentialsProvider",
")",
"{",
"this",
".",
"clientProfile",
"=",
"profile",
";",
"this",
".",
"credentialsProvider",
"=",
"credentialsProvider",
";",
"this",
".",
"clientProfile",
".",
"setCredentialsProvider",
"(",
"this",
".",
"credentialsProvider",
")",
";",
"this",
".",
"httpClient",
"=",
"HttpClientFactory",
".",
"buildClient",
"(",
"this",
".",
"clientProfile",
")",
";",
"this",
".",
"endpointResolver",
"=",
"new",
"DefaultEndpointResolver",
"(",
"this",
",",
"profile",
")",
";",
"this",
".",
"appendUserAgent",
"(",
"\"HTTPClient\"",
",",
"this",
".",
"httpClient",
".",
"getClass",
"(",
")",
".",
"getSimpleName",
"(",
")",
")",
";",
"}"
] |
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",
".",
"append",
"(",
"get",
"(",
"i",
")",
")",
";",
"}",
"return",
"result",
".",
"toString",
"(",
")",
";",
"}"
] |
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",
")",
";",
"_note",
"=",
"note",
";",
"}"
] |
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",
"=",
"-",
"1",
";",
"}"
] |
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 = DeleteDBClusterParameterGroupResponseUnmarshaller.Instance;return Invoke<DeleteDBClusterParameterGroupResponse>(request, options);}
|
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.min(remaining, count);if (nextValues.offset == nextValues.longs.length) {final long remainingBlocks = format.byteCount(packedIntsVersion, remaining, bitsPerValue);final int blocksToRead = (int) Math.min(remainingBlocks, nextBlocks.length);in.readBytes(nextBlocks, 0, blocksToRead);if (blocksToRead < nextBlocks.length) {Arrays.fill(nextBlocks, blocksToRead, nextBlocks.length, (byte) 0);}bulkOperation.decode(nextBlocks, 0, nextValues.longs, 0, iterations);nextValues.offset = 0;}nextValues.length = Math.min(nextValues.longs.length - nextValues.offset, count);position += nextValues.length;return nextValues;}
|
[
"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",
".",
"min",
"(",
"remaining",
",",
"count",
")",
";",
"if",
"(",
"nextValues",
".",
"offset",
"==",
"nextValues",
".",
"longs",
".",
"length",
")",
"{",
"final",
"long",
"remainingBlocks",
"=",
"format",
".",
"byteCount",
"(",
"packedIntsVersion",
",",
"remaining",
",",
"bitsPerValue",
")",
";",
"final",
"int",
"blocksToRead",
"=",
"(",
"int",
")",
"Math",
".",
"min",
"(",
"remainingBlocks",
",",
"nextBlocks",
".",
"length",
")",
";",
"in",
".",
"readBytes",
"(",
"nextBlocks",
",",
"0",
",",
"blocksToRead",
")",
";",
"if",
"(",
"blocksToRead",
"<",
"nextBlocks",
".",
"length",
")",
"{",
"Arrays",
".",
"fill",
"(",
"nextBlocks",
",",
"blocksToRead",
",",
"nextBlocks",
".",
"length",
",",
"(",
"byte",
")",
"0",
")",
";",
"}",
"bulkOperation",
".",
"decode",
"(",
"nextBlocks",
",",
"0",
",",
"nextValues",
".",
"longs",
",",
"0",
",",
"iterations",
")",
";",
"nextValues",
".",
"offset",
"=",
"0",
";",
"}",
"nextValues",
".",
"length",
"=",
"Math",
".",
"min",
"(",
"nextValues",
".",
"longs",
".",
"length",
"-",
"nextValues",
".",
"offset",
",",
"count",
")",
";",
"position",
"+=",
"nextValues",
".",
"length",
";",
"return",
"nextValues",
";",
"}"
] |
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.EndOfStreamException();}count = Math.Min(remaining, count);if (nextValues.Offset == nextValues.Int64s.Length){long remainingBlocks = format.ByteCount(packedIntsVersion, remaining, m_bitsPerValue);int blocksToRead = (int)Math.Min(remainingBlocks, nextBlocks.Length);m_in.ReadBytes(nextBlocks, 0, blocksToRead);if (blocksToRead < nextBlocks.Length){Arrays.Fill(nextBlocks, blocksToRead, nextBlocks.Length, (byte)0);}bulkOperation.Decode(nextBlocks, 0, nextValues.Int64s, 0, iterations);nextValues.Offset = 0;}nextValues.Length = Math.Min(nextValues.Int64s.Length - nextValues.Offset, count);position += nextValues.Length;return nextValues;}
|
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.Instance;return Invoke<UpdateServiceAccessPoliciesResponse>(request, options);}
|
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<GetApplicationSettingsResponse>(request, options);}
|
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",
"nAvailableBytes",
"=",
"in",
".",
"available",
"(",
")",
";",
"field_7_parsed_expr",
"=",
"Formula",
".",
"read",
"(",
"field_6_expression_len",
",",
"in",
",",
"nAvailableBytes",
")",
";",
"}"
] |
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 = modCount;if (pos == lastPosition) {pos--;}lastPosition = -1;}
|
[
"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",
"=",
"modCount",
";",
"if",
"(",
"pos",
"==",
"lastPosition",
")",
"{",
"pos",
"--",
";",
"}",
"lastPosition",
"=",
"-",
"1",
";",
"}"
] |
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.ConcurrentModificationException();}this.expectedModCount = this._enclosing.modCount;if (this.pos == this.lastPosition){this.pos--;}this.lastPosition = -1;}
|
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.Instance;return Invoke<DescribeContainerInstancesResponse>(request, options);}
|
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",
"(",
"request",
")",
";",
"}"
] |
public virtual ListIAMPolicyAssignmentsForUserResponse ListIAMPolicyAssignmentsForUser(ListIAMPolicyAssignmentsForUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIAMPolicyAssignmentsForUserRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIAMPolicyAssignmentsForUserResponseUnmarshaller.Instance;return Invoke<ListIAMPolicyAssignmentsForUserResponse>(request, options);}
|
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 ObjectId b = ref.getObjectId();if (a != null && b != null&& AnyObjectId.isEqual(a, b)) {return true;}}}}return false;}
|
[
"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",
"ObjectId",
"b",
"=",
"ref",
".",
"getObjectId",
"(",
")",
";",
"if",
"(",
"a",
"!=",
"null",
"&&",
"b",
"!=",
"null",
"&&",
"AnyObjectId",
".",
"isEqual",
"(",
"a",
",",
"b",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"}",
"}",
"return",
"false",
";",
"}"
] |
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 != null && b != null && AnyObjectId.Equals(a, b)){return true;}}}}return false;}
|
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<RemoveFacetFromObjectResponse>(request, options);}
|
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<AssociateRouteTableResponse>(request, options);}
|
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",
"(",
")",
";",
"}",
"if",
"(",
"dsInf",
"==",
"null",
")",
"{",
"dsInf",
"=",
"newDocumentSummaryInformation",
"(",
")",
";",
"}",
"}"
] |
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, options);}
|
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",
".",
"POST",
")",
";",
"}"
] |
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",
".",
"readByte",
"(",
")",
";",
"}"
] |
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",
"this",
";",
"}"
] |
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", 0));try (TokenStream ts = analyzer.tokenStream(fieldName, text)) {TermToBytesRefAttribute termAtt = ts.addAttribute(TermToBytesRefAttribute.class);Term term = null;ts.reset();while (ts.incrementToken()) {term = new Term(fieldName, BytesRef.deepCopyOf(termAtt.getBytesRef()));bq.add(new BooleanClause(new TermQuery(term), BooleanClause.Occur.SHOULD));}ts.end();}catch (IOException ioe) {throw new RuntimeException("Error constructing terms from index:" + ioe);}Query q = bq.build();float boost = DOMUtils.getAttribute(e, "boost", 1.0f);return new BoostQuery(q, boost);}
|
[
"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\"",
",",
"0",
")",
")",
";",
"try",
"(",
"TokenStream",
"ts",
"=",
"analyzer",
".",
"tokenStream",
"(",
"fieldName",
",",
"text",
")",
")",
"{",
"TermToBytesRefAttribute",
"termAtt",
"=",
"ts",
".",
"addAttribute",
"(",
"TermToBytesRefAttribute",
".",
"class",
")",
";",
"Term",
"term",
"=",
"null",
";",
"ts",
".",
"reset",
"(",
")",
";",
"while",
"(",
"ts",
".",
"incrementToken",
"(",
")",
")",
"{",
"term",
"=",
"new",
"Term",
"(",
"fieldName",
",",
"BytesRef",
".",
"deepCopyOf",
"(",
"termAtt",
".",
"getBytesRef",
"(",
")",
")",
")",
";",
"bq",
".",
"add",
"(",
"new",
"BooleanClause",
"(",
"new",
"TermQuery",
"(",
"term",
")",
",",
"BooleanClause",
".",
"Occur",
".",
"SHOULD",
")",
")",
";",
"}",
"ts",
".",
"end",
"(",
")",
";",
"}",
"catch",
"(",
"IOException",
"ioe",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"Error constructing terms from index:\"",
"+",
"ioe",
")",
";",
"}",
"Query",
"q",
"=",
"bq",
".",
"build",
"(",
")",
";",
"float",
"boost",
"=",
"DOMUtils",
".",
"getAttribute",
"(",
"e",
",",
"\"boost\"",
",",
"1.0f",
")",
";",
"return",
"new",
"BoostQuery",
"(",
"q",
",",
"boost",
")",
";",
"}"
] |
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, "minimumNumberShouldMatch", 0);TokenStream ts = null;try{ts = analyzer.GetTokenStream(fieldName, text);ITermToBytesRefAttribute termAtt = ts.AddAttribute<ITermToBytesRefAttribute>();Term term = null;BytesRef bytes = termAtt.BytesRef;ts.Reset();while (ts.IncrementToken()){termAtt.FillBytesRef();term = new Term(fieldName, BytesRef.DeepCopyOf(bytes));bq.Add(new BooleanClause(new TermQuery(term), Occur.SHOULD));}ts.End();}catch (IOException ioe){throw new Exception("Error constructing terms from index:" + ioe);}finally{IOUtils.DisposeWhileHandlingException(ts);}bq.Boost = DOMUtils.GetAttribute(e, "boost", 1.0f);return bq;}
|
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<UpdateMailboxQuotaResponse>(request, options);}
|
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",
".",
"length",
"(",
")",
";",
"j",
"++",
")",
"{",
"buffer",
".",
"append",
"(",
"path",
".",
"getComponent",
"(",
"j",
")",
")",
".",
"append",
"(",
"\"/\"",
")",
";",
"}",
"buffer",
".",
"append",
"(",
"name",
")",
";",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] |
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.append(nameName);sb.append("]");return sb.toString();}
|
[
"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",
".",
"append",
"(",
"nameName",
")",
";",
"sb",
".",
"append",
"(",
"\"]\"",
")",
";",
"return",
"sb",
".",
"toString",
"(",
")",
";",
"}"
] |
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.Append("name=");sb.Append(nameName);sb.Append("]");return sb.ToString();}
|
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.Instance;return Invoke<GetRecommenderConfigurationResponse>(request, options);}
|
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]);}return current();}}
|
[
"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",
"]",
")",
";",
"}",
"return",
"current",
"(",
")",
";",
"}",
"}"
] |
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",
"=",
"sum",
"/",
"values",
".",
"length",
";",
"return",
"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<GetCheckerIpRangesResponse>(request, options);}
|
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",
"(",
")",
".",
"iterator",
"(",
")",
";",
"return",
"new",
"Iterator",
"<",
"Multiset",
".",
"Entry",
"<",
"E",
">",
">",
"(",
")",
";",
"}"
] |
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",
")",
";",
"setPrivateKey",
"(",
"privateKey",
")",
";",
"}"
] |
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",
">",
"(",
")",
";",
"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 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",
".",
"_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._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",
",",
"lastSheetName",
")",
";",
"}"
] |
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.